/* ————————————————————————————————————————————————
   Humanistics — style.css
   Apple-white, image-led, warm bronze accent.
   Type: SF system stack + Instrument Serif italic accents.
   ———————————————————————————————————————————————— */

:root {
  --bg: #fbfbfd;
  --surface: #f5f5f7;
  --ink: #1d1d1f;
  --ink-soft: #55555a;
  --ink-faint: #6e6e73;
  --gold: #8a6a3f;
  --gold-soft: #b08d57;
  --hairline: rgba(0, 0, 0, 0.08);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body { overflow-x: clip; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(176, 141, 87, 0.28); }

img { display: block; max-width: 100%; }

/* ——— Accessibility helpers ——— */

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ——— Navigation ——— */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(251, 251, 253, 0.85);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* ——— Buttons & links ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.45);
}
.btn:active { transform: translateY(0); }

.btn-nav { padding: 8px 18px; font-size: 0.875rem; }

.btn-large { padding: 18px 38px; font-size: 1.1875rem; }

.text-link {
  color: var(--gold);
  font-weight: 500;
  text-decoration: none;
  font-size: 1.0625rem;
  transition: opacity 0.25s var(--ease);
}
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ——— Typography ——— */

h1, h2 {
  font-weight: 640;
  letter-spacing: -0.021em;
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: clamp(2.875rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }

h1 em, h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.05em;
  line-height: 1;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.lede {
  font-size: clamp(1.1875rem, 2.1vw, 1.625rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin-top: 1.75rem;
  text-wrap: balance;
}

.copy {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink-faint);
  max-width: 44em;
  margin: 1.5rem auto 0;
  text-wrap: pretty;
}

/* ——— Sections ——— */

.section { padding-top: clamp(110px, 16vh, 190px); }

.section-text {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* ——— Media ——— */

.media {
  overflow: hidden;
  background: linear-gradient(165deg, #f3f1ed, #e9e5de);
  margin-top: clamp(56px, 8vh, 96px);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-contained {
  max-width: min(1440px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 70px -38px rgba(29, 29, 31, 0.35);
}

/* ——— Steps (Look. Show. Build. Share.) ——— */

.steps {
  max-width: 1120px;
  margin: clamp(56px, 8vh, 84px) auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: left;
}

.step {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}

.step h3 {
  font-size: 1.3125rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* ——— Overlay features — full-screen image, copy over top, offset left ——— */

.feature-overlay {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
}

.feature-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(165deg, #f3f1ed, #e9e5de);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ambient video loops — layered over the stills, fade in when playing */
.feature-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.feature-media video.is-playing { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .feature-media video { display: none; }
}

.feature-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(251, 251, 253, 0.96) 0%,
    rgba(251, 251, 253, 0.84) 30%,
    rgba(251, 251, 253, 0.42) 54%,
    rgba(251, 251, 253, 0) 72%
  );
  pointer-events: none;
}

.feature-copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 150px 24px 130px clamp(24px, 7vw, 110px);
  text-align: left;
}

.feature-copy h1 { font-size: clamp(2.75rem, 5.2vw, 4.75rem); }
.feature-copy h2 { font-size: clamp(2.25rem, 4.2vw, 3.6rem); }

.feature-copy .copy {
  margin: 1.5rem 0 0;
  max-width: 36em;
  color: var(--ink-soft);
}

.feature-copy .cta-row { justify-content: flex-start; }

.feature-closing { margin-top: clamp(110px, 16vh, 190px); }

/* ——— Footer ——— */

.footer { border-top: 1px solid var(--hairline); }

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.footer-mark { font-weight: 600; color: var(--ink); font-size: 0.875rem; }

.footer-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--gold);
}

/* ——— Reveal motion ——— */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal[data-d="1"] { transition-delay: 0.1s; }
.reveal[data-d="2"] { transition-delay: 0.2s; }
.reveal[data-d="3"] { transition-delay: 0.3s; }
.reveal[data-d="4"] { transition-delay: 0.4s; }

.reveal-img {
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.reveal-img img {
  transform: scale(1.05);
  transition: transform 1.6s var(--ease);
}
.reveal-img.in img { transform: scale(1); }

.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img, .reveal-img img {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ——— Responsive ——— */

.br-wide { display: inline; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 700px) {
  .feature-overlay { align-items: flex-end; }
  .feature-overlay::after {
    background: linear-gradient(
      0deg,
      rgba(251, 251, 253, 0.96) 0%,
      rgba(251, 251, 253, 0.82) 32%,
      rgba(251, 251, 253, 0.25) 62%,
      rgba(251, 251, 253, 0) 78%
    );
  }
  .feature-copy { padding: 120px 24px 64px; }

  /* Mobile display type — tighter, no oversized wraps */
  .feature-copy h1 { font-size: clamp(2.25rem, 10.5vw, 2.875rem); }
  .feature-copy h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .feature-copy .lede { font-size: 1.125rem; }

  /* Art direction: keep each image's subject in the portrait crop */
  .img-hero { object-position: 65% center; }
  .img-fog { object-position: 55% 42%; }
  .img-horizon { object-position: 62% center; }
}

@media (max-width: 640px) {
  .br-wide { display: none; }
  .media-contained {
    max-width: calc(100% - 32px);
    border-radius: 20px;
  }
  .cta-row { gap: 18px; }
  .btn { padding: 13px 24px; font-size: 1rem; }
  .btn-nav { padding: 8px 16px; font-size: 0.8125rem; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
}
