/* =====================================================================
   GREEN DESERT PRODUCTIONS
   Brand system: Noto Serif + Manrope · #121412 / #e3e3df · the brand's own
   location photography. Minimal, single-scroll, editorial.
   ===================================================================== */

:root {
  --bg:        #121412;
  --bg-2:      #171a17;
  --ink:       #e3e3df;
  --ink-dim:   rgba(227, 227, 223, 0.66);
  --ink-faint: rgba(227, 227, 223, 0.52);
  --hair:      rgba(227, 227, 223, 0.13);

  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1280px;
  --pad: clamp(22px, 5vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
img { display: block; max-width: 100%; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 1px; }

.ms {
  font-family: "Material Symbols Outlined";
  font-weight: normal; font-style: normal; line-height: 1;
  font-size: 1.05em; vertical-align: middle;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 2px;
  font-size: 13px; font-weight: 600; transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

.label {
  display: block; font-family: var(--sans);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(227,227,223,0.62); margin-bottom: clamp(34px, 5vw, 54px);
}
.label--light { color: rgba(227,227,223,0.8); }
em { font-style: italic; }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  padding: 15px 26px; border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: background .45s var(--ease), color .45s var(--ease), transform .45s var(--ease);
}
.btn .ms { font-size: 17px; transition: transform .45s var(--ease); }
.btn:hover .ms { transform: translate(2px, -2px); }
.btn--light { background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #fff; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) clamp(46px, 7vw, 84px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url(assets/img/hero.webp);
  background-size: cover; background-position: center;
  transform: scale(1.06); animation: heroIn 2.6s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom, rgba(18,20,18,0.45) 0%, rgba(18,20,18,0.12) 34%, rgba(18,20,18,0.5) 70%, rgba(18,20,18,0.94) 100%),
    radial-gradient(120% 90% at 16% 90%, rgba(18,20,18,0.65), transparent 55%);
}
.hero__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero__eyebrow {
  font-size: clamp(13px, 1.2vw, 16px); font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: #fff; margin-bottom: clamp(32px, 4.5vw, 52px);
  opacity: 0; animation: rise 1s var(--ease) .25s forwards;
}
.hero__title {
  font-size: clamp(48px, 9.4vw, 138px); line-height: 0.97; letter-spacing: -0.025em;
  color: #fff; margin-bottom: 30px;
  opacity: 0; animation: rise 1.1s var(--ease) .4s forwards;
}
.hero__title em { font-style: italic; }
.hero__lede {
  font-size: clamp(16px, 1.9vw, 20px); line-height: 1.55; color: rgba(227,227,223,0.84);
  max-width: 540px; margin-bottom: 40px;
  opacity: 0; animation: rise 1.1s var(--ease) .55s forwards;
}
.hero .btn { opacity: 0; animation: rise 1.1s var(--ease) .7s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.scrollcue {
  position: absolute; z-index: 2; bottom: clamp(26px, 4vw, 40px); left: 50%; transform: translateX(-50%);
  width: 1px; height: 54px; overflow: hidden;
  background: linear-gradient(rgba(227,227,223,0.5), transparent);
}
.scrollcue::after { content: ""; position: absolute; top: 0; left: 0; width: 1px; height: 16px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-16px); } 70%,100% { transform: translateY(54px); } }

/* =====================================================================
   SECTION SHELL
   ===================================================================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(90px, 13vw, 180px) var(--pad); }

/* ---------- Overview ---------- */
.overview { text-align: left; }
.statement {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(27px, 4.2vw, 54px); line-height: 1.16; letter-spacing: -0.02em;
  color: var(--ink); max-width: 24ch; margin-bottom: clamp(56px, 8vw, 96px);
}
.facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: clamp(36px, 7vw, 96px);
  border-top: 1px solid var(--hair); padding-top: clamp(36px, 5vw, 52px);
}
.facts li { display: flex; flex-direction: column; gap: 8px; }
.facts__n { font-family: var(--serif); font-size: clamp(40px, 5.4vw, 70px); line-height: 1; color: var(--ink); }
.facts__l { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(227,227,223,0.62); }

/* =====================================================================
   NETWORK / PARTNERS INDEX
   ===================================================================== */
.partners { border-top: 1px solid var(--hair); }
.partner { border-bottom: 1px solid var(--hair); }

