/* =====================================================================
   Softromeda — public site design system
   Light, professional, production theme.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Tokens
   --------------------------------------------------------------------- */
:root {
  /* Brand — drawn from the four leaves of the mark */
  --brand-50:  #eef7fd;
  --brand-100: #d5ecfa;
  --brand-200: #a9d8f4;
  --brand-300: #6dbdea;
  --brand-400: #2f9cd9;
  --brand-500: #0e76bc;
  --brand-600: #0b5e9b;
  --brand-700: #0a4d7f;
  --brand-800: #0b3f68;

  --leaf-red:    #e0364a;
  --leaf-orange: #f2820f;
  --leaf-green:  #3f9c46;
  --leaf-blue:   var(--brand-500);

  /* Neutrals */
  --ink-900: #0c1728;
  --ink-800: #16263c;
  --ink-700: #27394f;
  --ink-600: #3d5169;
  --ink-500: #5b6f88;
  --ink-400: #7e90a6;
  --ink-300: #a8b6c6;

  --surface:    #ffffff;
  --surface-2:  #f7f9fc;
  --surface-3:  #eef3f8;
  --surface-inv:#0c1728;

  --line:      #e2e8f0;
  --line-soft: #eef2f7;
  --line-hard: #cbd5e1;

  /* Status */
  --ok-bg: #ecfdf3; --ok-fg: #05713b; --ok-line: #abefc6;
  --warn-bg: #fffaeb; --warn-fg: #b54708; --warn-line: #fedf89;
  --err-bg: #fef3f2; --err-fg: #b42318; --err-line: #fecdc9;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(12, 23, 40, .05);
  --shadow-sm: 0 1px 3px rgba(12, 23, 40, .07), 0 1px 2px rgba(12, 23, 40, .04);
  --shadow-md: 0 4px 12px -2px rgba(12, 23, 40, .08), 0 2px 6px -2px rgba(12, 23, 40, .04);
  --shadow-lg: 0 16px 32px -8px rgba(12, 23, 40, .12), 0 6px 12px -6px rgba(12, 23, 40, .06);
  --shadow-xl: 0 28px 56px -16px rgba(12, 23, 40, .18);

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --maxw: 1200px;
  --gutter: 24px;

  /* Type */
  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --t-fast: 140ms var(--ease);
  --t-base: 220ms var(--ease);

  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-600);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* The UA rule for [hidden] is display:none, but any author `display` (such as
   .project-card's flex) outranks it and leaves "hidden" elements on screen.
   Scripts toggle el.hidden to filter, so this has to win. */
[hidden] { display: none !important; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0 0 .5em;
  line-height: 1.18;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand-100); color: var(--brand-800); }

:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand-600); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 600; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------------------------------------------------------------------
   3. Layout primitives
   --------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 780px; }

.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-muted { background: var(--surface-2); }
.section-line { border-top: 1px solid var(--line-soft); }

.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Section headings ---------------------------------------------------- */
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lead { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px;
  background: var(--brand-400); border-radius: 2px;
}
.section-head.center .eyebrow { justify-content: center; }

.lead {
  font-size: 1.06rem;
  color: var(--ink-500);
  line-height: 1.7;
}
.lead-lg { font-size: 1.15rem; }

/* ---------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand-600);
  --btn-fg: #fff;
  --btn-line: var(--brand-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  font-family: var(--font-body);
  font-size: .94rem; font-weight: 600; line-height: 1.2;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast),
              color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.btn:hover { --btn-bg: var(--brand-700); --btn-line: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }

.btn-secondary {
  --btn-bg: var(--surface); --btn-fg: var(--ink-800); --btn-line: var(--line-hard);
}
.btn-secondary:hover {
  --btn-bg: var(--surface-2); --btn-line: var(--ink-300); color: var(--ink-900);
}

.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--brand-600); --btn-line: transparent;
  padding-inline: 8px;
}
.btn-ghost:hover { --btn-bg: var(--brand-50); --btn-line: transparent; color: var(--brand-700); }

.btn-inverse {
  --btn-bg: #fff; --btn-fg: var(--brand-700); --btn-line: #fff;
}
.btn-inverse:hover { --btn-bg: var(--brand-50); --btn-line: var(--brand-50); color: var(--brand-800); }

.btn-outline-inverse {
  --btn-bg: transparent; --btn-fg: #fff; --btn-line: rgba(255,255,255,.42);
}
.btn-outline-inverse:hover { --btn-bg: rgba(255,255,255,.12); --btn-line: rgba(255,255,255,.7); color: #fff; }

.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

.btn svg, .btn .icon { width: 16px; height: 16px; flex: none; }
.btn-lg svg { width: 17px; height: 17px; }
.btn-arrow:hover svg { transform: translateX(2px); }
.btn-arrow svg { transition: transform var(--t-fast); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text link with arrow ------------------------------------------------ */
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: .92rem;
  color: var(--brand-600);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------------
   5. Badges, chips, tags
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-3); color: var(--ink-600);
  border: 1px solid var(--line);
}
.badge-brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.badge-green { background: var(--ok-bg); color: var(--ok-fg); border-color: var(--ok-line); }
.badge-orange { background: var(--warn-bg); color: var(--warn-fg); border-color: var(--warn-line); }
.badge-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  font-size: .78rem; font-weight: 500;
  padding: 3px 10px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink-600);
  margin: 0;
}

