/* =====================================================================
   PORTFOLIO — Filmmaker / Videographer
   Theme: near-black base + gold (#D5A43D) + maroon (#800000)
   ---------------------------------------------------------------------
   Palette and most spacing live in :root below — tweak there first.
   ===================================================================== */

:root {
  /* Core theme colours (the two you gave + a black that matches them) */
  --black:      #0a0a0a;   /* page background            */
  --black-2:    #111010;   /* elevated / alt sections    */
  --panel:      #1a1714;   /* cards & panels             */
  --panel-2:    #221d18;   /* card hover                 */
  --gold:       #D5A43D;   /* PRIMARY accent             */
  --gold-lite:  #ecc873;   /* brighter gold (hover/glow) */
  --maroon:     #800000;   /* SECONDARY accent           */
  --maroon-lite:#a81f1f;   /* brighter maroon            */

  /* Text */
  --text:       #f3ede1;   /* warm off-white             */
  --muted:      #b3a993;   /* secondary text             */
  --faint:      #7d7565;   /* captions / meta            */

  /* Lines & effects */
  --line:       rgba(213, 164, 61, 0.16);
  --line-soft:  rgba(255, 255, 255, 0.06);
  --gold-glow:  rgba(213, 164, 61, 0.35);

  /* Map */
  --country:      #2a2621;         /* unvisited land     */
  --country-line: #0a0a0a;         /* borders between    */

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);

  /* Type */
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-lite); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }

/* ------------------------------------------------------------------ */
/* Header / nav                                                        */
/* ------------------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--text);
  font-weight: 600;
}
.brand span { color: var(--gold); font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  transition: width .28s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--black) !important; }

/* hamburger */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span::before { transform: translate(-50%, -8px); }
.nav-toggle span::after  { transform: translate(-50%, 6px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); }

/* ------------------------------------------------------------------ */
/* Section scaffolding                                                 */
/* ------------------------------------------------------------------ */
.section { padding: 7rem 0; position: relative; }
.section.alt { background: var(--black-2); }

.section-head { max-width: 640px; margin-bottom: 3.25rem; }
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow::before { content: "— "; color: var(--maroon-lite); }
.section-title { font-size: clamp(2rem, 4.5vw, 3.1rem); }
.section-title em { color: var(--gold); font-style: italic; }
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 1rem; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 14px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold  { background: linear-gradient(135deg, var(--gold), #b98a2c); color: #1a1204; font-weight: 600; }
.btn-gold:hover { color: #1a1204; box-shadow: 0 10px 30px -8px var(--gold-glow); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ------------------------------------------------------------------ */
/* HERO + WORK                                                         */
/* ------------------------------------------------------------------ */
.work { padding-top: 0; }

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 0 90px;
  position: relative;
  text-align: center;
  align-items: center;
}
.hero::before {
  /* cinematic radial wash of the two brand colours */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 20% 15%, rgba(128, 0, 0, 0.28), transparent 60%),
    radial-gradient(55% 55% at 85% 80%, rgba(213, 164, 61, 0.16), transparent 60%),
    var(--black);
}
.hero::after {
  /* subtle film grain / vignette */
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 120% at 50% 40%, transparent 55%, rgba(0,0,0,.7));
  pointer-events: none;
}
.hero-title {
  font-size: clamp(3.2rem, 12vw, 8.5rem);
  letter-spacing: .01em;
  margin: .4rem 0;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 130%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub { color: var(--muted); max-width: 620px; font-size: 1.15rem; margin: 1rem auto 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--faint);
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 42px; margin: 12px auto 0;
  background: linear-gradient(var(--gold), transparent);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue { 0%,100%{opacity:.3; transform:scaleY(.6);} 50%{opacity:1; transform:scaleY(1);} }

/* Showreel feature */
.showreel { margin: 0 auto 4.5rem; }
.reel {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(128,0,0,.55), rgba(10,10,10,.2)),
    linear-gradient(315deg, rgba(213,164,61,.35), transparent 60%),
    #17130f;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow);
}
.reel-label { position: absolute; top: 20px; left: 22px; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.reel-title { position: absolute; bottom: 20px; left: 24px; font-family: var(--serif); font-size: clamp(1.3rem,3vw,2rem); }

/* Play button (shared) */
.play {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10,10,10,.35);
  border: 2px solid var(--gold);
  transition: transform .25s ease, background .25s ease;
}
.reel:hover .play, .work-card:hover .play { transform: scale(1.08); background: var(--gold); }
.play::before {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-left: 20px solid var(--gold);
  border-top: 12px solid transparent; border-bottom: 12px solid transparent;
  transition: border-color .25s ease;
}
.reel:hover .play::before, .work-card:hover .play::before { border-left-color: var(--black); }

/* Work grid */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.6rem;
}
.work-card {
  text-align: left; padding: 0; border: 1px solid var(--line-soft);
  background: var(--panel); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; color: inherit; font: inherit;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--shadow); }
