/* =========================================================
   AskChief — Homepage
   Visual language from Figma: paper #F7F6ED · ink #232323
   Type: TRY Vesterbro (display) + Matter (text)
   Eyebrows / nav / CTAs: UPPERCASE · Body copy: sentence case
   Decorative: cut-corner shapes + flowing dust trails
   ========================================================= */

/* Licensed production fonts (web-only license). See /LICENSES/ for EULAs. */
@font-face {
  font-family: "Vesterbro";
  src: url("fonts/VesterbroVariable.woff2") format("woff2-variations"),
       url("fonts/VesterbroVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vesterbro";
  src: url("fonts/VesterbroVariable-Italic.woff2") format("woff2-variations"),
       url("fonts/VesterbroVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Matter";
  src: url("fonts/MatterUprightsVF.woff2") format("woff2-variations"),
       url("fonts/MatterUprightsVF.woff2") format("woff2"),
       url("fonts/MatterUprightsVF.woff")  format("woff-variations"),
       url("fonts/MatterUprightsVF.woff")  format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper:      #F7F6ED;
  --card:       #EFEEDF;
  --ink:        #232323;
  --ink-2:      rgba(35, 35, 35, 0.62);
  --ink-3:      rgba(35, 35, 35, 0.32);
  --line:       rgba(35, 35, 35, 0.12);
  --hover:      #154199;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-surface: 0 4px 28px rgba(0, 0, 0, 0.08);

  --display: "Vesterbro", "Times New Roman", Georgia, serif;
  --text:    "Matter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-xs:  10.5px;
  --text-sm:  12px;
  --text-md:  15px;
  --text-lg:  15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--text-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.page { width: 100%; max-width: 1920px; margin: 0 auto; }

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}
.nav.nav--hidden { transform: translateY(-100%); }
.nav__inner {
  height: 70px;
  max-width: 1920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
}
.nav.nav--scrolled {
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 0 1px 0 var(--line);
}
.nav__left, .nav__right {
  font-family: var(--text);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex; align-items: center;
}
.nav__right { justify-content: flex-end; gap: 24px; }
.nav__center img { width: 135px; height: auto; }
.nav__link {
  position: relative;
  padding: 4px 0;
  cursor: pointer;
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.nav__link:hover { color: var(--hover); }
.nav__link:hover::after { transform: scaleX(1); }

/* Hamburger button — hidden on desktop, shown on mobile via media query */
.nav__hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  width: 36px;
  height: 36px;
}
.nav__hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: top .3s ease, transform .3s ease, opacity .25s ease;
}
.nav__hamburger span:nth-child(1) { top: 12px; }
.nav__hamburger span:nth-child(2) { top: 17.5px; }
.nav__hamburger span:nth-child(3) { top: 23px; }
.nav--menu-open .nav__hamburger span:nth-child(1) { top: 17.5px; transform: rotate(45deg); }
.nav--menu-open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--menu-open .nav__hamburger span:nth-child(3) { top: 17.5px; transform: rotate(-45deg); }

/* Mobile menu drawer — hidden by default. Appears as full-width drop-down below the nav bar. */
.nav__menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(35, 35, 35, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 49;
}
.nav--menu-open .nav__menu {
  opacity: 1;
  pointer-events: auto;
}
.nav__menu-inner {
  background: var(--paper);
  padding: 12px 24px 24px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  transform: translateY(-12px);
  transition: transform .35s var(--ease-premium);
}
.nav--menu-open .nav__menu-inner { transform: translateY(0); }
.nav__menu-link {
  font-family: var(--text);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color .25s ease;
}
.nav__menu-link:last-child { border-bottom: none; }
.nav__menu-link:hover { color: var(--hover); }

.hero { position: relative; margin: 0 44px 0; }
.hero__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1833 / 988;
  overflow: hidden;
  clip-path: polygon(
    32px 0, calc(100% - 32px) 0,
    100% 32px, 100% calc(100% - 32px),
    calc(100% - 32px) 100%, 32px 100%,
    0 calc(100% - 32px), 0 32px
  );
  background: #1a1a18;
}
.hero__photo {
  position: absolute; inset: -3% -3%;
  overflow: hidden;
  transform: translateX(-2%);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero__video {
    display: none;
  }
  .hero__photo {
    background: url("assets/hero-bridge.png") center/cover no-repeat;
  }
}
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(
      ellipse 92% 58% at 50% 36%,
      rgba(0, 0, 0, 0.58) 0%,
      rgba(0, 0, 0, 0.28) 48%,
      rgba(0, 0, 0, 0.12) 72%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.18) 28%,
      rgba(0, 0, 0, 0.22) 52%,
      rgba(0, 0, 0, 0.55) 100%
    );
  pointer-events: none;
}
.hero__content {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding-top: clamp(110px, 16vw, 280px);
  text-align: center;
  color: var(--paper);
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  margin: 0 0 36px;
  max-width: 16ch;
  white-space: pre-line;
}
.hero__sub {
  font-family: var(--text);
  font-size: clamp(14px, 1.1vw, var(--text-md));
  letter-spacing: 0.015em;
  line-height: 1.62;
  margin: 0 0 28px;
  white-space: pre-line;
  max-width: 60ch;
}
.hero__content .btn-pill {
  box-shadow:
    0 2px 24px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--text);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 11px 24px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  border: 1px solid var(--paper);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  transition: background .25s, color .25s, transform .25s, border-color .25s, box-shadow .25s;
}
.btn-pill:hover {
  background: var(--hover); color: var(--paper); border-color: var(--hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 65, 153, 0.22);
}
.btn-pill:active {
  transform: translateY(0);
  transition-duration: .12s;
}
.btn-pill--ink {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.btn-pill--ink:hover { background: var(--hover); color: var(--paper); border-color: var(--hover); }
.btn-pill--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-pill--ghost:hover { background: var(--hover); color: var(--paper); border-color: var(--hover); }

.btn-pill:focus-visible,
.nav__link:focus-visible,
.faq-item:focus-visible {
  outline: 2px solid var(--hover);
  outline-offset: 3px;
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: center;
}
.eyebrow {
  font-family: var(--text);
  font-size: calc(var(--text-sm) + 0.5px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
/* (Eyebrow dash removed) */

.agents {
  position: relative;
  padding: 96px 44px 96px;
  overflow: hidden;
}
.agents__dust { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.agents__head {
  position: relative; z-index: 1;
  text-align: center;
  margin: 0 auto 64px;
  max-width: 760px;
}
.agents__head .section-title { margin-bottom: 16px; }
.agents__head p:not(.eyebrow) {
  font-family: var(--text);
  font-size: var(--text-md);
  letter-spacing: 0.015em;
  color: var(--ink-2);
  margin: 0;
}
.agents__grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1168px;
  margin: 0 auto;
}
.agents .agents__dust-canvas {
  opacity: 0.36;
}
.agent-card {
  position: relative;
  background: var(--card);
  padding: 44px 40px 36px;
  display: flex;
  flex-direction: column;
  clip-path: polygon(
    28px 0, calc(100% - 28px) 0,
    100% 28px, 100% calc(100% - 28px),
    calc(100% - 28px) 100%, 28px 100%,
    0 calc(100% - 28px), 0 28px
  );
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, 0.07));
  min-height: 420px;
}
.agent-card:focus {
  outline: none;
}
.agent-card:focus-visible {
  outline: none;
}
.agent-card__mark {
  margin: 0 0 32px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  position: relative;
  height: 80px;
}
.agent-card__mark svg { height: 100%; width: auto; display: block; transition: color .3s; }
.agent-card__icon {
  position: relative;
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  overflow: hidden;
}
.agent-card__icon .agent-card__still,
.agent-card__icon .agent-card__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  transform: scale(3.15);
  transform-origin: center center;
}
.agent-card__wordmark {
  flex: 0 1 auto;
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  object-position: left center;
  margin-left: -20px;
}
/* Hover styles only on hover-capable devices — prevents iOS from sticking
   the hover-blue state after a tap (iOS treats the first tap as a hover). */
