/* ==========================================================================
   Dusty & Beulah — main stylesheet
   Black full-screen reels, then clean white
   sections, full-bleed imagery with big centred type, light grey footer.
   ========================================================================== */

:root {
  --white: #ffffff;
  --black: #000000;
  --ink: #111111;
  --muted: #6e6e6e;
  --grey: #f2f2f2;
  --line: rgba(0, 0, 0, 0.12);
  --line-light: rgba(255, 255, 255, 0.22);
  --accent: #C4532F;            /* single brand accent */

  --font: 'Outfit', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1180px;
  --gutter: 50px;
  --section-pad: 140px;
  --header-h: 72px;

  --ease: cubic-bezier(0.65, 0, 0.25, 1);
  --dur: 0.9s;
}
@media (max-width: 860px) {
  :root { --gutter: 22px; --section-pad: 90px; --header-h: 60px; }
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--black); color: var(--white); padding: 8px 16px; z-index: 1000; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 920px; }
section { scroll-margin-top: var(--header-h); }
#about, #contact { scroll-margin-top: 0; }

.kicker { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-bottom: 22px; }
.kicker--light { color: rgba(255,255,255,0.85); }

.text-link {
  display: inline-block; font-size: 1.15rem; font-weight: 500;
  padding-bottom: 3px; border-bottom: 1.5px solid currentColor;
  transition: color 0.2s, border-color 0.2s;
}
.text-link:hover { color: var(--accent); }
.text-link--light { color: var(--white); }

/* Logo ------------------------------------------------------------------- */
.logo { font-weight: 700; font-size: 1.45rem; letter-spacing: -0.03em; white-space: nowrap; line-height: 1; }
.logo .amp { color: var(--accent); font-weight: 400; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 0 var(--gutter);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.site-header.is-solid { color: var(--ink); background: rgba(255,255,255,0.96); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.site-header nav { display: flex; gap: 34px; }
.site-header nav a { font-size: 0.95rem; font-weight: 400; opacity: 0.9; transition: opacity 0.2s, color 0.2s; }
.site-header nav a:hover { opacity: 1; color: var(--accent); }
.burger { display: none; }

/* Mobile: burger + full-screen menu -------------------------------------- */
@media (max-width: 760px) {
  .logo { font-size: 1.2rem; position: relative; z-index: 2; }
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px; padding: 0 10px;
    position: relative; z-index: 2;
  }
  .burger span { display: block; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease); }
  .site-header.is-open { color: var(--white); background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
  .site-header.is-open .burger span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .site-header.is-open .burger span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

  .site-header nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--black); color: var(--white);
    opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  .site-header.is-open nav { opacity: 1; visibility: visible; transition: opacity 0.35s ease; }
  .site-header nav a {
    font-size: clamp(2.6rem, 12vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; opacity: 1;
    transform: translateY(14px); transition: transform 0.5s var(--ease), color 0.2s;
  }
  .site-header.is-open nav a { transform: none; }
  .site-header.is-open nav a:nth-child(2) { transition-delay: 0.04s; }
  .site-header.is-open nav a:nth-child(3) { transition-delay: 0.08s; }
  .site-header.is-open nav a:nth-child(4) { transition-delay: 0.12s; }
  html.menu-open { overflow: hidden; }
}

/* First-visit hint, under the header ------------------------------------ */
.hint {
  position: fixed; top: calc(var(--header-h) + 14px); left: 50%; z-index: 99;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 2 * var(--gutter));
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.95); color: var(--ink);
  font-size: 0.9rem; font-weight: 500; line-height: 1.35;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -10px); opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s var(--ease);
  pointer-events: none;
}
.hint[hidden] { display: none; }
.hint.is-on { opacity: 1; transform: translate(-50%, 0); }
.hint svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.hint-narrow { display: none; }
@media (max-width: 900px) { .hint-wide { display: none; } .hint-narrow { display: inline; } }

