/* 1310labs — splice-sheet aesthetic.
   Palette from the logo: navy ink + the 12-position TIA-598 strand colors. */

:root {
	--paper: #EEF1F5;
	--card: #FFFFFF;
	--ink: #16202E;
	--muted: #55647A;
	--line: #C9D2DE;
	--blue: #0057B8;
	--orange: #F68B1F;
	--green: #00A651;
	--brown: #7B4A2D;
	--slate: #708090;
	--white: #FFFFFF;
	--red: #E22128;
	--black: #16202E;
	--yellow: #F5C400;
	--violet: #7F3F98;
	--rose: #EF8BB6;
	--aqua: #00AEC7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.65 'IBM Plex Sans', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	max-width: 1060px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---- top bar ---- */

.top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1060px;
	margin: 0 auto;
	padding: 22px 24px;
}

.top-logo img {
	width: 190px;
	height: auto;
	display: block;
}

.top-nav {
	display: flex;
	gap: 28px;
}

.top-nav a {
	font: 500 12px/1 'IBM Plex Mono', monospace;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink);
	text-decoration: none;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
}

.top-nav a:hover { border-bottom-color: var(--red); }

/* ---- shared bits ---- */

.chip {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--c, var(--ink));
	border: 1px solid rgba(22, 32, 46, 0.25);
	vertical-align: -1px;
	margin-right: 9px;
}

.eyebrow, .ftag {
	font: 500 12px/1 'IBM Plex Mono', monospace;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

h1, h2, h3 {
	font-family: 'Chakra Petch', 'IBM Plex Sans', sans-serif;
	line-height: 1.08;
}

h1 {
	font-size: clamp(2.5rem, 6.5vw, 4.3rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	margin: 18px 0 22px;
}

h2 {
	font-size: clamp(1.7rem, 3.4vw, 2.4rem);
	font-weight: 600;
	margin: 14px 0 14px;
}

h3 {
	font-size: 1.22rem;
	font-weight: 600;
	margin: 14px 0 10px;
}

.lede, .section-lede {
	color: var(--muted);
	font-size: 1.12rem;
	max-width: 620px;
}

/* ---- hero ---- */

.hero { padding: 56px 0 0; }

.wavelength {
	font: 400 13px/1.6 'IBM Plex Mono', monospace;
	color: var(--muted);
	border-left: 3px solid var(--red);
	padding: 2px 0 2px 14px;
	margin: 0 0 64px;
	max-width: 520px;
}

.fan { margin: 30px 0 34px; }

.fan svg { display: block; width: 100%; height: auto; }

.fan .sw { stroke: #fff; filter: drop-shadow(0 0 1px rgba(22,32,46,0.55)); }

/* light pulse travels each strand once on load */
.fan .s {
	stroke-dasharray: 1000 0;
	animation: none;
}

@media (prefers-reduced-motion: no-preference) {
	.fan .s {
		stroke-dasharray: 1000 1000;
		stroke-dashoffset: 1000;
		animation: draw 1.4s cubic-bezier(0.6, 0, 0.3, 1) forwards;
		animation-delay: calc(var(--i) * 70ms);
	}
	.fan .tips circle {
		opacity: 0;
		animation: pop 0.3s ease-out forwards;
		animation-delay: 1.6s;
	}
}

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* ---- 12-strand divider ---- */

.strandbar {
	display: flex;
	height: 3px;
}

.strandbar i { flex: 1; }
.strandbar i:nth-child(1)  { background: var(--blue); }
.strandbar i:nth-child(2)  { background: var(--orange); }
.strandbar i:nth-child(3)  { background: var(--green); }
.strandbar i:nth-child(4)  { background: var(--brown); }
.strandbar i:nth-child(5)  { background: var(--slate); }
.strandbar i:nth-child(6)  { background: var(--white); }
.strandbar i:nth-child(7)  { background: var(--red); }
.strandbar i:nth-child(8)  { background: var(--black); }
.strandbar i:nth-child(9)  { background: var(--yellow); }
.strandbar i:nth-child(10) { background: var(--violet); }
.strandbar i:nth-child(11) { background: var(--rose); }
.strandbar i:nth-child(12) { background: var(--aqua); }

/* ---- sections ---- */

.section { padding: 72px 0 84px; }

.section-alt {
	background: var(--card);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	margin-top: 34px;
}

.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 26px 24px 28px;
}

.card p:last-child { color: var(--muted); font-size: 0.98rem; }

.section-alt .card { background: var(--paper); }

/* ---- service path ---- */

.pathline {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 40px 0 16px;
	overflow-x: auto;
	padding-bottom: 6px;
	font: 500 13px/1 'IBM Plex Mono', monospace;
	white-space: nowrap;
}

.pathline .node {
	border: 1.5px solid var(--ink);
	border-radius: 7px;
	padding: 10px 14px;
	background: var(--paper);
}

.pathline .link {
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0 10px 14px;
	position: relative;
	flex: 1 0 auto;
	text-align: center;
	min-width: 76px;
}

.pathnote {
	color: var(--muted);
	font-size: 0.95rem;
	max-width: 620px;
	margin: 0 0 40px;
}

.pathline .link::after {
	content: '';
	position: absolute;
	left: 6px;
	right: 6px;
	bottom: 2px;
	height: 2px;
	background: var(--red);
}

/* ---- specs list ---- */

.specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
	margin: 8px 0 36px;
}

.specs > div {
	display: grid;
	grid-template-columns: 148px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.specs dt {
	font: 500 12px/1.5 'IBM Plex Mono', monospace;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding-top: 3px;
}

.specs dd { color: var(--muted); font-size: 0.98rem; }

.status { color: var(--muted); }

.status a { color: var(--ink); font-weight: 500; }

/* ---- contact ---- */

.mail {
	display: inline-block;
	margin-top: 26px;
	font: 500 clamp(1.15rem, 3vw, 1.7rem)/1 'IBM Plex Mono', monospace;
	color: var(--ink);
	text-decoration: none;
	border: 1.5px solid var(--ink);
	border-radius: 9px;
	padding: 16px 22px;
	transition: background 0.15s, color 0.15s;
}

.mail:hover, .mail:focus-visible {
	background: var(--ink);
	color: var(--paper);
}

/* ---- footer ---- */

.foot-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: 22px;
	padding-bottom: 30px;
	color: var(--muted);
	font-size: 0.9rem;
}

.foot-note { font: 400 12px/1 'IBM Plex Mono', monospace; letter-spacing: 0.08em; }

/* ---- focus & responsive ---- */

a:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
	border-radius: 3px;
}

@media (max-width: 860px) {
	.cards { grid-template-columns: 1fr; }
	.specs { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	.top { flex-direction: column; gap: 14px; }
	.top-logo img { width: 170px; }
	.hero { padding-top: 30px; }
	.specs > div { grid-template-columns: 1fr; gap: 4px; }
}
