:root {
  --bg: #0b0b0c;
  --bg-alt: #111113;
  --surface: #17171a;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f0ec;
  --text-soft: #cfccc5;
  --muted: #9b988f;
  --accent: #341e4a; /* fills only: too dark to carry text on this background */
  --accent-hover: #4a2d68;
  --accent-ink: #fff;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: "Exo 2", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-color: var(--line-strong) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--text);
}
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Small uppercase role used for metadata: categories, contact terms, partner domain */
.tile-cat, .lb-cat, .contact-list dt, .partner-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--gutter);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 11, 12, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); padding-block: 14px; }
.brand { text-decoration: none; }
.brand-name { font-weight: 600; font-size: 17px; letter-spacing: 0.02em; white-space: nowrap; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { text-decoration: none; font-size: 15px; color: var(--muted); letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.lang button { background: none; border: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.menu-btn { display: none; background: none; border: 0; width: 36px; height: 36px; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 120px var(--gutter) clamp(72px, 12vh, 136px); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; background: #000; }
.hero-media img, .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease; transform: scale(1.04);
}
.hero-media img.on { opacity: 1; animation: kenburns 9s linear forwards; }
.hero-media video { opacity: 1; transform: none; }
@keyframes kenburns { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.7) 0%, rgba(11,11,12,0.35) 35%, rgba(11,11,12,0.7) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.8) 0%, rgba(11,11,12,0.2) 70%);
}
.hero-inner { max-width: 100%; }
.hero-title {
  font-weight: 300; font-size: clamp(30px, 4vw, 60px); line-height: 1.1; letter-spacing: -0.01em;
  display: flex; flex-wrap: wrap; column-gap: 0.28em;
}
.hero-title span { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(6px); animation: rise 1.1s var(--ease) forwards; }
.hero-title span:nth-child(2) { animation-delay: 0.1s; }
.hero-title span:nth-child(3) { animation-delay: 0.2s; }
.hero-title span:nth-child(4) { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.hero-sub { max-width: 52ch; margin-top: 28px; font-size: clamp(16px, 1.35vw, 19px); font-weight: 300; line-height: 1.7; color: var(--text-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 500; font-size: 15px; letter-spacing: 0.03em; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: rgba(255, 255, 255, 0.14); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); background: rgba(11, 11, 12, 0.5); }
.btn-ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; transition: border-color 0.2s, background 0.2s; }
.icon-btn:hover { border-color: var(--text); background: rgba(255,255,255,0.06); }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 160px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-alt > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-inline: auto; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 820px; }
.section-alt > .section-head { max-width: calc(var(--max) - 2 * var(--gutter)); }
.section h2 { font-weight: 300; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -0.01em; }
.lead { margin-top: 20px; color: var(--muted); font-size: 18px; font-weight: 300; max-width: 52ch; }

/* ---------- Work ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button {
  background: none; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 8px 18px; font-size: 14px; letter-spacing: 0.02em; color: var(--muted); transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.filters button:hover { color: var(--text); border-color: var(--text); }
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Justified rows: each tile's width grows in proportion to its aspect ratio,
   so wide videos and vertical reels share a row at the same height. */
.work-grid { --row: clamp(200px, 20vw, 280px); display: flex; flex-wrap: wrap; gap: clamp(12px, 1.6vw, 24px); }
.work-grid::after { content: ""; flex: 1e6 1 0; } /* keeps the last row from stretching */
.tile {
  position: relative; display: block; min-width: 0; padding: 0; border: 0; background: var(--surface);
  color: inherit; text-decoration: none; text-align: left; border-radius: var(--radius); overflow: hidden;
}
.tile.wide { flex: 1.7778 1 calc(1.7778 * var(--row)); aspect-ratio: 16 / 9; }
.tile.tall { flex: 0.5625 1 calc(0.5625 * var(--row)); aspect-ratio: 9 / 16; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.5s; filter: saturate(0.9) brightness(0.85); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85)); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.tile-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(14px, 1.6vw, 22px); }
.tile.tall .tile-info { padding: 14px; }
.tile-cat { color: var(--text-soft); }
.tile-title { display: block; margin-top: 6px; font-size: clamp(16px, 1.4vw, 20px); font-weight: 500; line-height: 1.25; }
.tile.tall .tile-title { font-size: 15px; }
.tile-desc { display: block; margin-top: 2px; font-size: 14px; font-weight: 300; color: rgba(255,255,255,0.72); }
.tile.tall .tile-desc { font-size: 13px; }
.play {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.3);
  opacity: 0; transform: scale(0.85); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s;
}
.play::before { content: ""; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.play-ext::before { content: none; }
.tile:hover .play, .tile:focus-visible .play { opacity: 1; transform: none; background: var(--accent); border-color: var(--accent); }
.tile.hide { display: none; }
.tile-ig { background: radial-gradient(circle at 30% 20%, #2a2a2e, #121214 70%); }
.tile-ig .ig-mark { position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; font-weight: 500; letter-spacing: 0.2em; color: var(--muted); }

/* ---------- Services ---------- */
/* Service cards link to their own pages; columns are separated by hairlines drawn with the grid gap */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.service { display: flex; flex-direction: column; padding: 32px 24px 28px; background: var(--bg-alt); color: inherit; text-decoration: none; transition: background 0.3s; }
.service:hover { background: var(--surface); }
.service h3 { margin-bottom: 12px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; line-height: 1.2; }
.service p { color: var(--muted); font-size: 15px; font-weight: 300; }
.service-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--text-soft); }
.service-more svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.service:hover .service-more svg { transform: translateX(4px); }

/* ---------- Service pages ---------- */
.subpage .nav { background: rgba(11, 11, 12, 0.9); border-color: var(--line); }
.page-hero { max-width: var(--max); margin: 0 auto; padding: clamp(130px, 16vw, 200px) var(--gutter) clamp(48px, 6vw, 80px); }
.crumbs { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page-hero h1 { font-weight: 300; font-size: clamp(38px, 5.4vw, 76px); line-height: 1.05; letter-spacing: -0.015em; max-width: 16ch; }
.page-lead { margin-top: 24px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; line-height: 1.7; color: var(--text-soft); }
.page-hero .hero-cta { margin-top: 36px; }
.page-section { padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.page-section > h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(24px, 3vw, 40px); }
.offer-item { scroll-margin-top: 100px; }
.offer-item h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; margin-bottom: 10px; }
.offer-item p { color: var(--muted); font-weight: 300; max-width: 46ch; }
.page-section .process { margin-top: 0; }
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 22px; color: var(--text-soft); font-weight: 300; max-width: 65ch; }
.page-cta .hero-cta { margin-top: 28px; }
.related { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 48px; font-size: 15px; color: var(--muted); }
.related a { color: var(--text-soft); }
.related a:hover { color: var(--text); }

