:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --ink: #17211d;
  --ink-soft: #4f5954;
  --line: #cfc7ba;
  --white: #fffdf8;
  --forest: #153f34;
  --forest-light: #c8d4c7;
  --rust: #b54b2d;
  --gold: #c99745;
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --shell: min(1180px, calc(100vw - 48px));
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
::selection { color: var(--white); background: var(--forest); }

.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; left: 16px; top: 12px; z-index: 100;
  padding: 10px 14px; color: var(--white); background: var(--ink);
  transform: translateY(-150%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.eyebrow, .product-kicker {
  margin: 0;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(244, 240, 232, .92);
  backdrop-filter: blur(14px);
  transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.nav-shell { min-height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .93rem; font-weight: 700; }
.brand img { width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a { position: relative; text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav > a:not(.nav-contact)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: currentColor; transition: right .2s;
}
.site-nav > a:hover::after { right: 0; }
.nav-contact { padding: 11px 18px; border: 1px solid var(--ink); border-radius: 100px; transition: color .2s, background .2s; }
.nav-contact:hover { color: var(--paper); background: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 6px auto; background: var(--ink); transition: transform .2s; }

/* Hero */
.hero { min-height: calc(100vh - 84px); padding-block: clamp(70px, 10vw, 134px) 92px; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 8vw, 116px); align-items: center; }
.hero > * { min-width: 0; }
.hero-copy { padding-bottom: 46px; }
.hero h1 {
  max-width: 680px; margin: 22px 0 26px;
  font-family: var(--serif); font-size: clamp(3.75rem, 6.8vw, 6.8rem);
  font-weight: 400; letter-spacing: -.055em; line-height: .88;
}
.hero h1 em { color: var(--rust); font-weight: 400; }
.hero-lede { max-width: 560px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.55; }
.hero-actions { margin-top: 36px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid transparent; border-radius: 100px; font-size: .92rem; font-weight: 700; text-decoration: none; transition: transform .2s, color .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: var(--forest); }
.button-light { color: var(--ink); background: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -2px); }
.hero-showcase { align-self: stretch; display: grid; grid-template-rows: 1fr auto; }
.showcase-card { background: #120d26; overflow: hidden; }
.showcase-image { height: min(54vh, 520px); min-height: 370px; display: grid; place-items: center; background: #120d26; }
.showcase-image img { width: min(56%, 320px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 27%; box-shadow: 0 28px 70px rgba(0, 0, 0, .42); }
.showcase-caption { padding: 22px 24px; color: var(--white); display: flex; justify-content: space-between; align-items: center; }
.showcase-caption .product-kicker { color: #bbb3ce; }
.showcase-caption h2 { margin: 6px 0 0; font-family: var(--serif); font-size: 2.1rem; font-weight: 400; }
.showcase-caption a { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; font-size: 1.2rem; text-decoration: none; transition: color .2s, background .2s; }
.showcase-caption a:hover { color: var(--ink); background: var(--white); }
.showcase-note { padding: 20px 0 0 24%; display: grid; grid-template-columns: auto 1fr; gap: 20px; }
.showcase-note p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.note-mark { font-family: var(--serif); font-size: 2rem; line-height: 1; }

/* Intro statement */
.statement { padding-block: 88px; color: var(--white); background: var(--forest); }
.statement .eyebrow { color: #adc0b8; }
.statement-grid { display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.statement-grid > p:last-child { max-width: 890px; margin: -9px 0 0; font-family: var(--serif); font-size: clamp(2.15rem, 4.1vw, 4.2rem); letter-spacing: -.035em; line-height: 1.04; }

/* Work */
.work-section { padding-block: 126px; }
.section-heading { margin-bottom: 62px; display: grid; grid-template-columns: 1.8fr 1fr; gap: 60px; align-items: end; }
.section-heading h2 { max-width: 730px; margin: 14px 0 0; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: .98; }
.section-heading > p { margin: 0 0 5px; color: var(--ink-soft); font-size: 1rem; }
.feature-product { min-height: 600px; display: grid; grid-template-columns: 1.35fr .65fr; background: var(--white); border: 1px solid var(--line); }
.feature-visual { min-height: 520px; overflow: hidden; background: #120d26; }
.feature-visual img { width: 100%; height: 100%; object-fit: contain; }
.app-icon-feature { display: grid; place-items: center; }
.app-icon-feature img { width: min(58%, 360px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 27%; box-shadow: 0 30px 75px rgba(0, 0, 0, .42); }
.feature-copy { padding: clamp(34px, 5vw, 70px); display: flex; flex-direction: column; justify-content: center; }
.feature-copy h3, .project-copy h3, .more-products h3 { margin: 12px 0 18px; font-family: var(--serif); font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.feature-copy > p:not(.product-kicker) { color: var(--ink-soft); font-size: 1.04rem; }
.feature-list { margin: 24px 0 30px; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); font-size: .9rem; }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list li::before { content: ""; position: absolute; left: 1px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--rust); }
.play-app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.play-app-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.play-app-visual { min-height: 310px; display: grid; place-items: center; padding: 44px; }
.play-app-visual img { width: min(72%, 210px); height: auto; aspect-ratio: 1; border-radius: 25%; object-fit: cover; box-shadow: 0 26px 55px rgba(0, 0, 0, .28); }
.tone-stotra { background: #191331; }
.tone-dokesto { background: #dbe5e0; }
.tone-sunswap { background: #f1c563; }
.play-app-copy { flex: 1; display: flex; flex-direction: column; padding: 32px; }
.play-app-copy h3 { margin: 12px 0 16px; font-family: var(--serif); font-size: clamp(2.15rem, 3.2vw, 3.2rem); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.play-app-copy > p:not(.product-kicker) { margin: 0 0 26px; color: var(--ink-soft); }
.play-app-copy .text-link { margin-top: auto; }
.project-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.project-card { min-height: 570px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.project-wide { grid-column: span 2; display: grid; grid-template-columns: 1.4fr .6fr; }
.project-media { min-height: 390px; overflow: hidden; background: #25175e; }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.diagram-media { max-height: 610px; background: #f4f5f2; }
.diagram-media img { object-position: top center; }
.project-icon-wrap { min-height: 370px; display: grid; place-items: center; }
.project-icon-wrap img { width: 150px; height: 150px; border-radius: 28px; object-fit: cover; box-shadow: 0 28px 45px rgba(0,0,0,.2); }
.tone-ink { background: #19233b; }
.tone-sage { background: #adc1b5; }
.project-copy { padding: 34px; align-self: center; }
.project-copy h3 { font-size: clamp(2.2rem, 3.7vw, 3.7rem); }
.project-copy p:last-child { margin: 0; color: var(--ink-soft); }
.more-products { margin-top: 100px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.more-products-heading h3 { font-size: clamp(2.6rem, 4.2vw, 4.2rem); }
.product-list { border-top: 1px solid var(--ink); }
.product-row { min-height: 82px; display: grid; grid-template-columns: 52px 1fr 1fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.product-row img { width: 42px; height: 42px; object-fit: cover; border-radius: 9px; }
.product-row span { font-family: var(--serif); font-size: 1.45rem; }
.product-row small { color: var(--ink-soft); text-align: right; }

/* Approach */
.approach-section { padding-block: 126px; color: var(--white); background: var(--ink); }
.section-heading.inverse .eyebrow, .inverse > p { color: #aeb8b3; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #45504b; border-bottom: 1px solid #45504b; }
.principle { min-height: 330px; padding: 34px; border-right: 1px solid #45504b; }
.principle:first-child { padding-left: 0; }
.principle:last-child { border-right: 0; }
.principle > span { color: #92a39a; font-family: var(--serif); font-size: 1.35rem; }
.principle h3 { margin: 86px 0 14px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.principle p { margin: 0; color: #b9c2bd; font-size: .92rem; }

/* Company */
.company-section { padding-block: 126px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.company-card, .contact-card { padding: clamp(38px, 6vw, 78px); border: 1px solid var(--line); }
.company-card { background: var(--white); }
.company-card h2, .contact-card h2 { margin: 14px 0 24px; font-family: var(--serif); font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.company-card > p:not(.eyebrow), .contact-card > p:not(.eyebrow) { max-width: 630px; color: var(--ink-soft); }
.company-details { margin: 48px 0 0; }
.company-details div { padding: 17px 0; display: grid; grid-template-columns: 150px 1fr; border-top: 1px solid var(--line); }
.company-details div:last-child { border-bottom: 1px solid var(--line); }
.company-details dt { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
.company-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-card { color: var(--white); background: var(--rust); }
.contact-card .eyebrow, .contact-card > p:not(.eyebrow) { color: #f5d8ce; }
.contact-card h2 { font-size: clamp(2.45rem, 4.2vw, 4rem); }
.contact-card .button { max-width: 100%; margin-top: 24px; overflow-wrap: anywhere; text-align: center; }

/* Footer */
.site-footer { padding-top: 72px; color: var(--white); background: #0d1512; }
.footer-grid { padding-bottom: 70px; display: grid; grid-template-columns: 2fr .7fr .9fr 1.3fr; gap: 48px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid > div:first-child p { max-width: 340px; color: #9eaaa4; }
.footer-grid a { color: #dce2df; text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-brand { font-family: var(--serif); font-size: 1.8rem !important; }
.footer-label { margin: 0 0 7px; color: #7f8b85; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-bottom { padding-block: 24px; display: flex; justify-content: space-between; border-top: 1px solid #34403a; color: #8c9993; font-size: .78rem; }
.footer-bottom a { color: inherit; text-decoration: none; }

/* Legal pages */
.legal-main { padding-block: 70px 120px; }
.legal-hero { max-width: 940px; padding: 72px 0 54px; border-bottom: 1px solid var(--ink); }
.legal-hero h1 { margin: 18px 0 22px; font-family: var(--serif); font-size: clamp(3.7rem, 8vw, 7.5rem); font-weight: 400; letter-spacing: -.06em; line-height: .88; }
.legal-hero > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 1.12rem; }
.legal-meta { margin-top: 34px; display: flex; gap: 30px; flex-wrap: wrap; color: var(--ink-soft); font-size: .82rem; }
.legal-layout { margin-top: 58px; display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 76px; align-items: start; }
.legal-toc { position: sticky; top: 116px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-toc p { margin: 0 0 14px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.legal-toc a { display: block; padding: 5px 0; color: var(--ink-soft); font-size: .85rem; text-decoration: none; }
.legal-toc a:hover { color: var(--ink); }
.legal-content section { padding: 0 0 36px; scroll-margin-top: 110px; }
.legal-content h2 { margin: 0 0 14px; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; letter-spacing: -.025em; }
.legal-content h3 { margin: 24px 0 8px; font-size: 1rem; }
.legal-content p, .legal-content li { color: #414b46; }
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--forest); font-weight: 600; text-underline-offset: 3px; }
.legal-callout { margin-bottom: 44px; padding: 24px 26px; border-left: 4px solid var(--rust); background: var(--white); }
.legal-callout p { margin: 0; }
.legal-contact { padding: 25px; border: 1px solid var(--line); background: var(--white); }
.legal-contact p { margin: 4px 0; overflow-wrap: anywhere; }
.policy-directory { max-width: 940px; padding: 58px 0 34px; display: grid; gap: 18px; }
.policy-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 26px; align-items: start; padding: 30px; border: 1px solid var(--line); background: var(--white); }
.policy-card img { width: 88px; height: 88px; border-radius: 20px; object-fit: cover; }
.policy-card h2 { margin: 4px 0 8px; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; letter-spacing: -.025em; }
.policy-card p:not(.product-kicker) { max-width: 680px; margin: 0 0 14px; color: var(--ink-soft); }
.policy-help { max-width: 940px; margin-top: 24px; padding: 42px; color: var(--cream); background: var(--forest); }
.policy-help h2 { margin: 12px 0 10px; font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
.policy-help p { margin-bottom: 0; }
.policy-help a { color: var(--cream); font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.app-legal-hero { display: grid; grid-template-columns: 110px 1fr; gap: 28px; align-items: center; }
.app-legal-hero img { width: 110px; height: 110px; border-radius: 24px; }
.app-legal-hero h1 { margin-top: 10px; }
.redirect-card, .not-found-card { width: min(720px, calc(100vw - 48px)); margin: 14vh auto; padding: 54px; border: 1px solid var(--line); background: var(--white); text-align: center; }
.redirect-card h1, .not-found-card h1 { margin: 0 0 18px; font-family: var(--serif); font-size: 3.2rem; font-weight: 400; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-copy { padding-bottom: 0; }
  .hero-showcase { width: min(720px, 100%); }
  .showcase-image { height: auto; min-height: 0; aspect-ratio: 1.5 / 1; }
  .showcase-image img { width: min(48%, 250px); }
  .feature-product, .project-wide { grid-template-columns: 1fr; }
  .play-app-grid { grid-template-columns: 1fr; }
  .play-app-card { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; }
  .play-app-visual { min-height: 340px; }
  .feature-visual { min-height: 0; aspect-ratio: 2.048 / 1; }
  .app-icon-feature { aspect-ratio: 1.5 / 1; }
  .app-icon-feature img { width: min(48%, 250px); }
  .project-wide .project-media { max-height: 520px; }
  .more-products { grid-template-columns: 1fr; gap: 30px; }
  .company-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: span 3; }
  .legal-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 42px; }
}

@media (max-width: 760px) {
  :root { --shell: min(calc(100vw - 32px), 1180px); }
  .nav-shell { min-height: 70px; }
  .brand img { width: 88px; }
  .brand span { font-size: .78rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 70px 0 auto; height: calc(100vh - 70px); padding: 46px 24px;
    display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 2rem; font-weight: 400; }
  .nav-contact { margin-top: 18px; border: 0; border-radius: 0; }
  .hero { padding-block: 62px 70px; gap: 58px; }
  .hero-copy { width: 100%; max-width: 100%; }
  .hero h1 { font-size: clamp(2.8rem, 11vw, 3.6rem); overflow-wrap: break-word; }
  .hero-lede { max-width: 100%; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .showcase-caption h2 { font-size: 1.75rem; }
  .showcase-note { padding-left: 0; }
  .statement { padding-block: 66px; }
  .statement-grid, .section-heading { grid-template-columns: 1fr; gap: 26px; }
  .statement-grid > p:last-child { font-size: 2.25rem; }
  .work-section, .approach-section, .company-section { padding-block: 84px; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2 { font-size: 3rem; }
  .feature-copy { padding: 34px 25px; }
  .project-grid { grid-template-columns: 1fr; }
  .play-app-card { display: flex; }
  .play-app-visual { min-height: 275px; padding: 34px; }
  .play-app-copy { padding: 28px 24px 34px; }
  .project-wide { grid-column: auto; }
  .project-card { min-height: auto; }
  .project-icon-wrap { min-height: 290px; }
  .project-copy { padding: 28px 24px 34px; }
  .product-row { grid-template-columns: 48px 1fr; padding: 13px 0; }
  .product-row small { grid-column: 2; text-align: left; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:first-child { min-height: 0; padding: 30px 0; border-right: 0; border-bottom: 1px solid #45504b; }
  .principle:last-child { border-bottom: 0; }
  .principle h3 { margin-top: 36px; }
  .company-card, .contact-card { padding: 38px 25px; }
  .company-details div { grid-template-columns: 1fr; gap: 4px; }
  .contact-card .button { padding: 12px 17px; font-size: .78rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: span 2; }
  .footer-bottom { gap: 22px; align-items: flex-start; flex-direction: column; }
  .legal-main { padding-block: 32px 80px; }
  .legal-hero { padding-top: 48px; }
  .legal-hero h1 { font-size: 4rem; }
  .legal-layout { grid-template-columns: 1fr; gap: 42px; }
  .legal-toc { position: static; }
  .app-legal-hero { grid-template-columns: 76px 1fr; gap: 18px; }
  .app-legal-hero img { width: 76px; height: 76px; border-radius: 16px; }
  .app-legal-hero h1 { font-size: 3rem; }
  .policy-card { grid-template-columns: 64px minmax(0, 1fr); gap: 18px; padding: 24px; }
  .policy-card img { width: 64px; height: 64px; border-radius: 15px; }
  .policy-help { padding: 30px 24px; }
  .redirect-card, .not-found-card { padding: 38px 24px; }
}