@media (hover: hover) {
  .agent-card:hover .agent-card__mark { color: var(--hover); }
}
.agent-card__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0 0 8px;
  color: var(--ink);
  transition: color .3s;
}
.agent-card__sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 24px;
  padding-left: 96px;
  letter-spacing: -0.005em;
  white-space: pre-line;
  opacity: 0.9;
}
@media (hover: hover) {
  .agent-card:hover .agent-card__title { color: var(--hover); }
}
.agent-card__list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  padding-left: 66px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.agent-card__list li {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 14px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .3s, color .3s;
  position: relative;
}
.agent-card__list li::before {
  content: ""; flex: 0 0 16px; height: 1px;
  background: currentColor;
  opacity: 0.5;
  align-self: center;
  transition: flex-basis .35s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
@media (hover: hover) {
  .agent-card__list li:hover::before { flex-basis: 32px; opacity: 1; }
  .agent-card__list li:hover { color: var(--hover); }
}

.roles {
  padding: 96px 44px 96px;
  background: var(--paper);
}
.roles__head { text-align: center; margin: 0 auto 56px; max-width: 720px; }
.roles__grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  max-width: 1374px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.role {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  cursor: pointer;
  transition: background .3s;
  overflow: hidden;
}
.role:last-child { border-right: none; }
.role::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--hover);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.role:hover::after { transform: scaleX(1); }
.role__num {
  font-family: var(--text);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  color: var(--ink-2);
}
.role__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px); line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0;
}
.role__title em {
  font-style: italic;
  color: var(--ink-2);
  transition: color .3s ease;
}
.role:hover .role__title em { color: var(--hover); }
.role__body {
  font-family: var(--text);
  font-size: 16px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  margin: 0;
  max-width: 34ch;
}

