:root {
  --night: #031015;
  --night-raised: #071a22;
  --night-soft: #0c252d;
  --mist: #dfe8e7;
  --ink: #eef4f2;
  --ink-dark: #07161a;
  --muted: #a8b7b8;
  --muted-strong: #c6d1d0;
  --accent: #ffde59;
  --line: rgba(238, 244, 242, 0.16);
  --line-strong: rgba(238, 244, 242, 0.28);
  --body: "Archivo", Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --header-height: 72px;
  --z-header: 30;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--night);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-synthesis: none;
}

body, button, input, select { font-synthesis: none; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

::selection {
  color: var(--ink-dark);
  background: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

h1, h2, h3, p, figure, dl, dd { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; }
p { text-wrap: pretty; }

.sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  color: var(--ink);
  background: rgba(3, 16, 21, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.page-progress {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

.nav-wrap {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  width: 118px;
  height: 60px;
  flex: 0 0 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  backface-visibility: hidden;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 600;
}

.main-nav > a:not(.nav-cta) {
  color: var(--muted-strong);
  transition: color 220ms ease;
}

.main-nav > a:not(.nav-cta):hover { color: var(--ink); }

.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 15px;
  color: var(--ink-dark);
  background: var(--accent);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  padding: 10px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  display: block;
  margin: 5px auto;
  background: currentColor;
  transition: transform 240ms cubic-bezier(.16, 1, .3, 1);
}

.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.hero {
  min-height: calc(100dvh - var(--header-height));
  position: relative;
  display: grid;
  isolation: isolate;
  overflow: hidden;
  background: var(--night);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  z-index: -2;
  background: rgba(1, 10, 14, 0.46);
}

.hero-stars {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.hero-brand {
  width: min(600px, 50vw);
  height: auto;
  position: absolute;
  z-index: 1;
  top: 43%;
  left: 50%;
  margin: 0;
  overflow: visible;
  transform: translate(-50%, -58%);
}

.hero-brand-frame {
  width: 100%;
  height: auto;
  display: block;
}

.hero-brand-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  backface-visibility: hidden;
}

.hero-inner {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  align-items: flex-end;
  padding-block: clamp(48px, 8vh, 88px);
}

.hero-copy {
  width: min(780px, 72%);
  position: relative;
  z-index: 2;
}

.hero-copy > p {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.35;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 19px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 240ms cubic-bezier(.16, 1, .3, 1), background-color 240ms ease, color 240ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-gold { color: var(--ink-dark); background: var(--accent); }
.button-gold:hover { background: #f5d779; }
.button-ghost { color: var(--ink); background: rgba(3, 16, 21, 0.7); border-color: var(--line-strong); }
.button-ghost:hover { background: rgba(3, 16, 21, 0.9); }

.manifesto {
  padding: clamp(110px, 15vw, 220px) 0;
  background: var(--night);
}

.manifesto-layout h2 {
  max-width: 1000px;
  margin-bottom: 54px;
  font-size: 5.8rem;
  font-weight: 500;
  line-height: .96;
  letter-spacing: 0;
}

.manifesto-layout > p {
  max-width: 620px;
  margin: 0 0 0 auto;
  color: var(--muted-strong);
  font-size: 1.45rem;
  line-height: 1.5;
}

.model-theatre {
  position: relative;
  background: var(--night);
}

.section-intro {
  padding-block: clamp(92px, 11vw, 150px) clamp(66px, 8vw, 100px);
}

.section-intro > p {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.section-intro h2 {
  max-width: 800px;
  margin-bottom: 42px;
  font-size: 5.2rem;
  font-weight: 500;
  line-height: .98;
  letter-spacing: 0;
}

.section-rule {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.model-stack { position: relative; }

.model-panel {
  min-height: calc(100dvh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--night-raised);
  border-top: 1px solid var(--line);
}

.model-panel-via { z-index: 1; }
.model-panel-agora { z-index: 2; margin-top: 18vh; background: var(--night-soft); }
.model-panel-eixo { z-index: 3; margin-top: 18vh; background: var(--night-raised); }

.model-layout {
  min-height: calc(100dvh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  padding-block: 48px;
}

.model-layout-reverse { grid-template-columns: minmax(320px, .65fr) minmax(0, 1.35fr); }
.model-layout-reverse .model-visual { grid-column: 2; grid-row: 1; }
.model-layout-reverse .model-copy { grid-column: 1; grid-row: 1; }

.model-visual {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  margin: 0;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid var(--line-strong);
  overflow: hidden;
}

.model-visual img {
  width: 100%;
  height: clamp(360px, 62vh, 650px);
  display: block;
  object-fit: contain;
  object-position: center bottom;
  filter: none;
}

.model-panel-via .model-visual img,
.model-panel-eixo .model-visual img { object-position: left bottom; }

.model-panel-agora .model-visual img {
  width: 88%;
  margin-inline: auto;
}

.model-copy { max-width: 470px; }

.model-role {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.model-copy h3 {
  margin-bottom: 24px;
  font-size: 6rem;
  font-weight: 600;
  line-height: .86;
  letter-spacing: 0;
}

.model-description {
  max-width: 42ch;
  margin-bottom: 40px;
  color: var(--muted-strong);
  font-size: 18px;
}

.model-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.model-facts dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.model-facts dd {
  margin-left: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.model-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 6px;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  font-weight: 700;
}

.model-link span { color: var(--accent); }

.principles {
  padding: clamp(110px, 14vw, 190px) 0;
  background: var(--night-raised);
}

.principles-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(60px, 10vw, 150px);
}

.principles-heading { align-self: start; position: sticky; top: calc(var(--header-height) + 64px); }

.principles-heading h2,
.applications-heading h2,
.contact-copy h2 {
  margin-bottom: 24px;
  font-size: 5rem;
  font-weight: 500;
  line-height: .98;
  letter-spacing: 0;
}

.principles-heading p,
.applications-heading p,
.contact-copy p {
  max-width: 520px;
  color: var(--muted-strong);
  font-size: 18px;
}

.principle-list article {
  min-height: 190px;
  padding-block: 36px 50px;
  border-top: 1px solid var(--line-strong);
}

.principle-list article:last-child { border-bottom: 1px solid var(--line-strong); }

.principle-list h3 {
  margin-bottom: 14px;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.principle-list p {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--muted);
}

.applications {
  padding: clamp(110px, 14vw, 190px) 0;
  background: var(--night);
}

.applications-heading { max-width: 760px; margin-bottom: 80px; }

.application-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 64px;
}

.application-list article {
  min-height: 220px;
  padding-block: 34px;
  border-top: 1px solid var(--line-strong);
}

.application-list h3 {
  margin-bottom: 18px;
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.application-list p {
  max-width: 34ch;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  padding: clamp(110px, 14vw, 180px) 0;
  background: var(--night-raised);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  gap: clamp(60px, 10vw, 150px);
}

.contact-copy strong {
  display: block;
  margin-top: 52px;
  color: var(--accent);
  font-size: 14px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.form-hidden { display: none; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.contact-form label:nth-of-type(3),
.contact-form label:nth-of-type(4),
.contact-form button,
.form-status { grid-column: 1 / -1; }

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  outline: 0;
  color: var(--ink);
  background: rgba(238, 244, 242, 0.04);
}

.contact-form input::placeholder { color: #9dafb0; opacity: 1; }
.contact-form option { color: var(--ink-dark); background: var(--mist); }
.contact-form input:focus, .contact-form select:focus { border-color: var(--accent); }
.contact-form button { width: max-content; margin-top: 6px; }
.contact-form.is-sending button { opacity: .72; cursor: wait; }

.form-status {
  min-height: 24px;
  margin-bottom: 0;
  color: var(--accent);
  font-size: 13px;
}

.site-footer {
  background: var(--night);
  border-top: 1px solid var(--line);
}

.success-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(217, 166, 93, 0.16), transparent 30%),
    var(--night);
}

.success-panel {
  width: min(680px, calc(100% - 40px));
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid var(--line-strong);
  background: rgba(13, 28, 32, 0.74);
  text-align: center;
}

.success-panel img {
  width: min(180px, 52vw);
  margin: 0 auto 42px;
}

.success-panel p {
  margin: 16px 0 28px;
  color: var(--muted);
}

.footer-wrap {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 28px;
}

.brand-footer { width: 156px; height: 106px; flex-basis: 156px; }
.footer-wrap > p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.footer-meta { display: flex; justify-content: flex-end; gap: 22px; color: var(--muted); font-size: 12px; }
.footer-meta a:hover { color: var(--accent); }

@keyframes page-progress {
  to { transform: scaleX(1); }
}

@keyframes hero-arrival {
  from { transform: scale(1.045); }
  to { transform: scale(1); }
}

@keyframes hero-copy-arrival {
  from { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 100% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}

@keyframes hero-brand-arrival {
  from { opacity: 0; transform: translate(-50%, -54%) scale(.96); }
  to { opacity: 1; transform: translate(-50%, -58%) scale(1); }
}

@keyframes section-arrival {
  from { opacity: .18; transform: translateY(34px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes product-arrival {
  from { opacity: .55; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1); }
}

@supports (animation-timeline: scroll()) {
  .page-progress {
    animation: page-progress linear both;
    animation-timeline: scroll(root);
  }
}

@supports (animation-timeline: view()) {
  .section-intro,
  .principles-heading,
  .principle-list article,
  .applications-heading,
  .application-list article,
  .contact-copy,
  .contact-form {
    animation: section-arrival linear both;
    animation-timeline: view();
    animation-range: entry 5% cover 32%;
  }

  .model-visual img {
    animation: product-arrival linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 48%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: hero-arrival 1.6s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-brand { animation: hero-brand-arrival 1.15s .08s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy { animation: hero-copy-arrival 1s .15s cubic-bezier(.16, 1, .3, 1) both; }
}

@media (max-width: 1024px) {
  .container { width: min(100% - 44px, 900px); }

  .model-layout,
  .model-layout-reverse {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    gap: 42px;
  }

  .model-layout-reverse .model-visual { grid-column: 2; }
  .model-layout-reverse .model-copy { grid-column: 1; }
  .model-facts { grid-template-columns: 1fr; gap: 12px; }
  .model-facts div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }

  .principles-layout,
  .contact-layout { gap: 70px; }
}

@media (max-width: 780px) {
  :root { --header-height: 68px; }
  .container { width: min(100% - 28px, 620px); }

  .brand { width: 104px; height: 56px; flex-basis: 104px; }
  .menu-toggle { display: block; }

  .main-nav {
    position: absolute;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    background: var(--night-raised);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { min-height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; }
  .nav-cta { margin-top: 8px; }

  .hero-media { object-position: 64% center; }
  .hero-overlay { background: rgba(1, 10, 14, 0.64); }
  .hero-brand {
    width: min(360px, calc(100% - 24px));
    height: auto;
    top: 39%;
    transform: translate(-50%, -58%);
  }
  .hero-inner { align-items: flex-end; padding-block: 54px; }
  .hero-copy { width: 100%; }
  .hero-copy > p { max-width: 420px; font-size: 1.2rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; justify-content: space-between; }

  .manifesto { padding-block: 104px; }
  .manifesto-layout h2 { margin-bottom: 36px; font-size: 4.2rem; }
  .manifesto-layout > p { margin-left: 0; font-size: 1.12rem; }

  .section-intro { padding-block: 92px 66px; }
  .section-intro h2 { font-size: 4rem; }

  .model-panel,
  .model-panel-agora,
  .model-panel-eixo {
    min-height: auto;
    position: relative;
    top: auto;
    margin-top: 0;
    padding-block: 72px;
  }

  .model-layout,
  .model-layout-reverse {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 46px;
    padding-block: 0;
  }

  .model-layout-reverse .model-visual,
  .model-layout-reverse .model-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .model-copy { max-width: none; }
  .model-visual { order: 1; }
  .model-copy { order: 2; }
  .model-visual img { height: clamp(280px, 70vw, 440px); }
  .model-copy h3 { font-size: 5.3rem; }
  .model-description { font-size: 16px; }
  .model-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .model-facts div { display: block; }
  .principles,
  .applications,
  .contact-section { padding-block: 104px; }

  .principles-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 58px; }
  .principles-heading { position: static; }
  .principle-list article { min-height: 0; }

  .applications-heading { margin-bottom: 58px; }
  .application-list { grid-template-columns: 1fr; gap: 0; }
  .application-list article { min-height: 170px; }

  .contact-form { grid-template-columns: 1fr; }
  .contact-form label:nth-of-type(3),
  .contact-form label:nth-of-type(4),
  .contact-form button,
  .form-status { grid-column: auto; }
  .contact-form button { width: 100%; justify-content: space-between; }

  .footer-wrap {
    min-height: 220px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
  }

  .brand-footer { width: 142px; height: 96px; }
  .footer-meta { justify-content: space-between; }
}

@media (max-width: 430px) {
  .manifesto-layout h2 { font-size: 3.35rem; }
  .section-intro h2 { font-size: 3.25rem; }
  .model-copy h3 { font-size: 4.6rem; }
  .model-facts { grid-template-columns: 1fr; }
  .model-facts div { display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
  .model-link { width: 100%; justify-content: space-between; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
