/*
Theme Name:        Buzz Creative
Theme URI:         https://example.com/buzz-creative
Author:            Buzz Creative
Author URI:        https://example.com
Description:       One-page creative studio theme. Full-bleed hero with a masked headline, sticky stacking services, a snap portfolio slider and an Instagram marquee.
Version:           1.0.0
Requires at least: 6.0
Tested up to:      6.8
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       buzz-creative
Tags:              one-page, portfolio, custom-colors, full-width-template
*/

/* ============================================================
   Buzz Creative — Section 01 / Hero
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --ink: #101010;
  --acid: #d8f53f;          /* nav pill */
  --olive: #838f3a;         /* button */
  --olive-dark: #6f7b2c;
  --rust: #9a4a22;          /* active nav link */
  --paper: #ffffff;
  --shell: #edecea;         /* light section background */
  --ink-soft: #5b5b58;      /* body copy on light */

  --nav-h: 60px;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1240px;

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

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* form controls don't inherit type by default */
input, button, textarea, select { font-family: inherit; }

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

section { scroll-margin-top: calc(var(--nav-h) + 34px); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ------------------------------------------------------------
   Nav — floating pill
   ------------------------------------------------------------ */

.nav-wrap {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: clamp(12px, 1.8vw, 22px) var(--gutter);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 clamp(16px, 2.2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--acid);
  border-radius: 999px;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.nav.is-stuck {
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.65);
}

.nav__logo {
  font-size: clamp(15px, 1.35vw, 19px);
  font-weight: 800;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: clamp(13px, 1.05vw, 14.5px);
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.nav__links a.is-active { color: var(--rust); }

/* burger */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s ease;
}

.nav[data-open="true"] .nav__toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:last-child  { transform: translateY(-3px) rotate(-45deg); }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: #17181a;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* portrait source: hold the face in frame as the frame goes wide */
  object-position: 62% 30%;
  /* pull the cyan sky / white shirt back so the headline can sit on top */
  filter: saturate(0.62) contrast(1.06) brightness(0.84);
  transform: scale(1.04);
  animation: slowZoom 18s var(--ease) forwards;
}

/* readability: dark top for the pill, dark bottom-left under the type */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8, 10, 12, 0.5) 0%, rgba(8, 10, 12, 0) 30%),
    linear-gradient(to top, rgba(8, 10, 12, 0.72) 0%, rgba(8, 10, 12, 0) 62%),
    linear-gradient(to right, rgba(8, 10, 12, 0.66) 0%, rgba(8, 10, 12, 0.1) 52%, rgba(8, 10, 12, 0) 72%),
    radial-gradient(120% 90% at 20% 95%, rgba(8, 10, 12, 0.55) 0%, rgba(8, 10, 12, 0) 60%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding:
    calc(var(--nav-h) + clamp(46px, 8vh, 96px))
    var(--gutter)
    clamp(28px, 5.5vh, 62px);
  display: flex;
  flex-direction: column;
}

/* --- headline --- */

.hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 8.4vw, 7.1rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.032em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

/* serif-italic accent words, shared by every display heading */
.hero__title em,
.intro__title em,
.work__title em,
.service__title em,
.quote__text em,
.quote__cite em,
.lead__title em,
.cta__title em {
  font-family: "Instrument Serif", "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.07em;
  letter-spacing: -0.005em;
}

/* ---- line-by-line mask reveal ----
   Add `lines` to any heading whose lines are split into
   <span class="line"><span>…</span></span>, plus `watch` (or `reveal`) so the
   observer flags it. Each .line is a window; its inner span starts below and
   rises to zero, so the tops of the letters surface first. The bottom padding
   is descender room — overflow clips at the padding edge — and the negative
   margin takes it back out of the layout. */
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.lines .line > span {
  display: block;
  transform: translateY(105%);
}

.lines.is-in .line > span {
  transform: translateY(0);
  transition: transform 1s var(--ease);
}

.lines.is-in .line:nth-child(1) > span { transition-delay: 0.05s; }
.lines.is-in .line:nth-child(2) > span { transition-delay: 0.14s; }
.lines.is-in .line:nth-child(3) > span { transition-delay: 0.23s; }
.lines.is-in .line:nth-child(4) > span { transition-delay: 0.32s; }
.lines.is-in .line:nth-child(5) > span { transition-delay: 0.41s; }

/* --- supporting copy --- */

.hero__meta {
  margin: clamp(20px, 3vh, 34px) 0 0;
  max-width: 30ch;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.86);
}

