/* ============================================================
   Anand Sarath — Portfolio
   Design language: cinematic editing suite / film reel.
   Sections are ordered:  nav · hero · about · experience · work · contact
   ------------------------------------------------------------
   TOKENS — change the whole look from here.
   ============================================================ */
:root {
  /* Palette */
  --ink:        #0E1116;   /* page background (ink navy)      */
  --charcoal:   #1B1F26;   /* card / surface                  */
  --charcoal-2: #232833;   /* raised surface / hover          */
  --sand:       #E8DFC9;   /* primary text (warm sand)        */
  --sand-dim:   #a39d8c;   /* muted text                      */
  --white:      #F5F1E8;   /* highlight text (warm white)     */
  --brass:      #C9A25D;   /* accent (muted brass/gold)       */
  --brass-soft: rgba(201, 162, 93, 0.14);

  /* Type */
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  /* Rhythm */
  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 11vw, 9rem);
  --radius: 4px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ------------------------------------------------------------
   Reset / base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* offset anchor jumps so the fixed nav doesn't cover headings */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.075rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1; }

/* Accessible focus — visible brass ring for keyboard users */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 200;
  padding: 0.55rem 1rem;
  background: var(--brass);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ------------------------------------------------------------
   Reusable atoms
   ------------------------------------------------------------ */
.section { padding-block: var(--section-y); }

.section__wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* The timecode / counter detail — the recurring "video" motif */
.timecode {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--brass);
}

/* Section label: timecode + name + hairline */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-label .timecode { flex: none; }
.section-label__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 118%;
  font-size: clamp(0.95rem, 0.9rem + 0.5vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--brass) 0%, transparent 100%);
  opacity: 0.5;
}

/* Buttons */
.btn {
  --pad-y: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: var(--pad-y) 1.7rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn__icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--brass); color: var(--ink); }
.btn--primary:hover { background: var(--white); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--sand);
  border-color: rgba(201, 162, 93, 0.5);
}
.btn--ghost:hover { border-color: var(--brass); color: var(--white); background: var(--brass-soft); }

/* Decorative film-grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   Film-strip divider — the signature perforated edge.
   Two rows of "punched holes" over a charcoal band.
   ------------------------------------------------------------ */
.filmstrip {
  --hole: 16px;
  --gap: 12px;
  height: 44px;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 9px;
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0,
    var(--ink) var(--hole),
    transparent var(--hole),
    transparent calc(var(--hole) + var(--gap))
  );
  background-position: center;
}
.filmstrip::before { top: 8px; }
.filmstrip::after  { bottom: 8px; }
.filmstrip--tight { height: 30px; }
.filmstrip--tight::before { top: 6px; height: 7px; }
.filmstrip--tight::after  { bottom: 6px; height: 7px; }

/* ============================================================
   1. NAV
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* condensed / frosted state once the page is scrolled (toggled in JS) */
.nav.is-scrolled {
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(201, 162, 93, 0.18);
}
.nav__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 115%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 1rem;
  color: var(--white);
}
.nav__brand-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-dim);
  margin-top: 0.15rem;
}

.nav__links { display: flex; gap: 1.9rem; align-items: center; }
.nav__link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-dim);
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--sand); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--white); }

/* Mobile hamburger — hidden on desktop */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: transparent;
  border: 1px solid rgba(201, 162, 93, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span {
  height: 2px;
  width: 100%;
  background: var(--sand);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   2. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 3rem;
  max-width: var(--maxw);
  margin-inline: auto;
  overflow: hidden;
}
/* Cinematic radial vignette */
.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(201, 162, 93, 0.10), transparent 55%),
    radial-gradient(100% 100% at 85% 100%, rgba(30, 40, 60, 0.55), transparent 60%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 100%; }

/* Text (left) + circular portrait (right) — collapses to a single column on mobile */
.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.hero__text { max-width: 44rem; min-width: 0; }

.hero__photo { justify-self: end; }
.hero__photo-frame {
  position: relative;
  display: block;
  width: clamp(160px, 20vw, 300px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(160deg, var(--charcoal-2), #14171d);
  border: 2px solid var(--brass);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 8px rgba(201, 162, 93, 0.08);
}
.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.6rem;
}

.hero__title {
  font-family: var(--font-display);
  /* Client: "make the name font narrow not that bold" —
     lighter weight + condensed width axis, tracking tightened. */
  font-weight: 500;
  font-stretch: 90%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(3.6rem, 9vw, 7.5rem);
  line-height: 0.86;
  color: var(--white);
}
.hero__title-line { display: block; }
.hero__title-line:last-child { color: var(--brass); }

.hero__role {
  margin: 1.6rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 0.7rem + 0.5vw, 1rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sand);
}
.hero__intro {
  margin: 1.1rem 0 0;
  max-width: 40ch;
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--sand-dim);
}
.hero__actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Scroll cue anchored bottom-left */
.hero__scroll {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--sand-dim);
}
.hero__scroll-line {
  width: 54px;
  height: 1px;
  background: var(--brass);
  transform-origin: left;
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleX(0.4); opacity: 0.5; }
  50%      { transform: scaleX(1);   opacity: 1; }
}

