/* =====================================================================
   Gorian & Associates, Inc. x Brandcore: sales deck
   "Strata" system. The client's banded logo (sky, leaf, signal red and
   oxblood on black) supplies every accent. Dark "basalt" slides and light
   "limestone" slides; every text colour meets WCAG AAA (7:1) on the
   surface it sits on. One stylesheet, no override layers.
   ===================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/fonts/space-grotesk-500-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/plus-jakarta-sans-400-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-400-normal.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Logo strata, sampled from assets/client-logo.png (top to bottom) */
  --strata-sky: #31B0FF;
  --strata-leaf: #3CFA1A;
  --strata-red: #FF0608;
  --strata-oxblood: #8C1428;
  --strata: linear-gradient(90deg, var(--strata-sky) 0 25%, var(--strata-leaf) 25% 50%, var(--strata-red) 50% 75%, var(--strata-oxblood) 75% 100%);

  /* Basalt: dark slides */
  --basalt: #0B0C0E;
  --basalt-2: #131519;
  --basalt-3: #0E1013;
  --rule-dark: rgba(246, 244, 239, 0.14);
  --ivory: #F6F4EF;
  --fog: #CDD1D7;
  --mist: #A9B0BA;
  --sky-text: #6CC8FF;

  /* Limestone: light slides */
  --limestone: #F3F0E8;
  --limestone-2: #FBFAF6;
  --rule-light: rgba(16, 18, 21, 0.14);
  --ink: #101215;
  --slate: #353A42;
  --slate-2: #4A505A;
  --deep-sky: #07476E;

  --display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  /* 1px at the 1640 x 920 design frame. Desktop frames scale it below. */
  --s: 1px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #050607;
  color: var(--ivory);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; opacity: 1; filter: none; }
button, input { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--strata-sky); outline-offset: 3px; }

.ui-icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------------
   Slides and surfaces
   --------------------------------------------------------------------- */
.deck { position: relative; }

.slide {
  display: none;
  position: relative;
  color: var(--ivory);
  background:
    radial-gradient(calc(1100 * var(--s)) calc(620 * var(--s)) at 88% -12%, rgba(49, 176, 255, 0.07), transparent 62%),
    var(--basalt);
}

.slide.paper {
  color: var(--ink);
  background:
    radial-gradient(calc(1100 * var(--s)) calc(620 * var(--s)) at 90% -10%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--limestone);
}

.slide.active { display: grid; }

/* ---------------------------------------------------------------------
   Header: logo plate + typeset name, on every slide after the cover
   --------------------------------------------------------------------- */
.slide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(24 * var(--s));
  padding-bottom: calc(18 * var(--s));
  border-bottom: 1px solid var(--rule-dark);
}
.paper .slide-head { border-bottom-color: var(--rule-light); }

.header-brand {
  display: flex;
  align-items: center;
  gap: calc(18 * var(--s));
  min-width: 0;
}