.hero__meta .dash { opacity: 0.7; }

.hero__foot {
  margin-top: auto;
  padding-top: clamp(32px, 6vh, 70px);
  display: flex;
  justify-content: flex-end;
}

/* --- button --- */

.btn {
  --btn-bg: var(--olive);          /* resting fill */
  --btn-fill: var(--acid);         /* fill that wipes up on hover */
  --btn-ink: var(--paper);
  --btn-ink-hover: var(--ink);

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 176px;
  padding: 15px 34px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  overflow: hidden;
  transition: transform 0.4s var(--ease), background 0.4s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--btn-fill);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}

.btn > span { position: relative; z-index: 1; transition: color 0.3s ease; }

.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateY(0); }
.btn:hover > span { color: var(--btn-ink-hover); }

/* acid pill for dark sections */
.btn--acid {
  --btn-bg: var(--acid);
  --btn-fill: var(--ink);
  --btn-ink: var(--ink);
  --btn-ink-hover: var(--paper);
}

/* ------------------------------------------------------------
   02 / Intro — light block + acid marquee
   ------------------------------------------------------------ */

.intro {
  --band-h: clamp(48px, 5.4vw, 78px);
  --hang: clamp(16px, 2.6vw, 38px);     /* how far the photo drops past the band */

  position: relative;
  background: var(--shell);
  color: var(--ink);
  padding-block: clamp(58px, 8.5vw, 132px) var(--hang);
  overflow: hidden;                     /* keeps the marquee off the h-scrollbar */
}

.intro__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 33vw, 430px);
  gap: clamp(28px, 4.5vw, 76px);
  align-items: start;
}

.eyebrow {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.intro__title {
  margin: 0;
  max-width: 27ch;
  font-size: clamp(1.85rem, 4.35vw, 3.9rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.intro__body {
  margin: clamp(22px, 3vw, 38px) 0 0;
  max-width: 54ch;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 400;
  line-height: 1.72;
  color: var(--ink-soft);
}

/* photo hangs over the marquee band */
.intro__figure {
  position: relative;
  z-index: 2;
  margin: 0 0 calc(-1 * (var(--band-h) + var(--hang)));
  height: clamp(360px, 47vw, 620px);
  background: #d9d8d5;
  overflow: hidden;
}

.intro__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* --- marquee band --- */

.marquee {
  position: relative;
  z-index: 1;
  height: var(--band-h);
  display: flex;
  align-items: center;
  background: var(--acid);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 26px);
  width: max-content;
  padding-left: clamp(14px, 1.6vw, 26px);
  white-space: nowrap;
  animation: marquee 26s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-size: clamp(14.5px, 1.7vw, 24px);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.marquee__star {
  font-family: "Segoe UI Symbol", "Apple Symbols", sans-serif;
  font-size: clamp(11px, 1.15vw, 16px);
  line-height: 1;
  color: var(--ink);
  transform: translateY(-1px);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ------------------------------------------------------------
   03 / Portfolio — full-bleed slider
   ------------------------------------------------------------ */

.work {
  position: relative;
  background: var(--bg);
  color: var(--paper);
  padding-block: clamp(54px, 7.5vw, 118px);
  overflow: hidden;
}

.work__head {
  max-width: var(--max);
  margin: 0 auto clamp(26px, 3.6vw, 50px);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px clamp(24px, 4vw, 60px);
  flex-wrap: wrap;
}

.work__title {
  margin: 0;
  font-size: clamp(2rem, 5.6vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.032em;
}

.work__slider { position: relative; }

.work__track {
  /* first card lines up with the heading, then the row runs off the right edge.
     50% resolves against this element's width, so a scrollbar can't skew it. */
  --track-pad: max(var(--gutter), calc(50% - var(--max) / 2 + var(--gutter)));

  display: flex;
  gap: clamp(9px, 1.05vw, 15px);
  padding-left: var(--track-pad);
  padding-right: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--track-pad);
  scrollbar-width: none;
}

.work__track::-webkit-scrollbar { display: none; }

.work__card {
  flex: 0 0 auto;
  width: clamp(215px, 24.5vw, 320px);
  scroll-snap-align: start;
}

.work__card > a {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #17181a;
}

.work__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 42%);   /* per-card, set inline in the markup */
  transition: transform 0.8s var(--ease), filter 0.5s ease;
}

/* scrim so the caption stays legible on light artwork */
.work__card > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 8, 0.72) 0%, rgba(6, 7, 8, 0.12) 38%, rgba(6, 7, 8, 0) 62%);
  transition: opacity 0.5s ease;
}

