/* ─────────────────────────────────────────────────────────────────────────
   Orcrist — components.

   Each block below is one self-contained component. Components consume
   tokens only; they never hard-code colour, and they are page-agnostic so
   both index.html and contouroai.html can use any of them.
   ───────────────────────────────────────────────────────────────────────── */

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.72rem 1.3rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-soft),
    border-color var(--dur-fast) var(--ease-soft),
    color var(--dur-fast) var(--ease-soft),
    box-shadow var(--dur-mid) var(--ease-soft),
    transform var(--dur-fast) var(--ease-soft);
}
.btn-lg {
  padding: 0.9rem 1.7rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--brand);
  color: var(--surface);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--brand-strong);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-primary:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 80ms;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: rgb(var(--brand-rgb) / 0.05);
}

/* Directional affordance: the arrow nudges toward its destination on hover,
   so links that navigate feel different from links that don't. */
.btn .arrow,
.link-arrow .arrow {
  transition: transform var(--dur-mid) var(--ease-out);
}
.btn:hover .arrow,
.link-arrow:hover .arrow {
  transform: translateX(3px);
}

/* Quiet inline link with a rule that grows on hover. */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.85rem var(--gutter) 0;
  background: transparent;
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: 58px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 0.6rem 0 1.2rem;
  pointer-events: auto;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: var(--radius-pill);
  /* --dark is the palette's dark surface, shared with the footer panel, so
     the two bookends of the page are the same colour. Kept solid rather than
     translucent: over a light ground a semi-transparent dark bar picks up
     whatever scrolls beneath it and reads as muddy grey. */
  background: var(--dark);
  box-shadow: var(--shadow-lg);
  transition:
    background-color var(--dur-mid) var(--ease-soft),
    box-shadow var(--dur-mid) var(--ease-soft);
}
.nav.scrolled .nav-inner {
  background: var(--dark-soft);
  box-shadow: var(--shadow-xl);
}
/* The bar is a dark surface in both themes, so its contents are pinned to
   light values rather than following --text. */
.nav .brand,
.nav .brand-text {
  color: #fff;
}
/* The wordmark carries the brand, so it sits at full white while the nav
   links stay quieter — the hierarchy comes from contrast, not size. */
.nav .brand-text {
  letter-spacing: -0.005em;
}
.nav-links {
  display: flex;
  gap: var(--space-5);
  margin-left: auto;
}
.nav-links a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  /* 0.66 on the solid dark ground lands at roughly the same perceived weight
     the old 0.72 had over the translucent bar. */
  color: rgb(255 255 255 / 0.66);
  padding-block: 0.4rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
}
/* The current page keeps its underline permanently. */
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
  background: rgb(var(--accent-rgb));
}
/* Underline grows from the left on hover rather than appearing at once. */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.nav-links a:hover::after {
  transform: scaleX(1);
}
/* On the dark bar the standard indigo button sits too close in value to its
   own background, so it lifts to a light surface with dark ink — the single
   brightest element in the bar, which is what a CTA should be. */
.nav .btn-primary {
  padding: 0.5rem 1.05rem;
  font-size: 0.86rem;
  background: #fff;
  color: var(--dark);
  box-shadow: none;
}
.nav .btn-primary:hover {
  background: rgb(255 255 255 / 0.88);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -8px rgb(0 0 0 / 0.5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--text);
}
.brand-logo {
  height: 28px;
  width: auto;
}
/* The mark is a thin outline, so it reads optically smaller than its box
   next to the solid wordmark — a little extra height evens them up. */
.nav .brand-logo,
.footer-brand .brand-logo {
  height: 32px;
}
.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* The fixed pill floats over content; offset the document so nothing hides. */
body {
  padding-top: 80px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) var(--section-y);
  position: relative;
  overflow: hidden;
}
/* Two very wide, very soft radial washes. Low opacity by design — the ground
   should read as tinted air, not as a gradient. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      58rem 30rem at 82% -12%,
      rgb(var(--brand-rgb) / 0.12),
      transparent 70%
    ),
    radial-gradient(
      46rem 28rem at -6% 6%,
      rgb(var(--accent-rgb) / 0.1),
      transparent 68%
    );
}
.hero > * {
  position: relative;
}
.hero-inner {
  max-width: 50rem;
}
.hero h1 {
  margin-bottom: var(--space-5);
}
.hero .lede {
  margin-bottom: var(--space-6);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  margin: var(--space-8) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-soft);
}
.hero-stats div {
  margin: 0;
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.hero-stats dd {
  margin: var(--space-1) 0 0;
  font-size: var(--step--1);
  color: var(--muted);
}

/* ── Problem statement ──────────────────────────────────────────────────
   The "pain before product" beat: a full band that states the problem and
   never mentions the solution. Deliberately sparse. */
