/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }

/* Base */
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--lime-link-hover); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }
details[open] .faq-plus { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Layout */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.section {
  border-top: 1px solid var(--rule);
  padding-block: clamp(72px, 10vw, 140px);
}
.section--tight { padding-block: clamp(64px, 8vw, 120px); }
.section--graphite { background: var(--graphite); }
.section--no-border { border-top: none; }
/* Shared padding used by most inner sections on Solution/Sector/Location/the Worldspace Remote/
   Worldspace/About pages (each template may also define its own tighter variant). */
.section--page { padding-block: clamp(72px, 10vw, 120px); }
/* Full-width heading + content stacked vertically inside a section */
.section-stack { display: flex; flex-direction: column; gap: 48px; }

/* Grid of link cards (Sector "Related solutions", Location "What we build for X") */
.link-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}
.link-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--moss);
  border-radius: 14px;
  background: var(--ink);
  text-decoration: none;
  color: var(--paper);
  font: 700 18px / 1.3 Manrope, sans-serif;
}
.link-card:hover { border-color: var(--hover-border); color: var(--paper); }
.link-card__arrow { color: var(--lime); }
.accent-dot { color: var(--lime); }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px 80px;
}
/* Common two-column pattern (README "Layout and spacing"): heading/label flex:1 1 280,
   content flex:2 1 520, used throughout the Solution and Sector page templates. */
.row-2col { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.row-2col > :first-child { flex: 1 1 280px; }
.row-2col > :last-child { flex: 2 1 520px; min-width: 0; }

/* Breadcrumb nav (Solution, Sector and Location page templates) */
.breadcrumb { font-size: 14px; color: var(--stone); display: flex; gap: 10px; }
.breadcrumb a { color: var(--stone); text-decoration: none; }
.breadcrumb a:hover { color: var(--lime); }

/* Prose column: the wide side of a .row-2col heading/body pair */
.prose-col {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--paper-2);
}
.prose-col p { margin: 0; text-wrap: pretty; }

/* Primary + secondary CTA row under a page/section heading */
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* Typography scale */
.h1-display {
  margin: 0;
  font: 800 clamp(48px, 9vw, 120px) / 0.98 Manrope, sans-serif;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.h1-page {
  margin: 0;
  font: 800 clamp(40px, 6.5vw, 84px) / 1 Manrope, sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.h1-page--short { font-size: clamp(44px, 7vw, 92px); }
.h2-lg {
  margin: 0;
  font: 700 clamp(34px, 4.5vw, 56px) / 1.05 Manrope, sans-serif;
  letter-spacing: -0.035em;
}
.h2-md {
  margin: 0;
  font: 700 clamp(28px, 3.5vw, 40px) / 1.1 Manrope, sans-serif;
  letter-spacing: -0.03em;
}
.h3-card {
  margin: 0;
  font: 700 20px / 1.25 Manrope, sans-serif;
  letter-spacing: -0.018em;
}
.lead {
  margin: 0;
  font: 400 clamp(18px, 2vw, 22px) / 1.55 Inter, sans-serif;
  color: var(--paper-2);
}
.body-prose {
  margin: 0;
  font: 400 18px / 1.7 Inter, sans-serif;
  max-width: 680px;
  text-wrap: pretty;
}
.small-body {
  font: 400 16px / 1.6 Inter, sans-serif;
  color: var(--stone);
}
.eyebrow {
  font: 500 12px / 1 ui-monospace, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font: 600 16px / 1 Inter, sans-serif;
  padding: 16px 24px;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--lime-hover); color: var(--ink); }
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--moss-2);
  font-weight: 500;
}
.btn-secondary:hover { border-color: var(--hover-border); color: var(--paper); }
.btn--compact { padding: 0 20px; min-height: 44px; font-size: 15px; }

/* Text / arrow links */
.link-arrow {
  color: var(--lime);
  font: 600 15px / 1 Inter, sans-serif;
  text-decoration: none;
}
.link-arrow:hover { color: var(--lime-link-hover); }

/* Links inline within a run of body text need a non-colour cue (WCAG 1.4.1). */
.inline-link { text-decoration: underline; text-underline-offset: 2px; }

