@font-face { font-family:'Funnel Sans'; src:url('assets/fonts/funnel-sans-latin.woff2') format('woff2'); font-weight:300 800; font-style:normal; font-display:swap; }
@font-face { font-family:'Lora'; src:url('assets/fonts/lora-latin.woff2') format('woff2'); font-weight:400 700; font-style:normal; font-display:swap; }

:root {
  /* Brand palette kept from the previous design. */
  --ink:#10100f; --paper:#f2f0e9; --acid:#caff00; --orange:#ff5c35;
  --bg:var(--ink); --surface:#181816; --surface-2:#1f1f1c; --line:#2d2d29; --line-strong:#41413b;
  --text:var(--paper); --muted:#a6a59b; --acid-soft:rgba(202,255,0,.1); --acid-line:rgba(202,255,0,.45);
  --sans:'Funnel Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif:'Lora', Georgia, serif;
  --radius:14px; --radius-sm:8px;
  --section:120px; --container:1160px; --gutter:24px;
}

* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:88px; -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--bg); color:var(--text); font:400 17px/1.6 var(--sans); -webkit-font-smoothing:antialiased; }
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button { font:inherit; }
h1,h2,h3 { margin:0; font-weight:700; line-height:1.08; letter-spacing:-.02em; }
h1 em,h2 em { font-family:var(--serif); font-style:normal; font-weight:600; color:var(--acid); letter-spacing:-.01em; }
p { margin:0; }
:focus-visible { outline:2px solid var(--acid); outline-offset:3px; border-radius:4px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip-link { position:absolute; left:16px; top:-60px; z-index:200; padding:10px 14px; border-radius:var(--radius-sm); background:var(--acid); color:var(--ink); font-weight:600; }
.skip-link:focus { top:12px; }
.container { width:min(100% - 2*var(--gutter), var(--container)); margin-inline:auto; }

/* Buttons: solid buttons have no border; only the transparent one does. */
.button { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:12px 22px; border-radius:var(--radius-sm); font-size:15px; font-weight:600; line-height:1; transition:background-color .2s, color .2s, border-color .2s, transform .2s; }
.button-primary { background:var(--acid); color:var(--ink); }
.button-primary:hover { background:#d9ff4d; }
.button-ghost { border:1px solid var(--line-strong); color:var(--text); }
.button-ghost:hover { border-color:var(--acid-line); color:var(--acid); }
.button-small { min-height:40px; padding:10px 16px; font-size:14px; }
.button-block { width:100%; }

/* Header */
.site-header { position:fixed; inset:0 0 auto; z-index:50; border-bottom:1px solid transparent; transition:background-color .25s, border-color .25s, backdrop-filter .25s; }
.site-header.is-scrolled,.site-header.menu-open { background:rgba(16,16,15,.78); border-bottom-color:var(--line); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
.header-inner { height:72px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:24px; }
.brand { display:inline-flex; align-items:center; gap:10px; justify-self:start; font-weight:600; font-size:16px; }
.brand-mark { display:grid; place-items:center; width:34px; height:34px; border-radius:9px; background:var(--acid); color:var(--ink); font-size:11px; font-weight:800; letter-spacing:.02em; }
.site-nav { display:flex; gap:32px; }
.site-nav a { position:relative; color:var(--muted); font-size:15px; font-weight:500; transition:color .2s; }
.site-nav a:hover,.site-nav a.active { color:var(--text); }
.site-nav a.active::after { content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px; border-radius:2px; background:var(--acid); }
.header-actions { justify-self:end; display:flex; align-items:center; gap:14px; }
.language-switch { display:flex; padding:3px; border:1px solid var(--line); border-radius:999px; }
.language-switch button { min-width:36px; min-height:30px; padding:0 8px; border:0; border-radius:999px; background:none; color:var(--muted); font-size:12px; font-weight:600; cursor:pointer; }
.language-switch button.active { background:var(--surface-2); color:var(--text); }
.menu-button { display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:var(--radius-sm); background:none; color:var(--text); cursor:pointer; place-content:center; gap:6px; }
.menu-button i { display:block; width:18px; height:2px; border-radius:2px; background:currentColor; transition:transform .2s; }
.menu-button[aria-expanded="true"] i:first-of-type { transform:translateY(4px) rotate(45deg); }
.menu-button[aria-expanded="true"] i:last-of-type { transform:translateY(-4px) rotate(-45deg); }

/* Hero: faint grid + brand glow, as in the reference template. */
.hero { position:relative; overflow:hidden; padding:168px 0 var(--section); text-align:center; isolation:isolate; }
.hero::before { content:""; position:absolute; inset:0; z-index:-2; background-image:linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size:64px 64px; opacity:.45; -webkit-mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image:radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }
.hero::after { content:""; position:absolute; z-index:-1; left:50%; top:-260px; width:900px; height:620px; transform:translateX(-50%); border-radius:50%; background:radial-gradient(closest-side, rgba(202,255,0,.22), rgba(202,255,0,.06) 60%, transparent); filter:blur(10px); pointer-events:none; }
.hero-inner { display:flex; flex-direction:column; align-items:center; }
.pill { display:inline-flex; align-items:center; gap:10px; margin-bottom:32px; padding:5px 16px 5px 5px; border:1px solid var(--line-strong); border-radius:999px; background:rgba(24,24,22,.7); color:var(--text); font-size:14px; font-weight:500; }
.pill img { width:28px; height:28px; border-radius:50%; object-fit:cover; object-position:center 62%; border:1px solid var(--acid-line); }
.hero h1 { max-width:820px; font-size:clamp(40px, 6.4vw, 76px); }
.hero-lead { max-width:620px; margin-top:24px; color:var(--muted); font-size:clamp(18px, 2vw, 21px); line-height:1.55; }
.hero-actions { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:40px; }
.method-card { width:min(100%, 760px); margin-top:64px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(24,24,22,.85); text-align:left; }
.method-card header { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 20px; border-bottom:1px solid var(--line); }
.method-card h2 { font-size:15px; font-weight:600; letter-spacing:0; }
.method-card header>span { display:inline-flex; align-items:center; gap:6px; color:var(--muted); font-size:14px; }
.method-card svg { width:16px; height:16px; fill:none; stroke:var(--acid); stroke-width:1.8; }
.method-card ol { display:grid; grid-template-columns:repeat(4, 1fr); margin:0; padding:0; list-style:none; }
.method-card li { display:flex; flex-direction:column; gap:10px; padding:20px; font-size:16px; font-weight:500; line-height:1.35; }
.method-card li + li { border-left:1px solid var(--line); }
.method-card b { color:var(--acid); font-size:13px; font-weight:600; }

/* Sections */
.section { padding:var(--section) 0; }
.section + .section { border-top:1px solid var(--line); }
.section-head { max-width:680px; margin-bottom:64px; }
.section-head.center { margin-inline:auto; text-align:center; }
.section-head h2,.about h2,.career h2,.contact h2 { font-size:clamp(34px, 4.4vw, 52px); }
.section-head p { margin-top:20px; color:var(--muted); font-size:19px; }
.section-kicker { margin-bottom:16px; color:var(--acid); font-size:14px; font-weight:600; }
.card { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }

/* About */
.about-inner { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 6fr); gap:72px; align-items:center; }
.about-photo { margin:0; overflow:hidden; border:1px solid var(--line); border-radius:var(--radius); aspect-ratio:4/5; background:var(--surface); }
.about-photo img { width:100%; height:100%; object-fit:cover; object-position:center 70%; }
.about-copy h2 { margin-bottom:28px; }
.about-copy p:not(.section-kicker) { color:var(--muted); font-size:18px; }
.about-copy p + p { margin-top:18px; }
.social-row { display:flex; gap:10px; margin:32px 0 0; padding:0; list-style:none; }
.social-row a { display:grid; place-items:center; width:44px; height:44px; border:1px solid var(--line-strong); border-radius:50%; color:var(--muted); transition:color .2s, border-color .2s; }
.social-row a:hover { color:var(--acid); border-color:var(--acid-line); }
.social-row svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* Principles + stats */
.stats { display:grid; grid-template-columns:repeat(4, 1fr); gap:24px; margin:0 0 64px; text-align:center; }
.stats div { display:flex; flex-direction:column; justify-content:flex-start; gap:8px; }
.stats dd { order:-1; }
.stats dd { margin:0; font-family:var(--serif); font-size:clamp(36px, 4vw, 48px); font-weight:600; line-height:1; color:var(--text); }
.stats dt { color:var(--muted); font-size:15px; line-height:1.4; }
.principle-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:20px; }
.principle-grid .card { padding:32px; }
.card-index { color:var(--acid); font-size:13px; font-weight:600; }
.principle-grid h3 { margin:16px 0 12px; font-size:22px; }
.principle-grid p { color:var(--muted); }

/* Career: sticky intro + accordion */
.career-inner { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:72px; align-items:start; }
.career-intro { position:sticky; top:120px; }
.career-intro h2 { margin-bottom:24px; }
.career-intro p:not(.section-kicker) { margin-bottom:32px; color:var(--muted); font-size:18px; }
.timeline { display:grid; gap:12px; }
.timeline-item { transition:border-color .2s; }
.timeline-item[open] { border-color:var(--line-strong); }
.timeline-item summary { position:relative; display:block; padding:24px 76px 24px 24px; list-style:none; cursor:pointer; }
.timeline-item summary::-webkit-details-marker { display:none; }
.chips { display:flex; align-items:center; gap:12px; margin-bottom:14px; color:var(--muted); font-size:13px; }
.chip { padding:4px 10px; border-radius:999px; background:var(--acid-soft); color:var(--acid); font-size:13px; font-weight:600; }
.timeline-item h3 { font-size:20px; }
.timeline-item .summary-line { display:block; margin-top:6px; color:var(--muted); font-size:16px; }
.timeline-item>p { margin:0 24px; padding:20px 0 24px; border-top:1px solid var(--line); color:var(--muted); }
.toggle { position:absolute; right:24px; top:24px; width:36px; height:36px; border:1px solid var(--acid-line); border-radius:var(--radius-sm); background:var(--acid-soft); }
.toggle::before,.toggle::after { content:""; position:absolute; left:50%; top:50%; width:12px; height:2px; border-radius:2px; background:var(--acid); transform:translate(-50%, -50%); transition:transform .2s; }
.toggle::after { transform:translate(-50%, -50%) rotate(90deg); }
.timeline-item[open] .toggle::after { transform:translate(-50%, -50%) rotate(0deg); }

/* Projects: two cards side by side, highlighted one first */
.project-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:20px; align-items:stretch; }
.project-card { position:relative; display:flex; flex-direction:column; padding:28px; }
.project-card>p:not(.project-tag) { color:var(--muted); }
.project-spotfav { border-color:var(--acid-line); box-shadow:0 0 0 1px var(--acid-line), 0 24px 80px -40px rgba(202,255,0,.35); }
.ribbon { position:absolute; top:-1px; right:24px; padding:5px 12px; border-radius:0 0 var(--radius-sm) var(--radius-sm); background:var(--acid); color:var(--ink); font-size:12px; font-weight:700; }
.spotfav-banner,.r26-banner { display:grid; place-items:center; height:160px; margin-bottom:24px; border-radius:10px; overflow:hidden; }
.spotfav-banner { position:relative; background:#000 url("assets/spotfav-rough-texture.png") center/360px repeat; }
.spotfav-banner::before { content:""; position:absolute; inset:0; background:rgba(0,0,0,.45); }
.spotfav-banner img { position:relative; width:min(70%, 280px); height:auto; }
.r26-banner { background:var(--acid); color:var(--ink); }
.r26-banner span { font-size:64px; font-weight:800; letter-spacing:-.04em; }
.r26-banner i { font-style:normal; color:var(--orange); }
.project-tag { margin-bottom:12px; color:var(--acid); font-size:14px; font-weight:600; }
.project-card h3 { margin-bottom:12px; font-size:24px; }
.checklist { display:grid; gap:12px; margin:24px 0 32px; padding:0; list-style:none; }
.checklist li { position:relative; padding-left:30px; font-size:16px; line-height:1.45; }
.checklist li::before { content:""; position:absolute; left:0; top:2px; width:18px; height:18px; border:1px solid var(--acid-line); border-radius:50%; background:var(--acid-soft); }
.checklist li::after { content:""; position:absolute; left:6px; top:6px; width:6px; height:9px; border:solid var(--acid); border-width:0 2px 2px 0; transform:rotate(45deg); }
.project-card .button { margin-top:auto; }
.quote { max-width:760px; margin:96px auto 0; text-align:center; }
.quote p { font-family:var(--serif); font-size:clamp(26px, 3vw, 36px); font-weight:600; line-height:1.3; }

/* Contact */
.contact { position:relative; overflow:hidden; isolation:isolate; }
.contact::after { content:""; position:absolute; z-index:-1; left:50%; bottom:-420px; width:1100px; height:640px; transform:translateX(-50%); border-radius:50%; background:radial-gradient(closest-side, rgba(202,255,0,.16), transparent); pointer-events:none; }
.contact-inner { display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr); gap:72px; align-items:center; }
.contact-copy p { max-width:520px; margin:24px 0 40px; color:var(--muted); font-size:19px; }
.now { padding:32px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(24,24,22,.8); }
.now h3 { font-size:18px; }
.now .checklist { margin:20px 0 0; }

