/* ==========================================================================
   Silanes Design — portfólio
   ========================================================================== */

:root {
  --ink: #0c0c0c;
  --ink-2: #151515;
  --paper: #f1eee8;
  --paper-2: #e6e2da;
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --g: clamp(16px, 2.2vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --bg: var(--ink);
  --fg: var(--paper);
  --line: color-mix(in srgb, currentColor 16%, transparent);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
body.is-light { --bg: var(--paper); --fg: var(--ink); }
body.is-loading { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--fg); color: var(--bg); }

.wrap { padding-inline: var(--g); }
.label {
  margin: 0 0 28px;
  font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  opacity: .55;
}
.title {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 136px);
  font-weight: 600; line-height: .92; letter-spacing: -0.05em;
}
.title em { letter-spacing: -0.025em; padding-right: .04em; }

/* ---------- grain & cursor ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 150; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(4%, -7%); }
  60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, 2%); } 100% { transform: translate(0, 0); }
}

.cursor {
  position: fixed; left: 0; top: 0; z-index: 210; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), background-color .3s, opacity .3s;
  will-change: transform;
}
.cursor__label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink); opacity: 0; transition: opacity .25s; white-space: nowrap; }
.cursor.is-label { width: 104px; height: 104px; mix-blend-mode: normal; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link { width: 48px; height: 48px; }
.cursor.is-hidden { opacity: 0; }
@media (hover: none) { .cursor { display: none; } }
@media (hover: hover) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- loader & curtain ---------- */
.loader {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: transform 1.15s var(--ease-io);
}
.loader__mark { width: min(30vw, 240px); aspect-ratio: 1794 / 1271; clip-path: inset(calc(100% - var(--p, 0) * 100%) 0 0 0); transition: clip-path .4s var(--ease); }
.loader__mark svg { width: 100%; height: 100%; }
.loader__count {
  position: absolute; right: var(--g); bottom: calc(var(--g) - .12em);
  font-family: var(--serif); font-style: italic; font-size: clamp(72px, 13vw, 220px); line-height: 1; letter-spacing: -0.03em;
  overflow: hidden;
}
.loader__foot { position: absolute; left: var(--g); bottom: var(--g); display: flex; gap: 32px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.loader.is-done { transform: translateY(-100%); }
.loader.is-done .loader__mark { transform: translateY(-30vh); transition: transform 1.15s var(--ease-io); }

.curtain {
  position: fixed; inset: 0; z-index: 290; pointer-events: none;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transform: translateY(101%);
}
.curtain__mark { width: min(16vw, 120px); aspect-ratio: 1794 / 1271; opacity: 0; transition: opacity .4s .2s; }
.curtain.is-covering { transform: translateY(0); transition: transform .8s var(--ease-io); pointer-events: all; }
.curtain.is-covering .curtain__mark { opacity: 1; }
.curtain.is-out { transform: translateY(-101%); transition: transform 1s var(--ease-io); }
.curtain.is-out .curtain__mark { opacity: 0; transition-delay: 0s; }
.no-anim, .no-anim * { transition: none !important; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 120;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--g);
  color: var(--paper); mix-blend-mode: difference;
  font-size: 14px; font-weight: 500;
}
.nav.is-solid { mix-blend-mode: normal; }
/* Faixa atrás do menu: aparece ao rolar, na cor da seção; some sobre os blocos coloridos dos cases. */
.nav-bg { position: fixed; inset: 0 0 auto; height: var(--nav-h); z-index: 119; pointer-events: none; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--fg) 10%, transparent); opacity: 0; transition: opacity .4s var(--ease), background-color .8s var(--ease); }
body.is-scrolled .nav-bg { opacity: 1; }
body.is-scrolled .nav.is-solid ~ .nav-bg, body.menu-open .nav-bg { opacity: 0; }
.nav.is-solid .nav__status i { animation: none; }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
.nav__mark { width: 40px; aspect-ratio: 1794 / 1271; transition: transform .6s var(--ease); }
.nav__brand:hover .nav__mark { transform: rotate(-8deg) scale(1.06); }
.nav__name { font-weight: 600; letter-spacing: -0.02em; font-size: 16px; }
.nav__name em { font-size: 17px; margin-left: 4px; opacity: .8; }
.nav__links { display: flex; gap: 34px; }
.nav__links a, .nav__status { position: relative; }
.nav__links a::after, .nav__status::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__status:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links sup { font-size: 9px; margin-left: 2px; opacity: .6; }
.nav__status { justify-self: end; display: inline-flex; align-items: center; gap: 10px; }
.nav__status i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 238, 232, .7); } 70% { box-shadow: 0 0 0 10px rgba(241, 238, 232, 0); } 100% { box-shadow: 0 0 0 0 rgba(241, 238, 232, 0); } }
.nav__menu { display: none; justify-self: end; width: 40px; height: 40px; position: relative; }
.nav__menu span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.nav__menu span:first-child { top: 16px; } .nav__menu span:last-child { top: 24px; }
body.menu-open .nav__menu span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 110; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--g) var(--g);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(48px, 13vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; padding: 6px 0; border-bottom: 1px solid var(--line); }
.menu nav sup { font-size: 12px; font-weight: 500; letter-spacing: 0; vertical-align: top; margin-right: 10px; opacity: .5; }
.menu__foot { display: flex; justify-content: space-between; font-size: 14px; opacity: .7; }

