/* ==========================================================
   Ideation Collective — one-week website sprints
   Editorial, colourful. Neue Haas Grotesk Display (55 Roman / 65 Medium), as in the IC Figma file.
   ========================================================== */

@font-face { font-family: "NHG Display"; src: url("../assets/fonts/NHaasGroteskDSPro-55Rg.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NHG Display"; src: url("../assets/fonts/NHaasGroteskDSPro-65Md.otf") format("opentype"); font-weight: 500 700; font-display: swap; }

:root {
  /* palette — from the original Ideation Collective brand */
  --mint: #6ef4c4;      /* Brand Sprint */
  --mint-2: #b8f9e5;    /* highlights */
  --mint-ink: #0b9a6e;  /* mint for text on white */
  --peri: #7470f4;      /* Product Sprint */
  --peri-ink: #5b56e6;
  --mist: #d4d2fd;      /* With you */
  --cool: #f3f5f8;
  --duo: linear-gradient(100deg, #6ef4c4 0%, #7470f4 100%);

  --bg: #ffffff;
  --fg: #0b151a;
  --muted: #5e6870;
  --line: #e4e8ec;
  --soft: #f1f3f6;
  --soft-2: #e7ebf0;
  --ink: #0b151a;
  --paper: #ffffff;
  --gutter: clamp(16px, 2.2vw, 32px);
  --radius: 12px;
  --max: 1280px;
  --ease: cubic-bezier(.65, .01, .05, .99);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "NHG Display", "Neue Haas Grotesk Display Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--mint); color: var(--ink); }

.wrap { padding-inline: var(--gutter); }
.wrap > * { }
.contain { max-width: var(--max); margin-inline: auto; }
.frame { max-width: 1040px; margin-inline: auto; }

/* ---------- Type (smaller scale) ---------- */
.display { font-weight: 500; font-size: clamp(36px, 5vw, 80px); line-height: .98; letter-spacing: .01em; margin: 0; }
.h1 { font-weight: 500; font-size: clamp(32px, 3.8vw, 60px); line-height: 1; letter-spacing: .01em; margin: 0; }
.h2 { font-weight: 500; font-size: clamp(26px, 2.7vw, 42px); line-height: 1.05; letter-spacing: .01em; margin: 0; }
.h3 { font-weight: 500; font-size: clamp(20px, 1.6vw, 26px); line-height: 1.12; letter-spacing: .01em; margin: 0; }
.lead { font-weight: 400; font-size: clamp(19px, 1.65vw, 26px); line-height: 1.25; letter-spacing: .01em; margin: 0; }
.body-l { font-size: clamp(16px, 1.15vw, 18px); line-height: 1.5; margin: 0; }
.label { font-size: 13px; font-weight: 400; letter-spacing: .01em; color: var(--muted); }
.muted { color: var(--muted); }
.num { font-feature-settings: "tnum"; }
.hl { background: var(--mint-2); padding: 0 .12em; border-radius: .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.c-orange { color: var(--mint-ink); }
.c-blue { color: var(--peri-ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s;
}
.site-header.is-scrolled { background: rgba(255,255,255,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-hidden { transform: translateY(-110%); }
.logo { width: 96px; height: auto; color: inherit; display: block; }
.logo svg { width: 100%; height: auto; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 14px; font-weight: 400; }
.nav a { position: relative; overflow: hidden; display: inline-block; height: 1.3em; line-height: 1.3em; }
.nav a span { display: block; transition: transform .5s var(--ease); }
.nav a span::after { content: attr(data-t); display: block; }
.nav a:hover span { transform: translateY(-50%); }
.nav a.is-active::before { content: ""; position: absolute; left: -11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--mint); }
.nav .nav-cta { height: auto; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; line-height: 1.2; }
.nav .nav-cta span::after { display: none; }
.nav .nav-cta:hover { background: var(--mint); color: var(--ink); }
.nav .nav-cta:hover span { transform: none; }
.nav-toggle { display: none; font-size: 15px; font-weight: 400; }

.menu {
  position: fixed; inset: 0; z-index: 49; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu a { font-size: clamp(38px, 10vw, 64px); font-weight: 500; letter-spacing: .01em; line-height: 1.05; display: block; }
.menu .menu-foot { margin-top: 32px; display: flex; justify-content: space-between; opacity: .7; font-size: 14px; }
body.menu-open .site-header { color: #fff; background: transparent; backdrop-filter: none; }

@media (max-width: 860px) { .nav { display: none; } .nav-toggle { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease-out), color .4s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--duo); transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost::before { background: var(--mint-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light::before { background: var(--mint-2); }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); padding-bottom: 2px; }
.link-u:hover { background-size: 100% 1px; }

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding-block: clamp(72px, 9vw, 140px); }
.pad-s { padding-block: clamp(48px, 5.5vw, 88px); }
.dark { background: var(--ink); color: #fff; --fg: #fff; --bg: #111; --muted: #9a958c; --line: #2a2a2a; --soft: #1b1b1b; --soft-2: #232323; }
.tone-sand { background: var(--cool); --soft: #e9edf2; }
.tone-blue { background: var(--peri); color: #fff; --fg: #fff; --muted: rgba(255,255,255,.72); --line: rgba(255,255,255,.22); }
.tone-lime { background: var(--duo); color: var(--ink); --muted: rgba(11,21,26,.6); --line: rgba(0,0,0,.12); }
.sec-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(32px, 4vw, 60px); }
.sec-head .label { grid-column: 1 / 4; }
.sec-head .h2 { grid-column: 4 / 11; }
@media (max-width: 860px) { .sec-head .label, .sec-head .h2 { grid-column: 1 / -1; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(120px, 13vw, 190px); padding-bottom: clamp(40px, 5vw, 72px); }
.hero .display { max-width: 18ch; }
.hero-meta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-top: clamp(32px, 4.5vw, 64px); align-items: end; }
.hero-meta > :first-child { grid-column: 1 / 5; }
.hero-meta > :nth-child(2) { grid-column: 6 / 10; }
.hero-meta > :last-child { grid-column: 10 / 13; justify-self: end; }
@media (max-width: 860px) { .hero-meta > * { grid-column: 1 / -1 !important; justify-self: start !important; } }

/* inline pills inside headlines */
.pill { display: inline-block; vertical-align: middle; width: 0; height: .8em; margin: -.1em .06em 0; border-radius: 999px; overflow: hidden; background: var(--soft-2); position: relative; transition: width 1.2s var(--ease) .5s; }
.is-in .pill, .pill.is-in, .measure .pill { width: 1.9em; }
.measure .pill { transition: none; }
.measure .pill--w, .is-in .pill--w { width: 2.6em; }
.pill > .media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; }

.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; max-width: 100%; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-in .split-line > span { transform: none; }

/* ---------- Media placeholders ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tint, var(--soft)); aspect-ratio: 16 / 10; width: 100%; --tint: var(--soft); --tint-ink: rgba(0,0,0,.5); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); }
.media.is-missing::before {
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(38% 48% at 30% 40%, color-mix(in srgb, var(--tint) 55%, #fff), transparent 70%),
    radial-gradient(30% 40% at 72% 62%, color-mix(in srgb, var(--tint) 70%, #000 8%), transparent 70%),
    var(--tint);
  animation: drift 14s ease-in-out infinite alternate;
}
.media .ph-label { position: absolute; left: 12px; bottom: 10px; right: 12px; font-size: 11px; color: var(--tint-ink); font-weight: 400; display: flex; justify-content: space-between; gap: 12px; }
.media .ph-label code { font-family: ui-monospace, Menlo, monospace; font-size: 10px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media .ph-mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--tint-ink); opacity: .5; }
.media .ph-mark svg { width: 14%; max-width: 72px; min-width: 32px; }
@keyframes drift { 0% { transform: translate3d(-4%, -2%, 0) rotate(0deg); } 100% { transform: translate3d(4%, 3%, 0) rotate(8deg); } }
.media .inner { position: absolute; inset: -8% 0; }
.media .inner > img, .media .inner > video { height: 100%; }

/* ---------- Showreel ---------- */
.reel { padding-inline: var(--gutter); }
.reel-wrap { max-width: 1040px; margin-inline: auto; will-change: transform; }
.reel .media { aspect-ratio: 16 / 9; border-radius: 18px; }

/* ---------- Scroll-scrub paragraph ---------- */
.scrub .w { opacity: .16; transition: opacity .3s linear; }
.scrub .w.on { opacity: 1; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.4s var(--ease); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }

/* ---------- Work grid (smaller, staggered) ---------- */
.work-list { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 5vw, 72px) var(--gutter); max-width: var(--max); margin-inline: auto; }
.work-card { display: block; grid-column: span 4; }
.work-card:nth-child(3n+2) { margin-top: clamp(40px, 7vw, 120px); }
.work-card:nth-child(3n+3) { margin-top: clamp(20px, 3.5vw, 60px); }
.work-card .media { aspect-ratio: 4 / 5; }
.work-card .media img { transition: transform 1.2s var(--ease-out); }
.work-card:hover .media img { transform: scale(1.04); }
.work-card .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; align-items: baseline; }
.work-card .title { font-size: clamp(18px, 1.4vw, 22px); font-weight: 500; letter-spacing: .01em; line-height: 1.15; display: inline-flex; align-items: center; gap: 8px; }
.work-card .title i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--mint)); }
.work-card .tags { font-size: 13px; color: var(--muted); text-align: right; }
.work-card .desc { color: var(--muted); margin-top: 4px; font-size: 15px; max-width: 40ch; }
@media (max-width: 860px) { .work-card { grid-column: span 6; } .work-card:nth-child(n) { margin-top: 0; } }
@media (max-width: 560px) { .work-card { grid-column: 1 / -1; } .work-card .media { aspect-ratio: 4 / 3; } }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--mint); transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), opacity .3s, background .3s; display: grid; place-items: center; font-size: 12px; font-weight: 500; color: var(--ink); }
.cursor span { opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.is-big { width: 78px; height: 78px; margin: -39px 0 0 -39px; background: var(--duo); }
.cursor.is-big span { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; padding-block: clamp(16px, 2vw, 26px); }
.marquee-track { display: inline-flex; gap: clamp(22px, 3vw, 44px); animation: marq var(--speed, 40s) linear infinite; padding-right: clamp(22px, 3vw, 44px); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { font-size: clamp(24px, 2.8vw, 44px); font-weight: 500; letter-spacing: .01em; display: inline-flex; align-items: center; gap: clamp(22px, 3vw, 44px); }
.marquee-item::after { content: "✳"; font-size: .6em; opacity: .5; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Sprint offer cards (home + sprint page) ---------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); max-width: var(--max); margin-inline: auto; }
.offer { border-radius: 20px; padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 22px; min-height: 480px; position: relative; overflow: hidden; transition: transform .8s var(--ease-out); }
.offer:hover { transform: translateY(-6px); }
.offer--brand { background: var(--mint); color: var(--ink); --muted: rgba(11,21,26,.64); --line: rgba(11,21,26,.16); }
.offer--product { background: var(--peri); color: #fff; --muted: rgba(255,255,255,.72); --line: rgba(255,255,255,.24); }
.offer .top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.offer .tag { font-size: 12px; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px currentColor; white-space: nowrap; }
.offer .price { font-size: clamp(44px, 4.8vw, 72px); font-weight: 500; letter-spacing: .01em; line-height: .9; }
.offer .price small { font-size: 14px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-left: 8px; }
.offer ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.offer li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; font-size: 15px; }
.offer li::before { content: "+"; opacity: .6; }
.offer .btn { margin-top: auto; align-self: start; }
.offer--brand .btn { background: var(--ink); color: #fff; }
.offer--brand .btn::before { background: #fff; }
.offer--brand .btn:hover { color: var(--ink); }
.offer--product .btn { background: #fff; color: var(--ink); }
.offer--product .btn::before { background: var(--mint); }
.offer .shape { position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.28); transition: transform 1.4s var(--ease-out); }
.offer--product .shape { border-radius: 36px; transform: rotate(18deg); background: rgba(255,255,255,.1); }
.offer:hover .shape { transform: scale(1.25) rotate(40deg); }
.offer .kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.offer .kinds span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
.offer--brand .kinds span { background: rgba(0,0,0,.08); }
@media (max-width: 860px) { .offers { grid-template-columns: 1fr; } .offer { min-height: 0; } }

/* ---------- Week diagram ---------- */
.week { max-width: var(--max); margin-inline: auto; background: #fff; border-radius: 22px; padding: clamp(18px, 2.4vw, 32px); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -40px rgba(11,21,26,.3); --accent: var(--mint); --accent-ink: var(--ink); --accent-text: var(--mint-ink); color: var(--ink); --muted: #5e6870; --line: #e8ecf0; }
.week[data-k="product"] { --accent: var(--peri); --accent-ink: #fff; --accent-text: var(--peri-ink); }
.wk-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.wk-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cool); position: relative; }
.wk-tabs button { position: relative; z-index: 1; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; display: inline-flex; gap: 8px; align-items: baseline; transition: color .4s; }
.wk-tabs button span { font-size: 12px; font-weight: 400; opacity: .65; }
.wk-tabs button[aria-selected="true"] { color: var(--accent-ink); }
.wk-tabs .pillbg { position: absolute; z-index: 0; top: 4px; bottom: 4px; border-radius: 999px; background: var(--accent); transition: left .6s var(--ease), width .6s var(--ease), background .5s; }
.wk-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.wk-legend span { display: inline-flex; align-items: center; gap: 7px; }
.wk-legend i { width: 16px; height: 9px; border-radius: 999px; display: inline-block; }
.t-you { background: #fff; box-shadow: inset 0 0 0 1.5px var(--peri); }
.t-ai { background: var(--duo); }
.t-craft { background: var(--accent); }
.wk-scroll { overflow-x: auto; margin-inline: -4px; padding: 26px 4px 6px; scrollbar-width: none; }
.wk-scroll::-webkit-scrollbar { display: none; }
.wk-grid { position: relative; min-width: 720px; --lw: 210px; }
.wk-days, .wk-row { display: grid; grid-template-columns: var(--lw) repeat(5, 1fr); align-items: center; }
.wk-days { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.wk-day { font-size: 12px; color: var(--muted); padding-left: 10px; cursor: pointer; transition: color .3s; }
.wk-day b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 2px; letter-spacing: .01em; transition: color .3s; }
.wk-day.is-on b { color: var(--accent-text); }

.wk-lines { position: absolute; top: 0; bottom: 0; left: var(--lw); right: 0; display: grid; grid-template-columns: repeat(5, 1fr); pointer-events: none; }
.wk-lines span { border-left: 1px dashed var(--line); }
.wk-lines span.is-on { background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 7%, transparent), transparent); }
.wk-row { min-height: 44px; position: relative; }
.wk-row + .wk-row { border-top: 1px solid #f4f1ea; }
.wk-row .lbl { font-size: 14px; color: var(--ink); padding-right: 14px; transition: opacity .4s; display: flex; align-items: center; gap: 8px; }
.wk-row .lbl i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.wk-bar { height: 30px; margin: 0 5px; border-radius: 999px; display: flex; align-items: center; padding: 0 10px; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; color: var(--ink); transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--ease), opacity .4s, box-shadow .4s; transition-delay: calc(var(--i) * 70ms + 150ms); position: relative; z-index: 1; }
.wk-bar.ai { background: linear-gradient(100deg, #93f5d6, #a9b3f7); }
.wk-bar.you { background: #fff; box-shadow: inset 0 0 0 1.5px var(--peri); color: var(--peri-ink); }
.wk-bar.craft { background: var(--accent); color: var(--accent-ink); }
.wk-bar em { font-style: normal; opacity: 0; transition: opacity .5s; transition-delay: calc(var(--i) * 70ms + 600ms); }
.week.is-in .wk-bar { transform: scaleX(1); }
.week.is-in .wk-bar em { opacity: 1; }
.week.is-playing .wk-row:not(.is-on) .wk-bar { opacity: .5; }
.week.is-playing .wk-row:not(.is-on) .lbl { opacity: .45; }
.wk-row.is-on .wk-bar { box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); }
.wk-play { position: absolute; top: 0; bottom: 0; left: calc(var(--lw) + (100% - var(--lw)) * var(--p, 0)); width: 2px; margin-left: -1px; background: var(--ink); z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; }
.week.is-playing .wk-play { opacity: 1; }
.wk-play::before { content: attr(data-t); position: absolute; top: -2px; left: 50%; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 11px; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.wk-play::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ink); }
.wk-detail { display: grid; grid-template-columns: var(--lw, 210px) 1fr auto; gap: 20px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); align-items: start; }
.wk-detail .dd { font-size: 13px; color: var(--muted); }
.wk-detail .dd b { display: block; font-size: 28px; color: var(--accent-text); font-weight: 500; letter-spacing: .01em; line-height: 1; margin-top: 4px; }

.wk-detail h4 { margin: 0 0 6px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: .01em; }
.wk-detail p { margin: 0; color: var(--muted); font-size: 15px; max-width: 60ch; }
.wk-detail .out { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wk-detail .swap { transition: opacity .35s, transform .5s var(--ease-out); }
.wk-detail.is-swapping .swap { opacity: 0; transform: translateY(6px); }
.wk-ctrl { display: flex; gap: 8px; }
.wk-ctrl button { width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 13px; transition: background .3s; }
.wk-ctrl button:hover { background: var(--cool); }
@media (max-width: 760px) { .wk-detail { grid-template-columns: 1fr; } .wk-grid { --lw: 150px; } }

/* ---------- Two column text ---------- */
.cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); max-width: var(--max); margin-inline: auto; }
.cols .c-label { grid-column: 1 / 4; }
.cols .c-main { grid-column: 4 / 11; }
@media (max-width: 860px) { .cols > * { grid-column: 1 / -1 !important; } }
.cols > *, .hero-meta > * { min-width: 0; overflow-wrap: anywhere; }
.display, .h1, .h2 { overflow-wrap: normal; }

/* ---------- Chips ---------- */
.chip { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--cool); color: var(--ink); }
.chip.ai { background: var(--mint-2); }
.chip.you { background: var(--mist); }

