/* Cordelia — design system
   Ground: warm near-black. Ink: aged ivory. One accent: candle amber.
   Type: Boska (display), Sentient (prose), General Sans (labels). */

@font-face { font-family: "Boska"; src: url("/assets/fonts/boska-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Boska"; src: url("/assets/fonts/boska-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("/assets/fonts/sentient-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("/assets/fonts/sentient-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ground: #0f0d0a;
  --ground-2: #14110d;
  --ivory: #ece5d8;
  --ivory-dim: rgba(236, 229, 216, 0.8);
  --ivory-faint: rgba(236, 229, 216, 0.45);
  --hairline: rgba(236, 229, 216, 0.16);
  --amber: #c9924b;
  --display: "Boska", "Times New Roman", serif;
  --prose: "Sentient", Georgia, serif;
  --label: "General Sans", "Helvetica Neue", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--prose);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- labels ---- */
.kicker {
  font-family: var(--label);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 2.25rem;
}

/* ---- nav ---- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.6rem var(--gutter);
  background: linear-gradient(rgba(15, 13, 10, 0.55), rgba(15, 13, 10, 0));
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
}
.nav.scrolled {
  padding: 1.05rem var(--gutter);
  background: rgba(15, 13, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(236, 229, 216, 0.08);
}
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-family: var(--label);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--ivory); }

/* ---- hero ---- */
.hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; padding: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(15, 13, 10, 0.25), rgba(15, 13, 10, 0) 30%),
    linear-gradient(105deg, rgba(15, 13, 10, 0.55), rgba(15, 13, 10, 0) 55%),
    linear-gradient(0deg, rgba(15, 13, 10, 0.94), rgba(15, 13, 10, 0.35) 45%, rgba(15, 13, 10, 0) 68%);
}
.hero-text {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(2.5rem, 9vh, 6.5rem);
  max-width: 60rem;
}
.hero-text .kicker { color: var(--ivory); margin-bottom: 1.5rem; text-shadow: 0 1px 14px rgba(15, 13, 10, 0.9); }
h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0;
}

/* ---- shared section rhythm ---- */
section { padding: 0 var(--gutter); }
h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 2rem;
}
.body { max-width: var(--measure); color: var(--ivory-dim); font-size: 1.0625rem; }

/* ---- statement ---- */
.statement { padding-top: clamp(6rem, 14vh, 11rem); padding-bottom: clamp(5rem, 12vh, 9rem); }
.lede {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.32;
  max-width: 56rem;
  margin: 0 0 2.5rem;
}
.lede.secondary { font-size: clamp(1.2rem, 2.1vw, 1.7rem); color: var(--ivory-dim); max-width: 44rem; }

/* ---- scenes ---- */
.scenes { padding-bottom: clamp(5rem, 12vh, 9rem); }
.scenes-head { max-width: 56rem; margin-bottom: 3.5rem; }
.scene-stage { position: relative; margin: 0 calc(-1 * var(--gutter)); aspect-ratio: 2752 / 1536; }
.scene-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.scene-stage[data-scene="day"] [data-scene-img="day"],
.scene-stage[data-scene="dusk"] [data-scene-img="dusk"],
.scene-stage[data-scene="night"] [data-scene-img="night"] { opacity: 1; }
.scene-tabs {
  position: absolute;
  left: 50%; bottom: 1.75rem;
  transform: translateX(-50%);
  display: flex; gap: 0.4rem;
  margin: 0;
  padding: 0.35rem;
  background: rgba(15, 13, 10, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}
.scene-tabs button {
  appearance: none;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-family: var(--label);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  cursor: pointer;
  transition: color 0.3s, background 0.3s;
}
.scene-tabs button:hover { color: var(--ivory); }
.scene-tabs button[aria-selected="true"] { background: rgba(236, 229, 216, 0.14); color: var(--ivory); }

/* ---- interlude ---- */
.interlude { padding: 0; }
.interlude img { width: 100%; height: min(92svh, 60rem); object-fit: cover; }
.caption {
  font-family: var(--label);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin: 1.1rem var(--gutter) 0;
}
figure { margin: 0; }
figure .caption { margin-left: 0; }

/* ---- services ---- */
.services { padding-top: clamp(6rem, 14vh, 11rem); padding-bottom: clamp(4rem, 9vh, 7rem); }
.svc-group {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.2fr);
  gap: 2rem 4rem;
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--hairline);
}
.svc-title { font-size: clamp(1.6rem, 2.6vw, 2.4rem); position: sticky; top: 6rem; align-self: start; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { padding: 1.9rem 0; }
.svc-list li + li { border-top: 1px solid var(--hairline); }
.svc-list h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  margin: 0 0 0.6rem;
}
.svc-list p { margin: 0; max-width: var(--measure); color: var(--ivory-dim); font-size: 1rem; }