/* REELS — pinned full-screen stage, one reel per screen of scroll -------- */
.reels { position: relative; height: calc(var(--n, 10) * var(--vh, 1vh) * 100); background: var(--black); color: var(--white); scroll-margin-top: 0; }
.reels-pin { position: sticky; top: 0; height: calc(var(--vh, 1vh) * 100); overflow: hidden; }

.reels-strip { position: absolute; inset: 0; transform: translate3d(0, calc(var(--i, 0) * -100%), 0); transition: transform var(--dur) var(--ease); }
.reels-slide { position: relative; height: 100%; background: var(--black) center / cover no-repeat; overflow: hidden; }
.reels-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.reels-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.5) 0, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 72%, rgba(0,0,0,0.5) 100%),
    radial-gradient(ellipse 70% 40% at 50% 50%, rgba(0,0,0,0.32), rgba(0,0,0,0) 100%);
}
.reels-copy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: min(calc(100% - 2 * var(--gutter) - 220px), 1100px); text-align: center; }
.reels-cats { height: 1.6em; overflow: hidden; font-size: 0.95rem; margin-bottom: 8px; }
.reels-cats ul { transform: translateY(calc(var(--i, 0) * -1.6em)); transition: transform var(--dur) var(--ease); }
.reels-cats li { height: 1.6em; line-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }

.reels-titles { --th: 1.15em; font-size: clamp(2.4rem, 4.8vw, 4.4rem); height: var(--th); overflow: hidden; }
.reels-titles ul { transform: translateY(calc(var(--i, 0) * var(--th) * -1)); transition: transform var(--dur) var(--ease); }
.reels-titles li { height: var(--th); display: flex; align-items: center; justify-content: center; }
.reels-titles button { font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--white); }
.reels-titles button span { font-weight: 300; }

.reels-play {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 22px 11px 18px; border: 1.5px solid rgba(255,255,255,0.7); border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.reels-play svg { width: 13px; height: 13px; fill: currentColor; }
.reels-play:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.reels-nav { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3; font-size: 0.9rem; }
.reels-nav li + li { margin-top: 10px; }
.reels-nav button {
  display: flex; align-items: center; gap: 0;
  color: var(--white); opacity: 0.5; white-space: nowrap;
  transition: opacity 0.3s, gap 0.35s var(--ease), font-weight 0.2s;
}
.reels-nav button::before {
  content: ""; width: 0; height: 1.5px; background: var(--white);
  transition: width 0.35s var(--ease);
}
.reels-nav button:hover { opacity: 0.85; }
.reels-nav li.is-active button { opacity: 1; font-weight: 600; gap: 10px; }
.reels-nav li.is-active button::before { width: 18px; }

.reels-count { position: absolute; right: var(--gutter); bottom: 32px; z-index: 3; font-size: 0.9rem; font-variant-numeric: tabular-nums; opacity: 0.85; }
.reels-down { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 3; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--white); animation: bob 2.2s ease-in-out infinite; }
.reels-down svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

.reels-static { position: relative; padding: calc(var(--header-h) + 40px) var(--gutter) 40px; }
.reels-static li { padding: 6px 0; }

@media (max-width: 900px) {
  .reels-nav { display: none; }
  .reels-copy { width: calc(100% - 2 * var(--gutter)); }
  .reels-titles { --th: 2.2em; font-size: clamp(2.1rem, 9.5vw, 3.4rem); }
  .reels-titles button { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .reels-titles button span { display: block; }
}

/* INTRO ------------------------------------------------------------------ */
.intro { padding: var(--section-pad) 0; text-align: center; }
.intro-lede { font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.45; font-weight: 400; letter-spacing: -0.01em; }
.intro-links { margin-top: 44px; display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }

/* SERVICES — image mosaic with stacked words ----------------------------- */
.services { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--black); color: var(--white); }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) saturate(0.9); transform: scale(1.02); transition: filter 0.6s; }
.scroll-down {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--white); animation: bob 2.2s ease-in-out infinite;
}
.scroll-down svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.scroll-down:hover { color: var(--accent); }
.scroll-down--dark { color: var(--ink); }
.intro, .service-list, .about { position: relative; }
.mosaic-copy { position: relative; z-index: 1; text-align: center; padding: 80px var(--gutter); }
.stack { font-size: clamp(3rem, 9vw, 8.4rem); line-height: 0.98; letter-spacing: -0.045em; }
.stack span { display: block; }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); } }