.why {
  position: relative;
  padding: 96px 44px 96px;
  background: var(--paper);
  text-align: center;
  overflow: hidden;
}
.why__bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
.why__content {
  position: relative;
  z-index: 1;
}
.why__title { margin: 0 auto 72px; }
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 980px;
  margin: 0 auto;
  gap: 140px 64px;
}
.why-cell {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 16px 16px;
  transition: transform .35s var(--ease-premium);
}
.why-cell:hover { transform: translateY(-4px); }
.why-cell__label {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--ink);
}
.why-cell__body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: 0.02em;
  max-width: 38ch;
  opacity: 0.82;
  margin: 0;
}

.testimonials {
  padding: 96px 44px 96px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.testimonials__head { text-align: center; margin: 0 auto 24px; max-width: 760px; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: clamp(24px, 3vw, 40px);
  max-width: 760px;
  margin: 0 auto 56px;
}
.stat {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 16px;
}
.stat__num {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1; letter-spacing: -0.025em;
  margin: 0 0 8px;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.35s ease;
}
.stat:hover .stat__num {
  transform: scale(1.04);
  color: var(--hover);
}
.stat__lbl {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  max-width: 24ch;
  margin: 0;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1280px; margin: 0 auto;
  gap: 0;
  border-top: 1px solid var(--line);
}
.quote {
  padding: 36px 36px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: row; align-items: flex-start;
  gap: 28px;
  position: relative;
  background: var(--paper);
  transition: background .2s;
}
.quote:nth-child(2n) { border-right: none; }
.quote:hover { background: var(--card); }
.quote__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  object-fit: cover;
  object-position: center 22%;
  clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%);
  background: var(--card);
}
.quote__content {
  display: flex; flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.quote__body {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.4;
  letter-spacing: -0.003em;
  margin: 0;
  color: var(--ink);
}
.quote__attr {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 12px;
}
.quote__attr::before {
  content: "—"; opacity: 0.6;
}

.operators {
  padding: 96px 44px 96px;
  background: var(--paper);
}
.operators__head { text-align: center; margin: 0 auto 48px; }
.operators__head .section-title { font-weight: 400; }
.operators__strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  max-width: 1640px; margin: 0 auto;
}
.op {
  position: relative;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
  transition: background .25s;
}
.op:last-child { border-right: none; }
.op__logo-slot {
  position: relative;
  width: 100%;
  height: 56px;
}
.op__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity .3s ease;
}
.op__logo--mono {
  filter: grayscale(1) brightness(0.4) contrast(1.4);
  opacity: 0.85;
}
.op__logo--color {
  opacity: 0;
}
.op:hover { background: var(--card); }
.op:hover .op__logo--mono { opacity: 0; }
.op:hover .op__logo--color { opacity: 1; }

/* Itochu Group logo has extra subline text (Japanese + IMECS) — give it more room. */
.op:has(img[src*="itochu"]) .op__logo-slot { height: 96px; }
.op:has(img[src*="itochu"]) .op__logo { max-height: 96px; max-width: 100%; }



