/* Novie: warm monochrome system, Google Sans Flex, flat surfaces */

@font-face {
  font-family: "Google Sans Flex";
  src: url("/fonts/GoogleSansFlex.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --ink: #0e0e0d;
  --charcoal: #1a1a18;
  --cream: #faf8f3;
  --shell: #f2efe6;
  --ink-64: rgba(14, 14, 13, 0.64);
  --ink-44: rgba(14, 14, 13, 0.44);
  --ink-12: rgba(14, 14, 13, 0.13);
  --ink-07: rgba(14, 14, 13, 0.07);
  --cream-70: rgba(250, 248, 243, 0.72);
  --cream-45: rgba(250, 248, 243, 0.48);
  --cream-16: rgba(250, 248, 243, 0.16);
  --cream-08: rgba(250, 248, 243, 0.08);
  --max: 1160px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: "Google Sans Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- type ---------- */

.label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-44);
}
.on-dark .label { color: var(--cream-45); }

.display {
  font-size: clamp(52px, 7.4vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.headline {
  font-size: clamp(34px, 4.6vw, 51px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.subhead {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.lede {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--ink-64);
}
.on-dark .lede { color: var(--cream-70); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-lg { font-size: 15px; padding: 16px 32px; }
.btn-sm { font-size: 13px; padding: 10px 24px; }
.btn-solid { background: var(--ink); color: var(--cream); }
.btn-solid:hover { background: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink-07); }
.btn-cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-cream:hover { background: var(--shell); border-color: var(--shell); }
.on-dark .btn-ghost { color: var(--cream); border-color: var(--cream-45); }
.on-dark .btn-ghost:hover { background: var(--cream-08); border-color: var(--cream); }

/* ---------- floating pill nav ---------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--charcoal);
  color: var(--cream);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}
.site-nav .logo { display: flex; align-items: center; }
.site-nav .logo img { height: 24px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream-70);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--cream); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--cream);
  transition: transform 0.25s ease;
}
.menu-toggle span:nth-child(1) { top: 18px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 89;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 0 0 24px 24px;
  padding: 4px 0 14px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
  display: block;
  padding: 14px 28px;
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .site-nav .btn-sm { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- sections ---------- */

section { padding: clamp(88px, 11vw, 136px) 0; }

.section-head { max-width: 800px; margin: 0 auto; text-align: center; }
.section-head .label { display: block; margin-bottom: 18px; }
.section-head .headline { margin-bottom: 22px; }
.section-head .lede { max-width: 60ch; margin-left: auto; margin-right: auto; }
.section-head .lede + .lede { margin-top: 14px; }
.section-head.left { text-align: left; margin: 0; }
.section-head.left .lede { margin-left: 0; }

.on-dark { background: var(--charcoal); color: var(--cream); }
.shell-bg { background: var(--shell); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 18vw, 208px) 0 0;
  text-align: center;
}
.hero-radial {
  position: absolute;
  top: 110px;
  right: -230px;
  width: clamp(300px, 34vw, 460px);
  height: auto;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
}
@media (max-width: 900px) { .hero-radial { width: 210px; top: 90px; right: -120px; } }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--charcoal);
  color: var(--cream);
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 36px;
}

.hero .display { max-width: 900px; margin: 0 auto 22px; }
.hero .subhead { margin-bottom: 26px; color: var(--ink); }
.hero-copy { max-width: 62ch; margin: 0 auto; }
.hero-copy p { color: var(--ink-64); font-size: clamp(16px, 1.8vw, 18px); line-height: 1.7; }
.hero-copy p + p { margin-top: 12px; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.hero-shot {
  margin-top: clamp(56px, 7vw, 88px);
  background: var(--shell);
  border: 1px solid var(--ink-12);
  border-radius: 24px;
  padding: clamp(12px, 2vw, 22px);
}
.hero-shot img { border-radius: 12px; }

.hero-film {
  margin-top: clamp(40px, 5vw, 64px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.hero-film video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--cream);
}

/* ---------- pillar strip ---------- */

.pillars { padding: clamp(52px, 7vw, 80px) 0; }
.pillars .label { display: block; text-align: center; margin-bottom: 28px; }
.pillar-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.pillar-row span {
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  padding: 12px 26px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  background: var(--cream);
}

/* ---------- challenge (dark) ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.problem-card {
  border: 1px solid var(--cream-16);
  border-radius: 20px;
  padding: 30px 26px;
  background: var(--cream-08);
  text-align: left;
}
.problem-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.problem-card p { font-size: 15px; line-height: 1.6; color: var(--cream-70); }
.problem-card .label { display: block; margin-bottom: 20px; }
@media (max-width: 1000px) { .problem-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- operating layer diagram ---------- */

.op-diagram {
  margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--ink-12);
  border-radius: 28px;
  background: var(--shell);
  padding: clamp(22px, 4vw, 44px);
}
.op-band {
  border: 1px solid var(--ink-12);
  border-radius: 18px;
  background: var(--cream);
  padding: 20px 24px;
  text-align: center;
}
.op-band .label { display: block; margin-bottom: 14px; }
.op-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.op-chips span {
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  background: var(--cream);
}
.op-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 26px);
  padding: clamp(30px, 4.5vw, 48px) 0 10px;
}
.op-step {
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  padding: 15px 36px;
  font-weight: 500;
  font-size: clamp(15px, 1.8vw, 17px);
}
.op-arrow { color: var(--ink-44); font-size: 20px; }
.op-loop {
  text-align: center;
  font-size: 13px;
  color: var(--ink-44);
  letter-spacing: 0.04em;
  margin-bottom: 26px;
}
.op-caption {
  margin-top: 26px;
  text-align: center;
  font-size: 15px;
  color: var(--ink-64);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 640px) {
  .op-mid { flex-direction: column; gap: 10px; }
  .op-arrow { transform: rotate(90deg); }
}

