/* Page compositions for the studio direction. Loaded after legacy article CSS. */
.studio main { min-width: 0; }
.studio main > .section:first-child { padding-top: clamp(56px, 7vw, 100px); }
.studio main > .section:first-child h1 + .lead { margin-top: 24px !important; }
.studio-projects main > .section:first-child,
.studio-tutorials main > .section:first-child { padding-bottom: 32px; }
.studio-projects main > .section:first-child .container,
.studio-tutorials main > .section:first-child .container { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 64px; align-items: end; }
.studio-projects main > .section:first-child .kicker,
.studio-tutorials main > .section:first-child .kicker { grid-column: 1 / -1; }
.studio-projects main > .section:first-child h1,
.studio-tutorials main > .section:first-child h1 { font-size: clamp(60px, 7vw, 100px); }
.studio-projects main > .section:nth-child(2),
.studio-tutorials main > .section:nth-child(2) { padding-top: 40px; }
.studio .hero { padding-block: clamp(48px, 5vw, 80px); }
.studio .hero__inner { display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { min-width: 0; }
.studio .hero h1 { font-size: clamp(72px, 9.4vw, 140px); line-height: .9; letter-spacing: -.02em; max-width: none; margin: 30px 0; }
.hero h1 span { display: block; white-space: nowrap; }
.hero__accent { color: var(--accent); }
.hero__lead { font-size: 19px; line-height: 1.55; max-width: 43ch; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn:not(.btn--primary) { border-color: transparent; padding-inline: 12px; text-decoration: underline; }
.hero__proof { display: flex; gap: 12px; align-items: center; margin-top: 30px; color: var(--muted); font-size: 14px; }
.hero__proof strong { color: var(--fg); font-size: 18px; }
.hero__project { display: block; text-decoration: none; }
.hero__image { overflow: hidden; height: clamp(330px, 35vw, 500px); background: var(--surface); }
.hero__image img { height: 100%; width: 100%; object-fit: cover; object-position: 56% center; transition: transform .65s cubic-bezier(.16, 1, .3, 1); }
.hero__project:hover img { transform: scale(1.035); }
.hero__project-caption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 28px; background: var(--action); color: var(--on-accent); }
.hero__project-caption span:not(.hero__project-arrow) { display: block; font-size: 11px; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.hero__project-caption h2 { font-size: clamp(34px, 3.5vw, 48px); }
.hero__project-arrow { font-size: 44px; line-height: 1; }
.studio-home [data-od-id="bento-hero"] { background: var(--surface); }
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.bento-item { display: block; text-decoration: none; }
.bento-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bento-banner { padding-top: 22px; }
.bento-banner h3 { display: flex; align-items: center; justify-content: space-between; font-size: 44px; }
.bento-banner h3 span { font-family: var(--font-body); font-size: 30px; font-weight: 400; color: var(--accent); }
.bento-banner p { margin-top: 8px; color: var(--muted); font-size: 17px; }
.bento-item:hover h3 { color: var(--accent); }
.studio-home [data-od-id="trusted"] { padding-block: 44px; border-bottom: 1px solid var(--border); }
.studio-home [data-od-id="trusted"] > .container { display: flex; align-items: center; gap: 48px; }
.trusted-heading { flex: 0 0 200px; }
.trusted-pause { display: inline-block; min-height: 44px; padding: 8px 0; margin-top: 4px; color: var(--muted); background: transparent; border: 0; font-size: 12px; text-decoration: underline; text-underline-offset: .25em; }
.trusted-pause:hover { color: var(--fg); }
.trusted-strip { flex: 1; min-width: 0; overflow: hidden; }
.trusted-track { display: flex; width: max-content; animation: trusted-scroll 28s linear infinite; }
.trusted-group { display: flex; align-items: center; justify-content: space-around; flex: 0 0 auto; width: max(920px, calc(min(1440px, 100vw) - 320px)); gap: 48px; padding-inline: 32px; }
.trusted-strip:hover .trusted-track,
.trusted-strip.is-paused .trusted-track { animation-play-state: paused; }
@keyframes trusted-scroll { to { transform: translateX(-50%); } }
.trusted-strip img { max-width: 170px; max-height: 32px; width: auto; height: auto; filter: grayscale(1); opacity: .8; }
html[data-theme="dark"] .trusted-strip img { filter: brightness(0) invert(.85); }
.studio-home [data-od-id="stats"] { padding-block: 48px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.stat__num { font: 600 clamp(44px, 5vw, 64px)/1 var(--font-display); }
.stat__label { font-size: 13px; color: var(--muted); }
.creator { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.creator__portrait, .about-portrait { background: transparent; overflow: hidden; }
.creator__portrait img, .about-portrait img { width: 100%; height: 100%; object-fit: contain; }
.creator__portrait { aspect-ratio: 1; max-width: 420px; }
.creator__content h4 { margin-bottom: 20px; }
.creator__content .lead { margin-top: 24px; font-size: 20px; }
.studio [data-od-id="cta"] { border-top: 1px solid var(--border); background: var(--surface); }
.studio [data-od-id="cta"] .signup { background: var(--bg); }
.studio-home [data-od-id="social"] { padding-block: 56px; }
.studio-home [data-od-id="social"] .section__head h2 { font-size: 42px; }

/* Projects: oversized alternating work rows, not a grid of containers. */
.project-grid { display: grid; gap: 96px; counter-reset: work; }
.project-card { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr auto; gap: 24px 60px; align-items: center; counter-increment: work; }
.project-card > img, .project-card > .placeholder-img { grid-column: 1; grid-row: 1 / 3; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.project-card > div:not(.placeholder-img):not(.project-actions) { align-self: end; }
.project-card > div:not(.placeholder-img):not(.project-actions)::before { content: '0' counter(work) ' / PROJECT'; display: block; margin-bottom: 24px; color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.project-card:nth-child(even) { grid-template-columns: 1fr 1.4fr; }
.project-card:nth-child(even) > img, .project-card:nth-child(even) > .placeholder-img { grid-column: 2; }
.project-card:nth-child(even) > div:not(.placeholder-img) { grid-column: 1; }
.project-card:nth-child(even) > div:not(.placeholder-img):not(.project-actions) { grid-row: 1; }
.project-card h3 { font-size: clamp(36px, 4vw, 54px); margin-bottom: 18px; }
.project-card p { font-size: 18px; line-height: 1.55; color: var(--muted); }
.project-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.project-tag { font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); color: var(--muted); }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; align-self: start; }
.placeholder-img { display: grid; place-items: center; background: var(--surface); color: var(--accent); font: 700 120px/1 var(--font-display); }

/* Tutorials: a thumbnail-led index with a separate featured lesson. */
.tutorial-list { display: grid; gap: 0; }
.tutorial-row { display: grid; grid-template-columns: 180px 100px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 28px; border-top: 1px solid var(--border); text-decoration: none; }
.tutorial-row__image { width: 180px; aspect-ratio: 16 / 10; object-fit: cover; }
.tutorial-row__tag { font-size: 12px; color: var(--accent); }
.tutorial-row h3 { font-size: 32px; }
.tutorial-row:hover h3, .tutorial-row:focus-visible h3 { color: var(--accent); }
.tutorial-row p { font-size: 16px; color: var(--muted); max-width: 65ch; margin-top: 10px; }
.tutorial-row__link { font-size: 14px; white-space: nowrap; text-decoration: underline; }
.tutorial-feature { margin-top: 64px; display: grid; grid-template-columns: 1.2fr 1fr; background: var(--surface); }
.tutorial-feature img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-feature__copy { display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: clamp(24px, 4vw, 56px); }
.tutorial-feature__copy p { color: var(--muted); }
.tutorial-feature__copy .btn { align-self: start; }

/* The course uses a full-width specimen and a compact, factual interest panel. */
.course-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.course-hero h1 { max-width: 10ch; }
.course-cover img { width: 100%; aspect-ratio: 1.15; object-fit: cover; }
.course-cover__note { font-size: 13px; margin-top: 12px; color: var(--muted); text-align: right; }
.shmup-progress { padding: 28px 0; border-block: 1px solid var(--border); }
.shmup-progress__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.shmup-progress__counter { font-size: 28px; color: var(--accent); font-weight: 600; }
.shmup-progress__label, .progress-info { font-size: 13px; color: var(--muted); }
.progress-wrap { height: 4px; background: var(--surface-tint); margin-top: 20px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); width: 0; }
.progress-info { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.module-list { list-style: none; padding: 0; margin-top: 40px; }
.module-item { display: grid; grid-template-columns: 80px 1fr; padding: 28px 0; border-top: 1px solid var(--border); }
.module-item__num { font: 500 40px/1 var(--font-display); color: var(--accent); }
.module-item__header { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }
.module-item__header h4 { font: 600 28px/1.15 var(--font-display); letter-spacing: 0; color: var(--fg); text-transform: none; }
.module-badge { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; background: var(--surface-tint); }
.module-badge--done { color: var(--accent); }
.module-item__body p { font-size: 17px; color: var(--muted); }
.coming-grid { display: flex; flex-direction: column; margin-top: 40px; }
.coming-card { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; padding-block: 28px; border-top: 1px solid var(--border); }
.coming-card p { color: var(--muted); }
.about-hero { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.about-portrait { width: 100%; aspect-ratio: 1; }
.about-content .lead { margin-top: 24px; }

/* Article and documentation surfaces inherit the same type and colour system. */
.studio .tutorial-hero { padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--border); }
.studio .tutorial-hero h1 { font-size: clamp(52px, 6vw, 90px); max-width: 22ch; }
.studio .hero-subtitle { font-size: 21px; line-height: 1.55; max-width: 65ch; }
.studio .gradient-text { background: none !important; -webkit-text-fill-color: currentColor; color: var(--accent); }
.studio .tutorial-step { border: 0; border-top: 1px solid var(--border); padding: 32px 0; margin: 32px 0; }
.studio .step-number { width: auto; height: auto; padding: 0; background: none; color: var(--accent); font: 600 28px/1 var(--font-display); margin-bottom: 16px; }
.studio .step-title { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; margin-bottom: 16px; }
.studio .step-description, .studio .doc-lead { font-size: 19px; line-height: 1.7; max-width: 72ch; }
.studio .tutorial-image img {
 display: block;
 width: auto;
 max-width: 100%;
 height: auto;
 margin-inline: auto;
 border: 1px solid var(--border);
 border-radius: 0;
}
.studio .note-box { border: 1px solid var(--border); border-radius: 0; padding: 22px; font-size: 17px; }
.studio :is(.checklist, .usage-card, .card-accent, .code-block, .doc-table, .pattern-card) { border: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.studio .usage-card h4 { font-size: 16px; letter-spacing: 0; text-transform: none; color: var(--fg); }
.studio :is(.usage-card p, .usage-card a, .checklist li, .pattern-card p) { font-size: 16px; }
.studio .doc-nav a { border-radius: 0; border-width: 1px; min-height: 40px; }
.studio .doc-nav a[aria-current="page"] { background: var(--action); color: var(--on-accent); }
.studio .doc-class { border-radius: 0; border-width: 1px; }
.studio .doc-table { font-size: 16px; table-layout: fixed; }
.studio .doc-table td { overflow-wrap: anywhere; }
.studio .doc-table td:first-child { white-space: normal; }
.studio .doc-h2 { font-size: clamp(36px, 4vw, 52px); }
.studio .gate-overlay { border: 1px solid var(--border); border-radius: 0; }
.studio .gate-form label { text-align: left; font-size: 14px; font-weight: 600; }
.studio .gate-form input[type="email"] { border: 1px solid var(--control-border); border-radius: 0; min-height: 52px; font-size: 17px; }
.studio .gate-form button { border-radius: 0; background: var(--action); color: var(--on-accent); min-height: 52px; font-size: 16px; }
.studio .gate-benefits span { border-radius: 0; border-width: 1px; }

/* Testimonials: quiet form fields, clear grouping, optional fields stay exposed. */
.studio .tm-note { border: 0; background: var(--surface); border-radius: 0; transform: none; padding: 32px; }
.studio-testimonial main > .section:first-child { padding-block: 56px 32px; }
.studio-testimonial main > .section:nth-child(2) { padding-top: 48px; }
.studio-testimonial h1 { font-size: clamp(56px, 6vw, 88px); }
.studio .tm-note li { font-size: 17px; font-weight: 500; }
.studio .tm-note p, .studio .tm-small { font-size: 15px; }
.studio .tm-split { grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 80px); }
.studio .signup.tm-form, .studio .tm-done { transform: none; border-radius: 0; border-width: 1px; padding: clamp(24px, 4vw, 48px); }
.studio .tm-form .tm-input { border: 1px solid var(--control-border); border-radius: 0; font-size: 17px; }
.studio .tm-form :is(legend, label:not(.tm-choice):not(.tm-consent):not(.tm-q)) { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--fg); }
.studio .tm-form label.tm-q { font-size: 18px; font-weight: 500; }
.studio .tm-questions { border-block: 1px solid var(--border); padding-block: 28px; gap: 26px; }
.studio .tm-choice span { transform: none; border: 1px solid var(--control-border); border-radius: 0; padding: 10px 14px; font-size: 14px; opacity: 1; }
.studio .tm-choice input:checked + span { background: var(--action); color: var(--on-accent); }
.studio :is(.tm-help, .tm-form-note, .tm-publish-note, .tm-status) { font-size: 14px; }
.studio .signup .tm-consent { font-size: 16px; }

/* Unlisted work keeps its visibility and routes; only presentation changes. */
.studio :is(.game-card, .pf-video, .pf-features, .pf-note, .pf-feature, .pf-tag, .game-card__thumb) { border-radius: 0; border-width: 1px; box-shadow: none; }
.studio .game-card { padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--border); background: transparent; }
.studio .game-card h3 { font-size: 36px; }
.studio .game-card p { font-size: 17px; }
.studio .game-card__cta { border: 0; border-radius: 0; background: var(--action); color: var(--on-accent); box-shadow: none; }
.studio .pf-body p { font-size: 19px; }
.studio .pf-head h1 { font-size: clamp(60px, 8vw, 104px); }
.studio :is(.design-card, .design-embed, .design-note) { border-radius: 0; border-width: 1px; box-shadow: none; transform: none; }
.studio :is(.proof-panel, .design-stat, .philosophy-card, .case-card, .case-study, .case-media, .fact, .case-study__video),
.studio .case-study__media img { border-radius: 0; border-width: 1px; box-shadow: none; transform: none; }
.studio .case-card:nth-child(n), .studio .design-stat:nth-child(n) { border-radius: 0; transform: none; }
.studio .case-media { background: var(--surface); }
.studio .proof-panel__item { border-top-style: solid; border-top-width: 1px; }
.studio .case-card p, .studio .case-study__body p { font-size: 18px; }

/* Link hub: compact studio contact sheet, deliberately without navigation. */
.studio-cards { padding: clamp(32px, 6vw, 80px) 24px; }
.studio-cards .floating-social-dock { display: none; }
.links-container { width: min(640px, 100%); margin-inline: auto; }
.profile-section { text-align: center; margin-bottom: 40px; }
.profile-avatar { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; margin: 0 auto 24px; background: transparent; }
.profile-avatar img { width: 100%; height: 100%; object-fit: contain; }
.profile-name { max-width: none; display: flex; justify-content: center; margin-bottom: 16px; }
.profile-name img { height: 52px; width: auto; }
html[data-theme="light"] .profile-name img { filter: brightness(0) opacity(.85); }
.profile-bio { color: var(--muted); font-size: 18px; }
.links-list { display: grid; gap: 0; margin-top: 32px; }
.link-button { display: flex; align-items: center; gap: 20px; min-height: 76px; border-bottom: 1px solid var(--border); padding: 16px 8px; text-decoration: none; font-size: 20px; font-weight: 500; }
.link-button::after { content: '↗'; margin-left: auto; color: var(--accent); font-size: 24px; }
.link-button:hover { background: var(--surface); }
.link-icon { width: 22px; height: 22px; flex-shrink: 0; fill: currentColor; }
.email-signup-section { background: var(--surface); padding: clamp(24px, 4vw, 40px); margin-top: 32px; }
.email-signup-title { font-size: 36px; margin-bottom: 8px; }
.email-signup-subtitle { font-size: 16px; color: var(--muted); margin-bottom: 24px; }
.email-form { display: flex; flex-wrap: wrap; gap: 8px; }
.email-input { flex-basis: 200px; }
.email-submit { background: var(--action); color: var(--on-accent); border: 0; padding: 12px 20px; font-weight: 600; min-height: 52px; }
.social-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border); }
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon:hover { color: var(--accent); }
.studio-cards .social-grid { justify-content: center; }

