:root {
  --paper: #f1eee9;
  --paper-2: #e8e3dc;
  --ink: #171615;
  --muted: #77716a;
  --orange: #e85116;
  --hairline: rgba(23, 22, 21, .16);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mx: 0;          /* olhar horizontal  -1 .. 1 */
  --my: 0;          /* olhar vertical    -1 .. 1 */
  --near: 0;        /* proximidade do cursor ao rosto 0 .. 1 */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--mono); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
em { color: var(--orange); font-style: normal; }

#memory-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .62; }
.grain { position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .22; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.075'/%3E%3C/svg%3E"); }

.topbar { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; background: linear-gradient(to bottom, rgba(241,238,233,.94), rgba(241,238,233,0)); }
.wordmark { font-size: 24px; font-weight: 700; letter-spacing: .34em; }
.wordmark span, .dot { color: var(--orange); }
.topbar nav { display: flex; gap: 3.2rem; font-size: 10px; }
.topbar nav a, footer a { transition: color .25s; }
.topbar nav a:hover, footer a:hover { color: var(--orange); }
.reserve-mini { border: 1px solid var(--hairline); border-radius: 4px; padding: 13px 17px; font-size: 10px; transition: border-color .25s, background .25s; }
.reserve-mini:hover { border-color: var(--orange); background: rgba(232,81,22,.05); }
.reserve-mini i, .status i, .bracket-link b, .reserve-cta i { display: inline-block; width: 5px; height: 5px; margin-left: 10px; border-radius: 50%; background: var(--orange); }

main { position: relative; z-index: 1; }
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 36% 48% 16%; align-items: center; padding: 110px 4vw 50px; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 3%; height: 1px; background: linear-gradient(90deg, transparent, var(--hairline), transparent); }
.eyebrow { margin: 0 0 24px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(4.6rem, 9vw, 9rem); line-height: .85; letter-spacing: -.09em; }
.hero-line { margin: 34px 0 25px; font-size: clamp(1.3rem, 2.1vw, 2.15rem); line-height: 1.25; letter-spacing: -.05em; }
.hero-intro { color: #55504b; font-family: var(--serif); font-size: 16px; line-height: 1.65; }
.bracket-link { display: inline-block; position: relative; margin-top: 26px; padding: 14px 16px; font-size: 10px; transition: color .25s; }
.bracket-link:hover { color: var(--orange); }
.bracket-link::before, .bracket-link::after { content: ""; position: absolute; width: 8px; height: 8px; border-color: #928b83; transition: border-color .25s; }
.bracket-link:hover::before, .bracket-link:hover::after { border-color: var(--orange); }
.bracket-link::before { left: 0; top: 0; border-left: 1px solid; border-top: 1px solid; }
.bracket-link::after { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }

/* ======================= DISPOSITIVO (CSS puro) ======================= */
.hero-product { position: relative; display: grid; place-items: center; justify-self: center; width: min(46vw, 440px); height: min(74vh, 600px); transform: translate(calc(var(--mx) * 8px), calc(var(--my) * 6px)) rotate(calc(var(--mx) * .5deg)); transition: transform .3s ease-out; }

.device { position: relative; transform: scale(var(--ds, 1)); transform-origin: center; }
.device-body {
  position: relative; width: 300px; height: 392px; border-radius: 92px;
  background:
    linear-gradient(208deg, #fdfbf7 0%, #efe9df 46%, #ddd4c7 78%, #d2c8ba 100%);
  box-shadow:
    inset 0 3px 4px rgba(255,255,255,.95),
    inset 18px 0 34px rgba(255,255,255,.5),
    inset -16px 0 30px rgba(120,108,92,.22),
    inset 0 -30px 50px rgba(110,98,82,.3),
    0 46px 80px -34px rgba(58,46,34,.55),
    0 8px 22px -12px rgba(58,46,34,.35);
}
.device-body::before { /* brilho especular suave */
  content: ""; position: absolute; left: 14%; top: 5%; width: 38%; height: 40%;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.85), transparent 62%);
  filter: blur(6px); pointer-events: none;
}
.device-seam { position: absolute; left: 8%; right: 8%; top: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(120,108,92,.4), transparent); }

