/* =====================================================
   Aexion Quantum Limited — shared stylesheet
   Scientific / technical editorial system
   ===================================================== */

:root {
  /* palette — default: "Ironworks" (off-white + deep ink + oxidised iron) */
  --bg:        oklch(0.972 0.006 80);
  --bg-soft:   oklch(0.945 0.008 80);
  --ink:       oklch(0.205 0.012 250);
  --ink-soft:  oklch(0.38 0.010 250);
  --ink-mute:  oklch(0.58 0.008 250);
  --rule:      oklch(0.84 0.010 250);
  --rule-soft: oklch(0.90 0.008 250);
  --accent:    oklch(0.52 0.135 32);
  --accent-ink: oklch(0.97 0.005 80);

  /* type */
  --serif: "IBM Plex Serif", "Newsreader", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --type-display: clamp(48px, 6vw, 96px);
  --type-h1:      clamp(40px, 4.4vw, 64px);
  --type-h2:      clamp(28px, 2.6vw, 40px);
  --type-h3:      20px;
  --type-body:    17px;
  --type-small:   14px;
  --type-label:   11px;

  /* layout */
  --pad-x: clamp(24px, 5vw, 80px);
  --max:   1400px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--type-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-color: var(--accent); color: var(--accent); }
a.bare, nav a, .btn { border-bottom: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.serif { font-family: var(--serif); }
.mono  { font-family: var(--mono); }
.upper { text-transform: uppercase; letter-spacing: 0.12em; }
.muted { color: var(--ink-mute); }
.soft  { color: var(--ink-soft); }

/* labels */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--type-label);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

/* layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.rule { border-top: 1px solid var(--rule); }
.rule-soft { border-top: 1px solid var(--rule-soft); }

section { padding: 96px 0; border-top: 1px solid var(--rule); }
section.tight { padding: 56px 0; }

/* =====================================================
   header / nav
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  gap: 48px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand-logo {
  display: block;
  height: 60px;
  width: auto;
}
.foot-brand .brand-logo { height: 32px; }
.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  position: relative;
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-suffix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-left: 1px solid var(--rule);
  padding-left: 12px;
  margin-left: 4px;
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 36px;
}
nav.primary a {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}
nav.primary a:hover { color: var(--ink); }
nav.primary a.current { color: var(--ink); }
nav.primary a.current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}

.nav-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =====================================================
   buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* =====================================================
   hero
   ===================================================== */
.hero {
  padding: 100px 0 80px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}
.hero h1 {
  font-size: var(--type-display);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 32px 0 0;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.hero-meta dt { color: var(--ink-mute); }
.hero-meta dd { margin: 0; color: var(--ink); }

.hero-side p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* hero figure — striped placeholder */
.placeholder {
  position: relative;
  width: 100%;
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 11px,
      color-mix(in oklab, var(--ink) 8%, transparent) 11px,
      color-mix(in oklab, var(--ink) 8%, transparent) 12px
    );
  background-color: var(--bg-soft);
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--rule) 0, var(--rule) 1px, transparent 1px) 0 0/25% 100%,
    linear-gradient(to bottom, var(--rule) 0, var(--rule) 1px, transparent 1px) 0 0/100% 25%;
  opacity: 0.35;
}
.placeholder .ph-tag { background: var(--bg); padding: 4px 8px; border: 1px solid var(--rule); }
.placeholder .ph-dim { background: var(--bg); padding: 4px 8px; border: 1px solid var(--rule); }

/* =====================================================
   data strip / capabilities
   ===================================================== */