/* ---------- split text & reveals ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .12em .1em 0; margin: 0 -.12em -.1em 0; }
.wi { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.is-in .wi, .is-in.wi { transform: none; }
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); }
[data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }
[data-reveal="img"] img, [data-reveal="img"] video { transform: scale(1.25); transition: transform 1.8s var(--ease); }
[data-reveal="img"].is-in img, [data-reveal="img"].is-in video { transform: scale(1); }

/* ---------- buttons ---------- */
.btn-circle {
  position: relative; flex: none;
  width: 9.5rem; height: 9.5rem; border-radius: 50%;
  border: 1px solid currentColor;
  display: grid; place-items: center; text-align: center;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  overflow: hidden; isolation: isolate;
}
.btn-circle::before {
  content: ''; position: absolute; inset: -1px; border-radius: 50%; background: currentColor; z-index: -1;
  transform: translateY(101%); transition: transform .7s var(--ease);
}
.btn-circle span { transition: color .5s var(--ease); }
.btn-circle:hover::before { transform: none; }
.btn-circle:hover span { color: var(--bg); }
.btn-circle--lg { width: 13rem; height: 13rem; font-size: 16px; }

.chip {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent); font-size: 13px; white-space: nowrap;
}
.btn-pill {
  display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 26px; border-radius: 999px;
  background: currentColor; font-size: 15px; font-weight: 600; position: relative; overflow: hidden;
}
.btn-pill span { color: var(--pill-ink, var(--bg)); position: relative; z-index: 1; display: inline-flex; gap: 12px; }
.btn-pill i { font-style: normal; display: inline-block; transition: transform .6s var(--ease); }
.btn-pill:hover i, a:hover .btn-pill i { transform: translateX(6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding-top: calc(var(--nav-h) + 6vh);
}
.hero > * { min-width: 0; }
.hero__top { display: grid; grid-template-columns: 1fr 1fr; align-items: start; padding-inline: var(--g); gap: 24px; }
.hero__kicker { margin: 6px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; opacity: .8; }
.hero__kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hero__lede {
  margin: 0; justify-self: end; text-align: right; max-width: 15ch;
  font-size: clamp(28px, 3.3vw, 60px); line-height: 1; letter-spacing: -0.035em; font-weight: 500;
}
.hero__reel { display: grid; place-items: center; align-content: center; gap: 22px; padding: 4vh 0 3vh; --h: clamp(200px, 34vh, 400px); }
/* Leque com um card por projeto: abre a partir do centro quando a página fica pronta. */
.deck { display: flex; justify-content: center; align-items: center; padding-bottom: 36px; }
.deck__card {
  position: relative; flex: none; display: block; height: var(--h); aspect-ratio: 9 / 16;
  margin-inline: calc(var(--h) * -0.09); border-radius: 16px; overflow: hidden; background: #1a1a1a;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .06);
  transform: translateX(calc(var(--o) * -62%)) translateY(60px) scale(.9); opacity: 0;
  transition: transform 1.3s var(--ease), opacity .9s var(--ease);
  transition-delay: .15s;
}
body.is-ready .deck__card { transform: translateY(var(--y)) rotate(var(--r)); opacity: 1; }
body.is-ready .deck__card:hover { transform: translateY(calc(var(--y) - 22px)) rotate(0deg) scale(1.03); z-index: 10 !important; transition-duration: .7s; transition-delay: 0s; }
.deck__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck__card--logo { background: #fff; }
.deck__card--logo img { transform: scale(1.14); }
.reel__tag { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .5; }

.hero__bottom { padding-inline: var(--g); }
.hero__meta {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 14px 0; border-top: 1px solid var(--line);
  font-size: 13px; opacity: .7;
}
.hero__scroll i { font-style: normal; display: inline-block; animation: bob 2s var(--ease) infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.hero__word {
  margin: 0; padding: .04em 0 .06em; line-height: .8; font-weight: 700;
  overflow: hidden; white-space: nowrap;
}
/* Texto que ocupa a largura toda: o espaçamento fica no próprio .fit para escalar junto. */
.fit { display: inline-block; white-space: nowrap; font-size: 20vw; letter-spacing: -0.06em; }
.hero__word .fit { letter-spacing: -0.065em; }
.hero__word .char:last-child { margin-right: .08em; }
.hero__word .char { display: inline-block; transform: translateY(102%); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * 60ms + .1s); }
body.is-ready .hero__word .char { transform: none; }

/* ---------- manifesto ---------- */
.manifesto { padding: 20vh 0 18vh; }
.manifesto__text {
  margin: 0; font-size: clamp(32px, 4.7vw, 88px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 500;
}
.manifesto__text em { letter-spacing: -0.02em; }
.mw { opacity: .14; transition: opacity .3s linear; }
.pill {
  display: inline-block; width: 1.75em; height: .82em; border-radius: 999px; overflow: hidden;
  vertical-align: -0.05em; margin: 0 .06em; background: #222;
}
.pill img { width: 100%; height: 100%; object-fit: cover; }
.manifesto__foot { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 12vh; }
.manifesto__foot p { margin: 0; max-width: 40ch; font-size: 17px; opacity: .65; }

/* ---------- work / stack ---------- */
.work { padding: 18vh 0 12vh; }
.work__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: 8vh; }
.work__head .label { grid-column: 1 / -1; }
.work__count { margin: 0; text-align: right; font-size: 14px; line-height: 1.3; opacity: .7; }
.work__count span { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; display: block; letter-spacing: -0.03em; }

.stack { padding-inline: var(--g); }
.card-wrap { position: sticky; top: calc(var(--nav-h) + 2vh); height: calc(100svh - var(--nav-h) - 6vh); margin-bottom: 5vh; }
.card {
  position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr); gap: clamp(20px, 3vw, 56px);
  height: 100%; padding: clamp(20px, 2.6vw, 44px); border-radius: 26px;
  background: var(--c); color: var(--k); overflow: hidden;
  transform-origin: 50% 0; will-change: transform;
}
.card::after { content: ''; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }
.card__info { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; }
.card__top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; opacity: .75; }
.card__name { margin: 0; font-size: clamp(48px, 6.6vw, 124px); font-weight: 600; line-height: .9; letter-spacing: -0.055em; }
.card__tagline { margin: 18px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 36px); line-height: 1.05; opacity: .9; max-width: 18ch; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.card__media { align-self: center; position: relative; min-width: 0; }
.card__media--wide { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; }
.card__media--wide img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media--wide img { transform: scale(1.04); }
.card__media--phones { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 1.4vw, 22px); height: 100%; }
.phone { position: relative; height: min(100%, 64vh); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); transition: transform 1.2s var(--ease); }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; }
.card__media--phones .phone:nth-child(1) { height: min(82%, 54vh); transform: translateY(6%); }
.card__media--phones .phone:nth-child(3) { height: min(82%, 54vh); transform: translateY(-6%); }
.card:hover .card__media--phones .phone:nth-child(1) { transform: translateY(2%) rotate(-2deg); }
.card:hover .card__media--phones .phone:nth-child(3) { transform: translateY(-2%) rotate(2deg); }

