:root {
  --ink: #231c18;
  --muted: #675a51;
  --paper: #fffdf8;
  --paper-warm: #f6f0e5;
  --rust: #a53f27;
  --rust-dark: #712b1d;
  --gold: #d9a934;
  --green: #244c40;
  --blue: #294d6d;
  --line: #d8cbb8;
  --shadow: 0 18px 50px rgba(41, 29, 19, .16);
  --display: "Libre Franklin", Arial, sans-serif;
  --body: "DM Sans", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid #f3bd35; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -80px; background: #fff; padding: 10px 14px; border: 2px solid var(--rust); }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; z-index: 40; top: 0; left: 0; right: 0; min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 9px clamp(18px, 4vw, 68px); color: #fff; background: rgba(28, 23, 20, .94); border-bottom: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); }
.scroll-progress { position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left center; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1rem var(--display); }
.brand img { width: 58px; height: 44px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); font-weight: 600; }
.site-nav > a { text-decoration: none; }
.site-nav > a:not(.button) { border-bottom: 2px solid transparent; }
.site-nav > a:not(.button):hover, .site-nav > a:not(.button):focus-visible, .site-nav > a.active { border-color: var(--gold); }
.nav-signin { margin-left: 10px; }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; content: ""; margin: auto; }
.menu-icon::before { transform: translateY(-7px); }
.menu-icon::after { transform: translateY(5px); }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 20px; border: 1px solid var(--rust); border-radius: 6px; background: var(--rust); color: #fff; font-weight: 800; text-decoration: none; text-align: center; box-shadow: 0 7px 0 var(--rust-dark); transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover, .button:focus-visible { background: #b94a2f; transform: translateY(-2px); box-shadow: 0 9px 0 var(--rust-dark); }
.button:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--rust-dark); }
.button-small { min-height: 40px; padding: 8px 15px; box-shadow: none; }
.button-light { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 7px 0 rgba(30,21,16,.6); }
.button-light:hover, .button-light:focus-visible { background: #fff; box-shadow: 0 9px 0 rgba(30,21,16,.6); }
.text-link { color: var(--rust-dark); font-weight: 800; text-underline-offset: 4px; }

.hero { position: relative; height: calc(100svh - 38px); min-height: 620px; max-height: 820px; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #1d1916; }
.hero-product { position: absolute; inset: 70px 0 0; width: 100%; height: calc(100% - 70px); object-fit: cover; object-position: center top; filter: saturate(.94) contrast(1.01); }
.hero-scrim { position: absolute; inset: 0 auto 0 0; width: min(760px, 62%); background: rgba(24,20,18,.92); border-right: 1px solid rgba(255,255,255,.18); }
.hero-content { position: relative; z-index: 2; width: min(650px, calc(100% - 40px)); margin: 0 0 clamp(54px, 8vh, 86px) clamp(20px, 7vw, 112px); }
.eyebrow { margin: 0 0 10px; color: var(--rust); font: 800 .78rem var(--display); letter-spacing: 0; text-transform: uppercase; }
.hero .eyebrow, .broadcast .eyebrow, .final-cta .eyebrow { color: #ffd46d; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.7rem); }
h3 { font-size: 1.15rem; }
.hero-line { margin: 12px 0 0; font: 600 clamp(1.35rem, 2.5vw, 2rem) "Patrick Hand", cursive; color: #ffe19a; }
.hero-copy { max-width: 650px; margin: 16px 0 0; font-size: clamp(1rem, 1.8vw, 1.25rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.next-section { position: absolute; z-index: 3; right: 30px; bottom: 26px; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); color: #fff; text-decoration: none; font-size: .68rem; text-transform: uppercase; }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #fff; }
.proof-strip p { margin: 0; padding: 22px clamp(20px, 4vw, 60px); border-right: 1px solid var(--line); color: var(--muted); }
.proof-strip p:last-child { border-right: 0; }
.proof-strip strong { color: var(--ink); }

.product-tour { background: #eef2f0; }
.tour-heading { max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: end; gap: 48px; }
.tour-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 1.08rem; }
.tour-tabs { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; border-bottom: 2px solid var(--ink); }
.tour-tabs button { min-width: max-content; min-height: 48px; padding: 10px 18px; border: 0; border-right: 1px solid #9ea9a4; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tour-stage { display: grid; grid-template-columns: minmax(260px, .66fr) minmax(520px, 1.34fr); min-height: 610px; border: 1px solid #9ea9a4; border-top: 0; background: #fff; }
.tour-copy { align-self: stretch; padding: clamp(30px, 5vw, 68px); border-right: 1px solid var(--line); }
.tour-kicker { margin: 0 0 28px; color: var(--rust); font: 800 .78rem var(--display); text-transform: uppercase; }
.tour-copy h3 { max-width: 500px; font-size: clamp(1.65rem, 3vw, 2.55rem); }
.tour-copy > p:not(.tour-kicker) { margin: 22px 0; color: var(--muted); font-size: 1.05rem; }
.tour-copy ul { margin: 28px 0 0; padding: 0; list-style: none; }
.tour-copy li { padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.tour-copy li::before { content: "OK"; display: inline-block; width: 34px; color: var(--green); font: 800 .7rem var(--display); }
.tour-image-button { position: relative; min-width: 0; min-height: 420px; padding: 0; overflow: hidden; border: 0; background: #dedbd4; cursor: zoom-in; }
.tour-image-button img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.tour-image-button span { position: absolute; right: 18px; bottom: 18px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.55); border-radius: 4px; background: rgba(28,23,20,.9); color: #fff; font-weight: 800; }

.section { padding: clamp(72px, 10vw, 136px) clamp(20px, 6vw, 96px); }
.section-heading { max-width: 850px; margin-bottom: 52px; }
.section-heading > p:last-child { max-width: 700px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.workflow { background: var(--paper-warm); }
.phase-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.phase-rail article { min-height: 260px; padding: 22px 22px 28px; border-right: 1px solid var(--line); }
.phase-rail article:last-child { border-right: 0; }
.phase-rail span { display: block; color: var(--rust); font: 800 .8rem var(--display); }
.phase-rail h3 { margin-top: 50px; font-size: 1.4rem; }
.phase-rail p { color: var(--muted); }

.product-band { display: grid; grid-template-columns: minmax(300px, .72fr) minmax(520px, 1.28fr); align-items: center; gap: clamp(34px, 6vw, 90px); padding: clamp(70px, 9vw, 126px) clamp(20px, 6vw, 96px); }
.product-copy p { color: var(--muted); font-size: 1.05rem; }
.product-copy .eyebrow { color: var(--rust); font-size: .78rem; }
.product-copy h2 { max-width: 620px; }
.check-list { margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); font-weight: 600; }
.check-list li::before { position: absolute; left: 0; content: "OK"; color: var(--green); font: 800 .72rem var(--display); }
.product-shot { margin: 0; box-shadow: var(--shadow); background: #fff; border: 1px solid #c8b9a4; }
.product-shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; object-position: top left; background: #eef1f2; }
.product-shot figcaption { padding: 13px 16px; color: var(--muted); font-size: .84rem; border-top: 1px solid var(--line); }
.command-band { background: var(--paper); }
.gear-band { background: #e9f0ed; }
.gear-band .product-shot { order: -1; }
.series-band { background: #edf2f5; }
.series-band .product-shot { border-color: #aebdc6; box-shadow: 0 22px 55px rgba(30,55,70,.18); }
.inline-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.inline-stats span { padding: 7px 10px; border: 1px solid #9ab0a7; border-radius: 4px; background: #fff; color: var(--green); font-weight: 800; font-size: .78rem; text-transform: uppercase; }

.audience { background: #fffaf0; }
.audience-list { border-top: 2px solid var(--ink); }
.audience-list article { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 4vw, 56px); min-height: 170px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.audience-list article > span { align-self: start; color: var(--rust); font: 800 .8rem var(--display); }
.audience-list h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
.audience-list p { max-width: 840px; margin: 10px 0 0; color: var(--muted); }
.audience-list a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 0; color: var(--rust-dark); font-weight: 800; text-underline-offset: 5px; }

.specialty { background: #fff; }
.studio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.studio-grid article { min-height: 235px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studio-grid article:nth-child(2), .studio-grid article:nth-child(5) { background: #f5e8bd; }
.studio-grid article:nth-child(3), .studio-grid article:nth-child(6) { background: #e4edf3; }
.studio-grid h3 { margin: 34px 0 10px; }
.studio-grid p { margin: 0; color: var(--muted); }
.studio-icon { display: inline-grid; min-width: 42px; height: 34px; place-items: center; padding: 0 7px; background: var(--ink); color: #fff; font: 800 .72rem var(--display); }

.broadcast { padding: clamp(80px, 11vw, 150px) clamp(20px, 6vw, 96px); color: #fff; background: #203f53; }
.broadcast-inner { max-width: 1400px; margin: auto; }
.broadcast h2 { max-width: 870px; }
.broadcast-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border-top: 1px solid rgba(255,255,255,.5); }
.broadcast-flow article { min-height: 245px; padding: 24px; border-right: 1px solid rgba(255,255,255,.2); }
.broadcast-flow article:last-child { border-right: 0; }
.broadcast-flow span { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #ffd46d; color: #ffd46d; }
.broadcast-flow h3 { margin-top: 42px; }
.broadcast-flow p { color: rgba(255,255,255,.74); }

.education { position: relative; background: url("assets/corkboard-background.jpg") center / cover; }
.notebook-note { position: relative; max-width: 980px; margin: auto; padding: clamp(36px, 6vw, 76px); background: #fffef7; box-shadow: 0 20px 55px rgba(30,19,12,.35); transform: rotate(-.3deg); }
.notebook-note::before { position: absolute; top: 0; bottom: 0; left: 44px; width: 2px; content: ""; background: #e4a6a0; }
.notebook-note > * { position: relative; margin-left: 28px; }
.education-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 34px; }
.education-columns p { color: var(--muted); }
.availability { padding: 14px 16px; border-left: 4px solid var(--gold); background: #f7edc9; color: #594315; }

.pricing { background: #f2f4f2; }
.billing-toggle { display: inline-flex; margin-bottom: 32px; padding: 4px; border: 1px solid #aeb9b4; background: #fff; }
.billing-toggle button { min-height: 44px; border: 0; padding: 8px 16px; background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--green); color: #fff; }
.billing-toggle span { font-size: .72rem; opacity: .8; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; border-top: 2px solid var(--ink); }
.price-card { position: relative; min-height: 610px; display: flex; flex-direction: column; padding: 34px 30px; border-right: 1px solid #aeb9b4; background: #fff; }
.price-card:first-child { border-left: 1px solid #aeb9b4; }
.price-card.featured { background: #fff6d9; }
.price-badge { position: absolute; top: -30px; left: 0; margin: 0; padding: 6px 10px; background: var(--rust); color: #fff; font: 800 .72rem var(--display); }
.price-card h3 { font-size: 1.8rem; }
.tagline { color: var(--rust-dark); font-weight: 800; }
.price { margin: 28px 0 0; }
.price strong { font: 800 clamp(2.3rem, 4vw, 3.5rem) var(--display); }
.price span { display: block; color: var(--muted); }
.billed { min-height: 25px; margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.plan-blurb { min-height: 48px; }
.price-card ul { min-height: 245px; margin: 12px 0 28px; padding: 0; list-style: none; }
.price-card li { padding: 7px 0; border-bottom: 1px solid #e6ded2; font-size: .92rem; }
.price-card li::before { content: "+"; margin-right: 9px; color: var(--rust); font-weight: 800; }
.price-card li.inherited { color: var(--green); font-weight: 800; }
.price-button { margin-top: auto; }
.pricing-footnote { max-width: 900px; color: var(--muted); font-size: .85rem; }
.plan-compare { margin-top: 54px; }
.compare-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.compare-heading h3 { font-size: clamp(1.45rem, 2.5vw, 2rem); }
.compare-heading p { max-width: 560px; margin: 0; color: var(--muted); }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
.compare-table th, .compare-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { width: 46%; text-align: left; }
.compare-table thead th { position: sticky; top: 70px; z-index: 2; background: #e4ebe7; font-family: var(--display); }
.compare-table tbody th { color: var(--ink); font-weight: 600; }
.compare-yes { color: var(--green); font-weight: 900; }
.compare-no { color: #6f6760; } /* was #988d85 = 3.24:1 on white, below AA */
.compare-mobile-note { display: none; margin: 12px 0 0; color: var(--muted); font-size: .84rem; }

.faq { background: #fff; }
.faq-list { max-width: 980px; border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 23px 48px 23px 0; cursor: pointer; font: 700 1.05rem var(--display); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; right: 10px; content: "+"; color: var(--rust); font-size: 1.6rem; }
details[open] summary::after { content: "-"; }
details p { max-width: 740px; margin: -8px 0 24px; color: var(--muted); }

.final-cta { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 50px; padding: clamp(70px, 10vw, 130px) clamp(20px, 6vw, 96px); color: #fff; background: var(--rust-dark); }
.final-cta h2 { max-width: 800px; }
.final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.final-actions .button { background: #fff; border-color: #fff; color: var(--rust-dark); box-shadow: 0 7px 0 #3f180f; }
.final-actions .text-link { color: #fff; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 26px 50px; padding: 42px clamp(20px, 6vw, 96px); color: #fff; background: #1f1b18; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 58px; height: 44px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { color: rgba(255,255,255,.62); font-size: .84rem; }
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; }
footer nav a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
footer > p { grid-column: 1 / -1; margin: 0; color: rgba(255,255,255,.5); font-size: .8rem; }

.image-dialog { width: min(1240px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid #85786d; border-radius: 6px; background: #191613; color: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.5); }
.image-dialog::backdrop { background: rgba(14,12,10,.82); }
.image-dialog-bar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 12px 8px 18px; }
.image-dialog-bar button { min-width: 72px; min-height: 38px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; background: transparent; color: #fff; cursor: pointer; }
.image-dialog img { width: 100%; max-height: calc(100dvh - 84px); object-fit: contain; object-position: top center; background: #e9e5de; }

@media (max-width: 1050px) {
  .site-nav { gap: 14px; }
  .phase-rail { grid-template-columns: repeat(3, 1fr); }
  .tour-stage { grid-template-columns: 1fr; }
  .tour-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .tour-image-button { min-height: 520px; }
  .phase-rail article { border-bottom: 1px solid var(--line); }
  .product-band { grid-template-columns: 1fr; }
  .gear-band .product-shot { order: 0; }
  .broadcast-flow { grid-template-columns: repeat(2, 1fr); }
  .broadcast-flow article:nth-child(2) { border-right: 0; }
  .pricing-grid { grid-template-columns: 1fr; gap: 42px; border-top: 0; }
  .price-card, .price-card:first-child { min-height: 0; border: 1px solid #aeb9b4; }
  .price-card ul { min-height: 0; }
}

@media (max-width: 760px) {
  .site-header { min-height: 62px; padding: 7px 16px; }
  .brand img { width: 48px; height: 38px; }
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 62px; left: 0; right: 0; display: none; align-items: stretch; padding: 18px; background: #1f1b18; border-top: 1px solid rgba(255,255,255,.14); box-shadow: var(--shadow); }
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .site-nav .button { justify-content: center; }
  .nav-signin { margin-left: 0; }
  .hero { height: calc(100svh - 28px); min-height: 590px; max-height: 760px; }
  /* The hero shot is a full page of high-contrast monospace screenplay.
     Behind a headline on a narrow screen it competes as TEXT, not texture --
     scrim opacity alone could not fix it (verified on an emulator at .76 and
     again at .93). Blurring it keeps the product context and the depth while
     removing the words. */
  .hero-product { inset: 62px 0 0; height: calc(100% - 62px); object-position: 42% top;
    filter: blur(5px) saturate(.88); transform: scale(1.04); }
  /* Was rgba(22,17,14,.76): on a phone the scrim spans the full width and
     the screenplay in product-writer.png read straight THROUGH the body copy
     -- text on text. Caught in an emulator screenshot; the contrast sweep
     cannot see it because it returns null over a background-image. Darker,
     and graded so the copy end of the hero is the most opaque. */
  .hero-scrim { width: 100%; border-right: 0;
    background: linear-gradient(180deg, rgba(22,17,14,.70) 0%, rgba(22,17,14,.86) 30%, rgba(22,17,14,.90) 100%); }
  .hero-content { width: calc(100% - 36px); margin: 0 18px 66px; }
  h1 { font-size: clamp(2.9rem, 16vw, 4.8rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { display: grid; }
  .next-section { display: none; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip p { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 20px; }
  .tour-heading { grid-template-columns: 1fr; gap: 18px; }
  .tour-tabs { margin-right: -20px; }
  .tour-stage { min-height: 0; }
  .tour-copy { padding: 30px 22px; }
  .tour-image-button { min-height: 310px; }
  .tour-image-button span { right: 10px; bottom: 10px; }
  .phase-rail { grid-template-columns: 1fr; }
  .phase-rail article { min-height: 0; border-right: 0; }
  .phase-rail h3 { margin-top: 24px; }
  .product-band { padding-top: 70px; padding-bottom: 70px; }
  .product-shot img { aspect-ratio: 1 / 1; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-grid article { min-height: 0; }
  .audience-list article { grid-template-columns: 38px minmax(0, 1fr); gap: 14px; }
  .audience-list article > a { grid-column: 2; justify-self: start; }
  .broadcast-flow { grid-template-columns: 1fr; }
  .broadcast-flow article { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .education-columns { grid-template-columns: 1fr; gap: 12px; }
  .notebook-note::before { left: 24px; }
  .notebook-note > * { margin-left: 14px; }
  .billing-toggle { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .billing-toggle button { padding: 8px; }
  .compare-heading { display: block; }
  .compare-heading p { margin-top: 10px; }
  .compare-mobile-note { display: block; }
  .final-cta { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-content: flex-start; }
}

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

/* ══ 2026 revamp: hero trust row, release band, workspace bento ═══════════
   Extends the existing tokens rather than introducing a second palette —
   --rust, --gold, --paper-warm and --line are the site's own. */

.hero-trust {
  list-style: none; margin: 18px 0 10px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: .92rem; color: rgba(255,255,255,.86);
}
.hero-trust li { display: flex; align-items: baseline; gap: 6px; }
.hero-trust strong { font: 800 1.05rem var(--display); color: var(--gold); }

.section-lede {
  max-width: 62ch; margin: 0 0 34px; color: var(--muted); font-size: 1.06rem;
}

/* ── release band ─────────────────────────────────────────────────────── */
.release { background: var(--paper-warm); }
.release-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.release-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; box-shadow: 0 10px 26px rgba(41,29,19,.08);
  border-top: 4px solid var(--rust);
}
.release-card h3 { margin: 0 0 10px; font: 800 1.18rem var(--display); }
.release-card p { margin: 0 0 12px; }
.release-card p:last-child { margin-bottom: 0; }
.release-detail { color: var(--muted); font-size: .95rem; }

/* ── workspace bento ──────────────────────────────────────────────────── */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bento-tile {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px; box-shadow: 0 8px 22px rgba(41,29,19,.07);
  display: flex; flex-direction: column; gap: 10px;
}
.bento-tile h3 { margin: 0; font: 800 1.1rem var(--display); }
.bento-tile p { margin: 0; }
.tile-tools {
  font-size: .9rem; color: var(--muted); line-height: 1.5;
}
.tile-accent { border-top: 4px solid var(--gold); }
.tile-dark {
  background: #241d19; border-color: #241d19; color: #f6f0e5;
}
.tile-dark h3 { color: #fff; }
.tile-dark .tile-tools { color: var(--gold); }
/* Two columns' worth on wide screens; auto-fit handles the rest. */
@media (min-width: 900px) { .tile-wide { grid-column: span 2; } }

@media (prefers-reduced-motion: reduce) {
  .release-card, .bento-tile { transition: none; }
}

/* == 2026 revamp II: the tool index =====================================
   The product metaphor IS the depth treatment. Rather than bolt WebGL onto
   a marketing page -- heavy, and the research is clear that a real product
   screenshot out-converts a 3D graphic -- the forty tools are pinned index
   cards on cork, with genuine perspective and a scroll-driven reveal.
   Same tokens as the rest of the site: --rust, --gold, --ink, --line.

   NOTE ON THE TRANSFORM SPLIT. The static tilt uses the independent
   `rotate` property, never `transform`. The reveal animation below animates
   `transform`, and an animated property is taken over wholesale for the
   animation's fill -- when the tilt lived in `transform` too, the animation
   flattened every card to 0deg. Measured: matrix(1,0,0,1,0,0) on all forty.
   Keeping tilt in `rotate` and motion in `transform` lets them compose. */

.features { background: #efe6d6; }
.features > .eyebrow { color: var(--rust); }

/* -- filter chips ------------------------------------------------------ */
.feature-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.feature-filters button {
  min-height: 42px; padding: 8px 15px; cursor: pointer;
  border: 1px solid #bcab92; border-radius: 999px;
  background: var(--paper); color: var(--muted);
  font: 700 .88rem var(--body);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.feature-filters button:hover { border-color: var(--rust); color: var(--rust-dark); }
.feature-filters button[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.feature-count { margin: 0 0 30px; color: var(--muted); font-size: .9rem; }

/* -- the cork board ---------------------------------------------------- */
.cork {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  padding: clamp(20px, 3vw, 36px);
  border-radius: 10px;
  background: url("assets/corkboard-background.jpg") center / cover, #b98d55;
  box-shadow: inset 0 0 60px rgba(60, 34, 12, .45), var(--shadow);
  perspective: 900px;
}

/* -- a pinned index card ----------------------------------------------- */
.pin-card {
  position: relative;
  padding: 20px 18px 18px;
  background: linear-gradient(#fffdf6, #f7f0e2);
  border: 1px solid #ded0b6;
  border-radius: 3px;
  box-shadow: 0 10px 20px rgba(48, 28, 10, .3), 0 2px 3px rgba(48, 28, 10, .2);
  transform-style: preserve-3d;
  /* NB: rotate is deliberately NOT transitioned. With a transition on it
     the card reported a permanently-running transition and computed 0deg,
     flattening every tilt. Tilt stays a static value; only lift animates. */
  transition: transform .22s ease, box-shadow .22s ease;
}
/* Ruled-card feel: one red margin line, like the app's own note cards. */
.pin-card::after {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 2px; background: rgba(190, 96, 86, .5);
}
/* The pin. */
.pin-card::before {
  content: ""; position: absolute; top: -7px; left: 50%;
  width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f4816a, #a8301c 70%);
  box-shadow: 0 2px 4px rgba(40, 20, 8, .5);
  z-index: 2;
}
/* Alternating tilt so the board reads as hand-pinned, not a table.
   `rotate`, not `transform` -- see the note at the top of this block. */
.pin-card:nth-child(3n+1) { rotate: -.7deg; }
.pin-card:nth-child(3n+2) { rotate: .45deg; }
.pin-card:nth-child(3n+3) { rotate: -.25deg; }
.pin-card:nth-child(5n)   { rotate: .8deg; }

.pin-card:hover, .pin-card:focus-within {
  transform: translateY(-6px) translateZ(26px);
  box-shadow: 0 22px 38px rgba(48, 28, 10, .38), 0 3px 5px rgba(48, 28, 10, .25);
}
.pin-card h3 {
  margin: 0 0 8px 14px; font: 800 1.06rem var(--display); color: var(--ink);
}
.pin-card h3 em {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 3px;
  background: var(--gold); color: #4a370c;
  font: 800 .6rem var(--display); font-style: normal;
  text-transform: uppercase; letter-spacing: .04em; vertical-align: middle;
}
.pin-card p { margin: 0 0 0 14px; color: #5b4c40; font-size: .93rem; line-height: 1.5; }
.pin-card[hidden] { display: none; }

.feature-foot { max-width: 68ch; margin: 26px 0 0; color: var(--muted); font-size: .9rem; }
.feature-foot a { color: var(--rust-dark); font-weight: 700; }

/* -- scroll-driven reveal ---------------------------------------------- */
/* Progressive enhancement: without support the cards are simply visible.
   Animates opacity and transform only; `rotate` is left alone so the tilt
   above survives the animation's fill. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes pin-in {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .pin-card {
      animation: pin-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    /* Hover lift must still win over the animation's final frame. */
    .pin-card:hover, .pin-card:focus-within { animation: none; }
  }
}

@media (max-width: 760px) {
  .cork { gap: 14px; padding: 16px 12px; grid-template-columns: 1fr; }
  /* Higher specificity than the .pin-card:nth-child() tilt rules (0,2,0):
     an equal-specificity later override did not win in testing, so this is
     scoped through .cork to be unambiguous rather than rely on order. */
  .cork .pin-card, .cork .pin-card:nth-child(3n+1), .cork .pin-card:nth-child(3n+2),
  .cork .pin-card:nth-child(3n+3), .cork .pin-card:nth-child(5n) { rotate: none; }
  .pin-card:hover, .pin-card:focus-within { transform: translateY(-4px); }
  .feature-filters button { min-height: 40px; padding: 7px 13px; font-size: .84rem; }
}

/* The hero headline is now a sentence naming a result, not the one-word
   brand mark it replaced. At 16vw a 43-character line ran 324px tall on a
   375px screen and swallowed the hero, so the mobile step is retuned to the
   new copy length. Desktop clamp is unchanged. */
@media (max-width: 760px) {
  h1 { font-size: clamp(2.1rem, 9.2vw, 3rem); line-height: 1.1; }
}