.data-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.data-cell {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
}
.data-cell:last-child { border-right: none; }
.data-cell .num {
  font-family: var(--serif);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.data-cell .num sub {
  font-family: var(--mono);
  font-size: 12px;
  vertical-align: super;
  color: var(--accent);
  margin-left: 6px;
}
.data-cell .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* =====================================================
   section header
   ===================================================== */
.section-head {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: start;
}
.section-head .marker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.section-head .marker .idx { color: var(--accent); margin-right: 14px; }
.section-head h2 {
  font-size: var(--type-h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.section-head .lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-top: 24px;
}

/* =====================================================
   service / item grid
   ===================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule);
}
.svc {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.svc:nth-child(3n) { border-right: none; }
.svc .svc-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 28px;
}
.svc h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.svc p { color: var(--ink-soft); font-size: 15px; margin-bottom: 24px; }
.svc .svc-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 16px;
  border-top: 1px solid var(--rule-soft);
}

/* =====================================================
   insight list (blog)
   ===================================================== */
.insights {
  border-top: 1px solid var(--rule);
}
.insight {
  display: grid;
  grid-template-columns: 120px 1fr 280px 28px;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background .15s ease;
}
.insight:hover { background: var(--bg-soft); }
.insight .ix-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.insight h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.insight .ix-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.insight .ix-arrow {
  color: var(--ink-mute);
  text-align: right;
  font-family: var(--mono);
}
.insight:hover .ix-arrow { color: var(--accent); }
.insight a { border: none; display: contents; }

/* =====================================================
   footer
   ===================================================== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 80px 0 32px;
  background: var(--bg-soft);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.foot-grid h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 18px;
  font-weight: 400;
}
.foot-grid ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-grid li a {
  font-size: 14px;
  color: var(--ink);
  border: none;
}
.foot-grid li a:hover { color: var(--accent); }
.foot-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.foot-brand p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-top: 16px;
}

/* =====================================================
   page-title (interior pages)
   ===================================================== */
.page-title {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--rule);
}
.page-title .crumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.page-title .crumb .sep { color: var(--rule); margin: 0 10px; }
.page-title h1 {
  font-size: var(--type-h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin-bottom: 24px;
}
.page-title .lede {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* =====================================================
   two-col content (about, services detail, contact)
   ===================================================== */
.two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
}
.two-col .col-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  position: sticky;
  top: 96px;
}
.two-col .col-label .idx { color: var(--accent); margin-right: 14px; }

.prose h3 {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.prose p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 64ch;
}
.prose p.lead { font-size: 22px; color: var(--ink); }

/* spec list (key/value rows) */
.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.spec tr { border-top: 1px solid var(--rule); }
.spec tr:last-child { border-bottom: 1px solid var(--rule); }
.spec td, .spec th {
  padding: 18px 0;
  text-align: left;
  vertical-align: top;
}
.spec th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  width: 200px;
}
.spec td { color: var(--ink); }

/* team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
}
.member {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px;
}
.member:nth-child(3n) { border-right: none; }
.member .portrait,
.portrait {
  aspect-ratio: 4 / 5;
  margin-bottom: 24px;
}
.member h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.member .role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.member .bio { font-size: 14px; color: var(--ink-soft); margin-bottom: 16px; }
.member .creds {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.member .creds span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}

/* contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field textarea, .field select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  font-family: var(--serif);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.office {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.office:last-child { border-bottom: 1px solid var(--rule); }
.office h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.office address {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* CTA band */
.cta-band {
  padding: 120px 0;
  background: var(--ink);
  color: var(--bg);
  border-top: none;
}
.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: 32px;
}
.cta-band p {
  font-family: var(--serif);
  font-size: 22px;
  color: color-mix(in oklab, var(--bg) 70%, transparent);
  max-width: 56ch;
  margin-bottom: 40px;
}
.cta-band .btn {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.cta-band .btn.ghost {
  background: transparent;
  border-color: color-mix(in oklab, var(--bg) 40%, transparent);
  color: var(--bg);
}
.cta-band .btn:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.cta-band .btn.ghost:hover { background: var(--bg); color: var(--ink); border-color: var(--bg); }

/* responsive */
@media (max-width: 960px) {
  .hero-grid, .section-head, .two-col, .contact-grid, .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .svc-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .svc:nth-child(3n), .member:nth-child(3n) { border-right: 1px solid var(--rule); }
  .svc:nth-child(2n), .member:nth-child(2n) { border-right: none; }
  .data-strip { grid-template-columns: repeat(2, 1fr); }
  .data-cell:nth-child(2) { border-right: none; }
  .data-cell:nth-child(1), .data-cell:nth-child(2) { border-bottom: 1px solid var(--rule); }
  nav.primary { gap: 18px; }
  nav.primary a { font-size: 13px; }
  .nav-meta { display: none; }
  .insight { grid-template-columns: 100px 1fr 28px; }
  .insight .ix-tag { display: none; }
}
@media (max-width: 600px) {
  .svc-grid, .team-grid { grid-template-columns: 1fr; }
  .svc, .member { border-right: none !important; }
  .data-strip { grid-template-columns: 1fr; }
  .data-cell { border-right: none; border-bottom: 1px solid var(--rule); }
  .data-cell:last-child { border-bottom: none; }
  .brand-suffix { display: none; }
  .site-header .wrap { gap: 16px; }
  nav.primary { display: none; }
}