.faq {
  padding: 96px 44px 96px;
  background: var(--paper);
}
.faq__head {
  display: grid; grid-template-columns: auto 1fr;
  gap: 64px; max-width: 1280px; margin: 0 auto 16px;
  align-items: end;
}
.faq__head .section-title { text-align: left; }
.faq__head p {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  margin: 0; max-width: 50ch;
}
.faq__list {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: background .3s;
}
.faq-item:hover { background: var(--card); }
.faq-item__row {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 32px;
  padding: 28px 16px 28px 24px;
}
.faq-item__num {
  font-family: var(--text);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
.faq-item__q {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.faq-item__plus {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-item__plus::before, .faq-item__plus::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), background .3s ease;
}
.faq-item__plus::before { width: 18px; height: 1.5px; }
.faq-item__plus::after  { width: 1.5px; height: 18px; }
.faq-item.is-open .faq-item__plus::after { transform: rotate(90deg); }
.faq-item:hover .faq-item__plus::before,
.faq-item:hover .faq-item__plus::after,
.faq-item.is-open .faq-item__plus::before,
.faq-item.is-open .faq-item__plus::after { background: var(--hover); }
.faq-item__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s ease;
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div {
  overflow: hidden;
  font-family: var(--text);
  font-size: var(--text-md);
  line-height: 1.58;
  color: var(--ink);
  padding: 0 16px 0 136px;
  letter-spacing: 0.01em;
  max-width: 80ch;
}
.faq-item.is-open .faq-item__a > div { padding-bottom: 28px; }

.cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 130px 44px 160px;
  overflow: hidden;
}
.cta__dust { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.cta__inner {
  position: relative; z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cta-card {
  position: relative;
  aspect-ratio: 771 / 511;
  overflow: hidden;
  clip-path: polygon(
    24px 0, calc(100% - 24px) 0,
    100% 24px, 100% calc(100% - 24px),
    calc(100% - 24px) 100%, 24px 100%,
    0 calc(100% - 24px), 0 24px
  );
}
@keyframes cta-photo-drift {
  0%   { transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.05) translate(1%, -0.5%); }
  100% { transform: scale(1) translate(0, 0); }
}
.cta-card__photo {
  position: absolute; inset: -10% -10%;
  background: url("assets/person.png") center/cover no-repeat;
  animation: cta-photo-drift 22s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cta-card__photo { animation: none; }
}
.cta-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.18) 65%, rgba(0,0,0,0.18) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  text-align: center; padding: 0 32px 56px;
  color: var(--paper);
}
.cta-card__eyebrow {
  font-family: var(--text);
  font-size: clamp(12.5px, 0.95vw, 14.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 18px;
  opacity: 0.9;
  line-height: 1.6;
}
.cta-card__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(32px, 3.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--paper);
}
.cta__form {
  background: var(--paper);
  color: var(--ink);
  padding: 44px 40px;
  clip-path: polygon(
    18px 0, calc(100% - 18px) 0,
    100% 18px, 100% calc(100% - 18px),
    calc(100% - 18px) 100%, 18px 100%,
    0 calc(100% - 18px), 0 18px
  );
}
.cta__form h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.cta__form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.cta__form-grid .full { grid-column: 1 / -1; }
.cta__form input, .cta__form select, .cta__form textarea {
  font-family: var(--text);
  font-size: var(--text-md);
  letter-spacing: 0.01em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink-3);
  padding: 12px 4px 8px;
  width: 100%;
  outline: none;
  transition: border-color .25s;
}
.cta__form input:focus, .cta__form select:focus, .cta__form textarea:focus {
  border-bottom-color: var(--hover);
}
.cta__form input::placeholder, .cta__form textarea::placeholder { color: var(--ink-3); }
.cta__form .submit-row { margin-top: 28px; display: flex; }
.cta__form .submit-row .btn-pill { width: 100%; padding: 14px; }