/* Platform colour coding */
.platform-tag { font-family: var(--font-body); }
.platform-tag[data-platform="windows"] { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.platform-tag[data-platform="android"] { background: #ecfdf3; color: #05713b; border-color: #abefc6; }
.platform-tag[data-platform="web"]     { background: #fff5ec; color: #9a4b06; border-color: #fddcbc; }

/* ---------------------------------------------------------------------
   6. Header / navigation
   --------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.nav {
  display: flex; align-items: center; gap: 32px;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.16rem; font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink-900);
  line-height: 1;
}
.brand:hover .brand-name { color: var(--brand-600); }

.nav-menu {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto;
  list-style: none; padding: 0; margin-block: 0;
}
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: .93rem; font-weight: 500;
  color: var(--ink-600);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-menu a:hover { background: var(--surface-2); color: var(--ink-900); }
.nav-menu a.is-active { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer;
  color: var(--ink-800);
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 940px) {
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  /* .nav-menu carries the margin-left:auto on desktop; once it is hidden,
     nothing pushes the burger over, so it has to claim the space itself. */
  .nav-actions { margin-left: auto; }
  .nav-menu.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 20px;
    gap: 2px;
  }
  .nav-menu.is-open a { padding: 12px 14px; font-size: 1rem; }
  .nav-menu.is-open .nav-mobile-cta { display: block; margin-top: 10px; }
}
.nav-mobile-cta { display: none; }

/* ---------------------------------------------------------------------
   7. Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0 clamp(48px, 6vw, 88px);
  background:
    radial-gradient(900px 460px at 82% -8%, var(--brand-50) 0%, rgba(255,255,255,0) 70%),
    radial-gradient(700px 420px at 8% 8%, #f4f9ff 0%, rgba(255,255,255,0) 65%);
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(700px 400px at 70% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(700px 400px at 70% 0%, #000 0%, transparent 78%);
  pointer-events: none;
  opacity: .8;
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 20px; max-width: 15ch; }
.hero .lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.16rem); max-width: 56ch; margin-bottom: 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .86rem; color: var(--ink-500);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--leaf-green); flex: none; }

/* Hero visual card ---------------------------------------------------- */
.hero-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 28px;
}
.hero-panel-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.hero-panel-head img { width: 42px; height: 42px; }
.hero-panel-head strong {
  display: block; font-family: var(--font-display);
  font-size: 1.02rem; color: var(--ink-900); letter-spacing: -.02em;
}
.hero-panel-head span { font-size: .82rem; color: var(--ink-400); }

.hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
.hero-metric { background: var(--surface); padding: 18px 16px; }
.hero-metric b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em;
  color: var(--ink-900); line-height: 1.1;
}
.hero-metric span { font-size: .8rem; color: var(--ink-400); }

/* ---------------------------------------------------------------------
   8. Cards
   --------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.card-hover:hover {
  border-color: var(--line-hard);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Service card -------------------------------------------------------- */
.service-card { display: flex; flex-direction: column; height: 100%; position: relative; overflow: hidden; }
.service-card::before {
  content: ""; position: absolute; inset: 0 auto auto 0;
  width: 100%; height: 3px;
  background: var(--accent, var(--brand-500));
  opacity: 0; transition: opacity var(--t-base);
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--accent-soft, var(--brand-50));
  color: var(--accent, var(--brand-600));
  margin-bottom: 18px;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--ink-500); font-size: .95rem; }

