/* Synthiq site styles. Tokens follow specs/synthiq-site/design.md; no frameworks. */

/* ---------- Fonts (self-hosted, latin subset, SIL OFL 1.1: see fonts/OFL.txt) ---------- */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/sora-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/sora-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/manrope-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/manrope-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/manrope-latin-700.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #06111C;
  --surface: #0C1C2C;
  --surface-2: #11283C;
  --line: #1D3A52;
  --ink: #E8F3F6;
  --muted: #9AB2C1;
  --accent: #19D3B5;
  --on-accent: #04121C;
  --navy: #0B3A66;

  --accent-soft: rgba(25, 211, 181, 0.12);
  --glow: 0 0 0 1px rgba(25, 211, 181, 0.35), 0 12px 40px -12px rgba(25, 211, 181, 0.35);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
::selection {
  background: var(--accent);
  color: var(--on-accent);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
}
h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  text-wrap: pretty;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}

/* Section label rendered as "// SECTION" in monospace. */
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "// ";
  opacity: 0.7;
}

/* Large teal figures (stats, numbered points). */
.figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}
.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;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
:focus:not(:focus-visible) {
  outline: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section-y);
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head .lead {
  margin-top: 1rem;
}
.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}
.section-head.is-center .lead {
  margin-inline: auto;
}
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (min-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stack > * + * {
  margin-top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.975rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease),
    box-shadow 200ms var(--ease), transform 200ms var(--ease), color 200ms var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  box-shadow: var(--glow);
}
.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-secondary:hover {
  background: var(--accent-soft);
}
.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(11, 58, 102, 0.45), transparent 60%),
    var(--surface);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.card:hover,