/* Honeypot — visually and semantically hidden, but still in the DOM so bots fill it. */
.cta__form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.footer { position: relative; background: var(--ink); }
.footer__cap {
  position: relative;
  height: 64px;
  background: var(--paper);
  clip-path: polygon(0 100%, 116px 0, calc(100% - 116px) 0, 100% 100%);
}
.footer__inner {
  background: var(--paper);
  margin-top: -1px;
  padding: 8px 120px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px 64px;
  align-items: start;
}
.footer__inner > .footer__col:nth-child(2) {
  text-align: center;
}
.footer__brand img { width: 130px; height: auto; }
.footer__tagline {
  font-family: var(--text);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 auto;
  max-width: 42ch;
}
.footer__contact {
  display: flex;
  justify-content: flex-end;
  font-family: var(--text);
  font-size: 13px;
}
.footer__contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: max-content;
}
.footer__contact-inner > a {
  display: grid;
  grid-template-columns: 20px max-content;
  column-gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  transition: color .25s;
}
.footer__contact-inner > a:hover { color: var(--hover); }
.footer__contact-iconSlot {
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.footer__contact img {
  width: 16px;
  height: 16px;
  display: block;
}
.footer__icon-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--text);
  line-height: 1;
}
.footer__bottom {
  background: var(--paper);
  padding: 14px 120px 28px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--text);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.footer__legal { display: flex; gap: 32px; }
.footer__legal a { transition: color .25s; }
.footer__legal a:hover { color: var(--hover); }
.footer__copy { opacity: 0.7; }

.dust-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

