@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #211e19;
  --paper: #f5f0e7;
  --paper-deep: #ebe2d3;
  --coal: #1d1b17;
  --gold: #f4c36b;
  --muted: #625a50;
  --copper: #79441d;
  --copper-bright: #f4c36b;
  --text-light: #4d453c;
  --text-mid: #cfc2af;
  --line-dark: #4d4436;
  --line: #d8cdbb;
  --radius: 3px;
  --display: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); }
a { color: var(--copper); text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #ab6329; outline-offset: 5px; }
.dark :focus-visible { outline-color: var(--gold); }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 10; padding: 10px 16px; background: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap, .wrap-narrow { width: min(100% - 3rem, 75rem); margin-inline: auto; }
.wrap-narrow { max-width: 56rem; }
.dark { --copper: #f4c36b; background: var(--coal); color: var(--paper); }
.light, .warm { --copper: #79441d; background: var(--paper); color: var(--ink); }
.warm { background: var(--paper-deep); }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2 { font: 400 3.3rem/.98 var(--display); letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(3.7rem, 7vw, 7.1rem); }
h2 { font-size: clamp(2.5rem, 4.7vw, 4.3rem); }
h3 { font-size: 1.14rem; line-height: 1.25; }
h1 em { color: var(--gold); font-weight: 400; }
.label, .concept-id, .nb-date, .pipe-num, .hero-meta { font: 700 .78rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.label { color: var(--copper); display: inline-block; margin-bottom: .8rem; }
.lead, .body-text { max-width: 46rem; }
.lead { font-size: 1.125rem; }
.site-header { background: var(--coal); color: var(--paper); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; }
.brand { color: var(--paper); display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; filter: brightness(1.16) saturate(1.14) hue-rotate(10deg); }
.brand-name, .brand-sub { display: block; line-height: 1.1; }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -.035em; }
.brand-sub { margin-top: .28rem; color: var(--text-mid); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.7rem); }
.site-nav a { color: var(--paper); text-decoration: none; white-space: nowrap; font-size: .9rem; font-weight: 600; }
.site-nav a:hover, .site-nav .active { color: var(--gold); text-decoration: underline; }
.site-nav .nav-cta { border: 1px solid #80683f; padding: .55rem .85rem; color: var(--gold); }
.menu-toggle { display: none; }
.hero-cinema { padding: clamp(2.75rem, 5vw, 5.25rem) 0 2.75rem; background: radial-gradient(ellipse at 75% 15%, #32281c, transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.hero-statement h1 { max-width: 100%; font-size: clamp(3.7rem, 6.7vw, 6.05rem); text-wrap: wrap; }
.hero-intro { max-width: 37rem; margin-top: 1.4rem; color: var(--text-mid); font-size: clamp(1.04rem, 1.5vw, 1.23rem); }
.hero-meta { color: var(--text-mid); margin-top: 1.45rem; font-size: .72rem; letter-spacing: .065em; }
.hero-figure { max-width: 30rem; margin-inline: auto; }
.hero-figure img { aspect-ratio: 1 !important; object-fit: cover; }
.hero-figure figcaption { padding: .8rem 0 0 !important; gap: .3rem .8rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1rem; font: 700 .95rem/1.4 var(--sans); text-decoration: none; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.btn-copper { background: #78451e; color: #fff6e9; }
.dark .btn-copper { background: var(--gold); color: var(--ink); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn:hover { box-shadow: inset 0 0 0 2px currentColor; }
.studio-summary { padding-bottom: 2rem; }
.hero-card-stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.hero-card { padding: 1.15rem 1.15rem .35rem; }
.hero-card:first-child { padding-left: 0; }
.hero-card + .hero-card { border-left: 1px solid var(--line-dark); }
.hero-card p { margin-top: .4rem; color: var(--text-mid); font-size: .92rem; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.asym { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: 2.1rem; }
.asym p { margin-top: .9rem; }
#concepts { --copper: #79441d; --text-mid: #625a50; color: var(--ink); background: var(--paper); }
#concepts .btn-copper { background: #78451e; color: #fff6e9; }
.gallery, .concept-grid, .tier-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.concept-card { min-width: 0; display: flex; flex-direction: column; background: #fffaf0; border: 1px solid var(--line); }
.concept-card img { aspect-ratio: 1.5 !important; border-radius: 0 !important; }
.concept-card :is(.concept-id, h3, p, .concept-stage) { margin-inline: 1.1rem; }
.concept-id { color: var(--copper); margin-bottom: .45rem; }
.concept-card h3 { font: 400 2.05rem/1.05 var(--display); }
.concept-card p { margin-top: .55rem; margin-bottom: 1rem; color: var(--muted); }
.concept-stage { align-self: flex-start; margin-top: auto; margin-bottom: 1.15rem; font-size: .78rem; padding: .2rem .55rem; background: #ede5d8; color: #4c3b29; }
.stage-design { background: #f4dfbc; }
#concepts .gallery + * { margin-top: 1.5rem; }
#pipeline { background: var(--paper-deep); }
.pipeline, .pipeline-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.pipe-step, .stage { border-top: 1px solid var(--line); padding-top: 1rem; }
.pipe-num { color: var(--copper); }
.pipe-step h3, .stage h3 { margin: .35rem 0 .5rem; }
.notebook-entry { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-block: 1.15rem; border-top: 1px solid var(--line-dark); }
.nb-date { color: var(--gold); }
.nb-content p { color: var(--text-mid); margin-top: .4rem; }
.founder-block { max-width: 55rem; margin-inline: auto; }
.founder-block p { margin-top: 1rem; }
.founder-block > a { display: inline-block; margin-top: 1rem; }
.founder-quote, .pull-quote { margin-block: 1.6rem; border-left: 3px solid #9d6d37; padding: .4rem 0 .4rem 1.15rem; font: 400 1.85rem/1.25 var(--display); }
blockquote cite { display: block; margin-top: .6rem; font: 600 .86rem/1.5 var(--sans); }
.bridge { padding: clamp(3rem, 6vw, 5rem) 1.5rem; text-align: center; border-top: 1px solid var(--line-dark); }
.bridge .lead { margin: 1.1rem auto; }
.bridge-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2rem; margin: 2rem auto 0; color: var(--text-mid); }
.bridge-fact { text-align: left; }
.bridge-fact span { display: block; }
.site-footer { border-top: 1px solid var(--line-dark); color: var(--text-mid); padding-block: 2rem; font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1.4rem 3rem; }
.site-footer .wrap > div:first-child { max-width: 42rem; }
.site-footer a { color: var(--paper); }
.page-hero { padding-block: clamp(2.7rem, 6vw, 5.5rem); background: radial-gradient(ellipse at 85% 0, #382c1e, transparent 65%); }
.page-hero h1 { max-width: 20ch; font-size: clamp(3.1rem, 6.5vw, 6.1rem); }
.page-hero p { max-width: 42rem; color: var(--text-mid); margin-top: 1.15rem; font-size: 1.12rem; }
body:not(.cs-index) > :is(.dark,.light):has(> .content-block) { --copper: #79441d; --text-mid: #625a50; background: var(--paper); color: var(--ink); }
.content-block { padding-block: clamp(2rem, 4.5vw, 3.5rem); border-bottom: 1px solid var(--line); max-width: 59rem; }
.cs-story .content-block, .cs-continuum .content-block { max-width: 49rem; }
.content-block > :is(p,ul,ol) { margin-top: 1rem; max-width: 68ch; }
.content-block > [style*="text-align:center"], .content-block[style*="text-align:center"] > p { margin-inline: auto; }
.content-block > :is(.tier-grid,.concept-grid,.principles-list,.pipeline-stages) { margin-top: 1.6rem; }
.tier-card, .concept-category, .contact-form-wrap { background: #fffaf0; border: 1px solid var(--line); padding: 1.2rem; }
.tier-card p, .concept-category p, .contact-info p { margin-top: .55rem; }
.principle { padding-block: 1rem; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; align-items: start; gap: clamp(1.6rem, 5vw, 4rem); }
.contact-form-wrap { padding: clamp(1rem, 3vw, 2.2rem); }
.contact-form-wrap h2 { margin-bottom: 1.3rem; font-size: clamp(2.2rem, 4vw, 3rem); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: .35rem; }
.form-group :is(input,textarea,select) { display: block; width: 100%; min-height: 46px; border: 1px solid #9b8e7c; border-radius: var(--radius); background: #fffdf8; color: var(--ink); font: inherit; padding: .55rem .7rem; }
textarea { resize: vertical; }
.optional, .required { font-weight: 400; color: var(--muted); }
@media (max-width: 52rem) {
  .menu-toggle { display: grid; place-content: center; gap: 4px; width: 46px; height: 46px; border: 1px solid var(--line-dark); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 18px; height: 2px; background: var(--paper); }
  .site-nav { display: none; position: absolute; z-index: 5; inset: 100% 0 auto; background: var(--coal); padding: .9rem; border: 1px solid var(--line-dark); }
  .site-nav.open { display: grid; gap: .25rem; }
  .site-nav a { padding: .55rem; }
  .hero-grid { gap: 1.8rem; }
  .hero-statement h1 { font-size: clamp(3rem, 8vw, 5.1rem); }
  .hero-card-stack, .pipeline, .pipeline-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card:nth-child(3) { border-left: 0; padding-left: 0; }
  .gallery, .concept-grid, .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 38rem) {
  .wrap, .wrap-narrow { width: calc(100% - 2rem); }
  .hero-grid, .asym, .contact-grid { grid-template-columns: 1fr; }
  .hero-statement h1 { max-width: 12ch; }
  .hero-figure { max-width: none; }
  .gallery, .concept-grid, .tier-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; }
  .site-footer .wrap > div { text-align: left !important; }
  .notebook-entry { grid-template-columns: 1fr; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
