/* The studio uses the lab's existing type, color tokens, and theme preference. */
.studio { font-size: 16px; line-height: 1.65; }
.studio img { display: block; max-width: 100%; height: auto; }
.studio figure { margin: 0; }
.studio [hidden] { display: none !important; }
.studio .container { width: min(1180px, calc(100% - 48px)); }
.studio .navbar-inner { min-height: 66px; }
.studio .navbar-links { display: flex; justify-content: flex-end; }
.studio .navbar-links a { font-size: 13px; }
.studio .navbar-links .nav-contact { color: #fff; }
.studio .brand-label { background: transparent; color: var(--nav-text); padding: 0; }
.studio .btn { padding: 11px 18px; min-height: 46px; font-size: 14px; }
.studio .eyebrow { font-size: 11px; letter-spacing: .1em; }
.studio h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.025em; color: var(--text-dark); }
.studio h3 { color: var(--text-dark); font-size: 23px; line-height: 1.2; letter-spacing: -.02em; }
.studio-intro { display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 70px; padding: 76px 0 40px; }
.studio-intro h1 { font-size: clamp(38px, 4.9vw, 60px); line-height: 1.06; max-width: 19ch; margin-bottom: 0; }
.studio-intro .intro-note { max-width: 42ch; padding-bottom: 3px; }
.intro-note p { color: var(--muted); font-size: 17px; }
.intro-note p:last-child { margin-bottom: 0; }
.hero-photograph { overflow: hidden; border-radius: 6px; background: #10202c; }
.hero-photograph a { display: block; }
.hero-photograph img { width: 100%; aspect-ratio: 1.95; object-fit: cover; }
.hero-photograph figcaption { padding: 13px 18px; font-size: 12px; color: #c3d2da; }
.hero-photograph figcaption a { display: inline; color: #b4dcf4; }
.studio-section { padding: 76px 0; border-bottom: 1px solid var(--border); }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; margin-bottom: 32px; }
.section-intro h2 { margin-bottom: 0; max-width: 20ch; }
.section-intro > p { max-width: 44ch; margin-bottom: 0; color: var(--muted); }
.project-feature { display: grid; grid-template-columns: 1.25fr 1fr; overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
.project-feature .project-image { display: flex; align-items: center; background: #080e0b; }
.project-feature .project-image img { width: 100%; }
.project-copy { padding: 34px; }
.project-copy h3 { font-size: 30px; }
.project-copy p { color: var(--muted); }
.project-meta { display: block; margin-bottom: 16px; font: 11px/1.5 var(--mono); color: var(--primary); letter-spacing: .055em; text-transform: uppercase; }
.text-link { display: inline-block; font-weight: 600; padding: 7px 0; }
.project-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.project-card { overflow: hidden; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; }
.project-card > a { display: block; }
.project-card > a img, .project-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; display: block; }
.project-pair + .project-feature { margin-top: 24px; }
.project-card .project-copy { padding: 28px 30px; }
.project-card h3 { font-size: 26px; }
.project-card p { margin-bottom: 12px; }
.project-history { margin: 18px 0; padding-left: 22px; color: var(--muted); }
.project-history li + li { margin-top: 12px; }
.project-history li[id] { scroll-margin-top: 120px; }
.project-history strong, .project-status strong { color: var(--text-dark); }
.frame-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; font-size: 11px; }
.frame-links a { display: flex; flex-direction: column; gap: 7px; padding: 6px 0; }
.frame-links img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 3px; }
.receipt-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.receipt-badges .badge { font: 11px/1.4 var(--mono); color: var(--text-dark); background: var(--panel-soft); border: 1px solid var(--border); padding: 4px 8px; border-radius: 4px; letter-spacing: .02em; }
.image-note { font: 11px/1.5 var(--mono); color: var(--muted); }
.offering-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; list-style: none; padding: 0; margin: 34px 0 0; }
.offering-list li { border-top: 2px solid var(--primary); padding-top: 23px; }
.offering-list .number { display: block; color: var(--muted); font: 12px var(--mono); margin-bottom: 19px; }
.offering-list h3 { font-size: 21px; }
.offering-list p { color: var(--muted); margin: 0; }
.about-studio { display: grid; grid-template-columns: 1fr 1.35fr; gap: 70px; }
.about-studio p { color: var(--muted); }
.about-studio .statement { font-size: 23px; line-height: 1.5; color: var(--text-dark); }
.contact-section { padding: 72px 0 80px; }
.contact-panel { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; padding: 44px; background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--primary); border-radius: 6px; }
.contact-panel h2 { max-width: 18ch; }
.contact-panel p { color: var(--muted); }
.contact-address { display: inline-block; font-size: clamp(15px, 2vw, 20px); font-weight: 600; overflow-wrap: anywhere; padding: 8px 0; }
.studio .site-footer { padding-bottom: 32px; }
.studio .site-footer .fine-print { max-width: 80ch; }
.case-header { padding: 66px 0 34px; max-width: 850px; }
.case-header h1 { font-size: clamp(38px, 5.4vw, 64px); max-width: 20ch; }
.case-lede { font-size: 20px; color: var(--muted); max-width: 64ch; }
.byline { color: var(--muted); font: 12px/1.6 var(--mono); }
.case-figure { overflow: hidden; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.case-figure img { width: 100%; }
.case-figure figcaption { padding: 16px 22px; font-size: 13px; color: var(--muted); }
.case-body { width: min(730px, 100%); margin: 52px auto 70px; font-size: 17px; }
.case-body section + section { margin-top: 48px; }
.case-body h2 { font-size: 29px; }
.case-body p, .case-body li { color: var(--text); }
.case-body li + li { margin-top: 10px; }
.case-body .case-aside { margin: 30px 0; padding: 20px 24px; border-left: 3px solid var(--primary); background: var(--panel); color: var(--muted); }
.case-body .case-aside p:last-child { margin-bottom: 0; }
.case-body :is(h2, h3)[id] { scroll-margin-top: 90px; }
.case-body .decision-trail { margin: 22px 0 28px; padding-left: 1.6rem; }
.case-body .decision-trail > li { padding: 12px 16px; border-left: 2px solid var(--primary); background: var(--panel-soft); }
.case-body .decision-trail > li + li { margin-top: 8px; }
.case-body .decision-trail > li::marker { color: var(--primary); font: 600 13px var(--mono); }
.case-body .decision-label { display: block; margin-bottom: 5px; color: var(--text-dark); font: 600 12px/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.case-body .decision-trail p { margin: 0; }
.case-body .case-results { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 26px 0 20px; font-size: 15px; line-height: 1.5; }
.case-body .case-results caption { padding-bottom: 12px; text-align: left; color: var(--muted); font-size: 13px; }
.case-body .case-results th, .case-body .case-results td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.case-body .case-results thead th { color: var(--text-dark); background: var(--panel-soft); }
.case-body .case-results th:first-child { width: 44%; }
.case-body .case-results tbody th { color: var(--text); font-weight: 500; }
.case-body .case-results td { font-variant-numeric: tabular-nums; }
.case-body .case-sources { margin-top: 26px; padding: 14px 18px; background: var(--panel-soft); border: 1px solid var(--border); border-radius: 4px; font-size: 14px; }
.case-body .case-sources summary { color: var(--text-dark); font-weight: 600; cursor: pointer; }
.case-body .case-sources summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.case-body .case-sources[open] summary { margin-bottom: 14px; }
.case-body .case-sources p:last-child { margin-bottom: 0; }
.walkthrough { padding-left: 24px; }
.case-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.case-table th, .case-table td { text-align: left; vertical-align: top; padding: 15px 12px; border-bottom: 1px solid var(--border); }
.case-table th { color: var(--text-dark); }
.case-table th:first-child { width: 25%; }
.case-links { border-top: 1px solid var(--border); padding-top: 28px; }
.case-links a { display: block; padding: 7px 0; }
.lab-preview { margin: 36px 0; }

@media (max-width: 900px) {
  .studio .navbar-inner { flex-wrap: wrap; gap: 0 14px; padding-top: 12px; }
  .studio .navbar-links { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .studio .nav-tools { margin-left: auto; }
  .studio .navbar-links a { padding: 12px 12px 12px 0; }
  .studio .brand-label { display: none; }
  .studio-intro { gap: 30px; padding-top: 48px; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature .project-image img { width: 100%; }
  .offering-list { gap: 22px; }
  .contact-panel { padding: 32px; gap: 32px; }
  .studio section { scroll-margin-top: 118px; }
  .case-body :is(h2, h3)[id] { scroll-margin-top: 130px; }
}
@media (max-width: 620px) {
  .studio .container { width: calc(100% - 32px); }
  .studio-intro, .section-intro, .project-pair, .offering-list, .about-studio, .contact-panel { grid-template-columns: 1fr; }
  .studio-intro { gap: 25px; padding: 38px 0 28px; }
  .studio-intro h1 { font-size: 39px; }
  .studio-intro .intro-note { max-width: none; }
  .hero-photograph img { aspect-ratio: 4 / 3; }
  .hero-photograph figcaption { padding: 12px 14px; }
  .studio-section { padding: 48px 0; }
  .section-intro, .about-studio { gap: 18px; }
  .project-copy, .project-card .project-copy { padding: 24px; }
  .offering-list { gap: 28px; }
  .contact-section { padding: 44px 0; }
  .contact-panel { padding: 26px 22px; gap: 18px; }
  .case-header { padding-top: 38px; }
  .case-lede { font-size: 18px; }
  .case-body { margin-top: 35px; font-size: 16px; }
  .case-body .decision-trail { padding-left: 1.35rem; }
  .case-body .decision-trail > li { padding: 11px 12px; }
  .case-body .case-results { font-size: 14px; }
  .case-body .case-results th, .case-body .case-results td { padding: 10px 7px; }
  .case-table th, .case-table td { padding: 12px 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
