:root {
  --paper:    #FAF6EC;
  --shell:    #F2EAD5;
  --bone:     #E8DCBE;
  --ink:      #0A1822;
  --abyss:    #04101A;
  --mist:     #5B7480;
  --foam:     #94A8AF;
  --tide:     #1B5273;
  --tide-deep:#0E3B57;
  --tide-soft:#DCE8F0;
  --signal:   #C84211;
  --line:        rgba(10,24,34,0.10);
  --line-strong: rgba(10,24,34,0.22);
  --line-dark:   rgba(250,246,236,0.14);
  --serif:    "Fraunces", Georgia, serif;
  --sans:     "Switzer", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --mono:     "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1320px;
  --pad-x: 32px;
}

@media (max-width: 720px) {
  :root { --pad-x: 20px; }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ===== Navigation ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 22px 0;
  transition: background .35s ease, padding .35s ease, color .35s ease;
}
.nav.on-dark { color: #FAF6EC; }
.nav.scrolled {
  background: rgba(250, 246, 236, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 14px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo img {
  height: 100px; width: auto;
  transition: opacity .25s;
}
.nav__logo .logo-dark { display: block; }
.nav__logo .logo-light { display: none; }
.nav.scrolled .logo-dark { display: none; }
.nav.scrolled .logo-light { display: block; }

.nav__menu {
  display: flex; gap: 36px; align-items: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav__menu a {
  position: relative;
  padding: 6px 0;
  transition: opacity .2s;
}
.nav__menu a:hover { opacity: .65; }
.nav__menu a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--signal);
}

.nav__toggle {
  display: none;
  background: transparent; border: 0; color: inherit;
  font-family: var(--sans); font-size: 13px;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; padding: 8px 0;
  gap: 10px; align-items: center;
}
.nav__toggle span {
  display: inline-block; width: 22px; height: 1.5px; background: currentColor;
  position: relative;
}
.nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
}
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }

@media (max-width: 860px) {
  .nav__menu { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__menu.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); color: var(--ink);
    padding: 30px var(--pad-x);
    gap: 22px;
    border-bottom: 1px solid var(--line);
  }
}

/* ===== Hero (home) ===== */
.hero {
  position: relative;
  height: 100vh; min-height: 640px;
  overflow: hidden;
  color: #FAF6EC;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 1;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4,16,26,0.50) 0%, rgba(4,16,26,0.20) 35%, rgba(4,16,26,0.75) 100%);
}
.hero__inner {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 11vh;
}
.hero__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(40px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  max-width: 16ch;
  text-transform: none;
}
.hero__rule {
  width: 64px; height: 2px;
  background: var(--signal);
  margin-bottom: 24px;
}
.hero__coords {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,246,236,0.85);
  display: flex; align-items: center; gap: 18px;
}
.hero__coords::after {
  content: ""; display: inline-block;
  width: 180px; height: 1px;
  background: rgba(250,246,236,0.45);
}
.hero__scroll {
  position: absolute;
  right: var(--pad-x); bottom: 36px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: rgba(250,246,236,0.75);
}

/* ===== Page hero (inner pages) ===== */
.page-hero {
  position: relative;
  height: 64vh; min-height: 420px;
  overflow: hidden;
  color: #FAF6EC;
}
.page-hero__media { position: absolute; inset: 0; z-index: 1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(4,16,26,0.55), rgba(4,16,26,0.70));
}
.page-hero__inner {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 56px;
}
.page-hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
}
.page-hero__eyebrow::before {
  content: ""; display: inline-block;
  width: 38px; height: 2px; background: var(--signal);
}
.page-hero__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ===== Section primitives ===== */
.section { padding: 110px 0; }
.section--tight { padding: 80px 0; }
.section--abyss { background: var(--abyss); color: #FAF6EC; }
.section--shell { background: var(--shell); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 34px; height: 2px; background: var(--signal);
}
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: rgba(250,246,236,0.85); }
.eyebrow--light::before { background: var(--signal); }

.section-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}

/* ===== 3-Card grid ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; gap: 22px; }
}
.card {
  position: relative;
  display: block;
  background: var(--shell);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
  min-height: 460px;
  transition: transform .35s ease;
}
.card:hover { transform: translateY(-4px); }
.card__media {
  position: absolute; inset: 0; z-index: 1;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.card:hover .card__media img { transform: scale(1.05); }
.card__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(4,16,26,0.10) 0%, rgba(4,16,26,0.78) 100%);
}
.card__body {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px;
  color: #FAF6EC;
}
.card__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.card__eyebrow::before {
  content: ""; display: inline-block; width: 28px; height: 2px; background: var(--signal);
}
.card__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(250,246,236,0.85);
  margin: 0 0 20px;
  max-width: 36ch;
}
.card__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #FAF6EC;
  display: inline-flex; align-items: center; gap: 10px;
}
.card__cta::after {
  content: "→"; transition: transform .25s;
}
.card:hover .card__cta::after { transform: translateX(6px); }

/* ===== Long-form text (inner pages) ===== */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose p {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--ink);
  margin: 0 0 26px;
}
.prose p:last-child { margin-bottom: 0; }

/* ===== Stats strip ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 80px 0;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr; gap: 30px; }
}
.stat__value {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  color: var(--signal);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.stat__label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(250,246,236,0.75);
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
.contact-info p {
  font-size: 16px; line-height: 1.7; margin: 0 0 16px;
}
.contact-info .label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 4px;
}
.contact-info .value { font-size: 16.5px; color: var(--ink); }
.contact-info a { color: var(--tide); border-bottom: 1px solid var(--line); }
.contact-info a:hover { color: var(--tide-deep); }

/* ===== Form ===== */
.form { display: grid; gap: 18px; }
.form__field { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--mist);
}
.form__input, .form__textarea {
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line-strong);
  padding: 10px 0;
  outline: none;
  transition: border-color .2s;
}
.form__textarea { resize: vertical; min-height: 110px; }
.form__input:focus, .form__textarea:focus {
  border-color: var(--tide);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  background: var(--ink); color: #FAF6EC;
  padding: 16px 28px;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--tide-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
}
.btn--ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-1px); }

/* ===== Footer ===== */
.footer {
  background: var(--abyss);
  color: rgba(250,246,236,0.78);
  padding: 90px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer__col-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(250,246,236,0.45);
  margin-bottom: 22px;
}
.footer__brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #FAF6EC;
  margin-bottom: 14px;
}
.footer__brand img { height: 36px; width: auto; }
.footer__tag {
  font-size: 14.5px; line-height: 1.65;
  max-width: 28ch;
  color: rgba(250,246,236,0.7);
}
.footer__col a {
  display: block;
  padding: 5px 0;
  color: rgba(250,246,236,0.78);
  transition: color .2s;
}
.footer__col a:hover { color: var(--signal); }
.footer__contact p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.55; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(250,246,236,0.45);
}
@media (max-width: 560px) {
  .footer__bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ===== Utilities & reveal animation ===== */
.center { text-align: center; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