.service-caps { list-style: none; padding: 0; margin: 16px 0 0; }
.service-caps li {
  position: relative;
  padding-left: 22px;
  font-size: .88rem; color: var(--ink-500);
  margin-bottom: 7px;
}
.service-caps li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, var(--brand-400));
  pointer-events: none;
}
.service-card .link-arrow { margin-top: auto; padding-top: 18px; }

/* Accent variants */
[data-accent="blue"]   { --accent: var(--leaf-blue);   --accent-soft: var(--brand-50); }
[data-accent="red"]    { --accent: var(--leaf-red);    --accent-soft: #fef2f3; }
[data-accent="orange"] { --accent: var(--leaf-orange); --accent-soft: #fff6ec; }
[data-accent="green"]  { --accent: var(--leaf-green);  --accent-soft: #eefaee; }

/* Project card -------------------------------------------------------- */
.project-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.project-card:hover { border-color: var(--line-hard); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.project-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-3);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  width: 100%; padding: 0; border-inline: 0; border-top: 0;
  display: block;
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  transition: transform 420ms var(--ease);
}
.project-card:hover .project-media img { transform: scale(1.035); }

.project-media-empty {
  display: grid; place-items: center;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(320px 200px at 50% 30%, var(--brand-50), var(--surface-2));
  border-bottom: 1px solid var(--line);
}
.project-media-empty img { width: 54px; height: 54px; opacity: .5; }

.project-count {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: var(--r-pill);
  background: rgba(12, 23, 40, .74);
  color: #fff; font-size: .72rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.project-count svg { width: 12px; height: 12px; }

.project-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.project-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.project-head h3 { margin: 0; font-size: 1.08rem; }
.project-body p { font-size: .91rem; color: var(--ink-500); margin-bottom: 16px; }

.project-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: .8rem; color: var(--ink-400);
}
.project-meta .tech { font-family: var(--font-mono); font-size: .76rem; }

/* Filter bar ---------------------------------------------------------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.filter-btn {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-600);
  font-family: inherit; font-size: .88rem; font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--line-hard); color: var(--ink-900); }
.filter-btn.is-active {
  background: var(--ink-900); border-color: var(--ink-900); color: #fff;
}
.filter-btn .count { opacity: .6; margin-left: 4px; }

/* Post card ----------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card .post-thumb {
  aspect-ratio: 16/9; background: var(--surface-3);
  border-radius: var(--r-md); overflow: hidden; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--ink-400);
  margin-bottom: 10px;
}
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-300); }
.post-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card h3 a { color: inherit; }
.post-card:hover h3 a { color: var(--brand-600); }
.post-card p { font-size: .92rem; color: var(--ink-500); }
.post-card .link-arrow { margin-top: auto; padding-top: 16px; }

/* ---------------------------------------------------------------------
   9. Flagship band (Softromeda Edu)
   --------------------------------------------------------------------- */
.flagship {
  position: relative;
  background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 55%, #0f86c9 100%);
  color: rgba(255, 255, 255, .84);
  overflow: hidden;
}
.flagship::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(760px 420px at 78% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(760px 420px at 78% 30%, #000, transparent 75%);
  /* Decoration only: it is painted after the content, so it would otherwise
     sit over the links and swallow their clicks. */
  pointer-events: none;
  z-index: 0;
}
.flagship > * { position: relative; z-index: 1; }

.flagship-grid {
  display: grid; gap: clamp(32px, 5vw, 60px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
@media (max-width: 900px) { .flagship-grid { grid-template-columns: 1fr; } }

.flagship h2 { color: #fff; margin-bottom: 6px; }
.flagship .flagship-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--brand-200);
  margin-bottom: 18px;
}
.flagship p { color: rgba(255,255,255,.8); }
.flagship .eyebrow { color: var(--brand-200); }
.flagship .eyebrow::before { background: var(--brand-300); }

.flagship-url {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .84rem;
  color: rgba(255,255,255,.72);
  margin-top: 18px;
}

.flagship-stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.flagship-stat {
  background: rgba(255, 255, 255, .07);
  padding: 24px 22px;
}
.flagship-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem);
  font-weight: 800; letter-spacing: -.03em;
  color: #fff; line-height: 1.05;
}
.flagship-stat span { font-size: .84rem; color: rgba(255,255,255,.72); }

/* ---------------------------------------------------------------------
   10. Stats strip
   --------------------------------------------------------------------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat-item { background: var(--surface); padding: 26px 22px; text-align: center; }
.stat-item b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
  font-weight: 800; letter-spacing: -.03em;
  color: var(--ink-900); line-height: 1.1;
}
.stat-item span { font-size: .85rem; color: var(--ink-400); }

/* ---------------------------------------------------------------------
   11. Page hero (interior pages)
   --------------------------------------------------------------------- */
.page-hero {
  padding: clamp(44px, 5.5vw, 76px) 0 clamp(36px, 4.5vw, 56px);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: 14px; max-width: 20ch; }
.page-hero .lead { max-width: 70ch; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  list-style: none; padding: 0; margin: 0 0 18px;
  font-size: .84rem; color: var(--ink-400);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-500); }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb [aria-current] { color: var(--ink-700); font-weight: 500; }

/* ---------------------------------------------------------------------
   12. Prose (rich text from the CMS)
   --------------------------------------------------------------------- */
.prose { color: var(--ink-600); font-size: 1.02rem; line-height: 1.75; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.55rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.9em; margin-bottom: .5em; }
.prose h4 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-bottom: .55em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); margin: 1.6em 0; }
.prose blockquote {
  margin: 1.8em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand-300);
  color: var(--ink-700); font-size: 1.06rem; font-style: italic;
}
.prose code {
  font-family: var(--font-mono); font-size: .87em;
  background: var(--surface-3); padding: .15em .4em;
  border-radius: 5px; color: var(--ink-800);
}
.prose pre {
  background: var(--surface-inv); color: #dbe6f2;
  padding: 18px 20px; border-radius: var(--r-md);
  overflow-x: auto; font-size: .87rem; line-height: 1.65;
}
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .94rem; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; color: var(--ink-800); }