/* ---- clickable header row ---- */
.partner__head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left; color: var(--ink);
  display: grid; grid-template-columns: 52px 1.1fr 1.5fr 28px; align-items: center; gap: 24px;
  padding: clamp(26px, 3.6vw, 44px) 4px;
  transition: padding-left .55s var(--ease);
}
.partner__head:hover { padding-left: 16px; }
.partner__no { font-family: var(--serif); font-size: 14px; color: var(--ink-faint); }
.partner__name { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 46px); line-height: 1; letter-spacing: -0.01em; transition: color .4s var(--ease); }
.partner__head:hover .partner__name { color: #fff; }
.partner__terr { font-size: clamp(13px, 1.4vw, 15px); color: var(--ink-dim); }
.partner__toggle {
  justify-self: end; font-size: 24px; color: var(--ink-dim);
  transition: transform .5s var(--ease), color .4s var(--ease);
}
.partner__head[aria-expanded="true"] .partner__toggle { transform: rotate(135deg); color: var(--ink); }
.partner__head:hover .partner__toggle { color: var(--ink); }

/* ---- expandable work panel (grid-rows accordion) ---- */
.partner__work { overflow: hidden; max-height: 0; transition: max-height .6s var(--ease); }
.partner.is-open .partner__work { max-height: 640px; }
.work__inner {
  padding: 4px 4px clamp(30px, 4vw, 48px); opacity: 0;
  transition: opacity .5s var(--ease) .1s;
}
.partner.is-open .work__inner { opacity: 1; }
.work__meta { max-width: 780px; }

/* reel tile (placeholder — swap in a still + embed) */
.reel {
  position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(120% 140% at 30% 20%, rgba(227,227,223,0.09), transparent 60%),
    linear-gradient(150deg, #1c231d, #10140f 70%);
  border: 1px solid var(--hair); color: var(--ink);
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.reel:hover { transform: translateY(-3px); border-color: rgba(227,227,223,0.34); }
.reel__play { font-size: 46px; color: var(--ink); opacity: .9; }
.reel:hover .reel__play { opacity: 1; }
.reel__label {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-dim);
}
.reel--soon { cursor: default; }
.reel--soon:hover { transform: none; border-color: var(--hair); }

/* work metadata */
.work__meta { display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 2.5vw, 26px); }
.credits { display: flex; flex-direction: column; gap: 16px; }
.credits > div { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; }
.credits dt { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.credits dd { font-size: clamp(13px, 1.4vw, 15px); line-height: 1.5; color: var(--ink); }
.work__site {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-size: 13px; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-dim);
  transition: color .4s var(--ease);
}
.work__site .ms { font-size: 17px; transition: transform .45s var(--ease); }
.work__site:hover { color: var(--ink); }
.work__site:hover .ms { transform: translate(3px, -3px); }
.work__site--muted { color: var(--ink-faint); cursor: default; }

/* =====================================================================
   CLIENTS
   ===================================================================== */
.clientwall {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hair); border-bottom: none;
}
.clientwall li {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(40px, 6vw, 80px) 16px;
  font-family: var(--serif); font-size: clamp(19px, 2.4vw, 30px); color: var(--ink-dim);
  border-bottom: 1px solid var(--hair); border-right: 1px solid var(--hair);
  transition: color .5s var(--ease), background .5s var(--ease);
}
.clientwall li:nth-child(3n) { border-right: none; }
.clientwall li .x { font-family: var(--sans); font-weight: 300; margin: 0 .25em; color: var(--ink-faint); }
.clientwall li:hover { color: #fff; background: var(--bg-2); }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact {
  position: relative; min-height: 90svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(90px, 14vw, 190px) var(--pad);
  overflow: hidden;
}
.contact__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url(assets/img/contact.webp);
  background-size: cover; background-position: center;
}
.contact__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(18,20,18,0.82), rgba(18,20,18,0.68) 50%, rgba(18,20,18,0.92));
}
.contact__inner { position: relative; z-index: 2; max-width: var(--maxw); width: 100%; margin: 0 auto; }
.contact__mail {
  display: inline-block; font-family: var(--serif);
  font-size: clamp(22px, 4.4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: #fff;
  position: relative; padding-bottom: 12px; margin-bottom: clamp(44px, 6vw, 64px);
  overflow-wrap: anywhere;
}
.contact__mail::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--hair); transition: background .5s var(--ease); }
.contact__mail:hover::after { background: #fff; }
.contact__row {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--hair); padding-top: 32px;
}
.contact__person { display: flex; flex-direction: column; gap: 6px; }
.contact__role { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.contact__name { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); color: var(--ink); }
.contact__linkedin {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim);
  transition: color .4s var(--ease);
}
.contact__linkedin .ms { font-size: 17px; transition: transform .45s var(--ease); }
.contact__linkedin:hover { color: #fff; }
.contact__linkedin:hover .ms { transform: translate(3px, -3px); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 7vw, 80px) var(--pad) 44px; }
.footer__word { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); display: block; padding-bottom: clamp(34px, 5vw, 50px); border-bottom: 1px solid var(--hair); }
.footer__base {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 24px;
}
.footer__base span { font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }
.footer__totop { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); transition: color .4s var(--ease); }
.footer__totop:hover { color: var(--ink); }

/* =====================================================================
   REVEAL
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__bg, .hero__eyebrow, .hero__title, .hero__lede, .hero .btn { animation: none !important; opacity: 1 !important; transform: none !important; }
  .scrollcue::after { animation: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 900px) {
  .partner__head { grid-template-columns: 32px 1fr auto; gap: 4px 14px; align-items: center; }
  .partner__no { grid-row: 1; }
  .partner__name { grid-column: 2; grid-row: 1; }
  .partner__terr { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .partner__toggle { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .work__inner { grid-template-columns: 1fr; }
  .partner.is-open .partner__work { max-height: 1500px; }
  /* larger touch targets on mobile (>=44px) */
  .work__site, .contact__linkedin { padding: 12px 0; }
  .footer__totop { padding: 12px 4px; }
  .footer__base { row-gap: 4px; }
  .clientwall { grid-template-columns: repeat(2, 1fr); }
  .clientwall li:nth-child(3n) { border-right: 1px solid var(--hair); }
  .clientwall li:nth-child(2n) { border-right: none; }
}
@media (max-width: 540px) {
  .hero__eyebrow { letter-spacing: 0.2em; }
  /* stack credit label above value so values get full width */
  .credits > div { grid-template-columns: 1fr; gap: 5px; }
  .credits dt { color: var(--ink-faint); }
  .hero .btn { width: 100%; justify-content: center; }
  .facts { gap: 30px 40px; }
  .clientwall { grid-template-columns: 1fr; }
  .clientwall li { border-right: none !important; }
}

/* Short landscape phones — keep the hero within one screen */
@media (orientation: landscape) and (max-height: 500px) {
  .hero { padding-top: 68px; padding-bottom: 34px; }
  .hero__eyebrow { margin-bottom: 16px; }
  .hero__title { font-size: clamp(34px, 6vw, 56px); margin-bottom: 18px; }
  .hero__lede { margin-bottom: 22px; }
  .scrollcue { display: none; }
  .contact { min-height: auto; }
}