.wc-media {
  position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a1414, #12100d);
}
.wc-media.g1 { background: linear-gradient(135deg, rgba(128,0,0,.6), #17110c); }
.wc-media.g2 { background: linear-gradient(135deg, rgba(213,164,61,.45), #17110c); }
.wc-media.g3 { background: linear-gradient(135deg, #2b1a0a, rgba(128,0,0,.5)); }
.wc-media .play { width: 62px; height: 62px; }
.wc-media .play::before { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; }
.wc-body { padding: 1.15rem 1.25rem 1.4rem; }
.wc-cat { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.wc-title { display: block; font-family: var(--serif); font-size: 1.32rem; margin-top: .35rem; }
.wc-meta { color: var(--faint); font-size: .85rem; margin-top: .3rem; }

/* ------------------------------------------------------------------ */
/* ORIGIN                                                              */
/* ------------------------------------------------------------------ */
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.origin-copy p { color: var(--muted); margin: 0 0 1.2rem; }
.origin-copy p .drop { float: left; font-family: var(--serif); font-size: 3.4rem; line-height: .8; color: var(--gold); padding: 6px 12px 0 0; }
.origin-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--maroon-lite);
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.origin-link:hover { color: var(--gold-lite); text-decoration-color: var(--gold-lite); }
.pull { border-left: 3px solid var(--maroon); padding-left: 1.2rem; margin: 2rem 0; font-family: var(--serif); font-size: 1.35rem; color: var(--text); font-style: italic; }

/* timeline */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--maroon)); }
.tl-item { position: relative; padding-bottom: 2rem; }
.tl-item::before {
  content: ""; position: absolute; left: -31px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 4px rgba(213,164,61,.15);
}
.tl-year { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tl-title { font-family: var(--serif); font-size: 1.25rem; margin: .2rem 0 .35rem; }
.tl-text { color: var(--muted); font-size: .96rem; }

/* ------------------------------------------------------------------ */
/* CHARACTER                                                           */
/* ------------------------------------------------------------------ */
.manifesto { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.35; max-width: 900px; }
.manifesto em { color: var(--gold); font-style: italic; }

.trait-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.trait {
  padding: 2rem 1.6rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.trait:hover { transform: translateY(-5px); border-color: var(--line); background: var(--panel-2); }
.trait-num { font-family: var(--serif); font-size: 1.1rem; color: var(--maroon-lite); }
.trait h3 { font-size: 1.3rem; margin: .6rem 0 .6rem; }
.trait h3 span { color: var(--gold); }
.trait p { color: var(--muted); font-size: .95rem; margin: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.fact { }
.fact b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.fact span { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* ------------------------------------------------------------------ */
/* TRAVELS / MAP                                                       */
/* ------------------------------------------------------------------ */
.travel-stats { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 2.5rem; }
.tstat {
  flex: 1 1 160px; padding: 1.4rem 1.5rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line-soft);
  border-top: 2px solid var(--gold);
}
.tstat b { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--text); line-height: 1; }
.tstat span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 90% at 50% 20%, rgba(128,0,0,.12), transparent 70%),
    var(--black-2);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
#world-map { width: 100%; height: auto; }

/* Country fills — fill is inherited, so this cascades into <g> groups too */
#world-map path { fill: var(--country); stroke: var(--country-line); stroke-width: .3; transition: fill .2s ease; }
/* Visited: set fill on the id element; children inherit it */
#world-map .visited, #world-map .visited path { fill: var(--gold); cursor: pointer; }
#world-map .visited:hover, #world-map .visited:hover path,
#world-map .hl, #world-map .hl path { fill: var(--maroon-lite); }

.map-legend { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.4rem; font-size: .84rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: .5rem; }
.swatch { width: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.swatch.v { background: var(--gold); }
.swatch.n { background: var(--country); }
.map-hint { color: var(--faint); font-size: .82rem; margin-top: .4rem; }

/* Visited country chips */
.country-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.chip {
  font-size: .82rem; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
  display: inline-flex; gap: .55rem; align-items: center;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.chip:hover { border-color: var(--gold); color: var(--text); background: var(--panel); }
.chip b { color: var(--gold); font-weight: 600; }

/* Tooltip */
.map-tooltip {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--black); border: 1px solid var(--gold);
  border-radius: 10px; padding: 8px 14px;
  font-size: .85rem; color: var(--text);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.9);
  transform: translate(-50%, -130%);
  white-space: nowrap;
}
.map-tooltip b { color: var(--gold); }
.map-tooltip small { color: var(--muted); display: block; font-size: .74rem; letter-spacing: .06em; }

/* ------------------------------------------------------------------ */
/* FOOTER / CONTACT                                                    */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--black-2); border-top: 1px solid var(--line); padding: 6rem 0 2.5rem; }
.footer-cta { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.footer-cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.footer-cta h2 em { color: var(--gold); font-style: italic; }
.footer-cta p { color: var(--muted); margin: 1rem 0 2rem; }

.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: center; border-top: 1px solid var(--line-soft); padding-top: 2rem; }
.footer-contact a { color: var(--text); font-family: var(--serif); font-size: 1.4rem; }
.footer-contact a:hover { color: var(--gold); }
.socials { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.socials a { color: var(--muted); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.socials a:hover { color: var(--gold); }
.footer-fine { margin-top: 2.5rem; color: var(--faint); font-size: .76rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }
.footer-fine a { color: var(--faint); text-decoration: underline; }

/* ------------------------------------------------------------------ */
/* Video modal                                                         */
/* ------------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.86); backdrop-filter: blur(4px); }
.modal-inner { position: relative; width: min(100% - 2.5rem, 960px); }
.modal-video { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.modal-video iframe, .modal-video video { width: 100%; height: 100%; border: 0; }
.modal-close {
  position: absolute; top: -46px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--gold);
  font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { background: var(--gold); color: var(--black); }
.modal-fallback {
  display: block; text-align: center; margin-top: 14px;
  font-size: .8rem; color: var(--faint); text-decoration: underline;
}
.modal-fallback:hover { color: var(--gold); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 860px) {
  .origin-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10,10,10,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.75rem;
    transform: translateY(-120%); transition: transform .35s ease;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: .95rem; }
  .nav-cta { display: inline-block; margin-top: .5rem; }
}
@media (max-width: 560px) {
  .section { padding: 5rem 0; }
  .hero { min-height: 92vh; }
  .facts { gap: 1rem 1.6rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}
