/* ==========================================================================
   cloudinfra.cc — site styles
   Plain CSS, no build step.

   1. Fonts         5. Components        9.  Contact & form
   2. Tokens        6. Header            10. Footer
   3. Base          7. Hero & diagram    11. Legal & error pages
   4. Layout        8. Content sections  12. Motion
   ========================================================================== */


/* 1. Fonts ----------------------------------------------------------------
   Geist & Geist Mono, self-hosted (SIL Open Font License 1.1, see
   ../fonts/OFL-*.txt). No requests to third-party font CDNs. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* 2. Tokens ---------------------------------------------------------------
   Light is the default; dark follows the OS setting unless the visitor
   picked a theme with the toggle (stored as html[data-theme]). */

:root {
  color-scheme: light;

  --bg: #fafbfc;
  --bg-elev: #ffffff;
  --bg-sunken: #f3f5f9;
  --text: #0a1022;
  --text-2: #475068;
  --text-3: #656d86;          /* ≥ 4.5:1 on --bg-sunken */
  --line: #e3e7ee;
  --line-2: #d2d8e2;

  --accent: #2b59ff;          /* text, icons, lines */
  --accent-soft: #edf1ff;     /* tinted fills */
  --accent-line: #c5d2ff;     /* tinted borders */
  --btn-bg: #2b59ff;          /* primary button (white text: 5.3:1) */
  --btn-bg-hover: #1c46e8;

  --ok: #12a150;
  --ok-text: #0a7d3c;
  --crit-text: #c62828;
  --warn: #d68a00;

  --grid: rgba(43, 89, 255, 0.075);
  --glow: rgba(43, 89, 255, 0.14);
  --header-bg: rgba(250, 251, 252, 0.8);

  --shadow-sm: 0 1px 2px rgba(10, 16, 34, 0.05);
  --shadow-md: 0 1px 2px rgba(10, 16, 34, 0.04), 0 12px 32px -12px rgba(10, 16, 34, 0.14);
  --shadow-lg: 0 2px 4px rgba(10, 16, 34, 0.04), 0 28px 64px -24px rgba(10, 16, 34, 0.22);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #070a12;
    --bg-elev: #0d1220;
    --bg-sunken: #0a0e19;
    --text: #e8ecf5;
    --text-2: #a3adc3;
    --text-3: #7d879e;
    --line: #192032;
    --line-2: #263049;

    --accent: #7f9dff;
    --accent-soft: rgba(91, 125, 255, 0.12);
    --accent-line: rgba(127, 157, 255, 0.32);
    --btn-bg: #2b59ff;
    --btn-bg-hover: #4169ff;

    --ok: #34d17e;
    --ok-text: #4ade80;
    --crit-text: #ff8a8a;
    --warn: #f5b544;

    --grid: rgba(127, 157, 255, 0.07);
    --glow: rgba(61, 104, 255, 0.24);
    --header-bg: rgba(7, 10, 18, 0.74);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 32px 80px -24px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #070a12;
  --bg-elev: #0d1220;
  --bg-sunken: #0a0e19;
  --text: #e8ecf5;
  --text-2: #a3adc3;
  --text-3: #7d879e;
  --line: #192032;
  --line-2: #263049;

  --accent: #7f9dff;
  --accent-soft: rgba(91, 125, 255, 0.12);
  --accent-line: rgba(127, 157, 255, 0.32);
  --btn-bg: #2b59ff;
  --btn-bg-hover: #4169ff;

  --ok: #34d17e;
  --ok-text: #4ade80;
  --crit-text: #ff8a8a;
  --warn: #f5b544;

  --grid: rgba(127, 157, 255, 0.07);
  --glow: rgba(61, 104, 255, 0.24);
  --header-bg: rgba(7, 10, 18, 0.74);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 32px 80px -24px rgba(0, 0, 0, 0.7);
}


