:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eaf0f8;
  --surface-strong: #dfe8f4;
  --ink: #0c1728;
  --ink-soft: #536173;
  --line: rgba(24, 48, 82, 0.12);
  --line-strong: rgba(24, 48, 82, 0.2);
  --accent: #1769dc;
  --accent-strong: #0d55bd;
  --accent-soft: rgba(23, 105, 220, 0.1);
  --glass: rgba(247, 250, 254, 0.72);
  --shadow: 0 28px 80px rgba(24, 63, 112, 0.14);
  --shadow-soft: 0 12px 36px rgba(24, 63, 112, 0.09);
  --radius: 32px;
  --radius-small: 18px;
  --header-height: 72px;
  --max: 1380px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1018;
    --surface: #111925;
    --surface-soft: #162131;
    --surface-strong: #1c2a3d;
    --ink: #f0f5fb;
    --ink-soft: #a7b2c2;
    --line: rgba(210, 225, 245, 0.12);
    --line-strong: rgba(210, 225, 245, 0.2);
    --accent: #6ba7ff;
    --accent-strong: #91bdff;
    --accent-soft: rgba(107, 167, 255, 0.14);
    --glass: rgba(11, 16, 24, 0.72);
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
    --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 90% 0%, var(--accent-soft), transparent 34rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

::selection {
  background: var(--accent);
  color: #f9fbff;
}

