/* Home opening: pitch black, the title fixed in space, then the sky drops through clouds into paper (sky.js). */

.sky {
  position: relative;
  height: 395vh;
  background: #f4ede0;
}

.sky.is-still {
  height: 100lvh;
}

.sky__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  isolation: isolate;
  color: #f4ede0;
  background: #14213d;
}

/* Once the screen is cream there must be no navy left to peek out at the edge. */
.sky.is-cream .sky__stage {
  background: #f4ede0;
}

.sky__gl {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.sky__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(38px, 6.9vw, 150px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  pointer-events: none;
}

.sky__t {
  display: block;
  padding: 0.05em 0.04em 0.2em;
  white-space: nowrap;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* The line that travels with the clouds */
.sky__mid {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: 92vw;
  margin: 0;
  padding: 0.1em 0.2em 0.2em;
  color: transparent;
  background-image: linear-gradient(353deg, #14213d calc(var(--cross, -20%) - 9%), #f4ede0 calc(var(--cross, -20%) + 9%));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Poppins", sans-serif;
  font-size: clamp(36px, 6.2vw, 120px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-align: center;
  will-change: transform, opacity;
}

/* Once solid, the dot mask is no longer needed. */
/* The hero line: two calm serif lines, with one gold word. */
.sky__mid {
  font-family: var(--serif);
  font-size: clamp(24px, min(9.4vw, 10.5vh, 24px + 4vw), 110px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
}

/* Gold while it sits on the navy, then navy with the rest of the line as the glow rises past it.
   It is the lower half of the line, so the crossing point runs twice as fast across it. */
.sky__idea {
  background-image: linear-gradient(353deg, #14213d calc(var(--cross, -20%) * 2 - 18%), #edb96f calc(var(--cross, -20%) * 2 + 18%));
  -webkit-background-clip: text;
  background-clip: text;
}

.sky.mid-solid .sky__mid {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Until sky.js has set up its masks, keep the title and paper out of sight. */
@media (scripting: enabled) {
  .sky:not(.is-ready) .sky__title,
  .sky:not(.is-ready) .sky__mid {
    visibility: hidden;
  }
}

/* The stage ends on the same cream as the page, so there is no edge: the next section simply follows the line up. */
.sky + .ed-page {
  position: relative;
  z-index: 1;
  padding-top: 0;
}

.sky + .ed-page #story {
  padding-top: 0;
}

/* ---------- Top bar while it sits over the black ---------- */
.ed-top a,
.ed-clock,
.ed-btn {
  transition: color 0.4s ease, background 0.4s ease;
}

.ed-logo img {
  transition: filter 0.4s ease;
}

body.sky-dark .ed-top {
  color: #f4ede0;
}

body.sky-dark .ed-top .ed-btn {
  color: #f4ede0;
  background: rgba(244, 237, 224, 0.14);
}

body.sky-dark .ed-clock::before {
  background: #f4ede0;
}

body.sky-dark .ed-logo img {
  filter: invert(1);
}

body.sky-dark .ed-top .scroll-progress {
  color: #f4ede0;
  background: conic-gradient(#e0a23c calc(var(--scroll-progress) * 1%), rgba(244, 237, 224, 0.25) 0);
}

body.sky-dark .ed-top .scroll-progress::before {
  background: rgba(20, 33, 61, 0.85);
}

body.sky-dark .progressive-blur.top-blur::after {
  opacity: 0;
}

@media (max-width: 1023px) {
  .sky {
  }

  .sky__title {
    font-size: 10.8vw;
  }
}

/* The whole nav waits for the title, then fades in together. */
body:has([data-sky]) .site-header {
  transition: opacity 0.7s ease;
}

@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  body.nav-wait .site-header {
    opacity: 0;
    animation: sky-nav-safety 0s linear 9.5s forwards;
  }
}

@keyframes sky-nav-safety {
  to { opacity: 1; }
}

/* ---------- The swarm: named cursors build the title on the black (swarm.js) ---------- */
.sky__t {
  transition: color 0.6s ease;
}

.sky.is-unfilled .sky__t {
  color: #6c7690;
}

/* Above the nav too, since the crew builds that as well (swarm.js moves this to the end of the body). */
.sky__swarm {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.px-cursor {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.px-cursor svg {
  display: block;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
  transition: transform 0.15s ease;
}

.px-cursor .px-beam,
.px-cursor.is-typing .px-arrow {
  display: none;
}

.px-cursor.is-typing .px-beam {
  display: block;
}

.px-cursor.is-press svg {
  transform: scale(0.85);
}

.px-cursor__tag {
  position: absolute;
  top: 16px;
  left: 14px;
  padding: 3px 7px;
  color: #f4ede0;
  font: 600 11px/1.2 var(--sans);
  white-space: nowrap;
  background: var(--tint);
  border-radius: 3px 8px 8px 8px;
}

.px-sel {
  position: absolute;
  top: 0;
  left: 0;
  border: 1.5px solid var(--tint);
  background: color-mix(in srgb, var(--tint) 7%, transparent);
}

.px-sel i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: #f4ede0;
  border: 1.5px solid var(--tint);
}

.px-sel i:nth-child(1) { top: -4px; left: -4px; }
.px-sel i:nth-child(2) { top: -4px; right: -4px; }
.px-sel i:nth-child(3) { bottom: -4px; left: -4px; }
.px-sel i:nth-child(4) { bottom: -4px; right: -4px; }

.px-sel b {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  padding: 2px 5px;
  color: #f4ede0;
  font: 600 10px/1.2 var(--sans);
  white-space: nowrap;
  background: var(--tint);
  border-radius: 2px;
  transform: translateX(-50%);
}

.px-caret {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  background: var(--tint);
  animation: px-blink 0.8s steps(1) infinite;
}

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

.px-guide {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--tint);
}

/* Keep the title out of sight until the swarm is ready; a timer reveals it if the script fails. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .sky:not(.is-armed) .sky__t {
    visibility: hidden;
    animation: sky-safety 0s linear 3.5s forwards;
  }
}

/* The nav waits for the title on Home; the same timer shows it if the script fails. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  body.nav-wait .site-header {
    visibility: hidden;
    animation: sky-safety 0s linear 9.5s forwards;
  }
}

@keyframes sky-safety {
  to { visibility: visible; }
}

/* ---------- Citywalk feature: louvres that open with the scroll (citywalk.js) ---------- */
.cw {
  position: relative;
  display: block;
  margin-top: 48px;
  aspect-ratio: 1672 / 941;
  perspective: 1400px;
  border-radius: 10px;
  overflow: hidden;
  isolation: isolate;
}

.cw__base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cw.is-louvred .cw__base {
  visibility: hidden;
}

.cw__slat {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  transform-origin: 50% 50%;
  will-change: transform;
}

.cw__slat img {
  position: absolute;
  top: 0;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  will-change: transform;
}

/* Light falling across a turned slat */
.cw__slat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 237, 224, 0.28), rgba(20, 33, 61, 0.06) 42%, rgba(20, 33, 61, 0.55));
  opacity: var(--shade, 1);
  pointer-events: none;
}

.cw__tag {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--paper);
  border-radius: 3px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.cw.is-open .cw__tag,
.cw:not(.is-louvred) .cw__tag {
  opacity: 1;
  transform: none;
}

.cw__lead {
  max-width: 820px;
  margin: 44px 0 0;
  font-size: clamp(26px, 2.9vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.ed-section .cw__facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  margin-top: 36px;
}

@media (max-width: 1023px) {
  .ed-section .cw__facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- What we do: six cards, one for each step down the hero gradient (home-cards.js) ---------- */
.hw-deck {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hw-card {
  --bg: #14213d;
  --fg: #f4ede0;
  --soft: rgba(244, 237, 224, 0.74);
  position: sticky;
  top: calc(104px + var(--i) * 14px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 28px;
  min-height: 480px;
  margin-bottom: 22px;
  padding: 30px;
  color: var(--fg);
  isolation: isolate;
  border-radius: 24px;
  box-shadow: 0 -12px 34px rgba(20, 33, 61, 0.14);
  transform-origin: 50% 0;
  will-change: transform;
}

/* One tall gradient, cut across the six cards, so the stack reads as the hero laid out in slices. */
.hw-card::before,
.hw-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hw-card::before {
  background: url("deck-gradient.webp") 0 calc(var(--i) * 20%) / 100% 600% no-repeat;
}

/* The cards are a clean gradient, with no grain on top. */
.hw-card::after {
  content: none;
}

.hw-card > * {
  position: relative;
  z-index: 1;
}

.hw-card:nth-child(n + 3) { --fg: #14213d; --bg: #f4ede0; --soft: rgba(20, 33, 61, 0.84); }

.hw-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hw-card__n {
  font: 400 clamp(64px, 7vw, 104px)/0.8 var(--serif);
  letter-spacing: -0.03em;
}

.hw-card h3 {
  margin: auto 0 12px;
  padding-top: 40px;
  font-size: clamp(30px, 2.9vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
}

.hw-card p:not([class]) {
  max-width: 34ch;
  margin: 0 0 22px;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hw-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--fg);
  border-radius: 999px;
  transition: transform 0.35s var(--ease);
}

.hw-card__more svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s var(--ease);
}

.hw-card__more:hover {
  transform: translateY(-2px);
}

.hw-card__more:hover svg {
  transform: translate(2px, -2px);
}

.hw-card__show {
  position: relative;
  min-width: 0;
  min-height: 420px;
}

@media (max-width: 1023px) {
  .hw-card {
    top: calc(118px + var(--i) * 8px);
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    margin-bottom: 14px;
    padding: 20px;
    border-radius: 20px;
  }

  .hw-card h3 {
    margin-top: 0;
    padding-top: 18px;
    font-size: 28px;
  }

  .hw-card p:not([class]) {
    margin-bottom: 14px;
    font-size: 16px;
  }

  .hw-card__n {
    font-size: 54px;
  }

  .hw-card__show {
    min-height: 300px;
  }
}

@media (max-width: 1023px) {
  /* Phones stack words over the demo, so only the calm left of each slice is used. */
  .hw-card::before {
    background-size: 260% 600%;
  }

  .hw-card::after {
    opacity: 0.3;
  }

  .hw-card__show {
    min-height: 316px;
  }
}

/* With reduced motion, the cards are a plain column. */
@media (prefers-reduced-motion: reduce) {
  .hw-card {
    position: relative;
    top: 0;
  }
}

.ed .hw-card__more {
  color: var(--bg);
}

/* The facts sit in one row under the story. */
@media (min-width: 1024px) {
  .sky + .ed-page #story .ed-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 8px 0 26px;
  }
}

@media (max-width: 1023px) {
  .sky + .ed-page #story .ed-facts {
    margin: 8px 0 22px;
  }
}

/* A link that belongs to one fact sits inside it, not on a row of its own. */
.ed-facts dd .ed-facts__link {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin-top: 12px;
}

/* ---------- The stories inside the cards (home-cards.js). Drawn on a 420 x 350 board, scaled to fit. ---------- */
.hw-board {
  position: absolute;
  top: 0;
  left: 0;
  width: 420px;
  height: 350px;
  color: #14213d;
  font-family: var(--sans);
  letter-spacing: -0.02em;
  transform-origin: 0 0;
}

.hw-board > *,
.hw-board .px-cursor {
  position: absolute;
}

.hw-board .px-cursor {
  z-index: 9;
}

.hw-board b,
.hw-board em,
.hw-board small {
  font-style: normal;
}

.hw-cap {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 0;
  padding: 7px 16px;
  color: #14213d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  background: #fbf7ef;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(20, 33, 61, 0.16);
}

.hw-cap span {
  display: block;
}

.d-sheet {
  background: #fbf7ef;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(20, 33, 61, 0.24);
}

.d-mark {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
}

/* Branding */
.db-card {
  top: 50px;
  left: 85px;
  width: 250px;
  height: 150px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(20, 33, 61, 0.28);
}

.db-plain,
.db-final {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
}

.db-plain {
  color: #666;
  font-family: "Times New Roman", serif;
  letter-spacing: 0;
}

.db-plain b { font-size: 22px; font-weight: 400; }
.db-plain small { margin-top: 4px; font-size: 13px; }

.db-final {
  visibility: hidden;
  opacity: 0;
  color: #f4ede0;
}

.db-final .d-mark {
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  color: #e6ad61;
}

.db-final .d-mark circle,
.db-final .d-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.db-final b { font: 600 26px/1 "Poppins", sans-serif; letter-spacing: -0.04em; }
.db-final small { margin-top: 6px; color: rgba(244, 237, 224, 0.75); font-size: 13px; }

.db-swatches {
  top: 226px;
  left: 142px;
  display: flex;
  gap: 12px;
}

.db-swatches i {
  width: 38px;
  height: 38px;
  border: 3px solid #fbf7ef;
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(20, 33, 61, 0.28);
}

.db-item {
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(20, 33, 61, 0.26);
  transform: translateY(36px);
}

.db-item b { font: 600 20px/1 "Poppins", sans-serif; letter-spacing: -0.04em; }

.db-social {
  top: 16px;
  left: 262px;
  flex-direction: column;
  gap: 8px;
  width: 136px;
  height: 136px;
  color: #14213d;
  background: #e6ad61;
}

.db-social .d-mark { width: 54px; height: 54px; }

.db-sign {
  top: 196px;
  left: 74px;
  gap: 12px;
  width: 280px;
  height: 120px;
  color: #14213d;
  background: #fbf7ef;
}

.db-sign .d-mark { width: 46px; height: 46px; color: #bd784d; }
.db-sign b { font-size: 30px; }

/* Strategy */
.ds-panel {
  inset: 0;
  padding: 14px 18px;
}

.ds-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.ds-title--low { margin-top: 6px; color: #626a84; }

.ds-chart {
  display: block;
  width: 100%;
  height: 108px;
  margin-top: 4px;
  overflow: visible;
}

.ds-flat, .ds-up { fill: none; stroke-linecap: round; }
.ds-flat { stroke: #b9b3a7; stroke-width: 3; }
.ds-up { stroke: #14213d; stroke-width: 4; stroke-linecap: butt; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ds-area { fill: rgba(230, 173, 97, 0.42); visibility: hidden; opacity: 0; }
.ds-dot { fill: #e6ad61; stroke: #14213d; stroke-width: 3; visibility: hidden; opacity: 0; }

.ds-row {
  display: grid;
  grid-template-columns: 62px 1fr 72px;
  align-items: center;
  gap: 8px;
  height: 38px;
}

.ds-row b { font-size: 14px; font-weight: 600; }

.ds-track {
  display: block;
  height: 14px;
  overflow: hidden;
  background: #e9dfcc;
  border-radius: 7px;
}

.ds-track i {
  display: block;
  height: 100%;
  background: #6e7a99;
  border-radius: 7px;
  transform: scaleX(0.5);
  transform-origin: 0 50%;
}

.ds-search .ds-track i { background: #14213d; }
.ds-display .ds-track i { background: #bd784d; }

.ds-row em {
  visibility: hidden;
  opacity: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  transform: translateX(-8px);
}

.ds-search em { color: #14213d; }
.ds-social em, .ds-email em { color: #626a84; }
.ds-display em { color: #a55f35; }

.ds-coin {
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  visibility: hidden;
  opacity: 0;
  background: #e6ad61;
  border: 3px solid #14213d;
  border-radius: 50%;
}

/* Search */
.dr-page { inset: 0; overflow: hidden; }

.dr-search {
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 500;
  background: #fff;
  border: 1.5px solid #e0d6c3;
  border-radius: 21px;
}

.dr-search svg { width: 16px; height: 16px; fill: none; stroke: #626a84; stroke-width: 1.6; stroke-linecap: round; }
.dr-search i { width: 2px; height: 18px; margin-left: -6px; background: #14213d; }

.dr {
  position: absolute;
  top: 0;
  left: 12px;
  width: 396px;
  height: 60px;
  padding: 9px 14px;
  background: #fff;
  border-radius: 10px;
}

.dr small { display: block; color: #626a84; font-size: 12px; }
.dr b { display: block; margin-top: 3px; font-size: 17px; font-weight: 600; }
.dr-you { z-index: 2; }

.dr-ticks {
  position: absolute;
  top: 15px;
  right: 12px;
  display: flex;
  gap: 4px;
}

.dr-ticks i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #b9b3a7;
  background: #efe8da;
  border-radius: 50%;
}

.hw-board [class*="dr-ticks"] svg,
.d-toast svg,
.dw-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.dr-you em {
  position: absolute;
  top: 17px;
  right: 14px;
  visibility: hidden;
  opacity: 0;
  padding: 4px 10px;
  color: #14213d;
  font-size: 13px;
  font-weight: 700;
  background: #e6ad61;
  border-radius: 999px;
}

.d-toast {
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  padding: 10px 16px 10px 10px;
  color: #f4ede0;
  background: #14213d;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(20, 33, 61, 0.35);
  transform: translateY(18px);
}

.d-toast i { display: grid; place-items: center; width: 30px; height: 30px; color: #14213d; background: #e6ad61; border-radius: 50%; }
.d-toast b { display: block; font-size: 16px; font-weight: 600; }
.d-toast small { font-size: 12px; opacity: 0.75; }

/* Paid */
.dp {
  width: 12px;
  height: 12px;
  background: #14213d;
  border-radius: 50%;
  opacity: 0;
}

.dp-rays { inset: 0; width: 420px; height: 350px; }
.dp-rays line { stroke: #f4ede0; stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 1; }

.dp-chips {
  top: 8px;
  left: 0;
  display: flex;
  justify-content: space-between;
  width: 420px;
}

.dp-chips span {
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  background: #fbf7ef;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(20, 33, 61, 0.18);
}

.dp-ad {
  top: 238px;
  left: 112px;
  z-index: 2;
  width: 196px;
  padding: 12px 14px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.dp-ad small { display: block; color: #626a84; font-size: 12px; }
.dp-ad b { display: block; margin: 2px 0 8px; font: 600 22px/1.1 "Poppins", sans-serif; letter-spacing: -0.04em; }
.dp-ad em { display: inline-block; padding: 5px 12px; color: #f4ede0; font-size: 13px; font-weight: 600; background: #14213d; border-radius: 999px; }

/* Content */
.dc-cal {
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 76px);
  grid-auto-rows: 102px;
  gap: 8px 6px;
}

.dc-cal div {
  padding: 6px 8px;
  background: rgba(251, 247, 239, 0.66);
  border-radius: 10px;
}

.dc-cal small { font-size: 13px; font-weight: 600; }

.dc-tile {
  top: 246px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 66px;
  color: #f4ede0;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(20, 33, 61, 0.28);
}

.dc-t1 { left: 8px; background: #14213d; transform: rotate(-5deg); }
.dc-t2 { left: 90px; background: #294073; transform: rotate(3deg); }
.dc-t3 { left: 172px; color: #14213d; background: #fbf7ef; transform: rotate(-3deg); }

.dc-phone {
  top: 0;
  left: 272px;
  width: 148px;
  height: 340px;
  padding: 8px;
  background: #14213d;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(20, 33, 61, 0.36);
}

.dc-screen {
  height: 100%;
  padding: 10px;
  background: #fbf7ef;
  border-radius: 17px;
}

.dc-post {
  height: 172px;
  background: linear-gradient(170deg, #14213d 5%, #294073 38%, #bd784d 68%, #e6ad61);
  border-radius: 9px;
  transform: scaleY(0);
  transform-origin: 50% 0;
}

.dc-likes {
  visibility: hidden;
  opacity: 0;
  margin: 10px 0 8px;
  font-size: 14px;
  font-weight: 600;
}

.dc-heart { display: inline-block; color: #c98442; }

.dc-line {
  height: 8px;
  margin: 0 0 6px;
  visibility: hidden;
  opacity: 0;
  background: #e0d6c3;
  border-radius: 4px;
}

.dc-line--s { width: 62%; }

.dc-bubble {
  z-index: 3;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  background: #fbf7ef;
  border-radius: 14px 14px 3px 14px;
  box-shadow: 0 10px 22px rgba(20, 33, 61, 0.3);
  transform: translateY(12px) scale(0.8);
  transform-origin: 100% 100%;
}

.dc-b1 { top: 60px; right: 128px; }
.dc-b2 { top: 158px; right: 128px; color: #f4ede0; background: #294073; }

.dc-float {
  top: 200px;
  z-index: 3;
  color: #c98442;
  font-size: 22px;
  visibility: hidden;
  opacity: 0;
}

.dc-f0 { left: 292px; }
.dc-f1 { left: 320px; }
.dc-f2 { left: 348px; }
.dc-f3 { left: 306px; }
.dc-f4 { left: 376px; }

/* Web */
.dw-browser { inset: 0; overflow: hidden; }

.dw-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  background: #e9dfcc;
}

.dw-bar i { width: 9px; height: 9px; background: #14213d; border-radius: 50%; opacity: 0.35; }
.dw-bar small { margin-left: 10px; font-size: 13px; font-weight: 500; }

.dw-wire span {
  position: absolute;
  border: 1.5px dashed #b9b3a7;
  border-radius: 8px;
}

.w-nav { top: 44px; left: 12px; width: 396px; height: 14px; }
.w-hero { top: 66px; left: 12px; width: 396px; height: 172px; }
.w-c1, .w-c2, .w-c3 { top: 248px; width: 124px; height: 90px; }
.w-c1 { left: 12px; }
.w-c2 { left: 148px; }
.w-c3 { left: 284px; }

.dw-hero {
  position: absolute;
  top: 44px;
  left: 12px;
  width: 396px;
  height: 194px;
  padding: 26px 22px;
  color: #f4ede0;
  background: linear-gradient(172deg, #14213d 8%, #294073 42%, #bd784d 78%, #e6ad61);
  border-radius: 10px;
  clip-path: inset(0% 100% 0% 0% round 10px);
}

.dw-hero b {
  display: block;
  min-height: 72px;
  max-width: 300px;
  font: 600 31px/1.08 "Poppins", sans-serif;
  letter-spacing: -0.045em;
}

.dw-btn {
  position: absolute;
  bottom: 20px;
  left: 22px;
  display: inline-grid;
  place-items: center;
  height: 40px;
  padding: 0 18px;
  color: #14213d;
  font-size: 15px;
  font-weight: 600;
  background: #fbf7ef;
  border-radius: 999px;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.8);
}

.dw-btn > * { grid-area: 1 / 1; white-space: nowrap; }
.dw-btn em { display: inline-flex; align-items: center; gap: 6px; visibility: hidden; opacity: 0; }

.dw-c {
  position: absolute;
  top: 248px;
  width: 124px;
  height: 90px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  border-radius: 8px;
  transform: translateY(10px);
}

.dw-c i { display: block; height: 36px; background: #e9dfcc; border-radius: 5px; }
.dw-c p { height: 8px; margin: 10px 0 0; background: #14213d; border-radius: 4px; opacity: 0.75; }
.dw-c1 { left: 12px; }
.dw-c2 { left: 148px; }
.dw-c3 { left: 284px; }

.dw-sel {
  top: 66px;
  left: 22px;
  border: 1.5px solid #c98442;
  background: rgba(201, 132, 66, 0.07);
}

@media (max-width: 1023px) {
  .hw-cap {
    min-height: 44px;
    font-size: 14px;
  }
}

/* Phones: leave the contents strip free to sit above the blur layer. */
@media (max-width: 1023px) {
  .sky + .ed-page {
    z-index: auto;
  }
}

/* ---------- Home, "2 founders": a signature card for the two of us, linking to About ---------- */
#story .ed-section__head > .ed-text:last-child {
  margin-bottom: 0;
}

.hp-duo {
  display: inline-flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-top: 30px;
  padding: 12px 26px 12px 12px;
  color: #14213d;
  text-decoration: none;
  background: #fbf7ef;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(20, 33, 61, 0.09), 0 10px 26px -18px rgba(20, 33, 61, 0.35);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.3s ease;
}

.hp-duo__faces {
  display: flex;
  flex: none;
}

.hp-duo__face {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--img) center / cover no-repeat, #e3a35f;
  box-shadow: 0 0 0 3px #fbf7ef;
  transition: transform 0.45s var(--ease);
}

.hp-duo__face + .hp-duo__face {
  margin-left: -14px;
}

.hp-duo__names {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
}

.hp-duo__who {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hp-duo__who + .hp-duo__who {
  padding-left: clamp(16px, 2vw, 28px);
  border-left: 1px solid rgba(20, 33, 61, 0.12);
}

.hp-duo__who b {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hp-duo__who small {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hp-duo__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: clamp(4px, 1vw, 12px);
  color: #8f561d;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.hp-duo__go span {
  transition: transform 0.4s var(--ease);
}

.hp-duo:hover,
.hp-duo:focus-visible {
  background: #fff8ec;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(217, 151, 87, 0.45), 0 16px 34px -16px rgba(217, 151, 87, 0.55);
}

.hp-duo:hover .hp-duo__face:first-child { transform: translateX(-3px) rotate(-4deg); }
.hp-duo:hover .hp-duo__face:last-child { transform: translateX(3px) rotate(4deg); }
.hp-duo:hover .hp-duo__go span { transform: translateX(4px); }

.hp-duo:focus-visible {
  outline: 2px solid #14213d;
  outline-offset: 4px;
}

/* Narrower screens: the card becomes a rounded block, names stacked, the link along the bottom */
@media (max-width: 899px) {
  .hp-duo {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px 16px;
    padding: 16px;
    border-radius: 22px;
  }

  .hp-duo__names {
    flex-direction: column;
    gap: 10px;
  }

  .hp-duo__who + .hp-duo__who {
    padding-left: 0;
    border-left: 0;
  }

  .hp-duo__face {
    width: 52px;
    height: 52px;
  }

  .hp-duo__go {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(20, 33, 61, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-duo,
  .hp-duo__face,
  .hp-duo__go span { transition: none; }
}