/* ---------- Principles / cards ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); max-width: var(--max); margin-inline: auto; }
.card { border-top: 1px solid var(--fg); padding-top: 18px; }
.card .n { font-size: 12px; margin-bottom: 40px; display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--cool); color: var(--ink); }
.card:nth-child(3n+1) .n { background: var(--mint); }
.card:nth-child(3n+2) .n { background: var(--peri); color: #fff; }
.card:nth-child(3n+3) .n { background: var(--mist); }
.card h4 { margin: 0 0 10px; font-size: clamp(19px, 1.5vw, 24px); font-weight: 500; letter-spacing: .01em; line-height: 1.15; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Numbered service lists ---------- */
.list-big { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list-big li { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: clamp(14px, 1.4vw, 20px) 0; border-bottom: 1px solid var(--line); font-size: clamp(19px, 1.7vw, 28px); font-weight: 500; letter-spacing: .01em; line-height: 1.1; position: relative; z-index: 0; transition: padding .6s var(--ease); }
.list-big li span { font-size: 13px; color: var(--muted); letter-spacing: 0; font-weight: 400; align-self: center; text-align: right; }
.list-big li::after { content: ""; position: absolute; inset: 0; background: var(--hover, var(--mint-2)); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); border-radius: 6px; }
.list-big li:hover::after { transform: scaleY(1); }
.list-big li:hover { padding-left: 14px; padding-right: 14px; }
.list-big.is-brand { --hover: var(--mint); }
.list-big.is-product { --hover: var(--mist); }
.disc-tag { display: inline-flex; align-items: center; gap: 8px; }
.disc-tag i { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; letter-spacing: .01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 26px; height: 26px; position: relative; flex: none; border-radius: 50%; background: var(--cool); transition: background .4s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { background: var(--mint-2); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { overflow: hidden; height: 0; transition: height .6s var(--ease); }
.faq .ans p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); max-width: var(--max); margin-inline: auto; }
.stat { border-top: 2px solid var(--fg); padding-top: 16px; }
.stat:nth-child(1) { border-color: var(--mint); }
.stat:nth-child(2) { border-color: var(--peri); }
.stat:nth-child(3) { border-color: var(--ink); }
.stat:nth-child(4) { border-color: var(--mist); }
.stat .v { font-size: clamp(40px, 4.4vw, 68px); font-weight: 500; letter-spacing: .01em; line-height: .95; }
.stat .k { margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; } }

