/* Delta Chip Holdings design preview — tokens, reset, type and shared controls. */
:root {
  /* Navy / white / red identity. No paper textures, no beige surfaces. */
  --navy-900: #061123;
  --navy-800: #0a1c33;
  --navy-700: #103058;
  --navy-600: #1b4b8a;
  --blue: #2f6fd0;
  --blue-soft: #d9e6fa;
  --red: #e01e2b;
  --red-deep: #b2101c;
  --red-soft: #ffe0e2;

  --ink: #0b1523;
  --ink-soft: #38465e;
  --muted: #66748c;
  --white: #ffffff;
  --paper: #f5f7fa;
  --paper-2: #e9eef5;
  --paper-3: #dde5f0;
  --surface: #ffffff;

  --line: rgba(11, 21, 35, 0.12);
  --line-strong: rgba(11, 21, 35, 0.26);
  --line-inverse: rgba(255, 255, 255, 0.16);
  --line-inverse-strong: rgba(255, 255, 255, 0.36);

  --shadow-sm: 0 8px 24px rgba(6, 17, 35, 0.08);
  --shadow-md: 0 22px 60px rgba(6, 17, 35, 0.14);
  --shadow-lg: 0 40px 100px rgba(6, 17, 35, 0.32);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --container: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);

  --font-sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

button,
summary { cursor: pointer; }

a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }

p, h1, h2, h3, h4, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
li { list-style: none; }

h1, h2, h3, h4 {
  font-weight: 660;
  letter-spacing: -0.032em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.1vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.7rem); }

p { text-wrap: pretty; }

::selection { background: var(--navy-700); color: var(--white); }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.75rem); }
.section--grey { background: var(--paper-2); }
.section--navy { background: var(--navy-800); color: var(--white); }
.section--navy .lede { color: #c8d6ec; }

.eyebrow,
.section-label,
.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow { color: var(--blue); }
.eyebrow--red { color: var(--red); }
.section--navy .eyebrow,
.hero .eyebrow { color: #8fb6ee; }

.lede {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  line-height: 1.55;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.1rem;
  margin-bottom: clamp(2rem, 4.5vw, 3.75rem);
}

.section-head__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.section--navy .section-head__top { border-color: var(--line-inverse); }
.section-head__title { max-width: 20ch; }
.section-head__aside { max-width: 46ch; color: var(--ink-soft); }
.section--navy .section-head__aside { color: #c8d6ec; }

.rule { height: 1px; border: 0; background: var(--line); }
.section--navy .rule { background: var(--line-inverse); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-deep); }

.btn--navy { background: var(--navy-700); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); }

.btn--secondary { border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); background: rgba(11, 21, 35, 0.04); }

.hero .btn--secondary,
.section--navy .btn--secondary {
  border-color: var(--line-inverse-strong);
  color: var(--white);
}
.hero .btn--secondary:hover,
.section--navy .btn--secondary:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn--ghost { border-color: transparent; padding-inline: 0.2rem; color: var(--navy-700); }
.btn--ghost:hover { color: var(--navy-900); text-decoration: underline; }

.btn--wa { border-color: rgba(224, 30, 43, 0.45); color: var(--red-deep); }
.btn--wa:hover { border-color: var(--red-deep); background: rgba(224, 30, 43, 0.07); }

.btn--sm { min-height: 40px; padding: 0.55rem 0.9rem; font-size: 0.88rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.18rem;
}

.text-link:hover { color: var(--blue); }
.section--navy .text-link:hover { color: var(--white); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }

.prototype-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.prototype-badge::before { content: ""; width: 7px; height: 7px; background: var(--red); }

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  padding: 0.7rem 0.9rem;
  background: var(--navy-900);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.hero :where(a, button, input, select, summary):focus-visible,
.section--navy :where(a, button, input, select, summary):focus-visible {
  outline-color: var(--red-soft);
}

.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;
}

/* Motion safety: text is never hidden, moved or faded by the preview. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (min-width: 768px) {
  .section-head { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); align-items: end; }
  .section-head__top { grid-column: 1 / -1; }
}