/* Caruso Advisory — styles. Mobile first; desktop from 900px. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #141414;
  --ink-2: #3D3D3D;
  --muted: #5F5F5F;
  --line: #E2E2E2;
  --line-strong: #BDBDBD;
  --paper: #FFFFFF;
  --tint: #F6F6F4;
  --accent: #7A2E2E;          /* oxblood — change here to re-brand */
  --radius: 10px;
  --wrap: 1180px;
  --pad: 20px;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.eyebrow { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.lead { font-size: 17px; color: var(--ink-2); }
.h2 { font-size: 30px; margin-bottom: 14px; }
.stack > * + * { margin-top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--ink); transition: background .15s, color .15s; cursor: pointer; font-family: var(--body); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: #000; color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }
.btn-row { display: flex; flex-direction: column; gap: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.2em; }
.brand-sub { font-size: 9px; letter-spacing: 0.42em; color: var(--muted); margin-top: 5px; }

.nav-toggle { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav { display: none; }
.nav-open .site-nav { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px); background: var(--ink); padding: 24px var(--pad) 32px; overflow-y: auto; overscroll-behavior: contain; z-index: 60; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li a { display: block; padding: 18px 0; border-bottom: 1px solid #333; color: #fff; text-decoration: none; font-family: var(--display); font-size: 28px; font-weight: 500; }
.site-nav li a[aria-current="page"] { color: #D9B3B3; }
.site-nav .btn { margin-top: 28px; }
.nav-open, .nav-open body { overflow: hidden; }
.nav-open .site-header { position: fixed; top: 0; left: 0; right: 0; }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero h1 { font-size: 38px; margin-bottom: 18px; }
.hero .lead { margin-bottom: 26px; }
.hero-mark { margin-top: 40px; display: flex; justify-content: center; }
.hero-mark img { width: min(52%, 220px); height: auto; }

/* Page header (inner pages) */
.page-head { padding: 44px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 36px; margin-bottom: 14px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }

/* Service cards */
.cards { display: grid; gap: 12px; margin-top: 24px; }
.card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.card-num { flex: 0 0 36px; height: 36px; border: 1px solid var(--ink); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.card h3 { font-family: var(--body); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.card p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.card-arrow { margin-left: auto; flex: 0 0 18px; margin-top: 8px; }

/* Steps timeline */
.steps { list-style: none; padding: 0; margin: 28px 0 0 8px; border-left: 1px solid var(--line-strong); }
.steps li { position: relative; padding: 0 0 26px 26px; }
.steps li::before { content: ""; position: absolute; left: -6px; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-family: var(--body); font-size: 17px; font-weight: 600; }
.steps p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; }

/* Founder */
.founder { display: grid; gap: 22px; }
.founder-photo { width: 96px; height: 96px; border-radius: 50%; background: #E6E6E3; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; overflow: hidden; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder blockquote { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.35; font-weight: 500; }
.founder-meta strong { display: block; font-size: 16px; }
.founder-meta span { font-size: 14px; color: var(--muted); }

/* CTA */
.cta { background: var(--ink); color: #fff; border-radius: 16px; padding: 36px 26px; }
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: #D4D4D4; margin-bottom: 24px; }

/* Accordion (details) */
.accordion { display: grid; gap: 10px; margin-top: 22px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.accordion summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.accordion details[open] summary::after { content: "−"; }
.accordion .acc-body { padding: 0 18px 18px; color: var(--ink-2); font-size: 15px; }

/* Service blocks (services page) */
.service { padding: 48px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.service:last-of-type { border-bottom: 0; }
.service-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.service h2 { font-size: 28px; }
.service .for { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; padding: 0; list-style: none; }
.service .for li { padding: 6px 12px; background: var(--tint); border-radius: 999px; font-size: 13px; }

/* Engagement models */
.models { display: grid; gap: 12px; margin-top: 22px; }
.model { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.model--featured { border: 2px solid var(--ink); }
.model h3 { font-family: var(--body); font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.model p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.tag { font-size: 11px; padding: 4px 8px; background: var(--ink); color: #fff; border-radius: 4px; letter-spacing: 0.06em; font-weight: 600; white-space: nowrap; }

/* Forms */
.form { display: grid; gap: 18px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; margin: 0; font-weight: 500; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; cursor: pointer; user-select: none; }
.topics input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; }
.form-note { font-size: 13px; color: var(--muted); }

.contact-aside { background: var(--tint); border-radius: 14px; padding: 26px 22px; }
.contact-aside h2 { font-size: 22px; margin-bottom: 12px; }
.contact-aside address { font-style: normal; line-height: 1.8; }

/* Prose (legal pages) */
.prose { max-width: 720px; }
.prose h2 { font-size: 22px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.notice { padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 8px; font-size: 14px; color: var(--accent); margin-bottom: 24px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 32px; margin-top: 56px; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; }
.footer-brand span { font-family: var(--display); font-weight: 600; letter-spacing: 0.2em; font-size: 15px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; font-size: 15px; }
.footer-meta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.footer-meta a { color: var(--muted); }

/* 404 */
.notfound { padding: 90px 0; text-align: center; }
.notfound img { width: 180px; margin: 0 auto 26px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  :root { --pad: 40px; }
  .nav-open, .nav-open body { overflow: visible; }
  .nav-open .site-header { position: sticky; }
  .section { padding: 96px 0; }
  .h2 { font-size: 42px; }
  .lead { font-size: 19px; }
  .btn-row { flex-direction: row; }

  .nav-toggle { display: none; }
  .site-nav, .nav-open .site-nav { display: flex; position: static; height: auto; flex-direction: row; align-items: center; gap: 34px; background: none; padding: 0; overflow: visible; }
  .site-nav ul { display: flex; gap: 30px; }
  .site-nav li a { border: 0; padding: 6px 0; font-family: var(--body); font-size: 15px; font-weight: 500; color: var(--ink); }
  .site-nav li a:hover, .site-nav li a[aria-current="page"] { color: var(--accent); }
  .site-nav .btn { margin-top: 0; min-height: 44px; padding: 0 18px; background: var(--ink); color: #fff; border-color: var(--ink); }
  .site-nav .btn:hover { background: #000; color: #fff; }
  .site-header .wrap { height: 80px; }
  .brand img { width: 50px; }

  .hero { padding: 96px 0 104px; }
  .hero .wrap { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 64px; align-items: center; }
  .hero h1 { font-size: 64px; }
  .hero-mark { margin-top: 0; }
  .hero-mark img { width: 100%; max-width: 300px; }

  .page-head { padding: 80px 0 56px; }
  .page-head h1 { font-size: 56px; max-width: 16ch; }
  .page-head .lead { max-width: 60ch; }

  .split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
  .cards .card:last-child:nth-child(odd) { grid-column: span 2; }
  .steps { margin-top: 0; }

  .founder { grid-template-columns: 160px 1fr; gap: 40px; align-items: center; }
  .founder-photo { width: 160px; height: 160px; }
  .founder blockquote { font-size: 30px; }

  .cta { padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
  .cta h2 { font-size: 40px; }
  .cta p { margin-bottom: 0; }

  .service { padding: 72px 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
  .service h2 { font-size: 36px; }
  .accordion { margin-top: 0; }
  .models { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 64px; align-items: start; }
  .contact-aside { position: sticky; top: 110px; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; align-items: start; }
}

/* ---------- Founder band & stats ---------- */
.founder-band { background: var(--ink); color: #fff; padding: 52px 0; }
.founder-band .eyebrow { color: #D9B3B3; }
.founder-band blockquote { margin: 0 0 18px; font-family: var(--display); font-size: 24px; line-height: 1.3; font-weight: 500; }
.founder-band .cred { color: #D4D4D4; font-size: 15px; }
.founder-band .cred strong { color: #fff; font-weight: 600; }
.fb-person { display: flex; align-items: center; gap: 14px; }
.fb-person .cred { margin: 0; }
.fb-photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 64px; border: 2px solid #3A3A3A; }
.founder-band a { color: #fff; }
.stats { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 22px; }
.stats li { border-top: 1px solid #3A3A3A; padding-top: 16px; }
.stats strong { display: block; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.1; }
.stats span { display: block; font-size: 14px; color: #BDBDBD; margin-top: 6px; }
.previously { font-size: 14px; color: var(--muted); }
.previously strong { color: var(--ink); font-weight: 600; }

/* Service pages */
.service-page { padding: 48px 0; }
.service-page .accordion { margin-top: 0; }
.other-services { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.other-services a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 500; background: #fff; }
.other-services a:hover { border-color: var(--ink); color: var(--ink); }
.nda-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; background: var(--tint); border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.nda-note svg { flex: 0 0 18px; margin-top: 2px; }

/* Contact success */
.form-success { text-align: center; padding: 44px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 14px; outline: none; }
.form-success[hidden] { display: none; }
.form-success .tick { width: 72px; height: 72px; color: var(--ink); }
.form-success .tick circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s ease-out forwards; }
.form-success .tick path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .form-success .tick circle, .form-success .tick path { animation: none; stroke-dashoffset: 0; } }
.form-success h2 { font-size: 28px; }
.form-success .lead { max-width: 34ch; }
.success-logo { width: 96px; height: auto; margin-top: 18px; }
.success-brand { display: flex; flex-direction: column; align-items: center; line-height: 1; margin: -4px 0 12px; }
.success-brand span:first-child { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.22em; }
.success-brand span:last-child { font-size: 9px; letter-spacing: 0.45em; color: var(--muted); margin-top: 6px; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 8px 28px rgba(0,0,0,.14); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.45; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: var(--ink-2); }
.cookie-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.btn--sm { min-height: 44px; padding: 0 12px; font-size: 14px; }
.has-cookie-banner body { padding-bottom: 150px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--accent); }

.cookie-dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); }
.cookie-dialog::backdrop { background: rgba(20,20,20,.55); }
.cookie-dialog form { padding: 24px 22px; display: grid; gap: 16px; }
.cookie-dialog h2 { font-size: 22px; }
.cookie-dialog p { font-size: 14px; color: var(--ink-2); }
.consent-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.consent-row strong { display: block; font-size: 15px; }
.consent-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; flex: 0 0 48px; width: 48px; height: 28px; margin-top: 2px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: #BDBDBD; border-radius: 999px; transition: background .15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled + .track { background: #5F5F5F; opacity: .6; }
.dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dialog-actions .btn:first-child { grid-column: span 2; }

.cookie-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.cookie-table th, .cookie-table td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.cookie-table th { font-weight: 600; background: var(--tint); }
.table-scroll { overflow-x: auto; }

@media (min-width: 900px) {
  .founder-band { padding: 88px 0; }
  .founder-band .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 72px; align-items: center; }
  .founder-band blockquote { font-size: 34px; }
  .stats { margin-top: 0; }
  .service-page { padding: 80px 0; }
  .service-page .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }
  .cookie-banner { left: 50%; right: auto; transform: translateX(-50%); width: min(980px, calc(100% - 48px)); flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 14px 12px 20px; }
  .cookie-actions { display: flex; flex: 0 0 auto; }
  .has-cookie-banner body { padding-bottom: 90px; }
  .dialog-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dialog-actions .btn:first-child { grid-column: auto; }
}