/* ---------- History ---------- */
.history { border-top: 1px solid var(--line); max-width: var(--max); margin-inline: auto; }
.hist-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding: clamp(20px, 2.4vw, 32px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.hist-row .y { grid-column: 1 / 4; font-size: clamp(28px, 2.8vw, 46px); font-weight: 500; letter-spacing: .01em; line-height: .95; }
.hist-row .t { grid-column: 4 / 9; }
.hist-row .t h4 { margin: 0 0 6px; font-size: clamp(17px, 1.35vw, 21px); font-weight: 500; letter-spacing: .01em; }
.hist-row .t p { margin: 0; color: var(--muted); font-size: 15px; }
.hist-row .m { grid-column: 10 / 13; max-width: 220px; justify-self: end; width: 100%; }
.hist-row .m .media { aspect-ratio: 4/3; }
.hist-row.is-now .y { display: inline-block; justify-self: start; background: var(--duo); padding: .06em .18em; border-radius: .15em; }
@media (max-width: 860px) { .hist-row > * { grid-column: 1 / -1 !important; justify-self: start !important; } }

/* ---------- Tools grid ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); max-width: var(--max); margin-inline: auto; }
.tool { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; transition: background .5s var(--ease-out), color .5s; }
.tool:nth-child(4n+1):hover { background: var(--mint); color: var(--ink); }
.tool:nth-child(4n+2):hover { background: var(--duo); color: var(--ink); }
.tool:nth-child(4n+3):hover { background: var(--peri); color: #fff; }
.tool:nth-child(4n+4):hover { background: var(--mist); color: var(--ink); }
.tool:hover .muted { color: inherit; opacity: .7; }
.tool b { font-weight: 500; font-size: clamp(18px, 1.4vw, 22px); letter-spacing: .01em; }
.tool .muted { font-size: 13px; }
@media (max-width: 860px) { .tools { grid-template-columns: 1fr 1fr; } }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(32px, 4vw, 56px) var(--gutter); max-width: var(--max); margin-inline: auto; }
.person .media { aspect-ratio: 4 / 5; }
.person .media img { transition: transform 1.2s var(--ease-out); }
.person:hover .media img { transform: scale(1.04); }
.person .initials { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(36px, 3.6vw, 56px); font-weight: 500; letter-spacing: .01em; color: var(--tint-ink); z-index: 1; transition: transform 1s var(--ease-out); }
.person:hover .initials { transform: scale(1.1) rotate(-4deg); }
.person .media:not(.is-missing) .initials { display: none; }
.person h4 { margin: 14px 0 0; font-size: 18px; font-weight: 500; letter-spacing: .01em; }
.person .role { color: var(--muted); font-size: 14px; }
.person p { color: var(--muted); font-size: 14px; margin: 8px 0 0; max-width: 36ch; }
@media (max-width: 1000px) { .team { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .team { grid-template-columns: 1fr 1fr; } }

/* ---------- Contact form ---------- */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.field { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: center; padding: 4px 0; }
.field > * { min-width: 0; }
.field label { color: var(--muted); font-size: 14px; }
.field input, .field textarea { font: inherit; font-size: clamp(18px, 1.4vw, 22px); letter-spacing: .01em; border: 0; outline: 0; background: transparent; color: var(--fg); padding: 16px 0; width: 100%; min-width: 0; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #b9b3a8; }
.field textarea { min-height: 120px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0; }
.choices { position: relative; }
.choices input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choices label { color: var(--fg); padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .4s, color .4s, box-shadow .4s; font-size: 14px; }
.choices input:checked + label { background: var(--ink); color: #fff; box-shadow: none; }
.choices input#s1:checked + label { background: var(--mint); color: var(--ink); }
.choices input#s2:checked + label { background: var(--peri); color: #fff; }
.choices input#s3:checked + label { background: var(--duo); color: var(--ink); }
.choices input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 2px; }
@media (max-width: 700px) { .field { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; } }

/* ---------- Project page ---------- */
.proj-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); border-top: 1px solid var(--line); padding-top: 18px; margin-top: clamp(32px, 4vw, 56px); }
.proj-meta dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.proj-meta dd { margin: 0; font-size: 15px; }
@media (max-width: 860px) { .proj-meta { grid-template-columns: 1fr 1fr; row-gap: 24px; } }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); max-width: 1040px; margin-inline: auto; }
.gallery .full { grid-column: 1 / -1; }
.gallery .full .media { aspect-ratio: 16/9; }
.gallery .half .media { aspect-ratio: 4/5; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr; } }
.next-proj { display: block; padding-block: clamp(64px, 8vw, 120px); text-align: center; border-top: 1px solid var(--line); transition: background .6s var(--ease-out); }
.next-proj:hover { background: var(--next, var(--mint-2)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; --muted: rgba(255,255,255,.6); --line: rgba(255,255,255,.14); padding: clamp(64px, 8vw, 110px) var(--gutter) 24px; overflow: hidden; }
.site-footer > * { max-width: var(--max); margin-inline: auto; }
.foot-cta { display: block; }
.foot-cta .label { color: var(--muted); }
.foot-big { font-size: clamp(56px, 10vw, 168px); font-weight: 500; letter-spacing: .01em; line-height: .86; margin: 16px 0 0; display: flex; white-space: nowrap; }
.foot-big .ch { display: inline-block; transition: transform .7s var(--ease-out), color .4s; }
.foot-big .sp { width: .22em; }
.foot-big { background: linear-gradient(100deg, #fff 0%, #fff 40%, #6ef4c4 60%, #7470f4 85%) 100% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; transition: background-position 1.4s var(--ease); }
.foot-big .ch { color: transparent; }
.foot-cta:hover .foot-big { background-position: 0 0; }
.foot-cta:hover .ch { transform: translateY(-.08em); }
.foot-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-top: clamp(48px, 6vw, 88px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.foot-grid .col { grid-column: span 3; display: grid; gap: 6px; align-content: start; }
.foot-grid .col .label { margin-bottom: 6px; color: var(--muted); }
.foot-grid .muted { color: var(--muted); }
.foot-bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-top: clamp(48px, 6vw, 80px); color: var(--muted); font-size: 12px; }
.foot-bottom .logo { width: 128px; color: #fff; }
@media (max-width: 860px) { .foot-grid .col { grid-column: span 6; } }

/* ---------- Page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 200; overflow: hidden; background: var(--ink); color: #fff; display: grid; place-items: center; pointer-events: none; transform: translateY(0); transition: transform .9s var(--ease); }
.pt::before { content: ""; position: absolute; inset: 0; background: var(--duo); transform: translateY(100%); transition: transform .9s var(--ease) .05s; }
.pt.is-cover::before { transform: translateY(0); transition-delay: 0s; }
.pt .logo { width: 128px; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .7s var(--ease-out); position: relative; }
.pt.is-first .logo { opacity: 1; transform: none; }
.pt.is-out { transform: translateY(-100%); }
.pt.is-in-start { transform: translateY(100%); transition: none; }
.pt.is-cover { transform: translateY(0); }
.pt-bar { position: absolute; left: 50%; bottom: 40px; width: 120px; margin-left: -60px; height: 2px; background: rgba(255,255,255,.25); overflow: hidden; border-radius: 2px; }
.pt-bar i { display: block; height: 100%; width: 100%; background: var(--duo); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.pt.is-first .pt-bar i { transform: scaleX(1); }

/* ---------- Small things ---------- */
.dot-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-2); margin-right: 8px; animation: pulse 2s ease-in-out infinite; vertical-align: middle; box-shadow: 0 0 0 3px rgba(125,245,207,.35); }
@keyframes pulse { 50% { opacity: .35; } }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 30px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--peri); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
.spacer { height: clamp(32px, 5vw, 80px); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; z-index: 0; animation: float 16s ease-in-out infinite alternate; }
@keyframes float { to { transform: translate3d(40px, -30px, 0) scale(1.15); } }
.hero { position: relative; overflow: hidden; }
.hero > * { position: relative; z-index: 1; }
.hero > .blob { position: absolute; z-index: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .split-line > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .pill { width: 1.9em; }
  .wk-bar { transform: none !important; }
}

/* ---------- Brand duotone photo treatment ---------- */
/* classic duotone: shadows -> periwinkle, highlights -> mint */
.duo::before, .duo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; transition: opacity .8s var(--ease-out); }
.duo::before { background: #6c68f2; mix-blend-mode: lighten; }
.duo::after { background: #74f6c9; mix-blend-mode: multiply; }
.duo:hover::before { opacity: 0; }
.duo img { filter: grayscale(1) contrast(1.25) brightness(1.05); transition: filter .8s var(--ease-out), transform 1.2s var(--ease-out); }
.duo:hover::after { opacity: 0; }
.duo:hover img { filter: none; }
.photo-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gutter); max-width: var(--max); margin-inline: auto; align-items: end; }
.photo-row .media { aspect-ratio: 4/3; }
.photo-row > :nth-child(2) .media { aspect-ratio: 4/5; }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr; } .photo-row > :nth-child(2) .media { aspect-ratio: 4/3; } }
@media (max-width: 760px) { .wk-grid { --lw: 120px; } .wk-row .lbl { font-size: 12px; } .wk-tabs button { padding: 8px 12px; font-size: 13px; } .wk-tabs button span { display: none; } }