.work__card:hover img { transform: scale(1.055); }
.work__card:hover > a::after { opacity: 0.82; }

.work__caption {
  position: absolute;
  z-index: 2;
  left: clamp(14px, 1.5vw, 22px);
  right: clamp(14px, 1.5vw, 22px);
  bottom: clamp(14px, 1.5vw, 20px);
}

.work__caption h3 {
  margin: 0;
  font-size: clamp(14.5px, 1.25vw, 17px);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--paper);
}

.work__caption p {
  margin: 3px 0 0;
  font-size: clamp(11.5px, 0.95vw, 13px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.62);
}

/* --- slider arrows --- */

.work__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: clamp(42px, 3.9vw, 56px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--acid);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: opacity 0.35s ease, visibility 0.35s, transform 0.35s var(--ease), background 0.3s ease;
}

.work__nav svg {
  width: 42%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work__nav--prev {
  left: clamp(10px, 1.4vw, 22px);
  rotate: 180deg;
}

.work__nav--next { right: clamp(10px, 1.4vw, 22px); }

.work__nav:hover { background: var(--paper); }

.work__nav:disabled {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ------------------------------------------------------------
   04 / Services — rows that pin and stack like cards
   ------------------------------------------------------------ */

.services {
  --stack-top: calc(var(--nav-h) + 30px);   /* where the first row pins, clear of the nav */
  --stack-step: 22px;                        /* sliver of each row left visible underneath */

  background: #050506;
  color: var(--paper);
  padding-block: clamp(50px, 6.8vw, 100px) clamp(58px, 8vw, 118px);
}

.services__label {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(16px, 2.2vw, 28px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

/* the <li> is full-bleed so its rule spans the viewport;
   .service__row holds the content to the container width */
/* Each row pins a step lower than the one before, so the next row slides up
   and covers it — leaving only a --stack-step sliver of the row underneath.
   Later rows paint over earlier ones, which is what builds the stack. */
.service {
  position: sticky;
  top: calc(var(--stack-top) + var(--i, 0) * var(--stack-step));
  z-index: calc(var(--i, 0) + 1);

  /* must be opaque to cover the row below; each step lifts a hair lighter
     so the stacked edges stay readable against near-black */
  background: hsl(240, 6%, calc(2.4% + var(--i, 0) * 0.75%));
}

.service::before,
.service:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.17);
}

.service::before { top: 0; }
.service:last-child::after { bottom: 0; }


.service__row {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  min-height: clamp(88px, 10.2vw, 154px);
  padding: clamp(16px, 2vw, 26px) var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service__title {
  /* symmetric inline padding keeps the title optically centred
     while clearing the absolutely-placed button */
  margin: 0 0 -0.16em;
  padding-inline: clamp(0px, 13vw, 195px);
  text-align: center;
  font-size: clamp(1.75rem, 5.3vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.032em;

  /* the mask the text rises out of. overflow clips at the padding edge, so
     the 0.16em of bottom padding is descender room for the italic g / y —
     the negative margin above cancels it out of the layout. */
  overflow: hidden;
  padding-bottom: 0.16em;
}

.service__title > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
}

.service.is-in .service__title > span { transform: translateY(0); }

.service .btn {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);

  /* fades in just behind the title. re-declares the base .btn transitions,
     which this longer selector would otherwise override away. */
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.3s, transform 0.4s var(--ease),
    background 0.4s ease;
}

.service.is-in .btn { opacity: 1; }

/* keep the lift without losing the vertical centring */
.service .btn:hover { transform: translateY(calc(-50% - 2px)); }

/* ------------------------------------------------------------
   05 / Testimonial — full-bleed portrait + pull quote
   ------------------------------------------------------------ */

.quote {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  overflow: hidden;
  background: #17181a;
  color: var(--paper);
}

.quote__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.quote__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* wide frame + portrait source = a tight band; hold it on eyes-to-chin */
  object-position: 50% 45%;
  filter: saturate(0.3) contrast(1.05) brightness(0.88);
}

.quote__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 10, 12, 0.78) 0%, rgba(8, 10, 12, 0) 60%),
    linear-gradient(to right, rgba(8, 10, 12, 0.62) 0%, rgba(8, 10, 12, 0.08) 55%, rgba(8, 10, 12, 0) 75%),
    linear-gradient(to bottom, rgba(8, 10, 12, 0.3) 0%, rgba(8, 10, 12, 0) 26%);
}