.visor {
  position: absolute; top: 44px; left: 50%; transform: translateX(-50%);
  width: 200px; height: 138px; border-radius: 30px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(125% 130% at 50% 16%, #2b2421 0%, #161110 58%, #0c0908 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.55), inset 0 8px 22px rgba(0,0,0,.85), inset 0 -3px 10px rgba(232,81,22,.07), 0 2px 0 rgba(255,255,255,.55);
}
.visor-sheen { position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255,255,255,.16) 0%, transparent 32%, transparent 100%); pointer-events: none; }
.visor-scan { position: absolute; left: 0; right: 0; height: 38%; top: -38%; background: linear-gradient(transparent, rgba(232,81,22,.10), transparent); animation: visorScan 6s linear infinite; pointer-events: none; }
@keyframes visorScan { to { top: 138%; } }

.gaze { position: relative; display: grid; place-items: center; min-width: 100%; transform: translate(calc(var(--mx) * 3px), calc(var(--my) * 2px)); transition: transform .12s ease-out; }
.ascii-face {
  display: inline-block;
  min-width: 7ch;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 25px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  text-align: center;
  white-space: pre;
  text-shadow: 0 0 calc(9px + var(--near) * 7px) rgba(232,81,22,calc(.75 + var(--near) * .25));
  transform: scale(1);
  opacity: 1;
  transition: opacity .16s ease, transform .16s ease, text-shadow .25s ease;
}
.ascii-face.is-changing { opacity: 0; transform: scale(.96); }
.hero-product:hover .ascii-face { text-shadow: 0 0 16px rgba(232,81,22,1); }

