/* Darhan Studio — one page, phone first.
   Brand: red #C0392B on light, #E0493A on dark (hairlines and large type only: 4.2:1 on ink), ink #1C1C1C,
   grey #6B6B6B, cream #F4F1EA. Onest 400 + 600 only.
   Type scale (px): 12 · 14 · 16 · 18 · 20 · 24 · 30 · 36 · 48.  Spacing scale (px): 4 · 8 · 12 · 16 · 24 · 32 · 48 · 64 · 96. */

:root {
  --cream: #F4F1EA;
  --paper: #FBF9F4;
  --sand: #ECE7DC;
  --ink: #1C1C1C;
  --ink-2: #2A2826;
  --grey: #6B6B6B;          /* 4.7:1 on cream */
  --grey-dark: #A8A49C;     /* 6.9:1 on ink */
  --line: #DCD5C7;
  --line-dark: #3A3734;
  --red: #C0392B;           /* 4.8:1 on cream; white on it 5.4:1 */
  --red-deep: #A5301F;
  --red-on-dark: #E0493A;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --radius: 16px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
}

img, video { display: block; max-width: 100%; }
h1, h2, h3, p, ol { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: var(--s4); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--s3) var(--s5);
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--red-deep); }
.btn:focus-visible, .link:focus-visible, .card:focus-visible, .player-close:focus-visible, .foot-links a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px;
}
.btn-small { min-height: 40px; padding: var(--s2) var(--s4); font-size: 14px; }
.btn-large { min-height: 56px; padding: var(--s4) var(--s6); font-size: 18px; }

.link {
  font-size: 16px; font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 4px;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 241, 234, .94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px); backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand img { height: 40px; width: auto; }

/* ---------- hero ---------- */
.hero { padding-block: var(--s6) var(--s7); }
.hero-grid { display: grid; gap: var(--s6); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  margin-bottom: var(--s3);
}
h1 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; max-width: 16em; }
.lead { margin-top: var(--s4); font-size: 18px; line-height: 1.45; color: var(--grey); max-width: 32em; }
.actions { margin-top: var(--s5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s5); }

/* The works carousel at the top: swipe on phones (the neighbours peek in), arrows and dots everywhere.
   The centred slide plays its 6 s silent preview, then the next one comes in; any touch stops the auto-advance. */
.reel { min-width: 0; margin-inline: calc(var(--s4) * -1); scroll-margin-top: 80px; }
.reel-track {
  position: relative;            /* slides' offsetLeft is measured from the track (site.js go()) */
  display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: var(--s3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-inline: 15%; padding-block: var(--s2);
  scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-slide { scroll-snap-align: center; }
.reel-slide .frame { transition: transform .3s ease, opacity .3s ease; }
.reel-slide:not(.is-active) .frame { transform: scale(.92); opacity: .55; }
.reel-slide video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .25s ease;
}
.reel-slide video.is-playing { opacity: 1; }
.reel-slide:not(.is-active) .play { display: none; }

.reel-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  margin-top: var(--s3); padding-inline: var(--s4);
}
.reel-cap { min-width: 0; }
.reel-nav { display: flex; align-items: center; gap: var(--s2); flex-shrink: 0; }
.reel-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  cursor: pointer; position: relative; flex-shrink: 0;
}
.reel-arrow::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.reel-prev::after { transform: translate(-35%, -50%) rotate(135deg); }
.reel-next::after { transform: translate(-65%, -50%) rotate(-45deg); }
.reel-arrow:hover { border-color: var(--ink); }
.reel-arrow:focus-visible, .reel-dot:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.reel-dots { display: none; }
.reel-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.reel-dot[aria-current="true"] { background: var(--red); }
.reel-hint { margin-top: var(--s2); padding-inline: var(--s4); font-size: 14px; color: var(--grey); }
@media (prefers-reduced-motion: reduce) {
  .reel-slide .frame, .reel-slide video { transition: none; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--s8); scroll-margin-top: 64px; }
.section-head { margin-bottom: var(--s6); max-width: 36em; }
h2 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.section-head p { margin-top: var(--s3); color: var(--grey); }

.tint { background: var(--paper); border-block: 1px solid var(--line); }


/* ---------- video cards ---------- */
.card {
  display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius);
}
.frame {
  position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--radius); background: var(--sand);
  box-shadow: 0 1px 2px rgba(28, 28, 28, .08), 0 8px 24px rgba(28, 28, 28, .10);
}
.frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .frame img { transform: scale(1.02); }
@media (prefers-reduced-motion: reduce) { .frame img { transition: none; } .card:hover .frame img { transform: none; } }