.quote__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.quote__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 7vh, 82px) var(--gutter) clamp(30px, 6vh, 66px);
  display: flex;
  flex-direction: column;
}

.quote__top {
  display: flex;
  justify-content: flex-end;
}

.quote__body { margin-top: auto; }

.quote .eyebrow { color: rgba(255, 255, 255, 0.82); }

.quote__text {
  /* no max-width: the lines are split by hand, so a width cap would only
     cause a second wrap inside a mask that expects one line */
  margin: 0;
  font-size: clamp(1.5rem, 3.95vw, 3.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.32);
}

.quote__cite {
  margin: clamp(20px, 3vh, 34px) 0 0;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------------------------------------
   06 / Digital download — cover mockup over a white panel
   ------------------------------------------------------------ */

.lead {
  --overlap: clamp(12px, 2vw, 28px);      /* cover over the panel, side by side */
  --overlap-y: clamp(20px, 6vw, 40px);    /* cover over the panel, once stacked */

  background: var(--shell);
  color: var(--ink);
  padding-block: clamp(56px, 8vw, 126px);
}

.lead__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- cover mockup --- */

.lead__cover {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: clamp(150px, 22vw, 296px);
  aspect-ratio: 5 / 7;
  margin: 0 calc(-1 * var(--overlap)) 0 0;
  border-radius: clamp(9px, 1vw, 15px);
  overflow: hidden;
  background: #1a1a1c;
  box-shadow:
    0 34px 60px -26px rgba(0, 0, 0, 0.5),
    0 10px 24px -14px rgba(0, 0, 0, 0.35);
}

.lead__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 32%;
}

.lead__coverLabel {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(30px, 5vw, 52px) clamp(12px, 1.6vw, 20px) clamp(12px, 1.5vw, 20px);
  text-align: center;
  color: var(--paper);
  background: linear-gradient(to top, rgba(6, 7, 8, 0.82) 0%, rgba(6, 7, 8, 0) 100%);
}

