:root {
  --paper: #f6f8f1;
  --paper-strong: #fffdf7;
  --ink: #10231a;
  --muted: #66756a;
  --line: #d8e1d7;
  --green-950: #071710;
  --green-900: #0c2b1f;
  --green-800: #164832;
  --green-700: #1e6d47;
  --green-500: #4da874;
  --sage: #dbe9d7;
  --lime: #d5f06d;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 0.9rem max(1rem, calc((100% - 1180px) / 2));
  color: #ffffff;
  background: linear-gradient(180deg, rgba(7, 23, 16, 0.78), rgba(7, 23, 16, 0.18));
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  width: 2.35rem;
  height: 2.35rem;
  object-fit: contain;
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 1.35rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.nav-links a,
.footer-nav a {
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active,
.header-link:hover {
  color: var(--lime);
}

.header-link {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.52fr);
  align-items: end;
  gap: 2rem;
  min-height: 100vh;
  padding: 8rem max(1rem, calc((100% - 1180px) / 2)) 4.25rem;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: -2;
  background-image: url("../assets/images/tapiobridge-hero-background.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 23, 16, 0.93) 0%, rgba(7, 23, 16, 0.76) 39%, rgba(7, 23, 16, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 23, 16, 0.2), rgba(7, 23, 16, 0.88));
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green-700);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero .eyebrow,
.method .eyebrow,
.conversation-panel .eyebrow {
  color: var(--lime);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11.5ch;
  margin-bottom: 1.35rem;
  font-size: 5.9rem;
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: 4.15rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.88rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 850;
  line-height: 1;
  transition: transform 170ms ease, background 170ms ease, border-color 170ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--green-950);
  background: var(--lime);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.hero-status {
  justify-self: end;
  width: min(100%, 21rem);
  padding: 0.95rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-status span {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-status strong {
  color: #ffffff;
  font-size: 1.35rem;
}

.section,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 6.5rem 0;
}

.focus-layout,
.exploration,
.method-heading,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: 5rem;
  align-items: start;
}

.section-heading {
  display: grid;
  gap: 1rem;
}

.section-heading h2,
.method-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  max-width: 680px;
  margin-bottom: 0;
}

.focus-note {
  padding-top: 0.9rem;
  border-top: 2px solid var(--green-800);
}

.focus-note span,
.signal-item span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-note strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--green-900);
  font-size: 1.2rem;
}

.focus-note p {
  margin-bottom: 0;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4rem;
  border-top: 1px solid var(--green-900);
}

.signal-item {
  min-height: 13.5rem;
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.signal-item + .signal-item {
  padding-left: 1.25rem;
  border-left: 1px solid var(--line);
}

.signal-item strong {
  display: block;
  max-width: 17rem;
  color: var(--green-950);
  font-size: 1.32rem;
  line-height: 1.22;
}

.exploration {
  width: 100%;
  max-width: none;
  padding: 7rem max(1rem, calc((100% - 1180px) / 2));
  background: var(--paper-strong);
}

.exploration-copy p:not(.eyebrow) {
  max-width: 680px;
}

.disclaimer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--green-800);
  font-weight: 730;
}

.research-board {
  padding-top: 0.2rem;
}

.board-heading {
  padding: 0 0 1.25rem;
  border-bottom: 1px solid var(--green-900);
}

.board-heading span,
.research-board dt {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green-700);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.board-heading strong {
  display: block;
  color: var(--green-950);
  font-size: 2rem;
  line-height: 1.08;
}

.research-board dl {
  margin: 0;
}

.research-board dl div {
  display: grid;
  grid-template-columns: minmax(9rem, 0.36fr) minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.research-board dd {
  margin: 0;
  color: var(--green-950);
  font-size: 1.05rem;
  font-weight: 800;
}

.method {
  width: 100%;
  max-width: none;
  padding: 7rem max(1rem, calc((100% - 1180px) / 2));
  background: var(--green-950);
}

.method-heading {
  margin-bottom: 4rem;
}

.method-heading h2,
.method-heading p {
  color: #ffffff;
}

.method-heading p {
  margin-bottom: 0;
  color: #c8d8cc;
}

.readiness-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.readiness-main {
  position: sticky;
  top: 6rem;
  padding-top: 1.25rem;
}

.readiness-main h3 {
  color: #ffffff;
  font-size: 1.85rem;
}

.readiness-main p {
  color: #c8d8cc;
}

.readiness-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.readiness-list li {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.readiness-list strong {
  color: var(--lime);
}

.readiness-list span {
  color: #eef5ef;
}

.conversation {
  width: 100%;
  max-width: none;
  padding: 0;
}

.conversation-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 4rem;
  padding: 7rem max(1rem, calc((100% - 1180px) / 2));
  background: var(--green-900);
}

.conversation-panel h2,
.conversation-panel p {
  color: #ffffff;
}

.conversation-columns {
  display: grid;
  gap: 1.5rem;
}

.conversation-columns p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 5rem;
}

.about-copy {
  grid-column: 2;
}

blockquote {
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--green-800);
  color: var(--green-900);
  font-size: 2.2rem;
  font-weight: 850;
  line-height: 1.18;
}

.contact {
  padding-top: 6.5rem;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  padding: 1.35rem;
  border: 1px solid rgba(16, 35, 26, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(7, 23, 16, 0.12);
}

label {
  display: grid;
  gap: 0.42rem;
  color: var(--green-900);
  font-size: 0.9rem;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcf8;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green-700);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(77, 168, 116, 0.12);
}

.full-span {
  grid-column: 1 / -1;
}

.privacy-note {
  margin: 0;
  font-size: 0.84rem;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 760;
}

.form-status.is-success {
  color: var(--green-700);
}

.form-status.is-error {
  color: #8b1e1e;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 0.8rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--green-700);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.88rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.4rem, -0.8rem, 0);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
    padding-inline: 1rem;
  }

  .nav-toggle {
    justify-self: end;
    display: grid;
    gap: 0.36rem;
    place-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-toggle span {
    width: 1.1rem;
    height: 2px;
    background: #ffffff;
  }

  .nav-links,
  .header-link {
    display: none;
  }

  .nav-links.open {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero,
  .focus-layout,
  .exploration,
  .method-heading,
  .readiness-panel,
  .conversation-panel,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    min-height: 860px;
    padding-inline: 1rem;
  }

  h1 {
    font-size: 4.55rem;
  }

  h2 {
    font-size: 3.15rem;
  }

  .hero-status {
    justify-self: start;
  }

  .signal-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .signal-item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .about-copy {
    grid-column: auto;
  }

  .readiness-main {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    padding-block: 0.72rem;
  }

  .brand {
    gap: 0.52rem;
    font-size: 0.96rem;
  }

  .brand-logo {
    width: 2rem;
    height: 2rem;
  }

  .nav-toggle {
    width: 2.35rem;
    height: 2.35rem;
  }

  .hero {
    min-height: 760px;
    padding-top: 6.4rem;
  }

  h1 {
    max-width: 12.8ch;
    font-size: 3.05rem;
  }

  h2 {
    max-width: 16ch;
    font-size: 2.18rem;
  }

  blockquote {
    font-size: 1.5rem;
  }

  .hero-actions {
    width: 100%;
  }

  .button {
    min-height: 2.55rem;
    padding: 0.72rem 0.9rem;
    font-size: 0.92rem;
  }

  .signal-board,
  .research-board dl div,
  .readiness-list li,
  .contact-form,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .signal-item,
  .signal-item + .signal-item {
    min-height: auto;
    padding: 1.1rem 0;
    border-left: 0;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}
