/* =========================================================================
   REInvest Robotics — style.css
   A single stylesheet for the whole site.
   Sections: 1 Tokens · 2 Reset · 3 Typography · 4 Layout · 5 Header/Nav
             6 Buttons · 7 Cards & components · 8 Photo placeholders
             9 Page-specific · 10 Footer · 11 Motion & utilities
   ========================================================================= */

/* ---------------------------------------------------------------- 1 Tokens */
:root {
  /* Type */
  --font-display: "Space Grotesk", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --fs-hero: clamp(2.5rem, 1.2rem + 4.8vw, 5.1rem);
  --fs-h1: clamp(2.1rem, 1.3rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(1.75rem, 1.25rem + 2.1vw, 2.9rem);
  --fs-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-micro: 0.75rem;

  /* Colour — light, airy Danish base */
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --deep: #0c1120;
  --deep-2: #161d31;

  --ink: #0e1424;
  --ink-soft: #454f63;
  --ink-mute: #6d7686;
  --line: #e2e7f0;

  /* Accent — official REInvest Robotics blue.
     --accent-bright (#1EA1F7) is the brand blue from the logo. It is reserved for
     graphic elements (glows, gradients, decorative marks) because at 2.8:1 on white
     it fails WCAG AA for text of any size.
     --accent (#0970b4) is the darkest sibling that still reads as the brand blue.
     It clears 4.5:1 on every surface the site puts text on: white (5.27:1),
     --bg-soft (4.91:1) and --accent-tint (4.61:1), and as a filled button it
     clears 4.5:1 for white text.
     --accent-deep (#075a92) is the hover/pressed shade (7.28:1 on white). */
  --accent-bright: #1ea1f7;
  --accent: #0970b4;
  --accent-deep: #075a92;
  --accent-tint: #e3f2fe;

  /* RoboHouse sub-brand — warm signal orange */
  --robo: #f2541b;
  --robo-deep: #c23c0d;
  --robo-tint: #fff0e9;

  /* Investments sub-brand — soft architectural grey beside the core blue.
     This is deliberately a cool mid-grey and not a charcoal: the journey is
     meant to read light and Nordic, not luxury-finance dark.
     --steel clears 4.5:1 for text on white (5.98:1), --bg-soft (5.58:1) and
     --steel-tint (5.28:1). --steel-deep is the heading/hover shade (9.24:1 on white). */
  --steel: #5a6474;
  --steel-deep: #3f4856;
  --steel-tint: #eef1f6;
  --steel-line: #d2d9e3;

  /* Geometry */
  --maxw: 1180px;
  --maxw-text: 66ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --section-y: clamp(4rem, 8vw, 7.5rem);

  /* Motion */
  --t: 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(12, 17, 32, 0.05), 0 6px 18px -12px rgba(12, 17, 32, 0.28);
  --shadow-md: 0 2px 6px rgba(12, 17, 32, 0.05), 0 24px 48px -28px rgba(12, 17, 32, 0.35);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, figure { display: block; max-width: 100%; }
svg { height: auto; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--accent); color: #fff; }

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

/* ------------------------------------------------------------ 3 Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

strong { font-weight: 600; color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow--robo { color: var(--robo); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
}

.prose { max-width: var(--maxw-text); }
.prose p { color: var(--ink-soft); }
.prose h3 { margin-top: 2.2em; color: var(--ink); }
.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.05rem + 0.8vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}
/* Long-form extras. The migrated Insights articles use lists, inline links and figures. */
.prose ul,
.prose ol { margin: 1.1rem 0 1.5rem; padding-left: 1.35rem; color: var(--ink-soft); }
.prose li { margin-bottom: 0.5rem; line-height: 1.6; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--accent-deep); }
.prose figure { margin: 2.25rem 0; }
.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.prose figcaption {
  margin-top: 0.65rem;
  font-size: var(--fs-small);
  color: var(--ink-mute);
}

.muted { color: var(--ink-mute); }
.small { font-size: var(--fs-small); }

/* ---------------------------------------------------------------- 4 Layout */
.wrap {
  width: min(100% - (var(--gutter) * 2), var(--maxw));
  margin-inline: auto;
}
.wrap--narrow { --maxw: 860px; }

.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
/* Shorter band — for strips that support the section above (e.g. stats) */
.section--slim { padding-block: clamp(2.5rem, 5vw, 3.75rem); }

/* Dark sections re-map the semantic tokens so components adapt automatically */
.section--dark {
  --bg: var(--deep-2);
  --bg-soft: #1c2438;
  --ink: #ffffff;
  --ink-soft: #b9c2d4;
  --ink-mute: #8d97ab;
  --line: rgba(255, 255, 255, 0.13);
  --accent-bright: #5ebcfa;
  --accent: #58baf9;
  --accent-deep: #9bd6fc;
  --accent-tint: rgba(30, 161, 247, 0.16);
  --shadow-sm: none;
  --shadow-md: none;
  background: var(--deep);
  color: #fff;
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }

.section-head { max-width: 58ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head--wide { max-width: 72ch; }
.section-head p { color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.55; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split--top { align-items: start; }
  .split--sticky { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .split--sticky > :first-child { position: sticky; top: 7rem; }
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.cluster { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.cluster p { margin: 0; max-width: 38ch; }

/* ---------------------------------------------------------- 5 Header / Nav */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip:focus { top: 0; color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(12, 17, 32, 0.5);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  flex: none;
  transition: opacity var(--t-fast);
}
.logo:hover { color: var(--ink); opacity: 0.75; }
/* Official logo is 184 × 80; height drives the lockup, width follows. */
.logo img { width: auto; height: 52px; }
@media (max-width: 420px) {
  .header__inner { min-height: 76px; }
  .logo img { height: 44px; }
}

.nav-toggle {
  --bar: var(--ink);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--bar);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t-fast);
}
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2vw, 0.9rem);
}
.nav a {
  display: inline-block;
  position: relative;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* RoboHouse gets its own sub-brand treatment in the nav */
.nav .nav__robo {
  color: var(--robo-deep);
  background: var(--robo-tint);
  font-weight: 600;
  padding-inline: 0.8rem;
}
.nav .nav__robo:hover { background: #ffe3d6; color: var(--robo-deep); }
.nav .nav__robo::after { background: var(--robo); }
.nav .nav__robo[aria-current="page"] { color: var(--robo-deep); }


@media (max-width: 979px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    display: grid;
    grid-template-rows: 0fr;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: grid-template-rows var(--t), border-color var(--t);
  }
  .nav > ul {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--gutter);
  }
  .site-header.is-open .nav { grid-template-rows: 1fr; border-bottom-color: var(--line); }
  .nav li + li { border-top: 1px solid var(--line); }
  .nav a { padding: 0.95rem 0.25rem; font-size: 1.05rem; border-radius: 0; }
  .nav a::after { left: 0.25rem; right: auto; width: 1.5rem; bottom: 0.55rem; }
  .nav .nav__robo { background: none; padding-inline: 0.25rem; }
  .nav .nav__robo:hover { background: none; }
  .nav li:first-child a { padding-top: 1.1rem; }
  .nav li:last-child a { padding-bottom: 1.4rem; }
}
@media (min-width: 980px) {
  .nav-toggle { display: none; }
}

/* --------------------------------------------------------------- 6 Buttons */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 0.975rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t), box-shadow var(--t), border-color var(--t);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(9, 112, 180, 0.85); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
/* Narrow columns and phones: let buttons take the column width so long labels
   stay on one line instead of wrapping inside the pill. */