.problem {
  max-width: 54rem;
}
.problem-statement {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: var(--space-6);
  text-wrap: balance;
}
.problem-statement em {
  font-style: normal;
  color: var(--brand);
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}
.problem-item {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}
.problem-item h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-2);
}
.problem-item p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ── Comparison ─────────────────────────────────────────────────────────
   Asymmetric on purpose: the two columns are not peers. The ContourOAI
   card sits forward — elevated, accent-bordered, on a surface — while the
   conventional column recedes into the page ground. */
.compare {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: var(--space-5);
  align-items: start;
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}
.compare-col h3 {
  margin-bottom: var(--space-5);
  font-size: var(--step-2);
}
.compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}
.compare-col li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.compare-col li strong {
  color: var(--text);
  font-weight: 600;
}
.compare-col li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

/* Receding column: no surface, no shadow, muted throughout. */
.compare-old {
  border: 1px solid var(--border-soft);
  background: transparent;
}
.compare-old h3 {
  color: var(--muted);
  font-size: var(--step-1);
}
.compare-old li {
  color: var(--muted);
}
.compare-old li strong {
  color: var(--text-soft);
  font-weight: 500;
}
.compare-old li::before {
  content: "×";
  color: var(--negative);
}

/* Forward column: raised surface, accent border, deeper shadow. */
.compare-new {
  background: var(--surface);
  border: 1px solid rgb(var(--brand-rgb) / 0.28);
  box-shadow: var(--shadow-lg);
  padding: var(--space-7) var(--space-6);
}
.compare-new h3 {
  color: var(--brand);
}
.compare-new li::before {
  content: "✓";
  color: var(--positive);
}
.compare-new:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ── Proof band ─────────────────────────────────────────────────────────
   Quantified evidence with provenance. */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--space-5);
}
.proof-item {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.proof-value {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--brand);
}
.proof-label {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  color: var(--text-soft);
}

/* ── Marquee ────────────────────────────────────────────────────────────
   Continuous horizontal loop. The track holds the content twice and
   translates -50%, so the seam is invisible. Pauses on hover and on focus
   within, and is replaced by a static list under reduced-motion. */
.marquee {
  position: relative;
  overflow: hidden;
  /* Edge fade, so the overflow reads as intentional rather than clipped. */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 56px,
    #000 calc(100% - 56px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 56px,
    #000 calc(100% - 56px),
    transparent
  );
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: var(--space-3);
  animation: marquee-scroll var(--marquee-duration, 64s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}
.chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: var(--step--1);
  color: var(--text-soft);
  white-space: nowrap;
}
.chip strong {
  color: var(--text);
  font-weight: 600;
}
.marquee-static {
  display: none;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── Timeline ───────────────────────────────────────────────────────────── */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 48rem;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(
    var(--brand),
    rgb(var(--accent-rgb) / 0.5),
    transparent
  );
}
.step {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-7);
  position: relative;
}
.step:last-child {
  padding-bottom: 0;
}
.step-num {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  z-index: 1;
  border-radius: 50%;
  border: 1px solid rgb(var(--brand-rgb) / 0.3);
  background: var(--surface);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--dur-mid) var(--ease-soft),
    color var(--dur-mid) var(--ease-soft);
}
.step:hover .step-num {
  background: var(--brand);
  color: var(--surface);
}
.step-body {
  padding-top: 0.35rem;
}
.step-body h3 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
}
.step-body p {
  color: var(--text-soft);
  font-size: 0.96rem;
  max-width: 42ch;
}

/* ── Team ───────────────────────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: var(--space-5);
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.team-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-bottom: var(--space-4);
}
.team-card h3 {
  font-size: var(--step-1);
}
.team-role {
  margin: var(--space-1) 0 var(--space-3);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}
.team-bio {
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* ── FAQ ────────────────────────────────────────────────────────────────
   Native <details>, so it works with JS disabled and is keyboard- and
   screen-reader-accessible without any ARIA of our own. */
.faq {
  max-width: 52rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item + .faq-item {
  border-top: 1px solid var(--border-soft);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: var(--leading-snug);
  color: var(--text);
  transition: background-color var(--dur-fast) var(--ease-soft);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  background: var(--surface-soft);
  color: var(--brand);
}
.faq-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  position: relative;
  color: var(--muted);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out);
}
.faq-icon::after {
  transform: rotate(90deg);
}
.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}
.faq-item[open] summary {
  color: var(--brand);
}
.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-soft);
  font-size: 0.96rem;
  max-width: 60ch;
}
.faq-answer p + p {
  margin-top: var(--space-3);
}

/* ── Teaser ─────────────────────────────────────────────────────────────
   The landing page is an index: each section is summarised in a few lines
   and links out to its own page. Borrowed from how alfaaz.me routes
   /how-it-works, /what-you-get and /faq off a short home page. */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: var(--space-5);
}
.teaser {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}
.teaser:hover {
  transform: translateY(-4px);
  border-color: rgb(var(--brand-rgb) / 0.28);
  box-shadow: var(--shadow-lg);
}
.teaser h3 {
  margin-bottom: var(--space-3);
  font-size: var(--step-2);
}
.teaser p {
  color: var(--text-soft);
  font-size: 0.95rem;
}
/* The link sits at the card foot regardless of copy length, so a row of
   teasers keeps its arrows on one line. */
