:root {
  color-scheme: light;
  --ink: #151515;
  --muted: #68655f;
  --paper: #f6f4ef;
  --white: #ffffff;
  --gold: #f2a51a;
  --gold-dark: #c97e00;
  --green: #1e735f;
  --red: #c44335;
  --line: #d8d4cb;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
body.menu-open { overflow: hidden; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.2);
  transition: background .25s ease, height .25s ease;
}
.site-header.is-scrolled { height: 66px; background: rgba(16,16,16,.96); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; }
.brand img { width: 42px; height: 42px; object-fit: cover; border: 1px solid rgba(255,255,255,.55); }
.menu-button { position: relative; z-index: 23; width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-button span { width: 25px; height: 2px; display: block; background: white; transition: transform .2s ease, opacity .2s ease; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.site-nav { position: fixed; z-index: 22; inset: 0 0 0 auto; width: min(390px, 100%); display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 102px 38px 34px; background: #111; color: white; box-shadow: -18px 0 50px rgba(0,0,0,.3); transform: translateX(104%); visibility: hidden; transition: transform .24s ease, visibility .24s ease; }
.site-nav.is-open { transform: translateX(0); visibility: visible; }
.site-nav > a { padding: 14px 0; border-bottom: 1px solid #343434; font-size: 1.08rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover { color: var(--gold); }
.menu-label { margin: 0 0 16px; color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.menu-policies { margin-top: auto; padding-top: 28px; }
.menu-policies p { margin: 0 0 8px; color: #999; font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.menu-policies a { display: block; padding: 8px 0; color: #ddd; font-size: .9rem; font-weight: 700; text-decoration: none; }
.menu-backdrop { position: fixed; z-index: 19; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0,0,0,.58); }
.menu-backdrop[hidden] { display: none; }

.hero {
  position: relative;
  min-height: min(780px, 92svh);
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(5,5,5,.94) 0%, rgba(5,5,5,.67) 43%, rgba(5,5,5,.12) 75%), linear-gradient(0deg, rgba(5,5,5,.76), transparent 50%); }
.hero-content { position: relative; z-index: 1; width: min(760px, calc(100% - 48px)); margin: 0 max(24px, calc((100vw - var(--max)) / 2)) 112px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.dark { color: var(--green); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { max-width: 720px; font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: 1.75rem; }
.hero-copy { max-width: 610px; margin: 22px 0 34px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: #efede8; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 2px solid transparent; text-decoration: none; font-weight: 850; }
.button-primary { background: var(--gold); color: #15110a; }
.button-primary:hover { background: #ffc04a; }
.button-secondary { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-secondary:hover { border-color: var(--green); color: var(--green); }
.button-launch { background: var(--green); color: var(--white); }
.button-launch:hover { background: #145b4b; }
.button-disabled { border-color: #d1cdc4; background: #e9e6df; color: #77736c; cursor: not-allowed; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { border-color: var(--gold); }
.scroll-cue { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 30px; font-size: .8rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.scroll-cue span { margin-left: 8px; color: var(--gold); font-size: 1.2rem; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }
.projects { padding: 104px 0 118px; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 48px; align-items: end; margin-bottom: 42px; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 1.08rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.project-media { position: relative; aspect-ratio: 16 / 9; display: block; overflow: hidden; background: #dedbd4; text-decoration: none; }
.project-media:focus-visible { outline: 4px solid var(--gold); outline-offset: -4px; }
.project-media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project:hover .project-media > img { transform: scale(1.025); }
.status { position: absolute; top: 16px; right: 16px; padding: 7px 11px; background: rgba(18,18,18,.9); color: var(--white); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.status.live { background: var(--green); }
.project-body { padding: 28px 30px 32px; }
.project-type { margin: 0 0 8px; color: var(--red); font-size: .75rem; font-weight: 850; text-transform: uppercase; }
.project-body > p:not(.project-type) { min-height: 78px; margin: 15px 0 22px; color: var(--muted); }
.project-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.project-button { width: 100%; min-width: 0; min-height: 48px; padding: 9px 10px; font-size: .88rem; text-align: center; }
.text-link { color: var(--green); font-weight: 850; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link.muted { color: #74716a; }

.wordsearch-media { display: grid; place-items: center; background: #dce9e4; }
.paper-preview { width: 48%; min-width: 190px; padding: 18px 22px 20px; background: white; border: 1px solid #c7c2b8; box-shadow: 0 12px 30px rgba(15,48,39,.16); transform: rotate(1.5deg); }
.paper-preview strong { display: block; padding-bottom: 8px; border-bottom: 2px solid #222; font-size: .67rem; }
.letter-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 13px; border: 2px solid #222; padding: 8px; }
.letter-grid span { aspect-ratio: 1; display: grid; place-items: center; font: 700 .66rem/1 ui-monospace, monospace; }

.studio { display: grid; grid-template-columns: minmax(240px, 390px) minmax(300px, 610px); justify-content: space-between; align-items: center; gap: 80px; padding: 100px 0; border-top: 1px solid var(--line); }
.studio-mark { aspect-ratio: 1; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); }
.studio-mark img { width: 72%; }
.studio p:last-child { margin: 24px 0 0; color: var(--muted); font-size: 1.15rem; }

.contact { width: 100%; max-width: none; padding: 92px max(24px, calc((100vw - var(--max)) / 2)); background: var(--green); color: var(--white); text-align: center; }
.contact h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
.contact > p:not(.eyebrow) { margin: 18px 0 30px; color: #dceae6; font-size: 1.08rem; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px max(24px, calc((100vw - var(--max)) / 2)); background: #111; color: #c8c5bf; font-size: .82rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; }
.footer-brand img { width: 34px; height: 34px; object-fit: cover; }
footer p { margin: 0; }

.inner-page { background: #f5f3ed; }
.inner-main { padding-top: 66px; }
.product-hero { position: relative; min-height: 570px; display: flex; align-items: flex-end; overflow: hidden; color: white; }
.product-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,7,7,.92), rgba(7,7,7,.54) 55%, rgba(7,7,7,.12)), linear-gradient(0deg, rgba(7,7,7,.8), transparent 55%); }
.product-hero-content { position: relative; z-index: 1; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 86px 0 72px; }
.product-hero-content h1 { max-width: 850px; font-size: clamp(3rem, 7vw, 6rem); }
.product-hero-content > p:not(.eyebrow) { max-width: 680px; margin: 20px 0 28px; color: #eee; font-size: 1.18rem; }
.hero-actions, .legal-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button-dark { background: #171717; color: white; }
.button-dark:hover { background: #303030; }
.button-outline-light { border-color: rgba(255,255,255,.8); color: white; }
.button-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.back-link { display: inline-block; margin-bottom: 30px; color: #eee; font-weight: 800; text-decoration: none; }
.back-link:hover { color: var(--gold); }
.product-card-flick > img { object-position: center; }
.product-wordsearch { background: #286b5c; }
.product-wordsearch::before { content: "WORD SEARCH\A P U Z Z L E\A C R E A T E\A L E T T E R\A P R I N T S"; white-space: pre; position: absolute; right: 8%; top: 16%; padding: 34px; border: 3px solid rgba(255,255,255,.68); color: rgba(255,255,255,.78); font: 800 clamp(1rem, 2.3vw, 2rem)/1.7 ui-monospace, monospace; letter-spacing: .45em; transform: rotate(2deg); }
.product-wordsearch::after { background: linear-gradient(90deg, rgba(7,35,29,.97), rgba(7,35,29,.68) 57%, rgba(7,35,29,.14)); }
.product-section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 88px 0; }
.product-section + .product-section { border-top: 1px solid var(--line); }
.product-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 80px; }
.product-intro h2, .legal-page h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
.product-intro p, .product-section > p { color: var(--muted); font-size: 1.08rem; }
.feature-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 17px 0; border-bottom: 1px solid var(--line); font-weight: 750; }
.showcase-band { background: var(--white); border-top: 1px solid var(--line); }
.showcase-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 88px 0 96px; }
.showcase-heading { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 48px; align-items: end; margin-bottom: 36px; }
.showcase-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 1.05rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.screenshot-grid figure, .screenshot-strip figure { min-width: 0; margin: 0; background: #111; border: 1px solid #292929; overflow: hidden; }
.screenshot-grid a, .screenshot-strip a { display: block; background: #111; }
.screenshot-grid a:focus-visible, .screenshot-strip a:focus-visible { outline: 4px solid var(--gold); outline-offset: -4px; }
.screenshot-grid img { width: 100%; height: auto; }
.landscape-gallery .screenshot-featured { grid-column: 1 / -1; }
.screenshot-grid figcaption, .screenshot-strip figcaption { padding: 12px 14px; background: #111; color: #f4f1e9; font-size: .82rem; font-weight: 750; }
.app-gallery a { height: 310px; display: grid; place-items: center; background: #e5eee9; }
.app-gallery img { width: 100%; height: 100%; object-fit: contain; }
.screenshot-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 23%); gap: 18px; padding: 0 0 18px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-color: var(--green) #ddd; scroll-snap-type: x proximity; }
.screenshot-strip figure { scroll-snap-align: start; }
.screenshot-strip img { width: 100%; aspect-ratio: 1080 / 2340; object-fit: cover; }
.legal-panel { background: #e6e2d8; }
.legal-panel-inner { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 82px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.legal-panel h2 { margin-bottom: 18px; }
.legal-panel p { margin: 0; color: var(--muted); }
.support-panel { text-align: center; }
.support-panel p { margin: 16px auto 28px; max-width: 650px; }

.legal-page { width: min(880px, calc(100% - 48px)); margin: 0 auto; padding: 126px 0 90px; }
.legal-page .eyebrow { color: var(--green); }
.legal-meta { margin: 16px 0 42px; color: var(--muted); }
.legal-callout { margin: 0 0 34px; padding: 18px 20px; border-left: 4px solid var(--gold); background: #ece8de; }
.legal-page section { padding: 28px 0; border-top: 1px solid var(--line); }
.legal-page h2 { margin-bottom: 12px; font-size: 1.65rem; }
.legal-page h3 { margin: 22px 0 8px; font-size: 1.08rem; }
.legal-page p, .legal-page li { color: #4f4d48; }
.legal-page ul { padding-left: 22px; }
.legal-page li + li { margin-top: 8px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 34px; }
.legal-nav a { color: var(--green); font-weight: 800; }

@media (max-width: 980px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-intro, .legal-panel-inner { gap: 42px; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .brand { gap: 9px; font-size: .88rem; }
  .brand img { width: 36px; height: 36px; }
  .menu-button { width: 42px; height: 42px; }
  .site-nav { padding: 88px 24px 28px; }
  .hero { min-height: 86svh; }
  .hero-image { object-position: 61% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(5,5,5,.95) 0%, rgba(5,5,5,.73) 53%, rgba(5,5,5,.25) 100%); }
  .hero-content { width: calc(100% - 36px); margin: 0 18px 76px; }
  h1 { font-size: 3.15rem; }
  .hero-copy { margin: 16px 0 26px; font-size: 1.05rem; }
  .scroll-cue { display: none; }
  .section { width: calc(100% - 36px); }
  .projects { padding: 72px 0 80px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-body { padding: 24px; }
  .project-body > p:not(.project-type) { min-height: 0; }
  .studio { grid-template-columns: 1fr; gap: 36px; padding: 72px 0; }
  .studio-mark { width: min(78vw, 320px); justify-self: center; }
  .contact { width: 100%; padding: 72px 18px; }
  footer { align-items: flex-start; flex-direction: column; padding: 30px 18px; }
  .inner-main { padding-top: 66px; }
  .product-hero { min-height: 650px; }
  .product-hero::after { background: linear-gradient(0deg, rgba(7,7,7,.96), rgba(7,7,7,.45)); }
  .product-hero-content { width: calc(100% - 36px); padding: 60px 0 54px; }
  .product-hero-content h1 { font-size: 3.15rem; }
  .product-wordsearch::before { right: -23%; top: 8%; opacity: .42; }
  .product-intro, .legal-panel-inner { grid-template-columns: 1fr; gap: 34px; }
  .product-section { width: calc(100% - 36px); padding: 66px 0; }
  .legal-panel-inner { width: calc(100% - 36px); padding: 66px 0; }
  .showcase-inner { width: calc(100% - 36px); padding: 66px 0 72px; }
  .showcase-heading { grid-template-columns: 1fr; gap: 16px; margin-bottom: 26px; }
  .screenshot-grid { grid-template-columns: 1fr; gap: 16px; }
  .landscape-gallery .screenshot-featured { grid-column: auto; }
  .app-gallery a { height: 250px; }
  .screenshot-strip { grid-auto-columns: minmax(220px, 72vw); }
  .legal-page { width: calc(100% - 36px); padding: 104px 0 68px; }
  .legal-page h1 { font-size: 2.55rem; }
  .hero-actions .button, .legal-actions .button { width: 100%; }
}

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