/* ---------- marquee ---------- */
.marquee { padding: 7vh 0; overflow: hidden; border-block: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee__track > * { flex: none; }
.marquee__track span { font-size: clamp(56px, 10vw, 184px); font-weight: 600; letter-spacing: -0.055em; line-height: 1; padding: 0 .28em; white-space: nowrap; }
.marquee__track span:nth-of-type(even) { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.025em; }
.marquee__track svg { width: clamp(56px, 7vw, 130px); aspect-ratio: 1794 / 1271; }

/* ---------- services ---------- */
.services { padding: 18vh 0; }
.services__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6vw; align-items: start; }
.services__intro { position: sticky; top: calc(var(--nav-h) + 6vh); }
.services__lede { margin: 32px 0 0; max-width: 34ch; font-size: 17px; opacity: .65; }
.acc { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.acc__item { border-top: 1px solid var(--line); }
.acc__head { width: 100%; display: grid; grid-template-columns: 64px 1fr 40px; align-items: center; padding: 28px 0; text-align: left; }
.acc__n { font-size: 13px; opacity: .5; }
.acc__t { font-size: clamp(30px, 3.5vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; transition: transform .7s var(--ease), opacity .4s; }
.acc:hover .acc__item:not(:hover) .acc__t { opacity: .4; }
.acc__head:hover .acc__t { transform: translateX(14px); }
.acc__i { position: relative; width: 22px; height: 22px; justify-self: end; }
.acc__i::before, .acc__i::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .6s var(--ease); }
.acc__i::after { transform: rotate(90deg); }
.acc__item.is-open .acc__i::after { transform: rotate(0); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.acc__item.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; padding-left: 64px; }
.acc__body p { margin: 0 0 22px; max-width: 46ch; font-size: 18px; opacity: .7; }
.acc__body ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; }
.acc__body li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }

