:root {
  --ink: #191410;
  --paper: #f4efe6;
  --paper-deep: #e8dfd0;
  --orange: #f36b24;
  --orange-soft: #ff9b58;
  --lime: #bed94c;
  --wine: #5e1f35;
  --line: rgba(25, 20, 16, 0.16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only, .skip-link:not(:focus) {
  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:focus {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  background: white;
  border-radius: 99px;
}
.section-shell { padding-inline: clamp(24px, 5vw, 84px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px clamp(24px, 5vw, 84px);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .25s ease;
}
.site-header.scrolled { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 850; letter-spacing: -.04em; }
.brand-logo {
  display: block;
  width: clamp(150px, 14vw, 205px);
  height: auto;
  mix-blend-mode: multiply;
}
.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50% 48% 46% 52%;
  background: var(--orange);
  transform: rotate(-8deg);
  box-shadow: inset -7px -3px 0 rgba(120, 34, 0, .12);
}
.brand-mark::before, .brand-mark::after, .brand-mark span::before {
  content: "";
  position: absolute;
  width: 2px;
  height: 12px;
  background: var(--paper);
  border-radius: 2px;
  transform-origin: bottom;
}
.brand-mark::before { transform: rotate(-45deg); }
.brand-mark::after { transform: rotate(45deg); }
.brand-mark span::before { transform: rotate(90deg); }
.brand-mark span { width: 7px; height: 7px; border: 2px solid var(--paper); border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 40px); font-size: 14px; font-weight: 650; }
.main-nav a:not(.nav-cta) { transition: color .2s ease; }
.main-nav a:not(.nav-cta):hover { color: var(--orange); }
.nav-cta { padding: 12px 18px; background: var(--ink); color: var(--paper); border-radius: 99px; }
.menu-button { display: none; border: 0; background: transparent; }

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding-top: 70px;
  padding-bottom: 90px;
  overflow: hidden;
}
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.eyebrow span { width: 28px; height: 2px; background: var(--orange); }
.hero h1, .section-heading h2, .about h2, .contact h2 {
  margin: 0;
  font-size: clamp(56px, 7.6vw, 120px);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 850;
}
.hero h1 em, .about h2 em, .contact h2 em { font-family: var(--serif); font-weight: 400; color: var(--orange); }
.hero-text { max-width: 650px; margin: 34px 0 0; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.58; color: rgba(25,20,16,.68); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 0 22px; border-radius: 99px; font-size: 14px; font-weight: 800; }
.button-primary { background: var(--orange); color: white; }
.button-primary span { font-size: 18px; }
.button-quiet { border: 1px solid var(--line); }
.hero-stats { display: flex; gap: clamp(28px, 4vw, 65px); margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt { font-size: 30px; font-weight: 850; letter-spacing: -.05em; }
.hero-stats dd { margin: 0; max-width: 120px; color: rgba(25,20,16,.58); font-size: 12px; line-height: 1.35; }

.app-orbit { position: relative; min-height: 620px; isolation: isolate; }
.orbit-glow { position: absolute; inset: 8% 6%; z-index: -2; background: var(--orange-soft); border-radius: 47% 53% 57% 43% / 45% 40% 60% 55%; transform: rotate(-8deg); }
.orbit-glow::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.36); border-radius: inherit; }
.orbit-label { position: absolute; top: 8%; left: 12%; margin: 0; color: rgba(84,27,4,.56); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.orbit-app { position: absolute; border-radius: 22%; box-shadow: 0 24px 50px rgba(80,30,7,.22); }
.orbit-app-main { width: 34%; left: 33%; top: 31%; z-index: 2; transform: rotate(-3deg); }
.orbit-app-1 { width: 18%; top: 12%; right: 10%; transform: rotate(9deg); }
.orbit-app-2 { width: 17%; left: 8%; top: 25%; transform: rotate(-12deg); }
.orbit-app-3 { width: 19%; left: 10%; bottom: 12%; transform: rotate(8deg); }
.orbit-app-4 { width: 18%; right: 10%; bottom: 14%; transform: rotate(-7deg); }
.orbit-note { position: absolute; z-index: 3; padding: 11px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; box-shadow: 0 12px 30px rgba(51,25,10,.12); font-size: 11px; font-weight: 800; }
.orbit-note-top { top: 20%; left: 29%; }
.orbit-note-top span { color: var(--lime); }
.orbit-note-bottom { bottom: 7%; left: 37%; }

.marquee { overflow: hidden; padding: 18px 0; background: var(--ink); color: var(--paper); }
.marquee div { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 28s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 22px; font-style: italic; }
.marquee i { color: var(--orange); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.portfolio { padding-top: 130px; padding-bottom: 140px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 60px; }
.section-heading h2 { font-size: clamp(48px, 6vw, 88px); }
.section-heading > p { max-width: 380px; margin: 0 0 6px; color: rgba(25,20,16,.62); line-height: 1.6; }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.app-card { min-height: 410px; display: flex; flex-direction: column; padding: clamp(24px, 2.5vw, 38px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease, transform .25s ease; }
.app-card:hover { background: rgba(255,255,255,.38); }
.featured-card { grid-column: span 2; background: var(--wine); color: white; }
.featured-card:hover { background: #6b263e; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.app-category { text-transform: uppercase; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.card-number { font-family: var(--serif); font-style: italic; color: rgba(25,20,16,.42); }
.featured-card .card-number { color: rgba(255,255,255,.48); }
.app-icon { width: 92px; height: 92px; object-fit: cover; border-radius: 22px; box-shadow: 0 12px 30px rgba(40,20,10,.12); }
.app-card h3 { margin: auto 0 8px; font-size: clamp(26px, 2.3vw, 38px); letter-spacing: -.05em; }
.app-card p { max-width: 390px; margin: 0; color: rgba(25,20,16,.58); line-height: 1.55; }
.featured-card p { color: rgba(255,255,255,.68); }
.card-link, .store-links a { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.featured-body { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); margin: auto 0; }
.featured-body img { width: clamp(130px, 16vw, 210px); border-radius: 25%; box-shadow: 0 24px 50px rgba(0,0,0,.28); }
.featured-body h3 { margin: 0 0 12px; font-size: clamp(48px, 6vw, 88px); }
.store-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.store-links a { border-color: rgba(255,255,255,.2); }

.about { position: relative; min-height: 780px; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 60px; padding-top: 110px; padding-bottom: 110px; overflow: hidden; background: var(--ink); color: var(--paper); }
.about-index { font-size: clamp(80px, 15vw, 240px); line-height: .75; font-weight: 950; letter-spacing: -.1em; color: rgba(244,239,230,.035); transform: rotate(-6deg); user-select: none; }
.eyebrow.light span { background: var(--lime); }
.about h2 { font-size: clamp(52px, 6.5vw, 96px); }
.about h2 em { color: var(--lime); }
.about-copy > p:not(.eyebrow) { max-width: 670px; margin: 34px 0 0; color: rgba(244,239,230,.68); font-size: 18px; line-height: 1.7; }
.principles { display: grid; margin-top: 50px; border-top: 1px solid rgba(255,255,255,.16); }
.principles div { display: grid; grid-template-columns: 50px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.principles strong { color: var(--orange); font-size: 12px; }
.principles span { font-weight: 650; }

.contact { padding-top: 140px; padding-bottom: 110px; }
.contact h2 { max-width: 1100px; font-size: clamp(50px, 7vw, 104px); }
.contact-email { display: flex; align-items: center; justify-content: space-between; margin-top: 70px; padding: 28px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: clamp(20px, 3vw, 46px); font-weight: 750; letter-spacing: -.04em; }
.contact-email span { color: var(--orange); }
.contact-meta { display: flex; gap: 30px; margin-top: 28px; color: rgba(25,20,16,.58); font-size: 13px; }
.contact-meta p { margin: 0 auto 0 0; }
.contact-meta a:hover { color: var(--orange); }

.site-footer { display: flex; align-items: center; gap: 28px; padding: 32px clamp(24px, 5vw, 84px); border-top: 1px solid var(--line); font-size: 12px; color: rgba(25,20,16,.55); }
.site-footer p { margin: 0 auto; }
.footer-brand { font-size: 14px; color: var(--ink); }
.footer-brand .brand-logo { width: 150px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

.privacy-page { min-height: 100vh; }
.privacy-main { max-width: 860px; margin: 0 auto; padding: 100px 24px 140px; }
.privacy-main h1 { margin: 0 0 30px; font-size: clamp(48px, 8vw, 88px); letter-spacing: -.07em; line-height: .95; }
.privacy-main h2 { margin-top: 48px; font-size: 24px; letter-spacing: -.03em; }
.privacy-main p, .privacy-main li { color: rgba(25,20,16,.7); line-height: 1.75; }
.privacy-main a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .app-orbit { min-height: 560px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about-index { position: absolute; left: -20px; top: 120px; }
  .about-copy { position: relative; max-width: 740px; margin-left: auto; }
}

@media (max-width: 720px) {
  .site-header { min-height: 68px; }
  .menu-button { display: grid; gap: 6px; width: 42px; height: 42px; place-content: center; }
  .menu-button > span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] > span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-button[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .main-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; align-items: stretch; padding: 18px 24px 28px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; }
  .nav-cta { text-align: center; }
  .hero { min-height: auto; padding-top: 70px; }
  .hero h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-stats { justify-content: space-between; gap: 12px; }
  .app-orbit { min-height: 460px; }
  .section-heading { align-items: start; flex-direction: column; }
  .app-grid { grid-template-columns: 1fr; }
  .featured-card { grid-column: auto; }
  .app-card { min-height: 380px; }
  .featured-body { align-items: flex-start; flex-direction: column; }
  .featured-body img { width: 120px; }
  .store-links { grid-template-columns: 1fr; gap: 0; }
  .about { min-height: 700px; }
  .contact-meta { flex-wrap: wrap; }
  .contact-meta p { flex-basis: 100%; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; }
  .site-footer p { order: 3; flex-basis: 100%; }
}

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