/* =========================================================================
   Corera Tech LLC — main stylesheet
   Refined corporate: warm paper surfaces, deep navy ink, cobalt accent.
   Type: Instrument Serif (display) + Instrument Sans (text), self-hosted.
   ========================================================================= */

/* ---------- Fonts ------------------------------------------------------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ------------------------------------------------------ */
:root {
  --paper: #F7F5F0;
  --paper-2: #EFEBE3;
  --white: #FFFFFF;

  --ink: #0B1020;
  --navy: #101A33;
  --navy-2: #182541;
  --text: #1B2237;
  --muted: #5B6479;
  --muted-2: #8A91A3;

  --line: #E3DFD5;
  --line-strong: #CFC9BC;
  --line-dark: rgba(255, 255, 255, 0.09);

  --accent: #1F4FE0;
  --accent-2: #3D6BFF;
  --accent-ink: #173FB8;
  --accent-soft: rgba(31, 79, 224, 0.10);
  --accent-glow: rgba(61, 107, 255, 0.30);
  --accent-on-dark: #A9BEFF;

  --danger: #B42318;

  --paper-70: rgba(247, 245, 240, 0.70);
  --paper-50: rgba(247, 245, 240, 0.50);

  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-lg: 0 30px 80px -30px rgba(6, 10, 25, 0.45);
  --shadow-md: 0 20px 50px -30px rgba(11, 16, 32, 0.30);

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset / base ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
a:hover { color: var(--accent); }

::selection { background: rgba(61, 107, 255, 0.25); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; }

h1, h2, .display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.04;
}
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h2 em, h1 em { font-style: italic; color: var(--accent); }

h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.7); }
.section-white { background: var(--white); }
.section-paper { background: var(--paper); }
.section-paper-2 { background: var(--paper-2); }
.section-line { border-top: 1px solid var(--line); }

.section-dark {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--paper-70);
  overflow: hidden;
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark h2 em { color: var(--accent-on-dark); }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-dark .section-head p:not(.eyebrow) { color: var(--paper-70); }
.section-dark .disclaimer { color: var(--paper-50); }
.section-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: 0.05;
  pointer-events: none;
}

.section-head { max-width: 760px; }
.section-head h2 { margin: 0.9rem 0 1rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head + * { margin-top: clamp(2.25rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.split-copy h2 { margin: 0.9rem 0 1rem; }
.split-copy p:not(.eyebrow) { color: var(--muted); }
.split-copy .lead { color: var(--text); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.97rem;
  color: var(--text);
}
.check-list .icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--accent);
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.005em;
  padding: 0.95rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .btn-icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.7rem 1.05rem; font-size: 0.875rem; border-radius: 9px; }
.btn-lg { padding: 1.1rem 1.7rem; font-size: 1.02rem; }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-ink); color: var(--paper); box-shadow: 0 12px 30px -14px rgba(31, 79, 224, 0.7); }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); color: var(--ink); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.6); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(11, 16, 32, 0.04); }

.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost-light:hover { border-color: rgba(255, 255, 255, 0.6); color: var(--paper); background: rgba(255, 255, 255, 0.06); }

.btn.is-busy { opacity: 0.65; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--paper);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.6); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand-mark { flex: none; width: 30px; height: 30px; border-radius: 8px; }
.brand-word {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1;
  padding-top: 1px;
}
.brand-sub { margin-left: 0.6em; font-weight: 500; opacity: 0.5; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.nav-list { display: flex; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--paper-70);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s var(--ease);
}
.nav-list a:hover { color: var(--paper); }
.nav-list a[aria-current="page"] { color: var(--paper); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.15rem;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent-2);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle-icon { position: relative; width: 18px; height: 12px; display: block; }
.nav-toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle-icon span:nth-child(1) { top: 0; }
.nav-toggle-icon span:nth-child(2) { top: 5.25px; }
.nav-toggle-icon span:nth-child(3) { top: 10.5px; }
body.nav-open .nav-toggle-icon span:nth-child(1) { top: 5.25px; transform: rotate(45deg); }
body.nav-open .nav-toggle-icon span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-icon span:nth-child(3) { top: 5.25px; transform: rotate(-45deg); }

