/* ═══════════════════════════════════════════════════════════════
   Votrix — shared design system
   Warm paper, light serif display, grotesk body, mono labels.
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* parchment + forest */
  --paper:      #f2ede4;
  --paper-2:    #e8e1d4;
  --card:       #fbf9f4;
  --ink:        #1b2620;
  --ink-2:      #34413a;
  --muted:      #66706a;
  --faint:      #9aa19b;
  --line:       #e0d8ca;
  --line-2:     #d2c8b7;

  --green:      #2d5c44;
  --green-2:    #3a7358;
  --green-soft: #dfeade;
  --mint:       #9fd8b4;

  --night:      #0f2119;
  --night-2:    #163024;
  --night-line: rgba(242,237,228,.1);

  --serif: 'Newsreader', 'GT Canon', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', 'Inter', system-ui, -apple-system, sans-serif;
  --mono:  'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius:    20px;
  --radius-sm: 12px;
  --wrap:      1200px;
  --ease:      cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .38 0 0 0 0 .3 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--green); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* ─── Type ─── */
.display, .h1, .h2, .h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; }
.h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; letter-spacing: -.03em; }
.h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; }
.h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.h1 em, .h2 em { font-style: italic; color: var(--green); }
.lede { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }
.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.label::before { content: ''; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.label.plain::before { display: none; }
.num { font-family: var(--mono); font-size: 12px; color: var(--faint); letter-spacing: .04em; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn-dark  { background: var(--green); color: var(--paper); }
.btn-dark:hover { background: #234a36; box-shadow: 0 8px 24px -8px rgba(27,38,32,.5); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: var(--card); border-color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-line-light { color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-line-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(242,237,228,.84);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img { height: 26px; width: auto; }
.nav-logo span { font-family: var(--serif); font-size: 25px; letter-spacing: -.03em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--ink-2); }
.nav-links > a, .nav-links > .dd > button {
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-links > a:hover, .nav-links > .dd > button:hover, .dd.open > button { background: rgba(27,38,32,.05); color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-cta { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.nav-cta .txt { padding: 8px 12px; color: var(--ink-2); border-radius: 999px; transition: color .2s; }
.nav-cta .txt:hover { color: var(--ink); }

.dd { position: relative; }
.dd svg { transition: transform .2s; }
.dd.open svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 340px;
  transform: translate(-50%, -6px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px -20px rgba(27,38,32,.25); padding: 8px;
}
.dd.open .dd-panel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dd-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .15s; }
.dd-item:hover { background: var(--paper); }
.dd-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: center top; }
.dd-item b { display: block; font-size: 14px; font-weight: 500; line-height: 1.2; }
.dd-item span { font-size: 13px; color: var(--muted); }
.dd-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; padding: 12px 10px 6px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.dd-foot:hover { color: var(--ink); }

.burger { display: none; width: 40px; height: 40px; border-radius: 999px; align-items: center; justify-content: center; }
.burger:hover { background: rgba(27,38,32,.06); }
.mnav {
  display: none; position: fixed; inset: 68px 0 0 0; background: var(--paper); z-index: 59;
  padding: 16px 20px 32px; overflow-y: auto;
}
.mnav.open { display: block; animation: fadeIn .25s var(--ease); }
.mnav a { display: block; padding: 14px 4px; font-size: 20px; border-bottom: 1px solid var(--line); font-family: var(--serif); }
.mnav .mteam { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mnav .mteam a { border: 0; font-family: var(--sans); font-size: 14px; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--card); }
.mnav .mteam img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: center top; }
.mnav .btn { width: 100%; margin-top: 12px; font-family: var(--sans); font-size: 15px; border-bottom: 0; }
@media (max-width: 960px) {
  .nav-links, .nav-cta .txt, .nav-cta .hide-m { display: none; }
  .burger { display: inline-flex; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ─── Footer ─── */
.foot { background: var(--paper); border-top: 1px solid var(--line); padding: 72px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .nav-logo { margin-bottom: 16px; }
.foot-brand p { color: var(--muted); max-width: 280px; margin: 0; }
.foot h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--ink-2); transition: color .2s; }
.foot ul a:hover { color: var(--green); }
.foot-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: var(--faint); font-size: 13px; flex-wrap: wrap; }
.foot-word { font-family: var(--serif); font-size: clamp(64px, 13vw, 210px); line-height: .8; letter-spacing: -.05em; color: var(--paper-2); margin-top: 56px; user-select: none; text-align: center; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ─── Sections ─── */
.section { padding: 128px 0; }
.section-sm { padding: 88px 0; }
.sec-head { display: grid; gap: 18px; margin-bottom: 64px; max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; justify-items: center; }
@media (max-width: 640px) { .section { padding: 88px 0; } .sec-head { margin-bottom: 40px; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card.lift:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(27,38,32,.28); border-color: var(--line-2); }

/* ─── Reveal ─── */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv[data-d="1"] { transition-delay: .08s; } .rv[data-d="2"] { transition-delay: .16s; }
.rv[data-d="3"] { transition-delay: .24s; } .rv[data-d="4"] { transition-delay: .32s; }

/* word-by-word fade for statement text */
.words .w { opacity: .14; transition: opacity .5s ease; }
.words .w.on { opacity: 1; }

/* ─── FAQ ─── */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; text-align: left; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.faq-q:hover { color: var(--green); }
.faq-ic { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; position: relative; transition: background .25s, border-color .25s, transform .35s var(--ease); }
.faq-ic::before, .faq-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
.faq-ic::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq-item.open .faq-ic { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: rotate(180deg); }
.faq-item.open .faq-ic::after { transform: translate(-50%,-50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 56px 28px 0; color: var(--muted); line-height: 1.7; }
.faq-a a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .words .w { opacity: 1; }
}
