/* ================================================================
   sections: hero + capabilities (prism stage)
   ================================================================ */
.ico { width: 16px; height: 16px; flex: none; }

.prism-stage { position: relative; background: var(--ink-950); isolation: isolate; overflow: clip; }
.prism-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.flow path { fill: none; stroke: var(--c); stroke-linecap: round; stroke-linejoin: round; }
.flow .flow-line { stroke-width: 1.6; }
.flow .flow-glow { stroke-width: 7; opacity: .26; }
.flow path { stroke-dasharray: 1 1; }
.flow path[data-kind="exit"] { stroke-dashoffset: calc(1 - var(--p-exit, 1)); }
.cap-land { opacity: clamp(.25, (var(--p-exit, 1) - .92) * 12.5, 1); transition: opacity 200ms linear; }

/* the lane: one line of light from capability 01 down the margin into the contact prism */
main { position: relative; }
.lane { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.lane path { fill: none; stroke: var(--c); stroke-linecap: round; stroke-linejoin: round; }
.lane .lane-line { stroke-width: 1.2; }
.lane .lane-glow { stroke-width: 6; }
.lane-node { fill: var(--beam-b); stroke: var(--ink-950); stroke-width: 3; paint-order: stroke; }
/* the lane's head: a point of light that leads the line down the page (motion build) */
.lane-head .lh-glow { fill: url(#flareGrad); opacity: .85; }
.lane-head .lh-core { fill: var(--beam-a); }
.lane-head { opacity: var(--head-on, 0); transition: opacity 300ms var(--ease-out); }
.works-rail { position: relative; z-index: 5; }   /* project cards pass over the lane */

/* intro guard (html.intro-pending is set by the inline head script, removed by motion.js or a 1.5s timeout) */
.intro-pending .hero-title .line-in,
.intro-pending .hero-sub,
.intro-pending .hero .cta-row,
.intro-pending .prism-img,
.intro-pending .prism-light,
.intro-pending .prism-cap { opacity: 0; }
.intro-pending .prism-stage { --p-exit: 0; }
.is-intro .hero-title .line { overflow: hidden; overflow: clip; padding-block: .1em; margin-block: -.1em; }   /* hidden where clip is unknown (Safari 15 and older): the words still rise masked */
.hero-title em.shine {
  background: linear-gradient(100deg, var(--brand-tint) 38%, #FFFFFF 50%, var(--brand-tint) 62%) 100% 0 / 300% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* hero */
/* the first min-height is for browsers without svh (on a desktop 100vh is 100svh; phones set their own below) */
.hero { position: relative; min-height: max(780px, 100vh); min-height: max(780px, 100svh); display: flex; align-items: center; padding-top: var(--header-h); }
/* its width and side margins come from .wrap alone (base.css, phones included): a copy of them here, later in the
   cascade, had won over the phones' wider left margin (review 5 HIGH-1) */
.hero-grid { position: relative; z-index: 3; }
.hero-copy { max-width: 660px; padding-block: 24px 84px; }
.hero-title { font-size: var(--fs-hero); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.hero-title .line { display: block; padding-bottom: .02em; }
.hero-title .line-in { display: inline-block; }
.hero-title em { color: var(--brand-tint); }
.hero-sub { margin-top: 34px; font-size: 18px; line-height: 1.78; color: var(--on-dark-2); max-width: 29em; }
.cta-row { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 72px; padding-top: 18px; max-width: 560px; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px;
  font-size: 13px; line-height: 1.4; color: var(--on-dark-3);
}
.hero-meta .hm-since { font: 600 11.5px/1.4 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--on-dark-2); }
.hero-meta .hm-kw { letter-spacing: .01em; word-spacing: .1em; }

/* 3안 (09-25 night): B's pose, the A a little larger than B's 700px: 120px past the content's right line, never more
   than 40px past the screen (the stage clips it), the bead on the hero's middle below the header. Never wider than
   0.9 of the hero's height: on short windows (a 1440x900 laptop's is about 1440x790) the three exits need that room
   to turn down to the capabilities (at 0.93 and up they stepped back up, measured 09-25 night). The cap leans on
   the header (80px), the capabilities' top padding (88px) and the exits' bend in flow.js. The first width and top
   are for browsers without svh (vh there, the same on a desktop). A declaration with a var() is only checked once
   computed, so a browser without svh would keep an svh line holding one and then drop it to auto: the width lines
   hold no var(), and the top's svh form, which follows the header's height, waits in @supports below (review 9
   trivial 1: it had the header's 40px written in) */
.hero-prism {
  position: absolute; z-index: 1; aspect-ratio: 7 / 8;
  width: min(800px, 56vw, max(780px, 100vh) * .9);
  width: min(800px, 56vw, max(780px, 100svh) * .9);
  right: max(-40px, calc(50% - var(--container) / 2 - 120px));
  top: calc(50% + var(--header-h) / 2 - min(800px, 56vw, max(780px, 100vh) * .9) * 0.515);
}
@supports (height: 1svh) {
  .hero-prism { top: calc(50% + var(--header-h) / 2 - min(800px, 56vw, max(780px, 100svh) * .9) * 0.515); }
}
/* Safari 15 and older have no overflow: clip, so neither the stage nor the body would cut the A's 40px past the
   screen, and the page would scroll sideways: there the A stops at the screen's edge (review 9 LOW 3) */
@supports not (overflow: clip) {
  .hero-prism { right: max(0px, calc(50% - var(--container) / 2 - 120px)); }
}
.prism-img { width: 100%; height: 100%; }   /* edge fade is baked into the PNG alpha (tools/feather.py) */
.prism-cap { position: absolute; right: 9%; top: 11%; display: grid; justify-items: end; gap: 6px; text-align: right; }
.prism-tag { font-size: 13px; font-weight: 500; letter-spacing: .01em; color: var(--on-dark-2); }
/* the bead's light and the pointer light (09-24, variant B). Placed on the bead of the render (beams.json
   hero dot 700,719 of 1400x1600); js/hero-light.js moves them, transform, opacity and --core only */
@property --core { syntax: '<number>'; initial-value: .45; inherits: false; }
.prism-light { position: absolute; inset: 0; pointer-events: none; }
.prism-light > span { position: absolute; }
/* the bead's own light: a white core in an ice halo, level --core (0 out, 1 full) */
.prism-core {
  left: 50%; top: 44.94%; width: 22%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(201, 193, 255, .55) 22%, rgba(139, 123, 255, .22) 48%, rgba(106, 76, 255, 0) 100%);
  opacity: calc(var(--core, .45) * .9); transform: translate(-50%, -50%) scale(calc(.72 + var(--core, .45) * .36));   /* fallback: browsers without @property */
}
/* a small highlight riding on the bead, moved toward the pointer */
.prism-glint {
  left: 50%; top: 44.94%; width: 3.2%; aspect-ratio: 1; margin: -1.1% 0 0 -1.1%; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); transform: translate(-50%, -50%);
}
/* a soft sheen on the glass on the pointer's side, kept on the glass by the render's matte. Only a fine pointer
   drives it, so phones and tablets neither lay it out nor download the matte */
.prism-sheen { inset: 0; overflow: hidden; mix-blend-mode: screen; }
@media (hover: hover) and (pointer: fine) {
  .prism-sheen { -webkit-mask: url("../img/hero-matte.png") 0 0 / 100% 100% no-repeat; mask: url("../img/hero-matte.png") 0 0 / 100% 100% no-repeat; }
}
@media not all and (hover: hover) and (pointer: fine) {
  .prism-sheen { display: none; }
}
.prism-sheen-blob {
  position: absolute; left: 50%; top: 42%; width: 56%; height: 44%; border-radius: 50%; opacity: 0; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(236, 232, 255, .30), rgba(236, 232, 255, 0)); will-change: transform, opacity;
}
/* blend modes do not survive a Figma capture: the render alone carries the bead there */
/* Figma capture: hover underlines (zero-width backgrounds) are captured at full size, so leave them out */

/* capabilities */
.capabilities { position: relative; z-index: 3; padding-block: 88px 112px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.cap-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.cap-link { position: relative; display: block; padding: 40px 36px 8px 0; border-top: 1px solid var(--line-dark); }
.cap-link::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 96px;
  background: linear-gradient(90deg, var(--c), transparent);
}
.cap-land { position: absolute; left: -3px; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--ink-950), 0 0 14px 2px var(--c); }
.cap h3 { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; letter-spacing: -0.03em; }
.cap p { margin-top: 12px; font-size: 16px; line-height: 1.7; color: var(--on-dark-2); max-width: 20em; }
.cap-go { position: absolute; right: 0; top: 42px; color: var(--on-dark-3); transition: transform 320ms var(--ease-out), color var(--t-fast) var(--ease-out); }
.cap-link:hover .cap-go, .cap-link:focus-visible .cap-go { color: var(--c); transform: translate(2px, -2px); }
.cap-link:hover h3 { color: #FFFFFF; }

/* small laptops and landscape tablets keep the prism beside a narrower copy column */
@media (min-width: 901px) and (max-width: 1180px) {
  .hero-copy { max-width: 53%; }
  .hero-title { font-size: clamp(50px, 6.2vw, 72px); }
  .hero-sub { font-size: 17px; }
}
/* portrait tablets and phones: the prism sits under the copy, so no light crosses the headline */
@media (max-width: 900px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: calc(var(--header-h) + 72px); }
  .hero-copy { max-width: 560px; padding-block: 0; }
  .hero-prism { position: relative; right: auto; top: auto; width: min(100%, 640px); margin: 24px auto 0; }
  .prism-cap { right: 6%; top: 8%; }
}
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-list { grid-column: 1; }
}

