/* ============================================================
   Capstone Strata — Editorial / Architectural
   Palette: warm cream + forest green + sage + tan
   ============================================================ */

:root {
  /* Palette */
  --cream: #EFEAE0;
  --cream-2: #E5DFD2;
  --paper: #F7F4EC;
  --ink: #1A1F18;
  --ink-2: #2D3B2C;     /* primary deep green */
  --sage: #6B7D5C;
  --sage-soft: #97A487;
  --tan: #B8A888;
  --tan-2: #C9B896;
  --rule: rgba(45, 59, 44, 0.18);
  --rule-strong: rgba(45, 59, 44, 0.4);
  --bg: var(--cream);
  --fg: var(--ink-2);

  /* Type */
  --sans: "Inter Tight", "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Layout */
  --pad: clamp(20px, 4vw, 56px);
  --max: 1640px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

/* ===== Type system ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
}
.eyebrow .dot { display:inline-block; width:6px; height:6px; border-radius:50%; background: var(--sage); margin-right: 8px; vertical-align: 2px; }

.display {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.95;
  color: var(--ink-2);
  font-size: clamp(56px, 9vw, 168px);
  text-wrap: balance;
}
.display em {
  font-weight: 400;
  color: var(--sage);
}
.h1 {
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  font-size: clamp(44px, 6.5vw, 112px);
  color: var(--ink-2);
  text-wrap: balance;
}
.h1 em { font-style: normal; font-weight: 400; color: var(--sage); }
.h2 {
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(32px, 4.4vw, 72px);
  color: var(--ink-2);
  text-wrap: balance;
}
.h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(22px, 2.2vw, 32px);
  color: var(--ink-2);
}
.lede {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
  max-width: 60ch;
}
p { text-wrap: pretty; }
.body {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(45, 59, 44, 0.78);
  max-width: 62ch;
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.numeral {
  font-family: var(--mono);
  font-feature-settings: "tnum" 1;
}

/* ===== Layout ===== */
.shell { width: 100%; padding: 0 var(--pad); margin: 0 auto; max-width: var(--max); }
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section-tight { padding: clamp(56px, 8vw, 120px) 0; }

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  background: color-mix(in oklab, var(--cream) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}
.nav-logo .glyph {
  width: 26px; height: 26px;
  border: 1.5px solid var(--ink-2);
  position: relative;
  display: inline-block;
}
.nav-logo .glyph::before {
  content: ""; position: absolute; inset: 4px 4px auto 4px; height: 6px; background: var(--ink-2);
}
.nav-links {
  display: flex; gap: 6px; align-items: center;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px; font-weight: 700;
  color: var(--ink-2);
  border-radius: 999px;
  position: relative;
  transition: background .2s ease, color .2s ease;
  letter-spacing: -0.005em;
}
.nav-link:hover { background: rgba(45,59,44,.06); }
.nav-link.active { background: var(--ink-2); color: var(--cream); }
.nav-cta {
  padding: 10px 18px;
  background: var(--ink-2); color: var(--cream);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .25s ease, background .25s ease;
}
.nav-cta:hover { background: var(--sage); transform: translateY(-1px); }
.nav-cta .arr { display: inline-block; transition: transform .25s ease; }
.nav-cta:hover .arr { transform: translate(2px, -2px); }

/* ===== Footer with form ===== */
.footer-form-block {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 96px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}
.footer-intro .brand-logo-footer { margin-bottom: 32px; }
.footer-headline {
  font-family: var(--sans);
  font-size: clamp(32px, 3.4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: #FFF;
  text-wrap: balance;
}
.footer-headline em {
  font-weight: 300;
  color: rgba(255, 255, 255, .55);
}
.footer-body {
  margin-top: 20px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.6;
  max-width: 36ch;
}
.footer-direct {
  margin-top: 28px;
  display: flex; flex-direction: column; gap: 4px;
}
.footer-direct a {
  font-size: 16px; font-weight: 400; color: #FFF;
  transition: color .25s ease;
}
.footer-direct a:hover { color: rgba(255, 255, 255, .65); }

/* Form */
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-form-row { display: flex; flex-direction: column; }
.footer-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.footer-form label { display: block; }
.footer-field-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 6px;
}
.footer-field {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  color: #FFF;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 350;
  padding: 10px 0;
  outline: none;
  transition: border-color .25s ease;
}
.footer-field::placeholder { color: rgba(255, 255, 255, .35); }
.footer-field:focus { border-color: #FFF; }
.footer-field:hover { border-color: rgba(255, 255, 255, .4); }
textarea.footer-field { resize: vertical; min-height: 56px; line-height: 1.5; }
.footer-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.footer-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FFF;
  color: var(--ink);
  border: 0;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.footer-submit:hover { background: var(--cream); transform: translateY(-1px); }
.footer-submit .arr { display: inline-block; transition: transform .25s ease; }
.footer-submit:hover .arr { transform: translate(2px, -2px); }
.footer-submit-sent { display: none; }
.footer-form.sent .footer-submit {
  background: transparent;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, .4);
  pointer-events: none;
}
.footer-form.sent .footer-submit-default { display: none; }
.footer-form.sent .footer-submit-sent { display: inline-flex; }
.footer-form-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

/* Three-column nav block */
.footer-nav-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 64px 0 40px;
}
.footer-nav-block .footer-col h5 { color: rgba(255, 255, 255, .55); }