.play {
  position: absolute; left: var(--s3); bottom: var(--s3);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.play::after {
  content: ""; position: absolute; left: 19px; top: 15px;
  border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff;
}
.tag {
  position: absolute; left: var(--s3); top: var(--s3);    /* left: the films carry the D badge top-right */
  padding: var(--s1) var(--s2); border-radius: 999px;
  background: rgba(28, 28, 28, .78); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}

.card-cap { display: block; margin-top: var(--s3); }
.card-title { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.card-note { display: block; margin-top: var(--s1); font-size: 14px; line-height: 1.4; color: var(--grey); }

/* before/after: a swipeable row on phones, three columns on wider screens */
.row-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 64%;
  gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--s4) * -1); padding-inline: var(--s4); padding-bottom: var(--s2);
  scrollbar-width: none;
}
.row-scroll::-webkit-scrollbar { display: none; }
.row-scroll > .card { scroll-snap-align: start; }


/* ---------- services ---------- */
.services { display: grid; gap: var(--s4); }
.service {
  padding: var(--s5); border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--red);
}
.service h3 { font-size: 18px; line-height: 1.3; font-weight: 600; }
.service p { margin-top: var(--s2); color: var(--grey); }
.services-more { margin-top: var(--s5); color: var(--grey); }
.services-more .link { font-size: inherit; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--s5); counter-reset: step; }
.steps li { position: relative; padding-left: 56px; min-height: 40px; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--red);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 600; color: var(--red);
}
.step-title { display: block; font-size: 18px; font-weight: 600; line-height: 1.3; }
.step-note { display: block; margin-top: var(--s1); color: var(--grey); }

/* ---------- final call ---------- */
.cta { padding-block: var(--s8) var(--s9); }
.cta-box { text-align: center; display: grid; justify-items: center; gap: var(--s4); }
.cta-box h2 { font-size: 30px; line-height: 1.15; }
.cta-box p { color: var(--grey); max-width: 30em; }
.cta-box .btn { margin-top: var(--s2); }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: var(--grey-dark); padding-block: var(--s7) calc(var(--s8) + env(safe-area-inset-bottom, 0px)); }
.foot-row { display: grid; justify-items: center; gap: var(--s5); text-align: center; }
.foot-row img { width: 180px; height: auto; }
.foot-links { display: flex; gap: var(--s5); }
.foot-links a { color: var(--cream); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--red-on-dark); padding-bottom: 2px; }
.foot-copy { font-size: 14px; }

/* ---------- sticky WhatsApp bar (phones) ---------- */
.wa-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px));
  background: rgba(244, 241, 234, .96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(110%); transition: transform .25s ease;
}
.wa-bar .btn { width: 100%; }
.wa-bar.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .wa-bar { transition: none; } }

/* ---------- player ---------- */
.player {
  width: min(100vw, 480px); max-width: 100vw; max-height: 100dvh; padding: 0; border: 0;
  background: #000; color: #fff; border-radius: var(--radius); overflow: hidden;
}
.player::backdrop { background: rgba(10, 10, 10, .86); }
.player-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) var(--s2) var(--s2) var(--s4); }
.player-title { font-size: 14px; font-weight: 600; }
.player-close {
  min-height: 40px; padding: var(--s2) var(--s4); border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600;
}
.player video { width: 100%; max-height: calc(100dvh - 64px); aspect-ratio: 9 / 16; background: #000; }

/* ---------- wider screens ---------- */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .wrap { padding-inline: var(--s5); }
  .top-row { min-height: 72px; }
  .brand img { height: 48px; }
  h1 { font-size: 48px; line-height: 1.1; }
  .lead { font-size: 20px; }
  h2 { font-size: 36px; line-height: 1.15; }
  .cta-box h2 { font-size: 36px; }
  .section { padding-block: var(--s9); scroll-margin-top: 72px; }
  .card-title { font-size: 18px; }
  .row-scroll { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); }
  .service h3 { font-size: 20px; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); }
  .steps li { padding-left: 0; padding-top: 56px; }
  .wa-bar { display: none; }
  .reel { margin-inline: calc(var(--s5) * -1); }
  .reel-track { grid-auto-columns: 44%; padding-inline: 28%; }
  .reel-bar, .reel-hint { padding-inline: var(--s5); }
}

@media (min-width: 960px) {
  .hero { padding-block: var(--s7) var(--s8); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; align-items: center; gap: var(--s8); }   /* 280 px: the whole carousel fits an 800 px tall screen */
  .reel { margin-inline: 0; }
  .reel-track { grid-auto-columns: 100%; padding-inline: 0; gap: var(--s4); }
  .reel-slide:not(.is-active) .frame { transform: none; opacity: 1; }
  .reel-bar, .reel-hint { padding-inline: 0; }
  .reel-dots { display: flex; gap: var(--s2); }
  .reel-bar { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .reel-nav { justify-content: space-between; }
  .reel-hint { display: none; }          /* the arrows and dots say it on a desktop */
}