/* ============================================================
   3. ABOUT — editorial block
   ============================================================ */
.about__body { max-width: 58rem; text-align: left; }
.about__lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 105%;
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.7rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
  text-wrap: balance;
}
/* brass edge on the leading paragraph */
.about__lead {
  padding-left: clamp(1rem, 3vw, 1.8rem);
  border-left: 2px solid var(--brass);
}
.about__text {
  margin: 1.8rem 0 0;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--sand);
  max-width: 100%;
}
.about__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand-dim);
}
.about__meta-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
/* Quiet credential stamp + inline toolkit — caption-weight mono */
.about__creds {
  margin: 2.4rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--sand-dim);
}
.about__creds::before {
  content: "◆";
  color: var(--brass);
  margin-right: 0.55rem;
  font-size: 0.7em;
  vertical-align: 0.12em;
}
.about__tools {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(163, 157, 140, 0.7);
}

/* ============================================================
   4. EXPERIENCE — timeline
   ============================================================ */
.timeline { position: relative; }
/* the running vertical line */
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, var(--brass), rgba(201, 162, 93, 0.15));
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.4rem 0 1.9rem 2.6rem;
}
.timeline__item:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
/* node marker */
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.85rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--brass);
  box-shadow: 0 0 0 4px var(--ink);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.timeline__item:hover::before { background: var(--brass); transform: scale(1.15); }

.timeline__years {
  font-size: 0.86rem;
  padding-top: 0.2rem;
  white-space: nowrap;
}
.timeline__role {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem);
  color: var(--white);
  letter-spacing: 0.005em;
}
.timeline__org { margin: 0.5rem 0 0; color: var(--sand); font-weight: 500; }
.timeline__loc {
  margin: 0.2rem 0 0;
  color: var(--sand-dim);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

/* Per-role background accent — a small, duotone, low-opacity thumbnail
   anchored to the right of each role and faded left toward the copy, so the
   text stays the focal point. Identical treatment across all four = a system,
   not four random photos. Image set per-item via inline background-image. */
.timeline__content { position: relative; isolation: isolate; }
.timeline__accent {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(260px, 48%);
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  filter: grayscale(100%) contrast(1.05) brightness(0.95);
  opacity: 0.16;
  pointer-events: none;
  /* melt the left edge into the page so it sits behind, not over, the text */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 62%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 62%);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}
.timeline__item:hover .timeline__accent {
  opacity: 0.26;
  filter: grayscale(100%) contrast(1.08) brightness(1.08);
}

/* ============================================================
   5. FEATURED WORK — the reel
   ============================================================ */
.featured { padding-block: 0; }
.featured .section__wrap { padding-block: var(--section-y); }

.reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}

.reel-card {
  position: relative;
  display: block;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.reel-card__frame {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--white);
  background: rgba(14, 17, 22, 0.72);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  backdrop-filter: blur(2px);
}
.reel-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--charcoal-2);
  overflow: hidden;
}
.reel-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}
/* play glyph */
.reel-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(14, 17, 22, 0.55);
  border: 1px solid rgba(232, 223, 201, 0.5);
  backdrop-filter: blur(2px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.reel-card__play::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 0; height: 0;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--sand);
  transform: translateX(2px);
  transition: border-color 0.3s var(--ease);
}
/* "scrub" progress bar that animates on hover/focus */
.reel-card__scrub {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
  z-index: 2;
}
.reel-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
}
.reel-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--sand);
  transition: color 0.3s var(--ease);
}
.reel-card__cue { flex: none; font-size: 0.72rem; opacity: 0.85; }

