/* Ralphael Roberts — virtual CV
   Palette: deep charcoal, crisp white, restrained teal. System fonts only. */

:root {
  --ink: #15191c;
  --ink-2: #1c2226;
  --ink-3: #242b30;
  --line-dark: #2e373d;
  --paper: #ffffff;
  --paper-2: #f4f6f7;
  --line: #dfe5e7;
  --text: #1a2024;
  --muted: #55636a;
  --muted-dark: #aeb9bf;
  --teal: #0b7470;        /* text-safe on white (5.3:1) */
  --teal-bright: #5fd3cb; /* accent on charcoal */
  --teal-line: #0f8a84;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 4px;
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, .button:focus-visible, summary:focus-visible, [tabindex="-1"]:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 4px; }
.dark a:focus-visible, .dark summary:focus-visible, .dark [tabindex="-1"]:focus-visible { outline-color: #fff; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; border: 1px solid var(--line); }
.dark code { background: var(--ink-3); border-color: var(--line-dark); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -200px; background: #fff; color: var(--ink); padding: .8rem 1rem; z-index: 50; border: 1px solid var(--line); }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; font-size: 12px; }

/* ---------- Type ---------- */
.eyebrow { color: var(--teal); font-weight: 600; margin-bottom: 18px; }
.dark .eyebrow { color: var(--teal-bright); }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 650; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -.02em; font-weight: 650; }
h4 { font-size: 1.1rem; line-height: 1.3; font-weight: 650; margin-bottom: 10px; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 46em; margin-top: 18px; }
.lede.small { font-size: 1rem; margin-top: 10px; margin-bottom: 26px; }
.dark .lede { color: var(--muted-dark); }
.note { font-size: 14px; color: var(--muted); line-height: 1.55; }
.dark .note { color: var(--muted-dark); }
.dark .note a { color: var(--teal-bright); }
.sub-title { font-size: 1.1rem; letter-spacing: -.01em; }

/* ---------- Surfaces ---------- */
section { position: relative; }
.dark { background: var(--ink); color: #fff; }
.grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 72%);
}
.dark .wrap { position: relative; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; min-height: 48px;
  font-size: 15px; font-weight: 600; text-decoration: none; letter-spacing: .01em;
  border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.button:hover { background: var(--teal-line); border-color: var(--teal-line); }
.button:active { transform: translateY(1px); }
.button.small { padding: 10px 16px; min-height: 40px; font-size: 14px; }
.button.light { background: #fff; color: var(--ink); border-color: #fff; }
.button.light:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--ink); }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.button.ghost:hover { border-color: var(--teal-bright); color: var(--teal-bright); background: rgba(95,211,203,.06); }
.text-link {
  display: inline-block; font-weight: 600; font-size: 15px; color: var(--teal);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.text-link:hover { color: var(--ink); }
.dark .text-link { color: var(--teal-bright); }
.dark .text-link:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: var(--header-h);
  padding: 12px var(--gutter);
  background: rgba(21,25,28,.88); color: #fff;
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .04em;
  border: 1px solid var(--teal-bright); color: var(--teal-bright); border-radius: var(--radius);
}
.brand-name { font-weight: 650; letter-spacing: -.01em; font-size: 16px; }
.header-cta { border-color: rgba(255,255,255,.3); background: transparent; }
.header-cta:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--ink); }

/* ---------- Profile (entry point) ---------- */
.profile { padding: clamp(40px, 6vh, 72px) 0 clamp(28px, 4vh, 48px); overflow: hidden; }
.profile-stage { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 28px; }
.identity { text-align: center; max-width: 36em; display: flex; flex-direction: column; align-items: center; }
.portrait {
  width: clamp(100px, 26vw, 130px); aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: var(--ink-3);
  border: 1px solid var(--line-dark); padding: 5px;
  box-shadow: 0 24px 48px -32px rgba(0,0,0,.8);
  margin-bottom: 26px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 3px; filter: saturate(.92); }
