/* Noah Reyes, UGC portfolio. Cinematic Dark. */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("fonts/host-grotesk-var.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/newsreader-italic-var.woff2") format("woff2");
}

:root {
  --bg: #0E0C0A;
  --bg-2: #17140F;
  --bg-3: #201C16;
  --text: #EDE8E0;
  --text-2: #CFC8BD;
  --muted: #A39B8F;
  --amber: #D9A55A;
  --amber-hi: #E8B873;
  --rule: rgba(237, 232, 224, 0.14);
  --rule-2: rgba(237, 232, 224, 0.26);
  --edge: #7A7368;
  --error: #F2A68F;

  --sans: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --max: 1320px;
  --gut: clamp(16px, 4.2vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.24, 1);
  --bar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-off) { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--amber); color: var(--bg); }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.vh {
  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 {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 12px 18px; background: var(--amber); color: var(--bg);
  font-weight: 600; font-size: 14px; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gut) * 2);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* Small caps label */
.label, .eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

.h2 {
  font-size: clamp(44px, 6.2vw, 92px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em;
  text-decoration: none; border-radius: 2px; border: 1px solid transparent;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--amber); color: var(--bg); }
.btn--solid:hover { background: var(--amber-hi); }
.btn--line { border-color: rgba(237, 232, 224, 0.55); color: var(--text); background: rgba(14, 12, 10, 0.2); }
.btn--line:hover { border-color: var(--text); background: rgba(237, 232, 224, 0.06); }