@media (max-width: 880px) {
  .footer-form-block { grid-template-columns: 1fr; gap: 48px; padding-bottom: 56px; }
  .footer-form-row-2 { grid-template-columns: 1fr; gap: 20px; }
  .footer-nav-block { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
  .footer-form-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .footer-nav-block { grid-template-columns: 1fr; gap: 28px; }
  .footer-headline { font-size: clamp(28px, 8vw, 38px); }
  .footer-body { max-width: none; }
}
.nav-actions {
  display: inline-flex; align-items: center; gap: 10px;
}
.nav-login {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  background: transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.nav-login svg { opacity: .8; transition: opacity .25s ease; }
.nav-login:hover { background: var(--ink-2); color: var(--cream); border-color: var(--ink-2); transform: translateY(-1px); }
.nav-login:hover svg { opacity: 1; }

.menu-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  background: transparent;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.menu-toggle:hover { background: rgba(45,59,44,.06); }
.menu-toggle-bars {
  position: relative;
  display: inline-block;
  width: 16px; height: 12px;
}
.menu-toggle-bars span {
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: currentColor;
  border-radius: 1px;
  transition: transform .3s ease, opacity .25s ease, top .3s ease;
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 5px; }
.menu-toggle-bars span:nth-child(3) { top: 10px; }
.nav.menu-open .menu-toggle-bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav.menu-open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.menu-open .menu-toggle-bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.nav-contact { display: none; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: 76px;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--pad) 28px;
    background: color-mix(in oklab, var(--cream) 96%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.menu-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 14px 4px;
    font-size: 18px;
    border-radius: 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav-link:hover { background: transparent; }
  .nav-link.active { background: transparent; color: var(--ink-2); font-weight: 500; }
  body.menu-open { overflow: hidden; }

  .nav-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--rule-strong);
  }
  .nav-contact-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    background: var(--ink-2);
    color: var(--cream);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    transition: background .25s ease;
  }
  .nav-contact-cta:hover { background: var(--sage); }
  .nav-contact-cta .arr { transition: transform .25s ease; }
  .nav-contact-cta:hover .arr { transform: translate(2px, -2px); }
  .nav-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
    color: var(--ink-2);
    font-size: 15px;
    letter-spacing: -0.005em;
  }
  .nav-contact-item svg { color: var(--sage); flex: 0 0 auto; }
}

