:root {
  --bg: #0b0b0b;
  --bg-2: #131313;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2efe9;
  --muted: #8f8a82;
  --accent: #ff7a2f; /* saffron — a nod to the monk */
  --light: #f2efe9;
  --radius: 22px;
  --pad: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.03em; }
h2 { font-size: clamp(48px, 8vw, 120px); line-height: 0.95; font-weight: 600; }
.accent { color: var(--accent); }
.dim { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted); margin: 0 0 18px; }
.center { display: flex; justify-content: center; margin-top: 48px; }
section { padding: clamp(80px, 12vw, 160px) var(--pad); }

/* ---------- Intro ---------- */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; place-items: center; }
.intro__bar { position: absolute; left: 0; right: 0; height: 50.5vh; background: #000; transition: transform 1.1s var(--ease) 0.9s; }
.intro__bar--top { top: 0; }
.intro__bar--bottom { bottom: 0; }
.intro__count { position: relative; z-index: 1; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -0.03em; display: flex; gap: 10px; align-items: baseline; transition: opacity 0.4s 0.7s; }
.intro__count em { color: var(--accent); }
.is-loaded .intro__bar--top { transform: translateY(-100%); }
.is-loaded .intro__bar--bottom { transform: translateY(100%); }
.is-loaded .intro__count { opacity: 0; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: space-between; align-items: center; padding: 18px var(--pad); mix-blend-mode: difference; }
.nav__logo { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--text); position: relative; }
.logo-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--text); }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__cta { font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.nav__burger { width: 40px; height: 40px; display: grid; place-content: center; gap: 7px; }
.nav__burger span { display: block; width: 34px; height: 2px; background: var(--text); transition: transform 0.5s var(--ease); }
.menu-open .nav__burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 100px var(--pad) 32px; clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease); }
.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__links { list-style: none; margin: 0; padding: 0; }
.menu__links a { display: flex; align-items: flex-start; gap: 16px; font-family: var(--display); font-weight: 600; font-size: clamp(44px, 9vw, 110px); line-height: 1.02; letter-spacing: -0.04em; transition: color 0.3s, transform 0.5s var(--ease); }
.menu__links a:hover { color: var(--accent); transform: translateX(14px); }
.menu__links small { font-size: 13px; color: var(--muted); letter-spacing: 0; margin-top: 1.1em; }
.menu__foot { margin-top: auto; display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 72px var(--pad) 0; }
.hero__frame { position: relative; height: calc(100svh - 92px); min-height: 520px; border-radius: var(--radius); overflow: hidden; background: #050505; isolation: isolate; }
.hero__video, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { z-index: 1; opacity: 0; transition: opacity 1s; }
.hero__video.is-ready { opacity: 1; }
.hero__canvas { z-index: 0; }
.hero__grain { position: absolute; inset: -50%; z-index: 2; opacity: 0.12; pointer-events: none; background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 0.6s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(4%,-6%)} 60%{transform:translate(-3%,5%)} 80%{transform:translate(6%,2%)} 100%{transform:translate(0,0)} }
.hero__vignette { position: absolute; inset: 0; z-index: 2; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,0.65)), linear-gradient(to top, rgba(0,0,0,0.55), transparent 45%); }

