@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/inter-latin.woff2) format('woff2');}
@font-face{font-family:'Syne';font-style:normal;font-weight:700 800;font-display:swap;src:url(fonts/syne-latin.woff2) format('woff2');}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* brand colours, flat and full strength */
  --blue: #1547E8;
  --red: #D42507;      /* brand red, one step deeper so white text passes on it */
  --yellow: #F0B42A;
  --ink: #0C0C0C;
  --bone: #EDECE7;     /* low-chroma ground */
  --paper: #F5F5F3;
  --white: #FFFFFF;

  --display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Inter', system-ui, sans-serif;

  /* five type steps */
  --t-display: clamp(40px, 11vw, 196px);
  --t-head: clamp(40px, 5vw, 80px);
  --t-lead: clamp(22px, 2vw, 30px);
  --t-body: 18px;
  --t-small: 15px;

  --m: clamp(16px, 2.2vw, 32px);   /* the one pair of page margins */
  --gap: clamp(96px, 10vw, 160px); /* between sections */
  --head-h: 64px;
  --band: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--t-body);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: .95; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.t-yellow :focus-visible, .t-bone :focus-visible { outline-color: var(--blue); }
::selection { background: var(--yellow); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 8px; }

/* themes: one ground, one ink per panel */
.t-blue   { background: var(--blue);   color: var(--white); }
.t-red    { background: var(--red);    color: var(--white); }
.t-yellow { background: var(--yellow); color: var(--ink); }
.t-ink    { background: var(--ink);    color: var(--bone); }
.t-bone   { background: var(--bone);   color: var(--ink); }

.h2 { font-size: var(--t-head); max-width: 16ch; }

/* buttons: square corners, flat fill, decided once */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--text); font-weight: 600; font-size: var(--t-body);
  text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--white); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: var(--t-small); background: var(--bone); color: var(--ink); }
.btn-small:hover { background: var(--yellow); }

/* ── HEADER: takes the colour of the chapter under it ── */
.head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--head-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--m);
  background: var(--hb, var(--blue)); color: var(--hc, var(--white));
  transition: background-color .3s, color .3s;
}
.head[data-theme="blue"]   { --hb: var(--blue);   --hc: var(--white); }
.head[data-theme="red"]    { --hb: var(--red);    --hc: var(--white); }
.head[data-theme="yellow"] { --hb: var(--yellow); --hc: var(--ink); }
.head[data-theme="ink"]    { --hb: var(--ink);    --hc: var(--bone); }
.head[data-theme="bone"]   { --hb: var(--bone);   --hc: var(--ink); }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.mark { position: relative; width: 26px; height: 26px; flex: none; }
.mark i { position: absolute; display: block; }
.mark i:nth-child(1) { inset: 0; background: var(--blue); }
.mark i:nth-child(2) { width: 16px; height: 16px; top: 5px; left: 5px; background: #E82B0A; transform: rotate(12deg); }
.mark i:nth-child(3) { width: 8px; height: 8px; top: 9px; left: 9px; background: var(--yellow); transform: rotate(24deg); }
.head[data-theme="blue"] .mark i:nth-child(1) { background: var(--white); }
.head-links { display: flex; gap: clamp(16px, 2vw, 32px); }
.head-links a { text-decoration: none; font-size: var(--t-small); font-weight: 600; padding: 10px 0; display: inline-block; transition: opacity .18s, transform .18s var(--ease); }
.head-links a:hover { text-decoration: underline; }
.menu { display: none; background: none; border: 0; color: inherit; font: 600 var(--t-small)/1 var(--text); min-height: 44px; padding: 0 4px; cursor: pointer; }

/* ── HERO ── */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--head-h) + 9svh) var(--m) var(--m);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero-title { font-size: var(--t-display); line-height: .84; letter-spacing: -.045em; }
.hero-title span { display: block; }
.ink-a { color: var(--white); }
.ink-b { color: var(--yellow); }
.hero-foot { align-self: flex-end; width: min(40vw, 600px); min-width: 300px; }
.hero-foot p { font-size: var(--t-lead); line-height: 1.3; margin-bottom: 28px; }

