/* Nexus Creatio — "dossier & atelier": left-aligned editorial grid, porcelain ground, ink bands, fine gold rules, mono file labels */
:root {
  --paper: #F4F3F6;
  --paper-2: #EAE7EE;
  --ink: #1C1622;
  --ink-soft: #4C4456;
  --line: #D9D4DF;
  --rose: #A3305B;
  --rose-light: #E890B6;
  --gold: #9C7A42;
  --gold-light: #CDAE72;
  --on-ink: #EFEAF2;
  --on-ink-soft: #B5ABBE;

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: clamp(2.4rem, 5.6vw, 4.4rem);
  --s-2: clamp(1.8rem, 3.6vw, 2.7rem);
  --s-3: clamp(1.25rem, 2vw, 1.5rem);
  --s-body: 1.0625rem;
  --s-small: 0.875rem;
  --s-label: 0.75rem;

  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--s-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }

img, video { max-width: 100%; display: block; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--s-1); }
h2 { font-size: var(--s-2); }
h3 { font-size: var(--s-3); line-height: 1.25; }
p { margin: 0; }
em.accent { font-style: italic; color: var(--rose); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.stack { display: grid; gap: 1rem; }
.prose { max-width: 62ch; display: grid; gap: 1rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

.label {
  font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 0.6rem;
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 0.9rem; }
.brand { text-decoration: none; color: var(--ink); display: grid; line-height: 1; gap: 0.3rem; }
.brand-name { font-family: var(--f-display); font-size: 1.35rem; letter-spacing: 0.18em; font-weight: 500; }
.brand-sub { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding-block: 0.3rem; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--rose); color: var(--ink); }
.nav a.nav-cta { border: 1px solid var(--ink); padding: 0.45rem 1rem; border-radius: 2px; }
.nav a.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 0.5rem 0.75rem; font: inherit; font-size: 0.9rem; color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gutter-r) 1rem var(--gutter-l); }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav a.nav-cta { margin-top: 0.8rem; text-align: center; }
}

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn { display: inline-block; font-weight: 600; font-size: 0.95rem; text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 2px; border: 1px solid var(--ink); color: var(--ink); background: transparent; cursor: pointer; font-family: var(--f-body); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--rose); border-color: var(--rose); color: #fff; }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.band-ink .btn { border-color: var(--on-ink); color: var(--on-ink); }
.band-ink .btn:hover { background: var(--on-ink); color: var(--ink); }
.band-ink .btn.primary { background: var(--rose-light); border-color: var(--rose-light); color: var(--ink); }

/* Hero with video slot */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-ink); }
.hero-media { position: absolute; inset: 0; background:
  radial-gradient(90% 120% at 85% 10%, rgba(163,48,91,.55), transparent 60%),
  radial-gradient(70% 90% at 100% 100%, rgba(156,122,66,.35), transparent 55%),
  linear-gradient(135deg, #1C1622 0%, #2A1F33 60%, #1C1622 100%); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(28,22,34,.92) 0%, rgba(28,22,34,.55) 60%, rgba(28,22,34,.2) 100%); }
.hero .wrap { position: relative; padding-block: clamp(4rem, 10vw, 7.5rem); display: grid; gap: 1.6rem; }
.hero .label { color: var(--gold-light); }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--rose-light); }
.hero .lede { max-width: 56ch; font-size: 1.15rem; color: var(--on-ink-soft); }
.hero .btn { border-color: var(--on-ink); color: var(--on-ink); }
.hero .btn:hover { background: var(--on-ink); color: var(--ink); }
.hero .btn.primary { background: var(--rose-light); border-color: var(--rose-light); color: var(--ink); }
.hero .btn.primary:hover { background: var(--on-ink); border-color: var(--on-ink); }

.page-head { border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.2rem; }
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 60ch; font-size: 1.15rem; color: var(--ink-soft); }

/* Sections */
.section .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; gap: 2.5rem; }
.section + .section .wrap { padding-top: 0; }
.section-head { display: grid; gap: 0.9rem; max-width: 720px; }
.section-head p { color: var(--ink-soft); }
.band-ink { background: var(--ink); color: var(--on-ink); }
.band-ink .section-head p, .band-ink p { color: var(--on-ink-soft); }
.band-ink .label { color: var(--gold-light); }
.band-ink h2, .band-ink h3 { color: var(--on-ink); }
.band-soft { background: var(--paper-2); }
.band-ink + .section .wrap, .band-soft + .section .wrap, .section + .band-ink .wrap, .section + .band-soft .wrap { padding-top: clamp(3.5rem, 8vw, 6rem); }