@media (max-width: 640px) {
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-top: calc(var(--header-h) + 36px); }
  .hero-copy { padding-block: 0; }
  .hero-sub { margin-top: 22px; font-size: 16px; }
  .cta-row { margin-top: 30px; }
  .hero-meta { margin-top: 40px; gap: 6px 18px; font-size: 12px; }
  .cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* one width for both buttons (09-24 detail audit 3): a grid, since only the ghost button has a border */
  .cta-row .btn { padding-inline: 20px; }
  .hero-prism { position: relative; right: auto; top: auto; width: min(100%, 420px); margin: 8px auto 0; }
  .prism-cap { right: 5%; top: 7%; }
  .capabilities { padding-block: 64px 96px; }
  .cap-list { grid-template-columns: 1fr; gap: 0; margin-top: 0; }
  .cap-link { padding: 22px 28px 26px 52px; border-top: 0; }
  .cap-link::before { display: none; }
  .cap-land { left: calc(var(--lane) * 12px + 6px); top: 30px; }
  .cap-go { top: 26px; }
}

/* ================================================================
   about (light)
   ================================================================ */
.about { padding-block: 176px 168px; }
/* the motion build holds the About for 60% of a screen from 1025px (scenes.js): at least a screen tall there, so its
   paper fills the window while it holds (review 14 H1: at 764px it left the pin-spacer's dark ground under it, 136px
   at 1440x900). Still pages, Figma and phones keep the section's own height. vh, not svh: on a touch screen of 1025px
   and up the small viewport would leave a band while its browser bar is folded (review 15 L-3) */