/* 3. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, li, figure, blockquote, dl, dd, address {
  margin: 0;
}

/* :where() keeps this at zero specificity so component padding wins */
:where(ul, ol)[role="list"] {
  list-style: none;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

::selection {
  background: var(--btn-bg);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}


/* 4. Layout & utilities ---------------------------------------------------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: #fff;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

.section {
  --section-bg: var(--bg);
  position: relative;
  padding-block: clamp(64px, 8.5vw, 112px);
  background: var(--section-bg);
}

.section--sunken {
  --section-bg: var(--bg-sunken);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .h2 {
  margin-top: 16px;
}

.section-head .lead {
  margin-top: 18px;
}


/* Type */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.h1 {
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.text-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.text-link:hover {
  text-decoration-thickness: 2px;
}


/* 5. Components ------------------------------------------------------------ */

/* Sprite icons inherit their stroke from here (see the sprite in the HTML) */
.icon,
.dg-ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--btn-bg);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(10, 16, 34, 0.2), 0 8px 24px -10px var(--btn-bg);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
}

.btn-secondary {
  background: var(--bg-elev);
  border-color: var(--line-2);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--text-3);
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
  border-radius: 9px;
}

.btn-lg {
  height: 50px;
  padding: 0 22px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: var(--bg-elev);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

/* Theme toggle shows the theme you would switch to */
.theme-toggle .icon--sun { display: none; }
.theme-toggle .icon--moon { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon--sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon--moon { display: none; }
}

:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }

/* Badge & status */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
}

.status-dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--ok);
  border-radius: 50%;
  opacity: 0;
  animation: ping 2.4s var(--ease) infinite;
}

@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  80%, 100% { transform: scale(1.5); opacity: 0; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--ok-text);
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

/* Tags & chips */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags li {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-sunken);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--text-2);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text);
}

/* Check lists */

.checks {
  display: grid;
  gap: 12px;
}

.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.checks .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}


/* 6. Header ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background-color 0.2s;
}

.site-header.is-scrolled,
.site-header[data-menu-open] {
  border-bottom-color: var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-mark .bm-bg { fill: var(--btn-bg); }
.brand-mark .bm-top { fill: #fff; stroke: #fff; }
.brand-mark .bm-mid { fill: none; stroke: #fff; opacity: 0.72; }
.brand-mark .bm-bot { fill: none; stroke: #fff; opacity: 0.42; }

.brand-tld {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.15s, background-color 0.15s;
}

.nav a:not(.btn):hover,
.nav a.is-active {
  color: var(--text);
}

.nav a:not(.btn):hover {
  background: color-mix(in srgb, var(--text) 5%, transparent);
}

.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  display: none;
}

.menu-toggle .icon--close { display: none; }
.site-header[data-menu-open] .menu-toggle .icon--menu { display: none; }
.site-header[data-menu-open] .menu-toggle .icon--close { display: block; }

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
  }

  .site-header[data-menu-open] .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.2s var(--ease);
  }

  .nav a:not(.btn) {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.0625rem;
    color: var(--text);
  }

  .nav a:not(.btn):hover {
    background: none;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }
}


/* 7. Hero & diagram -------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 8vw, 104px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 75% at 50% 0%, #000 35%, transparent 80%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: -10%;
  right: -12%;
  width: min(900px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 4.5vw, 64px);
  align-items: center;
}

.hero-copy .h1 {
  margin-top: 24px;
}

.hero-copy .h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy .lead {
  max-width: 35em;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  font-size: 0.875rem;
  color: var(--text-2);
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  width: 16px;
  height: 16px;
  color: var(--ok);
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    max-width: 600px;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* Console card around the diagram */

.console {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
}

.console-bar,
.console-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 11px 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-2);
}

.console-bar {
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.console-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.console-title .icon {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}

.console-body {
  padding: 10px 12px 6px;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 16px 16px;
  background-position: 8px 8px;
}

.console-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
}

.console-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.console-foot .icon {
  width: 14px;
  height: 14px;
  color: var(--ok);
}

/* The architecture diagram (inline SVG, styled here so it follows the theme) */

.dg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dg-cluster {
  fill: color-mix(in srgb, var(--accent) 4%, transparent);
  stroke: var(--accent-line);
  stroke-dasharray: 4 4;
}

.dg-cluster-label {
  font: 500 10.5px var(--font-mono);
  letter-spacing: 0.04em;
  fill: var(--accent);
}

.dg-link {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.25;
}

.dg-node {
  fill: var(--bg-elev);
  stroke: var(--line-2);
}