/* ---------- Home hero --------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(5rem, 11vw, 9rem) 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 82% -8%, var(--accent-glow), transparent 62%),
    radial-gradient(640px 420px at 6% 108%, rgba(61, 107, 255, 0.14), transparent 60%),
    var(--ink);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 65% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 65% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: 0.06;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero-copy { padding-bottom: clamp(5rem, 10vw, 8rem); }
.hero-eyebrow { color: var(--accent-on-dark); }
.hero-title {
  font-size: clamp(2.9rem, 6.8vw, 5.7rem);
  line-height: 1;
  color: var(--paper);
  margin: 1.25rem 0 1.5rem;
  max-width: 12ch;
}
.hero-title em { font-style: italic; color: #D4DEFF; }
.hero-lead {
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--paper-70);
  max-width: 54ch;
  margin: 0 0 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 2.75rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-50);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }

/* Panel: floats over the following section */
.hero-panel {
  position: relative;
  z-index: 2;
  margin-bottom: -96px;
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.panel-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper);
}
.panel-list { list-style: none; margin: 0; padding: 0.5rem 0; }
.panel-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.5rem;
  transition: background 0.25s var(--ease);
}
.panel-list li + li { border-top: 1px solid var(--line); }
a.panel-item { color: inherit; text-decoration: none; }
a.panel-item:hover .icon-go { color: var(--accent); transform: translateX(3px); }
.panel-item .icon-go { transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.panel-item:hover { background: var(--white); }
.panel-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.panel-icon .icon { width: 22px; height: 22px; }
.panel-text strong { display: block; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.panel-text span { display: block; font-size: 0.86rem; color: var(--muted); }
.panel-item .icon-go { width: 18px; height: 18px; color: var(--muted-2); }
.panel-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.after-hero { padding-top: calc(96px + var(--section)); }

/* Load-in choreography */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.28s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.40s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.52s; }
  .hero-panel { animation: rise-panel 1.1s var(--ease) 0.35s both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-panel { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }

/* ---------- Lattice cards (business models) --------------------------- */
.lattice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.lattice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 2rem;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.3s var(--ease);
}
.lattice-card:hover { background: var(--white); color: inherit; }
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.card-icon .icon { width: 22px; height: 22px; }
.lattice-card:hover .card-icon { background: var(--ink); color: var(--paper); }
.lattice-card h3 { margin-bottom: 0.6rem; font-size: 1.25rem; }
.lattice-card p { color: var(--muted); font-size: 0.97rem; margin: 0; max-width: 34ch; }
.card-ghost {
  position: absolute;
  right: 1.25rem;
  bottom: -1.1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 7rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.35s var(--ease), transform 0.6s var(--ease);
}
.lattice-card:hover .card-ghost { opacity: 0.09; transform: translateY(-6px); }
.card-link { margin-top: auto; padding-top: 1.75rem; }

/* ---------- Generic cards ----------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card h3 { margin: 1.35rem 0 0.5rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1.1rem; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--paper);
}

/* ---------- Info panel (legal / company facts) ------------------------ */
.info-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 0;
}
.info-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.info-grid dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.info-grid dd { margin: 0; font-size: 1.03rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
.info-grid dd a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.info-grid dd a:hover { color: var(--accent); border-color: var(--accent); }
.info-note { margin: 1.75rem 0 0; font-size: 0.86rem; color: var(--muted); }

/* ---------- CTA band ---------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--ink);
  color: var(--paper-70);
  border-radius: var(--radius-lg);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(700px 400px at 100% 0%, var(--accent-glow), transparent 65%);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--noise);
  opacity: 0.06;
  pointer-events: none;
}
.cta-band h2 { color: var(--paper); margin: 0.9rem 0 0.9rem; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.cta-band .eyebrow { color: var(--accent-on-dark); }
.cta-band p:not(.eyebrow) { margin: 0; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: flex-end; }
.cta-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}
.cta-email:hover { color: var(--paper); border-color: var(--paper); }

/* ---------- Page hero (inner pages) ------------------------------------ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 5vw, 4.5rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 16, 32, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 16, 32, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 90% 10%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 90% 10%, #000 10%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem;
  align-items: end;
}
.page-hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.6rem);
  margin: 1rem 0 1.25rem;
  max-width: 16ch;
}
.page-hero-lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}
.page-meta {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--line-strong);
  font-size: 0.92rem;
}
.page-meta dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.page-meta dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ---------- Feature rows (E-Commerce) ---------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.feature-row:first-child { border-top: 0; padding-top: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 0.9rem 0 1rem; }
.feature-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.65rem;
}
.feature-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.97rem; color: var(--text); }
.feature-list .icon { flex: none; width: 18px; height: 18px; margin-top: 0.2rem; color: var(--accent); }

.mock {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.mock-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.flow { list-style: none; margin: 0; padding: 0.5rem 1.5rem; }
.flow li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 0;
}
.flow li + li { border-top: 1px dashed var(--line); }
.flow-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.flow-text strong { display: block; font-weight: 600; color: var(--ink); }
.flow-text span { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 0.15rem; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); background: var(--paper); }
.mock-chips .tag { background: var(--white); color: var(--ink); }
.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.mock-tile { background: var(--white); padding: 1.35rem; }
.mock-tile .card-icon { width: 38px; height: 38px; border-radius: 10px; }
.mock-tile .card-icon .icon { width: 19px; height: 19px; }
.mock-tile strong { display: block; margin: 0.9rem 0 0.2rem; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.mock-tile .tile-sub { display: block; font-size: 0.86rem; color: var(--muted); }

/* ---------- Pillars (dark) ---------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pillar { background: var(--ink); padding: 2rem; }
.pillar .card-icon { background: rgba(255, 255, 255, 0.07); color: var(--accent-on-dark); }
.pillar h3 { margin: 1.35rem 0 0.5rem; color: var(--paper); }
.pillar p { margin: 0; color: var(--paper-70); font-size: 0.97rem; }

/* ---------- Steps ------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
.step { padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--accent);
}
.step h3 { margin: 0.9rem 0 0.5rem; font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Approach list (About) -------------------------------------- */
.approach {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.approach-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.approach-check {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.approach-check .icon { width: 16px; height: 16px; }
.approach-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.approach-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.mission { text-align: center; }
.mission blockquote {
  margin: 1.5rem auto 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  color: var(--ink);
}
.mission blockquote::before { content: "\201C"; opacity: 0.35; }
.mission blockquote::after { content: "\201D"; opacity: 0.35; }

/* ---------- Statement band ---------------------------------------------- */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 30ch;
  color: var(--ink);
}
.statement em { color: var(--accent); }

/* ---------- Legal pages ------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.prose { max-width: 72ch; font-size: 1.02rem; line-height: 1.7; color: var(--text); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); margin: 2.5rem 0 0.75rem; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.08rem; margin: 1.75rem 0 0.5rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.prose li { margin: 0.35rem 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .callout {
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--white);
  margin: 1.25rem 0 1.5rem;
}
.legal-aside { position: sticky; top: 96px; }
.toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
}
.toc h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.9rem;
}
.toc ol { margin: 0; padding-left: 1.15rem; font-size: 0.9rem; display: grid; gap: 0.4rem; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.aside-contact { margin-top: 1.25rem; font-size: 0.9rem; color: var(--muted); }
.aside-contact a { color: var(--ink); font-weight: 500; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact ----------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-card {
  position: sticky;
  top: 96px;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-70);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(520px 320px at 100% 0%, var(--accent-glow), transparent 65%);
}
.contact-card h2 { color: var(--paper); font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0.9rem 0 0.75rem; }
.contact-card .eyebrow { color: var(--accent-on-dark); }
.contact-card p:not(.eyebrow) { margin: 0 0 1.5rem; }
.contact-email {
  display: inline-block;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
  word-break: break-all;
  transition: border-color 0.2s;
}
.contact-email:hover { color: var(--paper); border-color: var(--paper); }
.contact-details { margin: 2rem 0 0; }
.contact-detail {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.9rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.93rem;
}
.contact-detail .icon { width: 20px; height: 20px; color: var(--accent-on-dark); margin-top: 0.1rem; }
.contact-detail dt { font-weight: 600; color: var(--paper); margin-bottom: 0.15rem; }
.contact-detail dd { margin: 0; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--white);
}
.field textarea { min-height: 170px; resize: vertical; }
.field .is-invalid { border-color: var(--danger); }
.field-error { font-size: 0.85rem; color: var(--danger); }
.field-hint { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-align: right; }

.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border: 1px solid;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.form-alert .icon { flex: none; width: 20px; height: 20px; margin-top: 0.1rem; }
.form-alert p { margin: 0; }
.form-alert-error { background: #FEF3F2; border-color: #FECDCA; color: #912018; }
.form-alert-success { background: #ECFDF3; border-color: #ABEFC6; color: #085D3A; }
.form-alert-success strong { display: block; margin-bottom: 0.2rem; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0; max-width: 40ch; }
.form-note a { color: var(--ink); }

/* ---------- 404 --------------------------------------------------------- */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--section) 0;
}
.notfound-code {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: var(--ink);
}
.notfound h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0.5rem 0 1rem; }
.notfound p { color: var(--muted); max-width: 44ch; margin: 0 auto 1.75rem; }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

/* ---------- Footer ------------------------------------------------------ */
.site-footer {
  background: var(--ink);
  color: var(--paper-70);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 3rem;
}
.footer-name { color: var(--paper); font-weight: 600; margin: 1.5rem 0 0.15rem; }
.footer-tagline { margin: 0 0 1.75rem; font-size: 0.93rem; }
.footer-contact { display: flex; flex-direction: column; gap: 0.15rem; margin: 0 0 1.1rem; font-size: 0.93rem; }
.footer-contact a { color: var(--paper); text-decoration: none; }
.footer-contact a:hover { color: var(--accent-on-dark); }
.footer-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-50);
  margin-bottom: 0.25rem;
}
.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-50);
  margin: 0 0 1.1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.footer-col a { color: rgba(247, 245, 240, 0.8); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.86rem;
  color: var(--paper-50);
}
.footer-bottom p { margin: 0; }

/* ---------- Scroll reveal (CSS-only, progressive) ---------------------- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 32%;
    }
  }
}

/* ---------- Utilities --------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0 !important; }
.disclaimer { font-size: 0.82rem; color: var(--muted); max-width: 70ch; margin: 2rem 0 0; }