/* The logo is a black square artwork, so its plate is exactly #000. */
.header-logo-pill {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(72 * var(--s));
  padding: calc(7 * var(--s)) calc(12 * var(--s)) calc(10 * var(--s));
  background: #000;
  border-radius: calc(11 * var(--s));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 calc(10 * var(--s)) calc(26 * var(--s)) rgba(0, 0, 0, 0.32);
  overflow: hidden;
}
.paper .header-logo-pill { box-shadow: 0 calc(10 * var(--s)) calc(24 * var(--s)) rgba(16, 18, 21, 0.18); }
.header-logo-pill::after,
.cover-badge::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(3 * var(--s));
  background: var(--strata);
}
.header-logo-pill img {
  height: 100%;
  width: auto;
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  gap: calc(6 * var(--s));
  line-height: 1.1;
  min-width: 0;
}
.header-wordmark b {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(24 * var(--s));
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.header-wordmark small {
  font-family: var(--mono);
  font-weight: 500;
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.paper .header-wordmark b { color: var(--ink); }
.paper .header-wordmark small { color: var(--slate-2); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--s));
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(13 * var(--s)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: right;
  color: var(--fog);
}
.section-tag::before {
  content: "";
  flex: none;
  width: calc(28 * var(--s));
  height: calc(4 * var(--s));
  border-radius: 2px;
  background: var(--strata);
}
.paper .section-tag { color: var(--slate); }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.slide-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(24 * var(--s));
  height: calc(64 * var(--s));
  border-top: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-weight: 500;
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.paper .slide-foot { border-top-color: var(--rule-light); color: var(--slate-2); }
.page {
  font-family: var(--mono);
  font-weight: 700;
  font-size: max(11px, calc(13 * var(--s)));
  letter-spacing: 0.14em;
  color: var(--fog);
}
.paper .page { color: var(--slate); }

/* ---------------------------------------------------------------------
   Type
   --------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: calc(12 * var(--s));
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(13.5 * var(--s)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-text);
}
.kicker::before {
  content: "";
  flex: none;
  width: calc(22 * var(--s));
  height: calc(4 * var(--s));
  border-radius: 2px;
  background: var(--strata);
}
.paper .kicker { color: var(--deep-sky); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ivory);
  text-wrap: balance;
}
.paper h1, .paper h2, .paper h3 { color: var(--ink); }
h1 em, h2 em { font-style: normal; color: var(--sky-text); }
.paper h1 em, .paper h2 em { color: var(--deep-sky); }

h1 { font-size: calc(60 * var(--s)); line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: calc(48 * var(--s)); line-height: 1.05; letter-spacing: -0.025em; }
h3 { font-size: calc(22 * var(--s)); line-height: 1.22; letter-spacing: -0.01em; }

.lead {
  font-size: max(14px, calc(19 * var(--s)));
  line-height: 1.55;
  color: var(--fog);
  text-wrap: pretty;
}
.paper .lead { color: var(--slate); }

.source {
  font-family: var(--mono);
  font-size: max(11px, calc(12 * var(--s)));
  letter-spacing: 0.06em;
  color: var(--mist);
  text-decoration: none;
}
.paper .source { color: var(--slate-2); }

/* ---------------------------------------------------------------------
   Browser frame (cover and slide 4)
   --------------------------------------------------------------------- */
.browser-window {
  border-radius: calc(14 * var(--s));
  overflow: hidden;
  background: var(--basalt-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 calc(30 * var(--s)) calc(70 * var(--s)) rgba(0, 0, 0, 0.55);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--s));
  height: calc(40 * var(--s));
  padding: 0 calc(16 * var(--s));
  background: #171A1F;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.browser-dots { display: flex; gap: calc(7 * var(--s)); flex: none; }
.b-dot { width: calc(11 * var(--s)); height: calc(11 * var(--s)); border-radius: 50%; }
.b-dot.red { background: #FF5F57; }
.b-dot.yellow { background: #FEBC2E; }
.b-dot.green { background: #28C840; }
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--s));
  max-width: 62%;
  height: calc(26 * var(--s));
  margin: 0 auto;
  padding: 0 calc(12 * var(--s));
  border-radius: calc(7 * var(--s));
  background: #0B0D10;
  font-family: var(--mono);
  font-size: max(11px, calc(12.5 * var(--s)));
  color: var(--fog);
  white-space: nowrap;
  overflow: hidden;
}
.browser-url .ui-icon { color: var(--sky-text); font-size: calc(13 * var(--s)); }
.browser-spacer { flex: none; width: calc(47 * var(--s)); }

/* ---------------------------------------------------------------------
   Slide 1: cover
   --------------------------------------------------------------------- */
.slide.cover.active {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(24 * var(--s));
  min-width: 0;
  padding: calc(52 * var(--s)) calc(52 * var(--s)) calc(60 * var(--s)) calc(72 * var(--s));
}

.cover-brand {
  display: flex;
  align-items: center;
  gap: calc(28 * var(--s));
  margin-bottom: calc(10 * var(--s));
}
.cover-badge {
  position: relative;
  flex: none;
  display: inline-flex;
  padding: calc(16 * var(--s)) calc(18 * var(--s)) calc(21 * var(--s));
  background: #000;
  border-radius: calc(16 * var(--s));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 calc(18 * var(--s)) calc(44 * var(--s)) rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.cover-badge::after { height: calc(5 * var(--s)); }
/* 140px is the artwork's native height: pixel-for-pixel at 1920 x 1080. */
.cover-badge img { height: calc(140 * var(--s)); width: auto; }

.cover-name { display: flex; flex-direction: column; gap: calc(10 * var(--s)); min-width: 0; }
.cover-name-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(30 * var(--s));
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.cover-name-sub {
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(14 * var(--s)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-text);
}
.cover-name-loc { font-size: max(13px, calc(16 * var(--s))); line-height: 1.4; color: var(--fog); }

.cover h1 { max-width: calc(620 * var(--s)); font-size: calc(56 * var(--s)); }
.cover h1 em { display: block; }
.cover .lead { max-width: calc(620 * var(--s)); }

.cover-facts { display: flex; flex-wrap: wrap; gap: calc(10 * var(--s)); }
.fact-chip {
  display: inline-flex;
  align-items: center;
  gap: calc(9 * var(--s));
  padding: calc(9 * var(--s)) calc(14 * var(--s));
  border-radius: 999px;
  background: var(--basalt-2);
  border: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-weight: 500;
  font-size: max(11px, calc(13.5 * var(--s)));
  color: var(--ivory);
  white-space: nowrap;
}
.fact-chip .ui-icon { color: var(--sky-text); font-size: calc(15 * var(--s)); }

.prepared {
  font-family: var(--mono);
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.hero-visual {
  position: relative;
  min-width: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(52 * var(--s)) calc(52 * var(--s)) calc(80 * var(--s));
  border-left: 1px solid var(--rule-dark);
  background:
    radial-gradient(80% 60% at 72% 28%, rgba(49, 176, 255, 0.1), transparent 70%),
    #07080A;
}
/* Genuine Three.js topographic field: ambient only, behind the showcase. */
#scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
}
#scene[data-webgl="unavailable"] { display: none; }

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--s));
  min-width: 0;
}
.stage-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--s));
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
}
.stage-label span:last-child { color: var(--mist); }
.hero-shot { aspect-ratio: 1376 / 768; background: #0B0F17; }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.proof-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(12 * var(--s));
}
.proof-tiles li {
  position: relative;
  padding: calc(18 * var(--s)) calc(18 * var(--s)) calc(16 * var(--s));
  background: rgba(19, 21, 25, 0.94);
  border: 1px solid var(--rule-dark);
  border-radius: calc(12 * var(--s));
  overflow: hidden;
}
.proof-tiles li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(3 * var(--s));
  background: var(--edge, var(--strata-sky));
}
.proof-tiles b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(34 * var(--s));
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ivory);
}
.proof-tiles span {
  display: block;
  margin-top: calc(8 * var(--s));
  font-size: max(12px, calc(14.5 * var(--s)));
  line-height: 1.4;
  color: var(--fog);
}