.hero__word { position: absolute; z-index: 3; left: 0; right: 0; top: 7%; padding: 0 0.04em; text-align: center; font-size: clamp(64px, 19vw, 300px); font-weight: 700; line-height: 0.9; letter-spacing: -0.065em; color: #fff; }
.split { display: inline-flex; overflow: hidden; padding-bottom: 0.08em; }
.split .ch { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.is-loaded .split .ch { transform: translateY(0); }

.hero__meta { position: absolute; z-index: 3; left: clamp(20px, 3vw, 40px); right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 36px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero__tag { max-width: 360px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.3; margin: 0; }
.hero__tag em { color: var(--accent); }
.hero__services { list-style: none; margin: 0; padding: 0; text-align: right; font-size: 14px; font-weight: 500; line-height: 1.75; }
.hero__services li { opacity: 0; transform: translateY(10px); transition: opacity 0.8s, transform 0.8s var(--ease); }
.is-loaded .hero__services li { opacity: 1; transform: none; }
.is-loaded .hero__services li:nth-child(1) { transition-delay: 1.6s; }
.is-loaded .hero__services li:nth-child(2) { transition-delay: 1.7s; }
.is-loaded .hero__services li:nth-child(3) { transition-delay: 1.8s; }
.is-loaded .hero__services li:nth-child(4) { transition-delay: 1.9s; }
.hero__rec { position: absolute; z-index: 3; top: 20px; right: 22px; font: 500 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.8); }
.hero__rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- Marquee ---------- */
.marquee { padding: 44px 0; overflow: hidden; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__track span { font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: #5a5650; padding: 0 clamp(28px, 4vw, 56px); white-space: nowrap; transition: color 0.3s; }
.marquee__track span:hover { color: var(--text); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { max-width: 1240px; }
.statement__text { font-family: var(--display); font-size: clamp(26px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; margin: 0; }
.statement__text em { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); padding-top: 32px; }
.stat b { display: block; font-family: var(--display); font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Section heads ---------- */
.section-head { margin-bottom: clamp(40px, 6vw, 80px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sub { color: var(--muted); margin: 14px 0 0; font-size: 17px; }

/* ---------- Services ---------- */
.services { background: var(--bg-2); border-radius: var(--radius) var(--radius) 0 0; }
.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc__head { width: 100%; display: grid; grid-template-columns: 80px 1fr 40px; align-items: center; text-align: left; padding: clamp(22px, 3vw, 36px) 0; }
.svc__num { color: var(--muted); font-size: 14px; }
.svc__title { font-family: var(--display); font-size: clamp(28px, 4.4vw, 64px); font-weight: 600; letter-spacing: -0.035em; line-height: 1; transition: color 0.3s, transform 0.5s var(--ease); }
.svc__head:hover .svc__title { color: var(--accent); transform: translateX(10px); }
.svc__plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.svc__plus::before, .svc__plus::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.5s var(--ease); }
.svc__plus::after { transform: rotate(90deg); }
.svc__head[aria-expanded="true"] .svc__plus::after { transform: rotate(0); }
.svc__body { display: grid; grid-template-rows: 0fr 0fr; transition: grid-template-rows 0.6s var(--ease), padding 0.6s var(--ease); padding-left: 80px; }
.svc__body > * { overflow: hidden; }
.svc__body p { margin: 0; max-width: 640px; color: #c9c4bb; font-size: 17px; }
.svc__body .chips { margin: 0; }
.svc__head[aria-expanded="true"] + .svc__body { grid-template-rows: 1fr 1fr; padding-bottom: 36px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; color: #c9c4bb; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 28px; border-radius: 99px; font-weight: 500; font-size: 15px; margin-top: 48px; position: relative; overflow: hidden; transition: transform 0.4s var(--ease); }
.btn i { font-style: normal; transition: transform 0.4s var(--ease); }
.btn:hover i { transform: translateX(5px); }
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--light); color: #0b0b0b; }
.btn--accent { background: var(--accent); color: #0b0b0b; }
.btn--ghost { border: 1px solid var(--line); margin-top: 0; }
.btn--ghost:hover { border-color: var(--text); }
.btn--block { width: 100%; margin-top: 24px; }

/* ---------- Work ---------- */
.filters { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 99px; flex-wrap: wrap; }
.filters button { padding: 9px 18px; border-radius: 99px; font-size: 14px; color: var(--muted); transition: background 0.3s, color 0.3s; }
.filters button.is-active { background: var(--text); color: #0b0b0b; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.card { display: block; }
.card--wide { grid-column: span 2; }
.card.is-hidden, .card.is-extra:not(.is-shown) { display: none; }
.card__media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, var(--a), transparent 55%), radial-gradient(100% 100% at 90% 100%, var(--a), var(--b) 60%); }
.card--wide .card__media { aspect-ratio: auto; height: 100%; min-height: 100%; }
.card--wide { display: flex; flex-direction: column; }
.card--wide .card__media { flex: 1; aspect-ratio: 16 / 9; }
.card__media::after { content: ""; position: absolute; inset: 0; background: inherit; filter: blur(30px) saturate(1.4); transform: scale(1.3); opacity: 0; transition: opacity 0.6s, transform 1.2s var(--ease); }
.card__media img, .card__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img, .card:hover .card__media video { transform: scale(1.05); }
.card:hover .card__media::after { opacity: 0.6; transform: scale(1.1); }
.card__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: var(--text); color: #0b0b0b; display: grid; place-items: center; font-size: 14px; font-weight: 600; transform: scale(0); transition: transform 0.5s var(--ease); }
.card:hover .card__play { transform: scale(1); }
.card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 4px 0; }
.card__info h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.card__info span { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* ---------- Process ---------- */
.process { background: var(--bg-2); }
.process h2 em { color: var(--accent); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.steps li { background: var(--bg); padding: 32px 26px 40px; border-radius: 4px; min-height: 280px; display: flex; flex-direction: column; transition: background 0.4s; }
.steps li:first-child { border-radius: 16px 4px 4px 16px; }
.steps li:last-child { border-radius: 4px 16px 16px 4px; }
.steps li:hover { background: #1b1916; }
.steps span { font-family: var(--display); color: var(--accent); font-weight: 600; margin-bottom: 72px; }
.steps h3 { font-size: 24px; margin: 0 0 10px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__left > p { color: #c9c4bb; font-size: 18px; max-width: 440px; margin: 24px 0 0; }
.contact__left .btn { margin-top: 36px; }
.contact__details { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.contact__details small, .footer small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.form { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 40px); }
.form__title { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 24px; }
.form__title em { color: var(--accent); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; margin-bottom: 18px; }
.form label > span, .budget legend { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.form input, .form textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; padding: 8px 0 10px; outline: none; transition: border-color 0.3s; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--accent); }
.form input.is-invalid { border-color: #ff4d4d; }
.budget { border: 0; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.budget legend { padding: 0; margin-bottom: 10px; }
.budget label { margin: 0; }
.budget input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.budget label span { display: block; padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; font-size: 14px; cursor: pointer; transition: all 0.3s; }
.budget input:checked + span { background: var(--accent); border-color: var(--accent); color: #0b0b0b; }
.budget input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }

/* ---------- Footer ---------- */
.footer { padding: 80px var(--pad) 24px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols a, .footer__cols span { display: block; color: #c9c4bb; line-height: 1.9; transition: color 0.3s; }
.footer__cols a:hover { color: var(--accent); }
.footer__word { font-family: var(--display); font-weight: 700; font-size: 21.5vw; line-height: 0.8; letter-spacing: -0.07em; margin: 60px 0 24px; text-align: center; background: linear-gradient(180deg, #2a2724, #0b0b0b 95%); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.footer__base { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; gap: 12px; flex-wrap: wrap; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li, .steps li:first-child, .steps li:last-child { border-radius: 12px; min-height: 220px; }
  .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 640px) {
  .nav__cta { display: none; }
  .hero__frame { height: calc(100svh - 88px); }
  .hero__word { top: auto; bottom: 46%; }
  .hero__meta { flex-direction: column; align-items: flex-start; }
  .hero__services { text-align: left; }
  .grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .svc__head { grid-template-columns: 48px 1fr 28px; }
  .svc__body { padding-left: 48px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