/* Hover / focus = "scrub preview": scale, brass border, playhead runs */
.reel-card:hover,
.reel-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}
.reel-card:hover .reel-card__thumb img,
.reel-card:focus-visible .reel-card__thumb img { transform: scale(1.05); filter: saturate(1.05) contrast(1.05); }
.reel-card:hover .reel-card__scrub,
.reel-card:focus-visible .reel-card__scrub { transform: scaleX(1); }
.reel-card:hover .reel-card__play,
.reel-card:focus-visible .reel-card__play { background: var(--brass); border-color: var(--brass); transform: scale(1.06); }
.reel-card:hover .reel-card__play::before,
.reel-card:focus-visible .reel-card__play::before { border-left-color: var(--ink); }
.reel-card:hover .reel-card__title,
.reel-card:focus-visible .reel-card__title { color: var(--white); }

/* ============================================================
   5a. AI CONTENT — vertical Shorts.
   Reuses .reel-card wholesale; only the thumb aspect flips to
   9:16 portrait. The centred play glyph + scrub bar carry over.
   ============================================================ */
.reel--shorts .reel-card__thumb { aspect-ratio: 9 / 16; }

/* ============================================================
   5b. REAL ESTATE PHOTOGRAPHY — still-frame galleries
   Shares the card DNA of the reel but reads as "stills":
   taller 4:5 frame, aperture accent, framing crop-marks,
   no play glyph or scrub bar.
   ============================================================ */
.photo-grid {
  display: grid;
  /* auto-fit reflows to however many cards exist — no fixed column count
     to keep in sync as projects are added or removed. */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.photo-card {
  position: relative;
  display: block;
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease);
}
.photo-card__tag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--white);
  background: rgba(14, 17, 22, 0.72);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  backdrop-filter: blur(2px);
}

/* The "still" — a 4:5 photographic frame (portrait, unlike 16:9 video) */
.photo-card__still {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  /* Gradient shows before the photo loads / if it's missing */
  background:
    radial-gradient(120% 90% at 30% 15%, rgba(201, 162, 93, 0.10), transparent 55%),
    linear-gradient(160deg, var(--charcoal-2), #14171d);
}
/* Cover photo — fills the 4:5 frame beneath the overlays */
.photo-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transition: transform 0.6s var(--ease), filter 0.35s var(--ease);
}
/* Scrim — darkens the top (tag) and centre (aperture) so overlays stay legible */
.photo-card__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, rgba(14, 17, 22, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, rgba(14, 17, 22, 0.38) 0%, rgba(14, 17, 22, 0.05) 45%, rgba(14, 17, 22, 0.5) 100%);
}
/* Framing crop-marks in opposite corners — a photographer's detail */
.photo-card__still::before,
.photo-card__still::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(201, 162, 93, 0.55);
  transition: border-color 0.35s var(--ease);
}
.photo-card__still::before { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.photo-card__still::after  { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* Aperture ring accent (replaces the video play glyph), sits above the photo */
.photo-card__lens {
  position: relative;
  z-index: 2;
  color: var(--sand);
  opacity: 0.85;
  transition: color 0.35s var(--ease), transform 0.6s var(--ease), opacity 0.35s var(--ease);
}
.photo-card__lens svg { width: 54px; height: 54px; display: block; }

.photo-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 1.15rem;
}
.photo-card__info { display: flex; flex-direction: column; gap: 0.28rem; }
.photo-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 100%;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--sand);
  transition: color 0.3s var(--ease);
}
.photo-card__sub { font-size: 0.7rem; color: var(--sand-dim); letter-spacing: 0.08em; }
.photo-card__cue { flex: none; font-size: 0.72rem; opacity: 0.85; }

/* Hover / focus — mirrors the reel's lift + brass border, minus the scrub.
   The aperture ring rotates + warms to brass, crop-marks brighten. */
.photo-card:hover,
.photo-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}
.photo-card:hover .photo-card__img,
.photo-card:focus-visible .photo-card__img { transform: scale(1.05); filter: saturate(1.03) contrast(1.05); }
.photo-card:hover .photo-card__lens,
.photo-card:focus-visible .photo-card__lens { color: var(--brass); transform: rotate(60deg); opacity: 1; }
.photo-card:hover .photo-card__still::before,
.photo-card:focus-visible .photo-card__still::before,
.photo-card:hover .photo-card__still::after,
.photo-card:focus-visible .photo-card__still::after { border-color: var(--brass); }
.photo-card:hover .photo-card__title,
.photo-card:focus-visible .photo-card__title { color: var(--white); }

/* ============================================================
   6. CONTACT
   ============================================================ */
/* Full-bleed atmospheric backdrop for the footer.
   Layering, all inside .contact's own stacking context:
     base gradient   -> graceful fallback shown if footer.jpeg fails to load
     ::before        -> the image, duotone-filtered toward navy/brass
     ::after         -> navy scrim so sand/brass text stays legible on top
     film-strip + .section__wrap -> normal children, painted above the layers */