/* ---------- process ---------- */
.process { padding: 18vh 0 10vh; }
.process__head { margin-bottom: 9vh; }
.process__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.step { border-top: 1px solid var(--line); padding-top: 24px; }
.step:nth-child(2) { --d: .08s; } .step:nth-child(3) { --d: .16s; } .step:nth-child(4) { --d: .24s; }
.step__n { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(56px, 5vw, 92px); line-height: 1; letter-spacing: -0.03em; margin-bottom: 40px; }
.step h3 { margin: 0 0 10px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.step p { margin: 0; max-width: 30ch; opacity: .65; }

/* ---------- about ---------- */
.about { padding: 12vh 0 18vh; }
.about__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 6vw; align-items: center; }
.about__photo { margin: 0; position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #ccc; }
.about__photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); transition: filter 1.2s var(--ease), transform 1.8s var(--ease); }
.about__photo:hover img { filter: grayscale(0); }
.about__photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(12, 12, 12, .55); color: var(--paper); font-size: 12px; backdrop-filter: blur(6px); }
.about__lede { margin: 36px 0 0; max-width: 34ch; font-size: clamp(20px, 1.75vw, 30px); line-height: 1.3; letter-spacing: -0.02em; }
.about blockquote { margin: 36px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(34px, 3.6vw, 64px); line-height: 1; letter-spacing: -0.02em; }
.about__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); margin: 7vh 0 0; }
.about__facts div { border-top: 1px solid var(--line); padding-top: 18px; }
.about__facts div:nth-child(2) { --d: .08s; } .about__facts div:nth-child(3) { --d: .16s; }
.about__facts dt { font-family: var(--serif); font-style: italic; font-size: clamp(44px, 4vw, 72px); line-height: 1; }
.about__facts dd { margin: 10px 0 0; font-size: 14px; opacity: .65; max-width: 22ch; }