.identity h1 { margin-bottom: 14px; }
.role { color: var(--teal-bright); font-weight: 600; margin-bottom: 18px; }
.tagline { color: var(--muted-dark); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 28em; line-height: 1.5; }
.tagline::before { content: ""; display: block; width: 40px; height: 2px; background: var(--teal-bright); margin: 0 auto 16px; }
.cv-access { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.cv-download { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-dark); text-decoration: none; border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.cv-download:hover { color: var(--teal-bright); border-color: var(--teal-bright); }
.profile-hint { text-align: center; color: var(--muted); margin-top: 28px; letter-spacing: .12em; font-size: 11px; position: relative; }

/* Orbit buttons — stable, floating controls with subtle depth */
.orbit { display: grid; gap: 12px; width: 100%; }
.orb {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; text-decoration: none; text-align: center;
  color: #fff; background: var(--ink-2);
  border: 1px solid var(--line-dark); border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 14px 28px -18px rgba(0,0,0,.9);
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.orb::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-dark); flex: none; transition: background .2s var(--ease); }
.orb:hover { border-color: var(--teal-bright); background: var(--ink-3); transform: translateY(-1px); }
.orb:hover::before { background: var(--teal-bright); }
.orb[aria-current="page"] { border-color: var(--teal-bright); color: var(--teal-bright); }
.orb[aria-current="page"]::before { background: var(--teal-bright); }
.orb-primary { background: #fff; color: var(--ink); border-color: #fff; min-width: 180px; }
.orb-primary::before { background: var(--teal); }
.orb-primary:hover { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--ink); }

/* Mobile / compact: one two-column grid of labelled buttons beneath the identity */
.orbits { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; width: 100%; max-width: 520px; }
.orbit-left, .orbit-right { display: contents; }

/* Spacious desktop: buttons flank the centred identity in a balanced arc */
@media (min-width: 1024px) and (min-height: 700px) {
  .profile { padding-top: clamp(48px, 7vh, 88px); padding-bottom: clamp(40px, 6vh, 64px); }
  .profile-stage { grid-template-columns: minmax(200px, 1fr) minmax(0, 560px) minmax(200px, 1fr); align-items: center; gap: clamp(24px, 3vw, 56px); }
  .orbits { display: contents; }
  .orbit-left, .orbit-right { display: grid; grid-template-columns: minmax(0, 220px); gap: 22px; align-content: center; }
  .orbit-left { order: -1; justify-content: end; }
  .orbit-right { justify-content: start; }
  .orb { width: 100%; min-height: 52px; white-space: nowrap; }
  /* gentle arc, mirrored: the outer buttons step away from the centre, the middle pair sits closest */
  .orbit-left .orb:nth-child(1), .orbit-left .orb:nth-child(4) { transform: translateX(-28px); }
  .orbit-right .orb:nth-child(1), .orbit-right .orb:nth-child(4) { transform: translateX(28px); }
  .orbit-left .orb:nth-child(1):hover, .orbit-left .orb:nth-child(4):hover { transform: translateX(-28px) translateY(-1px); }
  .orbit-right .orb:nth-child(1):hover, .orbit-right .orb:nth-child(4):hover { transform: translateX(28px) translateY(-1px); }
  .portrait { width: clamp(140px, 12vw, 180px); }
}

/* Short screens: tighten the profile so the name and options stay close together */
@media (max-height: 700px) {
  .profile { padding-top: 28px; padding-bottom: 24px; }
  .portrait { width: 120px; margin-bottom: 18px; }
  .identity h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 10px; }
  .cv-access { margin-top: 20px; }
  .profile-stage { gap: 22px; }
  .profile-hint { margin-top: 20px; }
}

/* ---------- Panels ---------- */
.panels { position: relative; }
.panel { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 8vw, 104px); border-top: 1px solid var(--line); background: var(--paper); }
.panel.dark { border-top-color: var(--line-dark); background: var(--ink); }
.js .panel[hidden] { display: none; }
.js .panel { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel-head { margin-bottom: clamp(32px, 4.5vw, 56px); }
.back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 26px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  color: var(--muted); text-decoration: none; padding: 8px 12px 8px 0; border-radius: var(--radius);
  transition: color .2s var(--ease);
}
.back:hover { color: var(--teal); }
.dark .back { color: var(--muted-dark); }
.dark .back:hover { color: var(--teal-bright); }
.no-js .back { display: none; }
.no-js .panel { border-top: 1px solid var(--line); }