.process { list-style: none; padding: 0; margin: clamp(72px, 9vw, 120px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process li { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line-strong); position: relative; }
.process li::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: var(--text); transition: width 1.2s var(--ease); }
.process.in li::before { width: 100%; }
.process.in li:nth-child(2)::before { transition-delay: 0.25s; }
.process.in li:nth-child(3)::before { transition-delay: 0.5s; }
.process.in li:nth-child(4)::before { transition-delay: 0.75s; }
.process .step { color: var(--muted); font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.process strong { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; line-height: 1.1; }
.process span:last-child { color: var(--muted); font-size: 15px; font-weight: 300; }

/* ---------- Partners ---------- */
.partner {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(340px, 42vw, 560px); padding: clamp(24px, 3.4vw, 52px);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface);
  transition: border-color 0.3s;
}
.partner-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transition: transform 1.2s var(--ease); }
/* Darkens the bright studio wall where the text sits */
.partner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, rgba(11,11,12,0.92) 0%, rgba(11,11,12,0.55) 45%, rgba(11,11,12,0.15) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.6) 0%, rgba(11,11,12,0) 60%);
}
.partner:hover { border-color: var(--line-strong); }
.partner:hover .partner-bg { transform: scale(1.03); }
.partner-label { position: absolute; top: clamp(20px, 2.6vw, 36px); left: clamp(24px, 3.4vw, 52px); display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); }
.partner-label svg { width: 14px; height: 14px; }
.partner h3 { margin: 0 0 12px; font-size: clamp(26px, 3vw, 40px); font-weight: 300; }
.partner p { color: var(--text-soft); font-weight: 300; max-width: 46ch; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.company { margin-top: 44px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.company-name { font-size: clamp(20px, 1.9vw, 24px); font-weight: 500; line-height: 1.3; }
.company-code { margin-top: 4px; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.contact-list { margin: 22px 0 0; display: grid; gap: 22px; }
.contact-list div { display: grid; gap: 4px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-size: clamp(20px, 1.9vw, 24px); font-weight: 400; line-height: 1.3; }
.contact-list a { text-decoration: none; background: linear-gradient(var(--text), var(--text)) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--ease); }
.contact-list a:hover { background-size: 100% 1px; }

.form { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 14px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 14px; font: 400 16px/1.4 var(--font); transition: border-color 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--text); }
.field [aria-invalid="true"] { border-color: var(--text); border-width: 2px; padding: 12px 13px; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status.ok, .form-status.err { color: var(--text); }
.form-note { font-size: 13px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { display: grid; gap: 18px; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; letter-spacing: 0.04em; }
.footer-links, .footer-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-meta { justify-content: space-between; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { width: min(1200px, 92vw); max-height: 92vh; padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.lightbox::backdrop { background: rgba(5,5,6,0.94); }
.lightbox.vertical { width: min(420px, 92vw); }
.lb-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.lightbox.vertical .lb-frame { aspect-ratio: 9 / 16; max-height: 82vh; margin-inline: auto; }
.lb-frame iframe, .lb-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.lb-caption { margin-top: 14px; font-size: 18px; font-weight: 400; }
.video-note { margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.video-note a { color: var(--text-soft); }
.filters + .video-note { margin-top: -14px; }
.page-section > h2 + .video-note { margin-top: calc(-1 * clamp(14px, 2vw, 28px)); }
.lb-cat { display: block; color: var(--muted); margin-bottom: 4px; }
.lb-desc { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; font-weight: 300; }
.lb-close { position: absolute; top: -52px; right: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: none; }
.lb-close:hover { border-color: var(--text); }

/* ---------- Responsive ---------- */
@media (min-width: 821px) {
  .hero-title { white-space: nowrap; flex-wrap: nowrap; }
}
@media (max-width: 1080px) {
  .process { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 820px) {
  .services { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 8px;
    padding: 0 var(--gutter); background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .nav-links a { font-size: 40px; font-weight: 300; line-height: 1.25; color: var(--text); }
  .nav.open .nav-links { opacity: 1; pointer-events: auto; }
  /* backdrop-filter makes the header the frame for fixed children, which squeezed the full-screen
     menu into the header bar after scrolling; drop it while the menu is open */
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process, .services { grid-template-columns: 1fr; }
  .service { padding: 24px 0; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding-bottom: 88px; }
  .work-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; }
  .work-grid::after { content: none; }
  .tile.wide { grid-column: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title span { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}
