/* After the story: a normal scrolling page over the room. Swiss editorial in the kaikode brand:
   paper #F7F7F5, ink #14161B, indigo only for the live things. One 12-column grid, one vertical rule after column 4.
   Type: Rethink Sans only (brand rule 6): 600 for display, 400/500 for text and labels. Motion lives in content.js. */
.content { --paper: #F7F7F5; --ink: #14161B; --ink2: #555A66; --line: rgba(20, 22, 27, .14); --accent: #4257E0;
  --m: clamp(20px, 7vw, 150px); --g: clamp(10px, 1.2vw, 20px);
  --col: calc((100% - 2 * var(--m) - 11 * var(--g)) / 12);
  --rule: calc(var(--m) + 4 * var(--col) + 3.5 * var(--g));
  --display: 600 clamp(64px, 12.4vw, 236px)/.9 var(--sans);
  position: relative; z-index: 6; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--sans); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px rgba(14, 18, 48, .45); overflow: clip; }
.content::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rule); width: 1px; background: var(--line); pointer-events: none; }
.content .px { background: var(--accent); }
.sw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: 0 var(--m); }
.sw { position: relative; padding: clamp(72px, 9vw, 160px) 0 clamp(56px, 6vw, 110px); }
.sw + .sw { border-top: 1px solid var(--line); }

/* buttons: one indigo action per screen (brand rule 7). Hover deepens to night. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; height: 56px; padding: 0 28px; border: 0; border-radius: 12px; cursor: pointer;
  font: 500 16px/1 var(--sans); letter-spacing: 0; text-decoration: none; white-space: nowrap; color: #fff; background: var(--accent);
  transition: background .15s ease-out, transform .35s cubic-bezier(.2, .8, .2, 1); }
.btn:hover { background: #1A2152; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-ink { background: #14161B; }
.btn-ink:hover { background: #1A2152; }

.sw-label { margin: 0; font: 500 clamp(13px, .85vw, 15px)/1.3 var(--sans); letter-spacing: .01em; color: var(--ink2); }
.sw-label span { color: var(--ink); }
.sw-note { color: var(--ink2); font-size: 15px; }
.sw-head { margin-bottom: clamp(28px, 4vw, 64px); }
.sw-head > :first-child { grid-column: 1 / 5; }
.sw-head .sw-r { grid-column: 5 / -1; padding-left: calc(var(--g) / 2 + 12px); }

.sw-big { margin: 0; font: var(--display); letter-spacing: -.045em; }
.sw-big .ln { line-height: .86; }
.sw-big .ln, .sw-quote .ln { display: block; grid-column: 1 / -1; white-space: nowrap; }
.c1 { grid-column: 1 / -1 !important; } .c2 { grid-column: 2 / -1 !important; } .c3 { grid-column: 3 / -1 !important; }
.c4 { grid-column: 4 / -1 !important; } .c5 { grid-column: 5 / -1 !important; padding-left: calc(var(--g) / 2 + 12px); }

/* 01 about: the greeting stays pinned while the rest slides up over it */
.sw-about { padding-top: 0; }
.sw-hero { height: 165vh; margin-bottom: -65vh; }
.sw-hero-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.sw-hero-in .sw-head { margin-bottom: clamp(24px, 3vw, 48px); }
.sw-ig { position: absolute; right: calc(var(--m) - 2vw); top: 9vh; bottom: 4vh; width: 36vw; max-width: 640px; margin: 0; display: grid; grid-template-rows: 1fr auto; gap: 6px; }
.sw-rest { position: relative; z-index: 1; padding-top: clamp(60px, 8vw, 140px);
  background: linear-gradient(var(--line), var(--line)) var(--rule) 0 / 1px 100% no-repeat, var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -24px 60px rgba(20, 22, 27, .08); }