/* ---------- Header ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--bar-h);
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar--solid {
  background: rgba(14, 12, 10, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.bar__in {
  height: 100%;
  max-width: calc(var(--max) + var(--gut) * 2);
  margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; gap: 8px;
}
.mark {
  transition: opacity .5s var(--ease);
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}
.motion {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 12px; margin-left: 20px;
  background: none; border: 0; border-left: 1px solid var(--rule-2);
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.motion:hover { color: var(--text); }
.motion__icon { position: relative; width: 10px; height: 11px; flex: none; }
.motion__icon::before, .motion__icon::after {
  content: ""; position: absolute; top: 0; width: 3px; height: 11px; background: currentColor;
}
.motion__icon::before { left: 1px; }
.motion__icon::after { right: 1px; }
.motion-off .motion__icon::before {
  left: 1px; width: 0; height: 0; background: none;
  border-style: solid; border-width: 5.5px 0 5.5px 9px; border-color: transparent transparent transparent currentColor;
}
.motion-off .motion__icon::after { display: none; }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: 14px; font-weight: 450; letter-spacing: 0.02em; text-decoration: none;
  color: var(--text-2); transition: color .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.nav__cta {
  color: var(--text); margin-left: 12px; padding: 0 18px;
  border: 1px solid rgba(237, 232, 224, 0.4); border-radius: 2px;
}
.nav a.nav__cta:hover { border-color: var(--amber); color: var(--amber-hi); }
.menu { display: none; }

@media (max-width: 880px) {
  .menu {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0;
    font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    position: relative; z-index: 2;
  }
  .menu__lines { display: grid; gap: 5px; width: 20px; }
  .menu__lines i { display: block; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .menu[aria-expanded="true"] .menu__lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .menu[aria-expanded="true"] .menu__lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .menu__label { order: -1; }

  .nav {
    position: fixed; inset: 0; z-index: 1; margin: 0;
    background: var(--bg);
    padding: calc(var(--bar-h) + 32px) var(--gut) 40px;
    visibility: hidden; opacity: 0;
    transition: opacity .35s var(--ease), visibility 0s linear .35s;
  }
  .nav--open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav a {
    width: 100%; min-height: 72px; padding: 0;
    font-size: clamp(28px, 8vw, 40px); font-weight: 350; letter-spacing: -0.02em; color: var(--text);
  }
  .nav .nav__cta-item { border: 0; margin-top: 32px; }
  .nav a.nav__cta {
    margin: 0; min-height: 56px; justify-content: center; font-size: 15px; font-weight: 600; letter-spacing: 0.06em;
    background: var(--amber); color: var(--bg); border: 0;
  }
  .nav a.nav__cta:hover { color: var(--bg); background: var(--amber-hi); }
  .bar__in > .mark, .bar__in > .motion { position: relative; z-index: 2; }
  .menu-open .bar { background: var(--bg); border-bottom-color: var(--rule); }
}
@media (max-width: 440px) {
  .motion { margin-left: 8px; padding: 0 10px; }
  .motion__word { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: pre; }
  .mark { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: max(620px, 100vh);
  min-height: max(620px, 100svh);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 60% at 62% 34%, #4A3119 0%, #241910 42%, var(--bg) 78%),
    var(--bg);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
.js .hero__media { animation: heroIn 2.6s var(--ease) both; }
@keyframes heroIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: none; }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,12,10,0.78) 0, rgba(14,12,10,0.35) 90px, rgba(14,12,10,0) 180px),
    linear-gradient(180deg, rgba(14,12,10,0) 22%, rgba(14,12,10,0.55) 40%, rgba(14,12,10,0.84) 56%, rgba(14,12,10,0.94) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(14,12,10,0.55) 0, rgba(14,12,10,0.15) 55%, rgba(14,12,10,0) 75%);
}
.hero__content {
  position: relative;
  width: 100%;
  max-width: calc(var(--max) + var(--gut) * 2);
  margin-inline: auto;
  padding: 0 var(--gut) clamp(72px, 10vh, 96px);
}
/* Scrim tied to the text block, so text keeps its contrast whatever the clip shows */
.hero__content::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -160px; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(14,12,10,0) 0, rgba(14,12,10,0.8) 160px, rgba(14,12,10,0.88) 100%);
}
@media (min-width: 1000px) {
  .hero__content::before {
    left: calc(50% - 50vw); width: 72vw; transform: none;
    background: linear-gradient(90deg, rgba(14,12,10,0.8) 0, rgba(14,12,10,0.72) 55%, rgba(14,12,10,0) 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 160px);
    mask-image: linear-gradient(180deg, transparent 0, #000 160px);
  }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(14,12,10,0.78) 0, rgba(14,12,10,0.3) 90px, rgba(14,12,10,0) 180px),
      linear-gradient(180deg, rgba(14,12,10,0) 55%, rgba(14,12,10,0.7) 80%, rgba(14,12,10,0.95) 100%);
  }
}
.hero__name {
  display: flex; align-items: center; gap: 16px; width: fit-content;
  font-size: 13px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  line-height: 1.4;
}
.hero__name::before { content: ""; width: 32px; height: 1px; background: var(--amber); }
.hero__line {
  margin-top: 24px;
  max-width: 15ch;
  font-size: clamp(36px, 5.6vw, 72px);
  font-weight: 320;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero__line em, .contact__h em {
  font-family: var(--serif);
  font-weight: 380;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  color: var(--amber);
  font-variation-settings: "opsz" 72;
}
.hero__foot {
  margin-top: clamp(32px, 5vh, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-2);
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
}
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 36px; font-size: 14px; color: var(--text-2); }
.hero__facts li { white-space: nowrap; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.js .hero__name, .js .hero__line, .js .hero__foot { animation: rise 1.4s var(--ease) both; }
.js .hero__name { animation-delay: .5s; }
.js .hero__line { animation-delay: .7s; }
.js .hero__foot { animation-delay: .95s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (min-width: 1000px) {
  .hero__media {
    left: auto; width: 70%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,0.6) 18%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,0.6) 18%, #000 38%);
  }
  .hero__video { object-position: 50% 34%; }
}
@media (max-width: 700px) {
  .hero__video { object-position: 50% 30%; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(14,12,10,0.8) 0, rgba(14,12,10,0.3) 90px, rgba(14,12,10,0) 160px),
      linear-gradient(180deg, rgba(14,12,10,0) 30%, rgba(14,12,10,0.6) 44%, rgba(14,12,10,0.86) 56%, rgba(14,12,10,0.95) 72%, var(--bg) 100%);
  }
  .hero__content { padding-bottom: 96px; }
  .hero__foot { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .hero__facts { gap: 4px 20px; font-size: 13.5px; }
  .hero__actions .btn { flex: 1 1 0; min-width: 0; padding: 0 16px; }
}

/* ---------- Intro, stats, brands ---------- */
.intro { padding: clamp(96px, 12vw, 176px) 0 clamp(80px, 9vw, 140px); }
.intro__lead {
  max-width: 30ch;
  font-size: clamp(26px, 3.1vw, 46px);
  font-weight: 330;
  letter-spacing: -0.025em;
  line-height: 1.22;
}
.intro__lead span { color: var(--muted); }
.stats {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  padding: 28px 24px 8px 0;
}
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--rule); }
.stat dt { margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }
.stat dd { display: flex; align-items: baseline; gap: 8px; }
.stat__n {
  font-size: clamp(56px, 7.4vw, 116px);
  font-weight: 280;
  letter-spacing: -0.05em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums lining-nums;
}
.stat__u { font-size: clamp(16px, 1.5vw, 22px); font-weight: 400; color: var(--amber); letter-spacing: 0; }