.teaser .link-arrow {
  margin-top: auto;
  padding-top: var(--space-5);
  align-self: flex-start;
}
/* A teaser may carry a short list of what its page covers. */
.teaser-points {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.teaser-points li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.teaser-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgb(var(--brand-rgb) / 0.5);
}

/* ── Page header ────────────────────────────────────────────────────────
   The masthead on every non-landing page: breadcrumb, title, standfirst. */
.page-header {
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) var(--section-y);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    52rem 26rem at 78% -18%,
    rgb(var(--brand-rgb) / 0.1),
    transparent 70%
  );
}
.page-header > * {
  position: relative;
}
.page-header h1 {
  font-size: var(--step-4);
  max-width: 22ch;
}
.page-header .lede {
  margin-top: var(--space-5);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: var(--step--1);
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--brand);
}
.breadcrumb span[aria-current] {
  color: var(--text-soft);
}

/* ── Prose ──────────────────────────────────────────────────────────────
   Body copy on the detail pages. */
.prose {
  max-width: var(--maxw-prose);
}
.prose p + p {
  margin-top: var(--space-4);
}
.prose p {
  color: var(--text-soft);
}
.prose h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

/* A labelled block of detail — used for architecture and workflow notes. */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-5);
}
.detail-card {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.detail-card h3 {
  font-size: var(--step-1);
  margin-bottom: var(--space-3);
}
.detail-card p {
  color: var(--text-soft);
  font-size: 0.93rem;
}
.detail-card ul {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.detail-card li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.detail-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--positive);
  font-weight: 700;
}

/* Emphasised callout for a single important constraint. */
.callout {
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid rgb(var(--brand-rgb) / 0.24);
  border-left-width: 3px;
  background: rgb(var(--brand-rgb) / 0.05);
}
.callout strong {
  color: var(--text);
}
.callout p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ── Next steps ─────────────────────────────────────────────────────────
   Cross-links at the foot of a detail page, so a reader always has a
   forward path rather than only the browser Back button. */
.next-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.next-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    transform var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out);
}
.next-card:hover {
  transform: translateY(-3px);
  border-color: rgb(var(--brand-rgb) / 0.3);
}
.next-card .eyebrow {
  margin: 0;
}
.next-card strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--text);
  letter-spacing: -0.01em;
}
.next-card span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

/* ── Structure tables ───────────────────────────────────────────────────
   Model-group listings on the coverage page. */
.group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-left: 3px solid rgb(var(--brand-rgb) / 0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
}
.group-item span:first-child {
  font-weight: 600;
  color: var(--text);
}
.group-count {
  flex: 0 0 auto;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  background: rgb(var(--brand-rgb) / 0.1);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
}
/* Groups still in validation read as provisional. */
.group-item--pending {
  border-left-color: var(--border-strong);
  background: transparent;
}
.group-item--pending span:first-child {
  color: var(--text-soft);
  font-weight: 500;
}
.group-item--pending .group-count {
  background: rgb(var(--ink-rgb) / 0.06);
  color: var(--muted);
}

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-inner {
  max-width: 42rem;
}
.contact-inner .btn {
  margin-top: var(--space-6);
}

/* ── Footer ─────────────────────────────────────────────────────────────
   A real panel rather than a status strip: grouped link columns, contact,
   and legal. Rounded and pulled up slightly so it reads as a card the page
   rests on. */
.site-footer {
  padding: 0 var(--gutter) var(--space-6);
  background: var(--bg);
}
.footer-panel {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: var(--space-7) clamp(1.5rem, 1rem + 2vw, 3rem) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--dark);
  color: rgb(255 255 255 / 0.62);
  box-shadow: var(--shadow-lg);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(14rem, 1.4fr) repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgb(255 255 255 / 0.09);
}
.footer-brand .brand,
.footer-brand .brand-text {
  color: #fff;
}
.footer-tagline {
  margin-top: var(--space-3);
  font-size: 0.9rem;
  max-width: 26ch;
  color: rgb(255 255 255 / 0.55);
}
.footer-col h4 {
  margin-bottom: var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: var(--eyebrow-track);
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.4);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}
.footer-col a {
  font-size: 0.9rem;
  color: rgb(255 255 255 / 0.62);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition:
    color var(--dur-fast) var(--ease-soft),
    text-decoration-color var(--dur-fast) var(--ease-soft);
}
.footer-col a:hover {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.45);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: rgb(255 255 255 / 0.38);
}

/* ── Illustrated artwork ────────────────────────────────────────────────
   The PNG icon set in site/icons/. Sized larger than the line icons since
   they carry internal detail, and given no tinted tile — the artwork has
   its own colour and a tile would box it in. */
.art {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: var(--space-4);
}
.teaser .art,
.detail-card .art {
  transition: transform var(--dur-mid) var(--ease-out);
}
.teaser:hover .art,
.detail-card:hover .art {
  transform: translateY(-2px) scale(1.04);
}