.dg-ico {
  color: var(--text-3);
  stroke-width: 2.1;
}

.dg-ports circle {
  fill: var(--bg-elev);
  stroke: var(--accent);
  stroke-width: 1.25;
}

.dg-label {
  font: 500 12px var(--font-mono);
  fill: var(--text);
}

.dg-sub {
  font: 400 10px var(--font-mono);
  fill: var(--text-3);
}

.dg-rep {
  fill: var(--ok);
}

/* Traffic "packets": a zero-length dash with round caps travels along each
   link. pathLength="100" on the paths normalises the dash maths. */
.dg-pkt {
  fill: none;
  stroke: var(--accent);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 0.001 200;
  stroke-dashoffset: 8;
  animation: pkt-m 2.6s linear infinite;
}

.dg-pkt.is-short { animation-name: pkt-s; animation-duration: 2s; }
.dg-pkt.is-long  { animation-name: pkt-l; animation-duration: 3.2s; }

.dg-pkt.d1 { animation-delay: 0.4s; }
.dg-pkt.d2 { animation-delay: 0.9s; }
.dg-pkt.d3 { animation-delay: 1.5s; }
.dg-pkt.d4 { animation-delay: 2.1s; }

@keyframes pkt-s { 0% { stroke-dashoffset: 8; } 30%, 100% { stroke-dashoffset: -108; } }
@keyframes pkt-m { 0% { stroke-dashoffset: 8; } 50%, 100% { stroke-dashoffset: -108; } }
@keyframes pkt-l { 0% { stroke-dashoffset: 8; } 80%, 100% { stroke-dashoffset: -108; } }

/* api pods: a rolling deployment, one replica at a time */
.dg-rep.is-rolling { animation: rolling 7.5s ease-in-out infinite; }
.dg-rep.is-rolling:nth-of-type(2) { animation-delay: 1.2s; }
.dg-rep.is-rolling:nth-of-type(3) { animation-delay: 2.4s; }

@keyframes rolling {
  0%, 12% { fill: var(--ok); }
  18%, 30% { fill: var(--accent); }
  36%, 100% { fill: var(--ok); }
}

/* worker pods: autoscaling adds a replica and removes it again */
.dg-rep.is-scaling { animation: scaling 9s ease-in-out infinite; }

@keyframes scaling {
  0%, 30% { opacity: 0; }
  38%, 78% { opacity: 1; }
  86%, 100% { opacity: 0; }
}

@media (max-width: 560px) {
  .dg-label { font-size: 13.5px; }
  .dg-cluster-label { font-size: 12px; }
  .dg-sub { display: none; }
  .console-body { padding-inline: 6px; }
}


/* 8. Content sections ------------------------------------------------------ */

/* Problems: two columns, copy + terminal */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.split .section-head {
  margin-bottom: 0;
}

.split .h2 {
  font-size: clamp(2rem, 1.45rem + 1.6vw, 2.6rem);
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

.terminal {
  overflow: hidden;
  border: 1px solid #1c2438;
  border-radius: var(--radius-lg);
  background: #0b101c;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #d4dbe8;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #1c2438;
  font-size: 0.75rem;
  color: #8a93a8;
}

.terminal-dots {
  display: inline-flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #273049;
}

.terminal-body {
  display: grid;
  gap: 12px;
  padding: 20px 20px 24px;
}

.log {
  display: grid;
  grid-template-columns: auto 3.4rem minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  line-height: 1.55;
}

.log-time {
  color: #7d879e;
}

.log-lvl {
  justify-self: start;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.log-lvl--warn { color: #f5b544; background: rgba(245, 181, 68, 0.1); }
.log-lvl--crit { color: #ff7a7a; background: rgba(255, 122, 122, 0.1); }
.log-lvl--info { color: #8fa9ff; background: rgba(143, 169, 255, 0.12); }
.log-lvl--ok   { color: #4ade80; background: rgba(74, 222, 128, 0.1); }

.log--resolved {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px dashed #273049;
}

.log--resolved .log-msg {
  color: #fff;
}

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: -0.2em;
  background: #8fa9ff;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 560px) {
  .terminal-body {
    padding: 16px 14px 20px;
  }

  .log {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 10px;
  }

  .log-time {
    display: none;
  }
}

/* Services */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.card:hover {
  border-color: var(--accent-line);
}

.card-index {
  position: absolute;
  top: 26px;
  right: 28px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.card .h3 {
  margin-top: 22px;
}

.card p {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.card .tags {
  margin-top: auto;
  padding-top: 22px;
}

/* Approach: numbered steps joined by a line */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), var(--line-2) 80%, transparent);
}

.step {
  position: relative;
}

.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-line);
  border-radius: 10px;
  background: var(--section-bg);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
}

.step .h3 {
  margin-top: 24px;
}

.step p {
  margin-top: 10px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.step .step-meta {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 36px;
  }

  .steps::before {
    display: block;
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--accent-line), var(--line-2));
  }

  .step {
    padding-left: 60px;
  }

  .step-num {
    position: absolute;
    top: 0;
    left: 0;
  }

  .step .h3 {
    margin-top: 8px;
  }
}

