/* Tessera landing — "One motif": the tessera tile, tilted 16° like the one in the mark. */

@font-face { font-family: 'Funnel Display'; src: url('/fonts/funnel-display.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: 'Funnel Sans'; src: url('/fonts/funnel-sans.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }

:root {
  --orange: #ff5a1f;
  --orange-2: #ff7a45;
  --ink: #0b0d14;
  --ink-2: #1a1d29;
  --blue: #2346e8;
  --white: #f4f6fa;
  --white-2: #e7ebf2;
  --paper: #fbfbfb;
  --teal: #22e3c4;
  --pink: #f0306a;
  --gold: #c9a84a;
  --green: #0b7a4b;
  --text-2: #3f4452;

  --f-display: 'Funnel Display', 'Funnel Sans', system-ui, sans-serif;
  --f-text: 'Funnel Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* five steps */
  --s-hero: clamp(52px, 6.6vw, 112px);
  --s-h2: clamp(36px, 4.2vw, 68px);
  --s-statement: clamp(22px, 2vw, 30px);
  --s-body: 18px;
  --s-small: 15px;

  --m: clamp(16px, 2.2vw, 32px);
  --tile-r: 22%;
  --r: 14px;
  --gap: clamp(112px, 12vw, 184px);

  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--orange); color: var(--ink); font-family: var(--f-text); font-size: var(--s-body); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
kbd { font: inherit; }
::selection { background: var(--ink); color: var(--orange); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.c-ink :focus-visible, .c-blue :focus-visible, .verify :focus-visible, .close :focus-visible, .foot :focus-visible, .cant :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: var(--m); top: -100px; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: var(--r); z-index: 50; }
.skip:focus { top: 12px; }

/* ── type ─────────────────────────────── */
.display, .display-2 { font-family: var(--f-display); font-weight: 800; font-size: var(--s-hero); line-height: 0.92; letter-spacing: -0.035em; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: var(--s-h2); line-height: 0.98; letter-spacing: -0.03em; }
.lede { font-size: var(--s-statement); line-height: 1.35; max-width: 31ch; font-weight: 500; }
.body { font-size: var(--s-body); max-width: 46ch; }
.body a, .consent-text a, .aside a { text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }

/* ── controls ─────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 28px; border-radius: var(--r); font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; text-decoration: none; transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.btn:active { transform: scale(0.97) rotate(-1deg); }
.btn-ink { background: var(--ink); color: var(--orange); }
.btn-white { background: var(--white); color: var(--ink); }
.text-link { font-weight: 600; text-underline-offset: 0.25em; text-decoration-thickness: 2px; text-decoration-color: currentColor; transition: text-decoration-color 160ms ease; }
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { background: var(--blue); color: var(--white); transform: rotate(-2deg); }
  .btn-white:hover { background: var(--orange); color: var(--ink); transform: rotate(-2deg); }
  .text-link:hover { text-decoration-color: transparent; }
}

/* ── bar: links sit on the orange, left ── */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; gap: 40px; padding: 20px var(--m); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: var(--s-statement); letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); --fly: var(--blue); }
.bar-links { display: flex; gap: 28px; }
.bar-links a { font-weight: 600; font-size: var(--s-small); text-decoration: none; color: var(--ink); }
.bar-links a:hover { text-decoration: underline; text-underline-offset: 0.25em; text-decoration-thickness: 2px; }
.bar-action { margin-left: auto; font-weight: 600; font-size: var(--s-small); text-decoration: none; background: var(--ink); color: var(--white); padding: 10px 18px; border-radius: var(--r); transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease; }
.bar-action:hover { background: var(--white); color: var(--ink); }
.bar-action:active { transform: scale(0.96); }

/* ── hero ─────────────────────────────── */
.hero { position: relative; min-height: max(680px, 100svh); overflow: hidden; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; padding: 96px var(--m) 64px; column-gap: 24px; }
.hero-tile { position: absolute; width: 124vh; height: 124vh; min-width: 760px; min-height: 760px; left: 56vw; top: 54%; transform: translateY(-50%) rotate(16deg); background: var(--blue); border-radius: var(--tile-r); }
.hero-copy { grid-column: 1 / 7; position: relative; z-index: 2; padding-left: 4vw; display: grid; gap: 28px; }
.hero-copy .display { max-width: 7.4em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }
.hero-stage { grid-column: 7 / 13; position: relative; z-index: 2; margin-left: 4vw; transform: rotate(-4deg); }