/* ---------- Orbit motif (from the IC proposal deck) ---------- */
.orbit { position: relative; width: 132px; height: 132px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-size: 40px; font-weight: 400; letter-spacing: .01em; }
.orbit::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; animation: spin var(--spd, 9s) linear infinite; animation-delay: var(--od, 0s);
  background: radial-gradient(circle at 50% 0, currentColor 0 6px, transparent 7px); }
@keyframes spin { to { transform: rotate(360deg); } }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: var(--max); margin-inline: auto; }
.phase { border-radius: 4px; padding: 22px; min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; color: var(--ink); background: linear-gradient(180deg, #7470f4 0%, #6ef4c4 100%); transition: transform .8s var(--ease-out), flex .8s; position: relative; overflow: hidden; }
.phase:nth-child(even) { background: linear-gradient(180deg, #6ef4c4 0%, #7470f4 100%); }
.phase:hover { transform: translateY(-8px); }
.phase .ph-top { font-size: 15px; line-height: 1.25; }
.phase .ph-top b { display: block; font-weight: 500; font-size: 19px; letter-spacing: .01em; }
.phase .orbit { align-self: center; }
.phase ul { list-style: none; margin: 0; padding: 0; font-size: 14px; display: grid; gap: 6px; }
.phase li { display: flex; gap: 8px; align-items: center; }
.phase li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex: none; }
.phase .time { font-size: 13px; opacity: .75; margin-top: 12px; }
@media (max-width: 960px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } .phase { min-height: 360px; } }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); max-width: var(--max); margin-inline: auto; }
.step3 { border-radius: 4px; padding: 22px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(180deg, #7470f4 0%, #6ef4c4 100%); color: var(--ink); }
.step3 .orbit { color: #fff; align-self: center; font-size: 44px; }
.step3 p { margin: 0; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.3; letter-spacing: .01em; }
.step3 .label { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; } .step3 { min-height: 300px; } }

/* ---------- Team (deck-style columns) ---------- */
.team5 { display: grid; grid-template-columns: repeat(5, 1fr); max-width: var(--max); margin-inline: auto; border-right: 1px solid var(--peri); }
.member { border-left: 1px solid var(--peri); padding-bottom: 28px; }
.member .media { aspect-ratio: 3 / 4.4; border-radius: 0; }
.member .media img { transition: transform 1.2s var(--ease-out), filter .8s; }
.member:hover .media img { transform: scale(1.05); }
.member h4 { margin: 18px 16px 12px; font-size: clamp(20px, 1.8vw, 28px); font-weight: 400; letter-spacing: .01em; line-height: 1.05; }
.member .role-pill { margin: 0 16px; display: inline-block; font-size: 12px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--peri); color: var(--peri-ink); transition: background .4s, color .4s; }
.member:hover .role-pill { background: var(--peri); color: #fff; }
.member p { margin: 14px 16px 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1000px) { .team5 { grid-template-columns: repeat(3, 1fr); row-gap: 24px; } }
@media (max-width: 600px) { .team5 { grid-template-columns: 1fr 1fr; } }
.pill-o { display: inline-block; font-size: 13px; padding: 6px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--peri); color: var(--peri-ink); }
.pill-f { display: inline-block; font-size: 13px; padding: 6px 14px; border-radius: 999px; background: var(--peri); color: #fff; }

/* ==========================================================
   v3 — Figma typography, refined UI and micro-motion
   ========================================================== */

/* ---------- Type: Neue Haas Grotesk Display, +2% tracking ---------- */
body { letter-spacing: .02em; }
.display b, .h1 b, .h2 b, .lead b { font-weight: 500; }
.display { font-weight: 400; line-height: 1.05; letter-spacing: .005em; }
.h1 { font-weight: 400; line-height: 1.06; letter-spacing: .005em; }
.h2 { font-weight: 400; line-height: 1.14; letter-spacing: .01em; }
.h3 { font-weight: 500; letter-spacing: .015em; }
.lead { font-weight: 400; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.375; letter-spacing: .01em; }
.body-l { line-height: 1.55; }
.label { letter-spacing: .02em; }

/* ---------- Scroll progress ---------- */
.progress-top { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60; background: var(--duo); transform: scaleX(var(--sp, 0)); transform-origin: left; pointer-events: none; }

/* ---------- Header: floating capsule nav ---------- */
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px var(--gutter); }
.site-header.is-scrolled { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .logo { justify-self: start; transition: transform .5s var(--ease-out), opacity .4s; }
.site-header .logo:hover { transform: scale(.95); }
.site-header.is-scrolled .logo { opacity: 0; pointer-events: none; }
body.menu-open .site-header .logo { opacity: 1; }
.nav { position: relative; gap: 0; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 0 0 1px rgba(11,21,26,.07), 0 14px 34px -22px rgba(11,21,26,.45); font-weight: 400; }
.nav a { height: 34px; line-height: 34px; padding: 0 15px; border-radius: 999px; overflow: visible; z-index: 1; transition: color .35s; }
.nav a.is-active::before { display: none; }
.nav a.is-hot { color: #fff; }
.nav-ind { position: absolute; z-index: 0; top: 4px; left: 0; height: 34px; width: 0; border-radius: 999px; background: var(--ink); opacity: 0; pointer-events: none; transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s; }
.head-cta.btn { justify-self: end; height: 42px; padding: 0 6px 0 16px; font-size: 14px; gap: 10px; }
.head-cta.btn .arrow { width: 30px; height: 30px; }
.nav-toggle { justify-self: end; grid-column: 3; height: 38px; padding: 0 16px; border-radius: 999px; background: rgba(255,255,255,.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 0 0 1px rgba(11,21,26,.07); }
body.menu-open .nav-toggle { background: rgba(255,255,255,.12); box-shadow: none; }
@media (max-width: 860px) { .head-cta.btn { display: none; } .site-header { grid-template-columns: 1fr auto; } .nav-toggle { grid-column: 2; } }
.menu a { font-weight: 400; transform: translateY(60%); opacity: 0; transition: transform .9s var(--ease-out), opacity .6s; }
.menu.is-open a { transform: none; opacity: 1; transition-delay: calc(var(--i, 0) * 60ms + .25s); }

/* ---------- Buttons: arrow swap ---------- */
.btn { height: 48px; padding: 0 8px 0 22px; gap: 14px; letter-spacing: .02em; transition: transform .45s var(--ease-out), color .4s; }
.btn:active { transform: scale(.96) !important; }
.btn .arrow { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; overflow: hidden; font-size: 0; flex: none; transition: background .4s; }
.btn .arrow::before, .btn .arrow::after { content: "→"; grid-area: 1 / 1; font-size: 15px; line-height: 1; letter-spacing: 0; transition: transform .55s var(--ease); }
.btn .arrow::after { transform: translateX(-180%); }
.btn:hover .arrow { transform: none; background: rgba(11,21,26,.1); }
.btn:hover .arrow::before { transform: translateX(180%); }
.btn:hover .arrow::after { transform: none; }
.btn .arrow.down::before, .btn .arrow.down::after { content: "↓"; }
.btn .arrow.down::after { transform: translateY(-180%); }
.btn:hover .arrow.down::before { transform: translateY(180%); }
.btn--ghost .arrow, .btn--light .arrow, .offer--product .btn .arrow { background: rgba(11,21,26,.08); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(128px, 14vw, 200px); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, #fff); z-index: 0; pointer-events: none; }
.hero-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: clamp(22px, 2.6vw, 36px); }
.tagchip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px 0 12px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); }
.hero .display { max-width: 17ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { white-space: nowrap; }
.blob { translate: calc(var(--px, 0) * 60px) calc(var(--py, 0) * 44px); filter: blur(70px); }
.pill { transition: width 1.2s var(--ease) .5s, border-radius .6s; }

.dot-live { background: var(--mint-ink); box-shadow: none; position: relative; animation: none; }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--mint); animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3.4); opacity: 0; } }