/* Principles: intro + spec-sheet grid */

.aside-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.aside-layout .section-head {
  position: sticky;
  top: calc(var(--header-h) + 40px);
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .aside-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .aside-layout .section-head {
    position: static;
  }
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.principle .h3 {
  margin-top: 14px;
}

.principle p {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

@media (max-width: 600px) {
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .principle {
    padding: 24px 20px 28px;
  }
}

/* Engagements */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 960px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

.plan--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 27px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--btn-bg);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.plan .h3 {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}

.plan-desc {
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.plan .checks {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.plan-foot {
  margin-top: auto;
  padding-top: 28px;
}

.plan-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
}

.plan-meta .icon {
  width: 16px;
  height: 16px;
  color: var(--text-3);
}

/* Stack */

.stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .stack { grid-template-columns: minmax(0, 1fr); }
}

.stack-group {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.stack-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.stack-group .chips {
  margin-top: 16px;
}

/* FAQ */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover .faq-icon {
  border-color: var(--text-3);
  color: var(--text);
}

.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text-2);
  transition: transform 0.25s var(--ease), border-color 0.15s, color 0.15s;
}

.faq-icon .icon {
  width: 14px;
  height: 14px;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 52px 26px 0;
  color: var(--text-2);
  text-wrap: pretty;
}

@supports (interpolate-size: allow-keywords) {
  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s var(--ease), content-visibility 0.3s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}


/* 9. Contact & form -------------------------------------------------------- */

.contact-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 5vw, 80px);
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 0% 0%, #000, transparent 75%);
}

.contact-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -240px;
  left: -200px;
  width: 640px;
  height: 640px;
  background: radial-gradient(closest-side, var(--glow), transparent);
}

@media (max-width: 960px) {
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact-copy .section-head {
  margin-bottom: 0;
}

.next-steps {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.next-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
}

.next-step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.next-step strong {
  display: block;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.next-step p {
  margin-top: 2px;
  font-size: 0.9375rem;
  color: var(--text-2);
}

.contact-direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-direct-label {
  font-size: 0.875rem;
  color: var(--text-3);
}

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text);
}

.mail-link .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

.mail-link:hover {
  color: var(--accent);
}

.form {
  display: grid;
  gap: 18px;
  align-content: start;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
}

.field .optional {
  font-weight: 400;
  color: var(--text-3);
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder {
  color: var(--text-3);
  opacity: 1;
}

.input:hover {
  border-color: var(--text-3);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.input[aria-invalid="true"] {
  border-color: var(--crit-text);
}

.input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--crit-text) 22%, transparent);
}

