:root {
  color-scheme: light;
  --bg: #f3f0ea;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --panel-border: rgba(18, 38, 56, 0.1);
  --text: #314353;
  --headline: #162738;
  --muted: #677789;
  --accent: #183e62;
  --shadow: 0 24px 60px rgba(20, 33, 48, 0.1);
  --shadow-soft: 0 16px 36px rgba(20, 33, 48, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max-width: 1180px;
  --card-height: 420px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(188, 206, 221, 0.58), transparent 26%),
    linear-gradient(180deg, #eaf0f4 0%, var(--bg) 100%);
}

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

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

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 106px 0 46px;
}

.topbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 10px 14px;
  background: rgba(234, 240, 244, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(18, 38, 56, 0.08);
}

.topbar-fixed-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(calc(100% - 8px), var(--max-width));
  min-height: 54px;
  margin: 0 auto;
  padding: 0 10px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(18, 38, 56, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.topbar-fixed-panel::-webkit-scrollbar {
  height: 6px;
}

.topbar-fixed-panel::-webkit-scrollbar-thumb {
  background: rgba(24, 62, 98, 0.18);
  border-radius: 999px;
}

.topbar-fixed-panel a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(236, 242, 247, 0.68);
  white-space: nowrap;
  transition: transform 180ms ease, background-color 180ms ease;
}

.topbar-fixed-panel a:hover,
.topbar-fixed-panel a:focus-visible,
.button:hover,
.button:focus-visible,
.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-1px);
}

.content-card {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 14px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--headline);
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
}

h1 {
  font-size: clamp(1.35rem, 3.2vw, 3.1rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.76;
}

.intro {
  margin-top: 18px;
  font-size: 1.08rem;
}

.updated,
.section-copy,
.shot-label {
  color: var(--muted);
}

.updated {
  margin-top: 14px;
}

.page-flow,
.story-flow {
  display: grid;
  gap: 26px;
  min-width: 0;
}

.story-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  min-width: 0;
}

.story-row-reverse .story-media {
  order: 2;
}

.story-row-reverse .story-copy {
  order: 1;
}

.hero-row {
  margin-bottom: 26px;
}

.story-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--card-height);
  padding: 20px;
  min-width: 0;
}

.story-media-inner {
  width: 100%;
  height: 100%;
  min-width: 0;
}

.media-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-bottom: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
}

.media-tile img {
  width: 100%;
  height: calc(100% - 12px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 46px rgba(10, 19, 31, 0.16);
}

.media-reflection {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 38px;
  overflow: hidden;
  opacity: 0.14;
  filter: blur(6px);
  transform: perspective(180px) rotateX(64deg);
  pointer-events: none;
}

.media-reflection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleY(-1);
  border-radius: var(--radius-lg);
  mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.38), transparent 82%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.38), transparent 82%);
}

.story-copy,
.hero-copy-card,
.info-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--card-height);
  padding: 24px;
  min-width: 0;
  overflow: hidden;
}

.story-copy-inner {
  width: min(100%, 520px);
  min-width: 0;
  text-align: center;
}

.hero-copy-card h1 {
  max-width: none;
  margin-inline: auto;
  white-space: nowrap;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.story-copy-inner .button-row {
  justify-content: center;
}

.story-copy-inner p + p {
  margin-top: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, #234f75, #112f4b);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(24, 62, 98, 0.12);
  color: var(--accent);
}

.showcase {
  padding: 28px;
  text-align: center;
  min-width: 0;
}

.section-copy {
  max-width: 70ch;
  margin: 0 auto;
}

.screenshot-strip-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  min-width: 0;
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 18px;
  width: min(100%, 980px);
  padding: 0 4px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  min-width: 0;
}

.screenshot-strip::-webkit-scrollbar {
  height: 10px;
}

.screenshot-strip::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(24, 62, 98, 0.22);
}

.screenshot-card {
  scroll-snap-align: center;
}

.phone-shot {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  border: 8px solid rgba(255, 255, 255, 0.76);
}

.shot-label {
  margin-top: 12px;
  font-size: 0.92rem;
  text-align: center;
}

.link-stack {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.full-width-card {
  padding: 28px;
  overflow: hidden;
}

.full-width-card .story-copy-inner,
.full-width-card .link-stack,
.full-width-card h2,
.full-width-card .section-tag {
  margin-inline: auto;
  text-align: center;
}

.link-card {
  display: block;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, background-color 180ms ease;
}

@media (max-width: 980px) {
  .story-row {
    grid-template-columns: 1fr;
  }

  .story-row-reverse .story-copy,
  .story-row-reverse .story-media {
    order: initial;
  }

  .story-media,
  .story-copy,
  .hero-copy-card,
  .info-panel {
    min-height: auto;
  }

  .story-media-inner {
    width: min(100%, 100%);
    height: auto;
  }

  .media-tile {
    height: auto;
  }

  .media-tile img {
    height: auto;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 98px;
  }

  .topbar-fixed {
    padding: 8px 10px;
  }

  .topbar-fixed-panel {
    width: 100%;
    min-height: 50px;
    padding: 0 8px;
  }

  .showcase,
  .story-copy,
  .hero-copy-card,
  .info-panel,
  .story-media,
  .full-width-card {
    padding: 20px;
  }

  h1 {
    font-size: clamp(1.15rem, 6vw, 2rem);
  }
}
