/* ===========================================================
   Deos Interactive — corporate site
   Static CSS. No build step, no preprocessor, no framework.

   Design tokens are declared once, below. Do not introduce
   raw one-off colour or spacing values further down the file
   — add a token instead. See README.md for where each value
   comes from.
   =========================================================== */

/* ============ DESIGN TOKENS ============ */

:root {
  /* --- Colour ---------------------------------------------
     Ground and surface tones step down a single slate ramp;
     the accent is the brand primary.                        */
  --color-ink: #0b0e13;             /* deepest ground — page background */
  --color-surface: #12171f;         /* section tonal shift */
  --color-surface-raised: #1a1f26;  /* cards, footer */

  --color-accent: #df5728;          /* brand primary */
  --color-accent-strong: #d04a1c;   /* pressed / hover */

  --color-text: #ffffff;
  --color-text-secondary: #dedede;
  --color-text-muted: #b8c2d4;

  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.24);

  --color-focus: #fab44a;           /* focus ring — distinct from the accent */

  /* --- Typography ----------------------------------------
     Two families only: Work Sans for everything, Space Mono
     for small technical labels.                             */
  --font-ui: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  /* --- Spacing (8px base) --------------------------------- */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --space-10: 64px;
  --space-11: 80px;
  --space-12: 96px;

  /* --- Radius --------------------------------------------- */
  --radius-card: 10px;
  --radius-pill: 9999px;

  /* --- Layout --------------------------------------------- */
  --page-pad: clamp(20px, 5vw, 56px);
  --content-max: 1160px;
  --measure: 62ch;

  /* --- Motion --------------------------------------------- */
  --duration-fast: 150ms;
  --duration-default: 250ms;
  --ease-default: ease-out;
}

/* ============ RESET / BASE ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Belt-and-braces against any element overflowing the viewport. */
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-ink);
  color: var(--color-text-secondary);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-text);
  text-decoration-color: var(--color-border-strong);
  text-underline-offset: 0.25em;
  transition: color var(--duration-fast) var(--ease-default),
    text-decoration-color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-accent);
}

/* Work Sans ExtraBold (800), not Black (900). At display sizes Black reads
   playful rather than restrained — the wrong register for this site. */
h1,
h2,
h3 {
  color: var(--color-text);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

/* Visible focus everywhere — never removed, only restyled. */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-raised);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-card);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-default);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============ LAYOUT PRIMITIVES ============ */

.shell {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--page-pad);
}

.section {
  padding-block: clamp(var(--space-11), 9vw, var(--space-12));
}

.section--tint {
  background: var(--color-surface);
}

/* Full-bleed band (the three-up statement rows). It carries its own top and
   bottom rules, so it needs far less breathing room than a titled section. */
.section--band {
  padding-block: clamp(var(--space-8), 5vw, var(--space-10));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* Section intro: eyebrow + heading + lead sit closer together than the
   surrounding section rhythm. */
.stack--tight {
  gap: var(--space-4);
}

.prose {
  max-width: var(--measure);
}

.prose > * + * {
  margin-top: var(--space-6);
}

/* ============ TYPOGRAPHY SCALE ============ */

.eyebrow {
  display: block;
  margin: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: clamp(0.6875rem, 0.66rem + 0.14vw, 0.8125rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.display {
  font-size: clamp(2.375rem, 1.7rem + 3.4vw, 4.125rem);
  line-height: 1.04;
}

.title {
  font-size: clamp(1.875rem, 1.4rem + 2.1vw, 2.875rem);
}

.subtitle {
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lead {
  color: var(--color-text-secondary);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

.muted {
  color: var(--color-text-muted);
}

.small {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75em 1.6em;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-default) var(--ease-default),
    border-color var(--duration-default) var(--ease-default),
    color var(--duration-default) var(--ease-default);
}

.btn:hover {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-ink);
}

.btn--accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-ink);
}

.btn--accent:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: var(--color-text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============ SITE HEADER ============ */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-ink);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.brand__mark {
  width: 74px;
  height: auto;
}

.brand__name {
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The primary nav is a plain wrapped list at every width — no
   disclosure widget, so it is fully usable with JavaScript off. */
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-border-strong);
}

/* Current page is marked by BOTH a colour change and a rule, so the
   state is never carried by colour alone. */
.site-nav a[aria-current="page"] {
  color: var(--color-text);
  font-weight: 700;
  border-bottom-color: var(--color-accent);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(var(--space-11), 12vw, 160px);
  border-bottom: 1px solid var(--color-border);
}

/* Abstract ambient field — pure CSS, no imagery. A slow drifting
   light source over a fine hairline grid. Nothing here depicts or
   implies any product. */