.cover .page {
  position: absolute;
  right: calc(30 * var(--s));
  bottom: calc(26 * var(--s));
  z-index: 2;
}

/* ---------------------------------------------------------------------
   Shared body
   --------------------------------------------------------------------- */
.slide-body {
  min-height: 0;
  display: grid;
  align-content: center;
  padding: calc(26 * var(--s)) 0;
}
.narrative-col {
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--s));
  min-width: 0;
}

.edge-sky { --edge: var(--strata-sky); }
.edge-leaf { --edge: var(--strata-leaf); }
.edge-red { --edge: var(--strata-red); }
.edge-oxblood { --edge: var(--strata-oxblood); }

/* ---------------------------------------------------------------------
   Slide 2: foundation (limestone)
   --------------------------------------------------------------------- */
.foundation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: calc(56 * var(--s));
  align-items: center;
}
.narrative-pillars { display: grid; gap: calc(12 * var(--s)); margin-top: calc(6 * var(--s)); }
.pillar-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(18 * var(--s));
  padding: calc(18 * var(--s)) calc(22 * var(--s));
  background: var(--limestone-2);
  border: 1px solid var(--rule-light);
  border-left: calc(4 * var(--s)) solid var(--edge, var(--strata-sky));
  border-radius: calc(12 * var(--s));
}
.pillar-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: max(12px, calc(15 * var(--s)));
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--deep-sky);
}
.pillar-card h3 { font-size: calc(21 * var(--s)); }
.pillar-card p {
  margin-top: calc(6 * var(--s));
  font-size: max(13px, calc(16.5 * var(--s)));
  line-height: 1.5;
  color: var(--slate);
}

