:root {
  --ink: #f1eee6;
  --muted: #9da7a7;
  --night: #071314;
  --night-soft: #0b1b1b;
  --panel: #0d2020;
  --line: rgba(224, 206, 170, .14);
  --copper: #d29450;
  --copper-light: #efbd7b;
  --teal: #5faaa2;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 10%, rgba(38, 91, 87, .18), transparent 30rem),
    linear-gradient(145deg, #071111 0%, #081717 44%, #071212 100%);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: .025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

.site-header {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 84px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, height .3s;
}

.site-header.scrolled {
  height: 72px;
  background: rgba(7, 19, 20, .88);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 13px; width: max-content; }
.brand-mark { width: 38px; height: 38px; color: var(--copper); }
.brand-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; }
.brand-mark svg path:last-child { stroke-width: 1.1; }
.brand strong { display: block; font: 600 15px/1.2 "Manrope", sans-serif; letter-spacing: .03em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }

.main-nav { display: flex; gap: 40px; align-items: center; }
.main-nav a { color: #859291; font-size: 13px; padding: 9px 1px; position: relative; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper); }

.local-status { justify-self: end; color: #8fa09e; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; font-size: 11px; letter-spacing: .03em; }
.local-status span { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #75b994; box-shadow: 0 0 0 4px rgba(117,185,148,.1); }

.header-account-action { justify-self: end; padding: 9px 17px; border: 1px solid var(--line); border-radius: 999px; color: #c7d1cf; font: 600 11px "Manrope", sans-serif; letter-spacing: .03em; transition: border-color .2s, color .2s, background .2s, transform .2s; }
.header-account-action:hover { border-color: var(--copper); color: var(--ink); transform: translateY(-1px); }
.header-account-action.is-cta { background: var(--copper); color: #111817; border-color: var(--copper); }
.header-account-action.is-cta:hover { background: var(--copper-light); border-color: var(--copper-light); }

main { overflow: hidden; }

.hero {
  width: min(1360px, calc(100% - 48px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 6vh 0 10vh;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; max-width: 650px; }
.eyebrow { margin: 0 0 22px; color: var(--copper-light); font: 600 10px/1.4 "Manrope", sans-serif; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow span { padding-right: 16px; margin-right: 13px; border-right: 1px solid rgba(210,148,80,.4); }
h1 { margin: 0; max-width: 700px; font: 600 clamp(50px, 5.6vw, 88px)/.98 "Playfair Display", serif; letter-spacing: -.045em; }
h1 em { color: var(--copper-light); font-weight: 500; }
.hero-intro { max-width: 580px; margin: 30px 0 0; color: #9aa7a6; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; border: 1px solid var(--line); border-radius: 3px; font: 600 12px "Manrope", sans-serif; letter-spacing: .04em; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); border-color: rgba(239,189,123,.45); }
.button.primary { background: var(--copper); color: #111817; border-color: var(--copper); }
.button.primary:hover { background: var(--copper-light); }
.button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.button.ghost { color: #adb8b6; }

.hero-art { min-height: 620px; position: relative; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; inset: 8% 3%; border: 1px solid rgba(210,148,80,.09); border-radius: 50%; filter: blur(1px); }
.astrolabe { width: min(100%, 680px); overflow: visible; filter: drop-shadow(0 32px 50px rgba(0,0,0,.3)); animation: arrive 1.2s ease both; }
.ring, .axis { fill: none; stroke: rgba(213,179,126,.18); stroke-width: 1; }
.ring.bold { stroke: rgba(213,179,126,.35); stroke-width: 1.4; }
.ring.dashed { stroke-dasharray: 3 8; }
.axis { stroke: rgba(213,179,126,.09); }
.route-shadow { fill: none; stroke: rgba(210,148,80,.18); stroke-width: 15; filter: url(#soft); }
.route { fill: none; stroke: var(--copper-light); stroke-width: 2; stroke-dasharray: 7 7; animation: route 2.2s ease both .4s; }
.point { fill: var(--copper-light); stroke: #0a1b1b; stroke-width: 6; }
.point.minor { fill: var(--teal); }
.point.destination { fill: #efc385; filter: drop-shadow(0 0 10px rgba(239,195,133,.8)); }
.compass { fill: rgba(210,148,80,.18); stroke: var(--copper); stroke-width: 1; }
.compass path:nth-child(even) { fill: rgba(95,170,162,.16); }

.chart-label { position: absolute; z-index: 2; color: #899896; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; white-space: nowrap; }
.chart-label span { display: inline-block; width: 22px; margin-right: 8px; border-top: 1px solid rgba(210,148,80,.5); vertical-align: middle; }
.label-lisbon { top: 20%; left: 7%; }
.label-ocean { top: 46%; right: 1%; }
.label-hidden { bottom: 19%; right: 2%; color: var(--copper-light); }

.manuscript-card { position: absolute; left: 4%; bottom: 6%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-width: 270px; padding: 14px 16px; border: 1px solid rgba(224,206,170,.18); border-radius: 5px; background: rgba(10,28,28,.88); box-shadow: 0 18px 50px rgba(0,0,0,.3); backdrop-filter: blur(15px); }
.document-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--copper-light); background: rgba(210,148,80,.1); border-radius: 3px; }
.document-icon svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.manuscript-card small, .manuscript-card strong { display: block; }
.manuscript-card small { color: #81908e; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.manuscript-card strong { margin-top: 4px; font: 600 13px "Manrope", sans-serif; }
.check { width: 24px; height: 24px; display: grid; place-items: center; color: #78b899; background: rgba(120,184,153,.1); border-radius: 50%; font-size: 12px; }

.project-overview { background: #ede8dc; color: #16201f; padding: 110px max(24px, calc((100vw - 1260px) / 2)); }
.section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 42px; }
.section-heading .eyebrow, .journey .eyebrow { margin-bottom: 10px; color: #9a612a; }
h2 { margin: 0; font: 600 clamp(36px, 4vw, 56px)/1.05 "Playfair Display", serif; letter-spacing: -.035em; }
.section-heading > p { max-width: 520px; margin: 0 0 5px auto; color: #65706e; line-height: 1.7; font-size: 14px; }
.overview-grid { display: grid; grid-template-columns: 1.55fr .65fr; gap: 18px; }
.project-card { min-height: 420px; border-radius: 6px; padding: clamp(26px, 4vw, 52px); position: relative; overflow: hidden; }
.project-card.featured { background: radial-gradient(circle at 84% 22%, rgba(43,99,94,.8), transparent 34%), linear-gradient(135deg, #0c2827, #091a1b 75%); color: var(--ink); }
.project-card.featured::after { content: ""; position: absolute; right: -70px; top: -70px; width: 390px; height: 390px; border: 1px solid rgba(218,171,108,.16); border-radius: 50%; box-shadow: 0 0 0 54px rgba(218,171,108,.025), 0 0 0 108px rgba(218,171,108,.018); }
.card-topline { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.chapter-number { color: var(--copper-light); font: 500 14px "Manrope", sans-serif; }
.status-pill { padding: 7px 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #9fb0ad; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.status-pill i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: #76b693; }
.project-card-copy { position: relative; z-index: 1; margin-top: 80px; }
.project-card-copy > p { color: #849a97; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.project-card h3 { margin: 6px 0 25px; font: 600 clamp(30px, 3.4vw, 48px) "Playfair Display", serif; }
blockquote { max-width: 550px; margin: 0; padding-left: 17px; border-left: 1px solid var(--copper); color: #aebbb8; font: italic 500 15px/1.7 "Playfair Display", serif; }
.card-footer { position: absolute; z-index: 1; left: clamp(26px, 4vw, 52px); right: clamp(26px, 4vw, 52px); bottom: 27px; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.08); color: #738885; font-size: 10px; }
.round-arrow { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; color: var(--copper-light); }
.stats-stack { display: grid; grid-template-rows: repeat(3, 1fr); gap: 18px; }
.stat-card { padding: 22px 25px; display: flex; align-items: center; gap: 20px; background: #f7f3e9; border: 1px solid rgba(21,46,44,.08); border-radius: 6px; transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(19,45,42,.08); }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font: 600 28px "Playfair Display", serif; }
.stat-card div span { margin-top: 3px; color: #77817f; font-size: 11px; }
.stat-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; background-color: #e9dfcd; position: relative; }
.stat-icon::before, .stat-icon::after { content: ""; position: absolute; }
.stat-icon.chapters::before { width: 14px; height: 18px; left: 14px; top: 11px; border: 1px solid #9a612a; border-radius: 1px; box-shadow: -3px 3px 0 #e9dfcd, -4px 4px 0 #9a612a; }
.stat-icon.sections::before { width: 18px; left: 12px; top: 13px; border-top: 1px solid #9a612a; box-shadow: 0 6px #9a612a, 0 12px #9a612a; }
.stat-icon.words::before { content: "Aa"; inset: 0; display: grid; place-items: center; color: #9a612a; font: 600 13px "Playfair Display", serif; }

.journey { padding: 110px max(24px, calc((100vw - 1260px) / 2)) 120px; }
.journey-title { text-align: center; }
.journey-title > p:last-child { color: var(--muted); font-size: 13px; }
.journey-track { position: relative; margin-top: 70px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.journey-step { min-height: 280px; padding: 26px 22px; position: relative; background: #091718; }
.journey-step.current { background: linear-gradient(180deg, rgba(29,66,63,.8), #0a1919); }
.step-index { color: #5f716f; font: 500 10px "Manrope", sans-serif; letter-spacing: .1em; }
.step-symbol { display: block; width: 44px; height: 44px; margin: 42px 0 24px; position: relative; color: #617b78; stroke-width: 1.3; }
.current .step-symbol { color: var(--copper-light); }
.step-symbol::before, .step-symbol::after { content: ""; position: absolute; }
.step-symbol.manuscript::before { inset: 5px 9px; border: 1px solid currentColor; transform: rotate(-5deg); }
.step-symbol.manuscript::after { width: 15px; left: 15px; top: 15px; border-top: 1px solid currentColor; box-shadow: 0 6px currentColor, 0 12px currentColor; }
.step-symbol.script::before { width: 28px; height: 34px; left: 7px; top: 4px; border: 1px solid currentColor; border-radius: 50% 5px 50% 5px; transform: rotate(-18deg); }
.step-symbol.script::after { width: 34px; border-top: 1px solid currentColor; left: 6px; top: 31px; transform: rotate(-38deg); transform-origin: left; }
.step-symbol.image::before { inset: 5px; border: 1px solid currentColor; }
.step-symbol.image::after { width: 20px; height: 12px; left: 12px; top: 18px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.step-symbol.voice::before { width: 14px; height: 25px; left: 14px; top: 3px; border: 1px solid currentColor; border-radius: 8px; }
.step-symbol.voice::after { width: 26px; height: 25px; left: 8px; top: 10px; border: solid currentColor; border-width: 0 1px 1px; border-radius: 0 0 14px 14px; }
.step-symbol.film::before { inset: 8px 3px; border: 1px solid currentColor; border-radius: 3px; }
.step-symbol.film::after { inset: 10px 5px; border: dashed currentColor; border-width: 0 3px; }
.journey-step h3 { margin: 0 0 10px; font: 600 21px "Playfair Display", serif; }
.journey-step p { margin: 0; color: #71807f; font-size: 11px; line-height: 1.6; }
.step-status { position: absolute; bottom: 23px; color: #526563; font: 600 8px "Manrope", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.step-status.ready { color: #78b899; }

footer { min-height: 75px; padding: 0 max(24px, calc((100vw - 1260px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #536664; border-top: 1px solid var(--line); font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.footer-mark { color: #786b57; font-family: "Playfair Display", serif; font-style: italic; text-transform: none; letter-spacing: .03em; }

@keyframes route { from { stroke-dashoffset: 400; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes arrive { from { opacity: 0; transform: scale(.95) rotate(-3deg); } to { opacity: 1; transform: scale(1) rotate(0); } }

/* Notebooks e monitores Full HD com pouca altura útil no navegador. */
@media (min-width: 981px) and (max-height: 950px) {
  .site-header { height: 76px; }
  .site-header.scrolled { height: 68px; }

  .hero {
    height: calc(100svh - 76px);
    min-height: 680px;
    padding: clamp(22px, 3vh, 34px) 0 clamp(26px, 4vh, 42px);
    gap: clamp(28px, 4vw, 68px);
  }

  .hero .eyebrow { margin-bottom: 14px; }
  .hero h1 {
    font-size: clamp(54px, min(4.7vw, 8.4vh), 74px);
    line-height: .96;
  }
  .hero-intro {
    max-width: 550px;
    margin-top: 20px;
    font-size: clamp(14px, 1vw, 16px);
    line-height: 1.6;
  }
  .hero-actions { margin-top: 24px; }
  .hero .button { min-height: 46px; }

  .hero-art { height: 100%; min-height: 0; }
  .astrolabe { width: min(100%, calc(100svh - 150px), 610px); }
  .manuscript-card { bottom: 3%; }
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 80px; }
  .hero-copy { max-width: 760px; }
  .hero-art { min-height: 560px; }
  .overview-grid { grid-template-columns: 1fr; }
  .stats-stack { grid-template-columns: repeat(3, 1fr); grid-template-rows: auto; }
  .stat-card { padding: 20px 16px; }
  .journey-track { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .site-header { height: 72px; padding: 0 18px; }
  .brand small { display: none; }
  .local-status { font-size: 0; padding: 8px; }
  .local-status span { margin: 0; }
  .hero { width: calc(100% - 36px); padding-top: 55px; }
  h1 { font-size: clamp(46px, 14vw, 70px); }
  .hero-intro { font-size: 15px; }
  .hero-art { min-height: 400px; margin: 10px -40px 0; }
  .chart-label { display: none; }
  .manuscript-card { left: 50%; bottom: 0; transform: translateX(-50%); }
  .project-overview, .journey { padding-top: 78px; padding-bottom: 78px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .section-heading > p { margin-left: 0; }
  .project-card { min-height: 440px; }
  .stats-stack { grid-template-columns: 1fr; }
  .journey-track { grid-template-columns: 1fr; margin-top: 45px; }
  .journey-step { min-height: 230px; }
  .step-symbol { margin-top: 30px; }
  footer { padding-top: 25px; padding-bottom: 25px; flex-direction: column; justify-content: 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; }
}