@media (min-width: 1025px) { .motion-on .about { min-height: 100vh; } }
.statement { font-size: var(--fs-statement); line-height: 1.06; font-weight: 700; letter-spacing: -0.04em; color: var(--on-light-1); }
.statement .st-line { display: block; width: fit-content; }
/* scroll fill, only when the motion layer is on (static, Figma, no-JS keep solid ink) */
.motion-on .statement .st-line {
  background: linear-gradient(90deg, var(--on-light-1) 50%, #C4C4CE 50%) calc((1 - var(--fill, 1)) * 100%) 0 / 200% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gutter); align-items: start; }   /* the statement across the width, the lead under it (09-27) */
.about-lead {
  position: relative; justify-self: end; width: min(100%, 520px); margin-top: 56px; padding-top: 28px; margin-bottom: 10px;
  font-size: var(--fs-lead); line-height: 1.8; color: var(--on-light-2);
}
.about-lead::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 1px; background: linear-gradient(90deg, var(--brand), transparent); }
/* "데이터와 운영": four cells under a label. Since the owner's copy notes (09-27) they close the technology section, on
   the dark ground (in About until then) */
.values { margin-top: 120px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line-dark); }
.value { position: relative; padding: 36px 56px 44px 0; border-top: 1px solid var(--line-dark); }
.value:nth-child(2n) { padding: 36px 0 44px 56px; border-left: 1px solid var(--line-dark); }
.value h3 { font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -0.03em; color: var(--on-dark-1); }
.value p { margin-top: 14px; font-size: 16px; line-height: 1.78; color: var(--on-dark-2); max-width: 30em; }
.values-label { margin-top: 120px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--brand-tint); }
.values-label + .values { margin-top: 20px; }
/* about scene (motion build): the paper section spreads out of capability 01's light */
.is-dawn { clip-path: circle(calc(var(--rv, 1) * var(--rmax, 200vmax)) at var(--rx, 50%) var(--ry, 0)); }
.is-dawn.is-lit { clip-path: none; }

/* ================================================================
   services (dark)
   ================================================================ */