.hero__field {
  position: absolute;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(
      42rem 32rem at 22% 18%,
      rgba(223, 87, 40, 0.16) 0%,
      rgba(223, 87, 40, 0) 68%
    ),
    radial-gradient(
      38rem 30rem at 78% 72%,
      rgba(48, 55, 71, 0.55) 0%,
      rgba(48, 55, 71, 0) 70%
    );
  animation: field-drift 34s ease-in-out infinite alternate;
  will-change: transform;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-border) 1px, transparent 1px);
  background-size: 96px 96px;
  /* Fade the grid out at the edges so it reads as texture, not chrome. */
  mask-image: radial-gradient(70% 60% at 30% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    70% 60% at 30% 40%,
    #000 0%,
    transparent 100%
  );
  opacity: 0.5;
}

@keyframes field-drift {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(2%, 1.5%, 0) scale(1.06);
  }
}

/* `.hero__inner` sits on the same element as `.shell`, so it must NOT set its
   own max-width — that would beat the shell's and re-centre the column,
   leaving the hero out of alignment with every section below it. Constrain
   the children instead, and let the shell own the page gutter. */
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.hero__inner > * {
  max-width: 46rem;
}

/* ============ PAGE HEADER (interior pages) ============ */

.page-header {
  padding-block: clamp(var(--space-10), 8vw, var(--space-12));
  border-bottom: 1px solid var(--color-border);
}

/* Same constraint as `.hero__inner` — see the note there. */
.page-header__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.page-header__inner > * {
  max-width: 46rem;
}

/* ============ STATEMENT ROWS ============ */

/* Rules and gaps only — no cell padding on the outer edges, so the first
   column's text aligns exactly with the page's left gutter. */
.statements {
  display: grid;
  list-style: none;
  border-top: 1px solid var(--color-border);
}

.statements li {
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--color-border);
}

.statements__label {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Three-up only once each cell can hold a readable line. Below this the
   columns squeeze the copy into four- and five-word lines, so it stays a
   stacked list with a rule between each row. */
@media (min-width: 880px) {
  .statements {
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--color-border);
  }

  .statements li {
    padding-block: var(--space-8);
    padding-right: var(--space-7);
    border-bottom: 0;
  }

  .statements li + li {
    padding-left: var(--space-7);
    border-left: 1px solid var(--color-border);
  }
}

/* ============ CARD GRID ============ */

.grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .grid--2,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-7);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.card__index {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.card p {
  color: var(--color-text-muted);
}

/* ============ DEFINITION / DETAIL LIST ============ */

.detail-list {
  display: grid;
  gap: var(--space-6);
  margin: 0;
}

@media (min-width: 640px) {
  .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-list dt {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: var(--color-text);
  font-size: 1.0625rem;
  font-weight: 500;
}

.detail-list dd a {
  text-decoration: underline;
}

/* ============ ENTITY PANEL ============ */

/* The legal-entity statement. Deliberately plain and factual —
   this is the block Apple's verification reviewer is looking for. */
.entity {
  padding: var(--space-8);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
}

.entity > * + * {
  margin-top: var(--space-4);
}

/* Registered-business record. Ruled off from the prose above it because it is
   a verifiable fact rather than a description — this is what someone checking
   the company against the register is looking for. */
.entity__record {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.entity__record dt {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.entity__record dd {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
}

/* ============ LONG-FORM POLICY CONTENT ============ */

.policy {
  max-width: var(--measure);
}

.policy > * + * {
  margin-top: var(--space-6);
}

.policy h2 {
  margin-top: var(--space-9);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.5rem);
  letter-spacing: -0.02em;
}

.policy ul {
  padding-left: 1.2em;
  list-style: disc;
}

.policy li + li {
  margin-top: var(--space-2);
}

/* ============ FOOTER ============ */

.site-footer {
  margin-top: auto;
  padding-block: clamp(var(--space-9), 6vw, var(--space-11)) var(--space-7);
  background: var(--color-surface-raised);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.site-footer__top {
  display: grid;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 760px) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-10);
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.site-footer__brand img {
  width: 88px;
  opacity: 0.85;
}

.site-footer__legal {
  max-width: 44ch;
}

.site-footer__links h2 {
  margin-bottom: var(--space-4);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__links ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.site-footer__links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-6);
  font-size: 0.8125rem;
}

.site-footer__bottom p {
  color: var(--color-text-muted);
}

/* ============ PROGRESSIVE ENHANCEMENT ============ */

/* Reveal-on-scroll is opt-in and only ever applied once JavaScript has
   confirmed it is running (`.has-js` is set by an inline script in the
   document head). With scripting off, content renders normally. */
.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-default),
    transform 600ms var(--ease-default);
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============ REDUCED MOTION ============ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .has-js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ PRINT ============ */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .site-nav,
  .hero__field,
  .hero__grid,
  .skip-link {
    display: none;
  }
}
