/* Seismiq — site styles */

:root {
  /* Brand */
  --bg: #0a111d;
  --bg-2: #0e1827;          /* original Seismiq navy */
  --surface: #111c2d;
  --surface-2: #16233a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ef;
  --muted: #a3acbb;
  --faint: #6f7a8c;

  --orange: #ef4723;
  --amber: #f57e20;
  --brand-gradient: linear-gradient(100deg, var(--orange) 0%, var(--amber) 100%);

  /* Products */
  --mica: #2776ea;
  --granite: #7b61ff;
  --quartz: #91eaf5;

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--orange); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1em; text-wrap: pretty; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--orange); color: #fff; padding: 0.6em 1em; border-radius: 8px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--accent, var(--orange));
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 40em; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--text); --btn-fg: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 0.95rem/1 var(--font-body);
  padding: 0.95em 1.45em;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--orange); --btn-fg: #fff; box-shadow: 0 8px 28px -10px rgba(239, 71, 35, 0.7); }
.btn--primary:hover { --btn-bg: #f2583a; box-shadow: 0 12px 34px -10px rgba(239, 71, 35, 0.85); }
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.04); --btn-fg: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.08); }
.btn--sm { padding: 0.7em 1.1em; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.menu-open .site-header {
  background: rgba(10, 17, 29, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

.header-logo img { width: 132px; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav-links a {
  display: block; padding: 0.5em 0.85em; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.menu-toggle {
  display: none; position: relative;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; color: var(--text); cursor: pointer;
}
.menu-toggle span {
  position: absolute; left: 11px; width: 22px; height: 1.5px; border-radius: 2px;
  background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    /* absolute to the fixed header: its backdrop-filter makes it the containing block anyway */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 2rem;
    padding: 2rem var(--gutter);
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.3s var(--ease); }
  .menu-open { overflow: hidden; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; letter-spacing: -0.02em;
    color: var(--text); padding: 0.45em 0; border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: none; }
  .nav-links a[aria-current="page"] { color: var(--amber); }
  .site-nav .btn { align-self: flex-start; font-size: 1rem; padding: 0.95em 1.45em; }
}

/* ---------- Sections ---------- */

main { display: block; }
.section { position: relative; padding: clamp(52px, 7vw, 96px) 0; }
.section--tight { padding: clamp(36px, 4.5vw, 60px) 0; }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(86svh, 820px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden;
}
.hero--page { min-height: 0; padding-bottom: clamp(48px, 6vw, 80px); }

.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-bg::before { /* fine grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 35%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.hero-bg::after { /* glow */
  content: ""; position: absolute;
  width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  left: 50%; top: -10%; transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent, var(--orange)) 28%, transparent) 0%, transparent 62%);
  filter: blur(20px);
  opacity: 0.55;
}

/* Crossfading photo slideshow behind a hero (services). 5 slides, 6s each, 30s loop. */
.hero--slides { min-height: min(82svh, 760px); }
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero-slides > div {
  position: absolute; inset: 0; opacity: 0;
  background-size: cover; background-position: center;
}
.hero-slides > div:first-child { opacity: 1; }
.hero-slides::after { /* keeps the headline readable and fades into the page */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 17, 29, 0.92) 0%, rgba(10, 17, 29, 0.7) 50%, rgba(10, 17, 29, 0.3) 100%),
    linear-gradient(180deg, rgba(10, 17, 29, 0.55) 0%, rgba(10, 17, 29, 0) 30%, rgba(10, 17, 29, 0) 60%, var(--bg) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-slides > div { animation: hero-slide 30s linear infinite; }
  .hero-slides > div:nth-child(2) { animation-delay: 6s; }
  .hero-slides > div:nth-child(3) { animation-delay: 12s; }
  .hero-slides > div:nth-child(4) { animation-delay: 18s; }
  .hero-slides > div:nth-child(5) { animation-delay: 24s; }
}
@keyframes hero-slide {
  0%   { opacity: 0; transform: scale(1.1); }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1); }
  100% { opacity: 0; transform: scale(1); }
}

.hero h1 { max-width: 14ch; }
.hero .lead { margin-bottom: 2.2rem; }
.hero--center { text-align: center; }
.hero--center h1, .hero--center .lead { margin-left: auto; margin-right: auto; }
.hero--center h1 { max-width: 15ch; }
.hero--center .eyebrow, .hero--center .btn-row { justify-content: center; }
.hero--center .eyebrow::before, .section-head.center .eyebrow::before { display: none; }

.hero-wordmark { height: clamp(52px, 7vw, 88px); width: auto; margin-bottom: 1.6rem; }
.hero .display { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; }
.hero .display--wide { max-width: 22ch; }
.accent-text { color: var(--accent); }