.services { padding-block: 168px 160px; }
.svc-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: end; }
.svc-head .h2 .line { display: block; }
.svc-head .lead { justify-self: end; font-size: 17px; max-width: 28em; }
.svc-list { margin-top: 96px; border-bottom: 1px solid var(--line-dark); }
.svc {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 40px; gap: var(--gutter); align-items: center;
  padding: 34px 0; border-top: 1px solid var(--line-dark); overflow: hidden;
}
.svc:focus-visible { outline-offset: -3px; }
.svc::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 38%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--beam-a), var(--beam-b), transparent);
  transform: translateX(-105%); transition: transform 900ms var(--ease-out);
}
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--brand-rgb), .08), transparent 55%); opacity: 0; transition: opacity 420ms var(--ease-out); pointer-events: none; }
.svc--link:hover::before, .svc--link:focus-visible::before { transform: translateX(270%); }
.svc--link:hover::after, .svc--link:focus-visible::after { opacity: 1; }
.svc-t { position: relative; z-index: 1; font-size: 24px; line-height: 1.35; font-weight: 600; letter-spacing: -0.03em; color: var(--on-dark-1); transition: transform 420ms var(--ease-out), color var(--t-fast) var(--ease-out); }
/* the list is numbered (SPEC 6-04): a small index set on the title's cap line */
.svc-n { display: inline-block; min-width: 2.4em; margin-right: 14px; font: 600 12px/1 var(--f-sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; color: var(--on-dark-3); vertical-align: text-top; padding-top: .35em; }
.svc-d { position: relative; z-index: 1; font-size: 16px; line-height: 1.7; color: var(--on-dark-2); text-wrap: pretty; }   /* no width cap: rows of one height (09-24 detail audit 6) */
.svc-go { position: relative; z-index: 1; justify-self: end; width: 20px; height: 20px; color: var(--on-dark-3); transition: transform 320ms var(--ease-out), color var(--t-fast) var(--ease-out); }
.svc--link:hover .svc-t, .svc--link:focus-visible .svc-t { transform: translateX(10px); color: #FFFFFF; }
.svc--link .svc-go { color: var(--brand-tint); }
.svc--link:hover .svc-go, .svc--link:focus-visible .svc-go { transform: translateX(4px); }
.svc-foot { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.svc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.svc-caption { font-size: 14px; color: var(--on-dark-2); }

@media (max-width: 1024px) {
  .about { padding-block: 136px 128px; }
  .about-lead { justify-self: start; margin-top: 48px; }
  .svc-head { grid-template-columns: 1fr; align-items: start; }
  .svc-head .lead { justify-self: start; margin-top: 24px; }
  .svc-list { margin-top: 64px; }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 32px; padding: 30px 0; }
  .svc-t { font-size: 21px; }
}
@media (max-width: 640px) {
  .about { padding-block: 104px 96px; }
  .about-lead { margin-top: 36px; width: 100%; }
  .services { padding-block: 104px 96px; }
  .svc { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "t go" "d d"; row-gap: 8px; padding: 24px 0; }
  .svc-t { grid-area: t; font-size: 19px; }
  .svc-n { display: block; min-width: 0; margin: 0 0 6px; padding-top: 0; }   /* the number above the title: one start line with the text */
  .svc-d { grid-area: d; font-size: 15px; }
  .svc-go { grid-area: go; }
  .svc--link:hover .svc-t, .svc--link:focus-visible .svc-t { transform: none; }
  .svc-foot { flex-direction: column; align-items: stretch; }
  .svc-actions .btn { width: 100%; }
}

/* ================================================================
   selected works (light) + partner credits
   ================================================================ */
.works { padding-block: 168px 150px; overflow: clip; }
.works-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; }
.works-title { font: 700 var(--fs-display)/.95 var(--f-sans); letter-spacing: -0.05em; color: var(--on-light-1); }
.works-lead { align-self: end; padding-bottom: 12px; font-size: 17px; line-height: 1.7; color: var(--on-light-2); max-width: 22em; text-wrap: balance; }
.rail-ctl { display: flex; gap: 10px; padding-bottom: 6px; }
.rail-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-light-strong); color: var(--on-light-1);
  transition: background-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), opacity var(--t-fast);
}
.rail-btn .ico { width: 18px; height: 18px; }
.rail-btn .flip { transform: scaleX(-1); }
.rail-btn:hover:not(:disabled) { background: var(--on-light-1); color: var(--paper-50); border-color: var(--on-light-1); }
.rail-btn:disabled { opacity: .32; cursor: default; }

.works-rail {
  --edge: max(var(--margin), calc((100% - var(--container)) / 2));
  display: flex; gap: var(--gutter); margin-top: 64px; padding: 4px var(--edge) 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  scrollbar-width: none; cursor: grab;
}
.works-rail::-webkit-scrollbar { display: none; }
.works-rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.works-rail.is-drag * { pointer-events: none; }
.works-rail:focus-visible { outline-offset: -2px; border-radius: 12px; }
/* works scene (motion build, 1025+): page scrolling drives the rail, so no snapping or dragging. Pinned, the
   head, the rail and the progress line share the screen under the header: tighter gaps, and the card art
   gives way on shorter screens (the frames hang from the top, so a shorter card only trims their base).
   483 = header and a 16px gap above the head, a 24px margin below the line, and everything but the art */
.works-rail.is-driven { scroll-snap-type: none; cursor: default; margin-top: 40px; overflow-x: hidden; }   /* a sideways swipe would fight the link */
.works-rail.is-driven .work-visual { height: clamp(320px, calc(100vh - 483px), 440px); }
/* in short windows the scene's cards are 320px high (to 803px, then up to 337px at 820): there the phone sits a little lower, so lifted on hover (-12px)
   its top stays inside the card with room (review 5 LOW-3: it lost 2px at 1440x800). Only there: at -14% the lift
   leaves under 4px only below 808px, and taller windows keep the phone where it rests everywhere else (review 6 L4) */
@media (max-height: 820px) { .works-rail.is-driven .frame--phone { bottom: -18%; } }
.works-rail.is-driven + .wrap .rail-progress { margin-top: 28px; }