.btn { text-wrap: balance; }
.ask__actions .btn, .journey__go { justify-content: center; text-align: center; }
@media (max-width: 1100px) { .ask__actions .btn { width: 100%; } }
@media (max-width: 480px) {
  .btn { font-size: 0.9rem; padding-inline: 1.1rem; }
  .cluster > .btn, .ask__actions .btn, .journey__go { width: 100%; }
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink-mute); box-shadow: none; }

.btn--robo { --btn-bg: var(--robo); }
.btn--robo:hover { box-shadow: 0 14px 26px -16px rgba(242, 84, 27, 0.85); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--deep); }
.btn--light:hover { box-shadow: 0 14px 26px -16px rgba(0, 0, 0, 0.7); }

/* Ghost button on a dark background */
.btn--outline-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.6); box-shadow: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.975rem;
  text-decoration: none;
  color: var(--accent);
}
.link-arrow svg { width: 0.95em; height: 0.95em; transition: transform var(--t); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--robo { color: var(--robo-deep); }

/* --------------------------------------------------- 7 Cards & components */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { box-shadow: var(--shadow-md); }
.card p { color: var(--ink-soft); font-size: var(--fs-small); }
.card h3 { margin-bottom: 0; }
.card__foot { margin-top: auto; padding-top: 0.5rem; }

.card__meta {
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Numbered pillar cards */
.pillar { gap: 0.9rem; }
.pillar__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.pillar__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-tint);
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar--robo .pillar__num { color: var(--robo); }
.pillar--robo .pillar__icon { background: var(--robo-tint); color: var(--robo-deep); }

/* Company / portfolio card */
.company { gap: 0.6rem; }
.company__mark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.4rem;
}
.company__glyph {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent-bright), var(--accent-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}
.company__place {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.company h3 { font-size: 1.2rem; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
.tag--sdg { background: var(--accent-tint); color: var(--accent-deep); border-color: transparent; }
.tag--exit { background: #e9f6ee; color: #1c6b3d; border-color: transparent; }
.tag--robo { background: var(--robo-tint); color: var(--robo-deep); border-color: transparent; }

/* Testimonial — a third-party quote that sits beside a founder bio.
   Deliberately smaller than .pullquote: it should support the bio, not outweigh it. */
.testimonial {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}
.testimonial p {
  margin: 0;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-soft);
}
.testimonial footer {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.testimonial footer a { color: var(--accent); text-decoration: none; }
.testimonial footer a:hover { color: var(--accent-deep); text-decoration: underline; }

/* Stats */
.stats {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { min-width: 0; }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}

/* Definition-style list */
.deflist { border-top: 1px solid var(--line); }
.deflist > div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .deflist > div { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
.deflist dt { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.015em; }
.deflist dd { margin: 0; color: var(--ink-soft); font-size: var(--fs-small); }

/* Compact bulleted list for use inside cards */
.minilist { display: grid; gap: 0.42rem; margin-top: 0.5rem; }
.minilist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-soft);
}
.minilist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}
.minilist--robo li::before { background: var(--robo); }

/* Checklist */
.ticks li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}
.ticks--robo li::before { background: var(--robo); }