/* ---- duo ---- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 4vw, 4rem);
  padding-top: clamp(3rem, 7vh, 5rem);
  padding-bottom: clamp(4rem, 9vh, 7rem);
}
.duo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---- scope ---- */
.scope { padding-top: clamp(3rem, 7vh, 5rem); padding-bottom: clamp(3rem, 7vh, 5rem); }
.scope p {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.4;
  max-width: 46rem;
  margin: 0 auto;
  text-align: center;
  color: var(--ivory-dim);
}

/* ---- contact ---- */
.contact {
  padding-top: clamp(5rem, 12vh, 9rem);
  padding-bottom: clamp(6rem, 14vh, 10rem);
  text-align: center;
}
.contact .kicker { margin-bottom: 1.75rem; }
.contact h2 { margin-bottom: 1.75rem; }
.contact .body { margin: 0 auto 2.75rem; }
.mail {
  font-family: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 0.4rem;
  transition: color 0.3s;
}
.mail:hover { color: var(--amber); }

/* ---- footer ---- */
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 2rem var(--gutter) 2.5rem;
  border-top: 1px solid var(--hairline);
  font-family: var(--label);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ---- subpages ---- */
.nav-links a[aria-current="page"] { color: var(--ivory); }
.page-head { padding-top: clamp(9rem, 20vh, 13rem); padding-bottom: clamp(3rem, 7vh, 5rem); }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  font-family: var(--label);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-faint);
  margin-top: 2rem;
}
.meta-row b { color: var(--ivory-dim); font-weight: 400; }
.project-narrative { padding-bottom: clamp(3.5rem, 8vh, 6rem); }
.project-narrative .body { max-width: 42rem; font-size: 1.125rem; }
.svc-teaser { padding-top: clamp(6rem, 14vh, 11rem); padding-bottom: clamp(4rem, 9vh, 7rem); }
.teaser-list { list-style: none; margin: 0; padding: 0; max-width: 56rem; }
.teaser-list li { border-top: 1px solid var(--hairline); padding: 2rem 0; display: grid; grid-template-columns: minmax(11rem, 1fr) 2fr; gap: 1rem 3rem; }
.teaser-list h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 0; }
.teaser-list p { margin: 0; color: var(--ivory-dim); max-width: var(--measure); }
.text-link {
  display: inline-block;
  font-family: var(--label);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 0.35rem;
  margin-top: 2.5rem;
  transition: color 0.3s;
}
.text-link:hover { color: var(--amber); }
.contact-lines {
  font-family: var(--label);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--ivory-dim);
  line-height: 2.2;
}
@media (max-width: 44rem) {
  .teaser-list li { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(1.2rem); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scene-img { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- small screens ---- */
@media (max-width: 44rem) {
  .nav { padding: 1.2rem var(--gutter); }
  .wordmark { font-size: 0.95rem; letter-spacing: 0.2em; }
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.6rem; letter-spacing: 0.1em; }
  .scene-stage { aspect-ratio: auto; height: 68svh; }
  .svc-group { grid-template-columns: 1fr; gap: 0.5rem; }
  .svc-title { position: static; }
  .duo { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