@media (max-width: 1100px) {
  .cta__inner { grid-template-columns: 1fr; }
  .roles__grid, .operators__strip { grid-template-columns: 1fr 1fr; }
  .op:nth-child(2n) { border-right: none; }
  .op { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .agents__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; gap: 40px; }
  .roles__grid { grid-template-columns: 1fr; }
  .role { border-right: none; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote { border-right: none; flex-direction: column; gap: 16px; padding: 28px 24px 32px; }
  .quote__photo { width: 72px; height: 72px; }
  .operators__strip { grid-template-columns: 1fr 1fr; }
  .footer__inner, .footer__bottom { padding-left: 32px; padding-right: 32px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__inner > .footer__col:nth-child(2) { text-align: left; }
  .footer__contact { justify-content: flex-start; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
  .nav__inner { padding: 0 16px; }
  .nav__center img { width: 110px; }
  .nav__link--desktop { display: none; }
  .nav__hamburger { display: block; }
  .nav__menu { display: block; }
  .hero { margin: 14px 16px 0; }
  .agents,
  .roles,
  .why,
  .testimonials,
  .operators,
  .faq { padding: 72px 24px 72px; }
  .cta { padding: 80px 20px 100px; }
  .faq__head { grid-template-columns: 1fr; gap: 16px; }
  .faq-item__row { grid-template-columns: 60px 1fr auto; gap: 16px; padding: 24px 12px; }
  .faq-item__a > div { padding-left: 76px; }
  .cta__form-grid { grid-template-columns: 1fr; }
  /* Itochu logo — reduce vertical headroom override for the narrower mobile cell */
  .op:has(img[src*="itochu"]) .op__logo-slot { height: 64px; }
  .op:has(img[src*="itochu"]) .op__logo { max-height: 64px; max-width: 92%; }
}

@media (max-width: 600px) {
  /* Hero — switch to portrait aspect so title fits */
  .hero__frame { aspect-ratio: 3 / 4; }
  .hero__content { padding-top: clamp(104px, 20vw, 184px); padding-left: 20px; padding-right: 20px; }
  .hero__title { font-size: clamp(34px, 9vw, 56px); margin: 0 0 38px; }
  .hero__sub { font-size: clamp(14px, 3.5vw, var(--text-md)); margin: 0 0 22px; }

  /* Agent card — icon inline with wordmark (same row) */
  .agent-card { zoom: 1; padding: 32px 24px 28px; min-height: 0; }
  .agent-card__mark {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    height: auto;
    margin: 0 0 24px;
  }
  .agent-card__icon {
    width: 52px;
    height: 52px;
    background: transparent;
    border-radius: 0;
  }
  .agent-card__icon .agent-card__still,
  .agent-card__icon .agent-card__video {
    transform: scale(3.15);
    /* Darken blend: the video's near-white background is lighter than the
       card's beige, so the card color wins in the background areas. The dark
       logo glyph stays dark. Result: the contrasting tile disappears into
       the card while the icon stays visible. */
    mix-blend-mode: darken;
  }
  .agent-card__wordmark {
    width: auto;
    height: auto;
    max-height: 52px;
    max-width: calc(100% - 66px);
    margin-left: 0;
  }
  .agent-card__sub { padding-left: 0; font-size: 17px; margin: 0 0 20px; }
  .agent-card__list { padding-left: 0; padding-top: 20px; }

  /* Section spacing */
  .agents,
  .roles,
  .why,
  .testimonials,
  .faq { padding: 56px 16px 56px; }
  .cta { padding: 60px 16px 80px; }

  /* CTA card — keep text readable on small screens */
  .cta-card__title { font-size: clamp(28px, 7vw, 40px); }
  .cta-card__eyebrow { font-size: 11.5px; }

  /* Stats row — force 3-in-a-row on mobile instead of wrapping */
  .stat-row {
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 36px;
    padding: 0 8px;
  }
  .stat {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 4px;
  }
  .stat__num {
    font-size: clamp(28px, 9vw, 40px);
    margin: 0 0 6px;
  }
  .stat__lbl {
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.01em;
    max-width: none;
  }

  /* Dust particle canvases — let them extend past the viewport so density doesn't feel cramped/pixelated on mobile */
  .agents .dust-canvas,
  .cta .dust-canvas {
    width: 400%;
    left: -150%;
    right: auto;
  }
  /* Soften further so the visible portion feels diffuse rather than densely speckled */
  .agents .dust-canvas { opacity: 0.22; }
  .cta .dust-canvas    { opacity: 0.55; }

  /* Operators logos — single horizontally-swipeable row of cells */
  .operators { padding: 56px 0 56px; }
  .operators__head { margin: 0 auto 28px; padding: 0 20px; }
  .operators__strip {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .operators__strip::-webkit-scrollbar { display: none; }
  .op {
    flex: 0 0 40vw;
    scroll-snap-align: start;
    padding: 20px 12px;
    min-height: 92px;
    border-bottom: none;
  }
  .op:nth-child(2n) { border-right: 1px solid var(--line); }
  .op:last-child { border-right: none; }
  .op__logo-slot { height: 48px; }
  .op__logo { max-height: 48px; }
  /* Itochu — slightly taller slot for the two-line wordmark */
  .op:has(img[src*="itochu"]) .op__logo-slot { height: 60px; }
  .op:has(img[src*="itochu"]) .op__logo { max-height: 60px; max-width: 94%; }
  /* Mobile-specific carousel order: Itochu → Seanergy → Castor → (rest in original order) */
  .op:has(img[src*="itochu"])    { order: -3; }
  .op:has(img[src*="seanergy"])  { order: -2; }
  .op:has(img[src*="castor"])    { order: -1; }
}

/* ──────────────────────────────────────────────────────────
   Legal pages (/privacy/, /terms/)
   ────────────────────────────────────────────────────────── */
.legal-page {
  background: var(--paper);
  min-height: 100vh;
}
.legal-page__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 44px;
  border-bottom: 1px solid var(--line);
}
.legal-page__nav img { width: 135px; height: auto; }
.legal-page__back {
  font-family: var(--text);
  font-size: var(--text-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color .25s ease;
}
.legal-page__back:hover { color: var(--hover); }
.legal-page__content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 44px 120px;
}
.legal-page__content h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
}
.legal-page__content h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.018em;
  margin: 40px 0 16px;
}
.legal-page__content p {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 16px;
}
.legal-page__content h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 21px);
  letter-spacing: -0.012em;
  margin: 28px 0 12px;
}
.legal-page__content ul {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal-page__content li { margin: 0 0 8px; }
.legal-page__content a { color: var(--hover); }
.legal-page__table-wrap { overflow-x: auto; margin: 0 0 24px; }
.legal-page__content table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.legal-page__content th,
.legal-page__content td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--line);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legal-page__content th {
  font-weight: 600;
  background: var(--paper-2, rgba(0,0,0,0.03));
}
.legal-page__content td ul { margin: 0; }
.legal-page__trunc {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}
.legal-page__updated {
  font-family: var(--text);
  font-size: var(--text-sm);
  color: var(--ink-2);
  margin-top: 48px;
}
.legal-page__footer {
  padding: 24px 44px;
  border-top: 1px solid var(--line);
  font-family: var(--text);
  font-size: var(--text-sm);
  color: var(--ink-2);
  text-align: center;
}
@media (max-width: 760px) {
  .legal-page__nav { padding: 20px 16px; }
  .legal-page__nav img { width: 110px; }
  .legal-page__content { padding: 48px 20px 80px; }
}