/* Profile */
.profile { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 780px) { .profile { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.profile__credential {
  margin-top: 0.85rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-mute);
}
.profile__credential strong { display: block; font-family: var(--font-display); color: var(--ink); }
.profile__role {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* Callout band */
.band { padding-block: clamp(3rem, 6vw, 5rem); }
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: var(--deep);
  color: #fff;
}
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #b9c2d4; }
.cta-panel strong { color: #fff; }
.cta-panel .eyebrow { color: #7fc9fb; }
.cta-panel .eyebrow--robo { color: #ff9166; }
.cta-panel .footnote { color: #8d97ab; }
.cta-panel::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 161, 247, 0.5), transparent 65%);
  pointer-events: none;
}
.cta-panel--robo::after { background: radial-gradient(circle, rgba(242, 84, 27, 0.5), transparent 65%); }
.cta-panel > * { position: relative; z-index: 1; }

/* ------------------------------------------------- 8 Photo placeholders */
.photo {
  --ratio: 4 / 3;
  position: relative;
  aspect-ratio: var(--ratio);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 80% 0%, var(--accent-tint), transparent 60%),
    linear-gradient(160deg, #f2f5fb 0%, #e6ebf6 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 20, 36, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 20, 36, 0.075) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: -1;
}
.photo::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(38%, 150px);
  aspect-ratio: 1;
  transform: translate(-50%, -60%) rotate(45deg);
  border: 1.5px solid rgba(30, 161, 247, 0.34);
  border-radius: 14px;
  z-index: -1;
}
.photo__label {
  margin: 0.9rem;
  padding: 0.42rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.photo--wide { --ratio: 16 / 9; }
.photo--tall { --ratio: 4 / 5; }
.photo--square { --ratio: 1 / 1; }
.photo--robo {
  background:
    radial-gradient(120% 100% at 80% 0%, var(--robo-tint), transparent 60%),
    linear-gradient(160deg, #faf5f2 0%, #f0e9e4 100%);
}
.photo--robo::after { border-color: rgba(242, 84, 27, 0.32); }
.photo--dark {
  background:
    radial-gradient(120% 100% at 75% 10%, rgba(30, 161, 247, 0.25), transparent 60%),
    linear-gradient(160deg, #141b2c 0%, #0c1120 100%);
  border-color: rgba(255, 255, 255, 0.1);
}
.photo--dark::before { 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); }
.photo--dark .photo__label { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.14); color: #c8d1e2; }

/* A .photo that holds a real photograph: the placeholder scaffolding is dropped
   and the image fills the frame, keeping the same radius and aspect ratio. */
.photo--img { background: var(--bg-soft); }
.photo--img::before,
.photo--img::after { content: none; }
.photo--img > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
/* Portraits: keep the subject's head in frame rather than centring the crop. */
.photo--portrait > img { object-position: 50% 22%; }
.photo--img .photo__label { position: relative; z-index: 1; }

/* ------------------------------------------------------- 9 Page specifics */

/* Hero (home) */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 9vw, 8rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(80% 110% at 88% -10%, var(--accent-tint) 0%, transparent 58%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 70%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 20, 36, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 20, 36, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 20%, transparent 80%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  letter-spacing: -0.04em;
  max-width: 18ch;
}
.hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.hero .lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem); }
.hero .cluster { margin-top: 2.25rem; }
.hero__meta {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

/* Journey chooser (home) — the primary decision on the page.
   Sits inside the hero so the three audiences are the first real choice
   a visitor makes; deliberately heavier than a normal .card row. */
.chooser {
  position: relative;
  margin-top: clamp(2.75rem, 6vw, 4.25rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.chooser__head {
  max-width: 44ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.chooser__head h2 { margin-bottom: 0; }

.chooser__grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
/* From tablet up: the primary journey runs full width above the other two,
   so Robotics & Automation is unmistakably the main path. */
@media (min-width: 700px) {
  .chooser__grid { grid-template-columns: repeat(2, 1fr); }
  .chooser__grid > .journey--primary { grid-column: 1 / -1; }
}

.journey {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: clamp(1.5rem, 2.6vw, 2.1rem);
  padding-top: clamp(1.7rem, 2.8vw, 2.3rem);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
/* Accent rule across the top of each card */
.journey::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-bright), var(--accent));
}
.journey:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 112, 180, 0.35);
}
.journey:focus-within { border-color: var(--accent); }

.journey__label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.journey__icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent);
}
.journey__icon svg { width: 20px; height: 20px; }