/* ---------------------------------------------------------------------
   13. Forms
   --------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .88rem; font-weight: 600;
  color: var(--ink-800);
  margin-bottom: 7px;
}
.field .optional { font-weight: 400; color: var(--ink-400); }

.input, .textarea, .select {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit; font-size: .95rem;
  color: var(--ink-800);
  background: var(--surface);
  border: 1px solid var(--line-hard);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-300); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px var(--brand-50);
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237e90a6'%3E%3Cpath d='M5.5 7.5 10 12l4.5-4.5' stroke='%237e90a6' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
  padding-right: 38px;
}
.field-error .input, .field-error .textarea { border-color: var(--err-line); }
.field-msg { display: block; margin-top: 6px; font-size: .82rem; color: var(--err-fg); }
.field-hint { display: block; margin-top: 6px; font-size: .82rem; color: var(--ink-400); }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  display: flex; gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .92rem;
  margin-bottom: 22px;
  background: var(--surface-2);
  color: var(--ink-700);
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert-success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-fg); }
.alert-error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-fg); }
.alert-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-fg); }
.alert strong { display: block; }

/* ---------------------------------------------------------------------
   14. Contact page
   --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-sm);
}

.channel-list { display: grid; gap: 12px; }
.channel {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.channel:hover { border-color: var(--line-hard); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.channel-icon {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink-600);
}
.channel-icon svg { width: 19px; height: 19px; }
.channel strong { display: block; font-family: var(--font-display); color: var(--ink-900); font-size: .98rem; }
.channel .handle { font-size: .82rem; color: var(--brand-600); font-family: var(--font-mono); }
.channel p { font-size: .86rem; color: var(--ink-500); margin: 5px 0 0; }

.info-list { display: grid; gap: 2px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.info-row { background: var(--surface); padding: 15px 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.info-row dt {
  display: flex; align-items: center; gap: 8px;
  font-size: .84rem; color: var(--ink-400); margin: 0;
}
.info-row dt svg { width: 16px; height: 16px; flex: none; color: var(--ink-300); }
.info-row dd { margin: 0; font-size: .9rem; color: var(--ink-800); font-weight: 500; text-align: right; }

/* Narrow screens cannot hold a label and a value side by side without the two
   drifting apart, so stack them and align both to the left. */
@media (max-width: 560px) {
  .info-row { display: block; padding: 12px 16px; }
  .info-row dt { margin-bottom: 3px; font-size: .78rem; }
  .info-row dd { text-align: left; font-size: .92rem; }
}