/* Boring-log style record of the project types Gorian lists on gorian.net */
.strata-log {
  display: flex;
  flex-direction: column;
  background: var(--limestone-2);
  border: 1px solid var(--rule-light);
  border-radius: calc(16 * var(--s));
  box-shadow: 0 calc(24 * var(--s)) calc(60 * var(--s)) rgba(60, 44, 20, 0.12);
  overflow: hidden;
}
.log-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: calc(16 * var(--s));
  padding: calc(18 * var(--s)) calc(24 * var(--s)) calc(16 * var(--s));
  border-bottom: 1px solid var(--rule-light);
}
.log-head > div { display: flex; flex-direction: column; gap: calc(6 * var(--s)); }
.log-head span,
.log-foot {
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(12 * var(--s)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.log-head b {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(22 * var(--s));
  letter-spacing: -0.01em;
  color: var(--ink);
}
.log-head em {
  font-style: normal;
  font-family: var(--mono);
  font-weight: 700;
  font-size: max(11px, calc(13 * var(--s)));
  letter-spacing: 0.12em;
  color: var(--deep-sky);
}
.log-layers {
  list-style: none;
  margin: 0;
  padding: calc(16 * var(--s)) calc(24 * var(--s));
  counter-reset: layer;
}
.log-layers li {
  display: grid;
  grid-template-columns: calc(30 * var(--s)) calc(132 * var(--s)) minmax(0, 1fr);
  align-items: stretch;
  column-gap: calc(18 * var(--s));
  height: calc(50 * var(--s));
}
.log-layers li::before {
  counter-increment: layer;
  content: counter(layer, decimal-leading-zero);
  align-self: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(12 * var(--s)));
  color: var(--slate-2);
}
.lith {
  border-left: 1.5px solid rgba(16, 18, 21, 0.7);
  border-right: 1.5px solid rgba(16, 18, 21, 0.7);
  border-bottom: 1px solid rgba(16, 18, 21, 0.45);
  background: var(--fill);
}
.log-layers li:first-child .lith { border-top: 1.5px solid rgba(16, 18, 21, 0.7); }
.log-layers li:last-child .lith { border-bottom: 1.5px solid rgba(16, 18, 21, 0.7); }
.log-layers .layer-name {
  align-self: stretch;
  display: flex;
  align-items: center;
  border-bottom: 1px dashed rgba(16, 18, 21, 0.18);
  font-size: max(13px, calc(17 * var(--s)));
  font-weight: 500;
  color: var(--ink);
}
.log-layers li:last-child .layer-name { border-bottom: 0; }
.f-sand { --fill: radial-gradient(circle at 2px 2px, rgba(70, 50, 25, 0.5) 1px, transparent 1.5px) 0 0 / 8px 8px, #E6D6B2; }
.f-clay { --fill: repeating-linear-gradient(0deg, transparent 0 7px, rgba(70, 35, 15, 0.38) 7px 8px), #C9946A; }
.f-silt { --fill: repeating-linear-gradient(0deg, rgba(40, 40, 40, 0.3) 0 1px, transparent 1px 5px), #C2BBAA; }
.f-lime { --fill: repeating-linear-gradient(0deg, rgba(50, 42, 28, 0.45) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(50, 42, 28, 0.4) 0 1px, transparent 1px 24px), #E9E3D3; }
.f-shale { --fill: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 4px), #6F6862; }
.f-cong { --fill: radial-gradient(circle at 7px 7px, transparent 3px, rgba(50, 34, 18, 0.6) 3.4px, transparent 4.3px) 0 0 / 15px 15px, #B48F66; }
.f-soil { --fill: radial-gradient(circle at 3px 3px, rgba(0, 0, 0, 0.38) 1.2px, transparent 1.7px) 0 0 / 7px 7px, #7C664C; }
.f-sandstone { --fill: radial-gradient(circle at 2px 2px, rgba(90, 60, 20, 0.45) 0.9px, transparent 1.3px) 0 0 / 6px 6px, #D9C193; }
.f-bedrock { --fill: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px 7px), #403A35; }
.log-foot {
  padding: calc(14 * var(--s)) calc(24 * var(--s));
  border-top: 1px solid var(--rule-light);
  font-weight: 500;
}

/* ---------------------------------------------------------------------
   Slide 3: growth opportunities
   --------------------------------------------------------------------- */
.journey-head { display: flex; flex-direction: column; gap: calc(16 * var(--s)); max-width: calc(1180 * var(--s)); }
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(22 * var(--s));
  margin-top: calc(38 * var(--s));
}
.diagnostic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--s));
  padding: calc(28 * var(--s)) calc(26 * var(--s)) calc(24 * var(--s));
  background: var(--basalt-2);
  border: 1px solid var(--rule-dark);
  border-radius: calc(16 * var(--s));
  overflow: hidden;
}
.diagnostic-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(4 * var(--s));
  background: var(--edge, var(--strata-sky));
}
.diag-head { display: flex; align-items: baseline; justify-content: space-between; gap: calc(12 * var(--s)); }
.diag-step {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(46 * var(--s));
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sky-text);
}
.diag-tag {
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.diagnostic-card h3 { font-size: calc(24 * var(--s)); }
.diagnostic-card p {
  font-size: max(14px, calc(17.5 * var(--s)));
  line-height: 1.5;
  color: var(--fog);
}
.shift {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: calc(12 * var(--s));
  margin: auto 0 0;
  padding: calc(14 * var(--s)) calc(16 * var(--s));
  border-radius: calc(10 * var(--s));
  background: var(--basalt-3);
  border: 1px solid var(--rule-dark);
}
.shift dt {
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(11.5 * var(--s)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}
.shift dd {
  margin: calc(5 * var(--s)) 0 0;
  font-size: max(12px, calc(14.5 * var(--s)));
  font-weight: 500;
  line-height: 1.35;
  color: var(--ivory);
}
.shift > svg { font-size: calc(20 * var(--s)); color: var(--sky-text); }

/* ---------------------------------------------------------------------
   Slide 4: website upgrade
   --------------------------------------------------------------------- */
.website-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: calc(56 * var(--s));
  align-items: center;
}
.concept-notes { display: grid; gap: calc(12 * var(--s)); margin-top: calc(6 * var(--s)); }
.concept-note-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(18 * var(--s));
  padding: calc(18 * var(--s)) calc(22 * var(--s));
  background: var(--basalt-2);
  border: 1px solid var(--rule-dark);
  border-left: calc(4 * var(--s)) solid var(--edge, var(--strata-sky));
  border-radius: calc(12 * var(--s));
}
.c-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: max(12px, calc(15 * var(--s)));
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--sky-text);
}
.concept-note-item b {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(21 * var(--s));
  line-height: 1.25;
  color: var(--ivory);
}
.concept-note-item p {
  margin-top: calc(5 * var(--s));
  font-size: max(13px, calc(16.5 * var(--s)));
  line-height: 1.5;
  color: var(--fog);
}
.mockup-col {
  width: calc(clamp(300px, 42vh, 440px) * 1376 / 768);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: calc(14 * var(--s));
}
.mock-hero-stage {
  height: clamp(300px, 42vh, 440px);
  overflow: hidden;
  background: #0B0F17;
}
.mock-hero-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.mock-caption {
  font-family: var(--mono);
  font-weight: 500;
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  text-align: center;
}

