/* =============================================
   Framework Media — minimal, timeless
   Palette: paper white + ink black
   Type: Playfair Display (display) / Inter (text)
   ============================================= */

:root {
  --paper: #ffffff;
  --paper-2: #f6f5f3;
  --ink: #111111;
  --ink-2: #333333;
  --muted: #6b6b6b;
  --line: #e4e2dd;
  --dark: #0e0e0e;
  --dark-2: #171717;
  --on-dark: #f4f2ee;
  --on-dark-muted: #a5a29b;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --step: clamp(72px, 12vw, 160px); /* vertical section rhythm */

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

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

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.005em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.1em; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { padding-block: var(--step); }
.section--tight { padding-block: calc(var(--step) * 0.6); }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--light { --bg: var(--on-dark); --fg: var(--dark); border-color: var(--on-dark); }

.link-underline {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  transition: opacity 0.25s var(--ease);
}
.link-underline:hover { opacity: 0.55; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 26px; width: auto; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after { transform: translateY(5.5px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg) translateY(-1px); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(80px, 16vw, 190px) clamp(64px, 12vw, 150px); }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-top: 1.8rem; }
.hero__actions { margin-top: 2.6rem; display: flex; gap: 16px; flex-wrap: wrap; }
.hero__meta {
  margin-top: clamp(48px, 8vw, 90px);
  display: flex; flex-wrap: wrap; gap: 40px 64px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero__meta div { max-width: 22ch; }
.hero__meta dt {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.hero__meta dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }

/* ---------- section head ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 6vw, 68px); }
.section-head p { margin: 0.8rem 0 0; color: var(--muted); max-width: 44ch; }

/* ---------- work grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3.4vw, 48px);
}
.work-grid--home .work-card:first-child { grid-column: 1 / -1; }

.work-card {
  position: relative;
  cursor: pointer;
  background: var(--paper-2);
  overflow: hidden;
}
.work-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.work-card--wide .work-card__media { aspect-ratio: 21 / 9; }
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.02);
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.045); filter: grayscale(0%); }
.work-card__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.work-card__play::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
}
.work-card:hover .work-card__play { opacity: 1; }
.work-card__play svg { position: relative; width: 54px; height: 54px; }
.work-card__caption { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 4px 6px; }
.work-card__caption h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
.work-card__caption span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- about ---------- */
.about-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-split img { aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(100%); width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.stat-row div { border-top: 1px solid var(--line); padding-top: 18px; }
.stat-row .n { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); display: block; }
.stat-row .l { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.client-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 48px; }
.client-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; break-inside: avoid; }

.process-list { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.process-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.process-list li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.1rem; color: var(--muted);
}
.process-list h3 { margin-bottom: 6px; }
.process-list p { margin: 0; color: var(--muted); }

/* ---------- services / pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.price-card { border: 1px solid var(--line); padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.price-card--featured { background: var(--dark); color: var(--on-dark); border-color: var(--dark); }
.price-card--featured .price-card__price small,
.price-card--featured .price-card__name { color: var(--on-dark); }
.price-card--featured ul li { border-color: rgba(255,255,255,0.14); }
.price-card--featured .price-card__tag { color: var(--on-dark-muted); }
.price-card__tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.price-card__name { font-family: var(--serif); font-size: 1.6rem; margin: 14px 0 4px; }
.price-card__price { font-family: var(--serif); font-size: 2.4rem; margin: 12px 0 4px; }
.price-card__price small { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 28px; flex: 1; }
.price-card ul li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.92rem; }
.price-card .btn { width: 100%; justify-content: center; }

.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.svc-grid > div { border-top: 1px solid var(--line); padding-top: 24px; }
.svc-grid h3 { margin-bottom: 10px; }
.svc-grid p { margin: 0; color: var(--muted); }

.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details[open] summary { margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.15rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark); color: var(--on-dark); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 18ch; }
.cta-band p { color: var(--on-dark-muted); margin: 0.8rem 0 0; max-width: 40ch; }

/* ---------- contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  transition: border-color 0.25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-detail { border-top: 1px solid var(--line); padding: 20px 0; }
.contact-detail dt { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.contact-detail dd { margin: 0; font-size: 1.05rem; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; font-size: 0.9rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { color: #b00020; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); padding-block: clamp(56px, 8vw, 88px); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer__brand img { height: 30px; margin-bottom: 18px; }
.site-footer__brand p { max-width: 32ch; font-size: 0.9rem; }
.site-footer__cols { display: flex; gap: 64px; flex-wrap: wrap; }
.site-footer__cols h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 16px; }
.site-footer__cols ul { list-style: none; padding: 0; margin: 0; }
.site-footer__cols li { margin-bottom: 10px; font-size: 0.9rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  place-items: center;
  padding: var(--pad);
  background: rgba(8,8,8,0.92);
}
.lightbox.is-open { display: grid; }
.lightbox__frame { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__close {
  position: absolute; top: -46px; right: 0;
  width: 40px; height: 40px;
  border: 0; background: transparent; color: #fff; cursor: pointer;
  font-size: 1.6rem; line-height: 1;
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-split, .contact-split { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 24px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: 0.9rem; letter-spacing: 0.12em; }
  .work-grid, .work-grid--home .work-card:first-child { grid-template-columns: 1fr; grid-column: auto; }
  .client-list { columns: 1; }
  .stat-row { grid-template-columns: 1fr; }
  .hero__meta { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