/* Footer */
.site-footer { padding:72px 0 32px; border-top:1px solid var(--line); }
.footer-grid { display:grid; grid-template-columns:2fr 1fr 1fr; gap:48px; }
.footer-brand p { max-width:360px; margin-top:16px; color:var(--muted); font-size:15px; }
.site-footer h2 { margin-bottom:16px; color:var(--muted); font-size:13px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.site-footer ul { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.site-footer nav a { font-size:15px; transition:color .2s; }
.site-footer nav a:hover { color:var(--acid); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; gap:16px; margin-top:56px; padding-top:24px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.footer-bottom div { display:flex; gap:24px; }
.footer-bottom a:hover,.cookie-settings-link:hover { color:var(--text); }
.cookie-settings-link { padding:0; border:0; background:none; color:inherit; font-size:14px; cursor:pointer; }

/* Scroll reveal (only when JS is available and motion is welcome) */
@media (prefers-reduced-motion:no-preference) {
  .js .reveal { opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
  .js .reveal.is-visible { opacity:1; transform:none; }
  .js .principle-grid .reveal:nth-child(2),.js .project-grid .reveal:nth-child(2) { transition-delay:.08s; }
  .js .principle-grid .reveal:nth-child(3) { transition-delay:.16s; }
  .js .principle-grid .reveal:nth-child(4) { transition-delay:.24s; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Cookies */
.cookie-consent,.cookie-preferences { position:fixed; z-index:100; inset:0; pointer-events:none; }
.cookie-consent[hidden],.cookie-preferences[hidden] { display:none; }
.cookie-consent { display:flex; align-items:flex-end; padding:16px; }
.cookie-consent__panel { pointer-events:auto; width:min(100%, 960px); margin:0 auto; padding:24px; display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--surface); box-shadow:0 24px 60px rgba(0,0,0,.5); }
.cookie-consent h2,.cookie-preferences h2 { font-size:20px; letter-spacing:0; }
.cookie-consent__panel p,.cookie-option p { margin-top:8px; color:var(--muted); font-size:15px; line-height:1.5; }
.cookie-consent__actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.cookie-consent__actions button { min-height:44px; padding:10px 16px; border:1px solid var(--line-strong); border-radius:var(--radius-sm); background:transparent; color:var(--text); font-size:14px; font-weight:600; cursor:pointer; }
.cookie-consent__actions button:hover { border-color:var(--muted); }
.cookie-consent__actions .accept { border:0; background:var(--acid); color:var(--ink); }
.cookie-preferences { pointer-events:auto; display:grid; place-items:center; padding:16px; background:rgba(0,0,0,.7); }
.cookie-preferences__panel { width:min(100%, 600px); padding:28px; border:1px solid var(--line-strong); border-radius:var(--radius); background:var(--surface); }
.cookie-preferences__panel .cookie-consent__actions { margin-top:24px; }
.cookie-option { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
.cookie-option strong { font-size:16px; }
.cookie-option>span { flex:0 0 auto; color:var(--muted); font-size:13px; }
.cookie-option input { width:22px; height:22px; accent-color:var(--acid); }

/* Tablet */
@media (max-width:960px) {
  :root { --section:96px; }
  .header-inner { grid-template-columns:1fr auto; }
  .site-nav { position:absolute; top:72px; left:0; right:0; display:none; flex-direction:column; gap:0; padding:8px var(--gutter) 20px; background:rgba(16,16,15,.97); border-bottom:1px solid var(--line); }
  .site-nav.open { display:flex; }
  .site-nav a { padding:14px 0; font-size:18px; color:var(--text); }
  .site-nav a + a { border-top:1px solid var(--line); }
  .site-nav a.active::after { display:none; }
  .menu-button { display:grid; }
  .about-inner,.career-inner,.contact-inner { grid-template-columns:1fr; gap:48px; }
  .about-photo { max-width:480px; }
  .career-intro { position:static; }
  .stats { grid-template-columns:repeat(2, 1fr); row-gap:40px; }
}

/* Mobile */
@media (max-width:640px) {
  :root { --section:80px; --gutter:16px; }
  body { font-size:16px; }
  .header-cta { display:none; }
  .site-header .brand-name { display:none; }
  .hero { padding-top:128px; }
  .hero-actions { width:100%; flex-direction:column; }
  .hero-actions .button { width:100%; }
  .method-card { margin-top:48px; }
  .method-card ol { grid-template-columns:1fr 1fr; }
  .method-card li:nth-child(3) { border-left:0; }
  .method-card li:nth-child(n+3) { border-top:1px solid var(--line); }
  .section-head { margin-bottom:48px; }
  .section-head p,.about-copy p:not(.section-kicker),.career-intro p:not(.section-kicker),.contact-copy p { font-size:17px; }
  .principle-grid,.project-grid { grid-template-columns:1fr; }
  .principle-grid .card,.project-card,.now { padding:24px; }
  .timeline-item summary { padding:20px 68px 20px 20px; }
  .timeline-item>p { margin:0 20px; }
  .toggle { right:20px; top:20px; }
  .contact-copy .button { width:100%; }
  .quote { margin-top:72px; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:40px; }
  .footer-brand { grid-column:1/-1; }
  .footer-bottom { flex-direction:column; align-items:flex-start; }
  .cookie-consent { padding:8px; }
  .cookie-consent__panel { grid-template-columns:1fr; padding:20px; }
  .cookie-consent__actions { justify-content:stretch; }
  .cookie-consent__actions button { flex:1 1 auto; }
}