.work { position: relative; flex: 0 0 520px; scroll-snap-align: start; }
.work--feature { flex-basis: 760px; }
.work-visual {
  position: relative; height: 440px; border-radius: var(--r-card); overflow: hidden; isolation: isolate;
  background: var(--work-bg, #14141C);   /* browsers without color-mix() keep the card colour */
  background:
    radial-gradient(120% 90% at 78% 8%, color-mix(in srgb, var(--work-glow, #6A4CFF) 55%, transparent), transparent 60%),
    var(--work-bg, #14141C);
}
/* the same light that runs through the page crosses every project visual */
.work-visual::before {
  content: ""; position: absolute; z-index: 0; left: -10%; top: 64%; width: 130%; height: 1px; transform: rotate(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28) 40%, rgba(201, 193, 255, .55) 55%, transparent 80%);
  box-shadow: 0 0 18px 2px rgba(139, 123, 255, .25);
}
.frame { position: absolute; z-index: 1; overflow: hidden; background: #0B0B10; transition: transform 700ms var(--ease-out); }
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.frame--browser { left: 7%; top: 11%; width: 82%; aspect-ratio: 16 / 11; border-radius: 10px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); }
.frame--browser img { height: calc(100% - 28px); }
/* the whole screen width shows (09-24 detail audit 2), and the frame takes the screenshot's height (1:2), so no empty
   foot shows as a dark band when a short card lifts the phone on hover (review 4) */
.frame--phone img { height: auto; }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #1B1B24; }
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: #3A3A48; }
.frame-bar span { margin-left: 10px; font: 500 10.5px/1 var(--f-sans); letter-spacing: .02em; color: #8E8EA2; }
.frame--phone { right: 6%; bottom: -14%; width: 24%; border-radius: 22px; border: 5px solid #0B0B10; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); }
.work:not(.work--feature) .frame--browser { width: 84%; left: 6%; }
.work:not(.work--feature) .frame--phone { width: 27%; }
.panel { position: absolute; z-index: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform 700ms var(--ease-out); }
.panel img { width: 100%; height: auto; }
.panel--back { left: 8%; top: 9%; width: 62%; opacity: .9; }
.panel--front { right: 6%; bottom: 10%; width: 72%; }
.panel--window { left: 50%; top: 50%; width: 80%; transform: translate(-50%, -50%); border-radius: 6px; }
.work:hover .frame--browser, .work:hover .panel--front { transform: translateY(-6px); }
.work:hover .frame--phone, .work:hover .panel--back { transform: translateY(-12px); }
.work:hover .panel--window { transform: translate(-50%, calc(-50% - 6px)); }

.work--private .work-visual { background: radial-gradient(90% 80% at 80% 10%, rgba(106, 76, 255, .22), transparent 60%), #16161D; }
.skel { position: absolute; inset: 14% 10% 16%; display: grid; grid-template-columns: 1fr 3fr; gap: 14px; filter: blur(1.5px); opacity: .7; }
.skel-side { display: grid; align-content: start; gap: 10px; padding: 14px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.skel-side i { height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .09); }
.skel-side i:nth-child(2n) { width: 70%; }
.skel-main { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skel-main b { border-radius: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02)); }
.work-lock { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(12, 12, 18, .78); border: 1px solid rgba(255, 255, 255, .12); color: #D7D7E3; font-size: 13px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.work-lock .ico { width: 15px; height: 15px; }

.work-body { padding: 26px 6px 0 2px; }
.work-cat { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; color: var(--brand); }
.work-title { margin-top: 10px; font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -0.03em; color: var(--on-light-1); }
/* inline, so the arrow follows the title's last word when the title wraps (09-24 detail audit 5) */
.work-link { display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 400ms var(--ease-out); }
.work-link::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--r-card); }
.work-link .ext { display: inline-block; width: 14px; height: 14px; margin-left: 6px; vertical-align: -1px; color: var(--on-light-3); }
.work:hover .work-link { background-size: 100% 1px; }
.work-link:focus-visible { outline: none; }
.work-link:focus-visible::after { outline: 2px solid var(--brand); outline-offset: 4px; }
.work-desc { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--on-light-2); max-width: 34em; }
.work-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--on-light-3); }
/* the dot ends an item instead of starting the next, so a wrapped line never begins with it */
.work-meta li:not(:last-child)::after { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 0 3px 14px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.work-meta a { position: relative; z-index: 4; }
@media (pointer: coarse) { .work-meta a { display: inline-block; padding-block: 11px; margin-block: -11px; } }   /* a 44px touch target: the 22.75px line and 11px above and below, given back by the margins, so the text does not move */
.work-meta a:hover, .work-meta a:focus-visible { color: var(--on-light-1); text-decoration: underline; text-underline-offset: .28em; }
.work:has(.work-meta a:hover) .work-link { background-size: 0 1px; }

.rail-progress { position: relative; height: 1px; margin-top: 40px; background: var(--line-light); overflow: hidden; }
.rail-progress span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand), var(--brand-tint)); transform-origin: left; transform: scaleX(.3); transition: transform 300ms var(--ease-out); }
.is-static .rail-progress span { transition: none; }

/* "함께한 곳" (the owner, 09-27): one list of company names set like a row of wordmarks, "(주)" small in front, a thin
   rule between two names on one line, "외" after the last. On phones the label sits above and the names wrap, no rules */
.credits { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; color: var(--on-light-3); }
.credits-title { font-size: 14px; font-weight: 600; color: var(--on-light-1); }
.cr-list { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 6px; }
.cr { white-space: nowrap; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--on-light-2); }
.cr + .cr::before { content: ""; display: inline-block; width: 1px; height: 13px; margin: 0 18px; background: var(--line-light-strong); vertical-align: -1px; }
.cr-legal { margin-right: 2px; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--on-light-3); }
.cr-etc { margin-left: 2px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--on-light-3); }

@media (max-width: 1024px) {
  .works { padding-block: 136px 128px; }
  .works-head { grid-template-columns: minmax(0, 1fr) auto; }
  .works-title { grid-column: 1 / -1; }
  .works-lead { padding-bottom: 6px; }
  .work { flex-basis: 440px; }
  .work--feature { flex-basis: 620px; }
  .work-visual { height: 380px; }
}
@media (max-width: 640px) {
  .works { padding-block: 104px 96px; }
  .works-head { grid-template-columns: 1fr; }
  .works-lead { padding-bottom: 0; }
  .rail-ctl { display: none; }
  .works-rail { margin-top: 40px; cursor: auto; padding-left: var(--margin-l); scroll-padding-left: var(--margin-l); }
  .work, .work--feature { flex-basis: 86%; }
  .work-visual { height: 300px; }
  .frame--phone { width: 30%; }
  .rail-progress { margin-top: 28px; }
  .credits { display: block; }
  .credits-title { display: block; margin-bottom: 8px; }   /* the label on a line of its own, the names under it */
  .cr-list { column-gap: 20px; }
  .cr { font-size: 16px; }
  .cr + .cr::before { content: none; }   /* no rules: a wrapped line would begin with one */
}

