/* Elyria Studio — cores, fontes e espaçamentos do manual da marca */
:root {
  --noir: #111010;
  --noir-2: #181716;
  --ivory: #F3EFE7;
  --ivory-2: #EAE4D9;
  --stone: #B9B1A6;
  --stone-dim: #8a837a;
  --champagne: #A88B5E;
  --bordo: #4E1F22;
  --ink: #2b2927;

  --f-display: 'Manrope', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 96px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video, svg, canvas { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1px solid var(--champagne); outline-offset: 4px; }
::selection { background: var(--champagne); color: var(--noir); }

/* ---------- Logotipo em linha ---------- */
.logo-svg { overflow: visible; }
.logo-svg .strokes * { fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: butt; }
.logo-svg .ray { stroke: var(--champagne); stroke-width: 1.15; }

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gutter);
  color: var(--ivory);
  transition: background .5s var(--ease), padding .5s var(--ease), color .5s var(--ease);
}
.site-header.is-solid {
  background: rgba(17, 16, 16, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; }
.brand .logo-svg { width: 116px; }
.brand-sub { font-family: var(--f-display); font-weight: 500; font-size: 8px; letter-spacing: .62em; padding-left: .62em; color: var(--stone); }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a {
  font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; color: var(--stone); position: relative; padding: 8px 0;
  transition: color .3s var(--ease);
}
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--champagne); transition: right .45s var(--ease); }
.nav a:hover { color: var(--ivory); }
.nav a:hover::after { right: 0; }

.lang { display: flex; align-items: center; gap: 10px; }
.lang-globe { width: 16px; height: 16px; fill: none; stroke: var(--stone); stroke-width: 1.1; flex: none; transition: transform 1.2s var(--ease-out); }
.lang.is-switching .lang-globe { transform: rotate(180deg); }
.lang-track {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 3px; border-radius: 999px;
  background: rgba(243, 239, 231, .06);
  border: 1px solid rgba(185, 177, 166, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lang-track button {
  position: relative; z-index: 1; min-width: 40px; min-height: 36px; padding: 0 10px;
  font-family: var(--f-display); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; padding-left: calc(10px + .18em);
  color: var(--stone); border-radius: 999px; transition: color .45s var(--ease);
}
.lang-track button:hover { color: var(--ivory); }
.lang-track button[aria-checked="true"] { color: var(--noir); }
.lang-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3);
  border-radius: 999px; background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(168, 139, 94, .35), 0 6px 18px rgba(0, 0, 0, .35);
  transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .55s cubic-bezier(.65, 0, .2, 1.25);
}
.lang-thumb::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: var(--champagne); }

/* entrada suave da primeira frase ao abrir o site */
.chapter-hero > * { animation: heroIn 1.4s var(--ease-out) both; }
.chapter-hero > :nth-child(2) { animation-delay: .15s; }
.chapter-hero > :nth-child(3) { animation-delay: .5s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@media (max-width: 420px) { .lang-globe { display: none; } }

/* ---------- História em rolagem ---------- */
.story { position: relative; height: 420vh; }
@media (max-width: 760px), (pointer: coarse) { .story { height: 300vh; } }
.skip {
  position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3;
  min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 500; font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--stone); text-decoration: none; opacity: .75; transition: opacity .3s, color .3s;
}
.skip:hover { opacity: 1; color: var(--ivory); }
.skip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(10, 9, 9, .62) 100%); }
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.chapter {
  position: absolute; z-index: 2; pointer-events: none;
  opacity: 0; will-change: opacity, transform;
  transform: translateY(calc(var(--base, 0%) + var(--dy, 0px)));
}
.chapter-left, .chapter-right, .chapter-final { --base: -50%; }
.chapter .display { margin: 0; }
.chapter-final::before { content: ''; position: absolute; left: 50%; top: 50%; width: min(1100px, 120vw); height: 520px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(10, 9, 9, .55), transparent); z-index: -1; }
.chapter a { pointer-events: auto; }
.chapter-hero { left: 0; right: 0; bottom: 12vh; text-align: center; padding: 0 var(--gutter); }
.chapter-left { left: var(--gutter); top: 50%; max-width: 560px; }
.chapter-right { right: var(--gutter); top: 50%; max-width: 560px; text-align: right; }
.chapter-final { left: 0; right: 0; top: 50%; text-align: center; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 36px; }

