/* ===== Tokens ===== */
:root {
  --ink: #111111;
  --ink-soft: #3a3833;
  --paper: #ffffff;
  --taupe: #8b8372;
  --taupe-light: #a7a095;
  --peach: #f4dcc3;
  --line: #e6e3dd;
  --muted: #6f6a60;
  --radius: 4px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1; margin: 0; letter-spacing: .01em; text-transform: uppercase; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 .6em;
}
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-title { font-size: clamp(40px, 6vw, 72px); margin-bottom: .45em; }
.section-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .section-title { margin-bottom: .2em; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px;
  font-family: var(--f-display); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; cursor: pointer; transition: background .2s, color .2s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; }

.handle { text-decoration: underline; text-underline-offset: 3px; }
.handle:hover { text-decoration-thickness: 2px; }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.logo span { font-weight: 500; color: var(--taupe); }
.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav a {
  font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--ink); transition: right .25s; }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer; margin-right: -10px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(52px, 7.6vw, 104px); font-weight: 700; margin-bottom: .3em; }
.hero__sub { font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.7vw, 22px); line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; max-width: 34em; margin: 0 0 1em; }
.hero__lead { color: var(--ink-soft); max-width: 440px; margin: 1.2em 0 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 22px); padding: clamp(20px, 3vw, 36px) 0 0 clamp(20px, 3vw, 36px); }
.hero__media::before { content: ""; position: absolute; left: 0; top: 0; width: 42%; height: 82%; background: var(--taupe); z-index: -1; }
.hero__media .tile:nth-child(2) { transform: translateY(clamp(16px, 3vw, 40px)); }

