/* ==========================================================================
   Square Owl: main stylesheet
   1. Tokens & base      5. Homepage sections
   2. Header & menu      6. Footer & owl
   3. Buttons & links    7. Motion
   4. Shared type/layout 8. Responsive
   ========================================================================== */

/* 1. Tokens & base ------------------------------------------------------- */
@property --num { syntax: '<integer>'; inherits: false; initial-value: 75; }

:root {
  --navy: #2a314c;
  --navy-2: #222840;
  --paper: #F2F0EA;
  --paper-2: #E8E5DC;
  --lime: #D4FF3F;
  --mute: #454B61;     /* body grey on paper, 6.9:1 */
  --mute-n: #C5CADA;   /* body grey on navy: 7.7:1 on #2a314c, 8.7:1 on footer navy (AAA) */
  --rule: rgba(42, 49, 76, .16);
  --rule-n: rgba(255, 255, 255, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --f-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --f-body: 'Instrument Sans', system-ui, sans-serif;
  --f-mono: 'Instrument Sans', system-ui, sans-serif;  /* utility/label face (was a monospace) */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body.so {
  margin: 0;
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
:where(.so) a { color: inherit; }
.so h1, .so h2, .so h3 { font-family: var(--f-display); margin: 0; font-weight: 800; letter-spacing: -0.032em; }
.so p { margin: 0; }
img { max-width: 100%; height: auto; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--lime); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 16px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.navy { background: var(--navy); color: #fff; }

.so :focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.navy :focus-visible, .hdr :focus-visible, .menu :focus-visible, .foot :focus-visible, .cta :focus-visible { outline-color: var(--lime); }

/* 2. Header & menu ------------------------------------------------------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--navy); color: #fff; }
.hdr-in { display: flex; align-items: center; gap: 32px; height: 76px; }
.hdr-logo { display: flex; text-decoration: none; }
.hdr-logo img { height: 40px; width: auto; display: block; }
.hdr-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 16px; font-weight: 500; }
.lnk { text-decoration: none; position: relative; padding: 8px 0; }
.lnk::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.lnk:hover::after, .lnk[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--rule-n); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger.is-shown { display: inline-flex; }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--lime); transform-origin: left; transform: scaleX(0); }

.menu { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: #fff; padding: 20px; display: flex; flex-direction: column; }
.menu[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.menu-top img { height: 30px; width: auto; }
.menu ol { list-style: none; margin: 48px 0 0; padding: 0; }
.menu li a { display: flex; align-items: baseline; gap: 16px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 38px; letter-spacing: -0.03em; padding: 12px 0; border-bottom: 1px solid var(--rule-n); }
.menu li a span { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--lime); letter-spacing: 0; }
.menu-cta { margin-top: auto; justify-content: center; }
body.menu-open { overflow: hidden; }

/* 3. Buttons & links ----------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--f-display); font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; transition: background .3s; }
.btn .arr, .more .arr { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arr, .more:hover .arr, .card:hover .more .arr { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--navy); }   /* navy on white, 12.8:1 */
.btn-light:hover { background: var(--lime); }          /* navy on lime, 11:1 */
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-xl { min-height: 64px; padding: 0 34px; font-size: 19px; }
.more { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; padding: 10px 0; background: linear-gradient(currentColor, currentColor) no-repeat 0 calc(100% - 4px) / 0% 2px; transition: background-size .4s var(--ease); }
.more:hover { background-size: 100% 2px; }
.more-light { color: #fff; }

/* 4. Shared type & layout ------------------------------------------------ */
.sec { padding: 136px 0; }
.paper { background: var(--paper); }
.paper2 { background: var(--paper-2); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; margin-bottom: 72px; }

.clause { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 24px !important; }
.sq { width: 10px; height: 10px; background: var(--navy); display: inline-block; flex: none; }
.navy .sq, .cta .sq, .sq-lime { background: var(--lime); }
.h2 { font-size: clamp(38px, 4.6vw, 68px); line-height: 1.02; }
.lead { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.5; color: var(--mute); max-width: 30em; }
.navy .lead { color: var(--mute-n); }

/* The highlighter. Lime is only ever used behind navy text, never as text on light grounds. */
@media (min-width: 601px) { .hl-keep { white-space: nowrap; } }
/* Long hero highlights (e.g. About) may wrap on phones instead of running off-screen. */
@media (max-width: 600px) { .page-h1 .hl.hl-wrap { display: inline; white-space: normal; } }
.hl { background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 90% / 100% 44%; padding: 0 3px; color: var(--navy); box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* 5. Homepage sections --------------------------------------------------- */

/* Hero */
.hero { position: relative; overflow: hidden; background-color: var(--navy); background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; background-position: -1px -1px; }
.hero-in { padding-top: 128px; padding-bottom: 104px; }
.hero-h1 { font-size: clamp(52px, 8.4vw, 128px); line-height: 1.14; letter-spacing: -0.05em !important; font-weight: 900 !important; max-width: 10em; }
.hero-h1 .hl { display: inline-block; white-space: nowrap; line-height: 1.02; margin-top: .14em; background-position: 0 0; background-size: 100% 100%; padding: 0 .1em .04em; }
.hero-sub { margin-top: 48px !important; font-size: clamp(20px, 1.7vw, 24px); line-height: 1.5; color: #E6E8EF; max-width: 28em; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero-trust { list-style: none; margin: 72px 0 0; padding: 24px 0 0; border-top: 1px solid var(--rule-n); display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--f-mono); font-size: 13px; color: var(--mute-n); }
.hero-trust li { display: inline-flex; align-items: center; gap: 10px; }
.hero-trust .sq { width: 8px; height: 8px; }

/* 1.0 Problem */
.prob { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 96px; align-items: start; }
.prob .lead { margin-top: 28px; }
.avoid-h { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; color: var(--mute); padding-bottom: 16px; border-bottom: 2px solid var(--navy); }
.avoid { list-style: none; margin: 0; padding: 0; }
.avoid li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.avoid .n { font-family: var(--f-mono); font-size: 14px; font-weight: 700; }
.avoid .t { font-family: var(--f-display); font-weight: 700; font-size: clamp(21px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -0.02em; }
.strike { background: linear-gradient(var(--navy), var(--navy)) no-repeat 0 58% / 100% 2px; }

/* 2.0 Fit */
.fit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; }
.fit-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.fit-item { background: rgba(255,255,255,.06); border: 1px solid var(--rule-n); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.fit-item .box { width: 40px; height: 40px; border-radius: 10px; background: var(--lime); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.fit-item .box svg { width: 20px; height: 20px; }
.fit-item h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.fit-item p { font-size: 17px; line-height: 1.55; color: var(--mute-n); }
.fit-card { border-radius: 20px; padding: 36px 40px; }
.fit-good { background: rgba(255,255,255,.06); border: 1px solid var(--rule-n); }
.fit-bad { border: 1px dashed rgba(255,255,255,.3); }
.fit-card h3 { font-family: var(--f-mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; color: var(--mute-n); }
.fit-card ul { list-style: none; margin: 0; padding: 0; }
.fit-card li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule-n); font-size: 19px; font-weight: 500; line-height: 1.4; }
.fit-bad li { color: var(--mute-n); font-weight: 400; }
.box { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.fit-good .box { background: var(--lime); color: var(--navy); }
.fit-bad .box { border: 1.5px solid var(--mute-n); color: var(--mute-n); }
.box svg { width: 16px; height: 16px; }
.tick path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.creds { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px !important; font-family: var(--f-mono); font-size: 13px; color: var(--mute-n); }
.creds span { display: inline-flex; align-items: center; gap: 10px; }
.creds .sq { width: 8px; height: 8px; }


/* 3.0 Secure & accessible by design */
.design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.design-card { background: #fff; border: 2px solid var(--navy); border-radius: 24px; padding: 40px; }
.design-ico { width: 60px; height: 60px; border-radius: 16px; background: var(--navy); color: var(--lime); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
.design-ico svg { width: 32px; height: 32px; }
.design-card h3 { font-size: clamp(26px, 2.2vw, 32px); margin-bottom: 8px; }
.design-list { list-style: none; margin: 0; padding: 0; }
.design-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 17px; line-height: 1.5; }
.design-list li:first-child { border-top: 0; }
.design-list .dot { width: 10px; height: 10px; border-radius: 2px; background: var(--navy); transform: translateY(-1px); }
.cert-row { margin-top: 24px; background: var(--navy); color: #fff; border-radius: 24px; padding: 32px 40px; }
.cert-link { margin-top: 28px !important; text-align: center; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.certs li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 3px solid var(--lime); }
.certs b { font-family: var(--f-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.certs span { font-size: 14px; color: var(--mute-n); }

/* 4.0 Process */
.proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 88px; align-items: start; }
.phases { list-style: none; margin: 0; padding: 0; position: relative; }
.phases::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: var(--rule); }
.phase { position: relative; min-height: 560px; }
.phase:last-child { min-height: 400px; }
.phase h3 { font-size: clamp(28px, 2.6vw, 38px); letter-spacing: -0.03em; }
.phase-hit { all: unset; cursor: pointer; display: flex; align-items: center; gap: 24px; border-radius: 14px; color: var(--mute); transition: color .4s; }
.phase-hit:focus-visible { outline: 3px solid var(--navy); outline-offset: 6px; }
.phase-num { width: 56px; height: 56px; flex: none; border-radius: 14px; border: 2px solid var(--navy); background: var(--paper); color: var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; font-size: 16px; transition: background .4s, color .4s, transform .4s var(--ease); }
.phase-get { margin: 14px 0 0 80px !important; font-size: 18px; line-height: 1.5; color: var(--mute); }
.phase.is-active .phase-hit { color: var(--navy); }
.phase.is-active .phase-num { background: var(--navy); color: var(--lime); transform: scale(1.06); }
.phase.is-active .phase-get { color: var(--navy); }

.ill-wrap { position: sticky; top: 112px; }
.ill { background: #fff; border-radius: 22px; border: 2px solid var(--navy); box-shadow: 12px 12px 0 var(--navy); overflow: hidden; }
.ill-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px; border-bottom: 2px solid var(--navy); font-family: var(--f-mono); font-size: 12.5px; background: var(--paper); }
.ill-dots { display: flex; gap: 6px; }
.ill-dots i { width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid var(--navy); display: block; }
.ill-ver { margin-left: auto; background: var(--navy); color: var(--lime); padding: 3px 8px; border-radius: 5px; font-weight: 700; }
.stage { position: relative; height: 430px; overflow: hidden; }
.st { position: absolute; inset: 26px; animation: stIn .55s var(--ease) both; }
.st[hidden], .toast[hidden] { display: none; }
.ill-cap { margin-top: 22px !important; font-family: var(--f-mono); font-size: 14px; color: var(--mute); }


/* State 01: scribble */
.scrib svg { width: 100%; height: 100%; overflow: visible; }
.scrib path, .scrib ellipse { fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hand { position: absolute; font-family: 'Caveat', cursive; font-weight: 700; font-size: 26px; line-height: 1; color: var(--navy); }
.hand-1 { left: 52px; top: 290px; }
.hand-2 { left: 200px; top: 332px; }
.hand-3 { left: 312px; top: 176px; }

/* State 02: wireframe */
.wf { position: absolute; border: 2px solid var(--navy); border-radius: 8px; background: repeating-linear-gradient(135deg, transparent 0 9px, rgba(42,49,76,.06) 9px 10px); }
.wf-line { position: absolute; height: 8px; border-radius: 4px; background: rgba(42,49,76,.22); }
.req { position: absolute; display: flex; align-items: center; justify-content: center; height: 24px; min-width: 34px; padding: 0 6px; border-radius: 6px; background: var(--lime); color: var(--navy); border: 2px solid var(--navy); font-family: var(--f-mono); font-size: 11px; font-weight: 700; animation: pop .45s cubic-bezier(.3, 1.5, .5, 1) both; }
.req-list { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; font-family: var(--f-mono); font-size: 11px; line-height: 1.45; border-top: 2px solid var(--navy); padding-top: 10px; }
.req-list b { border: 1.5px solid var(--navy); border-radius: 3px; padding: 0 3px; margin-right: 5px; }

/* State 03: prototype */
.ph-frame { position: absolute; top: 10px; width: 150px; height: 282px; border: 2px solid var(--navy); border-radius: 20px; background: #fff; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.ph-frame.left { left: 14px; }
.ph-frame.right { right: 14px; }
.ph-frame .bar { height: 10px; border-radius: 5px; background: rgba(42,49,76,.2); }
.ph-frame .blk { border-radius: 8px; border: 2px solid var(--navy); background: var(--paper); }
.ph-frame .blk.lime { background: var(--lime); }
.ph-frame .cta-b { margin-top: auto; height: 34px; border-radius: 9px; background: var(--navy); color: var(--lime); font-family: var(--f-mono); font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.flow svg { position: absolute; overflow: visible; }
.flow .flow-arrow { left: 150px; top: 120px; width: 120px; height: 140px; }
.flow .fl { stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
.cursor { position: absolute; width: 26px; height: 26px; left: 70px; top: 246px; animation: cursorMove 3.2s cubic-bezier(.6, 0, .3, 1) infinite; }
.ripple { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--navy); left: 58px; top: 236px; opacity: 0; animation: ripple 3.2s ease-out infinite; }
.flow-note { position: absolute; left: 0; right: 0; bottom: 0; font-family: var(--f-mono); font-size: 11px; border-top: 2px solid var(--navy); padding-top: 10px; }

/* States 04/05: product */
.hifi { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--navy); display: grid; grid-template-columns: 76px minmax(0, 1fr); background: var(--paper); }
.hifi-side { background: var(--navy); padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hifi-side i { display: block; width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.14); }
.hifi-side i.on { background: var(--lime); }
.hifi-main { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hifi-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.hifi-top span { font-family: var(--f-mono); font-size: 10px; font-weight: 700; background: var(--navy); color: var(--lime); padding: 5px 9px; border-radius: 6px; }
.hifi-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.kpi { background: #fff; border-radius: 10px; padding: 12px; border: 1px solid var(--rule); transition: box-shadow .4s; }
.kpi i { display: block; height: 8px; border-radius: 4px; background: rgba(42,49,76,.18); width: 60%; }
.kpi b { display: block; height: 20px; border-radius: 5px; background: var(--navy); margin-top: 10px; width: 75%; }
.chart { flex: 1; background: #fff; border-radius: 10px; border: 1px solid var(--rule); padding: 14px; display: flex; align-items: flex-end; gap: 10px; min-height: 0; }
.chart i { flex: 1; background: var(--navy); border-radius: 5px 5px 0 0; transform-origin: bottom; animation: grow .8s var(--ease) both; }
.chart i:nth-child(2n) { background: #5A6285; }
.chart i:nth-child(1) { height: 40%; } .chart i:nth-child(2) { height: 62%; } .chart i:nth-child(3) { height: 48%; } .chart i:nth-child(4) { height: 78%; }
.chart i:nth-child(5) { height: 66%; } .chart i:nth-child(6) { height: 88%; } .chart i:nth-child(7) { height: 72%; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.rows div { height: 22px; border-radius: 6px; background: #fff; border: 1px solid var(--rule); }
.v11 .kpi.chg { box-shadow: 0 0 0 2px var(--navy), 0 0 0 6px var(--lime), 0 0 0 8px var(--navy); }
.toast { position: absolute; right: 14px; bottom: 14px; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; font-family: var(--f-mono); font-size: 11px; line-height: 1.45; max-width: 210px; animation: toastIn .6s .4s var(--ease) both; }
.toast b { color: var(--lime); }

.cost { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: 24px; padding: 40px 48px; }
.cost h3 { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.1; display: flex; align-items: center; gap: 20px; }
.cost .ico { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--lime); display: flex; align-items: center; justify-content: center; color: var(--navy); }

/* 4.0 Work */
.work { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.work-head { margin-bottom: 56px; }
.card { position: relative; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; transition: transform .4s var(--ease); }
.card:hover { transform: translateY(-4px); }
.c-bcl { grid-column: span 7; grid-row: span 2; background: var(--navy); color: #fff; }
.c-cpt { grid-column: span 5; background: #fff; border: 2px solid var(--navy); }
.c-fdr { grid-column: span 5; border: 2px solid var(--navy); }
.c-fdr .more { margin-top: auto; }
.c-tag { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; display: flex; gap: 10px; align-items: center; }
.card h3 { font-size: clamp(28px, 2.5vw, 38px); line-height: 1.06; }
.c-bcl .more { color: #fff; }
.bcl-vis { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 24px; }
.count { display: flex; flex-direction: column; gap: 8px; }
.count-n { font-family: var(--f-display); font-weight: 900; font-size: 136px; line-height: .82; letter-spacing: -0.05em; color: var(--lime); }
.count-n::after { counter-reset: n var(--num); content: counter(n); }
.count-l { font-family: var(--f-mono); font-size: 13px; color: var(--mute-n); }
.stack { position: relative; width: 150px; height: 176px; flex: none; }
.stack i { position: absolute; inset: 0; background: #fff; border-radius: 8px; border: 2px solid var(--navy); transition: transform .5s var(--ease); padding: 16px 14px; display: flex; flex-direction: column; gap: 7px; }
.stack i::before, .stack i::after { content: ''; height: 6px; border-radius: 3px; background: rgba(42,49,76,.2); display: block; }
.stack i::after { width: 60%; }
.stack i:nth-child(1) { transform: rotate(-2deg); }
.stack i:nth-child(2) { transform: rotate(1.5deg); }
.stack i:nth-child(3) { transform: rotate(-.5deg); }
.stack i:nth-child(4) { background: var(--lime); }
.c-bcl:hover .stack i:nth-child(1) { transform: translate(-40px, 8px) rotate(-12deg); }
.c-bcl:hover .stack i:nth-child(2) { transform: translate(-14px, 2px) rotate(-5deg); }
.c-bcl:hover .stack i:nth-child(3) { transform: translate(12px, -2px) rotate(4deg); }
.c-bcl:hover .stack i:nth-child(4) { transform: translate(36px, -6px) rotate(10deg); }
.tl { position: relative; margin: 8px 0 4px; height: 52px; }
.tl-line { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--navy); transform-origin: left; }
.tl-ticks { position: absolute; left: 0; right: 0; top: 4px; display: flex; justify-content: space-between; }
.tl-ticks i { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--navy); background: #fff; display: block; }
.tl-ticks i:last-child { background: var(--navy); animation: pulse 2.2s ease-in-out infinite; }
.tl-lab { position: absolute; left: 0; right: 0; top: 32px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--mute); }
.tl-lab span:last-child { color: var(--navy); font-weight: 700; }
.duo { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; flex-wrap: wrap; }
.duo span { padding: 8px 11px; border-radius: 9px; border: 2px solid var(--navy); background: #fff; }
.duo .one { background: var(--navy); color: #fff; }
.duo svg { width: 32px; height: 16px; }

/* 5.0 Senior */
.senior { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: center; }
.senior .lead { margin-top: 24px; }
.heritage { --p: 1; list-style: none; margin: 104px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--rule-n); position: relative; }
.heritage::after { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(var(--p)); }
.heritage li { position: relative; padding: 32px 32px 0 0; display: flex; flex-direction: column; gap: 10px; transition: transform .6s var(--ease); }
.heritage li::before { transition: background .4s, transform .4s var(--ease); }
.heritage .h-what { transition: color .5s; }
.heritage.is-live li:not(.is-on) { transform: translateY(10px); }
.heritage.is-live li:not(.is-on)::before { background: var(--navy) !important; transform: scale(.8); }
.heritage.is-live li:not(.is-on) .h-what { color: var(--mute-n); }
.heritage li.is-on::before { background: var(--lime); }
.heritage li::before { content: ''; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 4px; background: var(--navy); border: 2px solid var(--lime); }
.heritage li:last-child::before { background: var(--lime); }
.h-when { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mute-n); }
.h-what { font-family: var(--f-display); font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; color: #fff; }
.senior-link { margin-top: 28px !important; }
.quote { margin: 0; position: relative; padding-top: 92px; }
.quote-mark { position: absolute; top: 0; left: 0; width: 68px; height: 68px; border-radius: 16px; background: var(--lime); display: flex; align-items: center; justify-content: center; color: var(--navy); font-family: var(--f-display); font-weight: 900; font-size: 72px; line-height: 1; padding-top: 26px; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -0.03em; }
.quote figcaption { margin-top: 28px; font-family: var(--f-mono); font-size: 13px; color: var(--mute-n); }
.quote figcaption b { color: #fff; font-weight: 500; }

/* 6.0 After launch */
.after { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 88px; align-items: center; }
.after-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--navy); }
.after-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.after-list .k { font-family: var(--f-mono); font-size: 13px; font-weight: 700; padding-top: 6px; }
.after-list h3 { font-size: 24px; letter-spacing: -0.02em; }
.after-list p { font-size: 17px; color: var(--mute); margin-top: 4px !important; }
.loop { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; justify-self: center; }
.loop-ring { position: absolute; inset: 14%; border: 2px dashed var(--navy); border-radius: 50%; animation: spin 40s linear infinite; }
.loop-c { position: absolute; inset: 34%; border-radius: 22px; background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--f-mono); font-size: 12px; font-weight: 700; line-height: 1.4; }
.node { position: absolute; width: 104px; height: 52px; margin: -26px 0 0 -52px; border-radius: 12px; border: 2px solid var(--navy); background: var(--paper); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; font-weight: 700; animation: nodeOn 6s infinite; }
.node.a { left: 50%; top: 14%; }
.node.b { left: 86%; top: 50%; animation-delay: 1.5s; }
.node.c { left: 50%; top: 86%; animation-delay: 3s; }
.node.d { left: 14%; top: 50%; animation-delay: 4.5s; }

/* 7.0 Founders */
.sec-founders { padding: 120px 0; }
.founders { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: center; }
.founders .h2 { font-size: clamp(36px, 4.2vw, 60px); }
.founders .lead { margin-top: 24px; }
.founders .lead + .lead { margin-top: 14px; }

/* Napkin to product: the napkin slides back and the product comes forward as you scroll */
.napkin-stage { --p: 1; position: relative; height: 420px; max-width: 480px; width: 100%; justify-self: center; }
.napkin { position: absolute; left: 0; top: 10px; width: 300px; height: 300px; background: #FBFAF5; border-radius: 6px;
  background-image: linear-gradient(90deg, transparent 49.6%, rgba(42,49,76,.07) 50%, transparent 50.4%), linear-gradient(transparent 49.6%, rgba(42,49,76,.07) 50%, transparent 50.4%);
  box-shadow: 0 18px 40px -18px rgba(20,24,40,.45);
  transform: translate(calc(var(--p) * -10px), calc(var(--p) * -6px)) rotate(calc(-3deg - var(--p) * 4deg)); transition: transform .2s linear; }
.napkin-sketch { width: 100%; height: 100%; }
.napkin-sketch path, .napkin-sketch circle { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.napkin-sketch circle { stroke: rgba(42,49,76,.25); stroke-width: 6; }
.napkin-word { position: absolute; font-family: 'Caveat', cursive; font-weight: 700; color: var(--navy); line-height: 1; }
.napkin-title { left: 70px; top: 44px; font-size: 34px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.napkin-note { left: 34px; top: 236px; font-size: 22px; transform: rotate(-4deg); }
.napkin-cap { left: 8px; bottom: -40px; font-size: 24px; }
.product { position: absolute; right: 0; bottom: 30px; width: 300px; background: #fff; border: 2px solid var(--navy); border-radius: 16px; box-shadow: 10px 10px 0 var(--navy); overflow: visible;
  transform: translate(calc((1 - var(--p)) * 40px), calc((1 - var(--p)) * 30px)) rotate(calc(2deg * var(--p))); transition: transform .2s linear; }
.product-bar { display: flex; gap: 5px; padding: 10px 12px; border-bottom: 2px solid var(--navy); background: var(--paper); border-radius: 14px 14px 0 0; }
.product-bar i { width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--navy); }
.product-body { display: grid; grid-template-columns: 44px minmax(0, 1fr); min-height: 180px; }
.product-side { background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; border-radius: 0 0 0 14px; }
.product-side i { width: 18px; height: 18px; border-radius: 5px; background: rgba(255,255,255,.16); }
.product-side i.on { background: var(--lime); }
.product-main { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.product-main b { display: block; height: 12px; width: 50%; border-radius: 4px; background: var(--navy); }
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product-cards span { height: 46px; border-radius: 8px; border: 1px solid var(--rule); background: var(--paper); }
.product-cards span:first-child { box-shadow: inset 0 0 0 2px var(--navy); background: var(--lime); }
.product-rows { display: flex; flex-direction: column; gap: 6px; }
.product-rows span { height: 14px; border-radius: 4px; background: rgba(42,49,76,.12); }
.product-cap { position: absolute; right: 4px; bottom: -42px; font-family: 'Caveat', cursive; font-weight: 700; font-size: 24px; color: var(--navy); }

/* 8.0 CTA */
.cta { background-color: var(--navy); color: #fff; text-align: center; padding: 152px 0 136px; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 56px 56px; }
.cta-in { max-width: 900px; }
.cta .clause { justify-content: center; }
.cta .h2 { font-size: clamp(44px, 5.6vw, 86px); line-height: .98; }
.cta .lead { margin: 28px auto 0; color: var(--mute-n); }
.cta-act { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px; margin-top: 44px; }
.cta .more { color: #fff; }

/* Inner pages */
.page-hero .hero-in { padding-top: 112px; padding-bottom: 88px; }
.page-h1 { font-size: clamp(44px, 6vw, 92px); line-height: 1.1; letter-spacing: -0.045em !important; font-weight: 900 !important; max-width: 12em; }
.page-h1 .hl { display: inline-block; white-space: nowrap; line-height: 1.02; margin-top: .1em; background-position: 0 0; background-size: 100% 100%; padding: 0 .1em .04em; }
.page-hero .hero-sub { margin-top: 36px !important; }
.policy { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; padding: 56px 0; border-top: 1px solid var(--rule); }
.policy:first-child { border-top: 0; padding-top: 0; }
.policy-head h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; }
.policy-head .clause { margin-bottom: 14px !important; }
.policy-body .lead { margin-bottom: 20px; color: var(--navy); }

/* 6. Footer & owl -------------------------------------------------------- */
.foot { background: var(--navy-2); color: #fff; padding: 72px 0 36px; border-top: 1px solid var(--rule-n); }
.foot-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.foot-top > img { height: 44px; width: auto; display: block; }
.foot-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.foot-h { margin: 0 0 14px !important; font-family: var(--f-mono) !important; font-size: 12px; letter-spacing: .08em !important; text-transform: uppercase; color: var(--mute-n); font-weight: 500 !important; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.foot ul a { text-decoration: none; }
.foot ul a:hover { color: var(--lime); }
.foot-base { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule-n); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 12px; color: var(--mute-n); }
.owl-wrap { display: flex; align-items: center; gap: 16px; }
.owl-say { font-family: var(--f-mono); font-size: 12px; color: var(--mute-n); text-align: right; line-height: 1.5; }
.owl { width: 64px; height: 64px; flex: none; margin-top: 8px; }
.owl .so-mark, .so-mark { display: block; }

/* 7. Motion -------------------------------------------------------------- */
@keyframes stIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes dash { to { stroke-dashoffset: -12; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(42,49,76,.35); } 50% { box-shadow: 0 0 0 8px rgba(42,49,76,0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nodeOn { 0%, 4% { background: var(--paper); } 8%, 22% { background: var(--lime); transform: scale(1.06); } 28%, 100% { background: var(--paper); transform: none; } }
@keyframes idleBlink { 0%, 95%, 100% { transform: scaleY(0); } 97% { transform: scaleY(1); } }
@keyframes blink { 0%, 100% { transform: scaleY(0); } 45%, 55% { transform: scaleY(1); } }
@keyframes cursorMove { 0% { left: 150px; top: 60px; opacity: 0; } 12% { opacity: 1; } 40%, 55% { left: 70px; top: 246px; } 62% { left: 70px; top: 246px; transform: scale(.85); } 70% { transform: none; left: 70px; top: 246px; } 88% { left: 250px; top: 120px; opacity: 1; } 100% { left: 250px; top: 120px; opacity: 0; } }
@keyframes ripple { 0%, 58% { opacity: 0; transform: scale(.4); } 62% { opacity: 1; } 80%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes draw { from { stroke-dashoffset: 900; } }
@keyframes hlIn { from { background-size: 0% 44%; } }
@keyframes heroHl { 0% { background-size: 0% 100%; color: #fff; } 60% { color: #fff; } 100% { background-size: 100% 100%; color: var(--navy); } }
@keyframes strikeIn { from { background-size: 0% 2px; } }
@keyframes tickIn { from { stroke-dashoffset: 24; } }
@keyframes boxIn { from { transform: scale(.3); opacity: 0; } }
@keyframes countUp { from { --num: 0; } }
@keyframes lineIn { from { transform: scaleX(0); } }
@keyframes prog { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-h1 { animation: rise .8s .1s var(--ease) both; }
  .hero-h1 .hl { animation: heroHl .9s 1s cubic-bezier(.7, 0, .2, 1) both; }
  .hero-sub, .hero-ctas { animation: rise .8s .5s var(--ease) both; }
  .scrib .draw { stroke-dasharray: 900; animation: draw 1.8s cubic-bezier(.4, 0, .2, 1) both; }
  .scrib .d2 { animation-delay: .3s; } .scrib .d3 { animation-delay: .6s; } .scrib .d4 { animation-delay: .9s; }
  .hand { animation: rise .5s .4s both; } .hand-2 { animation-delay: .7s; } .hand-3 { animation-delay: 1s; }
  .req:nth-of-type(2) { animation-delay: .1s; } .req:nth-of-type(3) { animation-delay: .2s; } .req:nth-of-type(4) { animation-delay: .3s; }
  .chart i:nth-child(2) { animation-delay: .08s; } .chart i:nth-child(3) { animation-delay: .16s; } .chart i:nth-child(4) { animation-delay: .24s; }
  .chart i:nth-child(5) { animation-delay: .32s; } .chart i:nth-child(6) { animation-delay: .4s; } .chart i:nth-child(7) { animation-delay: .48s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .so *, .so *::before, .so *::after { animation: none !important; transition: none !important; }
}
/* Scroll-linked effects (Chrome/Edge). Other browsers show the finished state. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hdr-progress { animation: prog linear both; animation-timeline: scroll(root); }
    .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .hl { animation: hlIn linear both; animation-timeline: view(); animation-range: entry 60% cover 42%; }
    .strike { animation: strikeIn linear both; animation-timeline: view(); animation-range: entry 90% cover 48%; }
    .fit-item .box { animation: boxIn linear both; animation-timeline: view(); animation-range: entry 40% cover 30%; }
    .fit-item .tick path { animation: tickIn linear both; animation-timeline: view(); animation-range: entry 70% cover 36%; }
    .count-n { animation: countUp linear both; animation-timeline: view(); animation-range: entry 30% cover 50%; }
    .tl-line { animation: lineIn linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
  }
}

/* 8. Responsive ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .head, .prob, .senior, .after, .proc { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .head { margin-bottom: 48px; }
  /* The phase illustration only works when it can stay pinned beside the list, so it is hidden on stacked layouts. */
  .ill-wrap { display: none; }
  .phase, .phase:last-child { min-height: 0; padding-bottom: 36px; }
  .c-bcl, .c-cpt, .c-fdr { grid-column: span 12; grid-row: auto; }
  .design-grid { grid-template-columns: minmax(0, 1fr); }
  .founders { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .policy { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 44px 0; }
  .heritage { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; border-top: 0; }
  .heritage li { border-top: 2px solid var(--rule-n); }
  .heritage::after { display: none; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hdr-nav { display: none; }
  .burger { display: inline-flex; }
  .fit, .fit-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .hdr-in { height: 64px; }
  .hdr-logo img { height: 34px; }
  .sec { padding: 88px 0; }
  .hero-in { padding-top: 72px; padding-bottom: 72px; }
  .fit-item, .card { padding: 26px 22px; }
  .stage { height: 380px; }
  .stage .st { inset: 14px; zoom: .84; }
  .count-n { font-size: 96px; }
  .cost { padding: 28px 24px; }
  .cta { padding: 104px 0 96px; }
  .owl-say { display: none; }
  .hero-trust { margin-top: 48px; flex-direction: column; gap: 10px; }
  .design-card { padding: 28px 22px; }
  .cert-row { padding: 24px 22px; }
  .certs { grid-template-columns: minmax(0, 1fr); }
  .heritage { grid-template-columns: minmax(0, 1fr); margin-top: 72px; }
  .napkin-stage { height: 380px; max-width: 320px; }
  .napkin { width: 230px; height: 230px; }
  .product { width: 200px; bottom: 40px; right: 10px; }
  .napkin-title { left: 52px; top: 30px; font-size: 28px; }
  .napkin-note { left: 24px; top: 182px; font-size: 18px; }
}
