/* ==========================================================================
   Tomás Avelar · Arquiteto — estilos
   ========================================================================== */

:root {
  --paper: #f1ede6;
  --paper-2: #e7e1d7;
  --ink: #151513;
  --ink-2: #3a3834;
  --muted: #76716a;
  --line: rgba(21, 21, 19, .14);
  --accent: #b4532a;
  --light: #f7f4ee;

  --gut: clamp(16px, 4vw, 56px);
  --radius: clamp(18px, 2.4vw, 32px);
  --header-h: 72px;

  --f-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::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(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { 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; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

::selection { background: var(--ink); color: var(--paper); }

.mono {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.display {
  font-size: clamp(34px, 5.2vw, 82px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
}
.display em { letter-spacing: -.01em; }

.section { padding: clamp(80px, 12vw, 180px) var(--gut); position: relative; }
.section__index { color: var(--muted); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.section__index::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section__head { max-width: 1100px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head > p { margin-top: 24px; max-width: 520px; color: var(--ink-2); }

/* ---------- text split ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* hidden states only when JS is running */
html.js .reveal,
html.js .fade-up { opacity: 0; transform: translate3d(0, 40px, 0); }
html.js .split .w > span { transform: translate3d(0, 110%, 0); }
html.js .clip-reveal { clip-path: inset(100% 0 0 0); }
html.no-motion .reveal,
html.no-motion .fade-up { opacity: 1 !important; transform: none !important; }
html.no-motion .split .w > span { transform: none !important; }
html.no-motion .clip-reveal { clip-path: none !important; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
}
html:not(.js) .loader, html.no-motion .loader { display: none; }
.loader__draw { width: min(220px, 50vw); }
.loader__draw path { stroke: var(--paper); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.loader__meta {
  position: absolute; left: var(--gut); right: var(--gut); bottom: var(--gut);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.loader__count { font-family: var(--f-sans); font-size: clamp(48px, 10vw, 120px); letter-spacing: -.04em; line-height: .8; }

/* ---------- progress + cursor ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--ink); display: none; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s;
}
.cursor__label { color: var(--paper); font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; opacity: 0; transition: opacity .2s; }
.cursor.is-big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--accent); }
.cursor.is-big .cursor__label { opacity: 1; }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .cursor { display: grid; } }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  transition: transform .5s var(--ease), background .4s, backdrop-filter .4s;
}
.header.is-scrolled { background: rgba(241, 237, 230, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__name { font-size: 26px; font-weight: 500; letter-spacing: -.05em; }
.brand__line { width: 28px; height: 1px; background: var(--ink); transition: width .5s var(--ease); }
.brand:hover .brand__line { width: 48px; }
.brand__tag { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: clamp(16px, 2.4vw, 36px); font-size: 15px; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); position: relative; z-index: 110; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--paper); transition: transform .45s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 32px) var(--gut) var(--gut);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
body.menu-open .header { background: transparent; backdrop-filter: none; color: var(--paper); }
body.menu-open .brand__line { background: var(--paper); }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a { font-size: clamp(42px, 12vw, 72px); letter-spacing: -.04em; line-height: 1.12; border-bottom: 1px solid rgba(255,255,255,.12); padding: 6px 0; display: flex; align-items: baseline; gap: 14px; transform: translateY(30px); opacity: 0; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.menu__nav small { font-family: var(--f-mono); font-size: 11px; color: rgba(255,255,255,.5); }
body.menu-open .menu__nav a { transform: none; opacity: 1; }
body.menu-open .menu__nav a:nth-child(2) { transition-delay: .05s; }
body.menu-open .menu__nav a:nth-child(3) { transition-delay: .1s; }
body.menu-open .menu__nav a:nth-child(4) { transition-delay: .15s; }
body.menu-open .menu__nav a:nth-child(5) { transition-delay: .2s; }
.menu__foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,.65); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 8px 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  transition: background .3s, color .3s;
  will-change: transform;
}
.btn__icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-style: normal;
  transition: transform .5s var(--ease);
}
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark .btn__icon { background: var(--paper); color: var(--ink); }
.btn--dark:hover { background: var(--accent); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light .btn__icon { background: var(--ink); color: var(--paper); }
.btn--light:hover { background: #fff; }
.btn--ghost { padding: 0 6px; height: auto; border-radius: 0; border-bottom: 1px solid currentColor; padding-bottom: 4px; gap: 10px; }
.btn--ghost i { font-style: normal; transition: transform .4s var(--ease); }
.btn--ghost:hover i { transform: translateY(4px); }
.btn--sm { height: 46px; padding-left: 20px; font-size: 14px; }
.btn--sm .btn__icon { width: 32px; height: 32px; }

.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px; transition: background .3s, color .3s, border-color .3s; }
.round-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: calc(var(--header-h) + 4px) var(--gut) 0; }
.hero__card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: calc(100svh - var(--header-h) - 20px); min-height: 560px; max-height: 1000px;
  background: #222; color: var(--light);
  isolation: isolate;
}
.hero__media { position: absolute; top: -14%; left: 0; right: 0; bottom: 0; z-index: -2; will-change: transform; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 60%), linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 50%, rgba(0,0,0,.55) 100%); }
.hero__content { padding: clamp(24px, 4vw, 56px); max-width: 1050px; }
.hero__eyebrow { margin-bottom: clamp(18px, 2.4vw, 32px); color: rgba(255,255,255,.85); }
.hero__title { font-size: clamp(42px, 7.4vw, 124px); line-height: .96; letter-spacing: -.045em; font-weight: 500; }
.hero__title em { letter-spacing: -.02em; }
.hero__lead { margin-top: clamp(18px, 2vw, 28px); max-width: 470px; color: rgba(255,255,255,.88); }
.hero__actions {
  position: absolute; left: 0; bottom: 0;
  display: flex; align-items: center; gap: 28px;
  padding: 16px 32px 0 0; background: var(--paper);
  border-top-right-radius: var(--radius);
}
.hero__actions::before, .hero__actions::after {
  content: ""; position: absolute; width: var(--radius); height: var(--radius);
  background: radial-gradient(circle at 100% 0, transparent calc(var(--radius) - .5px), var(--paper) var(--radius));
}
.hero__actions::before { left: 0; top: calc(var(--radius) * -1); }
.hero__actions::after { right: calc(var(--radius) * -1); bottom: 0; }
.hero__actions .btn--ghost { color: var(--ink); }
.hero__tag {
  position: absolute; right: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px;
  background: rgba(20, 20, 18, .45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 14px;
  font-size: 11px;
}
.dot-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.dot-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 0 rgba(123,216,143,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(123,216,143,0); } 100% { box-shadow: 0 0 0 0 rgba(123,216,143,0); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 0; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__track span { font-size: clamp(40px, 7vw, 110px); letter-spacing: -.04em; line-height: 1; font-weight: 500; padding-right: .3em; }
.marquee__track b { font-weight: 400; color: var(--accent); font-size: .5em; vertical-align: middle; padding: 0 .4em; }

/* ---------- about ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.about__text > p { margin-top: 24px; max-width: 560px; color: var(--ink-2); font-size: clamp(16px, 1.2vw, 19px); }
.about__text > .display + p { margin-top: clamp(28px, 3.5vw, 48px); }
.signature { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; }
.signature__name { font-family: var(--f-serif); font-style: italic; font-size: 40px; line-height: 1; }
.signature .mono { color: var(--muted); }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.parallax { position: absolute; inset: -12% 0; }
.parallax img { width: 100%; height: 100%; object-fit: cover; }
.about__media figcaption { position: absolute; left: 18px; bottom: 16px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.stats { margin-top: clamp(64px, 9vw, 140px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-right: 1px solid var(--line); margin-right: 24px; }
.stat:last-child { border-right: 0; margin-right: 0; }
.stat .mono { color: var(--muted); }
.stat strong { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 8px; font-weight: 500; }
.stat strong b { font-size: clamp(56px, 7vw, 108px); line-height: .9; letter-spacing: -.05em; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat strong small { font-size: 18px; color: var(--muted); font-weight: 400; }
.stat p { color: var(--ink-2); max-width: 220px; }

/* ---------- services ---------- */
.services__list { border-top: 1px solid var(--line); }
.service {
  position: relative;
  display: grid; grid-template-columns: 80px 1.1fr 1fr 48px; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 38px) 0; border-bottom: 1px solid var(--line);
  cursor: default; overflow: hidden;
}
.service::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.service { isolation: isolate; transition: color .4s, padding .6s var(--ease); }
.service__n { color: var(--muted); transition: color .4s; }
.service h3 { font-size: clamp(26px, 3.4vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.service p { color: var(--ink-2); max-width: 420px; transition: color .4s; }
.service__arrow { font-size: 26px; justify-self: end; transition: transform .6s var(--ease); }
@media (hover: hover) {
  .service:hover { color: var(--paper); padding-left: 24px; padding-right: 24px; }
  .service:hover::before { transform: scaleY(1); transform-origin: top; }
  .service:hover p, .service:hover .service__n { color: rgba(255,255,255,.7); }
  .service:hover .service__arrow { transform: rotate(-45deg); }
}

.hover-img {
  position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none;
  width: clamp(220px, 20vw, 320px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  opacity: 0; transform: scale(.7); display: none;
}
.hover-img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .hover-img { display: block; } }

/* ---------- method ---------- */
.method { background: var(--ink); color: var(--paper); border-radius: var(--radius); margin: 0 var(--gut); padding-left: clamp(24px, 5vw, 80px); padding-right: clamp(24px, 5vw, 80px); }
.method .section__index { color: rgba(255,255,255,.55); }
.method__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.method__text > p { margin-top: 32px; color: rgba(255,255,255,.75); max-width: 520px; }
.method__points { margin-top: 48px; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.14); }
.method__points li { padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.method__points h4 { font-size: 19px; font-weight: 500; margin-bottom: 6px; }
.method__points p { color: rgba(255,255,255,.62); }
.method__drawing { position: sticky; top: calc(var(--header-h) + 40px); }
.drawing { position: relative; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: clamp(20px, 3vw, 40px); background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; }
.drawing__label { display: flex; justify-content: space-between; color: rgba(255,255,255,.6); margin-bottom: 12px; }
.drawing__svg { width: 100%; height: auto; overflow: visible; }
.drawing__svg .draw { stroke: var(--paper); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.drawing__svg .thick { stroke-width: 2.4; }
.drawing__svg .hatch { stroke-width: .8; opacity: .5; }
.drawing__svg .accent { stroke: #e08a5e; }
.drawing__svg .dim { stroke-width: .8; opacity: .7; }
.drawing__dims { position: absolute; inset: clamp(20px, 3vw, 40px); top: calc(clamp(20px, 3vw, 40px) + 26px); pointer-events: none; }
.drawing__dims span { position: absolute; left: var(--x); top: var(--y); font-size: 10px; color: rgba(255,255,255,.7); opacity: 0; transform: translateY(6px); transition: opacity .6s, transform .6s var(--ease); }
.drawing.is-done .drawing__dims span { opacity: 1; transform: none; }

/* ---------- work (horizontal) ---------- */
.work { position: relative; padding-top: clamp(80px, 12vw, 180px); }
.work__pin { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); padding: 0 var(--gut); height: 100svh; overflow: hidden; }
.work__head, .work__track { will-change: transform; }
.work__head { flex: 0 0 clamp(300px, 30vw, 480px); }
.work__head > p { margin-top: 24px; color: var(--ink-2); max-width: 340px; }
.work__hint { margin-top: 40px; display: flex; align-items: center; gap: 12px; color: var(--muted); }
.work__hint i { width: 64px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.work__hint i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: hint 2.2s var(--ease) infinite; }
@keyframes hint { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.work__track { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 40px); flex: 0 0 auto; }

.project { flex: 0 0 auto; width: clamp(320px, 40vw, 680px); display: block; }
.project--tall { width: clamp(260px, 27vw, 440px); }
.project__media { position: relative; overflow: hidden; border-radius: 18px; height: min(58vh, 560px); background: var(--paper-2); }
.project--tall .project__media { height: min(70vh, 680px); }
.project__media { transition: transform .9s var(--ease), border-radius .9s var(--ease); }
.project__media img { position: absolute; top: 0; left: -10%; width: 120%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
@media (hover: hover) { .project:hover .project__media { transform: scale(.97); border-radius: 32px; } }
.project__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.project__info h3 { font-size: clamp(20px, 1.8vw, 28px); font-weight: 500; letter-spacing: -.03em; }
.project__info .mono { color: var(--muted); }
.project--end {
  width: clamp(240px, 22vw, 340px); height: min(58vh, 560px); border-radius: 18px;
  border: 1px solid var(--line); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .4s, color .4s;
}
.project--end strong { font-size: clamp(64px, 7vw, 120px); font-weight: 500; letter-spacing: -.05em; line-height: .9; display: flex; flex-direction: column; }
.project--end strong small { font-size: 16px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-top: 10px; }
.project--end i { font-style: normal; font-size: 28px; }
.project--end:hover { background: var(--ink); color: var(--paper); }

/* ---------- index table ---------- */
.table { border-top: 1px solid var(--line); }
.table__row {
  display: grid; grid-template-columns: 80px 2fr 1fr 1.4fr .8fr 120px; gap: 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), background .3s;
}
.table__row:not(.table__row--head) { cursor: default; }
.table__row > span:nth-child(2) { font-size: clamp(17px, 1.4vw, 21px); font-weight: 500; letter-spacing: -.02em; }
.table__row > span:nth-child(3) { color: var(--muted); }
.table__row--head { color: var(--muted); padding: 14px 0; }
@media (hover: hover) {
  .table__row:not(.table__row--head):hover { padding-left: 16px; padding-right: 16px; background: var(--paper-2); }
}
.badge { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.badge--live { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7bd88f; animation: pulse 2s infinite; }

/* ---------- process ---------- */
.process { background: var(--paper-2); }
.process__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 110px); }
.process__head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.steps { position: relative; padding-left: clamp(44px, 5vw, 72px); }
.steps__line { position: absolute; left: 14px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); }
.step { position: relative; display: grid; grid-template-columns: 1fr; padding: 0 0 clamp(48px, 6vw, 88px); }
.step:last-child { padding-bottom: 0; }
.step__n { position: absolute; left: calc(clamp(44px, 5vw, 72px) * -1); top: 2px; width: 29px; height: 29px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; transition: background .5s, color .5s, border-color .5s; }
.step.is-active .step__n { background: var(--accent); color: #fff; border-color: var(--accent); }
.step h3 { font-size: clamp(24px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 12px; }
.step p { color: var(--ink-2); max-width: 520px; }
.step__get { margin-top: 18px; display: inline-flex; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: var(--paper); text-transform: none; letter-spacing: .01em; font-size: 12.5px; }
.step__get b { text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 500; }

/* ---------- plans ---------- */
.plans__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1200px; }
.plan {
  position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px;
  min-height: 360px; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); transform-style: preserve-3d; will-change: transform;
  transition: box-shadow .5s var(--ease);
}
.plan:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.25); }
.plan__n { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.plan h3 { font-size: 26px; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-top: 56px; }
.plan p { color: var(--ink-2); flex: 1; }
.plan__meta { color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.plan--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.plan--dark p { color: rgba(255,255,255,.72); }
.plan--dark .plan__n { border-color: rgba(255,255,255,.25); }
.plan--dark .plan__meta { color: #e08a5e; border-color: rgba(255,255,255,.18); }

/* ---------- quotes ---------- */
.quotes__title { max-width: 900px; }
.quotes__slider { display: grid; margin-top: clamp(48px, 6vw, 88px); }
.quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; }
.quote.is-active { opacity: 1; visibility: visible; }
.quote blockquote { font-family: var(--f-serif); font-size: clamp(30px, 4.4vw, 68px); line-height: 1.08; letter-spacing: -.01em; max-width: 1150px; }
.quote figcaption { margin-top: 32px; color: var(--muted); }
.quote .qw { display: inline-block; }
.quotes__nav { display: flex; align-items: center; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.quotes__count { min-width: 64px; text-align: center; }
.quotes__bar { flex: 1 1 160px; max-width: 260px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.quotes__bar span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- faq ---------- */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 110px); }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; display: grid; grid-template-columns: 48px 1fr 28px; align-items: center; gap: 12px; padding: 26px 0; font-size: clamp(18px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.02em; }
.faq__q .mono { color: var(--muted); }
.faq__q i { position: relative; width: 20px; height: 20px; justify-self: end; }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.faq__q i::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q i::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 40px 28px 60px; color: var(--ink-2); max-width: 680px; opacity: 0; transform: translateY(-8px); transition: opacity .5s, transform .6s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .1s; }

/* ---------- contact ---------- */
.contact { padding: 0 var(--gut); }
.contact__card { position: relative; overflow: hidden; border-radius: var(--radius); min-height: 92svh; color: var(--light); display: flex; align-items: flex-end; isolation: isolate; background: #222; }
.contact__media { position: absolute; inset: -10% 0; z-index: -2; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; }
.contact__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,9,.35), rgba(10,10,9,.82)); }
.contact__content { padding: clamp(28px, 5vw, 80px); max-width: 1200px; }
.contact .section__index { color: rgba(255,255,255,.7); }
.contact__title { font-size: clamp(36px, 5.6vw, 92px); line-height: 1; letter-spacing: -.04em; font-weight: 500; }
.contact__content > p { margin-top: 28px; max-width: 520px; color: rgba(255,255,255,.82); }
.contact__actions { margin-top: 40px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.contact__mail { border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: 3px; transition: border-color .3s; }
.contact__mail:hover { border-color: #fff; }

/* ---------- footer ---------- */
.footer { padding: clamp(40px, 6vw, 80px) var(--gut) 28px; overflow: hidden; }
.footer__big { font-size: clamp(90px, 27vw, 460px); line-height: .78; letter-spacing: -.07em; font-weight: 500; overflow: hidden; padding-bottom: .04em; text-align: center; }
.footer__big span { display: inline-block; }
.footer__big .ch { display: inline-block; will-change: transform; }
.footer__row { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); }
.footer__row a:hover { color: var(--accent); }
.footer__note { margin-top: 14px; color: var(--muted); font-size: 10.5px; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; margin-right: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
  .table__row { grid-template-columns: 60px 2fr 1fr 1.3fr .8fr 110px; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }

  .about__grid, .method__grid, .process__grid, .faq__grid { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 4.4; }
  .method__drawing, .process__head { position: relative; top: 0; }
  .method__drawing { order: -1; }

  .service { grid-template-columns: 40px 1fr 28px; gap: 6px 14px; }
  .service p { grid-column: 2 / 3; }
  .service__arrow { grid-row: 1; grid-column: 3; }

  .work__pin { display: block; height: auto; overflow: visible; }
  .work__head { margin-bottom: 40px; }
  .work__hint { display: none; }
  .work__track { flex-direction: column; align-items: stretch; gap: 48px; }
  .project, .project--tall { width: 100%; }
  .project__media, .project--tall .project__media { height: auto; aspect-ratio: 4 / 3.2; }
  .project--tall .project__media { aspect-ratio: 4 / 4.6; }
  .project__media img { left: 0; width: 100%; top: -8%; height: 116%; }
  .project--end { width: 100%; height: auto; min-height: 220px; }

  .table__row { grid-template-columns: 52px 1fr auto; gap: 4px 12px; padding: 18px 0; }
  .table__row > span:nth-child(3), .table__row > span:nth-child(5) { display: none; }
  .table__row > span:nth-child(4) { grid-column: 2; grid-row: 2; color: var(--muted); font-size: 14px; }
  .table__row > span:nth-child(6) { grid-column: 3; grid-row: 1 / 3; }
  .table__row--head { display: none; }
}

@media (max-width: 640px) {
  .hero__card { min-height: 620px; height: calc(100svh - var(--header-h) - 12px); }
  .hero__tag { display: none; }
  .hero__lead { font-size: 15px; }
  .hero__actions { gap: 18px; padding: 12px 20px 0 0; }
  .hero__actions .btn--dark { padding-left: 20px; height: 52px; }
  .hero__actions .btn--dark .btn__icon { width: 36px; height: 36px; }
  .hero__actions .btn--ghost { font-size: 14px; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 12px; margin-right: 12px; }

  .method { margin: 0 8px; }
  .plans__grid { grid-template-columns: 1fr; }
  .plan { min-height: 0; }
  .plan h3 { margin-top: 24px; }

  .faq__q { grid-template-columns: 36px 1fr 24px; }
  .faq__a p { padding: 0 8px 24px 48px; }

  .contact__card { min-height: 88svh; }
  .contact__actions .btn { width: 100%; justify-content: space-between; }
  .footer__row { flex-direction: column; }
}

@media (max-width: 380px) {
  .hero__actions .btn--ghost { display: none; }
}

