/* ==========================================================================
   Pinvesta — corporate site styles
   ========================================================================== */

:root {
  --ink: #0b0c10;
  --ink-2: #2b2e37;
  --muted: #5f6370;
  --faint: #8b8f9a;
  --bg: #fbfbf9;
  --surface: #ffffff;
  --surface-2: #f4f4f1;
  --line: rgba(11, 12, 16, 0.08);
  --line-strong: rgba(11, 12, 16, 0.14);

  --indigo: #4f46e5;
  --violet: #7c5cff;
  --teal: #0ea5a0;
  --sky: #38bdf8;
  --rose: #f0567a;
  --amber: #f59e0b;

  --grad: linear-gradient(115deg, #4f46e5 0%, #7c5cff 40%, #0ea5a0 100%);
  --grad-soft: linear-gradient(115deg, rgba(79, 70, 229, 0.12), rgba(14, 165, 160, 0.12));

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 12, 16, 0.04), 0 8px 24px -12px rgba(11, 12, 16, 0.12);
  --shadow-lg: 0 2px 4px rgba(11, 12, 16, 0.04), 0 24px 60px -24px rgba(11, 12, 16, 0.22);

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.022em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(79, 70, 229, 0.18); }

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

/* Utilities -------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }

.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--muted); }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px;
  font: 500 0.9688rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease), color 0.2s;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 6px 18px -8px rgba(11, 12, 16, 0.5); }
.btn-primary:hover { background: #1d1f27; transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(11, 12, 16, 0.24); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); text-decoration: none; }
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }
.link-arrow:hover { color: var(--indigo); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 251, 249, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.03em; }

.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-list a:not(.btn) {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-list a:not(.btn):hover { color: var(--ink); background: rgba(11, 12, 16, 0.04); }
.nav-list a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: 12px; }
.nav-cta .btn { height: 38px; padding: 0 18px; font-size: 0.9063rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: 12px; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle-bars { position: relative; width: 20px; height: 12px; }
.nav-toggle-bars::before, .nav-toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.75px; border-radius: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-bars::before { top: 2px; }
.nav-toggle-bars::after { top: 8.5px; }
.nav-open .nav-toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--bg); box-shadow: 0 24px 40px -24px rgba(11, 12, 16, 0.25);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a:not(.btn) { padding: 14px 4px; border-radius: 0; font-size: 1.0625rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-list a:not(.btn):hover { background: none; }
  .nav-cta { margin: 20px 0 0; }
  .nav-cta .btn { width: 100%; height: 48px; font-size: 1rem; }
}

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(72px, 11vw, 136px) 0; }
.section-tight { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { padding-top: 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.032em; line-height: 1.06; margin-top: 16px; }
.section-head .lead { margin-top: 18px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.section-head-row .section-head { margin-bottom: 0; }
.section-head-row + * { margin-top: clamp(40px, 6vw, 64px); }

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 120px) 0 clamp(72px, 10vw, 128px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(124, 92, 255, 0.16), transparent 70%),
    radial-gradient(35% 45% at 92% 70%, rgba(14, 165, 160, 0.14), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, rgba(79, 70, 229, 0.07), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 70% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 70% 35%, #000 10%, transparent 75%);
  opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.045em; line-height: 1.03; margin-top: 22px; }
.hero h1 span { display: block; }
.hero .lead { max-width: 540px; margin-top: 26px; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 40px; font-size: 0.875rem; color: var(--faint); }
.hero-note strong { color: var(--muted); font-weight: 500; }

.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; justify-self: end; }
.hero-visual svg { width: 100%; height: 100%; overflow: visible; }
.orbit { transform-origin: 260px 260px; animation: spin 90s linear infinite; }
.orbit-rev { animation-direction: reverse; animation-duration: 120s; }
.node-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 4.5s var(--ease) infinite; }
.node-pulse.d2 { animation-delay: 1.5s; }
.node-pulse.d3 { animation-delay: 3s; }
.flow { stroke-dasharray: 4 10; animation: flow 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0; transform: scale(2.6); } }
@keyframes flow { to { stroke-dashoffset: -28; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 380px; margin-top: 8px; }
  .hero::after { -webkit-mask-image: radial-gradient(80% 50% at 50% 20%, #000 10%, transparent 75%); mask-image: radial-gradient(80% 50% at 50% 20%, #000 10%, transparent 75%); }
}
@media (max-width: 560px) {
  .hero-visual { max-width: 280px; }
  .hero .btn-row .btn { flex: 1 1 auto; }
}

/* Page hero (interior pages) -------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 7vw, 88px); }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 60% 40%, rgba(124, 92, 255, 0.12), transparent 70%), radial-gradient(40% 40% at 80% 70%, rgba(14, 165, 160, 0.1), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.5rem); letter-spacing: -0.042em; line-height: 1.02; margin-top: 18px; max-width: 900px; }
.page-hero .lead { max-width: 640px; margin-top: 22px; }

/* Intro / statement ------------------------------------------------------ */
.statement { font-family: var(--font-display); font-size: clamp(1.625rem, 3.4vw, 2.625rem); line-height: 1.22; letter-spacing: -0.028em; color: var(--ink); font-weight: 500; max-width: 980px; }
.statement .muted { color: var(--faint); }

.intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: clamp(48px, 7vw, 80px); background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.intro-item { background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.intro-item .num { font-family: var(--mono); font-size: 0.8125rem; color: var(--faint); }
.intro-item h3 { font-size: 1.1875rem; margin-top: 18px; }
.intro-item p { margin-top: 10px; color: var(--muted); font-size: 0.9844rem; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } }

/* Organisation banner ---------------------------------------------------- */
.org-card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 24px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.org-card .brand-mark { width: 44px; height: 44px; }
.org-card p { color: var(--muted); font-size: 0.9688rem; }
.org-card strong { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .org-card { grid-template-columns: 1fr; gap: 16px; } }

/* Product cards ---------------------------------------------------------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.product-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.product-body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 36px); flex: 1; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -0.03em; }
.product-cat { font-size: 0.875rem; color: var(--faint); font-weight: 500; }
.product p { color: var(--muted); }
.product-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.product-foot .muted { font-size: 0.875rem; color: var(--faint); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }

.status {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-dev { color: #9a5b00; background: rgba(245, 158, 11, 0.12); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28); }
.status-live { color: #0b7a55; background: rgba(16, 185, 129, 0.12); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.28); }

.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 18px 22px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 0.9375rem; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 12px; }

/* Product detail (Products page) ---------------------------------------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.product-detail:first-of-type { border-top: 0; padding-top: 0; }
.product-detail .product-art { border-radius: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.product-detail h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.035em; margin-top: 18px; }
.product-detail .lead { margin-top: 16px; }
.facts { margin-top: 28px; border-top: 1px solid var(--line); display: grid; }
.facts div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9688rem; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; color: var(--ink); }
.facts a { color: var(--indigo); text-decoration: none; }
.facts a:hover { text-decoration: underline; }
.product-detail .btn-row { margin-top: 28px; }
@media (max-width: 860px) {
  .product-detail { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 110px 1fr; }
}

/* Capabilities ----------------------------------------------------------- */
.dark { background: var(--ink); color: rgba(255, 255, 255, 0.68); position: relative; overflow: hidden; }
.dark::before {
  content: ""; position: absolute; inset: auto -10% -40% auto; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 255, 0.22), transparent 70%);
}
.dark::after {
  content: ""; position: absolute; inset: -30% auto auto -10%; width: 50%; height: 70%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(14, 165, 160, 0.14), transparent 70%);
}
.dark > * { position: relative; z-index: 1; }
.dark h2, .dark h3 { color: #fff; }
.dark .lead { color: rgba(255, 255, 255, 0.62); }
.dark .eyebrow { color: #a5b4fc; }
.dark .link-arrow { color: #fff; }
.dark .link-arrow:hover { color: #c7d2fe; }
.section.dark + .section, .section + .section.dark { padding-top: clamp(72px, 11vw, 136px); }

.caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap {
  padding: clamp(24px, 3vw, 32px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cap:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cap-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--indigo); }
.cap-icon svg { width: 22px; height: 22px; }
.cap h3 { font-size: 1.1875rem; margin-top: 22px; }
.cap p { margin-top: 10px; font-size: 0.9844rem; color: var(--muted); }
.dark .cap { background: rgba(255, 255, 255, 0.035); border-color: rgba(255, 255, 255, 0.08); }
.dark .cap:hover { border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.dark .cap p { color: rgba(255, 255, 255, 0.58); }
.dark .cap-icon { background: rgba(165, 180, 252, 0.1); color: #c7d2fe; }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }

/* Technology page detail list ------------------------------------------- */
.cap-rows { border-top: 1px solid var(--line); }
.cap-row { display: grid; grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(16px, 3vw, 40px); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.cap-row .cap-icon { width: 48px; height: 48px; }
.cap-row h2 { font-size: clamp(1.375rem, 2.4vw, 1.875rem); letter-spacing: -0.028em; }
.cap-row p { color: var(--muted); }
.cap-row ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.cap-row li { font-size: 0.8438rem; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 760px) { .cap-row { grid-template-columns: 1fr; gap: 14px; } }

/* Principles ------------------------------------------------------------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.principle { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.principle h3 { font-size: 1.125rem; }
.principle p { margin-top: 10px; font-size: 0.9688rem; color: var(--muted); }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Split layout ----------------------------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); letter-spacing: -0.032em; margin-top: 16px; }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--muted); font-size: 1.0938rem; }
.prose strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Corporate information -------------------------------------------------- */
.corp { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.corp-head { display: flex; align-items: center; gap: 16px; padding: 24px clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.corp-head .brand-mark { width: 40px; height: 40px; }
.corp-head h3 { font-size: 1.125rem; }
.corp-head p { font-size: 0.875rem; color: var(--faint); }
.corp dl { margin: 0; padding: 4px clamp(24px, 3vw, 36px) 12px; }
.corp dl div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.corp dl div:last-child { border-bottom: 0; }
.corp dt { color: var(--faint); font-size: 0.9375rem; }
.corp dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.corp dd a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.corp dd a:hover { color: var(--indigo); text-decoration-color: currentColor; }
@media (max-width: 640px) { .corp dl div { grid-template-columns: 1fr; gap: 4px; } }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: clamp(24px, 3vw, 32px); min-height: 180px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.3s;
}
.contact-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line-strong); }
.contact-card .label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.contact-card h3 { font-size: 1.25rem; margin-top: 8px; }
.contact-card p { color: var(--muted); font-size: 0.9688rem; }
.contact-card .email { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-card .email svg { width: 18px; height: 18px; flex: none; transition: transform 0.3s var(--ease); color: var(--faint); }
.contact-card:hover .email svg { transform: translate(2px, -2px); color: var(--indigo); }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA panel -------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px);
  background: var(--ink); color: rgba(255, 255, 255, 0.7);
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: end;
}
.cta::before { content: ""; position: absolute; inset: -50% -20% auto auto; width: 70%; height: 160%; background: radial-gradient(50% 50% at 50% 50%, rgba(124, 92, 255, 0.35), transparent 70%); pointer-events: none; }
.cta::after { content: ""; position: absolute; inset: auto auto -60% -10%; width: 60%; height: 140%; background: radial-gradient(50% 50% at 50% 50%, rgba(14, 165, 160, 0.22), transparent 70%); pointer-events: none; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.035em; line-height: 1.05; }
.cta p { margin-top: 16px; font-size: 1.0938rem; max-width: 520px; }
.cta-links { display: grid; gap: 10px; justify-items: start; }
.cta-links a { color: #fff; text-decoration: none; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; font-size: 1.0625rem; overflow-wrap: anywhere; }
.cta-links a span { color: rgba(255, 255, 255, 0.5); font-weight: 400; font-size: 0.9375rem; min-width: 76px; }
.cta-links a:hover { color: #c7d2fe; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* Legal pages ------------------------------------------------------------ */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.9063rem; }
.legal-toc p { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.legal-toc ol { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.legal-body { max-width: 720px; }
.legal-body h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--muted); font-size: 1rem; }
.legal-body p + p { margin-top: 1em; }
.legal-body ul { padding-left: 1.2em; margin: 12px 0; display: grid; gap: 6px; }
.legal-body a { color: var(--indigo); text-underline-offset: 3px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 0.9063rem; color: var(--faint); }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 88px) 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); max-width: 340px; font-size: 0.9375rem; }
.footer-address { margin-top: 16px; font-style: normal; color: var(--muted); font-size: 0.9063rem; line-height: 1.55; }
address { font-style: normal; }
.footer-col h2 { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--indigo); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(48px, 7vw, 72px); padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.875rem; }
.footer-bottom a { color: var(--faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-legal-links { display: flex; gap: 20px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* 404 -------------------------------------------------------------------- */
.not-found { text-align: center; padding: clamp(96px, 16vw, 200px) 0; }
.not-found .code { font-family: var(--mono); font-size: 0.875rem; color: var(--faint); }
.not-found h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.04em; margin-top: 16px; }
.not-found .lead { margin: 18px auto 0; max-width: 480px; }
.not-found .btn-row { justify-content: center; margin-top: 32px; }

/* Reveal on scroll (progressive enhancement) ---------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: 0.08s; }
.js .reveal-d2 { transition-delay: 0.16s; }
.js .reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Print ------------------------------------------------------------------ */
@media print {
  .site-header, .site-footer .footer-grid, .nav-toggle, .hero-visual, .btn-row { display: none !important; }
  body { background: #fff; color: #000; }
  .dark, .cta { background: #fff !important; color: #000 !important; }
  .dark h2, .dark h3, .cta h2 { color: #000 !important; }
}

/* Spacing helpers -------------------------------------------------------- */
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.mt-48 { margin-top: clamp(32px, 5vw, 48px); }
.btn-on-dark { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.cta .btn-row { align-self: end; }

/* Above-the-fold intro (CSS only, never depends on JS) ------------------ */
.intro { animation: intro 0.7s var(--ease) both; }
.intro-d1 { animation-delay: 0.06s; }
.intro-d2 { animation-delay: 0.12s; }
.intro-d3 { animation-delay: 0.18s; }
@keyframes intro { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
