/* ==========================================================================
   Teo Creations — single-page portfolio
   Type: Helvetica (headlines/body) + Instrument Serif italic (accents)
         + IBM Plex Mono (labels, timecodes). Fonts are self-hosted (OFL).
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  --forest: #123B2D;
  --orange: #F7941D;
  --brown: #603814;
  --charcoal: #171717;
  --white: #F5F3EF;
  --sage: #A8B5A0;

  --line: rgba(245, 243, 239, 0.14);
  --muted: rgba(245, 243, 239, 0.62);

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  /* Corner kept clear for the floating chat button (64px button + 32px offset + breathing room). */
  --chat-safe: 112px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; background: var(--charcoal); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.js body.is-loading { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }

::selection { background: var(--orange); color: var(--charcoal); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--charcoal);
  font-weight: 700;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* Shared type ------------------------------------------------------------ */

.eyebrow {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--orange);
}
.eyebrow span { color: var(--muted); font-weight: 400; }

h2 {
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 700;
}

/* Accent words: italic serif against the bold Helvetica. */
h2 em, .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: 1.08em;
  padding-right: 0.06em;
  color: var(--orange);
}

.section-head {
  display: grid;
  gap: 18px;
  padding: 0 var(--gutter);
  max-width: 1500px;
}
.section-head__sub { color: var(--muted); max-width: 34ch; font-size: 18px; }

/* Each line clips its own text for the slide-up reveal. The extra bottom padding
   (cancelled by the negative margin) leaves room for descenders like g, p, y. */
.line { display: block; overflow: hidden; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.line > span { display: inline-block; }

/* Icons ------------------------------------------------------------------ */

.icon {
  flex: none;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
}
.icon--sm { width: 0.95em; height: 0.95em; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--pill {
  gap: 6px;
  padding: 11px 18px 11px 20px;
  background: var(--orange);
  color: var(--charcoal);
  font-size: 15px;
}
.btn--pill:hover { background: var(--white); }
.btn--big {
  padding: 22px 32px;
  background: var(--orange);
  color: var(--charcoal);
  font-size: clamp(16px, 2.2vw, 22px);
}
.btn--big:hover { background: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(245, 243, 239, 0.35);
}
.btn--ghost:hover { background: var(--white); color: var(--forest); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn__arrow { display: inline-flex; transition: transform 0.3s var(--ease); }
.btn--big:hover .btn__arrow { transform: translateX(6px); }

/* Grain, progress, cursor, hover preview -------------------------------- */

.cursor, .hover-preview { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid;
    place-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--orange);
    pointer-events: none;
    opacity: 0;
    transform-origin: center;
    transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s var(--ease), opacity 0.3s;
  }
  .cursor__label {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .cursor.is-play { width: 88px; height: 88px; margin: -44px 0 0 -44px; opacity: 1; }
  .cursor.is-play .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0 !important; }

  .hover-preview {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 220px;
    height: 290px;
    margin: -145px 0 0 -110px;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.6) rotate(-6deg);
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
  .hover-preview.is-active { opacity: 1; transform: scale(1) rotate(-3deg); }
  .hover-preview video { width: 100%; height: 100%; object-fit: cover; }
}

/* Loader (JS only) ------------------------------------------------------- */

.loader { display: none; }
.js .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.loader__panel {
  position: absolute;
  inset: 0;
}
.loader__panel--back { background: var(--forest); }
.loader__panel--front {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background: var(--charcoal);
}
.loader__logo svg { width: 92px; height: 92px; }
.loader__tc {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.loader__rec {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1s steps(2, start) infinite;
}
.loader__bar {
  width: min(260px, 60vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar span {
  display: block;
  height: 100%;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
}
.loader__label {
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
}
.loader__label span { color: var(--orange); }

@keyframes blink { to { visibility: hidden; } }

/* Nav -------------------------------------------------------------------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px var(--gutter);
  transition: transform 0.5s var(--ease), background 0.4s;
}
.nav.is-solid {
  background: rgba(23, 23, 23, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.nav.is-hidden { transform: translateY(-110%); }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav__logo img { width: 34px; height: 34px; }
.nav__links {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(245, 243, 239, 0.08);
  border: 1px solid rgba(245, 243, 239, 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.nav__links a {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}
.nav__links a:hover { background: var(--white); color: var(--charcoal); }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__logo span { display: none; }
}

/* Hero ------------------------------------------------------------------- */
/* Full-bleed background video: Teo's Action College clip with its white
   background keyed out onto charcoal, framed to the right of the headline. */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 var(--gutter) clamp(20px, 3vw, 36px);
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--charcoal);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, 0.6) 0%, rgba(23, 23, 23, 0.15) 28%, rgba(23, 23, 23, 0.35) 52%, rgba(23, 23, 23, 0.88) 84%, var(--charcoal) 100%),
    linear-gradient(90deg, rgba(14, 40, 31, 0.82) 0%, rgba(14, 40, 31, 0.5) 38%, rgba(14, 40, 31, 0) 70%);
}