.service-list { padding: 40px 0 var(--section-pad); }
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 32px; align-items: baseline;
  padding: 46px 28px; border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease;
}
.row:hover { background: var(--grey); }
.row-num { font-size: 0.95rem; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.row-title { font-size: clamp(1.7rem, 3.2vw, 2.7rem); letter-spacing: -0.03em; }
.row-text { color: var(--muted); font-size: 1.05rem; max-width: 460px; }
@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 10px; padding: 34px 18px; }
}

/* ABOUT ------------------------------------------------------------------ */
.about { padding: calc(var(--header-h) + 36px) 0 110px; background: var(--grey); text-align: center; }
.about .kicker { margin-bottom: 16px; }
.statement { font-size: clamp(1.9rem, 3.6vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; }
.about-text { margin: 24px auto 0; max-width: 680px; font-size: 1.15rem; color: var(--muted); }
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stats > div { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column-reverse; }
.stats dd { font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.stats dt { margin-top: 10px; font-size: 0.95rem; color: var(--muted); }
.pullquote { margin: 56px auto 0; padding: 0 var(--gutter); max-width: 900px; }
.pullquote p { font-size: clamp(1.4rem, 2.6vw, 2.1rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.3; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr; margin-top: 40px; } }

/* CONTACT — dark photo with big white text ------------------------------- */
.contact { position: relative; overflow: hidden; background: var(--black); color: var(--white); padding: calc(var(--header-h) + 36px) 0 100px; }
.contact-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(14px) brightness(0.38); }
.contact-inner { position: relative; z-index: 1; }
.contact-block + .contact-block { margin-top: 34px; }
.contact-block h2, .contact-block h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.contact-block p { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.25; }
.contact-block a { border-bottom: 1.5px solid rgba(255,255,255,0.5); transition: border-color 0.2s, color 0.2s; word-break: break-word; }
.contact-block a:hover { border-color: var(--white); }
.contact .text-link { margin-top: 44px; }

/* FOOTER ----------------------------------------------------------------- */
.site-footer { background: var(--grey); padding: 60px 0 50px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 26px; }
.logo--footer { font-size: 1.6rem; }
.footer-meta { font-size: 0.95rem; line-height: 1.7; }
.footer-meta a:hover { color: var(--accent); }
.footer-small { font-size: 0.85rem; color: var(--muted); }

/* Reveal on scroll (only once JS has marked the page) -------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* PLAYER overlay --------------------------------------------------------- */
html.player-open { overflow: hidden; }
.player { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-rows: auto 1fr auto; background: #050505; color: var(--white); animation: fadeIn 0.3s ease; }
.player[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.player-top, .player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gutter); }
.player-caption { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.player-num { font-size: 1rem; font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }
.player-cat { font-size: 0.85rem; opacity: 0.6; }
.player-title { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.7rem); letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { font-weight: 300; }
.player-sub:not(:empty)::before { content: " / "; }
.player-stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; }
.player-stage video { width: 100%; height: 100%; object-fit: contain; background: var(--black); }
.player-stage iframe { width: min(100%, calc((var(--vh, 1vh) * 100 - 180px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; background: var(--black); }
.player-stage [hidden] { display: none; }
.player-skip, .player-tools { display: flex; align-items: center; gap: 8px; }
.player-count { font-size: 0.9rem; opacity: 0.7; padding: 0 6px; font-variant-numeric: tabular-nums; }

.ctrl { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-light); transition: border-color 0.2s, color 0.2s, background 0.2s; }
.ctrl:hover { border-color: var(--white); background: var(--white); color: var(--black); }
.ctrl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .player-top, .player-bar { padding: 12px var(--gutter); } }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reels-down, .scroll-down { transform: translateX(-50%); }
  .js [data-reveal] { opacity: 1; transform: none; }
}