/* ================================================================
   technology (deep dark): the light passes through the pipeline
   ================================================================ */
.section--deep { background: var(--ink-950); color: var(--on-dark-1); }
.tech-sec { padding-block: 168px 168px; overflow: clip; }
.tech-head { display: grid; gap: 24px; max-width: 760px; }
.pipe { position: relative; margin-top: 96px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.pipe-flow { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pipe-flow path { fill: none; stroke: var(--c); stroke-linecap: round; }
.pipe-flow .flow-line { stroke-width: 1.5; }
.pipe-flow .flow-glow { stroke-width: 7; opacity: .24; }
/* the four stops of the light line are the four technologies themselves (the owner's copy notes, 09-27: the English
   steps and the separate list gone): a dot, a title and a line each */
.pipe-node { position: relative; display: grid; gap: 12px; padding-top: 44px; align-content: start; }
.pipe-dot { position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--beam-b); box-shadow: 0 0 0 4px var(--ink-950), 0 0 18px 3px rgba(166, 212, 255, .55); }
.pipe-node h3 { font-size: 20px; line-height: 1.4; font-weight: 600; letter-spacing: -0.025em; color: var(--on-dark-1); }
.pipe-node p { font-size: 15px; line-height: 1.78; color: var(--on-dark-2); }

/* ================================================================
   insights (light): three posts with prism covers
   ================================================================ */
.insights { padding-block: 168px 160px; }
/* the button to all posts follows the posts in the page's order (keyboard and screen readers meet it after them),
   and the grid puts it at the head's top right on screen (review 4 L-9) */
.insights .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--gutter); align-items: end; }
.ins-head { grid-column: 1; grid-row: 1; }
.ins-head-text { display: grid; gap: 22px; }
.ins-head .lead { font-size: 17px; max-width: 30em; }
.ins-all { grid-column: 2; grid-row: 1; justify-self: end; }
.ins-list { grid-column: 1 / -1; grid-row: 2; margin-top: 72px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.ins-link { position: relative; display: flex; flex-direction: column; height: 100%; }
.ins-cover { position: relative; display: block; aspect-ratio: 1200 / 630; border-radius: var(--r-card); overflow: hidden; background: radial-gradient(90% 90% at 100% 0%, var(--cover-glow, rgba(106, 76, 255, .14)), transparent 62%), var(--cover-bg, var(--paper-50)); border: 1px solid var(--line-light); transition: border-color 400ms var(--ease-out); }
/* three covers that differ (owner 09-25): the category sets the tint; the beam and its dot stay the brand purple */
.ins-cover[data-cat="web"] { --cover-bg: #F5F3FF; --cover-glow: rgba(139, 123, 255, .30); }
.ins-cover[data-cat="cafe24"] { --cover-bg: #F1F7FF; --cover-glow: rgba(110, 176, 255, .32); }
.ins-cover[data-cat="automation"] { --cover-bg: #FBF7EC; --cover-glow: rgba(217, 169, 28, .24); }
.ins-word { position: absolute; left: 28px; bottom: 22px; font-size: clamp(40px, 3.6vw, 52px); line-height: 1; font-weight: 700; letter-spacing: -0.045em; color: var(--on-light-1); }
/* one line of light lands on the word: it starts 14px off the word's top right corner (clear of the letters, with room over the 12px
   check-layout keeps) and leaves the cover up to the right (09-24 detail audit 9: the dot had floated 50 to 80px above the word) */
.ins-beam { position: absolute; left: calc(100% + 14px); top: -10px; width: 640px; height: 1px; transform-origin: left center; transform: rotate(var(--ang, -28deg)); background: linear-gradient(90deg, var(--brand), rgba(106, 76, 255, .55) 120px, rgba(106, 76, 255, 0) 380px); pointer-events: none; }
.ins-beam::after { content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--cover-bg, var(--paper-50)), 0 0 12px rgba(var(--brand-rgb), .6); }
.ins:nth-child(2) .ins-beam { --ang: -24deg; }
.ins:nth-child(3) .ins-beam { --ang: -32deg; }
/* a post with its own thumbnail shows it, as the /blog list does (pages.css .pg-thumb, owner 10-12); the word cover above stays for a post without one, in the same 1200 by 630 frame */
.ins-thumb { display: block; border-radius: var(--r-card); overflow: hidden; background: var(--ink-900); border: 1px solid var(--line-light); transition: border-color 400ms var(--ease-out); }
.ins-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.ins-link:hover .ins-cover, .ins-link:focus-visible .ins-cover, .ins-link:hover .ins-thumb, .ins-link:focus-visible .ins-thumb { border-color: rgba(var(--brand-rgb), .35); }
.ins-title { margin-top: 22px; padding-right: 28px; font-size: 20px; line-height: 1.45; font-weight: 600; letter-spacing: -0.025em; color: var(--on-light-1); text-wrap: wrap; text-wrap: pretty; }   /* not balanced (balancing broke the part before the comma to even the lines); pretty keeps a short word off a line of its own, the tail's too (it inherits); wrap first, for browsers without pretty, or they drop it and take the h3's balance (review 6 M1) */
/* the hover underline sits on inline boxes only (the title's head, and the inline inside its tail), so each line
   has exactly one (review 4 M-2: the tail's inline-block inside the underlined span had drawn a second one) */
.ins-title .ins-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 420ms var(--ease-out); }
.ins-link:hover .ins-title .ins-u, .ins-link:focus-visible .ins-title .ins-u { background-size: 100% 1px; }
.ins-ex { display: block; margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--on-light-2); text-wrap: pretty; }
.ins-ex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* a title breaks after its comma, not inside the phrase that follows it */
.ins-tail { display: inline-block; }
.ins-title, .ins-ex { overflow-wrap: anywhere; }   /* a run a card cannot break (a long word, a head's last two words bound, a new post's title or description) breaks inside the card instead of widening it: from 641px each card's own auto column, up to 640px the list's 1fr column, takes its content's minimum width; the tail inherits it (PLAN-SITE-2 Task 19, ledger 414) */
/* the three cards share their rows, so the excerpts start on one line whatever the titles take. Browsers without
   subgrid keep each card a column (a plain grid would share the spare height among the card's rows, review 4 L-3) */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 641px) {
    .ins-list { grid-template-rows: auto auto auto; }
    .ins { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
    .ins-link { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
  }
}
.ins-go {
  position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; padding: 11px; border-radius: 50%;
  background: var(--on-light-1); color: #FFFFFF;
  opacity: 0; transform: translate(-4px, 4px); transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}
.ins-link:hover .ins-go, .ins-link:focus-visible .ins-go { opacity: 1; transform: none; }
.ins-thumb ~ .ins-go { background: var(--paper-50); color: var(--on-light-1); }

@media (max-width: 1024px) {
  .tech-sec { padding-block: 136px 136px; }
  .insights .wrap { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ins-all { grid-column: 1; grid-row: 2; justify-self: start; margin-top: 28px; }
  .ins-list { grid-row: 3; }
  /* one column from here down: with a title and a line in each stop, four columns grow too narrow, and a two by two
     grid would leave the dots neither in a row nor in a column (flow.js would join them in a zigzag, and the lane
     hands its light over to a row or a column only) */
  .pipe { grid-template-columns: 1fr; row-gap: 0; margin-top: 72px; }
  .pipe-node { padding: 0 0 36px 36px; max-width: 40em; }
  .pipe-dot { top: 8px; }
  /* "데이터와 운영" (at the end of this section since 09-27; its rules stood with the About's until review 14 T2) */
  .values { margin-top: 96px; }
  .values-label { margin-top: 96px; }
  .value { padding-right: 32px; }
  .value:nth-child(2n) { padding-left: 32px; }
  .insights { padding-block: 136px 128px; }
  .ins-word { font-size: 40px; left: 22px; bottom: 18px; }
}
@media (max-width: 640px) {
  .tech-sec { padding-block: 104px 104px; }
  .pipe { margin-top: 64px; }
  .values { grid-template-columns: 1fr; margin-top: 64px; }
  .values-label { margin-top: 64px; }
  .values-label + .values { margin-top: 12px; }
  .value, .value:nth-child(2n) { padding: 28px 0 32px; border-left: 0; }
  .insights { padding-block: 104px 96px; }
  .ins-list { grid-template-columns: 1fr; row-gap: 44px; margin-top: 48px; }
  /* the page's own order: the head, the posts, then the button to all of them */
  .insights .wrap { display: block; }
  .ins-all { width: 100%; margin-top: 40px; }
  .ins-word { font-size: 44px; }
}

/* ================================================================
   contact (deep dark): the light converges back into the prism
   ================================================================ */
.contact { padding-block: 176px 120px; overflow: clip; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px var(--gutter); align-items: start; }
.contact-title { font-size: 72px; line-height: 1.05; letter-spacing: -0.04em; }
.contact-intro .lead { margin-top: 28px; max-width: 24em; }
.contact-mail {
  margin-top: 44px; display: inline-flex; align-items: center; gap: 12px; padding-bottom: 8px;
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark-1);
  border-bottom: 1px solid var(--line-dark-strong); transition: border-color var(--t-fast) var(--ease-out);
}
.contact-mail:hover { border-color: var(--brand-tint); }
.contact-mail .ico { width: 20px; height: 20px; color: var(--brand-tint); }
@media (pointer: coarse) { .contact-mail { min-height: 44px; } }   /* a 44px touch target (42px on phones before) */
.founder {
  grid-column: 1 / -1; position: relative; margin: 32px 0 0; padding-top: 36px; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px var(--gutter); align-items: end;
}
.founder::before { content: ""; position: absolute; left: 0; top: -1px; width: 72px; height: 1px; background: linear-gradient(90deg, var(--beam-a), transparent); }
.founder blockquote { margin: 0; }
.founder blockquote p { font-size: 20px; line-height: 1.8; font-weight: 500; letter-spacing: -0.02em; color: var(--on-dark-1); max-width: 30em; }
.founder figcaption { display: flex; align-items: center; gap: 14px; justify-self: end; }
.founder-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark-strong); font: 600 14px/1 var(--f-sans); letter-spacing: .04em; color: var(--brand-ice); }
.founder-who { display: grid; gap: 2px; }
.founder-name { font-size: 15px; font-weight: 600; color: var(--on-dark-1); }
.founder-role { font-size: 13px; color: var(--on-dark-2); }