.lead__coverLabel span {
  display: block;
  margin-bottom: 0.35em;
  font-size: clamp(7.5px, 0.72vw, 10px);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.lead__coverLabel strong {
  display: block;
  font-size: clamp(13px, 1.5vw, 22px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

/* --- white panel --- */

.lead__panel {
  flex: 0 1 clamp(300px, 52vw, 660px);
  background: var(--paper);
  padding: clamp(30px, 4.4vw, 66px) clamp(24px, 3.4vw, 56px);
  /* clear the overlapping cover */
  padding-left: calc(var(--overlap) + clamp(26px, 3.6vw, 60px));
}

.lead__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.lead__body {
  margin: clamp(16px, 2.2vw, 26px) 0 0;
  max-width: 52ch;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  line-height: 1.72;
  color: var(--ink-soft);
}

.lead__panel .btn { margin-top: clamp(22px, 3vw, 38px); }

/* ------------------------------------------------------------
   07 / Closing CTA — white panel on a dark full-bleed image
   ------------------------------------------------------------ */

.cta {
  --badge: clamp(50px, 6.4vw, 92px);

  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(70px, 12vh, 130px) var(--gutter);
  overflow: hidden;
  background: #101011;
}

.cta__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  /* pushed well down: this is a backdrop, the panel is the subject */
  filter: saturate(0.35) contrast(1.08) brightness(0.52);
}

.cta__grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.14;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cta__panel {
  position: relative;
  width: min(100%, clamp(300px, 54vw, 680px));
  padding: clamp(38px, 5.2vw, 76px) clamp(26px, 4vw, 66px) clamp(34px, 4.6vw, 66px);
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

/* --- smiley badge, centred on the panel's top-right corner --- */

.cta__badge {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--badge);
  height: var(--badge);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acid);

  opacity: 0;
  transform: translate(34%, -34%) rotate(-14deg) scale(0.4);
  transition: transform 0.8s cubic-bezier(0.2, 1.4, 0.4, 1) 0.35s,
    opacity 0.5s ease 0.35s;
}

.cta__panel.is-in .cta__badge {
  opacity: 1;
  transform: translate(34%, -34%) rotate(-14deg) scale(1);
}

.cta__badge svg {
  width: 62%;
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
}

.cta__badge svg path { fill: none; }
.cta__badge svg ellipse { stroke: none; }

/* --- panel copy --- */

.cta__title {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 3.15rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.cta__body {
  margin: clamp(18px, 2.4vw, 30px) auto 0;
  max-width: 52ch;
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  line-height: 1.72;
  color: var(--ink-soft);
}

.cta__panel .btn { margin-top: clamp(24px, 3.2vw, 40px); }

/* ------------------------------------------------------------
   08 / Instagram — scrolling photo strip
   ------------------------------------------------------------ */

.social {
  background: var(--shell);
  color: var(--ink);
  padding-block: clamp(50px, 7.2vw, 108px);
  overflow: hidden;
}

.social__head {
  max-width: var(--max);
  margin: 0 auto clamp(28px, 4.2vw, 58px);
  padding: 0 var(--gutter);
  text-align: center;
}

.social__title {
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.social__handle {
  margin: clamp(6px, 0.9vw, 12px) 0 0;
  font-size: clamp(1.05rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.social__handle a {
  transition: color 0.3s ease;
}

.social__handle a:hover { color: var(--olive); }

.social__strip { overflow: hidden; }

.social__track {
  display: flex;
  gap: clamp(9px, 1.05vw, 15px);
  width: max-content;
  /* shares @keyframes marquee with the section-02 text band */
  animation: marquee 48s linear infinite;
}

.social__strip:hover .social__track { animation-play-state: paused; }

.social__track > li {
  flex: 0 0 auto;
  width: clamp(195px, 23vw, 330px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d9d8d5;
}

.social__track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 40%);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.footer {
  background: #070708;
  color: var(--paper);
  padding-block: clamp(50px, 7vw, 102px) clamp(26px, 3.2vw, 44px);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.9fr);
  gap: clamp(30px, 4.4vw, 82px);
}

.footer__head {
  margin: 0 0 clamp(14px, 1.8vw, 22px);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer__navGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(7px, 0.8vw, 11px) clamp(12px, 1.6vw, 26px);
}

.footer ul {
  display: grid;
  gap: clamp(7px, 0.8vw, 11px);
  align-content: start;
}

.footer li a {
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.25s ease;
}

.footer li a:hover { color: var(--acid); }

/* --- newsletter --- */

.footer__subHead {
  margin: 0 0 clamp(6px, 0.8vw, 10px);
  font-size: clamp(18px, 1.9vw, 27px);
  font-weight: 800;
  letter-spacing: -0.022em;
}

.footer__subText {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  color: rgba(255, 255, 255, 0.72);
}

.signup__label {
  display: block;
  margin-bottom: 9px;
  font-size: clamp(11.5px, 0.95vw, 13px);
  color: rgba(255, 255, 255, 0.7);
}

.signup__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 7px;
  background: transparent;
  color: var(--paper);
  font-size: clamp(13px, 1.05vw, 14.5px);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.signup__input::placeholder { color: rgba(255, 255, 255, 0.4); }

.signup__input:focus {
  outline: none;
  border-color: var(--acid);
  background: rgba(255, 255, 255, 0.04);
}

.signup__row {
  margin-top: clamp(14px, 1.8vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px clamp(18px, 2.4vw, 32px);
  flex-wrap: wrap;
}

.signup__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(11.5px, 0.95vw, 13px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.signup__check input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  accent-color: var(--acid);
  cursor: pointer;
}

.signup__btn {
  min-width: clamp(135px, 13vw, 180px);
  padding: 12px 26px;
  font-size: 13.5px;
}

.signup__status {
  margin: 12px 0 0;
  min-height: 1.3em;
  font-size: clamp(11.5px, 0.95vw, 13px);
  color: var(--acid);
}

/* --- wordmark --- */

.footer__wordmark {
  max-width: var(--max);
  margin: clamp(46px, 6.5vw, 92px) auto 0;
  padding: 0 var(--gutter);
  font-size: clamp(1.65rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.26);
}

/* ------------------------------------------------------------
   Reveal (fade-up) for non-masked elements
   ------------------------------------------------------------ */

.reveal:not(.hero__title) {
  opacity: 0;
  transform: translateY(18px);
}


/* longhands on purpose: the `transition` shorthand would reset transition-delay
   to 0s at a higher specificity than the per-element stagger rules below */
.reveal:not(.hero__title).is-in {
  opacity: 1;
  transform: none;
  transition-property: opacity, transform;
  transition-duration: 0.9s;
  transition-timing-function: var(--ease);
}

.hero__meta.is-in { transition-delay: 0.42s; }
.btn.is-in { transition-delay: 0.54s; }

.intro__copy > .reveal.is-in:nth-child(2) { transition-delay: 0.1s; }
.intro__copy > .reveal.is-in:nth-child(3) { transition-delay: 0.2s; }
.intro__figure.is-in { transition-delay: 0.14s; }

.work__head .btn.is-in { transition-delay: 0.12s; }

.quote__top .btn.is-in { transition-delay: 0.1s; }

.lead__body.is-in { transition-delay: 0.18s; }
.lead__panel .btn.is-in { transition-delay: 0.3s; }

.cta__body.is-in { transition-delay: 0.22s; }
.cta__panel .btn.is-in { transition-delay: 0.34s; }

.social__handle.is-in { transition-delay: 0.12s; }

.footer__inner > .reveal.is-in:nth-child(2) { transition-delay: 0.08s; }
.footer__inner > .reveal.is-in:nth-child(3) { transition-delay: 0.16s; }
.quote .eyebrow.is-in { transition-delay: 0.05s; }
.quote__cite.is-in { transition-delay: 0.55s; }   /* lands after the four lines */

@keyframes slowZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 860px) {
  :root { --nav-h: 54px; }

  .nav__toggle { display: block; }

  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 22px 18px;
    background: var(--acid);
    border-radius: 26px;
    box-shadow: 0 18px 45px -20px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s ease, transform 0.35s var(--ease), visibility 0.3s;
  }

  .nav[data-open="true"] .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__links a { font-size: 16px; padding: 8px 0; }

  /* tall viewport: the portrait fills vertically, so only X crops */
  .hero__media img { object-position: 64% 50%; }

  .hero__media::after {
    background:
      linear-gradient(to bottom, rgba(8, 10, 12, 0.55) 0%, rgba(8, 10, 12, 0) 28%),
      linear-gradient(to top, rgba(8, 10, 12, 0.82) 0%, rgba(8, 10, 12, 0.2) 60%, rgba(8, 10, 12, 0.05) 100%);
  }

  .hero__foot { justify-content: flex-start; }
  .btn { width: 100%; }

  .intro__inner { grid-template-columns: 1fr; }
  .intro__title { max-width: none; }
  .intro__figure { height: clamp(320px, 88vw, 470px); }

  .work__head { align-items: flex-end; }
  .work__head .btn { min-width: 150px; padding: 12px 26px; }

  /* shorter viewports: pin higher and overlap tighter */
  .services {
    --stack-top: calc(var(--nav-h) + 16px);
    --stack-step: 15px;
  }

  .service__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .service__title { padding-inline: 0; text-align: left; }

  .service .btn { position: static; transform: none; width: 100%; }
  .service .btn:hover { transform: translateY(-2px); }

  .quote__media img { object-position: 52% 42%; }
  .quote__top { justify-content: flex-start; }
  .quote__top .btn { width: 100%; }

  /* stack the download block, cover overlapping the panel's top edge */
  .lead__inner { flex-direction: column; align-items: center; }

  .lead__cover {
    width: clamp(170px, 52vw, 250px);
    margin: 0 0 calc(-1 * var(--overlap-y));
  }

  .lead__panel {
    flex: 1 1 auto;
    width: 100%;
    padding: calc(var(--overlap-y) + clamp(26px, 6vw, 40px)) clamp(22px, 5vw, 40px)
      clamp(30px, 7vw, 44px);
  }

  .lead__panel .btn { width: 100%; }

  .cta { --badge: clamp(46px, 13vw, 66px); }
  .cta__panel .btn { width: 100%; }

  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--wide { grid-column: 1 / -1; }

  .signup__row { flex-direction: column; align-items: stretch; }
  .signup__check { align-items: flex-start; }
  .signup__check input { margin-top: 2px; }
  .signup__btn { width: 100%; }
}

@media (max-width: 560px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
}

/* touch widths: swipe replaces the arrows */
@media (max-width: 700px) {
  .work__nav { display: none; }
  .work__card { width: min(74vw, 300px); }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(2.3rem, 11vw, 3.4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media img { animation: none; transform: none; }

  .marquee__track,
  .social__track { animation: none; }

  .service__title > span { transform: none !important; transition: none !important; }
  .service .btn { opacity: 1 !important; }

  .cta__badge {
    opacity: 1 !important;
    transform: translate(34%, -34%) rotate(-14deg) !important;
    transition: none !important;
  }

  .lines .line > span,
  .reveal:not(.hero__title) {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }
}