/* ---------------------------------------------------------------------
   Slide 5: before and after
   --------------------------------------------------------------------- */
.proof-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: calc(48 * var(--s));
  align-items: end;
}
.proof-head > div { display: flex; flex-direction: column; gap: calc(14 * var(--s)); }
.comparison {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: calc(36 * var(--s));
  margin-top: calc(26 * var(--s));
}
.case-frame {
  display: flex;
  flex-direction: column;
  border-radius: calc(14 * var(--s));
  overflow: hidden;
  background: var(--basalt-3);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 calc(22 * var(--s)) calc(54 * var(--s)) rgba(0, 0, 0, 0.45);
}
.case-bar {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--s));
  height: calc(40 * var(--s));
  padding: 0 calc(14 * var(--s));
  background: #171A1F;
}
.case-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: max(11px, calc(12.5 * var(--s)));
  color: var(--fog);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-chip {
  flex: none;
  padding: calc(4 * var(--s)) calc(11 * var(--s));
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: max(11px, calc(12 * var(--s)));
  letter-spacing: 0.14em;
  color: var(--ivory);
  background: #3A3F47;
}
.case-chip.after { color: #06080A; background: var(--strata-sky); }
.case-viewport {
  position: relative;
  height: clamp(280px, 38vh, 400px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #FFFFFF;
}
.case-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.035);
  transform-origin: center top;
}
.case-frame figcaption {
  display: flex;
  flex-direction: column;
  gap: calc(5 * var(--s));
  padding: calc(14 * var(--s)) calc(18 * var(--s)) calc(16 * var(--s));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.case-frame figcaption b {
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}
.case-frame.is-after figcaption b { color: var(--sky-text); }
.case-frame figcaption span { font-size: max(13px, calc(16 * var(--s))); line-height: 1.45; color: var(--ivory); }

/* ---------------------------------------------------------------------
   Slide 6: roadmap (limestone)
   --------------------------------------------------------------------- */
.exec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: calc(48 * var(--s));
  align-items: end;
}
.exec-head > div { display: flex; flex-direction: column; gap: calc(14 * var(--s)); }
.exec-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(22 * var(--s));
  margin-top: calc(30 * var(--s));
}
.exec-phase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(13 * var(--s));
  padding: calc(28 * var(--s)) calc(26 * var(--s)) calc(24 * var(--s));
  background: var(--limestone-2);
  border: 1px solid var(--rule-light);
  border-radius: calc(16 * var(--s));
  overflow: hidden;
}
.exec-phase-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(4 * var(--s));
  background: var(--edge, var(--strata-sky));
}
.exec-phase-card.featured {
  background: var(--basalt);
  border-color: transparent;
  box-shadow: 0 calc(24 * var(--s)) calc(60 * var(--s)) rgba(16, 18, 21, 0.28);
}
.exec-card-top { display: flex; align-items: center; justify-content: space-between; gap: calc(12 * var(--s)); }
.exec-phase-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: max(11px, calc(13 * var(--s)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-sky);
}
.exec-duration-pill {
  padding: calc(5 * var(--s)) calc(11 * var(--s));
  border-radius: 999px;
  background: #E6E0D2;
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(12.5 * var(--s)));
  letter-spacing: 0.06em;
  color: var(--ink);
  white-space: nowrap;
}
.exec-phase-card h3 { font-size: calc(24 * var(--s)); }
.exec-phase-card > p {
  font-size: max(13px, calc(16.5 * var(--s)));
  line-height: 1.5;
  color: var(--slate);
}
.exec-deliverables {
  list-style: none;
  display: grid;
  gap: calc(10 * var(--s));
  margin: auto 0 0;
  padding: calc(15 * var(--s)) 0 0;
  border-top: 1px solid var(--rule-light);
}
.exec-deliverables li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: calc(10 * var(--s));
  font-size: max(13px, calc(15.5 * var(--s)));
  line-height: 1.42;
  color: var(--ink);
}
.exec-deliverables .ui-icon { margin-top: calc(3 * var(--s)); font-size: calc(16 * var(--s)); color: var(--deep-sky); }
.featured .exec-phase-num { color: var(--sky-text); }
.featured .exec-duration-pill { background: #262A31; color: var(--ivory); }
.paper .featured h3 { color: var(--ivory); }
.featured > p { color: var(--fog); }
.featured .exec-deliverables { border-top-color: var(--rule-dark); }
.featured .exec-deliverables li { color: var(--ivory); }
.featured .exec-deliverables .ui-icon { color: var(--sky-text); }

.exec-footer-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: calc(22 * var(--s));
  background: var(--limestone-2);
  border: 1px solid var(--rule-light);
  border-radius: calc(12 * var(--s));
}
.exec-footer-bar > div {
  display: flex;
  align-items: baseline;
  gap: calc(12 * var(--s));
  padding: calc(14 * var(--s)) calc(22 * var(--s));
}
.exec-footer-bar > div + div { border-left: 1px solid var(--rule-light); }
.exec-footer-bar b {
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(26 * var(--s));
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.exec-footer-bar span { font-size: max(12px, calc(15 * var(--s))); color: var(--slate); }

/* ---------------------------------------------------------------------
   Slide 7: partner sign-off
   --------------------------------------------------------------------- */
.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: calc(52 * var(--s));
  align-items: center;
}
.partner-card {
  display: grid;
  grid-template-columns: calc(136 * var(--s)) minmax(0, 1fr);
  gap: calc(26 * var(--s));
  align-items: start;
  margin-top: calc(8 * var(--s));
  padding: calc(26 * var(--s));
  background: var(--basalt-2);
  border: 1px solid var(--rule-dark);
  border-radius: calc(18 * var(--s));
}
/* Edge-to-edge cover crop, no frame or ring. */
.partner-avatar-wrap {
  width: calc(136 * var(--s));
  height: calc(136 * var(--s));
  border-radius: calc(16 * var(--s));
  overflow: hidden;
  box-shadow: 0 calc(14 * var(--s)) calc(34 * var(--s)) rgba(0, 0, 0, 0.45);
}
.partner-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.partner-details { display: flex; flex-direction: column; min-width: 0; }
.partner-meta-kicker {
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(12 * var(--s)));
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky-text);
}
.partner-name-heading {
  margin-top: calc(8 * var(--s));
  font-family: var(--display);
  font-weight: 600;
  font-size: calc(32 * var(--s));
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ivory);
}
.partner-role-sub { margin-top: calc(4 * var(--s)); font-size: max(13px, calc(15.5 * var(--s))); color: var(--fog); }
.partner-quote {
  margin-top: calc(16 * var(--s));
  padding-left: calc(16 * var(--s));
  border-left: calc(3 * var(--s)) solid var(--strata-sky);
  font-size: max(14px, calc(17.5 * var(--s)));
  line-height: 1.55;
  color: var(--ivory);
}
.partner-contact-pills { display: flex; flex-wrap: wrap; gap: calc(8 * var(--s)); margin-top: calc(18 * var(--s)); }
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--s));
  padding: calc(8 * var(--s)) calc(13 * var(--s));
  border-radius: 999px;
  background: var(--basalt-3);
  border: 1px solid var(--rule-dark);
  font-family: var(--mono);
  font-weight: 500;
  font-size: max(11px, calc(13 * var(--s)));
  color: var(--ivory);
  white-space: nowrap;
  text-decoration: none;
}
.partner-pill .ui-icon { font-size: calc(15 * var(--s)); color: var(--sky-text); }