.sw-intro { margin-top: clamp(20px, 3vw, 50px); align-items: center; }
.sw-photo { grid-column: 1 / 5; margin: 0 calc(var(--g) / 2 + 12px); border-radius: 16px; overflow: hidden; aspect-ratio: 1; background: #1A2152; border: 1px solid var(--line); }
.sw-photo canvas { width: 100%; height: 100%; display: block; transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.sw-photo.in canvas { transform: none; }
.ig-stage { position: relative; display: block; min-height: 0; cursor: pointer; }
.ig-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sw-ig figcaption { display: flex; justify-content: center; gap: 14px; align-items: baseline; }
.ig-link { color: var(--ink); text-decoration: none; font-size: 18px; border-bottom: 1px solid currentColor; }
.ig-link:hover { color: var(--accent); }
.sw-lead { grid-column: 5 / -1; align-self: center; margin: 0; padding-left: calc(var(--g) / 2 + 12px); font: 400 clamp(26px, 2.9vw, 54px)/1.2 var(--sans); letter-spacing: -.025em; }
.sw-lead .dim { color: var(--ink2); }
.tile { --r: -6deg; display: inline-grid; place-items: center; width: 1.12em; height: 1.12em; margin: 0 .08em; vertical-align: -.2em; position: relative; rotate: var(--r);
  transition: rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1); }
.tile svg { width: 64%; height: 64%; display: block; }
.ic-web { background: #4257E0; border-radius: .2em; width: 1.4em; } .ic-web svg { width: 74%; }
.ic-sys { background: #1A2152; border-radius: 0; }
.ic-shop { background: #0E6E87; border-radius: 50%; }
.ic-tool { background: #AEB9FF; border-radius: .2em; }
.tile:hover { rotate: 0deg; scale: 1.18; }
.js-motion [data-split] .w-tile > .tile { opacity: 0; filter: none; transform: scale(.2) rotate(-25deg);
  transition: opacity .4s, transform .9s cubic-bezier(.3, 1.6, .5, 1), rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i) * 55ms + 120ms); }
.js-motion [data-split].in .w-tile > .tile { opacity: 1; transform: none; animation: tile-bob 4s ease-in-out calc(var(--i) * -.6s) infinite; }
@keyframes tile-bob { 50% { translate: 0 -.08em; } }
.sw-stats { list-style: none; margin: clamp(56px, 7vw, 120px) 0 0; padding: 0; }
.sw-stats li { align-items: end; border-top: 1px solid var(--line); padding-top: 10px; padding-bottom: 6px; }
.sw-num { grid-column: 1 / 5; text-align: right; white-space: nowrap; padding-right: calc(var(--g) / 2 + 12px); font: 600 clamp(72px, 10vw, 190px)/.9 var(--sans); letter-spacing: -.045em; }
.sw-num i { font-style: normal; } .sw-num .since { font-size: .42em; letter-spacing: -.02em; color: var(--ink2); }
.sw-stats .sw-label { grid-column: 5 / -1; padding: 0 0 .9em calc(var(--g) / 2 + 12px); font-size: 15px; color: var(--ink); }
.sw-quote { margin: clamp(80px, 10vw, 180px) 0 0; font: 600 clamp(64px, 10vw, 190px)/.9 var(--sans); letter-spacing: -.045em; }
.sw-quote .ln { line-height: .88; }

/* 02 numbers: a live gradient band (mesh.js) opens from a card, runs sideways, then sinks into night */
.sw-numbers { position: relative; height: 420vh; }
.nums-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; background: #4257E0;
  clip-path: inset(var(--ins, 7vw) round var(--rad, 28px)); will-change: clip-path; }
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mesh-fallback { background: radial-gradient(60% 70% at 25% 20%, #1A2152, transparent), radial-gradient(60% 60% at 80% 80%, #AEB9FF, transparent), #4257E0; }
.nums-track { position: relative; height: 100%; display: flex; align-items: center; gap: 0; padding: 0 var(--m); width: max-content; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.nums-intro { flex: 0 0 auto; width: min(44vw, 640px); margin-right: 6vw; }
.nums-intro .sw-label { color: rgba(255, 255, 255, .75); } .nums-intro .sw-label span { color: #fff; }
.nums-title { margin: 22px 0 0; font: 600 clamp(56px, 10vw, 180px)/.86 var(--sans); letter-spacing: -.045em; }
.nums-stage .px { background: #AEB9FF; }
.num { flex: 0 0 auto; position: relative; display: grid; align-content: center; padding: 0 3.4vw 0 1.4vw; border-left: 1px solid rgba(255, 255, 255, .4); height: 56vh; }
.num:nth-child(odd) { translate: 0 -9vh; } .num:nth-child(even) { translate: 0 9vh; }
.num b { font: 600 clamp(110px, 30vh, 360px)/.84 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.num-i { position: absolute; top: 0; left: 1.4vw; font: 500 13px/1 var(--sans); letter-spacing: .02em; color: rgba(255, 255, 255, .7); }
.num-l { margin-top: 14px; max-width: 14em; font: 500 15px/1.25 var(--sans); }
.nums-fade { position: absolute; inset: 0; background: #0E1230; opacity: var(--fade, 0); pointer-events: none; }

/* 03 work tunnel (works.js): the one night block */
.works { position: relative; height: 760vh; background: #0E1230; margin-top: -100vh; z-index: 1; }
.works-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.works-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.works-note { position: absolute; left: var(--m); bottom: clamp(20px, 3vw, 40px); margin: 0; color: rgba(174, 185, 255, .6); }
.works-note span { color: #AEB9FF; }
.works-copy { position: absolute; left: 50%; top: 50%; width: min(92vw, 1100px); translate: -50% -50%; text-align: center; pointer-events: none; opacity: 0; }
.works-title { margin: 0; font: 600 clamp(56px, 9.4vw, 170px)/.9 var(--sans); letter-spacing: -.045em; color: #F7F7F5; text-wrap: balance; }
.works-sub { margin: 22px 0 0; font: 400 clamp(14px, 1.3vw, 20px)/1.2 var(--sans); color: #AEB9FF; }
.works-btn { pointer-events: auto; margin-top: 34px; }
.works-dots { position: absolute; right: clamp(14px, 2.4vw, 36px); top: 50%; translate: 0 -50%; display: grid; gap: 18px; }
.works-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 0; background: rgba(174, 185, 255, .33); cursor: pointer; transition: background .3s, box-shadow .3s; }
.works-dots button.on { background: #AEB9FF; box-shadow: 0 0 0 5px rgba(174, 185, 255, .15); }

/* 04 contact: the sheet slides over the night block */
#contact { margin-top: -28px; z-index: 2; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .35); border-top: 0; }
#contact::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rule); width: 1px; background: var(--line); }
#contact > * { position: relative; }
.sw-links { list-style: none; margin: clamp(56px, 7vw, 120px) 0 0; padding: 0; }
.sw-links li { border-top: 1px solid var(--line); }
.sw-links li:last-child { border-bottom: 1px solid var(--line); }
.sw-links a { align-items: baseline; padding-top: 14px; padding-bottom: 12px; color: inherit; text-decoration: none; position: relative; overflow: hidden; }
.sw-links a::before { content: ""; position: absolute; inset: 0; background: #1A2152; transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.7, 0, .2, 1); z-index: 0; }
.sw-links a > * { position: relative; z-index: 1; transition: color .3s; }
.sw-links .sw-label { grid-column: 1 / 2; }
.sw-links b { grid-column: 5 / 10; padding-left: calc(var(--g) / 2 + 12px); font: 600 clamp(36px, 5vw, 96px)/.95 var(--sans); letter-spacing: -.04em; }
.sw-links .sw-note { grid-column: 10 / 12; }
.sw-links .ico { grid-column: 12; justify-self: end; width: clamp(24px, 2.4vw, 40px); height: clamp(24px, 2.4vw, 40px); stroke-width: 1.6; transition: transform .4s cubic-bezier(.2, .8, .2, 1), color .3s; }
.sw-links a:hover::before, .sw-links a:focus-visible::before { transform: scaleY(1); }
.sw-links a:hover > *, .sw-links a:focus-visible > * { color: var(--paper); }
.sw-links a:hover .ico { transform: translate(6px, -6px); }
/* the brief: the one kaolin section of the page (brand: at most one per page) */
.sw-formwrap { margin: clamp(56px, 6vw, 100px) var(--m) 0; }
.sw-formcard { position: relative; overflow: hidden; border-radius: 24px; padding: clamp(36px, 5vw, 84px); color: var(--ink); background: #ECE5D8; isolation: isolate;
  display: grid; justify-items: center; text-align: center; }
.sw-formcard > * { position: relative; }
.sw-formcard .sw-label { color: var(--ink2); }
.sw-formcard h3 { margin: 0 0 clamp(24px, 3vw, 52px); justify-self: stretch; font: 600 clamp(64px, 12.4vw, 236px)/.86 var(--sans); letter-spacing: -.045em; }
.sw-formcard h3 .ln { display: block; white-space: nowrap; font-size: var(--fs, inherit); }
.f-sub { margin: 0 0 clamp(10px, 1.2vw, 18px); font-size: clamp(16px, 1.4vw, 22px); color: var(--ink2); }
.sw-formcard .sw-fields { width: var(--fw, 100%); max-width: 100%; text-align: left; }
.sw-formcard .f-note { text-align: center; }
.sw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 28px); align-items: end; }
.sw-fields .f-wide { grid-column: 1 / -1; }
.sw-fields .btn { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
.sw-fields label { display: grid; gap: 8px; }
.sw-fields :is(input, textarea) { font: 400 20px/1.2 var(--sans); color: var(--ink); background: none; border: 0; border-bottom: 1px solid #767C90; padding: 8px 0; outline: none; border-radius: 0; caret-color: var(--accent); }
.sw-fields :is(input, textarea):focus { border-bottom-color: var(--accent); }
.sw-fields :is(input, textarea).bad { border-bottom-color: #B3261E; }
.sw-fields textarea { resize: vertical; min-height: 54px; }
.sw-fields ::placeholder { color: var(--ink2); }
.f-note { margin: 16px 0 0; min-height: 1.2em; font-size: 15px; color: var(--ink2); }
.f-note.err { color: #B3261E; }
.sw-end { margin-top: clamp(56px, 6vw, 100px); align-items: center; }
.sw-end > .sw-label { grid-column: 1 / 5; }
.sw-replay { grid-column: 5 / -1; justify-self: start; margin-left: calc(var(--g) / 2 + 12px); padding: 0; border: 0; background: none; color: var(--ink);
  font: 500 13px/1.3 var(--sans); cursor: pointer; border-bottom: 1px solid currentColor; }
.sw-replay:hover { color: var(--accent); }
.sw-word { margin: clamp(80px, 11vw, 200px) 0 0; padding: 0 var(--m) .04em; font: 600 var(--fs, 24vw)/.8 var(--sans); letter-spacing: -.05em; white-space: nowrap; color: var(--ink); cursor: default; user-select: none; }
.sw-word .ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; color: color-mix(in srgb, #4257E0 calc(var(--k, 0) * 100%), var(--ink)); }
.sw-word .ch.dot { position: relative; color: inherit; }
.sw-word .px-i { position: absolute; left: 50%; top: .1em; width: .113em; height: .113em; translate: -50% 0; background: var(--accent); }

/* motion primitives (content.js adds .in; without JS everything is simply visible) */
.js-motion [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; }
.js-motion [data-split] .w > span { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.45em) scale(1.04);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), filter .9s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 55ms); }
.js-motion [data-split].in .w > span { opacity: 1; filter: blur(0); transform: none; }
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.js-motion :is(.sw-stats li, .sw-links li)[data-reveal] { border-top-color: transparent; background: linear-gradient(var(--line), var(--line)) top left / 0 1px no-repeat;
  transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1), background-size 1.1s cubic-bezier(.7, 0, .2, 1); }
.js-motion :is(.sw-stats li, .sw-links li)[data-reveal].in { background-size: 100% 1px; }
.sw-big .ln[data-drift], .sw-quote .ln { will-change: transform; }
.reduce-motion .js-motion [data-split] .w > span, .reduce-motion .js-motion [data-reveal] { transition-duration: .01s !important; filter: none !important; }

/* cursor hint pill (cursor.js) */
.cursor-hint { position: fixed; left: 0; top: 0; z-index: 1001; pointer-events: none; padding: 13px 20px 12px; border-radius: 40px; background: #AEB9FF; color: #14161B;
  font: 500 15px/1 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .2s; will-change: transform; transform-origin: 0 50%; box-shadow: 0 10px 30px rgba(14, 18, 48, .25); }
.cursor-hint.show { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-hint { display: none !important; } }
.ig-tag { position: absolute; left: 50%; top: 4%; translate: -50% 0; z-index: 2; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 12px 18px 11px; border-radius: 40px; background: #AEB9FF; color: #14161B; box-shadow: 0 12px 30px rgba(14, 18, 48, .18); font: 500 14px/1 var(--sans); pointer-events: none; will-change: transform; }
.ig-tag .ico { width: 14px; height: 14px; }
.sw-fields .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 801px) { .sw-fields input::placeholder { color: transparent; } }

/* ================= phones (≤ 800 px): one headline size, one text size, no vertical hairline ================= */
@media (max-width: 800px) {
  .content { --rule: calc(var(--m) + 6px); --big: 23vw; --body: 400 18px/1.35 var(--sans); }
  .content::before, #contact::before { display: none; }
  .sw-rest { background: var(--paper); padding-top: 56px; }
  .sw-head > :first-child, .sw-head .sw-r { grid-column: 1 / -1; padding-left: 0; }
  .sw-head { row-gap: 6px; margin-bottom: 28px; }
  .c5, .c4, .c3, .c2 { grid-column: 1 / -1 !important; padding-left: 0; }
  .sw-about { padding-top: 0; }
  .sw-hero { height: auto; margin-bottom: 0; }
  .sw-hero-in { position: relative; height: auto; padding-top: 104px; display: block; }
  .sw-big, .sw-num, .sw-quote { font-size: var(--big) !important; }
  .sw-big .ln, .sw-quote .ln, .sw-num { line-height: .86; white-space: nowrap; }
  .sw-big .ln.c5 { padding-left: 21% !important; } .sw-big .ln.c2 { padding-left: 8% !important; } .sw-big .ln.c4 { padding-left: 4% !important; }
  .sw-ig { position: relative; right: auto; top: auto; bottom: auto; width: auto; height: 74vh; margin: 36px var(--m) 0; }
  .ig-tag { top: 57%; left: 63%; white-space: normal; text-align: center; width: 19.5em; justify-content: center; font-size: 12px; line-height: 1.35; padding: 10px 14px; }
  .sw-photo { grid-column: 1 / -1; } .sw-lead { grid-column: 1 / -1; padding: 28px 0 0; }
  .sw-head .sw-label, .sw-stats .sw-label, .sw-lead { font: var(--body) !important; letter-spacing: 0; }
  .sw-head .sw-label, .sw-stats .sw-label { color: var(--ink2); } .sw-head .sw-label span { color: var(--ink); } .sw-lead { color: var(--ink); }
  .sw-stats { margin-top: 56px; }
  .sw-stats li { padding: 18px var(--m) 22px; }
  .sw-num { grid-column: 1 / -1; text-align: left; padding-right: 0; } .sw-stats .sw-label { grid-column: 1 / -1; padding: 10px 0 0; }
  .sw-quote { margin-top: 72px; } .sw-quote .ln { padding-left: 0 !important; } .sw-quote .q { display: block; } .sw-quote .q-r { text-align: right; }
  .nums-title, #cta-title, .sw-formcard h3, .sw-formcard h3 .ln, .works-title { font-size: var(--big) !important; line-height: .86; }
  .sw-formcard h3 .ln { white-space: normal; }
  .nums-intro .sw-label, .num-l, .f-sub, .works-sub, .sw-links .sw-note, .sw-end > .sw-label { font: var(--body) !important; }
  .nums-intro { width: 62vw; margin-right: 12vw; } .nums-intro .sw-label { max-width: 11em; } .nums-title { margin-top: 14px; }
  .num b { font-size: var(--big) !important; line-height: .84; } .num { height: auto; padding: 0 9vw 0 4vw; } .num:nth-child(odd), .num:nth-child(even) { translate: 0 0; }
  .num-i { position: static; display: block; margin-bottom: 12px; }
  .sw-links b { grid-column: 2 / -1; padding-left: 0; } .sw-links .sw-note { grid-column: 2 / -1; text-align: left; } .sw-links .ico { grid-row: 1; }
  .sw-links a { padding-top: 18px; padding-bottom: 18px; row-gap: 6px; }
  .sw-formwrap { margin: 48px var(--m) 0; }
  .sw-formcard { padding: 40px 26px 34px; }
  .sw-formcard h3 { justify-self: stretch; margin: 0 0 26px; text-align: center; } .sw-formcard h3 .w2 { display: block; }
  .f-sub { font-size: 14px; margin-bottom: 14px; }
  .sw-formcard .sw-fields { width: 100%; row-gap: 40px; }
  .sw-fields { grid-template-columns: 1fr; }
  .sw-fields label > .sw-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sw-fields :is(input, textarea) { font-size: 16px; padding: 0 0 7px; line-height: 1.3; }
  .sw-fields textarea { min-height: 0; height: 30px; resize: none; }
  .sw-fields .btn { margin-top: 12px; }
  .sw-end > .sw-label, .sw-replay { grid-column: 1 / -1; margin-left: 0; }
  .sw-word { white-space: normal; text-align: left; line-height: .82; margin-top: 64px; }
  #cta-title .ln.c4 { padding-left: 6% !important; }
}