/* rótulo dos capítulos da casa (só na história em rolagem) */
.kicker {
  font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--stone); margin: 0 0 22px;
}
.display {
  font-family: var(--f-display); font-weight: 200; line-height: 1.08; letter-spacing: -.02em;
  font-size: clamp(36px, 6vw, 84px);
  text-shadow: 0 2px 40px rgba(0, 0, 0, .45);
}
.chapter-hero .display { font-size: clamp(30px, 4.6vw, 64px); }
.scroll-hint { margin: 44px 0 0; display: inline-flex; flex-direction: column; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }
.scroll-line { width: 1px; height: 54px; background: linear-gradient(var(--champagne), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ivory); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }

.progress { position: absolute; right: calc(var(--gutter) * .45); top: 50%; transform: translateY(-50%); height: 38vh; width: 1px; background: rgba(185, 177, 166, .2); z-index: 2; }
.progress-fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--champagne); transform-origin: top; transform: scaleY(0); }
.progress-marks { list-style: none; margin: 0; padding: 0; }
.progress-marks li { position: absolute; right: 12px; top: calc(var(--at) * 100%); transform: translateY(-50%); font-family: var(--f-display); font-size: 9px; letter-spacing: .2em; color: var(--stone-dim); transition: color .4s; }
.progress-marks li.is-on { color: var(--ivory); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px;
  font-family: var(--f-display); font-weight: 500; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; border-radius: 999px; position: relative; overflow: hidden;
  transition: color .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.btn-ghost { border: 1px solid rgba(243, 239, 231, .45); color: var(--ivory); background: rgba(17, 16, 16, .25); backdrop-filter: blur(6px); }
.btn-ghost::before, .btn-solid::before { content: ''; position: absolute; inset: 0; background: var(--ivory); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; }
.btn-ghost:hover { color: var(--noir); border-color: var(--ivory); }
.btn-ghost:hover::before, .btn-solid:hover::before { transform: translateY(0); }
.btn-solid { background: var(--champagne); color: var(--noir); isolation: isolate; }
.btn-solid:hover { color: var(--bordo); }

/* ---------- Seções ----------
   Abaixo da casa o site fica quieto: tipo grande e leve, espaço no lugar de linhas,
   um único movimento (o traço do Processo). */
.section { position: relative; z-index: 3; padding: clamp(104px, 17vh, 200px) 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.section-dark { background: var(--noir); color: var(--ivory); }
.section-light { background: var(--ivory); color: var(--noir); }
.section-bordo { background: var(--bordo); color: var(--ivory); }
.title { font-family: var(--f-display); font-weight: 200; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 clamp(56px, 9vh, 104px); max-width: 14ch; text-wrap: balance; }
.title-xl { font-size: clamp(44px, 7.4vw, 112px); line-height: 1; max-width: 10ch; margin: 0; }
.lead { font-size: 17px; line-height: 1.65; color: var(--stone); max-width: 40ch; margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Serviços: título preso à esquerda enquanto a lista passa */
.srv { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.srv-title { position: sticky; top: 132px; margin: 0; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(56px, 9vh, 96px); }
.service h3 { font-family: var(--f-display); font-weight: 200; font-size: clamp(28px, 3.1vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 18px; }
.tag { font-family: var(--f-body); font-weight: 400; font-size: 14px; letter-spacing: 0; color: var(--stone); white-space: nowrap; vertical-align: .55em; margin-left: 6px; }
.service-desc { margin: 0 0 12px; font-size: 16.5px; line-height: 1.65; color: var(--ivory-2); max-width: 44ch; }
.service-inc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--stone); max-width: 50ch; }

/* Atendemos: em prosa, uma linha por público */
.who { list-style: none; margin: clamp(120px, 18vh, 200px) 0 0; padding: 0; max-width: 24em; font-family: var(--f-display); font-weight: 200; font-size: clamp(24px, 2.9vw, 40px); line-height: 1.28; letter-spacing: -.015em; color: var(--stone); }
.who li + li { margin-top: .35em; }
.who strong { font-weight: 300; color: var(--ivory); }

/* Processo: um traço atravessa as quatro etapas e se desenha uma vez */
.process { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 56px); }
.process::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--noir); transform-origin: left; }
.process li { position: relative; padding-top: 30px; }
.process li::before { content: ''; position: absolute; left: 0; top: -5px; width: 1px; height: 11px; background: var(--noir); }
.step-n { display: block; font-family: var(--f-display); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; color: #6f6860; margin-bottom: 40px; }
.process .glyph { height: 40px; width: auto; margin-bottom: 26px; overflow: visible; }
.process .glyph * { fill: none; stroke: var(--noir); stroke-width: 1.6; }
.process .glyph .dot { fill: var(--champagne); stroke: none; }
.process h3 { font-family: var(--f-display); font-weight: 300; font-size: 25px; letter-spacing: -.01em; margin: 0 0 10px; }
.process p { margin: 0; color: #57524c; font-size: 15.5px; line-height: 1.6; max-width: 30ch; }
.js .process::before { transform: scaleX(0); transition: transform 1.9s cubic-bezier(.65, 0, .25, 1); }
.js .process li { opacity: 0; transition: opacity .9s var(--ease-out) calc(.25s + var(--s) * .45s); }
.js .process li::before { transform: scaleY(0); transition: transform .4s var(--ease-out) calc(.15s + var(--s) * .45s); }
.process.is-drawn::before { transform: none; }
.process.is-drawn li { opacity: 1; }
.process.is-drawn li::before { transform: none; }

/* Trabalhos: o teaser grande; o resto aparece tarjado */
.works { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 112px); align-items: end; }
.work-main { margin: 0; }
.work-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 2px; overflow: hidden; background: var(--noir-2); }
.work-video { width: 100%; height: 100%; object-fit: cover; }
.work-main figcaption { margin-top: 20px; display: flex; flex-direction: column; gap: 4px; }
.work-main strong { font-family: var(--f-display); font-weight: 300; font-size: 21px; color: var(--ivory); }
.work-main figcaption span { font-size: 14px; color: var(--stone-dim); }
.works-side .title { margin-bottom: 28px; }
.sealed { list-style: none; margin: clamp(56px, 9vh, 96px) 0 0; padding: 0; display: grid; gap: 36px; }
.sealed li { display: flex; flex-direction: column; gap: 10px; }
.redact { display: block; width: var(--w); max-width: 100%; height: 22px; background: var(--stone); opacity: .22; border-radius: 1px; font-size: 21px; }
.sealed-type { font-size: 14px; color: var(--stone-dim); }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 112px); align-items: end; }
.contact-side { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.section-bordo .lead { color: #d8c3c0; }
.mail { font-family: var(--f-display); font-weight: 300; font-size: 18px; text-decoration: none; color: #e6d6d3; border-bottom: 1px solid rgba(230, 214, 211, .3); padding: 6px 0 3px; transition: border-color .3s; }
.mail:hover { border-color: var(--champagne); }

/* ---------- Rodapé ---------- */
.footer { background: var(--noir); padding: 80px 0 calc(56px + env(safe-area-inset-bottom)); position: relative; z-index: 3; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.alphabet { position: relative; display: block; text-align: left; padding: 10px 0; }
.alphabet svg { width: 180px; overflow: visible; }
.alphabet svg * { fill: none; stroke: var(--stone-dim); stroke-width: 1.6; transition: stroke .6s var(--ease); }
.alphabet svg .dot { fill: var(--champagne); stroke: none; }
.alphabet-secret { position: absolute; left: 0; top: 100%; font-family: var(--f-display); font-weight: 300; font-size: 13px; letter-spacing: .1em; color: var(--champagne); opacity: 0; transform: translateY(-4px); transition: opacity .6s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.alphabet:hover svg *, .alphabet:focus-visible svg * { stroke: var(--ivory); }
.alphabet:hover .alphabet-secret, .alphabet:focus-visible .alphabet-secret { opacity: 1; transform: none; }
.footer-meta { display: flex; gap: 56px; color: var(--stone-dim); font-size: 13px; line-height: 1.7; }
.footer-meta p { margin: 0; }

/* ---------- Selo secreto ---------- */
.seal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--bordo); animation: sealIn 1.2s var(--ease-out); padding: 24px; }
.seal[hidden] { display: none; }
@keyframes sealIn { from { opacity: 0; } }
.seal-inner { display: flex; flex-direction: column; align-items: center; gap: 36px; text-align: center; }
.seal-glyph { width: min(110px, 26vw); overflow: visible; animation: sealRise 2.4s var(--ease-out); }
@keyframes sealRise { from { opacity: 0; transform: scale(.94); filter: blur(6px); } }
.seal-glyph line { stroke-width: 5; stroke-linecap: square; fill: none; }
.seal-shadow { stroke: #2e1214; transform: translate(3px, 4px); }
.seal-light { stroke: #6a3236; }
.seal-text { font-family: var(--f-display); font-weight: 200; font-size: clamp(24px, 3vw, 38px); line-height: 1.25; margin: 0; }
.seal-close { font-family: var(--f-display); font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: #d8c3c0; min-height: 44px; padding: 0 20px; border: 1px solid rgba(216, 195, 192, .3); border-radius: 999px; }
.seal-close:hover { border-color: var(--ivory); color: var(--ivory); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px 0 16px;
  border-radius: 999px; background: var(--ivory); color: var(--noir); text-decoration: none;
  font-family: var(--f-display); font-weight: 500; font-size: 13px; letter-spacing: .01em; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(17, 16, 16, .08), 0 12px 32px -12px rgba(0, 0, 0, .55);
  transition: opacity .5s var(--ease), transform .5s var(--ease), background-color .3s;
  opacity: 0; transform: translateY(12px); pointer-events: none;
}
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
@media (hover: hover) { .wa-float.is-visible:hover { background: #fff; transform: translateY(-2px); } }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .srv, .works, .contact { grid-template-columns: minmax(0, 1fr); }
  .srv-title { position: static; }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 64px; }
  .process::before { display: none; }
  .process li { border-top: 1px solid var(--noir); }
  .process li::before { display: none; }
  .works { row-gap: 0; }
  .works-side { display: contents; }
  .works-side .title, .works-side .lead { order: -1; }
  .works-side .lead { margin-bottom: 48px; }
  .sealed { display: flex; gap: 24px 48px; flex-wrap: wrap; margin-top: 56px; }
}
@media (max-width: 680px) {
  .site-header { padding: 16px var(--gutter); }
  .brand .logo-svg { width: 96px; }
  .service h3 { margin-bottom: 14px; }
  .process { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 28px; }
  .process::before { display: block; left: 0; right: auto; top: 6px; bottom: 0; width: 1px; height: auto; transform-origin: top; }
  .js .process::before { transform: scaleY(0); }
  .process.is-drawn::before { transform: none; }
  .process li { border-top: 0; padding: 0 0 52px; }
  .process li:last-child { padding-bottom: 0; }
  .process li::before { display: block; left: -28px; top: 6px; width: 12px; height: 1px; transform-origin: left; }
  .js .process li::before { transform: scaleX(0); }
  .process.is-drawn li::before { transform: none; }
  .step-n { margin-bottom: 18px; }
  .process .glyph { height: 32px; margin-bottom: 18px; }
  .chapter-left, .chapter-right { left: var(--gutter); right: var(--gutter); top: auto; bottom: 14vh; text-align: left; max-width: none; --base: 0%; }
  .progress { display: none; }
  .footer-meta { gap: 32px; }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); height: 46px; padding: 0 16px 0 14px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .scroll-line::after { animation: none; }
  .js .process::before, .js .process li, .js .process li::before { transition: none; }
}