/* Category tag */
.tag {
  display: inline-block;
  font: 500 11px / 1 ui-monospace, Menlo, monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--lime);
  background: var(--lime-tint);
  padding: 6px 8px;
  border-radius: 4px;
}

/* Bulleted list ("Things we've built") */
.list-bulleted { display: flex; flex-direction: column; }
.list-bulleted__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--moss);
}
.list-bulleted__marker {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 2px;
  margin-top: 9px;
}

/* Work item (shared: home "Selected work" and the Work page gallery) */
.work__grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 40px 20px;
}
.work-item { display: flex; flex-direction: column; gap: 14px; }
.work-item__image { aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.work-item__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-item__meta { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.work-item__name { margin: 0; font: 700 16px / 1.3 Manrope, sans-serif; letter-spacing: -0.01em; }
.work-item__caption { margin: 0; font-size: 15px; line-height: 1.5; color: var(--paper-2); text-wrap: pretty; }

/* Feature row: alternating image/text block, used for the Home "family" panels
   and the oodlü / Worldspace showcase pages' feature sections and hero-adjacent
   content. Stacks image-first on mobile; alternates via .feature-row--reverse
   from 800px up (image right, text left). */
.feature-rows { display: flex; flex-direction: column; gap: 64px; }
.feature-row { display: grid; grid-template-columns: 1fr; gap: 32px; }
.feature-row__image { aspect-ratio: 16 / 10; }
.feature-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.feature-row__logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid #232621;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 8px, var(--placeholder-b) 8px 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  text-align: center;
}
.feature-row__logo span { font: 500 9px / 1.2 ui-monospace, Menlo, monospace; color: var(--stone); }
.feature-row__logo-img { height: 60px; width: auto; display: block; }
.feature-row__title { margin: 0; font: 700 clamp(26px, 3vw, 34px) / 1.15 Manrope, sans-serif; letter-spacing: -0.025em; }
.feature-row__text { margin: 0; font-size: 17px; line-height: 1.65; color: var(--paper-2); text-wrap: pretty; max-width: 520px; }
.feature-row__points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-row__points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--paper-2); }
.feature-row__points li::before { content: ''; width: 6px; height: 6px; flex: none; background: var(--lime); border-radius: 2px; }
.feature-row__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }

@media (min-width: 800px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: 48px 64px; align-items: center; }
  .feature-row--reverse .feature-row__image { order: 2; }
  .feature-row--reverse .feature-row__body { order: 1; }
}

/* Facts grid (About "At a glance", oodlü/Worldspace key facts) */
.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: var(--moss);
  border: 1px solid var(--moss);
  border-radius: 16px;
  overflow: hidden;
}
.facts-grid__item { background: var(--graphite); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.facts-grid__item dt { font-size: 14px; color: var(--stone); }
.facts-grid__item dd { margin: 0; font: 700 20px / 1.3 Manrope, sans-serif; letter-spacing: -0.015em; }

/* Placeholder image box */
.placeholder {
  border-radius: 16px;
  border: 1px solid #232621;
  background: repeating-linear-gradient(135deg, var(--placeholder-a) 0 10px, var(--placeholder-b) 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.placeholder__label {
  font: 500 12px / 1.5 ui-monospace, Menlo, monospace;
  color: var(--stone);
}
/* No radius/border of its own - sits flush against an ancestor that clips
   its own corners (e.g. .build__grid's overflow:hidden), so only the
   ancestor's true outer edges ever appear rounded. */
.placeholder--square { border-radius: 0; border: none; }

/* Form fields */
.field { display: flex; flex-direction: column; gap: 8px; font: 500 14px / 1 Inter, sans-serif; color: var(--paper-2); }
.field input,
.field select,
.field textarea {
  background: var(--ink);
  border: 1px solid var(--moss-2);
  border-radius: 10px;
  padding: 14px;
  color: var(--paper);
  font-size: 16px;
  min-height: 48px;
  box-sizing: border-box;
}
.field textarea { line-height: 1.5; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--lime); }
.form-hint { margin: 0; font-size: 13px; line-height: 1.5; color: var(--stone); }
.form-status {
  border: 1px solid var(--lime);
  border-radius: 12px;
  padding: 20px;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}
.form-status--error { border-color: var(--stone); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font: 600 15px / 1 Inter, sans-serif;
  z-index: 100;
}
.skip-link:focus { left: 0; }