/* Camera-style overlay */
.hero__hud {
  position: absolute;
  top: 88px;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.hero__hud > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.hud__rec::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d3d;
  animation: blink 1.2s steps(2, start) infinite;
}
.hud__meta { color: rgba(245, 243, 239, 0.7) !important; }

.hero__content {
  align-self: end;
  padding-bottom: clamp(24px, 4vw, 48px);
}
.hero__eyebrow { margin-bottom: 18px; max-width: 46ch; font-size: 17px; font-weight: 400; color: rgba(245, 243, 239, 0.78); }
.hero__eyebrow strong { font-weight: 700; color: var(--white); }
.hero__title {
  font-size: clamp(3.4rem, 9.5vw, 10rem);
  line-height: 0.88;
  letter-spacing: -0.055em;
  font-weight: 700;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero__foot {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.hero__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.hero__play-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  transition: transform 0.3s var(--ease);
}
.hero__play-icon::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(247, 148, 29, 0.5);
  animation: ring 2.4s var(--ease) infinite;
}
.hero__play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--charcoal);
}
.hero__play:hover .hero__play-icon { transform: scale(1.1); }
@keyframes ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}


@media (max-width: 720px) {
  .hero__hud { top: 76px; }
  .hud__meta { display: none !important; }
}

/* Marquee ---------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  background: var(--orange);
  color: var(--charcoal);
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee__track i {
  flex: none;
  width: 0.24em;
  height: 0.24em;
  border-radius: 50%;
  background: var(--brown);
}
.marquee__track .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1.18em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* About ------------------------------------------------------------------ */

.about {
  padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(70px, 9vw, 120px);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  max-width: 1500px;
  margin: 0 auto;
}
.about__text { display: grid; gap: 30px; }
.about__statement {
  font-size: clamp(1.9rem, 3.8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.about__statement em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  font-size: 1.1em;
  color: var(--orange);
}
.js .about__statement .word { opacity: 0.18; }
.about__body { color: var(--muted); max-width: 52ch; font-size: 19px; }

.about__portrait {
  position: relative;
  display: grid;
  justify-items: center;
}
.about__disc {
  position: absolute;
  inset: 12% 0 0;
  border-radius: 50% 50% var(--radius) var(--radius);
  background: radial-gradient(120% 90% at 50% 10%, #1d5643 0%, var(--forest) 55%, #0b261d 100%);
  border: 1px solid rgba(168, 181, 160, 0.25);
}
.about__portrait img {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 0 0 var(--radius) var(--radius);
}
.about__portrait figcaption {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 420px; margin: 0 auto; width: 100%; }
}

/* Brands ----------------------------------------------------------------- */

.brands {
  padding: 0 var(--gutter) clamp(70px, 9vw, 130px);
  display: grid;
  gap: 28px;
  max-width: 1500px;
  margin: 0 auto;
}
.brands__list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px clamp(22px, 4vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(245, 243, 239, 0.4);
}
.brands__list li { transition: color 0.3s; }
.brands__list li:hover { color: var(--white); }

/* Vertical reels --------------------------------------------------------- */

.reels { position: relative; }
.reels__pin {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* keep the heading at screen width; only the track overflows */
  align-content: center;
  gap: clamp(32px, 4vw, 56px);
  padding: clamp(80px, 8vw, 110px) 0 clamp(40px, 5vw, 70px);
  overflow: hidden;
}
.reels__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding: 0 var(--gutter);
  width: max-content;
}