/* ---------- Reel badge ---------- */
.reel-wrap { position: relative; }
.badge-spin { position: absolute; right: clamp(14px, 2.4vw, 32px); bottom: clamp(14px, 2.4vw, 32px); width: clamp(88px, 9vw, 124px); aspect-ratio: 1; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; z-index: 2; }
.badge-spin svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge-spin text { font-size: 9.5px; letter-spacing: .14em; fill: currentColor; text-transform: uppercase; }
.badge-spin .core { width: 24%; aspect-ratio: 1; border-radius: 50%; background: var(--duo); transition: transform .7s var(--ease-out); }
.reel-wrap:hover .core { transform: scale(1.6); }

/* ---------- Reveal: blur-in, tilted line masks, image settle ---------- */
[data-reveal] { filter: blur(10px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].is-in { filter: none; }
[data-reveal="clip"] { filter: none; }
[data-reveal="clip"] img { transform: scale(1.18); transition: transform 2s var(--ease-out); }
[data-reveal="clip"].is-in img { transform: scale(1.001); }
.split-line > span { transform: translateY(112%) rotate(3deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease); }
.sec-head { position: relative; padding-top: 20px; }
.sec-head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease); }
.sec-head.is-in::before { transform: scaleX(1); }

/* ---------- Shared card motion: spotlight follows the pointer ---------- */
.offer, .card, .phase, .step3 { isolation: isolate; transition: opacity 1s var(--ease-out), transform .9s var(--ease-out), filter 1s var(--ease-out), flex-grow .9s var(--ease), background .5s; transition-delay: var(--d, 0s); }
.offer::after, .card::after, .phase::after, .step3::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.45), transparent 62%); opacity: 0; transition: opacity .5s; }
.offer:hover::after, .card:hover::after, .phase:hover::after, .step3:hover::after { opacity: 1; }
.offer > *, .card > *, .phase > *, .step3 > * { position: relative; z-index: 1; }