.journey__q {
  margin: 0;
  font-size: clamp(1.3rem, 1.08rem + 0.62vw, 1.62rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
}
/* Body copy only — the label and footer paragraphs carry their own classes */
.journey p:not([class]) { color: var(--ink-soft); font-size: var(--fs-small); margin: 0; }

.journey__body { display: grid; gap: 0.8rem; }

.journey__list { display: grid; gap: 0.5rem; margin: 0.2rem 0 0.3rem; }
.journey__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--ink-soft);
}
.journey__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent);
}

.journey__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 0;
  margin-top: auto;
  padding-top: 1.15rem;
}
/* The primary CTA stretches over the whole card; later siblings stay clickable */
.journey__go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.journey__foot > * { position: relative; z-index: 1; }

/* Journey 1 is the flagship commercial path and is weighted accordingly:
   full width, tinted, a heavier top rule and a larger question. */
.journey--primary {
  background: linear-gradient(150deg, var(--accent-tint) 0%, var(--bg) 58%);
  border-color: rgba(9, 112, 180, 0.3);
  box-shadow: var(--shadow-md);
}
.journey--primary::before { height: 6px; }
.journey--primary .journey__q { font-size: clamp(1.45rem, 1.12rem + 1.05vw, 2.05rem); }
.journey--primary:hover { border-color: rgba(9, 112, 180, 0.5); }
@media (min-width: 980px) {
  .journey--primary .journey__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .journey--primary .journey__list { margin-top: 0; }
}