.phone {
  flex: none;
  width: clamp(200px, min(21vw, (100vh - 400px) * 0.5625), 300px);
  cursor: pointer;
}

@media (min-width: 900px) {
  .reels__pin { padding: 96px 0 32px; gap: 36px; }
  .reels .section-head {
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 40px;
    max-width: none;
  }
  .reels .section-head .eyebrow { grid-column: 1 / -1; }
  .reels .section-head__sub { text-align: right; }
}

.phone__screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #0d0d0d;
  border: 6px solid #232323;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.phone__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.phone:focus-visible .phone__screen { border-color: var(--orange); }
@media (hover: hover) {
  .phone:hover .phone__screen { transform: translateY(-8px); border-color: var(--orange); }
  .phone:hover video { transform: scale(1.04); }
}

/* Timecode badge on each video, like a clip in the timeline. */
.tc {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--white);
  pointer-events: none;
}

.phone__meta,
.wide-card__meta {
  display: grid;
  gap: 2px;
  padding-top: 16px;
}
.phone__meta h3,
.wide-card__meta h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.phone__meta p,
.wide-card__meta p { color: var(--muted); font-size: 14px; }

@media (max-width: 899px) {
  .reels__pin { min-height: 0; }
  .reels__track {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 8px;
  }
  .reels__track::-webkit-scrollbar { display: none; }
  .phone { width: min(64vw, 260px); scroll-snap-align: center; }
}

/* Wide work -------------------------------------------------------------- */

.wide {
  padding: clamp(80px, 10vw, 140px) 0;
  display: grid;
  gap: clamp(40px, 5vw, 70px);
}
.wide__list {
  display: grid;
  gap: clamp(48px, 7vw, 100px);
  padding: 0 var(--gutter);
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
}
.wide-card { cursor: pointer; }
.wide-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0d0d;
}
.wide-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.wide-card__media .tc { top: 16px; left: 16px; }
@media (hover: hover) { .wide-card:hover video { transform: scale(1.03); } }
.wide-card__meta h3 { font-size: clamp(22px, 2.6vw, 34px); }

@media (min-width: 900px) {
  .wide-card:nth-child(2) { width: 82%; margin-left: auto; }
  .wide-card:nth-child(3) { width: 82%; }
}

/* Services --------------------------------------------------------------- */

.services {
  padding: clamp(80px, 10vw, 140px) 0;
  display: grid;
  gap: clamp(40px, 5vw, 70px);
}
.services__list {
  border-top: 1px solid var(--line);
  margin: 0 var(--gutter);
}
.service {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  z-index: -1;
  background: var(--forest);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
}
.service h3 {
  display: flex;
  align-items: center;
  gap: 0.32em;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: transform 0.5s var(--ease);
}
.service__icon {
  width: 0.92em;
  height: 0.92em;
  padding: 0.2em;
  border-radius: 50%;
  border: 1px solid rgba(247, 148, 29, 0.35);
  color: var(--orange);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service p { color: var(--muted); max-width: 38ch; transition: color 0.3s; }
@media (hover: hover) {
  .service:hover::before { transform: scaleY(1); }
  .service:hover h3 { transform: translateX(12px); }
  .service:hover p { color: var(--sage); }
  .service:hover .service__icon { background: var(--orange); border-color: var(--orange); color: var(--charcoal); }
}

@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; gap: 12px; }
}

/* Process (styled as an editing timeline) ------------------------------ */

.process {
  padding: 0 0 clamp(90px, 11vw, 160px);
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}
.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 var(--gutter);
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 34px clamp(20px, 3vw, 48px) 0 0;
}
/* Playhead marker on the track */
.step::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px var(--charcoal);
}
.step::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 1px;
  height: 18px;
  background: rgba(247, 148, 29, 0.5);
}
.step__top { display: flex; align-items: center; gap: 10px; }
.step__icon { width: 18px; height: 18px; color: var(--sage); }
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--orange);
}
.step h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.step p { color: var(--muted); max-width: 34ch; }