.brands-row {
  margin-top: clamp(72px, 8vw, 112px);
  display: grid; grid-template-columns: 200px 1fr; align-items: center;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.brands-row .label { padding: 28px 0; }
.brands { display: grid; grid-template-columns: repeat(4, 1fr); }
.brands li {
  padding: 30px 0 30px 28px;
  border-left: 1px solid var(--rule);
  font-size: clamp(17px, 1.55vw, 22px); font-weight: 400; letter-spacing: -0.005em;
  color: var(--text);
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .brands-row { grid-template-columns: 1fr; }
  .brands-row .label { padding: 24px 0 8px; }
  .brands { grid-template-columns: 1fr 1fr; }
  .brands li { padding: 16px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .brands li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .brands { grid-template-columns: 1fr; }
  .brands li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Work row ---------- */
.work { padding: clamp(64px, 8vw, 120px) 0 clamp(96px, 11vw, 160px); }
.work__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.work__sub { margin-top: 20px; font-size: 15px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 0 4px; margin-right: -14px; }
.chip {
  position: relative;
  min-height: 44px; padding: 0 14px;
  background: none; border: 0;
  font-size: 14px; font-weight: 450; letter-spacing: 0.02em; color: var(--muted);
  transition: color .3s var(--ease);
}
.chip::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px;
  background: var(--amber); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { color: var(--text); font-weight: 550; }
.chip[aria-pressed="true"]::after { transform: none; }

.reel {
  --pad: max(var(--gut), calc((100vw - var(--max)) / 2));
  --th: clamp(380px, 60vh, 600px);
  position: relative;
  margin-top: clamp(40px, 5vw, 64px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-left: var(--pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reel::-webkit-scrollbar { display: none; }
.reel__track {
  display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding: 8px 0 12px var(--pad);
}
.reel__track::after { content: ""; flex: none; width: var(--tail, 40vw); }
.tile { position: relative; flex: none; scroll-snap-align: start; }
.tile[hidden] { display: none; }
.tile__btn {
  display: block; padding: 0; background: none; border: 0; text-align: left;
  border-radius: 2px;
}
.tile__btn:focus-visible { outline-offset: 8px; }
.tile__media {
  position: relative; display: block;
  height: var(--th);
  width: calc(var(--th) * 9 / 16);
  overflow: hidden; border-radius: 2px;
  background: radial-gradient(ellipse at 55% 30%, #4A3119, #1C150F 60%, #120F0C);
}
.tile--wide .tile__media { width: calc(var(--th) * 4 / 5); }
.tile--mid .tile__media { width: calc(var(--th) * 3 / 4); }
.tile__media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.48) contrast(1.05);
  transition: filter 0.9s var(--ease), transform 1.4s var(--ease);
}
.tile--crop-a video { object-position: 50% 30%; transform: scale(1.22); transform-origin: 50% 30%; }
.tile--crop-b video { object-position: 50% 70%; transform: scale(1.12); transform-origin: 40% 70%; }
.tile--crop-c video { object-position: 50% 50%; transform: scale(1.34); transform-origin: 50% 62%; }
.tile--crop-d video { object-position: 50% 40%; transform: scale(1.16); transform-origin: 58% 45%; }
.tile__btn:hover video { filter: grayscale(0.6) brightness(0.72); }
.tile.is-active video { filter: none; }

.tile__text {
  display: block; position: relative;
  padding-top: 20px; margin-top: 18px;
}
.tile__text::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--rule);
}
.tile__text::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease);
}
.tile.is-active .tile__text::after { transform: none; }
.tile__brand {
  display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.tile__title {
  display: block; margin-top: 8px;
  font-size: 18px; font-weight: 450; letter-spacing: -0.01em; line-height: 1.3; color: var(--muted);
  transition: color .6s var(--ease);
}
.tile.is-active .tile__title, .tile__btn:hover .tile__title { color: var(--text); }

.reel__bar {
  margin-top: 36px;
  display: flex; align-items: center; gap: 28px;
}
.reel__count {
  display: flex; align-items: baseline; gap: 8px; flex: none;
  font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.reel__count #count-now { color: var(--text); font-weight: 500; }
.reel__progress { flex: 1; height: 1px; background: var(--rule-2); position: relative; }
.reel__progress span {
  position: absolute; left: 0; top: -0.5px; height: 2px; width: 16%;
  background: var(--amber); transition: width .7s var(--ease), left .7s var(--ease);
}
.reel__nav { display: flex; gap: 10px; flex: none; }
.arrow {
  width: 52px; height: 52px; display: inline-grid; place-items: center;
  background: none; border: 1px solid var(--edge); border-radius: 2px; color: var(--text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.arrow:hover:not(:disabled) { border-color: var(--text); background: rgba(237,232,224,0.06); }
.arrow:disabled { cursor: default; color: var(--muted); border-color: rgba(122,115,104,0.5); }

@media (max-width: 700px) {
  .reel { --th: min(118vw, 520px, 64vh); }
  .work__head { align-items: flex-start; }
  .filters { margin-left: -14px; margin-right: 0; }
  .reel__bar { gap: 18px; }
}

/* ---------- Stills ---------- */
.stills { padding: 0 0 clamp(96px, 11vw, 168px); }
.stills__head, .services__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.stills__note, .services__note { max-width: 44ch; font-size: 16px; color: var(--text-2); justify-self: end; }
.stills__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.still { min-width: 0; }
.still__img {
  overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 5;
  background: radial-gradient(ellipse at 50% 40%, #3D2A17, #16110C 70%);
}
.still__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.still:hover .still__img img { transform: scale(1.035); }
.still figcaption {
  margin-top: 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
  font-size: 14px; color: var(--text-2);
}
.still figcaption span {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.still--a { grid-column: 1 / 7; grid-row: 1 / 3; align-self: stretch; display: flex; flex-direction: column; }
.still--a .still__img { flex: 1; aspect-ratio: auto; min-height: 0; }
.still--a .still__img img { object-position: 40% 60%; }
.still--b { grid-column: 7 / 10; grid-row: 1; }
.still--c { grid-column: 10 / 13; grid-row: 1; margin-top: clamp(40px, 7vw, 96px); }
.still--d { grid-column: 7 / 13; grid-row: 2; }
.still--d .still__img { aspect-ratio: 16 / 10; }
.still--d .still__img img { object-position: 50% 68%; }

@media (max-width: 800px) {
  .stills__head, .services__head { grid-template-columns: 1fr; }
  .stills__note, .services__note { justify-self: start; }
  .stills__grid { grid-template-columns: 1fr 1fr; }
  .still--a, .still--d { grid-column: 1 / -1; grid-row: auto; }
  .still--a .still__img { aspect-ratio: 4 / 5; }
  .still--b, .still--c { grid-column: auto; grid-row: auto; }
  .still--c { margin-top: 48px; }
}

/* ---------- Services ---------- */
.services {
  padding: clamp(96px, 11vw, 160px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.svc-list { border-bottom: 1px solid var(--rule); }
.svc {
  position: relative;
  display: grid; grid-template-columns: 4fr 8fr; gap: 16px 40px;
  padding: clamp(32px, 3.6vw, 48px) 0;
  border-top: 1px solid var(--rule);
}
.svc::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 100%; height: 1px; background: var(--amber);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease);
}
.svc:hover::before { transform: none; }
.svc__name {
  grid-row: 1 / 3;
  font-size: clamp(26px, 2.5vw, 36px); font-weight: 350; letter-spacing: -0.025em; line-height: 1.1;
}
.svc__for { font-size: 19px; line-height: 1.45; color: var(--text); max-width: 46ch; }
.svc__facts {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px 32px; margin-top: 12px;
}
.svc__facts dt, .about__facts dt, .contact__ways dt {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.svc__facts dd { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text-2); }

.addons {
  display: grid; grid-template-columns: 4fr 8fr; gap: 24px 40px; align-items: start;
  padding-top: clamp(40px, 4vw, 56px);
}
.addons__h { font-size: 22px; font-weight: 400; letter-spacing: -0.015em; }
.addons__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px;
}
.addons__list li {
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-size: 16px; color: var(--text-2);
}
.addons .btn { grid-column: 2; justify-self: start; margin-top: 16px; }

@media (max-width: 900px) {
  .svc, .addons { grid-template-columns: 1fr; }
  .svc__name { grid-row: auto; }
  .svc__facts { grid-template-columns: 1fr 1fr; }
  .svc__facts > div:first-child { grid-column: 1 / -1; }
  .addons .btn { grid-column: 1; }
}
@media (max-width: 520px) {
  .svc__facts, .addons__list { grid-template-columns: 1fr; }
  .svc__for { font-size: 17px; }
}

/* ---------- About ---------- */
.about { padding: clamp(96px, 12vw, 180px) 0; }
.about__in {
  display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start;
}
.about__portrait {
  grid-column: 1;
  position: sticky; top: calc(var(--bar-h) + 32px);
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px;
  background: radial-gradient(ellipse at 55% 35%, #4A3119, #1C150F 62%, #120F0C);
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__text { grid-column: 3; }
.about__lead {
  margin-top: 36px;
  font-size: clamp(24px, 2.4vw, 34px); font-weight: 350; letter-spacing: -0.02em; line-height: 1.28;
}
.about__text > p:not(.about__lead):not(.about__note) { margin-top: 24px; color: var(--text-2); max-width: 58ch; }
.about__facts {
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule);
}
.about__facts > div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--rule); }
.about__facts > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--rule); }
.about__facts dd { margin-top: 6px; font-size: 16px; }
.about__note {
  margin-top: 40px; padding-left: 20px; border-left: 1px solid var(--amber);
  font-size: 14px; color: var(--muted); max-width: 54ch;
}
@media (max-width: 900px) {
  .about__in { grid-template-columns: 1fr; gap: 48px; }
  .about__portrait { position: relative; top: 0; max-width: 520px; }
  .about__text { grid-column: 1; }
  .about__lead { margin-top: 28px; }
}
@media (max-width: 420px) {
  .about__facts { grid-template-columns: 1fr; }
  .about__facts > div:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- Process and quotes ---------- */
.process {
  padding: clamp(96px, 11vw, 160px) 0;
  border-top: 1px solid var(--rule);
}
.steps {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
}
.step { border-top: 1px solid var(--rule-2); padding-top: 24px; }
.step__n {
  display: block; font-size: 14px; font-weight: 600; color: var(--amber); font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 32px; font-size: 22px; font-weight: 450; letter-spacing: -0.015em; }
.step p { margin-top: 12px; font-size: 15.5px; color: var(--text-2); line-height: 1.6; }

.quotes {
  margin-top: clamp(96px, 11vw, 160px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(32px, 4vw, 64px);
}
.quote blockquote p {
  font-size: clamp(19px, 1.6vw, 23px); font-weight: 370; line-height: 1.45; letter-spacing: -0.01em;
}
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after { content: "\201D"; }
.quote figcaption {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--rule);
  font-size: 14px; color: var(--text-2);
}
.quote__who { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .quotes { grid-template-columns: 1fr; gap: 56px; }
  .quote blockquote p { max-width: 40ch; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step h3 { margin-top: 16px; }
}

/* ---------- Contact ---------- */
.contact {
  padding: clamp(96px, 11vw, 168px) 0;
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
}
.contact__in { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.contact__intro { grid-column: 1; }
.form { grid-column: 3; }
.contact__h {
  font-size: clamp(52px, 7.4vw, 112px); font-weight: 300; letter-spacing: -0.04em; line-height: 0.95;
}
.contact__lead { margin-top: 32px; font-size: 18px; color: var(--text-2); max-width: 36ch; }
.contact__ways { margin-top: 48px; border-top: 1px solid var(--rule); }
.contact__ways > div {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--rule);
}
.contact__ways dd { font-size: 16px; overflow-wrap: anywhere; }
.contact__ways a {
  text-decoration: underline; text-decoration-color: rgba(217,165,90,0.7); text-underline-offset: 5px; text-decoration-thickness: 1px;
  display: inline-block; padding: 8px 0; margin: -8px 0;
}
.contact__ways a:hover { color: var(--amber-hi); }

.form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form__req { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .checks legend { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 10px; }
.field__req { font-weight: 400; color: var(--muted); }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: var(--bg); border: 1px solid var(--edge); border-radius: 2px;
  font-size: 16px; color: var(--text);
  transition: border-color .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--amber); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field__err { font-size: 14px; color: var(--error); margin-top: 8px; }
.field__err:empty { display: none; }
.field__hint { font-size: 14px; color: var(--muted); margin-top: 8px; }

.checks { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks legend { padding: 0; }
.checks__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.check { display: flex; align-items: center; gap: 14px; min-height: 48px; cursor: pointer; font-size: 15.5px; color: var(--text-2); }
.check input {
  appearance: none; -webkit-appearance: none; margin: 0; flex: none;
  width: 22px; height: 22px; border: 1px solid var(--edge); border-radius: 2px; background: var(--bg);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.check input::after {
  content: ""; width: 6px; height: 11px; margin-top: -3px;
  border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
  transition: transform .25s var(--ease);
}
.check input:checked { background: var(--amber); border-color: var(--amber); }
.check input:checked::after { transform: rotate(45deg) scale(1); }
.check input:checked + span { color: var(--text); }
.check:hover input { border-color: var(--muted); }
.form__submit { grid-column: 1 / -1; padding-top: 8px; }
.form__submit .btn { min-width: 200px; }

.form__done {
  padding: clamp(32px, 4vw, 56px) 0;
  border-top: 1px solid var(--amber);
}
.form__done:focus { outline: none; }
.form__done:focus-visible { outline: 2px solid var(--amber); outline-offset: 8px; }
.form__done-h { font-size: clamp(32px, 3.4vw, 48px); font-weight: 320; letter-spacing: -0.03em; }
.form__done p { margin-top: 16px; font-size: 18px; color: var(--text-2); max-width: 44ch; }
.form__done .btn { margin-top: 32px; }

@media (max-width: 900px) {
  .contact__in { grid-template-columns: 1fr; gap: 64px; }
  .form, .contact__intro { grid-column: 1; }
}
@media (max-width: 560px) {
  .form__fields, .checks__grid { grid-template-columns: 1fr; }
  .contact__ways > div { grid-template-columns: 96px 1fr; }
  .form__submit .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 40px 0 48px; font-size: 14px; }
.foot__in { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; }
.foot__name { font-size: 12px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; }
.foot__links { display: flex; gap: 4px 24px; flex-wrap: wrap; }
.foot a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--text-2);
}
.foot a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.foot__credit { margin-left: auto; }
@media (max-width: 700px) {
  .foot { padding-bottom: 96px; }
  .foot__credit { margin-left: 0; }
  .foot__in { gap: 8px 28px; }
  .foot__name { width: 100%; }
}

/* ---------- Video player ---------- */
.player {
  padding: 0; border: 0; margin: 0; max-width: none; max-height: none;
  width: 100%; height: 100%;
  background: transparent; color: var(--text);
}
.player::backdrop { background: rgba(8, 7, 6, 0.94); }
.player[open] { display: grid; place-items: center; }
.player__in {
  position: relative;
  display: grid; grid-template-columns: auto minmax(240px, 320px); gap: clamp(28px, 4vw, 64px); align-items: end;
  padding: 72px var(--gut) 40px;
}
.player__media {
  height: min(84vh, 860px); aspect-ratio: 9 / 16;
  background: radial-gradient(ellipse at 55% 30%, #4A3119, #1C150F 60%, #120F0C);
  border-radius: 2px; overflow: hidden;
}
.player__media video { width: 100%; height: 100%; object-fit: cover; }
.player__brand { font-size: 11.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.player__title { margin-top: 12px; font-size: clamp(28px, 2.6vw, 40px); font-weight: 330; letter-spacing: -0.03em; line-height: 1.1; }
.player__desc { margin-top: 16px; font-size: 15.5px; color: var(--text-2); }
.player__pos { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.player__nav { margin-top: 16px; display: flex; gap: 10px; }
.player__close {
  position: fixed; top: 16px; right: var(--gut); z-index: 2;
  min-height: 44px; padding: 0 16px;
  background: none; border: 1px solid var(--edge); border-radius: 2px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.player__close:hover { border-color: var(--text); }
@media (max-width: 700px) {
  .player[open] { place-items: start center; overflow-y: auto; }
  .player__in { grid-template-columns: 1fr; padding-top: 72px; gap: 24px; width: 100%; }
  .player__media { height: auto; width: min(100%, 52vh); justify-self: center; }
  .player__pos { margin-top: 20px; }
}

/* ---------- Demo ribbon ---------- */
.ribbon {
  position: fixed; left: 20px; bottom: 20px; z-index: 40;
  display: flex; align-items: center;
  background: rgba(23, 20, 15, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--rule-2); border-radius: 2px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.ribbon__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px 0 16px;
  font-size: 13px; font-weight: 450; text-decoration: none; color: var(--text);
}
.ribbon__link:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.ribbon__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; color: var(--text-2);
}
.ribbon__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; fill: none; }
.ribbon__close:hover { color: var(--text); }
@media (max-width: 700px) {
  .ribbon { left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 12px; max-width: calc(100% - 24px); }
  .ribbon__link { font-size: 12.5px; padding-left: 14px; }
}

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Motion off: pause control and reduced motion ---------- */
.motion-off *, .motion-off *::before, .motion-off *::after {
  animation-duration: 0.001s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}
.motion-off [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