/* ===== Tiles (media) ===== */
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; margin: 0;
  aspect-ratio: 9 / 16; overflow: hidden; background: #ece9e3; cursor: zoom-in;
  border-radius: 2px;
}
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tile:hover img, .tile:hover video { transform: scale(1.03); }
.tile--contain { background: #fff; }
.tile--contain img { object-fit: contain; }
.tile--video { cursor: pointer; }
.tile__badge {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(17,17,17,.55); display: grid; place-items: center; pointer-events: none;
}
.tile__badge svg { width: 14px; height: 14px; fill: #fff; margin-left: 2px; }
.tile:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ===== About ===== */
.about__grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__photo { background: var(--taupe); width: 100%; max-width: 400px; justify-self: center; }
.about__photo-top { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; text-decoration: none; font-size: 15px; }
.about__photo-top svg { width: 22px; height: 22px; flex: none; }
.about__photo-top span { text-decoration: underline; text-underline-offset: 3px; }
.about__photo img { width: 100%; aspect-ratio: 728 / 963; object-fit: cover; }
.about__title { font-size: clamp(44px, 5.6vw, 72px); font-weight: 700; margin-bottom: .5em; }
.about__text p { color: var(--ink-soft); }
.about__text strong { color: var(--ink); font-weight: 700; }

/* ===== Stats ===== */
.stats { margin-top: clamp(64px, 9vw, 112px); }
.stats__title { text-align: center; font-size: clamp(36px, 4.6vw, 56px); margin-bottom: clamp(28px, 4vw, 48px); }
.stats__grid { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.stats__profile { border: 1px solid var(--line); }
.stats__profile img { width: 100%; }
.stat-card h3 { font-family: var(--f-body); text-transform: none; font-size: 17px; font-weight: 600; letter-spacing: .02em; margin: 0 0 14px; }
.stat-card + .stat-card { margin-top: 32px; }
.bars { list-style: none; padding: 0; margin: 0; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-bottom: 12px; font-size: 14px; }
.bars .bar { grid-column: 1 / -1; height: 6px; background: #efece7; border-radius: 3px; overflow: hidden; }
.bars .bar i { display: block; height: 100%; width: 0; background: var(--taupe); border-radius: 3px; transition: width 1.1s cubic-bezier(.2,.7,.2,1); }
.stats.is-visible .bars .bar i { width: var(--v); }
.bars b { font-weight: 600; }
.stats__kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.kpi { flex: 1 1 120px; background: var(--taupe); color: #fff; padding: 14px 16px; }
.kpi strong { display: block; font-family: var(--f-display); font-size: 34px; font-weight: 600; line-height: 1; }
.kpi span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* ===== Themes ===== */
.themes { background: #f7f5f1; position: relative; }
.themes::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: clamp(10px, 3vw, 48px); background: var(--taupe); }
.themes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); counter-reset: t; }
.theme { background: #fff; padding: 28px 26px 24px; border-top: 3px solid var(--taupe); }
.theme__num { font-family: var(--f-display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--taupe-light); }
.theme h3 { font-family: var(--f-body); text-transform: none; font-size: 18px; font-weight: 700; letter-spacing: .04em; margin: 14px 0 8px; line-height: 1.3; }
.theme p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ===== Portfolio cases ===== */
.portfolio-intro { padding-bottom: 0; }
.case { position: relative; padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); background: var(--taupe); color: #fff; }
.case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--band, 52%); background: #fff; }
.case > .container { position: relative; }
.case__head { text-align: center; color: var(--ink); margin-bottom: clamp(24px, 3vw, 36px); }
.case__title { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: .2em; overflow-wrap: anywhere; }
.case__title--long { font-size: clamp(26px, 4.2vw, 52px); }
.case__link { font-weight: 600; font-size: 15px; letter-spacing: .02em; text-decoration: underline; text-underline-offset: 3px; }
.case__note { color: var(--ink-soft); max-width: 640px; margin: 10px auto 0; font-size: 15px; }
.case__rows { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.case__row { display: flex; justify-content: center; gap: clamp(20px, 3vw, 48px); }
.group { flex: 0 1 auto; min-width: 0; }
.group__tiles { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 210px)); gap: clamp(8px, 1.2vw, 14px); }
.group__label { font-family: var(--f-display); font-weight: 500; font-size: 18px; letter-spacing: .2em; text-transform: uppercase; margin: 16px 0 4px; }
.group__desc { font-size: 14px; letter-spacing: .06em; opacity: .9; margin: 0; max-width: 46ch; }
.group--stack .group__tiles { display: flex; flex-direction: column; width: 260px; }
.group--stack .tile { aspect-ratio: auto; cursor: zoom-in; }
.group--stack .tile img { height: auto; }
.case--alt { background: #fff; color: var(--ink); }
.case--alt::before { display: none; }
.case--alt .group__desc { color: var(--ink-soft); }
.case + .case--alt, .case--alt + .case { border-top: 0; }

/* ===== Partners ===== */
.partners__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.partners__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 20px 0 20px 20px; }
.partners__photos::before { content: ""; position: absolute; inset: 0 40% 0 0; background: var(--taupe); z-index: -1; }
.partners__photos .tile { aspect-ratio: 9 / 16; }
.partners__title { font-size: clamp(40px, 5.4vw, 68px); margin-bottom: .9em; }
.logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(24px, 3.4vw, 48px) clamp(16px, 3vw, 40px); list-style: none; padding: 0; margin: 0; }
.logos a { height: 64px; display: flex; align-items: center; justify-content: center; }
.logos img { max-height: 52px; width: auto; max-width: 100%; mix-blend-mode: multiply; transition: transform .2s, opacity .2s; }
.logos a:hover img { transform: translateY(-2px); opacity: .8; }

/* ===== Packages ===== */
.packages { background: #f7f5f1; }
.packages__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); max-width: 960px; margin: 0 auto; }
.package__label { text-align: center; font-family: var(--f-display); font-weight: 500; font-size: 22px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 16px; }
.package { background: var(--taupe); color: #fff; padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px); list-style: none; margin: 0; }
.package li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.22); letter-spacing: .08em; }
.package li:last-child { border-bottom: 0; }
.package b { font-weight: 700; }
.package .price { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: .04em; white-space: nowrap; }
.packages__note { text-align: center; max-width: 640px; margin: clamp(28px, 4vw, 44px) auto 0; color: var(--ink-soft); }
.packages__note strong { color: var(--ink); }

