@font-face {
  font-family: "PP Neue Machina";
  src: url("/assets/fonts/neuemachina-ultrabold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #060D1C;
  --navy: #0A1428;
  --navy-brand: #0F2149;
  --stage: #0B1730;
  --cream: #F6F1E6;
  --orange: #E0633C;
  --slate: #5D6675;
  --muted: #8A93A3;
  --soft: #C9CFDA;
  --ink: #3C4658;
  --line: #E3E0D6;
  --white: #ffffff;
  --error: #F2A58C;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-head: "Archivo", "Source Sans 3", sans-serif;
  --font-logo: "PP Neue Machina", "Archivo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--cream); }
a:hover { color: var(--white); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-stretch: 87.5%;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-cream { background: var(--cream); color: var(--navy-brand); }
.btn-cream:hover { background: var(--white); color: var(--navy-brand); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(246,241,230,.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cream); color: var(--cream); }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 22px; padding-bottom: 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-logo); font-weight: 800; font-size: 22px; letter-spacing: .08em;
  color: var(--cream); text-decoration: none;
}
.brand img { display: block; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.navlink { color: var(--soft); text-decoration: none; font-size: 15px; padding: 10px 4px; }
.navlink:hover { color: var(--cream); }
.site-nav .btn { min-height: 44px; font-size: 15px; }

/* Hero */
.hero { padding: 56px 0 120px; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 64px; }
.hero-copy { width: 100%; max-width: 920px; text-align: center; }
.hero h1 {
  font-weight: 800; font-size: clamp(44px, 6vw, 80px); line-height: 1.04;
  letter-spacing: -.015em; color: var(--cream);
}
.hero-lede { margin: 28px auto 0; max-width: 34em; font-size: 20px; line-height: 1.6; color: var(--soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.hero-place { margin: 28px 0 0; font-size: 15px; color: var(--muted); }

.diagram { width: 100%; max-width: min(620px, calc((100vh - 200px) * 1.2174)); display: flex; flex-direction: column; gap: 14px; }
.diagram-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.diagram-caption { margin: 0; font-size: 14px; color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(246,241,230,.08); }
.segbtn {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent;
  color: var(--soft); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.segbtn.on { background: var(--cream); color: var(--navy-brand); }

.stage {
  position: relative; width: 100%; aspect-ratio: 560 / 460; border-radius: 28px; overflow: hidden;
  background-color: var(--stage);
  background-image: radial-gradient(rgba(246,241,230,.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.layer { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .7s ease; }
.layer.off { opacity: 0; }
.pulse { stroke-dasharray: 6 200; animation: pulse 2.4s linear infinite; }
.p2 { animation-delay: .4s; } .p3 { animation-delay: .8s; } .p4 { animation-delay: 1.2s; }
.p5 { animation-delay: 1.6s; } .p6 { animation-delay: 2s; }
@keyframes pulse { 0% { stroke-dashoffset: 6; } 100% { stroke-dashoffset: -100; } }

.node {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: var(--deep); color: var(--cream); font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(246,241,230,.22);
  transition: left 1s cubic-bezier(.65,0,.35,1), top 1s cubic-bezier(.65,0,.35,1), transform 1s cubic-bezier(.65,0,.35,1), box-shadow .6s ease;
}
.node.is-after { box-shadow: inset 0 0 0 1px rgba(246,241,230,.5); }
.node.is-before.r1 { transform: translate(-50%, -50%) rotate(-5deg); }
.node.is-before.r2 { transform: translate(-50%, -50%) rotate(4deg); }
.node.is-before.r3 { transform: translate(-50%, -50%) rotate(-3deg); }
.node.is-before.r4 { transform: translate(-50%, -50%) rotate(6deg); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--slate); transition: background .6s ease; }
.node.is-after .dot { background: var(--cream); }
.nlabel.swap { animation: fadein .6s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.hub {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  transition: transform 1s cubic-bezier(.65,0,.35,1);
}
.hub.is-before { transform: translate(-50%, -50%) scale(.8); color: var(--soft); border: 1px dashed rgba(246,241,230,.35); }
.hub img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hub-team { font-size: 15px; font-weight: 700; line-height: 1.2; }
.hub-sub { font-size: 12px; line-height: 1.3; margin-top: 4px; padding: 0 12px; }
.ring {
  position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(224,99,60,.6);
  animation: ring 3.2s ease-out infinite; transition: opacity .6s ease;
}
.ring.off { opacity: 0; animation: none; }
@keyframes ring {
  0% { transform: translate(-50%, -50%) scale(1); opacity: .9; }
  100% { transform: translate(-50%, -50%) scale(1.9); opacity: 0; }
}

/* Services */
.services { background: var(--cream); color: var(--navy-brand); padding: 120px 0; }
.services-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-title { font-weight: 800; font-size: clamp(32px, 4vw, 50px); line-height: 1.12; }
.services .section-title { max-width: 15em; }
.services-intro { margin: 0; max-width: 26em; font-size: 18px; line-height: 1.6; color: var(--slate); }
.tabs { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 56px; box-shadow: inset 0 -1px 0 var(--line); }
.tab {
  min-height: 48px; padding: 0 4px; border: 0; background: transparent;
  font-family: var(--font-body); font-size: 17px; font-weight: 600; color: var(--slate); cursor: pointer;
  box-shadow: inset 0 -2px 0 transparent; transition: color .25s ease, box-shadow .25s ease;
}
.tab:hover { color: var(--navy-brand); }
.tab[aria-selected="true"] { color: var(--navy-brand); box-shadow: inset 0 -3px 0 var(--orange); }
.panel { display: flex; flex-wrap: wrap; gap: 56px; margin-top: 48px; }
.panel.enter { animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-copy { flex: 1 1 420px; min-width: 0; }
.panel-copy h3 { font-weight: 700; font-size: 32px; line-height: 1.15; }
.panel-copy p { margin: 20px 0 0; max-width: 32em; font-size: 18px; line-height: 1.65; color: var(--ink); }
.panel-card { flex: 1 1 420px; min-width: 0; padding: 32px; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.panel-card-title { margin: 0 0 16px; font-size: 15px; font-weight: 700; }
.panel-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.panel-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.panel-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%230F2149' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='8'/%3E%3Cpath d='M6.5 10.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Team */
.team { padding: 120px 0; }
.team .section-title { max-width: 16em; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 56px; }
.member { padding: 28px; border-radius: 20px; background: var(--white); color: var(--navy-brand); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s ease; }
.member:hover { transform: translateY(-3px); }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy-brand); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-stretch: 87.5%; font-weight: 700; font-size: 22px;
}
.member h3 { margin-top: 22px; font-weight: 700; font-size: 26px; }
.member-role { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--slate); }
.member-bio { margin: 16px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink); }

/* Contact */
.contact { background: var(--navy); padding: 120px 0; }
.contact .wrap { display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.contact-form { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.flabel { font-size: 16px; font-weight: 600; color: var(--cream); }
.flabel span { font-weight: 400; color: var(--muted); }
.input {
  width: 100%; padding: 14px 18px; border-radius: 16px; border: 0;
  background: rgba(246,241,230,.06); box-shadow: inset 0 0 0 1px rgba(246,241,230,.25);
  color: var(--cream); font-family: var(--font-body); font-size: 17px; line-height: 1.55;
}
textarea.input { padding: 16px 18px; resize: vertical; }
.input::placeholder { color: var(--muted); }
.input:focus { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-error { margin: 0; font-size: 15px; color: var(--error); }
.form-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 8px; }
.linkbtn {
  min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--soft);
  font-family: var(--font-body); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.linkbtn:hover { color: var(--cream); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success { max-width: 560px; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: rise .45s ease both; }
.success h3 { font-weight: 800; font-size: 32px; line-height: 1.15; }
.success p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--soft); }
[hidden] { display: none !important; }

/* Footer */
.site-footer { padding: 72px 0 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.lockup { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lockup-word { font-family: var(--font-logo); font-weight: 800; font-size: 28px; letter-spacing: .08em; }
.lockup-desc { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: var(--soft); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--soft); }
.footer-legal { margin-top: 48px; }
.footer-legal p { margin: 0; padding-top: 24px; border-top: 1px solid rgba(246,241,230,.12); font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .node { font-size: 11px; padding: 6px 9px; gap: 5px; }
  .dot { width: 5px; height: 5px; }
  .hub-team { font-size: 12px; }
  .hub-sub { display: none; }
  .site-nav { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