/* Prevent inherited decorative treatments on ancillary pages. */
.studio :is(.thank-you-card, .thank-you-panel, .success-card, .confirmation-card) { border-radius: 0; border-width: 1px; box-shadow: none; transform: none; }
.studio :is(.ty-modal, .ty-list, .thankyou-badge, .thankyou-icon, .error-card) { border-radius: 0; border-width: 1px; box-shadow: none; }
.studio .thankyou-title { font-size: clamp(40px, 5vw, 56px); max-width: none; }
.studio .thankyou-icon { background: var(--action); }
.studio .thankyou-icon svg { stroke: var(--on-accent); }
.studio .thankyou-subtitle, .studio .ty-list li { font-size: 17px; }
.studio .ty-close { width: 44px; height: 44px; border-width: 1px; }
.studio .error-card h1 { font-size: clamp(44px, 7vw, 72px); }
.studio :is(.section, .signup, .project-card, .tutorial-feature, .game-card, .tm-note):hover { transform: none; }
@media (prefers-reduced-motion: no-preference) {
 .hero__copy { animation: studio-enter .65s cubic-bezier(.16, 1, .3, 1) both; }
 .hero__project { animation: studio-enter .8s .08s cubic-bezier(.16, 1, .3, 1) both; }
 @keyframes studio-enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1050px) {
 .tutorial-row { grid-template-columns: 140px minmax(0, 1fr) auto; }
 .tutorial-row__image { width: 140px; grid-row: 1 / 3; }
 .tutorial-row__tag { grid-column: 2; }
 .tutorial-row > div { grid-column: 2; }
 .tutorial-row__link { grid-column: 3; grid-row: 1 / 3; }
 .studio-home [data-od-id="trusted"] > .container { flex-direction: column; align-items: start; gap: 24px; }
 .trusted-heading { flex-basis: auto; }
 .trusted-strip { width: 100%; }
 .project-card, .project-card:nth-child(even) { gap: 24px 32px; }
}
@media (max-width: 800px) {
 .studio-projects main > .section:first-child .container,
 .studio-tutorials main > .section:first-child .container { grid-template-columns: 1fr; }
 .studio .hero__inner, .course-hero { grid-template-columns: 1fr; gap: 40px; }
 .studio .hero h1 { font-size: clamp(70px, 13vw, 110px); }
 .hero__image { height: auto; aspect-ratio: 16 / 10; }
 .hero__lead { max-width: 52ch; }
 .bento { gap: 24px; }
 .creator, .about-hero { gap: 32px; grid-template-columns: 1fr 1.2fr; }
 .creator__content h2 { font-size: 42px; }
 .studio .tm-split { grid-template-columns: 1fr; }
 .course-cover img { aspect-ratio: 16 / 10; }
 .project-card, .project-card:nth-child(even) { display: flex; flex-direction: column; align-items: stretch; gap: 24px; }
 .project-card > div:not(.placeholder-img):not(.project-actions) { align-self: stretch; }
 .project-card > div:not(.placeholder-img):not(.project-actions)::before { margin-bottom: 12px; }
 .tutorial-feature { grid-template-columns: 1fr; }
 .coming-card { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 560px) {
 .studio .hero { padding-top: 36px; }
 .studio .hero h1 { font-size: clamp(64px, 15vw, 84px); }
 .hero .kicker { font-size: 10px; letter-spacing: .08em; }
 .hero__actions { gap: 8px; }
 .hero__actions .btn { padding: 12px 16px; }
 .hero__project-caption { padding: 20px; }
 .bento, .creator, .about-hero { grid-template-columns: 1fr; }
 .stats { grid-template-columns: 1fr 1fr; gap: 24px; }
 .trusted-strip img { max-width: 130px; max-height: 28px; }
 .creator__portrait { max-width: 320px; }
 .about-portrait { max-width: 400px; }
 .tutorial-row { grid-template-columns: 1fr; gap: 14px; padding-block: 24px; }
 .tutorial-row > *, .tutorial-row__image, .tutorial-row__link, .tutorial-row__tag { grid-column: auto; grid-row: auto; }
 .tutorial-row__image { width: 100%; aspect-ratio: 16 / 9; }
 .tutorial-row__link { justify-self: start; padding-block: 8px; }
 .module-item { grid-template-columns: 48px 1fr; }
 .studio .tm-row { grid-template-columns: 1fr; }
 .studio .tutorial-hero h1 { font-size: 52px; }
 .studio .p-2xl { padding: 24px; }
 .email-submit { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) {
 .trusted-track { width: 100%; animation: none; transform: none; }
 .trusted-group { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-inline: 0; }
 .trusted-group[aria-hidden="true"], .trusted-pause { display: none; }
}
