:root {
  --ink: #151515;
  --paper: #F1EFEB;
  --card: #FFFFFF;
  --stone: #7C766E;
  --accent: #C8372D;
  --line: rgba(22, 21, 20, .1);
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(16px, 5vw, 72px);
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
html, body { overflow-x: clip; }
.gallery { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
address { font-style: normal; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, .h1-like {
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.02;
}
h2 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
h1 em, h2 em, .h1-like em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.eyebrow {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 1.1rem;
}
.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--pad); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 28px; border-radius: 12px;
  font-size: .95rem; font-weight: 500; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -12px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35); border: 1px solid var(--line); }
.link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.link svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-content: center; justify-items: center; gap: 22px;
  transition: opacity .8s var(--ease), visibility .8s;
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader img { border-radius: 14px; }
.loader__bar { width: 160px; height: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
.loader__pct { color: rgba(255,255,255,.55); font-size: .8rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  transition: background .5s var(--ease), box-shadow .5s, transform .6s var(--ease);
}
.nav.is-solid { background: rgba(241,239,235,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { width: 46px; height: auto; border-radius: 10px; }
.nav__links { display: flex; gap: 38px; font-size: .95rem; font-weight: 500; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav.on-dark:not(.is-solid) .nav__links { color: #fff; }
.nav__cta { height: 46px; padding: 0 24px; }

/* Hero */
.hero { position: relative; height: 380vh; background: #e9e8e6; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__canvas, .hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { display: none; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.0) 40%, rgba(0,0,0,.55) 100%); opacity: 0; pointer-events: none; }
.hero__copy { position: absolute; inset: 0; pointer-events: none; }
.hero__line {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(48px, 10vh, 110px);
  max-width: 900px;
}
.hero__line h1, .hero__line .h1-like { font-size: clamp(2.6rem, 7vw, 6.4rem); }
.hero__line.is-1 { color: var(--ink); }
.hero__line.is-1 h1 { max-width: 12ch; }
.hero__line.is-2 { color: var(--ink); opacity: 0; bottom: auto; top: clamp(110px, 16vh, 170px); }
.hero__line.is-2 .h1-like { max-width: 14ch; }
.hero__line.is-3 { color: #fff; opacity: 0; }
.hero__line.is-3 a { pointer-events: auto; margin-top: 28px; }
.hero__sub { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255,255,255,.78); margin-top: 18px; max-width: 40ch; }
.hero__scroll {
  position: absolute; right: var(--pad); bottom: clamp(48px, 10vh, 110px);
  display: flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--stone);
}
.hero__scroll span { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll span::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--accent); animation: drip 2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

/* Intro + cards */
.intro { padding-top: clamp(100px, 16vh, 180px); padding-bottom: clamp(60px, 10vh, 120px); }
.intro__head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; margin-bottom: 60px; }
.intro__head p { color: var(--stone); max-width: 46ch; justify-self: end; padding-top: .6rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { perspective: 1200px; text-align: left; height: clamp(250px, 24vw, 330px); }
.card__inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.card:hover .card__inner, .card.is-flipped .card__inner, .card:focus-visible .card__inner { transform: rotateY(180deg); }
.card__face {
  position: absolute; inset: 0; border-radius: var(--radius); background: var(--card);
  padding: 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.25);
}
.card__front { display: flex; flex-direction: column; }
.card__icon svg { width: 30px; height: 30px; }
.card__big { margin-top: auto; font-size: clamp(2.6rem, 3.6vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.card__label { color: var(--stone); font-size: .92rem; margin-top: 10px; }
.card__back { transform: rotateY(180deg); display: flex; align-items: flex-end; font-size: 1.05rem; line-height: 1.45; background: var(--ink); color: #fff; }
.card__back::before { content: ""; position: absolute; top: 28px; left: 28px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Galleries */
.gallery { display: grid; grid-template-columns: minmax(280px, .75fr) 1.6fr; gap: 50px; align-items: center; padding-top: clamp(70px, 11vh, 130px); padding-bottom: clamp(70px, 11vh, 130px); }
.gallery--mirror { grid-template-columns: 1.6fr minmax(280px, .75fr); }
.gallery--mirror .gallery__text { text-align: right; justify-items: end; }
.gallery__text { display: grid; justify-items: start; }
.gallery__text h2 { font-size: clamp(2.3rem, 4.4vw, 4rem); }
.gallery__text > p:not(.eyebrow) { color: var(--stone); margin-top: 22px; max-width: 38ch; }
.arrows { display: flex; gap: 10px; margin-top: 34px; }
.gallery--mirror .btn { margin-top: 26px; }
.arrow { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.arrow:hover { transform: translateY(-2px); }
.arrow svg { width: 20px; height: 20px; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; min-width: 0;
  margin-right: calc(-1 * var(--pad)); padding-right: var(--pad);
}
.gallery--mirror .track { margin-right: 0; padding-right: 0; margin-left: calc(-1 * var(--pad)); padding-left: var(--pad); }
.track::-webkit-scrollbar { display: none; }
.gallery--mirror .track { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 90px); mask-image: linear-gradient(to left, transparent 0, #000 90px); }
.track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.track.is-dragging img { pointer-events: none; }
.slide { flex: 0 0 clamp(270px, 38vw, 620px); scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 3.4; background: #ddd; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); user-select: none; -webkit-user-drag: none; }
.slide:hover img { transform: scale(1.09); }
.slide figcaption { position: absolute; left: 18px; bottom: 16px; color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 8px; background: rgba(22,21,20,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Studio */
.studio { padding-top: clamp(50px, 8vh, 90px); padding-bottom: clamp(60px, 10vh, 120px); }
.studio__box { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border-radius: 28px; overflow: hidden; min-height: 640px; box-shadow: 0 30px 70px -45px rgba(0,0,0,.35); }
.studio__text { padding: clamp(36px, 6vw, 90px); align-self: center; position: relative; z-index: 2; }
.studio__text h2 { margin-bottom: 26px; }
.studio__text p:not(.eyebrow) { color: var(--stone); max-width: 48ch; margin-bottom: 16px; }
.studio__ctas { display: flex; align-items: center; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.studio__img { position: relative; overflow: hidden; }
.studio__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.studio__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 38%); }

/* Method */
.method { padding-top: clamp(60px, 10vh, 120px); padding-bottom: clamp(60px, 10vh, 120px); }
.method__head { margin-bottom: 56px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 30px 26px 10px 0; border-right: 1px solid var(--line); margin-right: 26px; }
.steps li:last-child { border-right: 0; margin-right: 0; }
.steps span { display: block; font-size: .8rem; color: var(--accent); letter-spacing: .1em; margin-bottom: 40px; }
.steps h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 10px; }
.steps p { color: var(--stone); font-size: .98rem; }

/* CTA */
.cta { padding-top: clamp(40px, 6vh, 70px); padding-bottom: clamp(90px, 14vh, 150px); }
.cta__box { position: relative; background: #e3e1dd; border-radius: 28px; min-height: 600px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 120px rgba(255,255,255,.5); }
.cta__text { position: relative; z-index: 2; text-align: center; max-width: 560px; padding: 80px 24px; }
.cta__text p { color: var(--stone); margin: 22px auto 34px; max-width: 46ch; }
.cta__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.tiles { position: absolute; inset: 0; }
.tile { position: absolute; width: clamp(90px, 10vw, 150px); aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: #fff; padding: 8px; box-shadow: 0 30px 50px -25px rgba(0,0,0,.4), inset 0 1px 0 #fff; will-change: transform; }
.tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.tile--logo { padding: 0; background: var(--ink); }
.tile--logo img { border-radius: 0; }
.t1 { left: 4%; top: 10%; rotate: -10deg; }
.t2 { left: 22%; top: -3%; rotate: 8deg; width: clamp(80px, 8vw, 120px); }
.t3 { left: 6%; bottom: 8%; rotate: 6deg; }
.t4 { right: 22%; top: 2%; rotate: -6deg; width: clamp(80px, 8vw, 120px); }
.t5 { right: 4%; top: 18%; rotate: 12deg; }
.t6 { right: 15%; bottom: 6%; rotate: -12deg; }
.t7 { left: 28%; bottom: -4%; rotate: -4deg; width: clamp(70px, 7vw, 105px); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.62); padding-top: 90px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 70px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand img { margin-bottom: 20px; margin-left: -10px; }
.footer__brand p { max-width: 34ch; }
.footer h3 { color: #fff; font-size: .95rem; font-weight: 500; margin-bottom: 18px; }
.footer a { display: block; margin-bottom: 10px; transition: color .3s; }
.footer a:hover { color: #fff; }
.footer__contact { text-align: right; }
.footer__contact a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.25); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; padding-bottom: 30px; font-size: .82rem; color: rgba(255,255,255,.4); }

/* Reveal (JS adds .js) */
.js .reveal { opacity: 0; transform: translateY(34px); }

/* Responsive */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(2) { border-right: 0; margin-right: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__contact { text-align: left; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__logo img { width: 40px; }
  .nav__cta { height: 42px; padding: 0 18px; font-size: .9rem; }
  .hero { height: 320vh; }
  .hero__line { bottom: 90px; }
  .hero__scroll { left: var(--pad); right: auto; bottom: 30px; }
  .intro__head { grid-template-columns: 1fr; gap: 22px; margin-bottom: 40px; }
  .intro__head p { justify-self: start; padding-top: 0; }
  .card { height: 220px; }
  .card__face { padding: 22px; }
  .gallery, .gallery--mirror { grid-template-columns: 1fr; gap: 34px; }
  .gallery--mirror .gallery__text { order: -1; text-align: left; justify-items: start; }
  .gallery--mirror .track { margin-left: 0; padding-left: 0; margin-right: calc(-1 * var(--pad)); padding-right: var(--pad); -webkit-mask-image: none; mask-image: none; }
  .arrows { display: none; }
  .slide { flex-basis: 82vw; }
  .studio__box { grid-template-columns: 1fr; min-height: 0; }
  .studio__img { height: 340px; order: -1; }
  .studio__img::before { background: linear-gradient(0deg, #fff 0%, rgba(255,255,255,0) 40%); }
  .cta__box { min-height: 640px; }
  .tile { width: 74px; border-radius: 16px; padding: 5px; }
  .tile img { border-radius: 11px; }
  .t2, .t4 { width: 64px; }
  .t7 { display: none; }
  .cta__text { padding: 170px 22px; }
  .t1 { left: 4%; top: 3%; }
  .t2 { left: 40%; top: -2%; }
  .t4 { right: 26%; top: auto; bottom: 2%; }
  .t5 { right: 4%; top: 6%; }
  .t3 { bottom: 4%; }
  .t6 { right: 4%; bottom: 7%; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { height: 200px; }
  .card__face { padding: 18px; border-radius: 18px; }
  .card__big { font-size: 2.2rem; }
  .card__label { font-size: .82rem; line-height: 1.35; }
  .card__back { font-size: .88rem; }
  .card__back::before { top: 18px; left: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .steps span { margin-bottom: 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .btn { height: 50px; padding: 0 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero { height: 100vh; height: 100svh; }
  .hero__canvas { display: none; }
  .hero__poster { display: block; }
  .hero__shade { opacity: 1; }
  .hero__line.is-1, .hero__line.is-2, .hero__scroll { display: none; }
  .hero__line.is-3 { opacity: 1; }
}

/* Lightbox 4K */
.slide { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(14,13,12,.94); display: grid; place-items: center; padding: 4vw; opacity: 0; transition: opacity .5s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 14px; object-fit: contain; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 3vh; text-align: center; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; }
.lightbox__close svg { width: 22px; height: 22px; }