/* ---------- Work / projects ---------- */
.projects { display: grid; gap: clamp(22px, 3vw, 32px); }
.project { border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 1px 0 rgba(21,25,28,.04), 0 24px 48px -36px rgba(21,25,28,.25); overflow: hidden; }
.project-head { display: flex; flex-wrap: wrap; gap: 20px 28px; justify-content: space-between; align-items: flex-end; padding: clamp(24px, 3.5vw, 36px) clamp(24px, 3.5vw, 40px) 20px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.project-head .eyebrow { margin-bottom: 12px; }
.project-head h3 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); letter-spacing: -.03em; }
.project-sub { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.status { color: var(--text); background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 2px 7px; letter-spacing: .04em; }
.project-thumb { width: 72px; height: auto; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.summary { padding: clamp(22px, 3vw, 30px) clamp(24px, 3.5vw, 40px) 0; font-size: 1.05rem; line-height: 1.6; max-width: 54em; }
.project-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; padding: 22px clamp(24px, 3.5vw, 40px) clamp(22px, 3vw, 30px); }
.project-meta dt { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin-bottom: 6px; }
.project-meta dd { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; padding: 6px 10px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--muted); }

/* Expandable detail */
.more { border-top: 1px solid var(--line); }
.more summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 18px clamp(24px, 3.5vw, 40px); font-weight: 600; font-size: 15px; color: var(--teal);
  background: #fff; transition: background .2s var(--ease);
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; font-family: var(--mono); font-size: 15px; line-height: 1; color: var(--teal); flex: none; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.more[open] summary::before { content: "−"; border-color: var(--teal); }
.more summary:hover { background: var(--paper-2); }
.more-body { border-top: 1px solid var(--line); }
.more-body > .plain-list { padding: clamp(22px, 3vw, 30px) clamp(24px, 3.5vw, 40px) 0; margin: 0; }
.more-body > .plain-list + .text-link, .more-body > .plain-list + .note { margin: 20px clamp(24px, 3.5vw, 40px) clamp(22px, 3vw, 30px); }
.more-body > .plain-list + .note { display: block; }
.more-body > .text-link { margin: 0 clamp(24px, 3.5vw, 40px) clamp(22px, 3vw, 30px); }

.case-cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.case-col { padding: clamp(24px, 3.5vw, 36px); border-left: 1px solid var(--line); }
.case-col:first-child { border-left: 0; }
.case-col p { color: var(--muted); font-size: 15.5px; }
.num { display: block; color: var(--teal); margin-bottom: 14px; }

.workflow { padding: clamp(28px, 4vw, 40px); border-top: 1px solid var(--line); background: var(--ink); color: #fff; position: relative; }
.workflow-cap { font-size: 14px; color: var(--muted-dark); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.workflow-cap .mono { color: var(--teal-bright); border: 1px solid rgba(95,211,203,.4); padding: 4px 8px; border-radius: 3px; }
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: step; }
.flow li { position: relative; padding: 18px 16px 16px; border: 1px solid var(--line-dark); border-radius: 4px; background: var(--ink-2); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.flow li:hover { border-color: var(--teal-bright); transform: translateY(-2px); }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -11px; width: 10px; height: 1px; background: var(--teal-bright); }
.flow li:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 3px); right: -6px; width: 6px; height: 6px; border-top: 1px solid var(--teal-bright); border-right: 1px solid var(--teal-bright); transform: rotate(45deg); z-index: 1; }
.step { display: block; color: var(--teal-bright); margin-bottom: 12px; }
.flow strong { display: block; font-size: 15px; letter-spacing: -.01em; margin-bottom: 6px; }
.flow p { font-size: 13px; color: var(--muted-dark); line-height: 1.45; }

.case-foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; padding: 22px clamp(24px, 3.5vw, 40px); border-top: 1px solid var(--line); }
.case-foot .note { max-width: 46em; }

.plain-list { margin: 18px 0 24px; display: grid; gap: 10px; }
.plain-list li { padding-left: 18px; position: relative; color: var(--text); font-size: 15.5px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1px; background: var(--teal); }