@media (max-width: 640px) {
  .nav { padding: 14px var(--pad); }
  .nav-links { top: 68px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn-primary { background: var(--ink-2); color: var(--cream); }
.btn-primary:hover { background: var(--sage); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--rule-strong);
}
.btn-ghost:hover { background: var(--ink-2); color: var(--cream); border-color: var(--ink-2); }
.btn .arr {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s ease;
}
.btn:hover .arr { transform: translate(3px, -3px); }

/* ===== Footer ===== */
.footer {
  background: var(--ink-2);
  color: var(--cream);
  padding: clamp(24px, 3.2vw, 48px) var(--pad) 32px;
  position: relative;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(239, 234, 224, .15);
}
.footer-mark {
  font-size: clamp(48px, 6vw, 96px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: .9;
  color: var(--cream);
}
.footer-mark em { color: var(--tan); font-weight: 400; }
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tan);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 15px; }
.footer-col a:hover { color: var(--tan-2); }
.footer-col p { font-size: 14px; line-height: 1.6; color: rgba(239, 234, 224, .75); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(239, 234, 224, .5);
}
.footer-legal-links { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-legal-links a { color: rgba(239, 234, 224, .72); transition: color .2s ease; }
.footer-legal-links a:hover { color: var(--tan-2); }
.footer-legal-links .sep { opacity: .5; }
@media (max-width: 880px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; padding-bottom: 56px; }
  .footer-mark { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ===== Mobile polish ===== */
@media (max-width: 640px) {
  .nav-login { width: 44px; height: 44px; }
  .menu-toggle { width: 44px; height: 44px; }
  .btn { padding: 14px 22px; }
  .h1 { font-size: clamp(40px, 12vw, 64px); }
  .h2 { font-size: clamp(32px, 9vw, 48px); }
}
@media (hover: none) {
  .service-row:hover { padding-left: 0; }
  .service-row:hover::before { width: 0; }
}

/* word-by-word reveal */
.word-reveal .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.word-reveal.in .w { opacity: 1; transform: translateY(0); }

/* image clip reveal */
.clip-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.1s cubic-bezier(.7,0,.2,1);
}
.clip-reveal.in { clip-path: inset(0 0 0 0); }

/* ===== Image utils ===== */
.cover { position: relative; overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.cover:hover img { transform: scale(1.04); }

/* ===== Marquee reused ===== */
.scroll-row { display: flex; gap: 40px; align-items: center; }
.scroll-row span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); white-space: nowrap; }
.scroll-row svg { flex-shrink: 0; }

/* ===== Helpers ===== */
.divider { height: 1px; background: var(--rule); width: 100%; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--sage);
}
.kicker::before {
  content: ""; width: 18px; height: 1px; background: var(--sage);
}

/* page-top spacer (for fixed nav) */
.spacer-top { height: 88px; }

/* ===== Form ===== */
.field {
  display: block; width: 100%;
  border: 0; border-bottom: 1px solid var(--rule-strong);
  background: transparent; color: var(--ink-2);
  font-family: var(--sans); font-size: 18px;
  padding: 18px 0;
  letter-spacing: -0.01em;
  outline: none;
  transition: border-color .25s ease;
}
.field::placeholder { color: rgba(45, 59, 44, .35); }
.field:focus { border-color: var(--ink-2); }
textarea.field { resize: vertical; min-height: 120px; line-height: 1.5; }
.field-label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 6px; display: block;
}

/* ===== Nav inverted (on dark sections / about hero) ===== */
.nav.inverted { background: color-mix(in oklab, var(--ink-2) 78%, transparent); }
.nav.inverted .nav-logo, .nav.inverted .nav-link { color: var(--cream); }
.nav.inverted .nav-link.active { background: var(--cream); color: var(--ink-2); }
.nav.inverted .nav-cta { background: var(--cream); color: var(--ink-2); }
.nav.inverted .nav-logo .glyph { border-color: var(--cream); }
.nav.inverted .nav-logo .glyph::before { background: var(--cream); }