.device-grille { position: absolute; bottom: 38px; left: 50%; transform: translateX(-50%); display: flex; gap: 11px; }
.device-grille i { width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(120,108,92,.15), rgba(80,70,58,.55)); box-shadow: inset 0 1px 1px rgba(0,0,0,.4); }
.device-led { position: absolute; bottom: 60px; right: 40px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 8px 1px rgba(232,81,22,.8); animation: led 3.4s ease-in-out infinite; }
@keyframes led { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.device-key { position: absolute; top: 132px; right: -5px; width: 6px; height: 52px; border-radius: 4px; background: linear-gradient(180deg, #e6ddd1, #cabfb0); box-shadow: 1px 0 2px rgba(0,0,0,.25), inset 0 1px 1px rgba(255,255,255,.7); }

.product-shadow { position: absolute; left: 50%; bottom: 6%; width: 240px; height: 34px; transform: translateX(-50%) scale(calc(1 - var(--near) * .04)); background: radial-gradient(ellipse, rgba(49,40,32,.3), transparent 68%); filter: blur(17px); z-index: -1; transition: transform .3s; }

.device-sm { --ds: .42; }
.device-lg { --ds: 1.16; }

.status { justify-self: start; display: grid; gap: 11px; font-size: 10px; color: var(--muted); }
.status span { color: var(--ink); margin-bottom: 5px; }
.scroll-cue { position: absolute; right: 4vw; bottom: 6%; color: var(--muted); font-size: 9px; line-height: 1.5; }
.scroll-cue span { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border: 1px solid var(--hairline); border-radius: 50%; color: var(--ink); animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ======================= COMPANION ======================= */
.companion { position: fixed; right: 3vw; top: 50%; z-index: 15; width: 150px; height: 188px; opacity: 0; transform: translateY(-44%) scale(.94); transform-origin: right center; pointer-events: none; transition: opacity .5s, transform .6s cubic-bezier(.2,.7,.2,1); }
.companion.visible { opacity: 1; transform: translateY(-50%) scale(1); }
.companion .device { position: absolute; left: 50%; top: 0; transform: translateX(-50%) scale(var(--ds)); transform-origin: top center; }
.companion-note { position: absolute; right: 104%; top: 22%; width: 188px; padding: 11px 13px; border: 1px solid var(--hairline); background: rgba(241,238,233,.9); color: var(--muted); font-size: 9px; line-height: 1.5; opacity: 0; transform: translateX(8px); transition: .35s; }
.companion.speaking .companion-note { opacity: 1; transform: translateX(0); }

/* ======================= CAPÍTULOS ======================= */
.chapter { position: relative; min-height: 130svh; padding: 14vh 8vw; border-top: 1px solid var(--hairline); }
.chapter-index { position: absolute; top: 8vh; left: 4vw; color: #969087; font-size: 9px; writing-mode: vertical-rl; letter-spacing: .2em; }
.chapter h2 { margin: 0; font-weight: 700; font-size: clamp(3rem, 6vw, 7.5rem); line-height: .95; letter-spacing: -.075em; }
.presence { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.observation-stack { position: relative; height: 330px; }
.observation { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(30px); transition: opacity .65s, transform .65s; }
.observation.active { opacity: 1; transform: translateY(0); }
.observation time, .memory-events time { color: var(--orange); font-size: 9px; }
.observation p { font-size: clamp(1.35rem, 2.4vw, 2.8rem); line-height: 1.35; letter-spacing: -.04em; }
.observation strong { color: var(--orange); font-weight: 500; }
.observation small { color: var(--muted); }
.side-whisper { position: absolute; bottom: 8vh; right: 8vw; color: var(--muted); font-size: 9px; line-height: 1.5; }

.memory { background: #1c1a18; color: #eee9e1; overflow: hidden; }
.memory .chapter-index, .memory .eyebrow { color: #8f8982; }
.memory-copy { max-width: 760px; }
.memory-copy > p:last-child, .care-copy > p:last-child, .encounter-copy > p:last-child { max-width: 520px; margin-top: 38px; font-family: var(--serif); color: #a59e95; font-size: 18px; line-height: 1.7; }
.care-copy > p:last-child, .encounter-copy > p:last-child { color: #6b655d; }
.memory-events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 13vh; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.12); }
.memory-events div { min-height: 170px; padding: 28px; background: #1c1a18; transition: background .4s; }
.memory-events div:hover { background: #241f1c; }
.memory-events p { max-width: 260px; font-size: 14px; line-height: 1.55; }
.memory-line { position: absolute; inset: 0; opacity: .25; }
.memory-line span { position: absolute; width: 1px; height: 55%; top: 22%; background: linear-gradient(transparent, var(--orange), transparent); animation: scan 5s infinite ease-in-out; }
.memory-line span:nth-child(1) { left: 15%; animation-delay: -1s; }.memory-line span:nth-child(2) { left: 43%; animation-delay: -3s; }.memory-line span:nth-child(3) { left: 67%; animation-delay: -2s; }.memory-line span:nth-child(4) { left: 88%; animation-delay: -4s; }
@keyframes scan { 0%,100%{transform:scaleY(.15);opacity:.2}50%{transform:scaleY(1);opacity:1} }

.care { min-height: 120svh; display: flex; flex-direction: column; justify-content: center; }
.care-copy { width: 65%; }
.care blockquote { position: absolute; right: 8vw; bottom: 14vh; margin: 0; text-align: right; font-size: clamp(1rem, 1.8vw, 1.8rem); line-height: 1.4; }
.quiet-orbit { position: absolute; right: 10vw; top: 18vh; width: 340px; height: 340px; }
.quiet-orbit span { position: absolute; inset: 50%; border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-1 { width: 78%; height: 78%; border: 1px solid var(--hairline); animation: breathe 5s infinite; }
.orbit-2 { width: 100%; height: 100%; border: 1px solid var(--hairline); animation: breathe 5s 1s infinite; }
.pulse-core { width: 9px; height: 9px; background: var(--orange); box-shadow: 0 0 30px var(--orange); }
@keyframes breathe { 0%,100%{transform:translate(-50%,-50%) scale(.9);opacity:.1}50%{transform:translate(-50%,-50%) scale(1);opacity:.8} }

.encounter { min-height: 120svh; display: grid; grid-template-columns: 44% 56%; align-items: center; gap: 3vw; background: var(--paper-2); }
.detail-window { position: relative; height: 68vh; min-height: 520px; overflow: hidden; border-radius: 5px; background: radial-gradient(120% 120% at 70% 20%, #f4f1ec, #e4ddd2); display: grid; place-items: center; }
.detail-window .device { transform: scale(var(--ds)) translate(calc(var(--mx) * 6px), calc(var(--my) * 5px)); transition: transform .3s ease-out; }
.detail-tag { position: absolute; bottom: 20px; left: 20px; padding: 10px; background: rgba(241,238,233,.87); font-size: 9px; line-height: 1.5; }
.annot { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 8px; letter-spacing: .12em; color: var(--muted); }
.annot i { width: 5px; height: 5px; border-radius: 50%; border: 1px solid var(--orange); }
.annot-1 { top: 23%; right: 12%; }
.annot-2 { top: 50%; right: 9%; }
.annot-3 { bottom: 26%; left: 11%; }

.finale { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 5vw; background: #171615; color: #f1eee9; }
.finale h2 { margin: 0; color: #77716a; font-weight: 400; font-size: clamp(1rem, 1.7vw, 1.5rem); }
.final-question { margin: 25px 0 48px; font-weight: 700; font-size: clamp(3rem, 7vw, 8rem); line-height: .95; letter-spacing: -.08em; }
.reserve-cta { position: relative; padding: 18px 25px; border: 1px solid #8d8780; border-radius: 3px; background: transparent; color: #f1eee9; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.reserve-cta:hover { background: #f1eee9; color: #171615; transform: translateY(-2px); }
.microcopy { color: #6f6963; font-size: 8px; letter-spacing: .1em; margin-top: 18px; }
.response { margin-top: 34px; color: var(--orange); font-size: 10px; opacity: 0; transform: translateY(8px); transition: .4s; }
.response.show { opacity: 1; transform: translateY(0); }

footer { position: relative; z-index: 2; min-height: 110px; display: flex; justify-content: space-between; align-items: center; padding: 0 4vw; background: #171615; color: #807a73; border-top: 1px solid rgba(255,255,255,.1); font-size: 9px; }
footer .wordmark { color: #eee9e1; font-size: 19px; }

.reveal { animation: reveal 1s .15s both cubic-bezier(.2,.7,.2,1); }
.delay-2 { animation-delay: .65s; }
@keyframes reveal { from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none} }

/* ======================= MOBILE ======================= */
@media (max-width: 900px) {
  .topbar { height: 72px; padding: 0 5vw; }
  .topbar nav { display: none; }
  .topbar .wordmark { font-size: 17px; letter-spacing: .22em; }
  .reserve-mini { padding: 9px 12px; font-size: 9px; }
  .hero { display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: 100px 7vw 70px; text-align: left; }
  .hero-product { order: -1; width: 230px; height: 290px; margin: 0 auto; --ds: .72; transform: translate(calc(var(--mx) * 6px), calc(var(--my) * 5px)); }
  .hero h1 { font-size: 25vw; }
  .status { display: none; }
  .scroll-cue { position: static; margin-top: 6px; }
  .companion { top: auto; bottom: 16px; right: 12px; width: 96px; height: 112px; transform: translateY(18px) scale(.9); transform-origin: bottom right; }
  .companion .device { --ds: .3; }
  .companion.visible { transform: translateY(0) scale(.98); }
  .companion-note { display: none; }
  .chapter { min-height: auto; padding: 16vh 8vw; }
  .presence, .encounter { grid-template-columns: 1fr; gap: 40px; }
  .presence { align-content: center; }
  .observation-stack { height: 280px; }
  .memory-events { grid-template-columns: 1fr; }
  .memory-events div { min-height: 115px; }
  .care { min-height: auto; padding-bottom: 24vh; overflow: hidden; }
  .care-copy { width: 100%; }
  .care blockquote { position: static; text-align: left; margin-top: 40px; }
  .quiet-orbit { position: absolute; width: 220px; height: 220px; right: -60px; top: 10vh; }
  .encounter { gap: 50px; }
  .detail-window { min-height: 440px; height: 56vh; --ds: .95; }
  .annot { display: none; }
  footer { flex-direction: column; justify-content: center; gap: 18px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #memory-field { display: none; }
  .visor-scan { display: none; }
}