textarea.input {
  height: auto;
  min-height: 140px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.select {
  position: relative;
}

.select .input {
  padding-right: 42px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.select .icon {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
}

.field-error {
  font-size: 0.8125rem;
  color: var(--crit-text);
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .form-foot .btn {
    width: 100%;
  }
}

.form-note {
  max-width: 34ch;
  font-size: 0.8125rem;
  color: var(--text-3);
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note a:hover {
  color: var(--text);
}

.form-status {
  font-size: 0.9375rem;
  color: var(--text-2);
}

.form-status:empty {
  display: none;
}

.form-status[data-state="ok"] { color: var(--ok-text); }
.form-status[data-state="error"] { color: var(--crit-text); }


/* 10. Footer --------------------------------------------------------------- */

.site-footer {
  padding-block: 64px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

.footer-tagline {
  max-width: 30ch;
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--text-2);
  text-wrap: balance;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* Legal pages use only the bottom row */
.footer-bottom:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a:hover {
  color: var(--text);
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
}


/* 11. Legal & error pages --------------------------------------------------- */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-hero .h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
}

.page-hero .lead {
  max-width: 40em;
  margin-top: 16px;
}

.prose {
  max-width: 720px;
  padding-block: 48px 112px;
  color: var(--text-2);
}

.prose h2 {
  margin-top: 48px;
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 28px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
}

.prose p,
.prose ul,
.prose address {
  margin-top: 14px;
}

.prose ul {
  padding-left: 1.25em;
}

.prose li + li {
  margin-top: 6px;
}

.prose address {
  font-style: normal;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose .updated {
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* Placeholders that must be replaced before going live */
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--warn) 20%, transparent);
  box-shadow: inset 0 -1px 0 var(--warn);
  color: var(--text);
}

.error-page {
  display: grid;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding-block: 56px 80px;
}

.error-inner {
  max-width: calc(680px + 2 * var(--gutter));
}

.error-inner .h1 {
  margin-top: 16px;
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
}

.error-page .terminal {
  margin-top: 32px;
}

.error-page .terminal-body {
  display: block;
  line-height: 1.7;
}

.error-page .terminal-body p + p {
  margin-top: 12px;
}

.err { color: #ff7a7a; font-weight: 600; }
.dim { color: #7d879e; white-space: pre-wrap; }

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}


/* 12. Motion ---------------------------------------------------------------- */

/* Scroll reveal. Only hides content once JS is running (html.js, set in
   theme.js). If main.js never marks the page ready, a fallback animation
   shows everything after 2.5s so nothing stays invisible. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js:not(.reveal-ready) [data-reveal] {
  animation: reveal-fallback 0s 2.5s forwards;
}

@keyframes reveal-fallback {
  to { opacity: 1; transform: none; }
}

/* Stagger items that sit side by side */
.cards > :nth-child(3n + 2),
.plans > :nth-child(3n + 2),
.stack > :nth-child(3n + 2),
.steps > :nth-child(4n + 2),
.principles > :nth-child(2n) {
  transition-delay: 0.08s;
}

.cards > :nth-child(3n + 3),
.plans > :nth-child(3n + 3),
.stack > :nth-child(3n + 3),
.steps > :nth-child(4n + 3) {
  transition-delay: 0.16s;
}

.steps > :nth-child(4n + 4) {
  transition-delay: 0.24s;
}

/* Terminal lines print one after another */
.js .terminal[data-reveal] .log {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.js .terminal[data-reveal].is-in .log {
  opacity: 1;
  transform: none;
}

.js .terminal[data-reveal] .log:nth-child(1) { transition-delay: 0.15s; }
.js .terminal[data-reveal] .log:nth-child(2) { transition-delay: 0.35s; }
.js .terminal[data-reveal] .log:nth-child(3) { transition-delay: 0.55s; }
.js .terminal[data-reveal] .log:nth-child(4) { transition-delay: 0.75s; }
.js .terminal[data-reveal] .log:nth-child(5) { transition-delay: 0.95s; }
.js .terminal[data-reveal] .log:nth-child(6) { transition-delay: 1.15s; }
.js .terminal[data-reveal] .log:nth-child(7) { transition-delay: 1.7s; }

.js:not(.reveal-ready) .terminal[data-reveal] .log {
  animation: reveal-fallback 0s 2.5s forwards;
}

@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;
    transition-delay: 0s !important;
  }

  .js [data-reveal],
  .js .terminal[data-reveal] .log {
    opacity: 1;
    transform: none;
  }

  .dg-pkt,
  .status-dot::after,
  .cursor {
    display: none;
  }

  .dg-rep.is-scaling {
    opacity: 1;
  }
}

@media print {
  .site-header,
  .skip-link,
  .hero-visual,
  .hero-bg,
  .theme-toggle {
    display: none !important;
  }

  .js [data-reveal],
  .js .terminal[data-reveal] .log {
    opacity: 1 !important;
    transform: none !important;
  }
}