.contact-form-wrap { position: relative; }
.contact-crest { position: relative; display: block; width: min(100%, 340px); margin: 56px 0 0 -28px; pointer-events: none; }
.contact-prism { display: block; width: 100%; height: auto; }
/* the same render with the core brightened: it fades in as the lane arrives */
.contact-lit { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--lit-c, 0); }
.form-card {
  position: relative; z-index: 1; display: grid; gap: 20px; padding: 40px; border-radius: var(--r-card);
  background: rgba(18, 18, 26, .84); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, .9);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 10px; align-content: start; }   /* a row's fields stay level when only one carries a message (review 4 M-1) */
.field label { font-size: 13px; font-weight: 500; color: var(--on-dark-2); }
.req { color: var(--brand-tint); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--on-dark-1); caret-color: var(--brand-tint);
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-input);
  padding: 15px 16px; transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.field input { height: 54px; }
.field textarea { min-height: 168px; resize: none; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #8E8EA0; opacity: 1; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .22); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand-tint); outline-offset: 1px; border-color: transparent; background: rgba(255, 255, 255, .05); border-radius: var(--r-input); }
/* the browser's own marks only until contact.js takes over (it sets novalidate): the page marks fields after a
   send, while :user-invalid had turned a half typed email red, with no message, as soon as the field was left */
form:not([novalidate]) .field input:user-invalid, form:not([novalidate]) .field textarea:user-invalid { border-color: #E5697A; }
/* errors under the fields instead of the browser's bubbles: contact.js marks the field aria-invalid and fills the
   message tied to it by aria-describedby */
.field [aria-invalid="true"] { border-color: #E5697A; }
.field-error { font-size: 12.5px; line-height: 1.5; color: #FF9AA6; }
.form-fail { font-size: 12.5px; line-height: 1.5; color: #FF9AA6; text-align: center; }
.form-submit:disabled { opacity: .6; cursor: progress; }
/* phones and touch screens: 16px text, or iOS Safari zooms the page into the field on focus */
@media (max-width: 640px), (pointer: coarse) { .field input, .field textarea { font-size: 16px; } }
.form-submit { width: 100%; height: 58px; margin-top: 4px; }
.form-note { font-size: 12.5px; color: var(--on-dark-2); text-align: center; }
.form-hp { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* centred by auto margins between 20px insets: left 50% with a -50% shift had held its width to half the screen */
.toast {
  position: fixed; z-index: 60; left: 20px; right: 20px; bottom: 28px; width: fit-content; margin-inline: auto; transform: translateY(16px);
  padding: 14px 20px; border-radius: 14px; background: #1E1E2A; border: 1px solid var(--line-dark-strong); color: var(--on-dark-1);
  font-size: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out), visibility 0s linear 280ms;
}
.toast.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* the first line comes out of display: none (.toast:empty), where no transition starts: give it the same start */
@starting-style { .toast.is-on { opacity: 0; transform: translateY(16px); } }
.toast:empty { display: none; }

@media (max-width: 1024px) {
  .contact { padding-block: 136px 128px; }
  .contact-title { font-size: 60px; }
  .founder { grid-template-columns: 1fr; margin-top: 8px; }
  .founder figcaption { justify-self: start; }
}
/* two columns down to 861px: at 1024 one column had left the right half empty for about 850px. The prism keeps
   its desktop size beside the form (the two columns end together), and shrinks once the columns stack */
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-crest { margin-top: 40px; width: 300px; } }
@media (max-width: 640px) {
  .contact { padding-block: 104px 96px; }
  .contact-title { font-size: 44px; }
  .contact-mail { font-size: 19px; }
  .founder blockquote p { font-size: 16px; }
  .contact-crest { width: 240px; margin: 24px auto 0; }
  .form-card { padding: 24px 20px; border-radius: 20px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ================================================================
   motion hooks: every value defaults to the finished state (1);
   only the motion layer (html.motion-on) ever sets them lower
   ================================================================ */
.pipe-dot { opacity: calc(.3 + .7 * var(--lit, 1)); transform: scale(calc(.6 + .4 * var(--lit, 1))); }
.pipe-flow path[data-kind="pipe"] { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p-pipe, 1)); }
.contact-crest { opacity: var(--crest, 1); transform: translateY(calc((1 - var(--crest, 1)) * 28px)); }
.lane path[data-kind="lane"] { stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--p-lane, 1)); }
.lane-node { opacity: clamp(0, (var(--p-lane, 1) - var(--at, 0)) * 60, 1); }
.motion-on .lane, .intro-pending .lane { --p-lane: 0; }   /* the motion layer draws it with the scroll */