/* ---------- Offer cards ---------- */
.offer { border-radius: 28px; padding: clamp(24px, 2.8vw, 40px); gap: 20px; min-height: 520px; }
.offer:hover { transform: none; }
.offer .price { font-weight: 400; font-size: clamp(52px, 5.6vw, 88px); letter-spacing: 0; line-height: 1; }
.offer .price small { letter-spacing: .02em; }
.rc { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em 0; margin: -.06em 0; }
.rc > i { display: inline-block; font-style: normal; transform: translateY(115%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 55ms + .25s); }
.is-in .rc > i { transform: none; }
.offer li { padding: 12px 0; align-items: center; opacity: 0; transform: translateX(-10px); transition: opacity .7s, transform .9s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--n, 0) * 70ms + .5s); }
.offer.is-in li { opacity: 1; transform: none; }
.offer li::before { content: ""; width: 14px; height: 14px; flex: none; opacity: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; background: radial-gradient(circle, currentColor 0 2.5px, transparent 3px); }
.offer .shape { right: -80px; top: -100px; width: 280px; height: 280px; border-radius: 50% !important; background: none !important; border: 1px solid currentColor; opacity: .3; transform: none !important; }
.offer .shape::before { content: ""; position: absolute; inset: 40px; border-radius: 50%; border: 1px solid currentColor; }
.offer .shape::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: radial-gradient(circle at 50% 100%, currentColor 0 6px, transparent 7px); animation: spin 12s linear infinite; }
.offer .tag { letter-spacing: .02em; }

