:root {
  --ink: #f2f0e9;
  --ink-soft: #b7b9bd;
  --ink-muted: #7c8087;
  --bg: #090b0d;
  --bg-raised: #0f1215;
  --surface: #15191d;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --steel: #84a9cb;
  --steel-bright: #b6d1e8;
  --cream: #f1eee5;
  --dark-ink: #111417;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 999; padding: 10px 14px; color: var(--dark-ink); background: var(--cream); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 13, .88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); }
.nav-shell { min-height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 28px; height: 38px; overflow: visible; }
.brand-mark path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter; }
.brand-copy { display: grid; line-height: .92; text-transform: uppercase; }
.brand-copy strong { font: 600 23px/1 var(--display); letter-spacing: .055em; }
.brand-copy small { color: var(--ink-muted); font: 500 11px/1.2 var(--display); letter-spacing: .21em; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { color: var(--ink-soft); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }
.site-nav .nav-cta { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid var(--line); color: var(--ink); }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 12px; background: transparent; border: 1px solid var(--line); }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.hero { min-height: calc(100vh - 78px); display: grid; align-content: center; padding: 88px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(350px, .8fr); align-items: end; gap: clamp(56px, 8vw, 120px); }
.hero-copy, .featured-app { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--steel-bright); font: 500 12px/1 var(--body); letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 1px; background: currentColor; }
.hero h1, .section-heading h2, .story-copy h2, .contact-section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero h1 { max-width: 760px; font-size: clamp(64px, 8.4vw, 126px); line-height: .82; }
.hero h1 em { color: var(--ink-muted); font-style: normal; }
.hero-lede { max-width: 620px; margin: 36px 0 0; color: var(--ink-soft); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 21px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.button-primary { color: var(--dark-ink); background: var(--cream); border-color: var(--cream); }
.button-primary:hover { background: white; border-color: white; }
.button-quiet:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.featured-app { position: relative; display: grid; min-height: 390px; color: var(--ink); background: var(--bg-raised); border: 1px solid var(--line); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.featured-app::before { position: absolute; inset: 0; content: ""; background: linear-gradient(145deg, rgba(132,169,203,.08), transparent 46%); pointer-events: none; }
.featured-app:hover { border-color: rgba(182,209,232,.45); transform: translateY(-4px); }
.featured-topline, .featured-footer { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; color: var(--ink-muted); font: 500 11px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.featured-topline { border-bottom: 1px solid var(--line-soft); }
.featured-footer { align-self: end; border-top: 1px solid var(--line-soft); }
.featured-footer .arrow { color: var(--ink); font-size: 20px; }
.featured-body { position: relative; display: flex; align-items: center; gap: 22px; padding: 40px 26px; }
.featured-body img { width: 112px; height: 112px; aspect-ratio: 1; object-fit: cover; border-radius: 23%; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.featured-body h2 { margin: 0 0 5px; font: 500 clamp(35px, 4vw, 49px)/.95 var(--display); text-transform: uppercase; }
.featured-body p { max-width: 230px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.hero-rule { width: 100%; display: flex; align-items: center; gap: 20px; margin-top: 82px; color: var(--ink-muted); font: 500 10px/1 var(--body); letter-spacing: .24em; }
.hero-rule::before, .hero-rule::after { height: 1px; content: ""; background: var(--line-soft); }
.hero-rule::before { flex: 1; }
.hero-rule::after { width: 8vw; }

.section { padding: clamp(96px, 12vw, 170px) 0; }
.section-heading { display: grid; grid-template-columns: 1.1fr .9fr; column-gap: 70px; align-items: end; margin-bottom: 70px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .story-copy h2 { font-size: clamp(50px, 6vw, 80px); line-height: .92; }
.section-heading > p:last-child { max-width: 440px; margin: 0 0 4px; color: var(--ink-soft); font-size: 17px; }
.apps-section { background: var(--bg); }
.app-list { border-top: 1px solid var(--line); }
.app-row { display: grid; grid-template-columns: 48px 74px minmax(220px, 1fr) minmax(170px, .4fr) 32px; align-items: center; gap: 22px; min-height: 126px; padding: 18px 10px 18px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background .2s ease, padding .2s ease; }
.app-row:hover { padding-left: 12px; background: rgba(255,255,255,.026); }
.app-index { color: var(--ink-muted); font: 500 11px/1 var(--body); letter-spacing: .08em; }
.app-row img { width: 68px; height: 68px; aspect-ratio: 1; object-fit: cover; border-radius: 22%; }
.app-details { display: grid; gap: 4px; }
.app-details strong { font: 500 clamp(28px, 3vw, 38px)/1 var(--display); letter-spacing: -.01em; text-transform: uppercase; }
.app-details small, .app-meta { color: var(--ink-muted); font-size: 13px; }
.app-meta { justify-self: start; }
.app-arrow { justify-self: end; color: var(--ink-muted); font-size: 22px; transition: color .2s ease, transform .2s ease; }
.app-row:hover .app-arrow { color: var(--steel-bright); transform: translate(3px, -3px); }

.story-section { background: var(--cream); color: var(--dark-ink); }
.story-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(70px, 10vw, 150px); align-items: center; }
.story-mark { min-height: 560px; display: grid; place-items: center; border: 1px solid rgba(17,20,23,.2); background-image: linear-gradient(rgba(17,20,23,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(17,20,23,.06) 1px, transparent 1px); background-size: 48px 48px; }
.story-mark svg { width: 42%; max-height: 350px; }
.story-mark path { fill: none; stroke: var(--dark-ink); stroke-width: 5; stroke-linecap: square; stroke-linejoin: miter; }
.story-copy .eyebrow { color: #466985; }
.story-lede { margin: 34px 0 22px; font-size: 21px; font-weight: 600; line-height: 1.45; }
.story-copy > p:not(.eyebrow):not(.story-lede) { max-width: 650px; color: #4f555b; font-size: 16px; }
.text-link { display: inline-flex; gap: 38px; margin-top: 20px; padding-bottom: 5px; border-bottom: 1px solid currentColor; color: var(--dark-ink); font-size: 14px; font-weight: 600; text-decoration: none; }

.principles-section { background: var(--bg-raised); }
.section-heading.compact { display: block; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principles-grid article { min-height: 300px; padding: 34px 34px 36px 0; }
.principles-grid article + article { padding-left: 34px; border-left: 1px solid var(--line); }
.principles-grid span { color: var(--steel-bright); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.principles-grid h3 { margin: 95px 0 12px; font: 500 34px/1 var(--display); text-transform: uppercase; }
.principles-grid p { max-width: 300px; margin: 0; color: var(--ink-muted); font-size: 14px; }

.contact-section { padding: clamp(80px, 10vw, 140px) 0; background: var(--steel); color: var(--dark-ink); }
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; }
.contact-section .eyebrow { color: var(--dark-ink); }
.contact-section h2 { max-width: 670px; font-size: clamp(52px, 6vw, 82px); line-height: .9; }
.contact-section p { max-width: 500px; margin: 0 0 28px; }
.button-light { min-width: min(100%, 360px); color: var(--dark-ink); border-color: rgba(17,20,23,.38); }
.button-light:hover { background: rgba(255,255,255,.22); border-color: var(--dark-ink); }

.site-footer { padding: 58px 0; background: #060708; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 32px; }
.footer-brand { grid-row: 1 / 3; }
.footer-grid p, .footer-grid small { margin: 0; color: var(--ink-muted); font-size: 12px; }
.footer-links { display: flex; gap: 26px; justify-content: flex-end; }
.footer-links a { color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-grid > small { grid-column: 2 / 4; }

:focus-visible { outline: 2px solid var(--steel-bright); outline-offset: 4px; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 36px, 760px); }
  .hero { min-height: auto; padding-top: 100px; }
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { max-width: 740px; }
  .featured-app { min-height: 330px; }
  .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .section-heading > p:last-child { max-width: 560px; }
  .app-row { grid-template-columns: 34px 66px minmax(0, 1fr) 30px; }
  .app-meta { display: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-mark { min-height: 410px; }
  .story-mark svg { max-height: 260px; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); }
  body { overflow-x: hidden; }
  .nav-shell { min-height: 68px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; display: grid; gap: 0; padding: 0 14px 16px; background: rgba(9,11,13,.98); border-bottom: 1px solid var(--line); transform: scaleY(0); transform-origin: top; opacity: 0; pointer-events: none; transition: transform .2s ease, opacity .2s ease; }
  .site-nav.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .site-nav a { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--line-soft); }
  .site-nav .nav-cta { margin-top: 12px; justify-content: center; border: 1px solid var(--line); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero { padding-top: 78px; }
  .hero-grid { gap: 60px; }
  .hero h1 { font-size: clamp(56px, 16.7vw, 72px); }
  .hero-lede { margin-top: 28px; font-size: 16px; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .featured-body { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: flex-start; padding: 34px 20px; }
  .featured-topline span:last-child { text-align: right; }
  .featured-body img { width: 86px; height: 86px; }
  .featured-body h2 { font-size: 33px; }
  .hero-rule { margin-top: 58px; }
  .section { padding: 88px 0; }
  .section-heading { margin-bottom: 48px; }
  .section-heading h2, .story-copy h2 { font-size: 52px; }
  .app-row { grid-template-columns: 56px minmax(0, 1fr) 26px; min-height: 104px; gap: 16px; }
  .app-index { display: none; }
  .app-row img { width: 54px; height: 54px; }
  .app-details strong { font-size: 27px; }
  .app-details small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .story-grid { gap: 54px; }
  .story-mark { min-height: 330px; }
  .principles-grid { grid-template-columns: 1fr; }
  .principles-grid article { min-height: 240px; padding: 28px 0; }
  .principles-grid article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .principles-grid h3 { margin-top: 58px; }
  .contact-section h2 { font-size: 54px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-row: auto; }
  .footer-links { justify-content: flex-start; }
  .footer-grid > small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