/* ---------------------------------------------------------------------
   15. Team
   --------------------------------------------------------------------- */
.team-card { display: flex; gap: 18px; align-items: flex-start; }
.team-avatar {
  width: 64px; height: 64px; flex: none;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
  letter-spacing: -.02em;
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin-bottom: 2px; font-size: 1.05rem; }
.team-role { font-size: .85rem; color: var(--brand-600); font-weight: 600; margin-bottom: 10px; }
.team-card p { font-size: .91rem; color: var(--ink-500); margin-bottom: 10px; }

/* ---------------------------------------------------------------------
   16. CTA band
   --------------------------------------------------------------------- */
.cta-band {
  background: var(--surface-inv);
  color: rgba(255,255,255,.76);
  border-radius: var(--r-xl);
  padding: clamp(32px, 4.5vw, 56px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,156,217,.28), transparent 65%);
  /* Decoration only — see the note on .flagship::before. */
  pointer-events: none;
  z-index: 0;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 52ch; }

/* ---------------------------------------------------------------------
   17. Footer
   --------------------------------------------------------------------- */
.site-footer {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 5vw, 72px) 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  padding-bottom: 44px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-about p { font-size: .9rem; color: var(--ink-500); margin: 16px 0 0; max-width: 40ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: .91rem; color: var(--ink-600); }
.footer-col a:hover { color: var(--brand-600); }

.footer-flagship {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px; padding: 8px 14px;
  border: 1px solid var(--brand-100); border-radius: var(--r-pill);
  background: var(--brand-50); color: var(--brand-700);
  font-size: .84rem; font-weight: 600;
}
.footer-flagship:hover { background: var(--brand-100); color: var(--brand-800); }
.footer-flagship svg { width: 14px; height: 14px; flex: none; }
.hero-trust svg, .flagship-url svg { flex: none; }
.flagship-url svg { width: 15px; height: 15px; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 24px;
  font-size: .85rem; color: var(--ink-400);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: var(--ink-400); }
.footer-legal a:hover { color: var(--brand-600); }

/* ---------------------------------------------------------------------
   18. Gallery modal
   --------------------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(9, 16, 28, .62);
  backdrop-filter: blur(3px);
}
.modal-dialog {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  animation: modal-in 220ms var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute; right: 12px; top: 12px; z-index: 3;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink-700);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.modal-close:hover { background: #fff; color: var(--ink-900); }
.modal-close svg { width: 17px; height: 17px; }

.modal-media {
  position: relative;
  background: var(--surface-3);
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  overflow: hidden;
}
.modal-media img { width: 100%; height: 100%; object-fit: contain; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink-700);
  cursor: pointer; z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.slider-arrow:hover { background: #fff; color: var(--brand-600); }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.slider-arrow svg { width: 18px; height: 18px; }
.slider-arrow[hidden] { display: none; }

.slider-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: rgba(12,23,40,.72); color: #fff;
  font-size: .76rem; font-weight: 600;
}

.modal-content { padding: 22px 26px 26px; overflow-y: auto; }
.modal-content h2 { font-size: 1.3rem; margin-bottom: 6px; }
.modal-content p { font-size: .94rem; color: var(--ink-500); }

.modal-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.modal-thumb {
  width: 72px; height: 50px;
  border: 2px solid transparent; border-radius: var(--r-sm);
  overflow: hidden; cursor: pointer; padding: 0;
  background: var(--surface-3);
  opacity: .62; transition: opacity var(--t-fast), border-color var(--t-fast);
}
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumb:hover { opacity: 1; }
.modal-thumb.is-active { opacity: 1; border-color: var(--brand-500); }

body.modal-open { overflow: hidden; }

/* ---------------------------------------------------------------------
   19. Pagination & empty states
   --------------------------------------------------------------------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 500;
  color: var(--ink-600); background: var(--surface);
}
.pagination a:hover { border-color: var(--line-hard); color: var(--ink-900); }
.pagination .is-current { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }
.pagination .is-disabled { opacity: .45; }

.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--line-hard);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--ink-500);
}
.empty-state h3 { margin-bottom: 6px; }
.empty-state p { margin: 0; font-size: .94rem; }

/* ---------------------------------------------------------------------
   20. Scroll reveal
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------
   21. Utilities
   --------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