/* ---------- contact ---------- */
.contact { padding: 18vh 0 12vh; }
.contact__title { margin: 0; font-weight: 600; line-height: .86; }
.contact__title .line { display: block; overflow: hidden; padding: 0 .06em .36em 0; margin: 0 -.06em -.3em 0; }
.contact__title .serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.03em; }
.contact__title .fit { transform: translateY(102%); transition: transform 1.4s var(--ease); }
.contact__title .line:nth-child(2) .fit { transition-delay: .12s; }
.contact__title.is-in .fit { transform: none; }
.contact__row { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-top: 10vh; }
.contact__links { list-style: none; margin: 0; padding: 0; min-width: min(520px, 100%); }
.contact__links li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact__links span { font-size: 13px; opacity: .5; }
.contact__links a, .contact__links b { font-size: clamp(20px, 1.8vw, 30px); font-weight: 500; letter-spacing: -0.03em; }
[data-hover] { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
[data-hover]:hover { background-size: 100% 1px; }

/* ---------- footer ---------- */
.foot { padding: 9vh 0 var(--g); border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); }
.foot__grid { display: grid; grid-template-columns: 1fr auto auto 1fr; gap: 7vw; align-items: start; }
.foot__mark { width: clamp(110px, 12vw, 190px); aspect-ratio: 1794 / 1271; }
.foot__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot__col span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .45; margin-bottom: 6px; }
.foot__col a { opacity: .85; transition: opacity .3s; } .foot__col a:hover { opacity: 1; }
.foot__top { justify-self: end; font-size: 15px; }
.foot__base { display: flex; justify-content: space-between; margin-top: 12vh; font-size: 12px; opacity: .45; letter-spacing: .04em; }

/* ---------- case page ---------- */
.case-hero {
  background: var(--c); color: var(--k);
  min-height: 100svh; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 7vh) var(--g) var(--g);
}
.case-hero__crumb { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; opacity: .7; margin-bottom: 4vh; }
.case-hero__title { margin: -.2em 0 -.04em; padding: .2em 0 .2em; line-height: .84; font-weight: 700; overflow: hidden; }
.case-hero__title .fit { transform: translateY(102%); transition: transform 1.4s var(--ease) .15s; }
body.is-ready .case-hero__title .fit { transform: none; }
.case-hero__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 6vw; margin-top: 6vh; }
.case-hero__intro { margin: 0; font-size: clamp(22px, 2.2vw, 38px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; max-width: 26ch; }
.case-hero__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; margin: 0; }
.case-hero__meta div { border-top: 1px solid color-mix(in srgb, currentColor 25%, transparent); padding-top: 12px; }
.case-hero__meta dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.case-hero__meta dd { margin: 0; font-size: 16px; font-weight: 500; }
.case-cover { margin: 8vh 0 0; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(0, 0, 0, .15); }
.case-cover img { width: 100%; height: 112%; object-fit: cover; }
.case-cover--tall { aspect-ratio: auto; height: 86vh; display: flex; justify-content: center; gap: var(--g); background: none; border-radius: 0; overflow: visible; }
.case-cover--tall .phone { height: 100%; }

