:root {
  --bg: #0b0b0c;
  --bg-soft: #111114;
  --surface: #161619;
  --surface-2: #1d1d21;
  --text: #f7f3ea;
  --muted: #b9b3aa;
  --subtle: #8c877f;
  --gold: #e5b83d;
  --gold-2: #f2cc65;
  --orange: #e98a27;
  --line: rgba(255,255,255,.11);
  --line-strong: rgba(229,184,61,.34);
  --shadow: 0 24px 70px rgba(0,0,0,.36);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1180px;
  --header-height: 78px;
}

html[data-theme="light"] {
  --bg: #f6f1e7;
  --bg-soft: #eee6d7;
  --surface: #fffdf8;
  --surface-2: #f4ecdf;
  --text: #171512;
  --muted: #5f5a52;
  --subtle: #777168;
  --line: rgba(23,21,18,.13);
  --line-strong: rgba(185,129,18,.34);
  --shadow: 0 24px 70px rgba(71,51,22,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 5%, rgba(229,184,61,.10), transparent 28%),
    radial-gradient(circle at 14% 32%, rgba(233,138,39,.06), transparent 25%),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .42;
  background-image:
    linear-gradient(115deg, transparent 0 54%, rgba(255,255,255,.018) 54% 55%, transparent 55% 100%),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 100% 100%, 54px 54px, 54px 54px;
}

html[data-theme="light"] body::before { opacity: .22; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { position: absolute; left: -10000px; }
.skip-link { position: fixed; left: 14px; top: -60px; z-index: 1000; background: var(--gold); color: #111; font-weight: 800; padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 14px; }

.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1001; background: transparent; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--orange)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.nav-wrap { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 154px; }
.brand img { width: 128px; height: 38px; object-fit: contain; object-position: left center; }
.brand span { display: none; }
.nav-links { display: flex; align-items: center; gap: 23px; font-size: .79rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.nav-links a { color: var(--muted); transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold-2); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 14px; }
.menu-button { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; width: 44px; height: 42px; cursor: pointer; }
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 11px; cursor: pointer; text-transform: uppercase; font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
.theme-icon { color: var(--gold); }

.hero { padding: 72px 0 58px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); align-items: center; gap: clamp(48px, 7vw, 92px); }
.eyebrow { margin: 0 0 14px; color: var(--gold-2); font-size: .72rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .18em; font-weight: 900; }
.eyebrow::before { content: ""; display: inline-block; width: 30px; height: 1px; margin: 0 10px 3px 0; background: var(--gold); }
.hero-kicker { margin: 0 0 6px; color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 7vw, 6.5rem); margin-bottom: 20px; }
h1 span { color: var(--gold); }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 4.6vw, 4.25rem); margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
.hero-text { max-width: 760px; margin: 0 0 26px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.16rem); }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 11px 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 850; font-size: .86rem; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #17120a; box-shadow: 0 12px 28px rgba(229,184,61,.16); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.text-button { color: var(--gold-2); font-size: .86rem; font-weight: 850; padding: 10px 5px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.hero-tags li { color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); border-radius: 999px; padding: 7px 11px; font-size: .75rem; font-weight: 750; }

.portrait-card { position: relative; padding: 16px; border: 1px solid var(--line-strong); border-radius: 26px; background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 94%, var(--gold) 6%), var(--surface)); box-shadow: var(--shadow); }
.portrait-frame { position: relative; overflow: hidden; border-radius: 18px; background: linear-gradient(145deg, #f7f3ec, #dcd6cc); aspect-ratio: 1 / 1.04; }
.portrait-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.32); pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; transform: scale(1.02); }
.portrait-accent { position: absolute; width: 160px; height: 160px; right: -40px; top: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(229,184,61,.42), transparent 66%); z-index: 1; pointer-events: none; }
.portrait-caption { padding: 17px 5px 3px; }
.portrait-caption p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.portrait-title { color: var(--text) !important; font-weight: 850; font-size: .88rem !important; }