/* Two pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); border-top: 1px solid var(--ink); }
.pillar { padding: 2.2rem 2rem 2.4rem 0; display: grid; gap: 1rem; align-content: start; min-width: 0; }
.pillar + .pillar { border-left: 1px solid var(--line); padding-left: 2rem; }
@media (max-width: 820px) { .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; } .pillar { padding-right: 0; } }
.pillar .ref { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.pillar h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.pillar p { color: var(--ink-soft); max-width: 50ch; }
.pillar ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.pillar li { padding-left: 1.2rem; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--rose); }
.pillar .more { font-weight: 600; text-decoration: none; }
.pillar .more::after { content: " →"; }

/* Former firms */
.firms { display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; align-items: baseline; font-family: var(--f-display); font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--ink); }
.firms span { white-space: nowrap; }
.firms-note { font-size: var(--s-small); color: var(--ink-soft); }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 2.4rem 2.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 2.4rem; }
.feature { display: grid; gap: 0.7rem; align-content: start; border-top: 1px solid var(--line); padding-top: 1.3rem; min-width: 0; }
.band-ink .feature { border-top-color: rgba(239,234,242,.18); }
.feature p { color: var(--ink-soft); }
.feature .tag { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .1em; text-transform: uppercase; color: var(--rose); }
.band-ink .feature .tag { color: var(--rose-light); }

/* Services (Business Support) */
.service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem 3rem; padding-block: 2rem; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.service .for { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .6rem; }
.service ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); display: grid; gap: .35rem; }
.service p { color: var(--ink-soft); margin-bottom: .8rem; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } }

/* Process steps (real sequence) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 2rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; display: grid; gap: .6rem; align-content: start; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .12em; color: var(--gold-light); border-bottom: 1px solid rgba(239,234,242,.2); padding-bottom: .6rem; }
.steps h3 { font-size: 1.25rem; }

/* Tools chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips li { font-family: var(--f-mono); font-size: .8rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 2.4rem; }
blockquote { margin: 0; display: grid; gap: 1rem; align-content: start; }
blockquote p { font-family: var(--f-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--ink); }
.band-ink blockquote p { color: var(--on-ink); }
blockquote footer { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.band-ink blockquote footer { color: var(--gold-light); }

/* Work modes */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.mode { padding: 1.6rem; display: grid; gap: .5rem; align-content: start; border-right: 1px solid var(--line); min-width: 0; }
.mode:last-child { border-right: 0; }
@media (max-width: 760px) { .mode { border-right: 0; border-bottom: 1px solid var(--line); } .mode:last-child { border-bottom: 0; } }
.mode h3 { font-size: 1.2rem; }
.mode p { color: var(--ink-soft); font-size: .97rem; }

/* Ventures */
.ventures { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.venture { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) auto; gap: 1rem 2.5rem; padding-block: 2.2rem; border-bottom: 1px solid var(--line); align-items: start; }
.venture h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
.venture .kind { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: .5rem; }
.venture p { color: var(--ink-soft); }
.venture .details { display: grid; gap: .8rem; }
.status { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; justify-self: start; }
.status.soon { color: var(--rose); background: rgba(163,48,91,.07); }
.status.dev { color: var(--gold); background: rgba(156,122,66,.08); }
.status.build { color: var(--ink-soft); }
.venture.featured { background: var(--ink); color: var(--on-ink); padding-inline: clamp(1.2rem, 3vw, 2.2rem); border-bottom: 0; margin-block: 0 1px; }
.venture.featured p, .venture.featured .kind { color: var(--on-ink-soft); }
.venture.featured h3 { color: var(--on-ink); }
.venture.featured h3 em { font-style: italic; color: var(--rose-light); }
.venture.featured .status { color: var(--rose-light); background: transparent; }
.venture.featured blockquote p { color: var(--on-ink); font-size: 1.15rem; }
@media (max-width: 820px) { .venture { grid-template-columns: 1fr; } }

/* Timeline (About) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem 2rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.timeline .when { font-family: var(--f-mono); font-size: .85rem; color: var(--gold); font-variant-numeric: tabular-nums; padding-top: .2rem; }
.timeline h3 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
.timeline p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: .3rem; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: .8rem; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: .2rem; }
.facts dd { margin: 0; }

/* CTA band */
.cta .wrap { padding-block: clamp(3.5rem, 8vw, 5.5rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 2rem; align-items: end; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }
.cta h2 { max-width: 20ch; }
.cta p { margin-top: 1rem; max-width: 52ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-lines { display: grid; gap: 1.4rem; }
.contact-line { display: grid; gap: .3rem; }
.contact-line .k { font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-line .v { font-size: 1.15rem; word-break: break-word; }
.copy-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.copy-btn { font: inherit; font-size: .8rem; padding: .25rem .6rem; border: 1px solid var(--line); background: var(--paper); border-radius: 2px; cursor: pointer; color: var(--ink); }
form.contact { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 2px; background: var(--paper); color: var(--ink); width: 100%; }
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1.1rem; }
.form-note { font-size: var(--s-small); color: var(--ink-soft); }
.form-status { font-size: .95rem; padding: .8rem 1rem; border-left: 2px solid var(--rose); background: var(--paper-2); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-soft); font-size: var(--s-small); }
.site-footer .wrap { padding-block: 3rem 2rem; display: grid; gap: 2.2rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand-name { color: var(--on-ink); }
.site-footer h4 { margin: 0 0 .8rem; font-family: var(--f-mono); font-size: var(--s-label); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--rose-light); }
.legal { border-top: 1px solid rgba(239,234,242,.15); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em; }
.todo { background: rgba(232,144,182,.18); color: var(--rose-light); padding: 0 .3rem; }