.lockup { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 18px); margin-bottom: 1.6rem; color: var(--accent); }
.lockup-mark { height: clamp(48px, 6vw, 72px); width: auto; }
.lockup-word { height: clamp(40px, 5vw, 60px); width: auto; }
.lockup-logo { height: clamp(44px, 5.5vw, 68px); width: auto; }

.section-head--sm { margin-bottom: 32px; }
.mt { margin-top: 1.6rem; }
.follow { margin-top: 2.4rem; }
.option-text { display: grid; gap: 0.1rem; line-height: 1.3; }
.option strong { color: var(--text); font-weight: 600; }
.option small { font-size: 0.82rem; color: var(--muted); }

/* Seismic wave */
.wave {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  width: 100%; height: 160px;
  pointer-events: none;
}
.wave path { fill: none; stroke-linecap: round; }
.wave .w1 { stroke: url(#wave-grad); stroke-width: 2; }
.wave .w2 { stroke: var(--orange); stroke-width: 1; opacity: 0.25; }
.wave .w3 { stroke: var(--amber); stroke-width: 1; opacity: 0.12; }
@media (prefers-reduced-motion: no-preference) {
  .wave .w1 { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2.4s 0.3s var(--ease) forwards; }
  .wave g { animation: drift 14s ease-in-out infinite alternate; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-120px); } }

/* ---------- Cards ---------- */

.grid { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 32px);
  transition: border-color 0.3s, transform 0.4s var(--ease), background-color 0.3s;
}
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); margin-bottom: 0; }
.card:hover { border-color: var(--line-strong); }

.icon-tile {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 1.25rem;
  color: var(--accent, var(--amber));
  background: color-mix(in srgb, var(--accent, var(--orange)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--orange)) 28%, transparent);
}
.icon-tile svg { width: 22px; height: 22px; }