/* certificate, built to scale with its own width */
.cert { container-type: inline-size; width: 100%; aspect-ratio: 1.414; background: var(--paper); color: #1c1c1e; border-radius: 4px; position: relative; overflow: hidden; }
.cert-frame { position: absolute; inset: 3.2cqw; border: 0.32cqw solid var(--gold); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 6cqw; }
.cert-head { font: 600 2.3cqw/1 var(--f-text); letter-spacing: 0.06em; text-transform: uppercase; color: #5f5f66; margin-bottom: 6cqw; }
.cert-intro { font: 400 2.6cqw/1.3 var(--f-text); color: #5f5f66; }
.cert-name { font: 800 7.4cqw/1.1 var(--f-display); letter-spacing: -0.03em; white-space: nowrap; margin: 2.6cqw 0 3cqw; max-width: 100%; transition: opacity 260ms ease, transform 360ms var(--ease-out); }
.cert-course { font: 700 3.6cqw/1.3 var(--f-display); letter-spacing: -0.01em; margin-top: 2.4cqw; }
.cert-foot { position: absolute; left: 3cqw; right: 3cqw; bottom: 2.6cqw; display: flex; justify-content: space-between; align-items: flex-end; text-align: left; }
.cert-id { display: block; font: 600 1.9cqw/1.3 var(--f-text); color: #55555c; letter-spacing: 0.02em; }
.cert-url { display: block; font: 400 1.4cqw/1.3 var(--f-text); color: #5f5f66; margin-top: 0.8cqw; }
.cert-qr { width: 9cqw; height: 9cqw; padding: 0.6cqw; background: #fff; }
.cert.is-swapping .cert-name { opacity: 0; transform: translateY(1.5cqw); }
.flipper { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--white); font-size: var(--s-small); font-weight: 500; }
.flipper b { font-weight: 800; }

/* ── try it ───────────────────────────── */
.try { background: var(--white); display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh; }
.try-plate { margin: 40px; aspect-ratio: 1; align-self: center; background: var(--orange); border-radius: var(--tile-r); display: grid; place-items: center; padding: 9%; }
.try-plate .cert { transform: rotate(-3deg); transition: transform 500ms var(--ease-out); }
.try-plate:hover .cert { transform: rotate(0deg) scale(1.02); }
.try-side { display: flex; flex-direction: column; justify-content: space-between; padding: 64px var(--m) 40px 40px; gap: 48px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 10px 16px; border-radius: var(--r); font-size: var(--s-small); font-weight: 600; color: var(--text-2); cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.tabs button:hover { color: var(--ink); background: var(--white-2); }
.tabs button:active { transform: scale(0.96); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.try-mid { display: grid; gap: 24px; }
.try-label { display: block; font-size: var(--s-body); max-width: 38ch; }
.try-field { position: relative; max-width: 520px; }
.try-input { width: 100%; height: 72px; padding: 0 96px 0 24px; border: 0; border-radius: var(--r); background: var(--white-2); font-family: var(--f-display); font-weight: 700; font-size: var(--s-statement); letter-spacing: -0.015em; color: var(--ink); transition: background-color 160ms ease; }
.try-input::placeholder { color: #5d6270; }
.try-input:focus { background: #fff; outline: 3px solid var(--ink); outline-offset: -3px; }
.try-count { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: var(--s-small); font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; pointer-events: none; }
.try-count.full { color: #b0123f; }
.cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell { display: flex; align-items: center; padding: 0 24px; height: 72px; border-radius: var(--r); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 18px; transition: transform 140ms var(--ease-out), background-color 180ms ease; }
.cell:active { transform: scale(0.97); }
.cell-ink { background: var(--ink); color: var(--orange); }
.cell-tone { background: var(--white-2); color: var(--ink); }
.cell-ink:hover { background: var(--blue); color: var(--white); }
.cell-tone:hover { background: #d6dce7; }

.cert[data-design="hackathon"] { background: #0f1430; color: #f4f6fa; }
.cert[data-design="hackathon"] .cert-frame { border-color: var(--teal); }
.cert[data-design="hackathon"] .cert-intro, .cert[data-design="hackathon"] .cert-head, .cert[data-design="hackathon"] .cert-id, .cert[data-design="hackathon"] .cert-url { color: #c3cae3; }
.cert[data-design="hackathon"] .cert-name { color: var(--teal); }
.cert[data-design="fest"] { background: #fff4ec; }
.cert[data-design="fest"] .cert-frame { border-color: var(--pink); border-width: 0.9cqw; }
.cert[data-design="fest"] .cert-name { color: #b0123f; font-style: italic; }

/* ── how it works: four fields, each one moving ── */
.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.how-title { position: absolute; left: 28px; top: 28px; z-index: 2; font-family: var(--f-display); font-weight: 800; font-size: var(--s-statement); letter-spacing: -0.02em; line-height: 1.1; }
.step { padding: 104px 28px 64px; display: flex; flex-direction: column; gap: 14px; }
.s1 { background: var(--orange); }
.s2 { background: var(--white); }
.s3 { background: var(--blue); color: var(--white); }
.s4 { background: var(--ink); color: var(--white); }
.step-title { margin-top: 24px; font-family: var(--f-display); font-weight: 800; font-size: var(--s-statement); line-height: 1.1; letter-spacing: -0.02em; }
.step-text { font-size: var(--s-body); max-width: 30ch; }
.stage { position: relative; aspect-ratio: 1 / 1; background: #fff; color: var(--ink); border-radius: var(--r); overflow: hidden; margin-top: 8px; }
.s2 .stage { background: #fff; }
.s4 .stage { background: var(--ink-2); color: var(--white); }

/* step 1: a PDF drops in, uploads, becomes the template */
.drop { position: absolute; inset: 14px; background: var(--white-2); border-radius: 10px; display: grid; place-items: center; }
.drop-file { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px 14px; border-radius: 10px; font-weight: 700; font-size: var(--s-small); white-space: nowrap; }
.pdf { background: #d93025; color: #fff; font-size: 12px; font-weight: 800; padding: 4px 6px; border-radius: 4px; }
.drop-bar { position: absolute; left: 18%; right: 18%; top: 66%; height: 8px; background: #d3d9e4; border-radius: 4px; overflow: hidden; }
.drop-bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }
.drop-done { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.mini-cert { width: 72%; aspect-ratio: 1.414; background: var(--paper); border: 3px solid var(--gold); display: grid; place-items: center; border-radius: 3px; }
.mini-line { width: 56%; height: 2px; background: #b9b3a3; margin-top: 14%; }

/* step 2: messy rows become tidy rows */
.sheet { position: absolute; inset: 14px; display: grid; align-content: center; gap: 6px; }
.srow { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6px; }
.srow span { grid-row: 1; padding: 8px 10px; border-radius: 6px; font-size: 14px; font-weight: 600; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.srow span:nth-child(-n+2) { grid-column: 1; }
.srow span:nth-child(n+3) { grid-column: 2; }
.srow .m { background: #ffe1d2; color: #7a2a08; }
.srow .c { background: #e2f6ee; color: #0b5a38; opacity: 0; }
.srow.dup .c { display: none; }
.sheet-note { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--green); opacity: 0; }

/* step 3: the name lands on the line */
.place { position: absolute; inset: 14px; display: grid; place-items: center; background: var(--white-2); border-radius: 10px; }
.place-cert { position: relative; width: 84%; aspect-ratio: 1.414; background: var(--paper); border: 3px solid var(--gold); border-radius: 3px; }
.place-line { position: absolute; left: 22%; right: 22%; top: 58%; height: 2px; background: #b9b3a3; }
.place-guide { position: absolute; left: 50%; top: 6%; bottom: 6%; width: 2px; margin-left: -1px; background: var(--pink); opacity: 0; }
.place-chip { position: absolute; left: 50%; top: 58%; width: 62%; height: 2.2em; margin: -2.4em 0 0 -31%; display: grid; place-items: center; background: rgba(35, 70, 232, 0.12); outline: 2px solid var(--blue); border-radius: 4px; font-family: var(--f-display); font-size: clamp(14px, 1.3vw, 19px); color: var(--ink); }
.pn { grid-area: 1 / 1; font-weight: 800; letter-spacing: -0.02em; opacity: 0; white-space: nowrap; }
.pn0 { opacity: 1; font-weight: 600; color: var(--blue); }

/* step 4: everyone gets theirs */
.send { position: absolute; inset: 16px; display: grid; align-content: center; gap: 8px; }
.send-row { display: flex; justify-content: space-between; align-items: center; background: #262a3a; padding: 12px 14px; border-radius: 8px; font-size: var(--s-small); font-weight: 600; }
.st { display: grid; }
.st i { grid-area: 1 / 1; font-style: normal; font-weight: 700; justify-self: end; }
.sending { color: #c3cae3; }
.sent { color: var(--teal); opacity: 0; }
.send-total { margin-top: 8px; font-family: var(--f-display); font-weight: 800; font-size: 20px; color: var(--teal); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .step .stage * { animation-play-state: paused !important; }
  .step.is-in .stage * { animation-play-state: running !important; }
  .drop-file { animation: s1-file 6.5s var(--ease-out) infinite; }
  .drop-bar { animation: s1-barwrap 6.5s linear infinite; }
  .drop-bar i { animation: s1-bar 6.5s var(--ease-in-out) infinite; }
  .drop-done { animation: s1-done 6.5s var(--ease-out) infinite; }
  .srow .m { animation: s2-m 6.5s ease infinite; }
  .srow .c { animation: s2-c 6.5s ease infinite; }
  .srow:nth-child(2) span { animation-delay: 0.15s; }
  .srow:nth-child(3) span { animation-delay: 0.3s; }
  .srow.dup .m { animation-name: s2-dup; }
  .sheet-note { animation: s2-note 6.5s ease infinite; }
  .place-chip { animation: s3-chip 7s var(--ease-in-out) infinite; }
  .place-guide { animation: s3-guide 7s ease infinite; }
  .pn0 { animation: s3-n0 7s ease infinite; }
  .pn1 { animation: s3-n1 7s ease infinite; }
  .pn2 { animation: s3-n2 7s ease infinite; }
  .pn3 { animation: s3-n3 7s ease infinite; }
  .send-row { animation: s4-row 6.5s var(--ease-out) infinite; }
  .send-row.r2 { animation-delay: 0.12s; }
  .send-row.r3 { animation-delay: 0.24s; }
  .r1 .sending { animation: s4-a1 6.5s ease infinite; } .r1 .sent { animation: s4-b1 6.5s ease infinite; }
  .r2 .sending { animation: s4-a2 6.5s ease infinite; } .r2 .sent { animation: s4-b2 6.5s ease infinite; }
  .r3 .sending { animation: s4-a3 6.5s ease infinite; } .r3 .sent { animation: s4-b3 6.5s ease infinite; }
  .send-total { animation: s4-total 6.5s ease infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .drop-file, .drop-bar { display: none; }
  .drop-done { opacity: 1; }
  .srow .m { opacity: 0; } .srow .c { opacity: 1; } .srow.dup { display: none; } .sheet-note { opacity: 1; }
  .pn0 { opacity: 0; } .pn1 { opacity: 1; }
  .sending { opacity: 0; } .sent, .send-total { opacity: 1; }
}
@keyframes s1-file { 0% { transform: translateY(-160%); opacity: 0; } 14% { transform: translateY(-20%); opacity: 1; } 22%, 50% { transform: translateY(-20%); opacity: 1; } 58%, 100% { transform: translateY(-20%) scale(0.9); opacity: 0; } }
@keyframes s1-barwrap { 0%, 20% { opacity: 0; } 24%, 52% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes s1-bar { 0%, 24% { transform: scaleX(0); } 50%, 100% { transform: scaleX(1); } }
@keyframes s1-done { 0%, 56% { opacity: 0; transform: scale(0.85); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes s2-m { 0%, 34% { opacity: 1; transform: none; } 44%, 100% { opacity: 0; transform: translateX(-8px); } }
@keyframes s2-c { 0%, 38% { opacity: 0; transform: translateX(8px); } 48%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s2-dup { 0%, 50% { opacity: 1; transform: none; } 60%, 100% { opacity: 0; transform: translateX(24px); } }
@keyframes s2-note { 0%, 62% { opacity: 0; transform: translateY(6px); } 70%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s3-chip { 0%, 8% { transform: translate(-46%, -150%) rotate(-6deg); } 34%, 100% { transform: none; } }
@keyframes s3-guide { 0%, 30% { opacity: 0; } 36%, 46% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes s3-n0 { 0%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes s3-n1 { 0%, 40% { opacity: 0; } 44%, 60% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes s3-n2 { 0%, 62% { opacity: 0; } 66%, 80% { opacity: 1; } 84%, 100% { opacity: 0; } }
@keyframes s3-n3 { 0%, 82% { opacity: 0; } 86%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes s4-row { 0% { opacity: 0; transform: translateY(10px); } 8%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes s4-a1 { 0%, 22% { opacity: 1; } 26%, 100% { opacity: 0; } }
@keyframes s4-b1 { 0%, 22% { opacity: 0; } 26%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes s4-a2 { 0%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes s4-b2 { 0%, 38% { opacity: 0; } 42%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes s4-a3 { 0%, 54% { opacity: 1; } 58%, 100% { opacity: 0; } }
@keyframes s4-b3 { 0%, 54% { opacity: 0; } 58%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes s4-total { 0%, 62% { opacity: 0; transform: translateY(6px); } 70%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ── verify ───────────────────────────── */
.verify { background: var(--blue); color: var(--white); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; padding: var(--gap) var(--m); align-items: center; }
.verify-seal { grid-column: 1 / 6; }
.seal { width: 100%; max-width: 520px; overflow: visible; }
.half-l { fill: var(--paper); }
.half-r { fill: var(--ink); }
.seal-check { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.verify-copy { grid-column: 7 / 13; display: grid; gap: 28px; }
.vform { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 24px; display: grid; gap: 12px; max-width: 560px; }
.vform label { font-size: var(--s-small); font-weight: 600; color: var(--text-2); }
.vrow { display: flex; gap: 8px; }
.vrow input { flex: 1; min-width: 0; height: 56px; border: 0; border-radius: 10px; background: var(--white-2); padding: 0 16px; font-size: 18px; font-weight: 600; letter-spacing: 0.03em; }
.vrow input:focus { outline: 3px solid var(--ink); outline-offset: -3px; background: #fff; }
.vrow button { height: 56px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 700; cursor: pointer; transition: transform 140ms var(--ease-out), background-color 160ms ease; }
.vrow button:hover { background: var(--blue); }
.vrow button:active { transform: scale(0.96); }
.vresult { display: grid; gap: 4px; padding-top: 12px; }
.vresult[hidden] { display: none; }
.vstate { font-family: var(--f-display); font-weight: 800; font-size: var(--s-h2); line-height: 1; letter-spacing: -0.03em; color: var(--green); }
.vfact { font-size: 18px; }
.vnote { font-size: var(--s-small); color: var(--text-2); }
.aside { font-size: var(--s-small); max-width: 52ch; color: var(--white); }

/* ── the little things ────────────────── */
.board { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; padding: var(--gap) 10px; background: var(--orange); }
.tile { position: relative; overflow: hidden; border-radius: var(--r); margin: 0; }
.t-head { grid-column: span 6; grid-row: span 2; padding: 20px; display: flex; align-items: flex-start; }
.t-revoke, .t-team { grid-column: span 3; grid-row: span 2; }
.t-mail { grid-column: span 6; grid-row: span 4; }
.t-qr { grid-column: span 6; grid-row: span 4; }
.t-sheet { grid-column: span 6; grid-row: span 2; }
.t-local { grid-column: span 6; grid-row: span 2; }
.c-white { background: var(--white); color: var(--ink); }
.c-blue { background: var(--blue); color: var(--white); }
.c-ink { background: var(--ink); color: var(--white); }
.c-pink { background: var(--pink); color: var(--ink); }
.c-teal { background: var(--teal); color: var(--ink); }
.c-orange { background: var(--orange-2); color: var(--ink); }
.cap { position: absolute; left: 20px; bottom: 20px; right: 20px; display: grid; gap: 2px; z-index: 2; }
.cap b { font-size: 18px; font-weight: 700; }
.cap span { font-size: var(--s-small); }
.zoom { position: absolute; }
.chip-revoked { position: absolute; left: 40%; top: -14px; display: inline-flex; align-items: center; gap: 0.4em; font: 800 64px/1 var(--f-display); letter-spacing: -0.03em; background: var(--white); color: #b0123f; padding: 12px 22px; border-radius: 14px; white-space: nowrap; }
.chip-revoked::before { content: ''; width: 0.36em; height: 0.36em; background: currentColor; border-radius: 22%; }
.t-team .zoom { right: -26px; top: -18px; display: flex; }
.disc { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font: 800 38px/1 var(--f-display); margin-left: -26px; border: 6px solid var(--white); }
.d1 { background: var(--orange); color: var(--ink); }
.d2 { background: var(--blue); color: var(--white); }
.d3 { background: var(--teal); color: var(--ink); }
.d4 { background: var(--ink); color: var(--white); }
.zoom-mail { left: 20px; top: 20px; right: -120px; background: var(--white); color: var(--ink); border-radius: 14px; padding: 22px 26px; font-size: 26px; display: grid; gap: 10px; }
.zoom-mail p { white-space: nowrap; }
.zoom-mail span { display: inline-block; width: 4.2em; color: #5d6270; }
.zoom-mail .att { margin-top: 10px; display: inline-flex; width: max-content; padding: 10px 16px; background: var(--white-2); border-radius: 10px; font-weight: 700; }
.zoom-qr { left: -30px; top: -30px; width: 300px; height: 300px; overflow: hidden; }
.qr-result { position: absolute; left: 300px; right: 24px; top: 40px; background: var(--ink); color: var(--white); border-radius: 14px; padding: 18px 20px; display: grid; gap: 4px; }
.qr-state { font: 800 34px/1 var(--f-display); letter-spacing: -0.03em; color: var(--teal); }
.qr-who { font-weight: 700; font-size: 18px; }
.qr-what { font-size: var(--s-small); color: #c3cae3; }
.zoom-qr svg { width: 100%; height: 100%; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--orange); }
.zoom-sheet { right: -30px; top: -12px; display: flex; align-items: flex-start; gap: 18px; }
.keys { display: flex; gap: 6px; margin-top: 22px; }
.keys kbd { display: grid; place-items: center; min-width: 54px; height: 54px; padding: 0 12px; background: var(--ink); color: var(--white); border-radius: 10px; font-weight: 800; font-size: 20px; }
.zoom-sheet table { border-collapse: collapse; background: var(--white); font-size: 26px; }
.zoom-sheet th, .zoom-sheet td { border: 2px solid #c9cfda; padding: 10px 18px; text-align: left; white-space: nowrap; }
.zoom-sheet th { background: var(--white-2); font-weight: 700; }
.zoom-local { right: -18px; top: -30px; display: flex; align-items: baseline; gap: 10px; font-family: var(--f-display); letter-spacing: -0.04em; }
.zoom-local .count { font-size: 150px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.zoom-local span { font-size: 40px; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .tile .zoom { transition: transform 300ms var(--ease-out); }
  .tile:hover .zoom { transform: translate(-6px, -4px); }
  .js .t-revoke .chip-revoked { opacity: 0; transform: scale(1.7) rotate(-14deg); }
  .js .t-revoke.is-in .chip-revoked { animation: stamp 520ms cubic-bezier(0.3, 1.4, 0.5, 1) 400ms forwards; }
  .js .t-team .disc { opacity: 0; transform: scale(0.6); }
  .js .t-team.is-in .disc { animation: pop 420ms var(--ease-out) forwards; }
  .js .t-team.is-in .d2 { animation-delay: 140ms; } .js .t-team.is-in .d3 { animation-delay: 280ms; } .js .t-team.is-in .d4 { animation-delay: 420ms; }
  .js .t-mail .ml, .js .t-mail .att { opacity: 0; transform: translateX(-16px); }
  .js .t-mail.is-in .ml, .js .t-mail.is-in .att { animation: slidein 500ms var(--ease-out) forwards; }
  .js .t-mail.is-in .ml2 { animation-delay: 200ms; } .js .t-mail.is-in .ml3 { animation-delay: 400ms; } .js .t-mail.is-in .att { animation-delay: 700ms; }
  .scan { animation: scan 2.6s var(--ease-in-out) infinite alternate; }
  .js .t-qr .qr-result { opacity: 0; transform: translateX(-16px); }
  .js .t-qr.is-in .qr-result { animation: slidein 600ms var(--ease-out) 1.4s forwards; }
  .keys kbd { animation: press 4.5s ease infinite; }
  .keys kbd + kbd { animation-delay: 80ms; }
  .zoom-sheet .pr { animation: rowin 4.5s ease infinite; }
  .zoom-sheet .pr2 { animation-delay: 120ms; }
}
@keyframes stamp { to { opacity: 1; transform: rotate(-4deg); } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes slidein { to { opacity: 1; transform: none; } }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(294px); } }
@keyframes press { 0%, 12% { transform: none; } 16% { transform: scale(0.88); } 22%, 100% { transform: none; } }
@keyframes rowin { 0%, 18% { opacity: 0; transform: translateY(-10px); } 28%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ── your gmail, in plain words ───────── */
.google { background: var(--white); padding: var(--gap) var(--m); display: grid; gap: 56px; }
.google-head { display: grid; gap: 20px; max-width: 760px; }
.cando { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cando-col { padding: 40px; border-radius: var(--r); display: grid; gap: 28px; align-content: start; }
.can { background: var(--teal); color: var(--ink); }
.cant { background: var(--ink); color: var(--white); }
.cando-col h3 { font-family: var(--f-display); font-weight: 800; font-size: var(--s-statement); letter-spacing: -0.02em; }
.cando-col ul { list-style: none; display: grid; gap: 20px; }
.cando-col li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; font-size: 20px; line-height: 1.4; font-weight: 500; }
.cando-col li svg { width: 40px; height: 40px; padding: 8px; border-radius: 22%; }
.can li svg { background: var(--ink); color: var(--teal); }
.cant li svg { background: var(--pink); color: var(--ink); transform: rotate(16deg); }
.consent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.consent-card { background: #fff; color: #1f1f1f; border-radius: 16px; padding: 28px; display: grid; gap: 18px; outline: 1px solid #d6dbe4; }
.cc-title { font-size: 20px; font-weight: 600; }
.cc-row { display: flex; align-items: center; gap: 12px; font-size: 16px; padding: 14px 16px; background: #f1f3f6; border-radius: 10px; }
.cc-row svg { width: 24px; height: 24px; color: #1a73e8; flex: none; }
.consent-text { font-size: var(--s-body); max-width: 50ch; }

/* ── questions ────────────────────────── */
.faq { padding: var(--gap) var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq > .h2 { grid-column: 3 / 11; margin-bottom: 48px; }
.drawer { grid-column: 3 / 11; display: grid; gap: 8px; }
.fcard { background: var(--white); color: var(--ink); border-radius: var(--r); }
.fcard.is-open { background: var(--ink); color: var(--white); }
.fcard h3 { margin: 0; font: inherit; }
.ftab { display: flex; align-items: center; gap: 24px; width: 100%; text-align: left; border: 0; background: none; padding: 24px 24px 24px 28px; cursor: pointer; border-radius: var(--r); }
.fq { flex: 1; font-family: var(--f-display); font-weight: 700; font-size: var(--s-statement); letter-spacing: -0.015em; line-height: 1.3; }
.ftab::after { content: '+'; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22%; background: var(--orange); color: var(--ink); font: 700 30px/1 var(--f-text); transform: rotate(16deg); transition: transform 300ms var(--ease-out); }
.ftab:hover::after { transform: rotate(0deg); }
.fcard.is-open .ftab::after { content: '\2212'; transform: none; background: var(--teal); transition: none; }
.fa { display: grid; grid-template-rows: 1fr; }
.fa-in { overflow: hidden; min-height: 0; }
.fa p { padding: 0 96px 32px 28px; font-size: var(--s-body); max-width: calc(56ch + 124px); }
.js .fcard:not(.is-open) .fa { grid-template-rows: 0fr; }
.js .fcard:not(.is-open) .fa-in { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  /* the closing answer folds while the next one unfolds, so nothing jumps */
  .fa { transition: grid-template-rows 320ms var(--ease-in-out); }
  .fa-in { transition: visibility 0s; }
  .js .fcard:not(.is-open) .fa-in { transition: visibility 0s 320ms; }
  .fa p { transition: opacity 240ms ease; }
  .js .fcard:not(.is-open) .fa p { opacity: 0; }
}

/* ── close: the hero tile returns ─────── */
.close { position: relative; overflow: hidden; background: var(--blue); color: var(--white); min-height: 86svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding: var(--gap) var(--m); }
.close-tile { position: absolute; width: 110vh; height: 110vh; min-width: 640px; min-height: 640px; right: -30vh; bottom: -52vh; background: var(--orange); border-radius: var(--tile-r); transform: rotate(16deg); }
.close-copy { grid-column: 1 / 9; position: relative; z-index: 1; padding-left: 4vw; display: grid; gap: 28px; justify-items: start; }
.display-2 { font-size: clamp(48px, 6vw, 100px); max-width: 10em; }
.close-text { font-size: var(--s-statement); line-height: 1.35; font-weight: 500; max-width: 26ch; }
.close-actions { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; }

/* ── footer ───────────────────────────── */
.foot { background: var(--ink); color: var(--white); padding: 72px var(--m) 32px; display: grid; gap: 64px; }
.foot-mark { overflow: hidden; display: flex; align-items: flex-end; gap: 2vw; height: 30svh; min-height: 200px; }
.big-mark { height: 100%; width: auto; aspect-ratio: 1; color: var(--white); flex: none; --fly: var(--orange); }
.big-word { font-family: var(--f-display); font-weight: 800; font-size: min(15vw, 30svh); line-height: 0.74; letter-spacing: -0.05em; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.foot-cols nav { display: grid; gap: 12px; align-content: start; }
.foot-cols h2 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; color: var(--orange); margin-bottom: 4px; }
.foot-cols a { color: var(--white); font-size: 17px; text-decoration: none; width: max-content; max-width: 100%; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.foot-last { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: var(--s-small); color: #c4c9d6; padding-top: 24px; }

/* grids that hold text never grow past their track */
.hero-copy, .try-mid, .verify-copy, .vform, .google, .google-head, .close-copy, .foot, .foot-cols nav { grid-template-columns: minmax(0, 1fr); }
.foot-cols a { overflow-wrap: anywhere; }

/* ── page motion ──────────────────────── */
@keyframes tile-in { from { transform: translate(18vw, -50%) rotate(48deg); } to { transform: translateY(-50%) rotate(16deg); } }
@keyframes shutter { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-12%); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: none; } }
@keyframes fly { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(3px, -5px) rotate(8deg); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-tile { animation: tile-in 1300ms var(--ease-in-out) both; }
  .brand:hover .brand-mark { animation: fly 600ms var(--ease-out); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 800ms var(--ease-out) var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* signature: the certificate opens like a shutter */
  .hero-stage.shutter { animation: shutter 1100ms var(--ease-in-out) 250ms both; }
  .hero-stage.shutter .cert { animation: settle 1500ms cubic-bezier(0.25, 1, 0.5, 1) 250ms both; }
  /* the halves join */
  .js .verify-seal .half-l { transform: translate(-18px, 6px) rotate(-8deg); transition: transform 900ms var(--ease-in-out) 200ms; transform-box: fill-box; transform-origin: center; }
  .js .verify-seal .half-r { transform: translate(18px, -6px) rotate(8deg); transition: transform 900ms var(--ease-in-out) 200ms; transform-box: fill-box; transform-origin: center; }
  .js .verify-seal .seal-check { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 500ms var(--ease-out) 1100ms; }
  .js .verify-seal.is-in .half-l, .js .verify-seal.is-in .half-r { transform: none; }
  .js .verify-seal.is-in .seal-check { stroke-dashoffset: 0; }
  .close-tile { transition: transform 1200ms var(--ease-in-out); }
  .close:hover .close-tile { transform: rotate(22deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cert-name { transition: none; }
}

/* ── tablet ───────────────────────────── */
@media (max-width: 1180px) {
  .bar-links { display: none; }
}
@media (max-width: 1024px) {
  .how { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-head, .t-mail, .t-sheet { grid-column: span 6; }
  .cando { grid-template-columns: 1fr; }
  .consent { grid-template-columns: 1fr; gap: 28px; }
  .consent-card { max-width: 480px; }
  .faq > .h2, .drawer { grid-column: 1 / 13; }
  .verify-seal { grid-column: 1 / 13; max-width: 320px; margin-bottom: 56px; }
  .verify-copy { grid-column: 1 / 13; }
  .close-copy { grid-column: 1 / 13; }
  .big-word { font-size: 14vw; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── phone ────────────────────────────── */
@media (max-width: 720px) {
  :root { --m: 16px; --gap: 96px; }
  .bar { padding: 16px; }
  .brand-mark { width: 28px; height: 28px; }
  .bar-action { padding: 9px 14px; }
  .hero { display: block; min-height: auto; padding: 15svh 16px 0; }
  .hero-tile { width: 130vw; height: 130vw; min-width: 0; min-height: 0; left: -15vw; top: auto; bottom: -38vw; transform: rotate(16deg); }
  .hero-copy { padding-left: 0; gap: 20px; }
  .display { font-size: 13vw; }
  .hero-stage { margin: 56px 6px 64px; }
  .flip-to { display: none; }
  @media (prefers-reduced-motion: no-preference) {
    @keyframes tile-in-m { from { transform: translateY(30vw) rotate(48deg); } to { transform: rotate(16deg); } }
    .hero-tile { animation-name: tile-in-m; }
  }

  .try { grid-template-columns: 1fr; min-height: 0; }
  .try-plate { margin: 16px; margin-top: 64px; }
  .try-side { padding: 8px 16px 64px; gap: 32px; }
  .cells { grid-template-columns: 1fr; }
  .cell { height: 60px; }

  .how { grid-template-columns: 1fr; }
  .how-title { position: static; grid-column: 1; background: var(--orange); padding: 48px 20px 0; font-size: 30px; }
  .step { min-height: 0; padding: 32px 20px 48px; }
  .step-title { margin-top: 12px; }
  .stage { order: 0; }

  .board { grid-template-columns: 1fr 1fr; grid-auto-rows: 28vw; gap: 6px; padding: 96px 6px; }
  .t-head { grid-column: span 2; grid-row: span 2; }
  .t-head .h2 { font-size: 9vw; }
  .t-mail, .t-sheet, .t-qr { grid-column: span 2; grid-row: span 3; }
  .t-revoke, .t-team { grid-column: span 1; grid-row: span 2; }
  .t-local { grid-column: span 2; grid-row: span 2; }
  .zoom-mail { font-size: 17px; padding: 16px 18px; gap: 6px; }
  .zoom-mail .att { margin-top: 4px; padding: 6px 12px; }
  .zoom-qr { width: 200px; height: 200px; left: -20px; top: -20px; }
  .qr-result { left: auto; right: 14px; top: 20px; width: 48%; padding: 14px; }
  .qr-state { font-size: 26px; }
  .cap { left: 14px; bottom: 14px; right: 14px; }
  .chip-revoked { left: 14px; top: 14px; font-size: 30px; }
  .disc { width: 84px; height: 84px; font-size: 28px; }
  .zoom-local .count { font-size: 96px; }
  .keys { display: none; }

  .cando-col { padding: 28px 20px; }
  .cando-col li { font-size: 18px; }
  .ftab { padding: 20px 16px 20px 20px; gap: 16px; }
  .ftab::after { width: 36px; height: 36px; font-size: 26px; }
  .fa p { padding: 0 20px 24px; }

  .close { min-height: 0; padding-bottom: 60vw; }
  .close-tile { width: 110vw; height: 110vw; min-width: 0; min-height: 0; right: -30vw; bottom: -52vw; }
  .close-copy { padding-left: 0; }
  .display-2 { font-size: 12vw; }

  .foot-mark { height: auto; min-height: 0; }
  .big-mark { height: 22vw; }
  .big-word { font-size: 17vw; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