/* ===== Contact ===== */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.contact__side { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; padding: clamp(48px, 6vw, 80px) 0 clamp(48px, 6vw, 80px) var(--gutter); }
.contact__side::before { content: ""; position: absolute; inset: 0 32% 0 0; background: var(--taupe); }
.contact__photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: min(100%, 380px); }
.contact__body { padding: clamp(56px, 8vw, 110px) var(--gutter); display: flex; flex-direction: column; justify-content: center; }
.contact__title { font-size: clamp(64px, 11vw, 150px); font-weight: 700; margin-bottom: .12em; }
.contact__sub { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1.6em; }
.contact__list { list-style: none; padding: 0; margin: 0 0 2em; display: grid; gap: 10px; font-size: 18px; letter-spacing: .08em; }
.contact__list a { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.contact__list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact__list svg { width: 20px; height: 20px; flex: none; }
.contact__list .k { color: var(--muted); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: #cfcac1; padding: 26px 0; font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer a { color: #fff; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,12,12,.92); display: none; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: min(92vw, 1100px); max-height: 100%; display: flex; }
.lightbox__stage img, .lightbox__stage video { max-width: 100%; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); width: auto; height: auto; object-fit: contain; }
.lightbox__close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .tile video, .bars .bar i { transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__profile { grid-row: span 2; }
  .themes__grid { grid-template-columns: repeat(2, 1fr); }
  .case__row { flex-wrap: wrap; }
  .case::before { height: 34%; }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  body { font-size: 15px; }
  .burger { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .header.is-open { background: #fff; border-color: var(--line); }
  .header.is-open .nav { opacity: 1; transform: none; visibility: visible; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; gap: 8px; padding: 14px 0 0 14px; }
  .hero__title { font-size: clamp(44px, 13vw, 60px); }
  .hero__media .tile:nth-child(2) { transform: translateY(14px); }
  .hero__lead { margin: 1em 0 1.4em; }
  .hero__actions .btn { flex: 1 1 140px; padding: 0 14px; letter-spacing: .1em; white-space: nowrap; }

  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 420px; }

  .stats__grid { grid-template-columns: 1fr; }
  .stats__profile { grid-row: auto; max-width: 320px; margin: 0 auto; }

  .themes__grid { grid-template-columns: 1fr; }
  .theme { padding: 22px 20px 20px; }
  .theme__num { font-size: 36px; }

  /* cases: horizontal swipe galleries */
  .case { padding-top: 44px; }
  .case::before { height: 300px; }
  .case__row { flex-direction: column; flex-wrap: nowrap; gap: 32px; }
  .case__row .group, .case__row .group[style*="--n:4"], .case__row .group[style*="--n:5"] { flex: none; width: 100%; }
  .group__tiles {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none;
  }
  .group__tiles::-webkit-scrollbar { display: none; }
  .group__tiles > .tile { flex: 0 0 auto; width: 58vw; max-width: 260px; scroll-snap-align: start; }
  .group[style*="--n:1"] .group__tiles > .tile { width: 64vw; }
  .group__label { margin-top: 14px; }

  .partners__grid { grid-template-columns: 1fr; }
  .partners__photos { max-width: 360px; }
  .logos { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
  .logos a { height: 56px; }
  .logos img { max-height: 44px; }

  .packages__grid { grid-template-columns: 1fr; }
  .package li { padding: 12px 0; font-size: 14px; }
  .package .price { font-size: 22px; }

  .contact { grid-template-columns: 1fr; }
  .contact__side { padding: 28px 0 0 var(--gutter); justify-content: flex-start; }
  .contact__side::before { inset: 0 24% 40px 0; }
  .contact__photos { grid-template-columns: repeat(4, 1fr); width: calc(100% - var(--gutter)); gap: 5px; }
  .contact__body { padding-top: 40px; }
  .group--stack .group__tiles { width: 100%; max-width: 420px; margin: 0; padding: 0; flex-direction: column; overflow: visible; }
  .group--stack .group__tiles > .tile { width: 100%; max-width: none; }
  .contact__list { font-size: 16px; }
  .contact__actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .logos { grid-template-columns: 1fr 1fr; gap: 20px 12px; }

}