.contact {
  position: relative;
  isolation: isolate;
  padding-block: 0;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ink), #0a0c10);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* NOTE: extension is .jpeg (not .jpg) — must match the asset exactly */
  background: url("assets/footer.jpeg") center / cover no-repeat;
  /* duotone-lean: strip colour, nudge warm (brass), dim for legibility */
  filter: grayscale(100%) sepia(0.18) contrast(1.05) brightness(0.5);
}
.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(14, 17, 22, 0.88) 0%,
    rgba(21, 27, 39, 0.80) 45%,
    rgba(10, 12, 16, 0.93) 100%);
}
.contact .section__wrap { position: relative; padding-block: var(--section-y); }
.contact__line {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(2rem, 1.2rem + 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
  max-width: 16ch;
  text-wrap: balance;
}
.contact__actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 3.2rem;
}
.social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(201, 162, 93, 0.28);
  border-radius: var(--radius);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--sand);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social__link svg { width: 20px; height: 20px; }
.social__link:hover {
  color: var(--white);
  border-color: var(--brass);
  background: var(--brass-soft);
  transform: translateY(-2px);
}

.contact__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.contact__copy { font-size: 0.8rem; color: var(--sand-dim); letter-spacing: 0.04em; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
}
.lightbox[hidden] { display: none; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 11, 0.92);
  backdrop-filter: blur(6px);
  animation: fade 0.3s var(--ease);
}
.lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1000px, 100%);
  animation: pop 0.35s var(--ease);
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.lightbox__title { color: var(--brass); }
.lightbox__close {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(201, 162, 93, 0.4);
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.lightbox__close:hover { color: var(--white); border-color: var(--brass); background: var(--brass-soft); }
.lightbox__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(201, 162, 93, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
}
.lightbox__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/* Portrait variant — vertical Shorts (9:16). Width is derived from the
   available viewport height so the tall frame never overflows. */
.lightbox--portrait .lightbox__dialog {
  width: min(420px, calc((100svh - 8rem) * 9 / 16));
}
.lightbox--portrait .lightbox__frame { aspect-ratio: 9 / 16; }

/* Photo variant — a single contained image (not cropped) plus a
   Drive CTA below, instead of a fixed-aspect video frame. */
.lightbox--photo .lightbox__dialog { width: min(880px, 100%); }
.lightbox__dialog--photo { display: flex; flex-direction: column; }
.lightbox__dialog--photo .lightbox__bar,
.lightbox__dialog--photo .lightbox__frame--photo { width: 100%; }
.lightbox__frame--photo {
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}
.lightbox__frame--photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(70svh, 780px);
  object-fit: contain;
  border-radius: calc(var(--radius) - 4px);
}
.lightbox__drive-btn {
  margin-top: 0.9rem;
  align-self: center;
  text-decoration: none;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ============================================================
   SCROLL-REVEAL — elements start hidden, JS adds .is-visible
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
/* stagger cards within the reel */
.reel .reveal:nth-child(2) { transition-delay: 0.06s; }
.reel .reveal:nth-child(3) { transition-delay: 0.12s; }
.reel .reveal:nth-child(4) { transition-delay: 0.18s; }
.reel .reveal:nth-child(5) { transition-delay: 0.24s; }
.reel .reveal:nth-child(6) { transition-delay: 0.30s; }
.photo-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.photo-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.photo-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .reel { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 72px; }

  /* Collapse nav into a slide-down panel */
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: rgba(14, 17, 22, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 93, 0.18);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__link {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.95rem;
  }
  .nav__link::after { display: none; }
  .nav.is-scrolled,
  .nav:has(.nav__links.is-open) {
    background: rgba(14, 17, 22, 0.82);
    backdrop-filter: blur(10px);
  }

  /* Timeline stacks */
  .timeline__item { grid-template-columns: 1fr; gap: 0.5rem; }
  .timeline__years { padding-top: 0; }

  /* Hero: photo drops below the text column */
  .hero__grid { grid-template-columns: 1fr; }
  .hero__text { max-width: 100%; }
  .hero__photo { justify-self: start; }
  .hero__photo-frame { width: clamp(140px, 42vw, 220px); }
}

@media (max-width: 540px) {
  .reel { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .hero { min-height: 92svh; }
  .contact__foot { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   REDUCED MOTION — honour the user's OS preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Ensure revealed content is always shown even without observer motion */
  .reveal { opacity: 1; transform: none; }
}