.results { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 72%, transparent); }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.result-grid article { min-height: 154px; padding: 28px 24px; border-right: 1px solid var(--line); }
.result-grid article:last-child { border-right: 0; }
.result-grid strong { display: block; color: var(--gold-2); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.05; }
.result-grid p { margin: 11px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }

.section { padding: 94px 0; }
.section.soft { background: color-mix(in srgb, var(--bg-soft) 86%, transparent); border-block: 1px solid var(--line); }
.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(46px, 8vw, 110px); align-items: start; }
.section-copy { max-width: 700px; }
.section-copy p { color: var(--muted); }
.section-copy .lead { color: var(--text); font-size: 1.28rem; font-weight: 720; }
.heading-row { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 46px; margin-bottom: 38px; }
.heading-row > p { color: var(--muted); max-width: 420px; justify-self: end; }
.section-link { color: var(--gold-2); font-weight: 850; justify-self: end; }

.philosophy-section { padding-top: 28px; }
.philosophy-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(30px, 5vw, 58px); background: linear-gradient(135deg, rgba(229,184,61,.08), var(--surface)); box-shadow: var(--shadow); }
.philosophy-card blockquote { margin: 0; padding-left: 30px; border-left: 2px solid var(--gold); color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 2rem); line-height: 1.45; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skill-card { min-height: 230px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.skill-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.skill-card span { display: block; color: var(--gold); font-size: .72rem; font-weight: 900; letter-spacing: .15em; margin-bottom: 32px; }
.skill-card p { color: var(--muted); margin-bottom: 0; }

.experience-list { display: grid; gap: 18px; }
.experience-item { display: grid; grid-template-columns: 210px 1fr; gap: 38px; padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.experience-meta { display: flex; flex-direction: column; gap: 8px; color: var(--subtle); font-size: .82rem; font-weight: 760; }
.company { margin: 0 0 4px; color: var(--gold-2); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 900; }
.experience-main h3 { margin-bottom: 10px; font-size: 1.55rem; }
.experience-main > p:not(.company), .experience-main li { color: var(--muted); }
.experience-main ul { margin: 16px 0 0; padding-left: 20px; }
.earlier-experience { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.earlier-experience summary { cursor: pointer; padding: 22px 26px; font-weight: 850; }
.earlier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.earlier-grid article { padding: 25px; border-right: 1px solid var(--line); }
.earlier-grid article:last-child { border-right: 0; }
.earlier-grid h3 { margin-bottom: 8px; }
.earlier-grid p:last-child { color: var(--muted); font-size: .88rem; }

.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.case-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 26px; }
.case-label { color: var(--gold-2); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 900; }
.case-card h3 { font-size: 1.45rem; margin-bottom: 21px; }
.case-card dl { margin: auto 0 0; display: grid; gap: 16px; }
.case-card dl div { border-top: 1px solid var(--line); padding-top: 14px; }
.case-card dt { color: var(--text); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.case-card dd { margin: 5px 0 0; color: var(--muted); font-size: .87rem; }

.venture-card { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; border: 1px solid var(--line-strong); background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 90%, var(--gold) 10%)); padding: clamp(30px, 5vw, 56px); border-radius: var(--radius); }
.venture-card p:not(.eyebrow) { max-width: 760px; color: var(--muted); }

.contact-section { border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(45px, 8vw, 96px); align-items: start; }
.contact-copy > p { color: var(--muted); }
.contact-links { display: flex; flex-direction: column; gap: 9px; margin-top: 24px; }
.contact-links a { color: var(--gold-2); font-weight: 820; }
.contact-form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { color: var(--text); font-size: .82rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; margin-top: 7px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); border-radius: 11px; padding: 12px 13px; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(229,184,61,.12); }
.contact-form textarea { resize: vertical; }
.button.full { width: 100%; }
.sensitive-note, .form-note { margin: 0; color: var(--subtle); font-size: .72rem; }
.consent-check { display: grid; grid-template-columns: 19px 1fr; gap: 10px; align-items: start; color: var(--muted) !important; font-weight: 650 !important; }
.consent-check input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--gold); }
.consent-check a { color: var(--gold-2); text-decoration: underline; }