.card:focus-within {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.card p {
  color: var(--muted);
}
.card-raised {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(11, 58, 102, 0.55), transparent 60%),
    var(--surface-2);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon img,
.card-icon svg {
  width: 26px;
  height: 26px;
}

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.chip-accent {
  border-color: rgba(25, 211, 181, 0.4);
  background: var(--accent-soft);
  color: var(--accent);
}
button.chip {
  min-height: 40px;
  cursor: pointer;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
button.chip:hover {
  border-color: var(--accent);
}
button.chip[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

.card-link {
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.card-link::after {
  content: " \2192";
}
.card-link:hover {
  text-decoration: underline;
}

/* ---------- Home: split hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}
.hero-copy .lead {
  margin-block: 1.25rem 2rem;
}
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(60% 60% at 50% 45%, rgb(25 211 181 / 0.18), transparent 70%),
    url("../images/iso-grid.svg") center / 112px 64px,
    linear-gradient(160deg, var(--surface-2), var(--bg));
}
.hero-visual {
  overflow: hidden;
  isolation: isolate;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(200deg, rgb(6 17 28 / 0.15) 30%, rgb(6 17 28 / 0.85));
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.hero-mark {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: clamp(64px, 14%, 96px);
}
.hero-mark img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.35)) drop-shadow(0 0 24px rgb(25 211 181 / 0.25));
}
.hero-chip {
  position: absolute;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgb(12 28 44 / 0.9);
  color: var(--muted);
  font-size: 0.8rem;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}
.hero-chip-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.hero-chip-1 {
  top: 8%;
  left: 6%;
}
.hero-chip-2 {
  top: 42%;
  right: 5%;
}
.hero-chip-3 {
  bottom: 8%;
  left: 12%;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-visual {
    min-height: 480px;
  }
}

/* ---------- Photos ---------- */
picture {
  display: block;
}
.photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
  background: var(--surface-2);
}

/* ---------- Metrics strip ---------- */
.metrics {
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.metrics-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.metric {
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-left: 1px solid var(--line);
}
.metric:nth-child(odd) {
  border-left: 0;
}
.metric dt {
  color: var(--muted);
  font-size: 0.9rem;
}
.metric dd {
  margin: 0;
}
@media (min-width: 992px) {
  .metrics-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .metric:nth-child(odd) {
    border-left: 1px solid var(--line);
  }
  .metric:first-child {
    border-left: 0;
  }
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: 1.4fr 1fr;
  }
  .bento-main {
    grid-row: span 2;
  }
}

/* ---------- Numbered points ---------- */
.why-list {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.why-item {
  padding-top: 1.25rem;
  border-top: 2px solid var(--line);
}
.why-item p {
  margin-top: 0.75rem;
  color: var(--muted);
}
.why-num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}
@media (min-width: 992px) {
  .why-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stack-chips .chip {
  padding: 0.5rem 1.1rem;
  font-size: 0.95rem;
}

/* ---------- Inner page header ---------- */
.page-header {
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 120% at 85% 0%, rgb(11 58 102 / 0.6), transparent 70%),
    url("../images/iso-grid.svg") right top / 112px 64px;
}
.page-header h1 {
  max-width: 22ch;
}
.page-header .lead {
  margin-top: 1.25rem;
}

/* ---------- About: story + timeline ---------- */
.story {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.story-body {
  color: var(--muted);
}
.story-photo {
  margin-top: 1.75rem;
  aspect-ratio: 3 / 2;
}
@media (min-width: 992px) {
  .story {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
/* ol.timeline (not .timeline) so the padding beats the ol[class] reset. */
ol.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0 0 0 2.75rem;
  list-style: none;
}
/* Line through the centre of the 2rem number circles. */
ol.timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: calc(1rem - 1px);
  width: 2px;
  background: linear-gradient(var(--accent), var(--line));
}
.timeline-step {
  position: relative;
}
.timeline-step p {
  margin-top: 0.5rem;
  color: var(--muted);
}
.timeline-num {
  position: absolute;
  z-index: 1;
  top: -0.15rem;
  left: -2.75rem;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}
@media (min-width: 992px) {
  ol.timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 3.5rem 0 0;
  }
  /* From the centre of circle 1 to the centre of circle 4: columns are (100% - 3 gaps) / 4. */
  ol.timeline::before {
    top: calc(1rem - 1px);
    bottom: auto;
    left: 1rem;
    right: calc((100% - 6rem) / 4 - 1rem);
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--line));
  }
  .timeline-num {
    top: -3.5rem;
    left: 0;
  }
}

/* ---------- Services ---------- */
.service-card {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.ticks {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.ticks li {
  position: relative;
  padding-left: 1.5rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0.2rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}
.solution {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.solution + .solution {
  margin-top: clamp(3rem, 7vw, 5rem);
}
.solution-copy > * + * {
  margin-top: 1rem;
}
.solution-copy p {
  color: var(--muted);
}
.solution-art {
  aspect-ratio: 10 / 7;
}
@media (min-width: 992px) {
  .solution {
    grid-template-columns: 1fr 1fr;
  }
  .solution-flip .solution-copy {
    order: 2;
  }
}

/* ---------- Portfolio ---------- */
.featured {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}
.featured-art {
  aspect-ratio: 3 / 2;
}
.case-art {
  aspect-ratio: 8 / 5;
  border-radius: var(--radius-sm);
}
.featured-copy > * + * {
  margin-top: 1rem;
}
.result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}
.result-list dt {
  color: var(--muted);
  font-size: 0.85rem;
}
.result-list dd {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
@media (min-width: 992px) {
  .featured {
    grid-template-columns: 1fr 1.2fr;
  }
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.filter-status {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.case-card[hidden] {
  display: none;
}
.case-field {
  align-self: flex-start;
}
.card .case-result {
  color: var(--ink);
}
.case-result strong {
  color: var(--accent);
  font-family: var(--font-display);
}

/* ---------- Contact ---------- */
.h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
}
.contact-layout {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
.contact-side > * + * {
  margin-top: 2rem;
}
.contact-photo {
  aspect-ratio: 4 / 3;
}
.contact-fallback {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
}
.steps {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  color: var(--muted);
}
.steps li {
  position: relative;
  padding-left: 2.75rem;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}
.steps strong {
  display: block;
  color: var(--ink);
}
.contact-form {
  gap: 1.25rem;
}
.form-note {
  margin: 0;
  font-size: 0.9rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}
.field [aria-invalid="true"] {
  border-color: #ff8a8a;
}
.field-error {
  margin: 0;
  color: #ff8a8a;
  font-size: 0.9rem;
}
.field-error:empty {
  display: none;
}
.form-status {
  margin: 0;
  color: var(--accent);
}
.form-status:empty {
  display: none;
}
.form-status[data-state="pending"] {
  color: var(--ink);
}
@media (min-width: 992px) {
  .contact-layout {
    grid-template-columns: 0.8fr 1.2fr;
  }
}

/* ---------- 404 ---------- */
.not-found {
  min-height: 60vh;
}
.not-found-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}
.not-found .lead {
  margin-block: 1rem 2rem;
}

/* ---------- CTA band ---------- */
.cta-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3rem);
  border: 1px solid rgb(25 211 181 / 0.35);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(25 211 181 / 0.14), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--surface));
}
.cta-panel .lead {
  margin-top: 0.75rem;
}
@media (min-width: 992px) {
  .cta-panel {
    grid-template-columns: 1fr auto;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would make it the
   containing block for the fixed mobile panel, shrinking the overlay to the header's height. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(6 17 28 / 0.86);
  backdrop-filter: blur(12px);
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.brand picture {
  position: relative;
  display: inline-flex;
}
/* Soft teal halo behind the mark so the dark navy shapes read on --bg. */
.brand picture::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(25 211 181 / 0.22), transparent 70%);
  pointer-events: none;
}
.brand-mark,
.footer-logo img {
  position: relative;
  filter: drop-shadow(0 0 1px rgb(255 255 255 / 0.35)) drop-shadow(0 0 24px rgb(25 211 181 / 0.25));
}
.brand-mark {
  width: 40px;
  height: 40px;
}
.main-nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a,
.mobile-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms var(--ease);
}
.nav-list a:hover,
.mobile-nav a:hover,
.nav-list a.is-active,
.mobile-nav a.is-active {
  color: var(--ink);
}
.nav-list a.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}
.menu-toggle,
.menu-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.menu-toggle-bars {
  position: relative;
  transition: background-color 150ms var(--ease);
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  transition: top 200ms var(--ease), transform 200ms var(--ease);
}
.menu-toggle-bars::before {
  top: -6px;
}
.menu-toggle-bars::after {
  top: 6px;
}
/* Open: the outer bars meet in the middle and cross into an X. */
.menu-toggle[aria-expanded="true"] .menu-toggle-bars {
  background-color: transparent;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}