.case-text { padding: 16vh 0 8vh; }
.case-text__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6vw; }
.case-text h2 { margin: 0 0 22px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.case-text p { margin: 0; font-size: clamp(22px, 1.9vw, 32px); line-height: 1.22; letter-spacing: -0.025em; }

.palette { padding: 8vh 0; }
.palette__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 5vh; gap: 24px; }
.palette__head p { margin: 0; font-size: 14px; opacity: .55; }
.palette__row { display: flex; gap: 10px; height: clamp(320px, 52vh, 560px); }
.swatch {
  flex: 1; position: relative; border-radius: 18px; background: var(--s); color: var(--t);
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  transition: flex 1s var(--ease), transform .6s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.swatch:hover { flex: 1.6; }
.swatch b { font-size: clamp(22px, 2vw, 34px); font-weight: 600; letter-spacing: -0.03em; text-transform: uppercase; }
.swatch span { font-family: var(--serif); font-style: italic; font-size: 22px; }
.swatch small { position: absolute; top: 22px; right: 22px; font-size: 12px; opacity: 0; transition: opacity .3s; }
.swatch:hover small { opacity: .7; }

.gallery { padding: 6vh var(--g) 14vh; display: flex; flex-direction: column; gap: var(--g); }
.g-row { display: flex; align-items: flex-start; gap: var(--g); width: 100%; margin-inline: auto; }
.g-item { position: relative; flex: var(--r) 1 0; aspect-ratio: var(--r); border-radius: 18px; overflow: hidden; background: rgba(0, 0, 0, .06); }
.g-item img, .g-item video { width: 100%; height: 100%; object-fit: cover; }

.next { display: block; position: relative; overflow: hidden; background: var(--c); color: var(--k); padding: 14vh var(--g) 6vh; }
.next__top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; opacity: .75; }
.next__name { margin: 4vh 0 0; line-height: .84; font-weight: 700; }
.next__img { position: absolute; right: 8vw; top: 12vh; width: clamp(200px, 22vw, 360px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease-io); }
.next__img img { width: 100%; height: 100%; object-fit: cover; }
.next:hover .next__img { clip-path: inset(0); }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 220; transform: translate(-50%, calc(100% + 60px));
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); transition: transform .6s var(--ease), visibility 0s .6s; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .nav { grid-template-columns: 1fr auto auto; gap: 18px; }
  .nav__menu { display: block; }
  .services__grid, .about__grid, .case-hero__row, .case-text__grid { grid-template-columns: 1fr; }
  .services__intro { position: static; margin-bottom: 6vh; }
  .process__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .card__info { gap: 20px; }
  .card__media { align-self: end; }
  .card__media--phones { height: auto; }
  .card__media--phones .phone, .card__media--phones .phone:nth-child(1), .card__media--phones .phone:nth-child(3) { height: auto; width: 30%; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__top { justify-self: start; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav { padding: 16px var(--g); }
  .nav__status { display: none; }
  .nav__name em { display: none; }
  .hero__top { grid-template-columns: 1fr; }
  .hero__lede { justify-self: start; text-align: left; }
  .hero__meta span:nth-child(2) { display: none; }
  .hero__reel { --h: clamp(160px, 24vh, 210px); }
  .deck__card { margin-inline: calc(var(--h) * -0.17); border-radius: 12px; }
  .deck { padding-bottom: 30px; }
  .work__head { grid-template-columns: 1fr; }
  .work__count { text-align: left; }
  .card-wrap { height: auto; }
  .card { grid-template-rows: auto auto; gap: 28px; }
  .card__tagline { font-size: 22px; }
  .acc__head { grid-template-columns: 40px 1fr 30px; }
  .acc__body > div { padding-left: 40px; }
  .process__grid, .about__facts { grid-template-columns: 1fr; }
  .manifesto__foot, .contact__row { flex-direction: column; align-items: start; }
  .case-hero__meta { grid-template-columns: 1fr 1fr; }
  .palette__row { flex-direction: column; height: auto; }
  .swatch { min-height: 120px; }
  .swatch:hover { flex: 1; }
  .g-row { flex-wrap: wrap; }
  .g-row .g-item { flex-basis: 100%; }
  .g-row--phones .g-item { flex-basis: calc(50% - var(--g) / 2); }
  .case-cover--tall { height: auto; }
  .case-cover--tall .phone { height: auto; width: 31%; }
  .next__img { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  [data-reveal], .wi, .hero__word .char, .contact__title .fit, .case-hero__title .fit { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .mw { opacity: 1 !important; }
}