.request {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--s));
  padding: calc(32 * var(--s)) calc(30 * var(--s)) calc(28 * var(--s));
  background: var(--basalt-2);
  border: 1px solid var(--rule-dark);
  border-radius: calc(18 * var(--s));
  overflow: hidden;
}
.request::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(4 * var(--s));
  background: var(--strata);
}
.request h3 { font-size: calc(46 * var(--s)); line-height: 1; letter-spacing: -0.03em; }
.request > p { font-size: max(14px, calc(17.5 * var(--s))); line-height: 1.5; color: var(--fog); }
.suggestions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--s)); }
.suggestions button {
  height: calc(50 * var(--s));
  min-height: 44px;
  border-radius: calc(10 * var(--s));
  border: 1px solid rgba(246, 244, 239, 0.24);
  background: var(--basalt-3);
  color: var(--ivory);
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(13 * var(--s)));
  letter-spacing: 0.08em;
  cursor: pointer;
}
.suggestions button:hover { border-color: var(--strata-sky); }
.picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(10 * var(--s)); }
.picker-col { display: flex; flex-direction: column; gap: calc(7 * var(--s)); min-width: 0; }
.picker-col label {
  font-family: var(--mono);
  font-weight: 600;
  font-size: max(11px, calc(11.5 * var(--s)));
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}
.date-control {
  display: flex;
  height: calc(50 * var(--s));
  min-height: 44px;
  border: 1px solid rgba(246, 244, 239, 0.24);
  border-radius: calc(10 * var(--s));
  background: var(--basalt-3);
  overflow: hidden;
}
.date-control input {
  flex: 1;
  min-width: 0;
  padding: 0 calc(12 * var(--s));
  border: 0;
  background: transparent;
  color: var(--ivory);
  color-scheme: dark;
  font-family: var(--mono);
  font-size: max(13px, calc(15 * var(--s)));
}
.date-control input::-webkit-calendar-picker-indicator { display: none; }
.date-control button {
  flex: none;
  width: calc(50 * var(--s));
  min-width: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 1px solid rgba(246, 244, 239, 0.18);
  background: transparent;
  color: var(--sky-text);
  font-size: calc(19 * var(--s));
  cursor: pointer;
}
#picker-help { font-size: max(13px, calc(14 * var(--s))); color: var(--sky-text); }
#contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--s));
  height: calc(58 * var(--s));
  min-height: 48px;
  border-radius: calc(12 * var(--s));
  background: var(--strata-sky);
  color: #06080A;
  font-family: var(--mono);
  font-weight: 700;
  font-size: max(12px, calc(14.5 * var(--s)));
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 calc(14 * var(--s)) calc(30 * var(--s)) rgba(49, 176, 255, 0.22);
}
#contact:hover { background: #5CC0FF; }
#contact .ui-icon { font-size: calc(18 * var(--s)); }
.request small { font-size: max(12px, calc(13.5 * var(--s))); line-height: 1.5; color: var(--mist); }
.print-contact { display: none; }