/* ---------- Principle cards ---------- */
.card { border-top: 0; background: var(--cool); border-radius: 22px; padding: 22px 22px 26px; position: relative; overflow: hidden; }
.card:hover { transform: translateY(-6px); background: #eef1f6; }
.card .n { margin-bottom: 56px; transition: transform .6s var(--ease-out); }
.card:hover .n { transform: scale(1.12); }
.card::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(110,244,196,.35), transparent 62%); }

/* ---------- Phases: hover to expand ---------- */
.phase { border-radius: 24px; padding: 24px; }
.phase:hover { transform: none; }
.phase .orbit, .step3 .orbit { transition: transform .9s var(--ease-out); }
.phase:hover .orbit, .step3:hover .orbit { transform: scale(1.12); }
.step3 { border-radius: 24px; position: relative; overflow: hidden; }
@media (min-width: 961px) {
  .phases { display: flex; }
  .phase { flex: 1 1 0; min-width: 0; }
  .phases:hover .phase { flex-grow: .86; }
  .phases .phase:hover { flex-grow: 1.5; }
}

/* ---------- Week diagram ---------- */
.week { border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -50px rgba(11,21,26,.35); }
.wk-tabs button { letter-spacing: .02em; }
.wk-days { border-bottom: 0; padding-bottom: 6px; }
.wk-day { padding: 8px 10px; margin: 0 3px; border-radius: 12px; text-align: left; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .3s, background .4s; }
.wk-day:hover { background: var(--cool); color: var(--ink); }
.wk-day.is-on { color: var(--accent-text); }
.wk-day i { display: block; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.wk-day i::after { content: ""; position: absolute; inset: 0; background: var(--accent-text); transform: scaleX(var(--dp, 0)); transform-origin: left; }
.wk-lines span { transition: background .5s; }
.wk-lines span.is-on { background: linear-gradient(to bottom, color-mix(in srgb, var(--accent) 12%, transparent), transparent 85%); }
.wk-trail { position: absolute; top: 0; bottom: 0; left: var(--lw); width: calc((100% - var(--lw)) * var(--p, 0)); background: linear-gradient(to right, transparent 60%, color-mix(in srgb, var(--accent) 18%, transparent)); pointer-events: none; opacity: 0; transition: opacity .4s; z-index: 0; }
.week.is-playing .wk-trail { opacity: 1; }
.wk-play { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 32%, transparent); border-radius: 2px; }
.wk-bar { height: 32px; letter-spacing: .02em; }
.wk-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%) 200% 0 / 200% 100% no-repeat; opacity: 0; }
.week.is-in .wk-row.is-on .wk-bar:not(.you)::after { opacity: 1; animation: sheen 2s var(--ease) infinite; }
@keyframes sheen { to { background-position: -100% 0; } }
.wk-row .lbl i { transition: transform .5s var(--ease-out); }
.wk-row.is-on .lbl i { transform: scale(1.7); }
.wk-detail .dd b { font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: .005em; }
.wk-detail .swap { transition: opacity .35s, transform .5s var(--ease-out), filter .35s; }
.wk-detail.is-swapping .swap { filter: blur(6px); transform: translateY(10px); }
.wk-detail .out .chip { animation: pop .6s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }
.wk-ctrl button { transition: background .3s, transform .4s var(--ease-out); }
.wk-ctrl button:hover { transform: scale(1.1); }
.wk-ctrl button:active { transform: scale(.9); }