.menu-close {
  font-size: 1.6rem;
  line-height: 1;
}
/* Mobile panel: only exists as an overlay when JS can open and close it. */
.mobile-panel {
  display: none;
}

@media (max-width: 991.98px) {
  .header-cta {
    display: none;
  }
  /* Without JS the main nav simply wraps below the brand. */
  .header-inner {
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .js .header-inner {
    flex-wrap: nowrap;
    padding-block: 0;
  }
  .main-nav {
    margin-left: 0;
    width: 100%;
  }
  .js .main-nav {
    display: none;
  }
  .js .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .js .menu-close {
    display: inline-flex;
  }
  /* Always laid out as a full-viewport overlay; closed it is invisible and inert to clicks and
     focus (visibility flips only after the fade-out finishes). */
  .js .mobile-panel {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 24px 32px;
    overflow-y: auto;
    background: var(--bg);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 240ms var(--ease), transform 240ms var(--ease), visibility 0s linear 240ms;
  }
  .js .mobile-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
  }
  .js .mobile-nav li {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 240ms var(--ease), transform 240ms var(--ease);
  }
  .js .mobile-panel.is-open .mobile-nav li {
    opacity: 1;
    transform: none;
  }
  .js .mobile-panel.is-open .mobile-nav li:nth-child(1) { transition-delay: 60ms; }
  .js .mobile-panel.is-open .mobile-nav li:nth-child(2) { transition-delay: 100ms; }
  .js .mobile-panel.is-open .mobile-nav li:nth-child(3) { transition-delay: 140ms; }
  .js .mobile-panel.is-open .mobile-nav li:nth-child(4) { transition-delay: 180ms; }
  .js .mobile-panel.is-open .mobile-nav li:nth-child(5) { transition-delay: 220ms; }
  /* Page behind the open menu stays put. */
  html.menu-open {
    overflow: hidden;
  }
  .mobile-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-nav {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.4rem;
  }
  .mobile-cta {
    align-self: flex-start;
  }
}

/* ---------- Contact items ---------- */
.contact-items {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.contact-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-items a {
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  gap: 40px;
}
.footer-logo {
  display: inline-block;
}
.footer-logo img {
  width: 91px;
  height: 80px;
}
.footer-tagline {
  max-width: 34ch;
  margin-top: 16px;
  color: var(--muted);
}
.footer-title {
  margin: 0 0 14px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a,
.footer-social a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover,
.footer-social a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-copy {
  margin: 0;
}
.footer-social {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
  }
}

/* ---------- Motion ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Hero entrance. fill-mode backwards keeps each piece hidden only until its turn, then hands
   control back to the normal styles so hover transforms still work. */
.js .hero-copy > *,
.js .hero-visual {
  animation: rise 640ms var(--ease) backwards;
}
.js .hero-copy > :nth-child(2) { animation-delay: 90ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 180ms; }
.js .hero-copy > :nth-child(4) { animation-delay: 270ms; }
.js .hero-visual { animation-delay: 200ms; }
.js .hero-chip {
  animation: float 6s ease-in-out infinite;
}
.js .hero-chip-2 { animation-delay: -2s; }
.js .hero-chip-3 { animation-delay: -4s; }

/* Hover: cards lift, their photos zoom inside a clipped frame. */
.card:hover {
  transform: translateY(-4px);
}
.card picture {
  overflow: hidden;
  border-radius: calc(var(--radius) * 1.5);
}
.card .photo {
  transition: transform 500ms var(--ease);
}
.card:hover .photo {
  transform: scale(1.04);
}

/* ---------- Reveal (hidden state only when JS runs, see 5.6) ---------- */
/* --reveal-delay is set by initReveal so siblings in a row appear one after another. */
.js .reveal {
  opacity: 0;
}
.js .reveal.is-visible {
  opacity: 1;
  animation: rise 520ms var(--ease) var(--reveal-delay, 0ms) backwards;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal,
  .js .hero-copy > *,
  .js .hero-visual,
  .js .hero-chip {
    opacity: 1;
    animation: none;
  }
  .js .mobile-panel,
  .js .mobile-nav li {
    transform: none;
  }
  .btn:hover,
  .card:hover,
  .card:hover .photo {
    transform: none;
  }
}
