/* Lavender Capital — editorial ink redesign, 2026 */
@font-face {
  font-family: 'General Sans';
  src: url('assets/fonts/general-sans-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('assets/fonts/general-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('assets/fonts/satoshi-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink: #0c0b10;
  --ink-2: #131118;
  --ink-3: #191621;
  --line: rgba(236, 233, 245, 0.12);
  --line-strong: rgba(236, 233, 245, 0.24);
  --text: #edebf2;
  --muted: #9a96a4;
  --accent: #b3a1ea;
  --accent-dim: rgba(179, 161, 234, 0.16);
  --display: 'General Sans', ui-sans-serif, system-ui, sans-serif;
  --body: 'Satoshi', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --container: 1400px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Preloader curtain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 120;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.loader-mark {
  font-family: var(--display); font-weight: 500; font-size: clamp(0.9rem, 2vw, 1.15rem);
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--text);
  padding-left: 0.42em; /* optically recenter tracked caps */
  opacity: 0;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--ink);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — fixed, non-scrolling, cheap */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
p { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--accent); color: var(--ink); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------- Buttons (locked: primary = off-white fill, ghost = hairline) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 30px;
  font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 0;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--text); color: var(--ink); }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled { background: rgba(12, 11, 16, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 2.5rem;
}
.nav-brand { font-family: var(--display); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.32em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 0.9375rem; transition: color 0.18s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { height: 42px; padding: 0 22px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; flex-direction: column; }
.hero-grid {
  flex: 1;
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; width: 100%;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr;
  align-items: center;
}
.hero-copy { padding-top: 68px; max-width: 46rem; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2.1rem, 4.4vw, 4.6rem); }
.line-mask { display: block; overflow: hidden; padding-bottom: 0.06em; }
.line { display: block; }
.hero-sub { max-width: 32rem; color: var(--muted); font-size: 1.0625rem; margin-top: 1.5rem; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2.25rem; flex-wrap: wrap; }
.hero-visual { margin: 0; position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12, 11, 16, 0.88) 0%, rgba(12, 11, 16, 0.6) 38%, rgba(12, 11, 16, 0.16) 68%, rgba(12, 11, 16, 0.3) 100%),
    linear-gradient(180deg, rgba(12, 11, 16, 0.5) 0%, transparent 26%, transparent 72%, rgba(12, 11, 16, 0.62) 100%);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; will-change: transform; transition: opacity 0.8s ease; }
.hero-glow {
  position: absolute; inset: -10%; pointer-events: none;
  background: radial-gradient(46% 38% at 32% 24%, rgba(179, 161, 234, 0.34), transparent 70%);
  mix-blend-mode: screen; opacity: 0.25;
}
.hero-sheen {
  position: absolute; top: -55%; left: 0; width: 34%; height: 210%;
  pointer-events: none; transform: rotate(16deg) translateX(-260%);
  background: linear-gradient(90deg, transparent, rgba(226, 219, 248, 0.09) 45%, rgba(226, 219, 248, 0.16) 50%, rgba(226, 219, 248, 0.09) 55%, transparent);
  mix-blend-mode: screen;
}
.hero-foot {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  max-width: var(--container); margin: 0 auto; width: 100%;
  padding: 1.1rem var(--gutter);
  display: flex; gap: clamp(1.5rem, 4vw, 3.5rem);
  color: var(--muted); font-size: 0.875rem;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: center; padding-top: 90px; }
  .hero-copy { padding-top: 0; }
  .hero-foot { flex-wrap: wrap; gap: 0.75rem 1.5rem; }
}

/* ---------- Manifesto ---------- */
.manifesto {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(7rem, 14vh, 12rem) var(--gutter) clamp(5rem, 10vh, 8rem);
}
.manifesto-text {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.015em;
  font-size: clamp(1.6rem, 3.4vw, 3rem); line-height: 1.28;
  max-width: 60rem;
}
.manifesto-text .w { opacity: 1; }