section,
#contact,
#apps,
#philosophy {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  display: flex;
  width: min(calc(100% - 32px), 980px);
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: 0 12px 42px rgba(20, 53, 93, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  transform: translateX(-50%);
  transition: background 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  box-shadow: 0 18px 54px rgba(20, 53, 93, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
  background: linear-gradient(145deg, #3188f3, #0e5ac5);
  box-shadow: 0 7px 16px rgba(21, 100, 210, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.brand-mark span {
  width: 11px;
  height: 11px;
  border-radius: 4px;
  background: #f8fbff;
  box-shadow: 0 1px 3px rgba(0, 43, 104, 0.16);
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 620;
  transition: color 220ms var(--ease), background 220ms var(--ease), transform 220ms var(--ease);
}

.site-nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.site-nav .nav-contact {
  padding-inline: 19px;
  background: var(--accent);
  color: #f8fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 18px rgba(23, 105, 220, 0.18);
}

.site-nav .nav-contact:hover {
  background: var(--accent-strong);
  color: #f8fbff;
}

.site-nav a:active,
.button:active,
.text-link:active,
.contact-links a:active {
  transform: scale(0.98);
}

.hero {
  display: grid;
  width: min(calc(100% - 48px), var(--max));
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(120px, 14dvh) 0 64px;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(40px, 6vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-kicker,
.manifesto-intro,
.story-label {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(58px, 6.4vw, 96px);
  font-weight: 720;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero-lede {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.025em;
  line-height: 1.45;
}

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

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.button-primary {
  background: var(--accent);
  color: #f8fbff;
  box-shadow: 0 12px 28px rgba(23, 105, 220, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button-primary:hover {
  background: var(--accent-strong);
  box-shadow: 0 16px 36px rgba(23, 105, 220, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-2px);
}

.button-dark {
  align-self: flex-start;
  background: var(--ink);
  color: var(--bg);
}

.button-dark:hover {
  box-shadow: 0 14px 30px rgba(11, 23, 40, 0.18);
  transform: translateY(-2px);
}

.hero-visual {
  min-width: 0;
  perspective: 1600px;
}

.hero-visual-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.28;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(28px, 4vw, 52px);
  background: var(--surface);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.74);
  isolation: isolate;
}

.hero-visual-frame::after {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
}

.hero-orbit-one {
  top: 10%;
  right: -4%;
  width: 36%;
  aspect-ratio: 1;
}

.hero-orbit-two {
  right: 9%;
  bottom: -17%;
  width: 52%;
  aspect-ratio: 1;
}

.manifesto {
  position: relative;
  min-height: 168dvh;
  border-top: 1px solid var(--line);
}

.manifesto-sticky {
  position: sticky;
  top: 0;
  display: flex;
  width: min(calc(100% - 48px), 1120px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12dvh 0;
  flex-direction: column;
  justify-content: center;
}

.manifesto-lines {
  display: flex;
  max-width: 1080px;
  margin: 0;
  flex-direction: column;
  font-size: clamp(52px, 8.4vw, 126px);
  font-weight: 720;
  letter-spacing: -0.068em;
  line-height: 0.94;
}

.manifesto-lines span {
  display: block;
}

.manifesto-lines span:nth-child(2) {
  color: var(--accent);
  padding-left: clamp(0px, 7vw, 96px);
}

.manifesto-lines span:nth-child(3) {
  padding-left: clamp(0px, 14vw, 190px);
}

.manifesto-sticky > p:last-child {
  max-width: 580px;
  margin: 48px 0 0 auto;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -0.03em;
}

.apps-section {
  position: relative;
  z-index: 2;
  padding: 120px 24px 160px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 42%, var(--bg));
}

.section-heading,
.story-heading {
  width: min(100%, 900px);
  margin: 0 auto 72px;
  text-align: center;
}

.section-heading h2,
.story-heading h2,
.privacy-copy h2,
.contact-heading h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 720;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading p,
.story-heading > p:last-child,
.contact-heading p {
  max-width: 650px;
  margin: 24px auto 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.025em;
}

.product-stack {
  width: min(100%, 1220px);
  margin: 0 auto;
}

.product {
  position: sticky;
  top: calc(92px + (var(--stack-index) * 12px));
  display: grid;
  overflow: hidden;
  min-height: min(720px, calc(100dvh - 116px));
  margin-bottom: 28px;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  isolation: isolate;
}

.product::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 85% 15%, var(--accent-soft), transparent 42%);
  content: "";
  pointer-events: none;
}

.product-copy {
  display: flex;
  max-width: 530px;
  align-items: flex-start;
  flex-direction: column;
}

.product-name {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.app-icon {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 15px;
  box-shadow: 0 10px 24px rgba(16, 46, 85, 0.16);
  object-fit: cover;
}

.product h3 {
  margin: 38px 0 0;
  font-size: clamp(44px, 5.3vw, 72px);
  font-weight: 720;
  letter-spacing: -0.062em;
  line-height: 0.98;
}

.product-copy > p {
  max-width: 500px;
  margin: 28px 0 34px;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.product-stage {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  background: var(--surface-soft);
  place-items: center;
}

.product-stage::after {
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.product-monogram {
  color: var(--accent);
  font-size: clamp(96px, 14vw, 190px);
  font-weight: 760;
  letter-spacing: -0.09em;
  line-height: 1;
}

.product-stage-rvu {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.88), transparent 24%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface-soft));
}

.product-stage-rvu::before {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(23, 105, 220, 0.04), 0 0 0 88px rgba(23, 105, 220, 0.025);
  content: "";
}

.product-notes {
  position: absolute;
  right: 8%;
  bottom: 8%;
  display: flex;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
}

.product-notes span {
  padding: 8px 12px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.product-or .product-copy {
  order: 2;
}

.product-or .product-stage {
  order: 1;
}

.product-stage-or {
  background: linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--accent) 12%, var(--surface)));
}

.procedure-rings {
  position: absolute;
  display: grid;
  width: 78%;
  aspect-ratio: 1;
  place-items: center;
}

.procedure-rings span {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.procedure-rings span:nth-child(1) { inset: 0; }
.procedure-rings span:nth-child(2) { inset: 14%; }
.procedure-rings span:nth-child(3) { inset: 28%; }

.product-stage-gi {
  height: 500px;
  align-items: end;
  background:
    linear-gradient(to bottom, transparent 55%, rgba(12, 23, 40, 0.08)),
    color-mix(in srgb, var(--surface-soft) 70%, #e5ddd0);
}

.product-stage-gi img {
  position: absolute;
  bottom: -5%;
  width: min(92%, 460px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(16, 39, 72, 0.26);
}

.availability {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 720;
}

.tapgi-story {
  padding: 150px 24px 180px;
  border-top: 1px solid var(--line);
}

.story-label {
  margin-bottom: 18px;
}

.story-layout {
  display: grid;
  width: min(100%, 1180px);
  margin: 0 auto;
  grid-template-columns: minmax(380px, 0.86fr) minmax(420px, 1.14fr);
  align-items: start;
  gap: clamp(54px, 8vw, 124px);
}

.story-visual {
  position: sticky;
  top: 108px;
  display: grid;
  min-height: calc(100dvh - 136px);
  align-items: center;
}

.story-device {
  position: relative;
  overflow: hidden;
  width: min(100%, 460px);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 38px;
  background: var(--surface);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.story-device::after {
  position: absolute;
  inset: 1px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  object-fit: cover;
  transform: scale(1.035);
  transition: opacity 700ms var(--ease), transform 1000ms var(--ease);
}

.story-image.is-active {
  opacity: 1;
  transform: scale(1);
}

.story-chapter {
  display: flex;
  min-height: 82dvh;
  padding: 18dvh 0;
  flex-direction: column;
  justify-content: center;
  opacity: 0.28;
  transition: opacity 500ms var(--ease), transform 700ms var(--ease);
  transform: translateY(18px);
}

.story-chapter.is-active {
  opacity: 1;
  transform: translateY(0);
}

.chapter-count {
  display: block;
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.story-chapter h3 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 720;
  letter-spacing: -0.063em;
  line-height: 0.98;
}

.story-chapter p {
  max-width: 560px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: -0.025em;
  line-height: 1.52;
}

.story-mobile {
  display: none;
}

.privacy-section {
  display: grid;
  width: min(calc(100% - 48px), 1180px);
  min-height: 680px;
  margin: 0 auto 160px;
  padding: clamp(34px, 7vw, 86px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--accent) 8%, var(--surface-soft)));
  box-shadow: var(--shadow-soft);
  grid-template-columns: minmax(280px, 0.8fr) minmax(460px, 1.2fr);
  align-items: center;
  gap: clamp(44px, 8vw, 120px);
}

.privacy-mark {
  display: grid;
  width: min(100%, 370px);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 42%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 24px 64px rgba(23, 105, 220, 0.12);
  place-items: center;
  transform: rotate(8deg);
}

.privacy-mark::before,
.privacy-mark::after,
.privacy-mark span {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 42%;
  content: "";
}

.privacy-mark::before { inset: 17%; }
.privacy-mark::after { inset: 34%; }
.privacy-mark span { inset: 44%; background: var(--accent); }

.privacy-copy > p {
  max-width: 600px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.025em;
  line-height: 1.5;
}

.privacy-points {
  display: grid;
  margin-top: 38px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.privacy-points p {
  margin: 0;
}

.privacy-points strong,
.privacy-points span {
  display: block;
}

.privacy-points strong {
  margin-bottom: 6px;
  font-size: 15px;
}

.privacy-points span {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 40px;
  color: var(--accent);
  font-weight: 720;
  transition: gap 220ms var(--ease), transform 220ms var(--ease);
}

.text-link:hover {
  gap: 13px;
}

.contact-section {
  display: grid;
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 48px 0 140px;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0, 0.82fr) minmax(500px, 1.18fr);
  gap: clamp(48px, 8vw, 120px);
}

.contact-heading p {
  max-width: 480px;
  margin-inline: 0;
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  position: relative;
  display: grid;
  min-height: 126px;
  padding: 25px 64px 25px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}

.contact-links a:hover {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 18px 44px rgba(24, 63, 112, 0.14);
  transform: translateY(-3px);
}

.contact-links span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-links strong {
  align-self: end;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.03em;
}

.contact-links b {
  position: absolute;
  top: 50%;
  right: 26px;
  color: var(--accent);
  font-size: 20px;
  transform: translateY(-50%);
}

.site-footer {
  display: grid;
  min-height: 120px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 45%, var(--bg));
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand-footer {
  font-size: 15px;
}

.brand-footer .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.site-footer nav a {
  padding: 8px 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 650;
}

.site-footer nav a:hover {
  color: var(--ink);
}

.site-footer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 900ms var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-visual-frame {
      animation: hero-depth linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }

    .manifesto-lines span {
      animation: manifesto-ink linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 46%;
    }

    .privacy-mark {
      animation: privacy-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 58%;
    }
  }
}

@keyframes hero-depth {
  from { transform: translate3d(0, 0, 0) rotateY(-2deg) scale(1); }
  to { transform: translate3d(0, 54px, 0) rotateY(2deg) scale(0.94); }
}

@keyframes manifesto-ink {
  from { opacity: 0.16; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes privacy-settle {
  from { transform: rotate(20deg) scale(0.8); opacity: 0.45; }
  to { transform: rotate(8deg) scale(1); opacity: 1; }
}

@media (prefers-color-scheme: dark) {
  .site-header {
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .hero-visual-frame {
    border-color: rgba(255, 255, 255, 0.16);
  }

  .hero-visual-frame img {
    filter: brightness(0.72) contrast(1.06) saturate(0.9);
  }

  .button-dark {
    background: #e9f1fb;
    color: #101a28;
  }

  .site-nav .nav-contact,
  .site-nav .nav-contact:hover,
  .button-primary,
  .button-primary:hover {
    color: #07111f;
  }

  .product-stage-gi {
    background: var(--surface-soft);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(54px, 7vw, 78px);
  }

  .product {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  }

  .product-stage {
    min-height: 440px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 62px;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    padding-left: 13px;
  }

  .brand {
    gap: 8px;
    font-size: 15px;
  }

  .brand-mark {
    width: 29px;
    height: 29px;
    border-radius: 9px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 9px 11px;
    font-size: 13px;
  }

  .site-nav .nav-optional {
    display: none;
  }

  .site-nav .nav-contact {
    padding-inline: 14px;
  }

  .hero {
    display: flex;
    width: min(calc(100% - 32px), 720px);
    min-height: 100dvh;
    padding: 114px 0 60px;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 44px;
  }

  .hero-copy {
    max-width: 690px;
  }

  .hero h1 {
    font-size: clamp(50px, 12vw, 76px);
  }

  .hero-lede {
    max-width: 560px;
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-visual-frame {
    aspect-ratio: 1.45;
  }

  .manifesto-sticky {
    width: calc(100% - 32px);
  }

  .manifesto-lines {
    font-size: clamp(48px, 12vw, 88px);
  }

  .manifesto-lines span:nth-child(2),
  .manifesto-lines span:nth-child(3) {
    padding-left: 0;
  }

  .manifesto-sticky > p:last-child {
    margin-left: 0;
  }

  .apps-section,
  .tapgi-story {
    padding-inline: 16px;
  }

  .product {
    position: relative;
    top: auto;
    min-height: 0;
    padding: 30px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-or .product-copy,
  .product-or .product-stage {
    order: initial;
  }

  .product-stage {
    min-height: 420px;
  }

  .product-stage-gi {
    height: 420px;
  }

  .story-layout {
    display: none;
  }

  .story-mobile {
    display: grid;
    width: calc(100% + 16px);
    margin-left: 0;
    padding: 8px 16px 28px 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    grid-auto-columns: min(78vw, 380px);
    grid-auto-flow: column;
    gap: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .story-mobile::-webkit-scrollbar {
    display: none;
  }

  .story-mobile article {
    padding: 14px 14px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    scroll-snap-align: start;
  }

  .story-mobile img {
    width: 100%;
    border-radius: calc(var(--radius) - 10px);
  }

  .story-mobile h3 {
    margin: 24px 10px 0;
    font-size: 28px;
    letter-spacing: -0.04em;
  }

  .story-mobile p {
    margin: 8px 10px 0;
    color: var(--ink-soft);
  }

  .privacy-section {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .privacy-mark {
    width: min(68vw, 330px);
  }

  .contact-section {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-nav a:not(.nav-contact) {
    display: none;
  }

  .hero {
    width: calc(100% - 28px);
    padding-top: 96px;
    justify-content: flex-start;
  }

  .hero-kicker {
    margin-bottom: 17px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(46px, 14.5vw, 62px);
    letter-spacing: -0.06em;
  }

  .hero-lede {
    max-width: 350px;
    font-size: 17px;
  }

  .button {
    min-height: 48px;
    padding-inline: 19px;
  }

  .hero-visual-frame {
    aspect-ratio: 1.2;
    border-radius: 26px;
  }

  .manifesto {
    min-height: 138dvh;
  }

  .manifesto-sticky {
    width: calc(100% - 28px);
  }

  .manifesto-lines {
    font-size: clamp(46px, 15vw, 64px);
  }

  .manifesto-sticky > p:last-child {
    margin-top: 32px;
    font-size: 18px;
  }

  .apps-section {
    padding-top: 92px;
    padding-bottom: 112px;
  }

  .section-heading,
  .story-heading {
    margin-bottom: 48px;
    text-align: left;
  }

  .section-heading h2,
  .story-heading h2,
  .privacy-copy h2,
  .contact-heading h2 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .section-heading p,
  .story-heading > p:last-child {
    margin-inline: 0;
    font-size: 17px;
  }

  .product {
    padding: 22px;
    border-radius: 26px;
  }

  .product-name {
    font-size: 18px;
  }

  .app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
  }

  .product h3 {
    margin-top: 30px;
    font-size: clamp(42px, 13vw, 56px);
  }

  .product-copy > p {
    margin: 22px 0 28px;
    font-size: 17px;
  }

  .product-stage {
    min-height: 320px;
    border-radius: 20px;
  }

  .product-stage-gi {
    height: 320px;
  }

  .product-notes {
    right: auto;
    bottom: 7%;
    left: 50%;
    width: max-content;
    transform: translateX(-50%);
  }

  .product-notes span {
    padding-inline: 8px;
    font-size: 10px;
  }

  .tapgi-story {
    padding-top: 104px;
    padding-bottom: 120px;
  }

  .story-label {
    font-size: 13px;
  }

  .privacy-section {
    min-height: 0;
    margin-bottom: 112px;
    padding: 28px;
    border-radius: 26px;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding-bottom: 92px;
  }

  .contact-links a {
    min-height: 112px;
    padding-left: 22px;
  }

  .contact-links strong {
    font-size: 17px;
  }

  .site-footer {
    display: flex;
    padding: 34px 20px 42px;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .story-chapter,
  .story-image,
  .js .reveal,
  .hero-visual-frame,
  .privacy-mark {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .product-notes {
    background: var(--surface);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