/* ---------- gap sections ---------- */

.gap-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.gap-grid.flip .gap-copy { order: 2; }
.gap-copy .label { display: block; margin-bottom: 18px; }
.gap-copy .headline { margin-bottom: 20px; font-size: clamp(30px, 3.8vw, 42px); }
.gap-copy p { color: var(--ink-64); line-height: 1.7; }
.gap-copy p + p { margin-top: 13px; }
.chart-card {
  border: 1px solid var(--ink-12);
  border-radius: 24px;
  background: var(--cream);
  padding: clamp(20px, 3vw, 36px);
}
.chart-card svg { width: 100%; height: auto; display: block; }
@media (max-width: 900px) {
  .gap-grid { grid-template-columns: 1fr; }
  .gap-grid.flip .gap-copy { order: 0; }
}

/* ---------- features ---------- */

.feature-list { margin-top: clamp(56px, 7vw, 88px); display: grid; gap: clamp(64px, 8vw, 104px); }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { text-align: left; }
.feature-copy .label { display: block; margin-bottom: 16px; }
.feature-copy h3 {
  font-size: clamp(24px, 3vw, 31px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin-bottom: 14px;
}
.feature-copy p { color: var(--ink-64); line-height: 1.7; font-size: 16px; }
.feature-shot {
  border: 1px solid var(--ink-12);
  border-radius: 20px;
  background: var(--cream);
  padding: clamp(10px, 1.6vw, 18px);
}
.feature-shot img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 13 / 10;
  object-fit: cover;
  object-position: top center;
}
.reveal .feature-shot img {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease 0.15s, transform 1.3s ease 0.15s;
}
.reveal.in .feature-shot img {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal .feature-shot img { opacity: 1; transform: none; transition: none; }
}
@keyframes panel-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tab-panel.active { animation: panel-fade 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
  .tab-panel.active { animation: none; }
}
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
}

.tabs { display: flex; gap: 8px; margin: 20px 0 0; flex-wrap: wrap; }
.tab-btn {
  border: 1px solid var(--ink-12);
  background: transparent;
  border-radius: 999px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-64);
  transition: all 0.2s ease;
}
.tab-btn:hover { border-color: var(--ink-44); color: var(--ink); }
.tab-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- value grid ---------- */

.value-grid {
  /* Five cards wrap 3+2; flex centers the incomplete row. */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.value-grid .value-card { width: calc((100% - 32px) / 3); }
.value-card {
  background: var(--cream);
  border: 1px solid var(--ink-12);
  border-radius: 20px;
  padding: 28px 24px 32px;
  text-align: left;
  transition: border-color 0.2s ease;
}
.value-card:hover { border-color: var(--ink-44); }
.value-card .swap {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-64);
  border: 1px solid var(--ink-12);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.value-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 9px; line-height: 1.25; }
.value-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-64); }
@media (max-width: 1080px) { .value-grid .value-card { width: calc((100% - 16px) / 2); } }
@media (max-width: 560px) { .value-grid .value-card { width: 100%; } }