/* ---------------------------------------------------------------------
   Presentation controls
   --------------------------------------------------------------------- */
.controls {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(11, 12, 14, 0.94);
  border: 1px solid rgba(246, 244, 239, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.controls button {
  display: inline-grid;
  place-items: center;
  height: 36px;
  min-width: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  font-size: 17px;
  cursor: pointer;
}
.controls button:hover { background: rgba(246, 244, 239, 0.1); }
#counter {
  min-width: 58px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ivory);
}
#play {
  padding: 0 14px;
  white-space: nowrap;
  border: 1px solid rgba(49, 176, 255, 0.6);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
}

/* =====================================================================
   Framed presentation layout: desktop screens and print
   ===================================================================== */
@media print, screen and (min-width: 1024px) and (min-height: 600px) {
  .slide:not(.cover).active {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: calc(40 * var(--s)) calc(72 * var(--s)) 0;
  }
}

@media screen and (min-width: 1024px) and (min-height: 600px) {
  :root { --s: min(1px, 0.0989vh, 0.0585vw); }

  html, body { height: 100%; overflow: hidden; }
  body {
    display: grid;
    place-items: center;
    background: radial-gradient(120% 90% at 50% 18%, #191C22 0%, #07080A 72%);
  }
  .deck {
    width: min(96vw, 1640px);
    height: min(91vh, 920px);
    border-radius: calc(18 * var(--s));
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 36px 100px rgba(0, 0, 0, 0.65);
  }
  .slide { height: 100%; overflow: hidden; }
  /* Sits in the centre of each slide's footer band, inside the frame. */
  .controls { bottom: calc((100vh - min(91vh, 920px)) / 2 + (64 * var(--s) - 48px) / 2); }
}

/* =====================================================================
   Flowing layout: phones, tablets and short windows
   ===================================================================== */
@media (max-width: 1023.98px), (max-height: 599.98px) {
  .slide.active { display: block; padding: 20px 18px 104px; }
  .slide.cover.active { padding: 0 0 104px; }
  .slide-head { flex-wrap: wrap; gap: 14px; }
  .section-tag { text-align: left; }
  .slide-body { padding: 26px 0 0; }
  .slide-foot { height: auto; margin-top: 28px; padding-top: 16px; flex-wrap: wrap; gap: 8px 16px; }

  h1 { font-size: clamp(34px, 8.6vw, 54px); }
  h2 { font-size: clamp(28px, 7vw, 42px); }
  .request h3 { font-size: clamp(32px, 8vw, 44px); }

  .hero-copy { padding: 28px 18px 8px; }
  .cover-brand { flex-wrap: wrap; gap: 18px; }
  .cover-badge img { height: clamp(96px, 30vw, 140px); }
  .hero-visual { padding: 24px 18px 28px; border-left: 0; }
  .stage-label { flex-wrap: wrap; }
  .cover .page { position: static; display: block; padding: 0 18px; }

  .foundation-grid,
  .website-grid,
  .proof-head,
  .exec-head,
  .close-grid,
  .diagnostic-grid,
  .exec-cards-grid,
  .exec-footer-bar,
  .comparison { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .proof-tiles { grid-template-columns: minmax(0, 1fr); }
  .exec-footer-bar > div + div { border-left: 0; border-top: 1px solid var(--rule-light); }

  .log-layers { padding: 12px 14px; }
  .log-layers li { grid-template-columns: 26px 56px minmax(0, 1fr); column-gap: 12px; height: auto; min-height: 46px; }
  .log-head { flex-wrap: wrap; padding: 16px; }
  .log-foot { padding: 12px 16px; }

  .mockup-col { width: 100%; }
  .mock-hero-stage { height: auto; aspect-ratio: 1376 / 768; }
  .comparison { justify-content: stretch; }
  .case-viewport { height: auto; width: 100%; }
  .browser-url { max-width: none; }

  .partner-card { grid-template-columns: minmax(0, 1fr); }
  .partner-avatar-wrap { width: 120px; height: 120px; }
  .suggestions, .picker-grid { grid-template-columns: minmax(0, 1fr); }
  .fact-chip, .partner-pill { white-space: normal; }
  #contact { height: auto; padding: 15px 18px; text-align: center; letter-spacing: 0.08em; }
}

/* =====================================================================
   Print: one 1640 x 920 page per slide
   ===================================================================== */
@media print {
  @page { size: 1640px 920px; margin: 0; }
  :root { --s: 1px; }
  html, body { background: none; }
  .controls, #scene { display: none !important; }
  .deck { width: 1640px; }
  .slide, .slide.active {
    display: grid !important;
    width: 1640px;
    height: 920px;
    overflow: hidden;
    break-after: page;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .slide.cover {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .slide:not(.cover) { grid-template-rows: auto minmax(0, 1fr) auto; padding: 40px 72px 0; }
  .slide:last-child { break-after: auto; }
  .screen-request, #contact { display: none !important; }
  .print-contact {
    display: block;
    font-family: var(--mono);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ivory);
  }
}