/* ── THE NAME: two halves ── */
.name { display: grid; grid-template-columns: 1fr 1fr; }
.name-half { min-height: 84svh; padding: calc(var(--head-h) + 56px) var(--m) 64px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.name h2 { font-size: clamp(36px, 4.4vw, 68px); line-height: .95; }
.name-art { width: min(220px, 42%); display: block; transition: transform .6s var(--ease); }
.name-half:hover .name-art { transform: rotate(-8deg); }
.name p { font-size: 20px; line-height: 1.45; max-width: 42ch; }
.js .name-art.rv { transition-delay: .08s; }
.js .name p.rv { transition-delay: .16s; }

/* ── SERVICES: stacking sheets ── */
.services { padding: var(--gap) 0 0; }
.services > .h2 { padding: 0 var(--m); margin-bottom: 48px; }
.stack { position: relative; }
.sheet {
  position: sticky;
  min-height: 560px;
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: var(--band) 1fr;
  column-gap: var(--m);
  padding-left: var(--m);
  overflow: hidden;
}
.sheet:nth-child(1) { top: calc(var(--head-h) + 0 * var(--band)); height: calc(100svh - var(--head-h) - 0 * var(--band)); }
.sheet:nth-child(2) { top: calc(var(--head-h) + 1 * var(--band)); height: calc(100svh - var(--head-h) - 1 * var(--band)); }
.sheet:nth-child(3) { top: calc(var(--head-h) + 2 * var(--band)); height: calc(100svh - var(--head-h) - 2 * var(--band)); }
.sheet:nth-child(4) { top: calc(var(--head-h) + 3 * var(--band)); height: calc(100svh - var(--head-h) - 3 * var(--band)); }
.sheet-name { grid-column: 1 / 13; align-self: center; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.sheet-body { grid-column: 1 / 6; grid-row: 2; align-self: end; padding-bottom: clamp(32px, 5svh, 64px); max-width: 40ch; }
.sheet-body p { font-size: 20px; line-height: 1.4; margin-bottom: 24px; }
.sheet-body li { padding: 4px 0; font-weight: 500; }
.sheet-body li::before { content: ""; display: inline-block; width: .5em; height: .5em; background: currentColor; margin-right: .7em; vertical-align: .12em; }
.more { display: inline-block; margin-top: 20px; font-weight: 600; padding: 8px 0; }
.sheet-pic { grid-column: 7 / 13; grid-row: 2; position: relative; overflow: hidden; margin-right: 0; }
.sheet-pic img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease); }
.sheet.in .sheet-pic img { transform: scale(1); }
.sheet-pic figcaption { position: absolute; left: 0; bottom: 0; max-width: 80%; padding: 10px var(--m); background: var(--ink); color: var(--bone); font-size: var(--t-small); line-height: 1.35; }