/* ---------- Capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; }
.cap { background: var(--ink); padding: clamp(26px, 3.5vw, 40px); transition: background .25s var(--ease); }
.cap:hover { background: var(--ink-2); }
.cap .num { color: var(--teal-bright); }
.cap h3 { margin-bottom: 18px; font-size: 1.3rem; }
.evidence { display: grid; gap: 12px; }
.evidence li { position: relative; padding-left: 22px; color: var(--muted-dark); font-size: 15px; line-height: 1.5; }
.evidence li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border: 1px solid var(--teal-bright); border-radius: 2px; }

/* ---------- Background ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px; margin-bottom: clamp(36px, 5vw, 64px); }
.fact { padding: 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact span { display: block; color: var(--teal); margin-bottom: 10px; }
.fact strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; margin-bottom: 4px; }
.fact p { color: var(--muted); font-size: 14px; line-height: 1.45; }

.bg-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.timeline { border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.when { color: var(--teal); padding-top: 5px; }
.timeline h4 { font-size: 1.2rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; margin: 0; }
.org { font-weight: 500; font-size: .9rem; color: var(--muted); letter-spacing: 0; }
.timeline p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.timeline .link-line { color: var(--teal); font-size: 14px; font-weight: 500; }
.bg-main > .note { margin-top: 24px; }

.bg-side { position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: 6px; padding: clamp(22px, 3vw, 30px); background: var(--paper-2); display: grid; gap: 26px; }
.side-block .eyebrow { margin-bottom: 12px; }
.quals { display: grid; gap: 14px; }
.quals li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--teal-line); }
.quals.compact { gap: 8px; }
.quals strong { font-weight: 600; font-size: 15px; letter-spacing: -.01em; line-height: 1.35; }
.quals span { color: var(--muted); font-size: 13.5px; }
.side-block .note { margin-top: 12px; }

/* ---------- Currently ---------- */
.now-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: 6px; overflow: hidden; margin-bottom: 28px; }
.now { grid-column: span 2; background: var(--ink); padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px; transition: background .25s var(--ease); }
.now:nth-child(n+4) { grid-column: span 3; }
.now:hover { background: var(--ink-2); }
.now h3 { font-size: 1.2rem; }
.now p { color: var(--muted-dark); font-size: 15px; flex: 1; }
.status-pill { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-bright); border: 1px solid rgba(95,211,203,.4); border-radius: 3px; padding: 4px 8px; }

/* ---------- Hobbies & interests ---------- */
.interests { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }
.interest { border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 34px); background: #fff; box-shadow: 0 1px 0 rgba(21,25,28,.04), 0 24px 48px -36px rgba(21,25,28,.2); }
.interest h3 { font-size: 1.3rem; margin-bottom: 12px; }
.interest p { color: var(--muted); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .9fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.contact-grid .panel-head { margin-bottom: 0; }
.email { display: inline-block; margin-top: 28px; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; color: var(--teal-bright); text-decoration: none; border-bottom: 1px solid rgba(95,211,203,.4); padding-bottom: 4px; word-break: break-all; }
.email:hover { color: #fff; border-color: #fff; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); text-transform: none; }
.hero-meta dt { color: var(--teal-bright); text-transform: uppercase; font-size: 11px; letter-spacing: .1em; margin-bottom: 6px; }
.hero-meta dd { margin: 0; color: #fff; font-size: 13px; letter-spacing: .02em; }
.contact-actions { display: grid; gap: 12px; }
.contact-actions .button { width: 100%; }
.contact-actions .note { margin-top: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--line-dark); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; padding-top: 26px; padding-bottom: 26px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { text-decoration: none; color: var(--muted-dark); }
.site-footer a:hover { color: #fff; }
.site-footer .admin-link { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; align-self: center; }
.site-footer .admin-link:hover { opacity: 1; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .orb:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li:nth-child(3n)::after, .flow li:nth-child(3n)::before { display: none; }
  .bg-side { position: static; }
  .now-list { grid-template-columns: repeat(2, 1fr); }
  .now, .now:nth-child(n+4) { grid-column: span 1; }
  .now:last-child { grid-column: span 2; }
}
@media (max-width: 860px) {
  .case-cols { grid-template-columns: 1fr; }
  .case-col { border-left: 0; border-top: 1px solid var(--line); }
  .case-col:first-child { border-top: 0; }
  .cap-grid { grid-template-columns: 1fr; }
  .bg-grid, .contact-grid, .interests { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-name { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact:nth-child(even) { border-left: 0; }
  .fact:nth-child(n+2) { border-top: 1px solid var(--line); }
  .flow { grid-template-columns: 1fr; gap: 8px; }
  .flow li::after, .flow li::before { display: none; }
  .flow li:not(:last-child) { margin-bottom: 6px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .when { padding-top: 0; }
  .case-foot { align-items: flex-start; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .now-list { grid-template-columns: 1fr; }
  .now, .now:nth-child(n+4), .now:last-child { grid-column: span 1; }
  .hero-meta { gap: 18px 32px; }
  .orb { padding: 14px 10px; gap: 8px; font-size: 14px; letter-spacing: 0; line-height: 1.25; }
  .project-head { align-items: flex-start; }
}
