/* Cinnatto v4 — design system
   ink #050505 · surface #0C0C0D · gold #D4AF37 · champagne #E5C07B · titanium #8E9297 · bone #F2EFE9 */
:root {
  --ink: #050505; --surface: #0C0C0D; --surface-2: #0A0A0B;
  --line: #1E1F22; --line-soft: #141517; --line-strong: #2A2B2E;
  --gold: #D4AF37; --champagne: #E5C07B; --ti: #8E9297; --bone: #F2EFE9;
  --text: #F2EFE9; --text-2: #C9CBCF; --text-3: #A9ACB1; --dim: #5B5E63;
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: Inter, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, monospace;
  --nav-h: 80px; --gutter: 80px; --max: 1280px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--champagne); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, .display { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.1vw, 44px); }
h3 { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; }
p { text-wrap: pretty; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--text-2); }
.body { font-size: 16px; line-height: 1.65; color: var(--text-3); }
.muted { color: var(--ti); } .dim { color: var(--dim); } .small { font-size: 14px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.section { padding-top: clamp(80px, 9.7vw, 140px); }
.section-tight { padding-top: clamp(64px, 6vw, 96px); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; }
.start-6 { grid-column: 6 / span 7; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border: 1px solid var(--gold); background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn:hover { background: var(--champagne); border-color: var(--champagne); color: var(--ink); }
.btn-ghost { background: transparent; border-color: #3A3B3E; color: var(--text); }
.btn-ghost:hover { background: transparent; border-color: var(--ti); color: var(--text); }
.btn-small { height: 44px; padding: 0 22px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { font-size: 15px; }
.link-arrow::after { content: "\2192"; margin-left: 8px; display: inline-block; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* nav */
.nav { position: sticky; top: 0; z-index: 200; background: rgba(5,5,5,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-inner { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin: 0 auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.wordmark { font-family: var(--display); font-size: 17px; letter-spacing: 0.32em; font-weight: 500; }
.wordmark-small { font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: var(--text-2); font-size: 14px; letter-spacing: 0.02em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: clamp(560px, 80vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.78) 38%, rgba(5,5,5,.12) 68%, rgba(5,5,5,0) 100%); }
.hero-shade-b { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,0) 30%, rgba(5,5,5,0) 70%, rgba(5,5,5,.9) 100%); }
.hero-content { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 680px; padding: 96px 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.page-hero { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(56px, 6vw, 96px); }
.page-hero .lead { max-width: 680px; }
.toc { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.toc a { font-size: 15px; }
.hero-short { min-height: clamp(520px, 70vh, 640px); }
/* hero headlines are written as two lines; 64px keeps the first line inside the 680px text column */
.hero h1 { font-size: clamp(40px, 4.4vw, 64px); }
.hero .lead { max-width: 600px; }  /* keeps the paragraph off the image's subject */
.toc-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.toc-row a { font-size: 15px; }
.toc-row + .svc { border-top: 0; }

/* placeholders for creatives not generated yet */
.ph { position: relative; background: var(--surface); border: 1px solid var(--line); overflow: hidden; width: 100%; }
.ph::before, .ph::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid; }
.ph::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; } .ph::after { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.ph-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--dim); white-space: nowrap; }
.hero-media .ph { position: absolute; inset: 0; height: 100%; border: 0; }
.hero-media .ph-label { top: 84%; }

/* cards & lists */
.card { border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.card-media { aspect-ratio: 16 / 10.5; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph { border: 0; }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.card-body .link-arrow { margin-top: 8px; }
.panel { border: 1px solid var(--line); background: var(--surface); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.num-list { display: flex; flex-direction: column; }
.num-row { display: flex; gap: 32px; padding: 28px 0; border-top: 1px solid var(--line); }
.num-row:last-child { border-bottom: 1px solid var(--line); }
.num-row .mono { width: 48px; flex: none; padding-top: 4px; }
.num-row .stack-sm { gap: 8px; }
.plain-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.plain-list > div { padding: 18px 0; border-top: 1px solid var(--line); font-size: 17px; }
.plain-list > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
.step { display: flex; flex-direction: column; gap: 18px; }
.step .ph, .step img { aspect-ratio: 1; }
.spec { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.spec:last-child { border-bottom: 1px solid var(--line-soft); }
.spec b { font-weight: 500; color: var(--ti); width: 120px; flex: none; }
.svc { padding: 72px 0; border-top: 1px solid var(--line); }
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc .ph, .svc img { aspect-ratio: 4 / 5; object-fit: cover; }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-family: var(--display); font-size: 19px; display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .body { padding: 0 0 24px 0; max-width: 760px; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.timeline .panel { min-height: 240px; }

/* split feature */
.split { border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split-media { aspect-ratio: 16 / 11; border-right: 1px solid var(--line); overflow: hidden; }
.split-media .ph, .split-media img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.split-body { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 56px; }

/* CTA band */
.cta-band { position: relative; margin-top: clamp(80px, 9.7vw, 140px); min-height: 520px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta-band .cta-media { position: absolute; inset: 0; }
.cta-band .cta-media img, .cta-band .cta-media .ph { width: 100%; height: 100%; object-fit: cover; border: 0; }
.cta-band .cta-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,5,.7) 0%, rgba(5,5,5,.35) 50%, rgba(5,5,5,.8) 100%); }
.cta-band .cta-line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, rgba(212,175,55,0) 0%, var(--gold) 50%, rgba(212,175,55,0) 100%); }
.cta-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 96px 24px; max-width: 800px; }
.cta-content h2 { font-size: clamp(30px, 3.4vw, 48px); }
.cta-note { max-width: 620px; color: var(--text-2); }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px; border: 1px solid var(--line); background: var(--surface); margin-top: clamp(80px, 8.3vw, 120px); }
.cta-inline h2 { font-size: clamp(24px, 2.3vw, 32px); max-width: 720px; }

/* forms */
.form-card { display: flex; flex-direction: column; gap: 28px; padding: 48px; border: 1px solid var(--line); background: var(--surface-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field > span { font-size: 13px; color: var(--text-2); letter-spacing: 0.02em; }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface); color: var(--text); font-family: var(--body); font-size: 15px; appearance: none; -webkit-appearance: none; }
.field textarea { height: 160px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%238E9297' stroke-width='1.5'><path d='M3 6l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .hint { font-size: 13px; color: var(--dim); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B4503C; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 14px; cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:has(input:checked) { border-color: var(--gold); color: var(--gold); }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0 0; accent-color: var(--gold); flex: none; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; }
.form-foot p { font-size: 13px; color: var(--dim); max-width: 400px; }
.form-foot-end { justify-content: flex-end; }
.form-status { display: none; padding: 16px 20px; border: 1px solid var(--line-strong); font-size: 15px; }
.form-status.ok { display: block; border-color: var(--gold); color: var(--text); }
.form-status.err { display: block; border-color: #B4503C; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sticky-aside { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; }
.mini-steps { display: flex; flex-direction: column; border-top: 1px solid var(--line); margin-top: 12px; }
.mini-steps div { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.mini-steps .mono { width: 32px; flex: none; }

/* prose (legal, about) */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 18px; color: var(--text-3); font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 26px; margin-top: 24px; color: var(--text); }
.prose h3 { font-size: 20px; margin-top: 8px; color: var(--text); }
.prose ul { margin: 0; padding-left: 20px; } .prose li { margin: 6px 0; }
.prose strong { color: var(--text); font-weight: 500; }

/* footer */
.footer { margin-top: clamp(80px, 8.3vw, 120px); border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; padding: 56px 0 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.footer-cols { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-2); font-size: 14px; } .footer-col a:hover { color: var(--text); }
.footer-base { padding: 20px 0 32px; border-top: 1px solid var(--line-soft); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* responsive */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .split-body { padding: 40px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; --nav-h: 64px; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; }
  .nav-links a { padding: 14px 0; border-top: 1px solid var(--line-soft); font-size: 16px; }
  .nav-links a:first-child { border-top: 0; }
  .nav-links.open { display: flex; }
  .nav-cta { display: none; } .nav-cta-mobile { display: inline-flex; margin-top: 12px; border-top: 0; }
  .nav-toggle { display: flex; }
  .brand img { width: 28px; height: 28px; } .wordmark { font-size: 14px; }
  .grid { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .start-6 { grid-column: auto; }
  .hero { min-height: 0; align-items: flex-end; }
  .hero-content { padding: 300px 0 40px; gap: 18px; max-width: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.25) 30%, rgba(5,5,5,.92) 62%, #050505 100%); }
  .hero-shade-b { display: none; }
  .hero-actions .btn { width: 100%; }
  .row-between { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cards-2, .cards-3, .timeline, .plain-list, .form-grid, .split { grid-template-columns: 1fr; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .step h3 { font-size: 18px; }
  .plain-list > div:nth-last-child(-n+2) { border-bottom: 0; } .plain-list > div:last-child { border-bottom: 1px solid var(--line); }
  .split-media { border-right: 0; border-bottom: 1px solid var(--line); aspect-ratio: 16 / 9; }
  .card-body, .panel, .split-body { padding: 24px; }
  .num-row { gap: 18px; padding: 20px 0; } .num-row .mono { width: 30px; }
  .cta-inline { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .cta-band { min-height: 0; } .cta-content { padding: 72px 20px; }
  .form-card { padding: 24px 20px; }
  .form-foot { flex-direction: column; align-items: stretch; } .form-foot .btn { width: 100%; }
  .sticky-aside { position: static; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-cols { flex-wrap: wrap; gap: 32px 40px; }
  .svc { padding: 48px 0; }
  .toc { display: none; }
  .toc-row { gap: 10px 20px; padding: 20px 0; }
  .toc-row .mono { flex-basis: 100%; }
}