.journey__flag {
  position: absolute;
  top: 6px;
  right: 0;
  padding: 0.35rem 0.9rem 0.4rem;
  border-radius: 0 0 0 12px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey--robo::before { background: linear-gradient(90deg, #ff9166, var(--robo)); }
.journey--robo .journey__label { color: var(--robo-deep); }
.journey--robo .journey__icon { background: var(--robo-tint); color: var(--robo-deep); }
.journey--robo .journey__list li::before { background: var(--robo); }
.journey--robo:hover { border-color: rgba(242, 84, 27, 0.4); }

/* Investments keeps the blue call to action — grey is the atmosphere, blue is
   still the brand — so only the quieter parts of the card carry the steel. */
.journey--invest::before { background: linear-gradient(90deg, #93a0b2, var(--steel)); }
.journey--invest .journey__label { color: var(--steel-deep); }
.journey--invest .journey__icon { background: var(--steel-tint); color: var(--steel-deep); }
.journey--invest .journey__list li::before { background: var(--steel); }
.journey--invest:hover { border-color: rgba(90, 100, 116, 0.45); }

/* Page header (interior pages) */
.page-head {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: 1.25rem; }
.page-head--robo {
  background:
    radial-gradient(70% 120% at 85% 0%, var(--robo-tint) 0%, transparent 60%),
    linear-gradient(180deg, #fdf9f7 0%, var(--bg) 100%);
}

/* Robotics & Automation: the engineering world. A faint drafting grid, masked
   so it fades out before it reaches the copy, plus the core blue. */
.page-head--tech {
  background:
    radial-gradient(65% 120% at 88% 0%, var(--accent-tint) 0%, transparent 62%),
    linear-gradient(180deg, #f7fafd 0%, var(--bg) 100%);
}
.page-head--tech::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(9, 112, 180, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 112, 180, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 100% at 85% 0%, #000 10%, transparent 75%);
  pointer-events: none;
}

/* Investments: soft architectural grey against the blue. No grid — this journey
   is meant to feel like paper and daylight rather than a drawing board. */
.page-head--invest {
  background:
    radial-gradient(70% 120% at 88% 0%, var(--steel-tint) 0%, transparent 65%),
    linear-gradient(180deg, #f7f8fb 0%, var(--bg) 100%);
}
.page-head--invest .eyebrow { color: var(--steel); }

/* A page head that carries an image beside its copy. The text column keeps the
   reading measure; the figure takes the remainder and drops below on narrow
   screens, where it is the first thing scrolled past rather than a sidebar. */
.page-head__split { display: grid; gap: clamp(1.75rem, 4vw, 3.25rem); }
@media (min-width: 900px) {
  .page-head__split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
  }
}
.page-head__split > * { position: relative; }
.page-head__split h1 { max-width: 14ch; }

/* Marquee-ish portfolio strip */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 700px) { .logo-strip { grid-template-columns: repeat(4, 1fr); } }
.logo-strip__item {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  padding: 1.6rem 1rem;
  background: var(--bg);
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  transition: background var(--t-fast);
}
.logo-strip__item:hover { background: var(--bg-soft); color: var(--ink); }
.logo-strip__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
.logo-strip__note { font-size: var(--fs-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* RoboHouse sub-brand lockup */
.robo-lockup {
  width: min(100%, 370px);
  height: auto;
  color: var(--robo);
  margin-bottom: 1.5rem;
}
.robo-lockup .rl-sub { fill: var(--ink); }

/* Anchor targets clear the sticky header */
[id] { scroll-margin-top: 6rem; }

/* Article */
.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  padding-bottom: 1.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-mute);
}
.article__body { font-size: 1.09rem; line-height: 1.72; }
.article__body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6em;
  line-height: 0.82;
  font-weight: 600;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent);
}
.pullquote {
  margin: 2.5rem 0;
  padding: 1.75rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* Contact rows */
.contact-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  transition: background var(--t-fast);
}
.contact-list a:hover { background: var(--bg-soft); color: var(--ink); }
.contact-list svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.contact-list .contact-list__label { font-weight: 600; }
.contact-list .contact-list__value { margin-left: auto; min-width: 0; overflow-wrap: anywhere; color: var(--ink-mute); font-size: var(--fs-small); text-align: right; }
.split > * { min-width: 0; }

/* Ask-us panel — used where a number is deliberately not published and the
   honest answer is a conversation rather than a figure. */
.ask {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3.2vw, 2.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
@media (min-width: 780px) {
  .ask { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 2.5rem; }
}
.ask h2, .ask h3 { margin-bottom: 0.5rem; }
.ask p { color: var(--ink-soft); }
.ask__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.ask--robo {
  border-color: rgba(242, 84, 27, 0.3);
  background: linear-gradient(145deg, var(--robo-tint) 0%, var(--bg) 62%);
}

/* --------------------------------------------------------------- 10 Footer */
.site-footer {
  background: var(--deep);
  color: #b9c2d4;
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer a { color: #b9c2d4; text-decoration: none; transition: color var(--t-fast); }
.site-footer a:hover { color: #fff; }
.footer__top {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 780px) { .footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.footer__brand .logo { color: #fff; }
.footer__brand .logo:hover { opacity: 0.8; }
/* Footer sits on --deep, so it uses the inverted logo variant (white wordmark). */
.footer__brand .logo img { height: 64px; }
.footer__mission { margin-top: 1.25rem; max-width: 38ch; font-size: var(--fs-small); line-height: 1.6; }
.footer__cols { display: grid; gap: 2rem; }
@media (min-width: 520px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__cols h2 {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer__cols li { margin-bottom: 0.6rem; font-size: var(--fs-small); }
.socials { display: flex; gap: 0.6rem; margin-top: 1.75rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.socials a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.35); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom p { margin: 0; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: var(--fs-small);
  color: #8d97ab;
}

/* ------------------------------------------------ 11 Motion & utilities */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

.center { text-align: center; }
.center .lead, .center .section-head { margin-inline: auto; }
.mt-lg { margin-top: clamp(2rem, 4vw, 3rem); }
.mt-sm { margin-top: 1rem; }
.mb-lg { margin-bottom: clamp(2rem, 4vw, 3rem); }
.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;
}

/* ============================================ 12 Engineering figure
   A framed image of hardware. The frame is locked to the image's aspect ratio,
   which each figure sets inline as --ratio.
   ---------------------------------------------------------------------- */
.techfig { margin: 0; }
.techfig__frame {
  position: relative;
  aspect-ratio: var(--ratio);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.techfig__frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Macro strip — a row of close-up hardware details. Deliberately square and
   uniform so the row reads as one specimen sheet rather than four pictures. */
.macrostrip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1rem);
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}
@media (min-width: 760px) { .macrostrip { grid-template-columns: repeat(4, 1fr); } }
.macrostrip figure { position: relative; margin: 0; }
.macrostrip img {
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

/* ------------------------------------------- Investments journey accents */
.eyebrow--invest { color: var(--steel); }
.photo--invest { background: var(--steel-tint); border-color: var(--steel-line); }

/* Numbers as design material: a hairline above each figure, a large numeral
   set in lining tabular digits, and a short label under it. */
.stat { border-top: 1px solid var(--line); padding-top: 1rem; }
.stat__value { font-variant-numeric: tabular-nums lining-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  body { color: #000; }
  .js .reveal { opacity: 1; transform: none; }
  .stat, .card, .profile, .logo-strip__item, figure, blockquote, .deflist > div { break-inside: avoid; }
  h1, h2, h3, .eyebrow, .section-head { break-after: avoid; }
}