/* Product cards */
.product-card {
  display: flex; flex-direction: column;
  min-height: 100%;
  text-decoration: none;
  overflow: hidden;
}
.product-card::before { /* accent glow on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  opacity: 0.5; transition: opacity 0.4s var(--ease);
}
.product-card::after { /* top accent line */
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.product-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.product-card:hover::before { opacity: 1; }
.product-card > * { position: relative; }

.product-card .mark { height: 44px; width: auto; margin-bottom: 1.6rem; align-self: flex-start; }
.product-card .kind { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.product-card h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.product-card .ticks { margin: 1.4rem 0 1.8rem; }
.product-card .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
}
.product-card .more .arrow { transition: transform 0.25s var(--ease); }
.product-card:hover .more .arrow { transform: translateX(4px); }

/* Smaller "Technologies" card under the main products (Mica) */
.tech-label {
  margin: clamp(24px, 3vw, 36px) 0 0.75rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.product-card.tech-card {
  flex-direction: row; align-items: center; gap: clamp(18px, 2.4vw, 32px);
  min-height: 0; padding-top: clamp(18px, 2vw, 24px); padding-bottom: clamp(18px, 2vw, 24px);
}
.tech-card .mark { height: 32px; margin: 0; align-self: center; }
.tech-card-body { flex: 1; min-width: 0; }
.tech-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.tech-card .kind { font-size: 0.72rem; margin-bottom: 0.25rem; }
.tech-card-body > p:last-child { color: var(--muted); font-size: 0.92rem; margin: 0; }
.tech-card .more { margin-top: 0; white-space: nowrap; font-size: 0.9rem; }
@media (max-width: 640px) {
  .product-card.tech-card { flex-direction: column; align-items: flex-start; }
  .tech-card .mark { align-self: flex-start; }
}

.badge {
  position: absolute; top: clamp(22px, 2.4vw, 32px); right: clamp(22px, 2.4vw, 32px);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.4em 0.75em; border-radius: 999px;
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.badge--inline { position: static; display: inline-block; margin-bottom: 1.4rem; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.28em;
  width: 1rem; height: 1rem; border-radius: 50%;
  background: color-mix(in srgb, var(--accent, var(--orange)) 18%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}

.accent-mica { --accent: var(--mica); }
.accent-shale { --accent: #e84a27; }
.accent-granite { --accent: var(--granite); }
.accent-quartz { --accent: var(--quartz); }
.accent-brand { --accent: var(--orange); }

/* Feature cards with a numbered sub-list (Mica) */
.feature h3 { display: flex; align-items: center; gap: 0.6rem; }
.feature .ticks { margin-top: 1rem; }

/* ---------- Split layout ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.chips li {
  padding: 0.55em 1em; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted);
  font-size: 0.92rem; background: rgba(255, 255, 255, 0.02);
}
.chips .on { color: var(--text); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ---------- Services page ---------- */

.hero-chips { margin: -0.6rem 0 2rem; }
.hero-chips li { font-size: 0.85rem; }

/* Work mosaic: rows alternate two wide tiles and three narrow ones */
.mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.tile {
  grid-column: span 2; position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.tile--wide { grid-column: span 3; }
.tile img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.tile--wide img { aspect-ratio: 16 / 10; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 3rem 1.2rem 1rem;
  background: linear-gradient(to top, rgba(6, 10, 18, 0.9), transparent);
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.5vw, 1.25rem); letter-spacing: -0.01em; color: var(--text);
}
.tile figcaption span, .track li span {
  display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
}
.tile figcaption span { color: var(--amber); margin-bottom: 0.2rem; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; }
  .tile, .tile--wide { grid-column: span 1; }
  .tile--wide img { aspect-ratio: 4 / 3; }
  .tile figcaption { padding: 2rem 0.75rem 0.65rem; font-size: 0.9rem; }
}

/* Track record list */
.track {
  list-style: none; margin: clamp(20px, 2.5vw, 32px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.track li {
  padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.track li span { margin-bottom: 0.3rem; font-family: var(--font-body); }
@media (max-width: 860px) { .track { grid-template-columns: 1fr 1fr; } }

/* Section with a full-bleed photo behind it (services: what we do) */
.section--banner { overflow: hidden; isolation: isolate; padding: clamp(80px, 11vw, 150px) 0; }
.banner-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 17, 29, 0) 22%, rgba(10, 17, 29, 0) 78%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 17, 29, 0.94) 0%, rgba(10, 17, 29, 0.72) 55%, rgba(10, 17, 29, 0.45) 100%),
    url("../img/work/house-of-the-dragon-volume.webp") center / cover no-repeat;
}
.section--banner .section-head p { color: var(--text); opacity: 0.85; }
.section--banner .card { background: rgba(10, 17, 29, 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-color: var(--line-strong); }

/* Home: services teaser */
.home-svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.home-svc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.home-svc-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.home-svc-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.home-svc .ticks { margin: 1.2rem 0 1.6rem; }
@media (max-width: 860px) { .home-svc { grid-template-columns: 1fr; } }

/* ---------- Industries ---------- */

.industry { display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.industry .icon-tile { flex: none; margin: 0; width: 40px; height: 40px; }
.industry h3 { font-size: 1.05rem; margin: 0.15rem 0 0.3rem; letter-spacing: -0.01em; }
.industry p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 48px); }
@media (max-width: 980px) { .industries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .industries { grid-template-columns: 1fr; } }

/* ---------- Big statement / CTA ---------- */

.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(239, 71, 35, 0.22), transparent 55%),
    radial-gradient(60% 100% at 0% 100%, rgba(245, 126, 32, 0.12), transparent 60%),
    var(--surface);
}
.cta h2 { max-width: 16ch; }
.cta p { color: var(--muted); max-width: 36em; font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Product page bits ---------- */

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.platform {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}
.platform strong { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.platform span { font-size: 0.82rem; color: var(--muted); }
.platform .status { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.5rem; }
.platform .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc97; }
.platform--planned .status::before { background: var(--faint); }

.scale {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.scale > div { padding: clamp(20px, 3vw, 36px); border-left: 1px solid var(--line); }
.scale > div:first-child { border-left: 0; }
.scale--4 { grid-template-columns: repeat(4, 1fr); }
.scale--4 .num { font-size: clamp(1.8rem, 3vw, 2.6rem); white-space: nowrap; }
@media (max-width: 980px) {
  .scale--4 { grid-template-columns: repeat(2, 1fr); }
  .scale--4 > div:nth-child(3) { border-left: 0; }
  .scale--4 > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.scale .num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--accent); margin-bottom: 0.6rem; }
.scale p { color: var(--muted); margin: 0; font-size: 0.95rem; }
@media (max-width: 640px) {
  .scale { grid-template-columns: 1fr; }
  .scale > div { border-left: 0; border-top: 1px solid var(--line); }
  .scale > div:first-child { border-top: 0; }
}

/* Quartz "video wall" illustration */
.wall {
  aspect-ratio: 16 / 10; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(10px, 1.4vw, 16px);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px;
  background: var(--surface);
}
.wall > span {
  position: relative; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--quartz) 22%, var(--surface-2)), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--quartz) 18%, transparent);
}
.wall > span::after {
  content: attr(data-label); position: absolute; left: 8px; bottom: 6px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em; color: color-mix(in srgb, var(--quartz) 80%, white);
}
.wall > span::before {
  content: ""; position: absolute; right: 8px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #3ddc97;
  box-shadow: 0 0 8px #3ddc97;
}
.wall .big { grid-column: span 2; grid-row: span 2; }
.wall .warn::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.wall .scope { background: #0b131f; }
.wall .scope::before { display: none; }
.wall .scope svg { position: absolute; inset: 14% 8% 30%; width: 84%; height: 56%; }
.wall .scope path { fill: none; stroke: var(--quartz); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .wall > span { animation: pulse 6s ease-in-out infinite; }
  .wall > span:nth-child(3n) { animation-delay: -2s; }
  .wall > span:nth-child(3n+1) { animation-delay: -4s; }
}
@keyframes pulse { 50% { filter: brightness(1.25); } }

/* Granite "spaces" illustration */
.spaces { position: relative; width: 100%; }
.spaces svg { width: 100%; height: 100%; }
.spaces .node rect { fill: var(--surface-2); stroke: color-mix(in srgb, var(--granite) 45%, transparent); }
.spaces .node text { fill: var(--text); font: 600 13px var(--font-body); }
.spaces .node .sub { fill: var(--muted); font-weight: 400; font-size: 11px; }
.spaces .link { stroke: var(--granite); stroke-width: 1.5; fill: none; opacity: 0.6; }
.spaces .node--out rect { fill: color-mix(in srgb, var(--granite) 16%, var(--surface-2)); stroke: var(--granite); }
.spaces .hub-label { fill: var(--text); font: 600 13px var(--font-body); }
.spaces { aspect-ratio: 520 / 410; }
@media (prefers-reduced-motion: no-preference) {
  .spaces .link { stroke-dasharray: 4 6; animation: flow 1.6s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -20; } }

/* ---------- About / team ---------- */

.services { counter-reset: svc; }
.services .card { counter-increment: svc; }
.services .card .num {
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em;
  color: var(--amber); margin-bottom: 1rem; display: block;
}

.team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
@media (max-width: 980px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.member { margin: 0; text-align: center; }
.member .photo {
  position: relative; border-radius: 50%; padding: 4px;
  background: linear-gradient(140deg, var(--line-strong), transparent 60%);
  margin-bottom: 1rem;
  transition: transform 0.4s var(--ease);
}
.member .photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 1.5px;
  background: var(--brand-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s;
}
.member:hover .photo { transform: translateY(-4px); }
.member:hover .photo::after { opacity: 1; }
.member img { border-radius: 50%; width: 100%; }
.member figcaption { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.member .role { display: block; margin-top: 0.2rem; font-family: var(--font-body); font-weight: 500; font-size: 0.85rem; letter-spacing: 0; color: var(--muted); }
.member-link { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-top: 0.5rem; border-radius: 50%; color: var(--faint); transition: color 0.2s, background-color 0.2s; }
.member-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.member-link svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 4vw, 44px);
}
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

.field { display: grid; gap: 0.45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { font-size: 0.88rem; font-weight: 500; color: var(--text); padding: 0; }
.field .opt { color: var(--faint); font-weight: 400; margin-left: 0.35em; }

.form input[type="text"], .form input[type="email"], .form textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--font-body);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--faint); }
.form input:hover, .form textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.form input:focus, .form textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(245, 126, 32, 0.15);
}