@media (max-width: 900px) {
  .process__steps {
    grid-template-columns: 1fr;
    gap: 36px;
    border-top: 0;
    border-left: 1px solid var(--line);
    margin-left: calc(var(--gutter) + 5px);
  }
  .step { padding: 0 0 0 28px; }
  .step::before { top: 4px; left: -6px; }
  .step::after { top: 9px; left: 5px; width: 16px; height: 1px; }
}

/* Sketchbook ------------------------------------------------------------- */

.sketch {
  background: var(--white);
  color: var(--charcoal);
  padding: clamp(90px, 12vw, 170px) var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  overflow: hidden;
}
.sketch .eyebrow { color: var(--brown); }
.sketch h2 { font-size: clamp(2.4rem, 5.2vw, 5rem); }
.sketch h2 em { color: var(--brown); }
.sketch__head { display: grid; gap: 22px; max-width: 560px; }
.sketch__head > p:last-child { color: #4a4a4a; font-size: 19px; }

.sketch__collage {
  position: relative;
  height: clamp(420px, 48vw, 640px);
}
.sketch__item {
  position: absolute;
  width: 46%;
  background: #fff;
  padding: 10px 10px 34px;
  box-shadow: 0 30px 60px -25px rgba(23, 23, 23, 0.45);
}
.sketch__item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.sketch__item--a { left: 0; top: 8%; transform: rotate(-6deg); }
.sketch__item--b { left: 28%; top: 0; z-index: 2; transform: rotate(3deg); }
.sketch__item--c { right: 0; top: 18%; transform: rotate(-2deg); }

@media (max-width: 900px) {
  .sketch { grid-template-columns: 1fr; }
  .sketch__collage { height: min(110vw, 560px); }
}

/* Contact ---------------------------------------------------------------- */

.contact {
  position: relative;
  background: var(--forest);
  padding: clamp(100px, 14vw, 200px) var(--gutter) clamp(80px, 10vw, 140px);
  display: grid;
  justify-items: start;
  gap: 32px;
  overflow: hidden;
}
.contact__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(168, 181, 160, 0.35);
  font-size: 14px;
  font-weight: 500;
  color: var(--sage);
}
.contact__status span {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fd18b;
}

.contact__title {
  font-size: clamp(3rem, 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 700;
}
.contact__lead {
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--sage);
}
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(168, 181, 160, 0.45);
  color: var(--sage);
  font-weight: 700;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.socials a:hover { background: var(--white); color: var(--forest); border-color: var(--white); }

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

.footer {
  padding: clamp(48px, 7vw, 90px) var(--gutter) 24px;
  overflow: hidden;
}
.footer__wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.18em;
  font-size: clamp(4rem, 15.5vw, 18rem);
  line-height: 0.82;
  letter-spacing: -0.065em;
  font-weight: 700;
  white-space: nowrap;
  padding-bottom: 0.08em;
}
.footer__wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: 1.06em;
  color: var(--orange);
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--white);
  font-weight: 700;
}
.footer__logo img { width: 24px; height: 24px; }
.footer__place,
.footer__top { display: inline-flex; align-items: center; gap: 6px; }
.footer__place { margin-left: 14px; }
.footer a:hover { color: var(--orange); }

/* Lightbox --------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 64px 16px 24px;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__frame { max-width: min(1200px, 100%); max-height: 100%; display: grid; }
.lightbox__video {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  max-height: calc(100svh - 100px);
  border-radius: 14px;
  background: #000;
}
.lightbox__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 14px;
}
.lightbox__close:hover { background: var(--orange); }

/* Chat-button safe zone -------------------------------------------------- */
/* Content that rests in the bottom-right corner moves out of the way of the
   fixed chat button: sideways on wide screens, upwards on phones. */

@media (min-width: 721px) {
  .hero__foot,
  .footer__row { padding-right: var(--chat-safe); }
}
@media (max-width: 720px) {
  .hero { padding-bottom: calc(var(--chat-safe) - 8px); }
  .footer { padding-bottom: var(--chat-safe); }
}

/* Reduced motion --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .loader__rec, .hud__rec::before,
  .hero__play-icon::before { animation: none; }
  .js .about__statement .word { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