/* ---------- Work cards ---------- */
.work-card .media { border-radius: 20px; transition: border-radius .8s var(--ease-out), transform .9s var(--ease-out); }
.work-card:hover .media { transform: scale(.97); border-radius: 30px; }
.work-card:hover .media img { transform: scale(1.1); }
.work-card .title::after { content: "↗"; font-size: .8em; opacity: 0; transform: translate(-6px, 6px); transition: opacity .4s, transform .5s var(--ease-out); }
.work-card:hover .title::after { opacity: 1; transform: none; }
.work-card .title i { transition: transform .5s var(--ease-out); }
.work-card:hover .title i { transform: scale(1.5); }
.work-card .tags { font-size: 12px; padding: 4px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); white-space: nowrap; transition: background .4s, box-shadow .4s; }
.work-card:hover .tags { background: var(--dot); box-shadow: none; }

/* ---------- Marquee: driven by scroll velocity ---------- */
.marquee-track.js { animation: none; will-change: transform; }
.marquee-item { font-weight: 400; }
.marquee-item::after { content: ""; width: .4em; height: .4em; border-radius: 50%; border: 1.5px solid currentColor; opacity: .55; }

/* ---------- Cursor ---------- */
.cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(116,112,244,.12); box-shadow: inset 0 0 0 1.5px var(--peri); }
.cursor.is-down { scale: .78; }
.cursor { transition: width .5s var(--ease-out), height .5s var(--ease-out), margin .5s var(--ease-out), opacity .3s, background .3s, box-shadow .3s, scale .25s; }

/* ---------- Small interactions ---------- */
.faq summary { transition: padding .5s var(--ease-out), color .3s; }
.faq summary:hover { padding-left: 10px; color: var(--peri-ink); }
.faq summary:hover i { transform: rotate(90deg); }
.field { position: relative; }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--duo); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field label { transition: color .3s; }
.field:focus-within > label { color: var(--ink); }
.choices label { transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--ease-out); }
.choices label:hover { transform: translateY(-2px); }
.choices label:active { transform: scale(.95); }
.tool { position: relative; }
.tool b { transition: transform .6s var(--ease-out); }
.tool:hover b { transform: translateX(6px); }
.stat .v { font-weight: 400; }
.hist-row { transition: padding .6s var(--ease-out); }
.hist-row:hover { padding-left: 12px; }
.member h4 { transition: color .4s; }
.member:hover h4 { color: var(--peri-ink); }
.foot-big { font-weight: 400; }
.next-proj .display { transition: letter-spacing .8s var(--ease-out); }
.next-proj:hover .display { letter-spacing: .03em; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .rc > i, .offer li, .menu a { filter: none !important; opacity: 1 !important; transform: none !important; }
  .sec-head::before { transform: none !important; }
}

/* ==========================================================
   v4 — one Website Sprint, calmer surfaces
   ========================================================== */
.offers--one { grid-template-columns: 1fr; }
.offer--wide { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); min-height: 0; align-items: center; }
.offer--wide .o-main { display: flex; flex-direction: column; gap: 20px; }
.offer--wide .o-main .btn { margin-top: 12px; align-self: start; }
@media (max-width: 860px) { .offer--wide { grid-template-columns: 1fr; } }

/* phase and next-step cards: quiet grey instead of full gradients */
.phase, .phase:nth-child(even), .step3 { background: var(--cool); min-height: 340px; }
.phase .orbit, .step3 .orbit { color: var(--peri-ink); width: 104px; height: 104px; font-size: 28px; }
.phase li::before { background: var(--peri); }
.phase::after, .step3::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(110,244,196,.35), transparent 62%); }
.phase:hover, .step3:hover { background: #eef1f6; }
.step3 { min-height: 300px; }
@media (min-width: 961px) { .phases:hover .phase, .phases .phase:hover { flex-grow: 1; } }

/* week: a single sprint, so the switch is just a title */
.wk-tabs button:only-of-type { pointer-events: none; }

/* ---------- Sprint card: dark, with dots that light up under the pointer (as on alexneto.com) ---------- */
.offer--dark { background: var(--ink); color: #fff; --muted: rgba(255,255,255,.62); --line: rgba(255,255,255,.16); }
.offer--dark .btn { background: #fff; color: var(--ink); }
.offer--dark .btn::before { background: var(--mint); }
.offer--dark .btn .arrow { background: rgba(11,21,26,.08); }
.offer--dark li::before { color: var(--mint); }
.offer--dark .shape { opacity: .22; }
.offer--dark .shape::after { background: radial-gradient(circle at 50% 100%, var(--mint) 0 6px, transparent 7px); }
.offer--dark::after {
  background: radial-gradient(currentColor .9px, transparent 1.1px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 78%);
  mask-image: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 78%);
}
.offer--dark:hover::after { opacity: .34; }
/* a sheen crosses the card once on hover */
.offer--dark::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.1) 50%, transparent 70%); transform: translateX(-100%); }
.offer--dark:hover::before { transform: translateX(100%); transition: transform 1s var(--ease); }
/* sprint card list: no dividing lines */
.offer ul { border-top: 0; }
.offer li { border-bottom: 0; padding: 9px 0; }
/* project cards: one straight row, no stagger */
.work-card:nth-child(n) { margin-top: 0; }

/* ---------- Buttons: quiet hover (colour shift and a small arrow nudge, nothing else) ---------- */
.btn { transition: background-color .25s, color .25s, box-shadow .25s; }
.btn::before { display: none; }
.btn:hover { color: #fff; background: #26323a; }
.btn:active { transform: none !important; }
.btn .arrow::after { display: none; }
.btn .arrow::before { transition: transform .25s var(--ease-out); }
.btn:hover .arrow, .btn--ghost:hover .arrow, .btn--light:hover .arrow { background: rgba(255,255,255,.16); }
.btn:hover .arrow::before { transform: translateX(2px); }
.btn:hover .arrow.down::before { transform: translateY(2px); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.btn--light:hover, .offer--dark .btn:hover, .offer--product .btn:hover { background: #e9edf2; color: var(--ink); }
.btn--light:hover .arrow, .offer--dark .btn:hover .arrow, .offer--product .btn:hover .arrow { background: rgba(11,21,26,.08); }
.hero-meta > .hero-cta { grid-column: 7 / 13; justify-self: end; }