.options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option > span {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 0.95rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02);
  font-size: 0.92rem; color: var(--muted);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.option > span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px;
  border: 1.5px solid var(--line-strong); background: transparent center / 11px no-repeat;
  transition: background-color 0.2s, border-color 0.2s;
}
.option:hover > span { border-color: rgba(255, 255, 255, 0.26); color: var(--text); }
.option input:checked + span { color: var(--text); border-color: var(--amber); background: rgba(245, 126, 32, 0.08); }
.option input:checked + span::before {
  border-color: var(--orange); background-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.option input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

.check { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }

.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.form-note { font-size: 0.82rem; color: var(--faint); margin: 0; }
.form-error { color: var(--amber); font-size: 0.9rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; } /* spam honeypot */
.form-success { text-align: center; padding: 2rem 0; }
.form-success h3 { font-size: 1.6rem; }
.form-success p { color: var(--muted); margin: 0; }
.form-success .icon-tile { margin: 0 auto 1.2rem; --accent: #3ddc97; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0 28px; margin-top: clamp(24px, 3vw, 40px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 128px; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 28em; }
.footer-col .footer-subhead { margin-top: 1.6rem; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { text-decoration: none; color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(28px, 3.5vw, 44px); padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 0.85rem;
}
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted); transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.social a:hover { color: var(--text); border-color: var(--orange); background: rgba(239, 71, 35, 0.1); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
  .js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
  .js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
  .js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
  .js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.24s; }
  .js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.32s; }
  .js .reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.40s; }
}