.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin: clamp(4rem, 8vh, 6rem) 0 0; padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
.stat dd { margin: 0; }
.stat-num {
  font-family: var(--display); font-weight: 500; letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1;
  font-variant-numeric: tabular-nums; display: block;
}
.stat-suffix { color: var(--accent); }
.stat-label {
  display: block; margin-top: 0.6rem;
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 700px) {
  .stat-strip { grid-template-columns: 1fr; gap: 1.75rem; }
}

.firm-rows { list-style: none; margin: clamp(5rem, 10vh, 8rem) 0 0; padding: 0; }
.firm-row {
  display: grid; grid-template-columns: 6rem 1fr 1.2fr;
  gap: clamp(1.5rem, 3vw, 3rem); align-items: baseline;
  padding: 2.5rem 0; border-top: 1px solid var(--line);
}
.row-idx { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); }
.row-title { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.row-body { color: var(--muted); max-width: 36rem; }
@media (max-width: 900px) {
  .firm-row { grid-template-columns: 1fr; gap: 0.75rem; padding: 2rem 0; }
}

/* ---------- Arms (pinned panels) ---------- */
.arms { position: relative; }
.arm {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.arm-lavender { background: var(--ink-2); }
.arm-janys { background: var(--ink-3); }
.arm-numeral {
  position: absolute; top: 4rem; right: var(--gutter);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(8rem, 24vw, 20rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  pointer-events: none; user-select: none;
}
.arm-inner {
  max-width: var(--container); margin: 0 auto; width: 100%;
  padding: clamp(6rem, 12vh, 9rem) var(--gutter);
  position: relative; z-index: 1;
}
.arm-head { margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.arm-name { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.arm-role { color: var(--accent); font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 0.9rem; }
.arm-lede { font-size: 1.25rem; line-height: 1.55; color: var(--text); max-width: 42rem; }
.arm-focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin: 3rem 0 0; }
.arm-focus > div { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.arm-focus dt { font-weight: 700; margin-bottom: 0.5rem; }
.arm-focus dd { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.arm-note { color: var(--muted); margin: 2.5rem 0; max-width: 38rem; }
.arm-body-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.arm-list { list-style: none; margin: 2rem 0 2.5rem; padding: 0; }
.arm-list li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.arm-visual { margin: 0; overflow: hidden; max-height: 62vh; }
.arm-visual img { width: 100%; height: 108%; object-fit: cover; }
@media (max-width: 900px) {
  .arm { min-height: 0; }
  .arm-body-split { grid-template-columns: 1fr; }
  .arm-focus { grid-template-columns: 1fr; gap: 1.25rem; }
  .arm-numeral { font-size: 7rem; top: 2rem; }
}

/* ---------- Mandate accordions ---------- */
.mandate { max-width: var(--container); margin: 0 auto; padding: clamp(7rem, 14vh, 11rem) var(--gutter); }
.mandate-head { max-width: 46rem; margin-bottom: clamp(3rem, 6vh, 5rem); }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.mandate-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.mandate-sub { color: var(--muted); margin-top: 1.5rem; }

.acc { border-top: 1px solid var(--line-strong); }
.acc-item { border-bottom: 1px solid var(--line-strong); }
.acc-item summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center;
  gap: 1.5rem; padding: 2rem 0;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-idx { font-family: var(--mono); font-size: 0.8125rem; color: var(--accent); }
.acc-title { font-family: var(--display); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.8rem); letter-spacing: -0.01em; }
.acc-mark { position: relative; width: 18px; height: 18px; }
.acc-mark::before, .acc-mark::after {
  content: ""; position: absolute; background: var(--muted); transition: transform 0.25s var(--ease);
}
.acc-mark::before { left: 0; right: 0; top: 8px; height: 2px; }
.acc-mark::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.acc-item[open] .acc-mark::after { transform: scaleY(0); }
.acc-item summary:hover .acc-title { color: var(--accent); }
.acc-body { padding: 0 0 2.5rem 7rem; max-width: 52rem; color: var(--muted); display: grid; gap: 1rem; }
.acc-body strong { color: var(--text); }
.acc-body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; }
.acc-link { color: var(--accent); font-weight: 500; border-bottom: 1px solid var(--accent-dim); width: fit-content; transition: border-color 0.18s var(--ease); }
.acc-link:hover { border-bottom-color: var(--accent); }
@media (max-width: 760px) {
  .acc-item summary { grid-template-columns: 1fr auto; }
  .acc-idx { display: none; }
  .acc-body { padding-left: 0; }
}

/* ---------- Team ---------- */
.team { border-top: 1px solid var(--line); background: var(--ink-2); }
.team > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.team { padding: clamp(7rem, 14vh, 11rem) 0; }
.team-head { padding: 0 var(--gutter); max-width: calc(var(--container)); }
.team-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 52rem; }
.team-rows { list-style: none; margin: clamp(3rem, 6vh, 5rem) auto 0; padding: 0 var(--gutter); }
.team-row {
  display: grid; grid-template-columns: 72px 15rem 1fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  padding: 1.75rem 0; border-top: 1px solid var(--line);
  transition: background-color 0.2s var(--ease);
}
.team-row:last-child { border-bottom: 1px solid var(--line); }
.team-row img {
  width: 72px; height: 72px; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.3s var(--ease);
}
.team-row:hover img { filter: grayscale(0); }
.team-id h3 { font-size: 1.2rem; }
.team-id p { color: var(--accent); font-size: 0.875rem; margin-top: 0.2rem; }
.team-bio { color: var(--muted); font-size: 0.9375rem; max-width: 44rem; }
.team-tag { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) {
  .team-row { grid-template-columns: 56px 1fr; }
  .team-row img { width: 56px; height: 56px; }
  .team-bio { grid-column: 1 / -1; }
  .team-tag { grid-column: 1 / -1; }
}

/* ---------- Contact ---------- */
.contact {
  max-width: var(--container); margin: 0 auto;
  padding: clamp(7rem, 14vh, 12rem) var(--gutter);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.contact-title { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.contact-sub { color: var(--muted); margin-top: 1.75rem; max-width: 30rem; }
.contact-mail {
  display: inline-block; margin-top: 2.5rem;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 2rem); letter-spacing: -0.01em;
  color: var(--accent); border-bottom: 1px solid var(--accent-dim);
  transition: border-color 0.18s var(--ease);
}
.contact-mail:hover { border-bottom-color: var(--accent); }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea {
  background: var(--ink-2); border: 1px solid var(--line-strong);
  color: var(--text); padding: 0.85rem 1rem; border-radius: 0;
  transition: border-color 0.18s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { resize: vertical; min-height: 7rem; }
.field-hint { font-size: 0.8125rem; color: var(--muted); }
.field-err { font-size: 0.8125rem; color: #f2b8c6; }
.field.invalid input, .field.invalid textarea { border-color: #f2b8c6; }
.contact-form .btn { grid-column: 1 / -1; justify-self: start; }
.contact-form .btn[disabled] { opacity: 0.55; pointer-events: none; }
.form-note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); }
.form-topic {
  grid-column: 1 / -1; font-size: 0.875rem; color: var(--accent);
  border-left: 2px solid var(--accent-dim); padding-left: 0.75rem;
}
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-done { grid-column: 1 / -1; padding: 2rem 0 1rem; }
.form-done-title { font-size: 1.25rem; font-weight: 500; color: var(--text); margin-bottom: 0.6rem; }
.form-done-sub { font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 2rem var(--gutter);
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.875rem;
}
.footer-inner a:hover { color: var(--text); }
.footer-marks { font-family: var(--display); letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.75rem; }

/* ---------- Motion primitives (JS adds .in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
  /* hero load-in initial states are owned by GSAP (inline), not CSS,
     so a finished timeline can never be re-hidden by a stylesheet rule */
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-load], .line-mask .line { opacity: 1 !important; transform: none !important; }
}