footer { border-top: 1px solid var(--line); padding: 25px 0; background: color-mix(in srgb, var(--bg-soft) 86%, transparent); }
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-brand img { width: 116px; height: 35px; object-fit: contain; object-position: left center; }
.footer-row > p { color: var(--subtle); font-size: .78rem; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 15px; color: var(--muted); font-size: .75rem; }
.footer-cookie-button { border: 0; padding: 0; background: none; color: inherit; cursor: pointer; }

.cookie-banner { position: fixed; right: 18px; bottom: 18px; z-index: 200; width: min(430px, calc(100% - 36px)); display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 14px 15px; border: 1px solid var(--line-strong); border-radius: 16px; background: color-mix(in srgb, var(--surface) 95%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.cookie-banner[hidden] { display: none; }
.cookie-banner strong { font-size: .8rem; }
.cookie-banner p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.cookie-actions { display: flex; align-items: center; gap: 9px; }
.cookie-actions a { color: var(--gold-2); font-size: .7rem; font-weight: 800; }
.cookie-accept { min-height: 34px; padding: 7px 13px; font-size: .72rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

.legal-main { padding: 78px 0 96px; }
.legal-shell { width: min(calc(100% - 40px), 900px); margin-inline: auto; }
.legal-hero { margin-bottom: 36px; }
.legal-updated { color: var(--subtle); }
.legal-content { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); padding: clamp(26px, 5vw, 52px); }
.legal-content section + section { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.legal-content h2 { font-family: inherit; font-size: 1.45rem; letter-spacing: -.02em; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content a { color: var(--gold-2); text-decoration: underline; }
.legal-callout { border-left: 3px solid var(--gold); padding: 2px 0 2px 18px; margin-bottom: 26px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .84rem; }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
.status-page { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: 60px 20px; }
.status-card { max-width: 680px; text-align: center; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); padding: 48px; box-shadow: var(--shadow); }
.status-card h1 { font-size: clamp(2.7rem, 7vw, 5rem); }
.status-card p { color: var(--muted); }

@media (max-width: 980px) {
  .nav-links { position: fixed; top: var(--header-height); left: 20px; right: 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a, .theme-toggle { width: 100%; justify-content: center; padding: 13px; }
  .menu-button { display: inline-grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr .72fr; gap: 40px; }
  .result-grid { grid-template-columns: repeat(2, 1fr); }
  .result-grid article:nth-child(2) { border-right: 0; }
  .result-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-card:last-child { grid-column: 1 / -1; }
  .earlier-grid { grid-template-columns: 1fr; }
  .earlier-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .earlier-grid article:last-child { border-bottom: 0; }
}

@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 112px; height: 34px; }
  .hero { padding: 48px 0 42px; }
  .hero-grid, .two-column, .heading-row, .philosophy-card, .experience-item, .venture-card, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .portrait-card { order: 2; max-width: 420px; }
  h1 { font-size: clamp(3.25rem, 16vw, 5.2rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .result-grid { grid-template-columns: 1fr; }
  .result-grid article { border-right: 0; border-bottom: 1px solid var(--line); min-height: auto; }
  .result-grid article:last-child { border-bottom: 0; }
  .section { padding: 72px 0; }
  .heading-row > p, .section-link { justify-self: start; }
  .philosophy-card { gap: 25px; }
  .philosophy-card blockquote { padding-left: 20px; }
  .card-grid, .case-grid { grid-template-columns: 1fr; }
  .case-card:last-child { grid-column: auto; }
  .experience-item { gap: 16px; padding: 24px; }
  .experience-meta { flex-direction: row; justify-content: space-between; }
  .form-row { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr; text-align: center; }
  .footer-brand img { margin-inline: auto; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .cookie-banner { grid-template-columns: 1fr; }
  .cookie-actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