/* ── AI: headline you can type ── */
.ai { padding: var(--gap) var(--m); min-height: 88svh; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--m); align-content: start; }
.ai-top { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; align-items: end; margin-bottom: 56px; }
.ai-top .h2 { grid-column: 1 / 7; }
.ai-lead { grid-column: 8 / 13; font-size: var(--t-lead); line-height: 1.3; }
.ai-line { grid-column: 1 / 13; position: relative; background: var(--ink); padding: 18px var(--m); margin: 0 calc(-1 * var(--m)); }
.ai-input {
  width: 100%; border: 0; background: transparent; color: var(--yellow);
  font-family: var(--display); font-weight: 800; font-size: clamp(36px, 6.4vw, 112px); letter-spacing: -.035em; line-height: 1.1;
  caret-color: var(--yellow); caret-shape: block;
}
.ai-input:focus { outline: none; }
.ai-line:focus-within { outline: 4px solid var(--yellow); outline-offset: -4px; }
.ai-answer { grid-column: 1 / 7; margin-top: 48px; max-width: 620px; background: var(--paper); padding: 4px; }
.squares { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.sq { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 600; background: var(--white); color: #5f5f5b; transition: background-color .25s, color .25s; }
.sq-box { width: 28px; height: 28px; flex: none; background: var(--bone); transition: transform .35s var(--ease), background-color .25s; }
.sq.on { color: var(--ink); }
.sq.on .sq-box { transform: rotate(12deg); }
.sq-soft.on .sq-box { background: var(--ink); }
.sq-ai.on .sq-box { background: var(--yellow); }
.sq-pay.on .sq-box { background: var(--red); }
.sq-care.on .sq-box { background: var(--blue); }
.ai-first { padding: 20px 16px 8px; font-size: var(--t-body); }
.ai-answer .btn { margin: 12px 16px 16px; }
.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { background: var(--blue); color: var(--white); }
.ai-try { grid-column: 8 / 13; margin-top: 48px; align-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ai-try-label { font-weight: 600; margin-bottom: 4px; }
.chip { min-height: 48px; padding: 10px 16px; text-align: left; border: 0; background: var(--white); color: var(--ink); font: 500 var(--t-body)/1.3 var(--text); cursor: pointer; transition: background-color .18s, transform .18s var(--ease); }
.chip:hover { background: var(--yellow); transform: translateX(4px); }
.chip:active { transform: scale(.98); }
.ai-note { grid-column: 8 / 13; margin-top: 24px; font-size: var(--t-small); max-width: 46ch; }

/* ── HOW WE WORK: four fields, the square being built ── */
.process { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { position: relative; min-height: 84svh; padding: calc(var(--head-h) + 24px) 28px 28px; display: flex; flex-direction: column; }
.field-title { font-size: clamp(26px, 2.2vw, 34px); line-height: 1; position: absolute; top: calc(var(--head-h) + 24px); left: 28px; right: 28px; }
.build { width: min(200px, 60%); margin: 22svh auto 0; display: block; transition: transform .4s var(--ease); }
.field:hover .build { transform: rotate(-6deg) scale(1.04); }
.clause { margin-top: auto; padding-top: 40px; }
.clause h3 { font-size: clamp(22px, 2vw, 32px); line-height: 1.05; margin-bottom: 12px; }
.clause p { max-width: 30ch; }

/* ── ABOUT: two columns, highlighted words ── */
.about { padding: var(--gap) var(--m); }
.about .h2 { margin-bottom: 56px; }
.about-text { columns: 2; column-gap: var(--m); font-size: var(--t-lead); line-height: 1.32; }
.about-text p { text-align: justify; hyphens: auto; }
.about-text strong { font-weight: 600; }
mark { padding: 0 .1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-y { background: var(--yellow); color: var(--ink); }
.hl-b { background: var(--blue); color: var(--white); }
.hl-r { background: var(--red); color: var(--white); }
.about-end { margin-top: 24px; }
.hl-end { background: var(--ink); color: var(--bone); padding: 2px .2em; text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-color .18s, color .18s; }
.hl-end:hover { background: var(--blue); color: var(--white); }

/* ── CONTACT ── */
.contact { padding: 48px 0 112px; overflow: hidden; }
.strip { overflow: hidden; }
.strip-track { display: flex; gap: 8px; width: max-content; animation: drift 70s linear infinite; }
.strip-track img { height: 150px; object-fit: cover; flex: none; }
.w34 { width: 113px; } .w11 { width: 150px; } .w32 { width: 225px; }
@keyframes drift { to { transform: translateX(calc(-50% - 4px)); } }
.contact-body { padding: 72px var(--m) 0; }
.contact .h2 { margin-bottom: 40px; max-width: 20ch; }
.bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cell { height: 96px; border: 0; border-radius: 0; background: #B81F05; color: var(--white); font: 500 18px/1 var(--text); text-align: center; padding: 0 16px; transition: background-color .18s, color .18s; }
.cell::placeholder { color: rgba(255,255,255,.86); }
.cell:focus { outline: none; background: var(--paper); color: var(--ink); }
.cell:focus::placeholder { color: #5a5a5a; }
.cell-go { background: var(--ink); color: var(--bone); font-weight: 600; cursor: pointer; }
.cell-go:hover { background: var(--yellow); color: var(--ink); }
.cell-go:active { transform: scale(.99); }
.cell-go:focus { background: var(--yellow); color: var(--ink); }
.small-print { display: flex; flex-wrap: wrap; gap: 4px 2em; margin-top: 16px; font-size: var(--t-small); }

/* ── FOOTER ── */
.foot { padding: 48px var(--m) 32px; }
.blocks { display: grid; grid-template-columns: 8fr 6fr; gap: 0 3vw; align-items: end; }
.blocks-word { display: block; width: 100%; height: auto; }
.blocks-word text { font-family: var(--display); font-weight: 800; font-size: 80px; fill: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); margin-top: 56px; font-size: var(--t-body); }
.foot-cols > div { grid-column: span 2; }
.foot-cols > .foot-contact { grid-column: 9 / 13; }
.foot-h { font-family: var(--text); font-weight: 600; font-size: var(--t-small); letter-spacing: 0; line-height: 1.4; margin-bottom: 10px; color: var(--yellow); }
.foot-cols li { padding: 3px 0; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; }
.foot-contact p:first-of-type { font-size: var(--t-body); font-weight: 600; }
.credits { margin-top: 56px; font-size: var(--t-small); line-height: 1.5; max-width: 80ch; }
.foot-last { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; font-size: var(--t-small); }

/* ── ENTRANCES: only when script runs ── */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero-title .rv:nth-child(2) { transition-delay: .08s; }
.js .hero-foot.rv { transition-delay: .2s; }
.js .ai-lead.rv, .js .about-text.rv, .js .bar.rv { transition-delay: .08s; }
.js .build { opacity: 0; translate: 0 24px; transition: opacity .6s var(--ease), translate .6s var(--ease), transform .4s var(--ease); }
.js .field.in .build { opacity: 1; translate: 0 0; }
.js .clause { opacity: 0; translate: 0 16px; transition: opacity .6s var(--ease) .1s, translate .6s var(--ease) .1s; }
.js .field.in .clause { opacity: 1; translate: 0 0; }
.js .sheet-body { opacity: 0; translate: 0 24px; transition: opacity .6s var(--ease) .08s, translate .6s var(--ease) .08s; }
.js .sheet.in .sheet-body { opacity: 1; translate: 0 0; }

/* ── TABLET ── */
@media (max-width: 1000px) {
  .head-links { gap: 16px; }
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-foot { width: min(60vw, 440px); margin-top: 14svh; }
  .sheet-body { grid-column: 1 / 7; }
  .ai-top .h2 { grid-column: 1 / 13; margin-bottom: 20px; }
  .ai-lead { grid-column: 1 / 11; }
  .ai-answer { grid-column: 1 / 13; }
  .ai-try, .ai-note { grid-column: 1 / 13; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .name { grid-template-columns: 1fr; }
  .name-half { min-height: 0; padding: 72px var(--m); }
  .name-art { width: 140px; }
  .about-text { columns: 1; }
  .about-text p { text-align: left; }
  .foot-cols > div { grid-column: span 3; }
  .foot-cols > .foot-contact { grid-column: 1 / 13; }
}

/* ── PHONE ── */
@media (max-width: 720px) {
  :root { --head-h: 56px; --band: 52px; --t-body: 17px; }
  .menu { display: block; }
  .head nav { position: absolute; top: var(--head-h); left: 0; right: 0; background: var(--hb); display: none; }
  .head.open nav { display: block; }
  .head-links { flex-direction: column; gap: 0; padding: 8px var(--m) 20px; }
  .head-links a { font-size: 20px; padding: 10px 0; }
  .hero { padding-top: calc(var(--head-h) + 11svh); }
  .hero-title { font-size: 10.8vw; }
  .h2 { font-size: 7.6vw; }
  .hero-foot { align-self: stretch; width: 100%; min-width: 0; }
  .hero-foot p { font-size: 20px; }
  .services > .h2 { margin-bottom: 32px; }
  .sheet, .sheet:nth-child(n) { position: relative; top: auto; height: auto; min-height: 70svh; grid-template-rows: var(--band) auto auto; padding: 0; column-gap: 0; }
  .sheet-name { font-size: 22px; padding: 0 var(--m); }
  .sheet-pic { grid-column: 1 / 13; grid-row: 2; aspect-ratio: 4 / 3; }
  .sheet-body { grid-column: 1 / 13; grid-row: 3; padding: 20px var(--m) 28px; }
  .sheet-body p { font-size: 19px; }
  .ai-input { font-size: 11vw; }
  .ai-answer { margin-top: 28px; }
  .squares { grid-template-columns: 1fr; }
  .ai-try { flex-direction: row; flex-wrap: wrap; margin-top: 28px; }
  .chip { background: var(--ink); color: var(--bone); min-height: 44px; }
  .process { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 40px var(--m) 48px; }
  .field-title { position: static; order: -2; font-size: 24px; margin-bottom: 24px; }
  .clause { order: -1; margin-top: 0; padding-top: 0; }
  .clause h3 { font-size: 24px; }
  .build { margin: 32px 0 0; width: 120px; }
  .contact { padding-top: 32px; }
  .strip { overflow-x: auto; }
  .strip-track img { height: 110px; }
  .w34 { width: 83px; } .w11 { width: 110px; } .w32 { width: 165px; }
  .contact-body { padding-top: 48px; }
  .bar { grid-template-columns: 1fr; }
  .cell { height: 60px; font-size: 18px; text-align: left; }
  .cell-go { text-align: center; }
  .blocks { grid-template-columns: 1fr; height: auto; row-gap: 8px; }
  .blocks-word:last-child { width: 75%; }
  .foot-cols > div { grid-column: span 6; }
  .foot-cols > .foot-contact { grid-column: 1 / 13; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .build, .js .clause, .js .sheet-body { opacity: 1; transform: none; translate: none; }
  .sheet-pic img { transform: none; }
}

/* ── SUBPAGES: privacy, 404 ── */
.head-plain { position: sticky; }
.page-top { padding: calc(var(--gap) * .6) var(--m) calc(var(--gap) * .5); }
.page-top .h1 { font-size: var(--t-head); max-width: 14ch; }
.page-top p { font-size: var(--t-lead); line-height: 1.35; margin-top: 32px; max-width: 34ch; }
.page-top .btn { margin-top: 40px; }
.legal-body { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--m); padding: var(--gap) var(--m); }
.legal-body > div { grid-column: 4 / 11; max-width: 68ch; }
.legal-body h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; margin: 56px 0 16px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { margin-bottom: 12px; }
.legal-body ul { padding-left: 1.2em; list-style: square; }
.legal-body a { text-decoration: underline; }
.foot-slim { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px var(--m); font-size: var(--t-small); }
.foot-slim a { text-decoration: none; }
.foot-slim a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .legal-body > div { grid-column: 1 / 13; } }
@media (max-width: 720px) {
  .head-plain nav { position: static; display: block; background: none; }
  .head-plain .head-links { flex-direction: row; padding: 0; }
  .head-plain .head-links a { font-size: var(--t-small); }
}
.page-fill { min-height: calc(100svh - var(--head-h) - 90px); display: flex; flex-direction: column; justify-content: center; }
.wordmark span:last-child { white-space: nowrap; }