/* ---------- business case ---------- */

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.case-card {
  border: 1px solid var(--ink-12);
  border-radius: 24px;
  background: var(--shell);
  padding: clamp(24px, 3.4vw, 40px);
}
.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ink-12);
}
.case-card-top strong { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.case-pill {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}
.case-rows { padding: 6px 0; }
.case-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink-07);
  font-size: 15px;
}
.case-row:last-child { border-bottom: none; }
.case-row span { color: var(--ink-64); }
.case-row strong { font-weight: 500; text-align: right; }
.case-foot {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-12);
  font-size: 14px;
  color: var(--ink-64);
  display: flex;
  align-items: center;
  gap: 10px;
}
.case-foot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- build list ---------- */

.build-list { margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ink-12); }
.build-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--ink-12);
  align-items: baseline;
  text-align: left;
}
.build-item .num { font-size: 14px; font-weight: 500; color: var(--ink-44); letter-spacing: 0.1em; }
.build-item h3 { font-size: clamp(21px, 2.6vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.build-item p { color: var(--ink-64); line-height: 1.65; }
@media (max-width: 760px) {
  .build-item { grid-template-columns: 44px 1fr; }
  .build-item p { grid-column: 2; }
}

/* ---------- trust ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(48px, 6vw, 72px);
}
.trust-card {
  border: 1px solid var(--ink-12);
  border-radius: 20px;
  padding: 34px 28px 38px;
  background: var(--cream);
  text-align: left;
}
.trust-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 11px; line-height: 1.3; }
.trust-card p { font-size: 15px; line-height: 1.65; color: var(--ink-64); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- closing ---------- */

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(96px, 12vw, 152px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}
.closing-radial {
  position: absolute;
  top: -210px;
  right: -170px;
  width: clamp(340px, 40vw, 560px);
  height: auto;
  color: var(--cream);
  opacity: 0.05;
  pointer-events: none;
}
@media (max-width: 900px) {
  .closing-radial { width: 240px; top: -120px; right: -110px; }
}
.closing-inner { position: relative; max-width: 860px; margin: 0 auto; }
.closing .label { display: block; margin-bottom: 24px; }
.closing .display { margin-bottom: 40px; }

.site-footer {
  position: relative;
  margin-top: clamp(88px, 11vw, 136px);
  border-top: 1px solid var(--cream-16);
  padding-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}
.site-footer .foot-logo img { height: 24px; width: auto; }
.foot-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.foot-links a { font-size: 14.5px; color: var(--cream-70); transition: color 0.2s ease; }
.foot-links a:hover { color: var(--cream); }
.foot-meta { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.foot-meta p { font-size: 13px; color: var(--cream-45); max-width: 68ch; }
.foot-meta .disclaimer { font-size: 11.5px; color: rgba(250, 248, 243, 0.28); }

/* ---------- contact page ---------- */

.contact-main {
  position: relative;
  overflow: hidden;
  padding: clamp(150px, 18vw, 200px) 0 clamp(96px, 12vw, 150px);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.contact-copy .label { display: block; margin-bottom: 22px; }
.contact-copy .headline { margin-bottom: 22px; }
.contact-form {
  border: 1px solid var(--ink-12);
  border-radius: 24px;
  background: var(--shell);
  padding: clamp(24px, 3.4vw, 40px);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--ink-12);
  border-radius: 12px;
  background: var(--cream);
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-status { margin-top: 16px; font-size: 15px; display: none; }
.form-status.show { display: block; }

.form-success {
  border: 1px solid var(--ink-12);
  border-radius: 24px;
  background: var(--shell);
  padding: clamp(32px, 4vw, 48px);
}
.form-success.show { animation: panel-fade 0.6s ease; }
.form-success .check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.form-success h3 {
  font-size: clamp(21px, 2.4vw, 25px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.form-success p { color: var(--ink-64); line-height: 1.65; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-footer {
  position: relative;
  overflow: hidden;
  padding: 12px 0 32px;
}
.contact-footer .site-footer {
  margin-top: 0;
  border-top: none;
  padding-top: 36px;
}
.contact-footer .closing-radial {
  top: auto;
  right: -150px;
  bottom: -300px;
  width: 460px;
}
@media (max-width: 900px) {
  .contact-footer .closing-radial { width: 260px; right: -110px; bottom: -170px; }
}

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
