/* AIPW design system. Component defaults first; responsive changes at the end. */
:root {
  color-scheme: dark;
  --bg: #070807; --surface: #101210; --surface2: #181b16;
  --ink: #f4f5f0; --muted: #afb5a8; --line: #30352d;
  --volt: #b7ff2e; --accent: #b7ff2e; --nav: rgba(7,8,7,.96);
  --sans: Archivo, Arial, sans-serif; --mono: 'JetBrains Mono', monospace;
  --section-space: 88px; --gutter: 48px;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5ef; --surface: #eeeee6; --surface2: #dfe4d7;
  --ink: #11150d; --muted: #555d4e; --line: #cbd0c2;
  --accent: #3b6000; --nav: rgba(246,245,239,.96);
}

/* Foundations and shared elements */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:is(button,a,summary,[tabindex]):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--volt); color: #070807; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
p + p { margin-top: 1.25rem; }
h1, h2, h3 { font-stretch: normal; text-wrap: balance; }
h2 { font-size: clamp(2.5rem,4.25vw,4.2rem); font-weight: 780; line-height: 1.08; letter-spacing: -.025em; word-spacing: .06em; }
.shell { width: min(1360px,calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; font: 500 .75rem/1.5 var(--mono); letter-spacing: .08em; }
.tiny-line { flex: 0 0 28px; height: 1px; background: var(--accent); }
.muted { color: var(--muted); }
.lime { color: var(--accent); }
.section, .work-section, .about-section, .promotion-section { padding-block: var(--section-space); }
.section-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 48px; margin-bottom: 38px; }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 23px; }
.section-intro { max-width: 480px; justify-self: end; color: var(--muted); line-height: 1.7; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; min-height: 52px; padding: 16px 24px; border: 1px solid var(--volt); background: var(--volt); color: #11160a; font-size: .9rem; font-weight: 650; transition: background .2s, transform .2s; }
.button:hover { background: #ceff79; transform: translateY(-2px); }
.button span { font-size: 1.4rem; line-height: 1; }
.button.small { min-height: 42px; padding: 10px 18px; font-size: .85rem; }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: var(--surface2); }
.button.dark-button { min-width: 200px; padding-inline: 27px; background: #101809; color: var(--volt); border-color: #101809; }
.button.dark-button:hover { background: #293a16; }
.text-link { display: inline-block; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: .9rem; font-weight: 550; }
.text-link:hover, .footer-links a:hover { color: var(--accent); }
.skip { position: fixed; top: -100px; z-index: 100; background: var(--volt); color: #000; padding: 12px; }
.skip:focus { top: 10px; }

/* Primary navigation */
.header { position: sticky; top: 0; z-index: 20; background: var(--nav); backdrop-filter: blur(18px); border-bottom: 2px solid var(--line); }
.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.9rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; flex-shrink: 0; }
.brand-sub { display: block; margin-top: 5px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; }
.nav nav { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.nav nav a { padding: 11px 15px; border-radius: 4px; font-size: .92rem; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.nav nav a:hover { background: var(--surface2); color: var(--accent); }
.nav nav a[aria-current="location"] { background: var(--volt); color: #11180a; }
.nav nav a:focus-visible { outline-offset: 2px; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; }
.menu-toggle { display: none; }

/* Opening and experience strip */
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 560px; gap: 32px; }
.hero-copy { container-type: inline-size; min-width: 0; padding: 48px 0 40px; }
.hero h1 { font-size: min(12.5cqi,5.7rem); font-weight: 850; letter-spacing: -.025em; word-spacing: .12em; line-height: 1.02; margin: 28px 0 27px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-statement { max-width: 450px; font-size: 1.5rem; line-height: 1.35; font-weight: 600; letter-spacing: -.02em; }
.hero-description { max-width: 470px; margin-top: 19px; color: var(--muted); line-height: 1.75; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 30px; }
.hero-art { position: relative; min-width: 0; margin: 30px 0; background: #070807; border: 1px solid #30352d; overflow: hidden; isolation: isolate; }
.hero-art > img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#070807 0%,transparent 35%); pointer-events: none; }
.art-top, .art-caption { position: absolute; z-index: 1; display: flex; justify-content: space-between; color: #d4dacb; }
.art-top { top: 29px; left: 22px; right: 22px; gap: 20px; font: .65rem/1.5 var(--mono); letter-spacing: .08em; }
.art-caption { bottom: 28px; left: 25px; right: 25px; align-items: end; gap: 20px; }
.art-caption p { max-width: 120px; font: 500 .65rem/1.5 var(--mono); color: var(--volt); }
.art-mark { font-size: 3.75rem; font-weight: 900; letter-spacing: -.06em; line-height: .9; color: var(--volt); }
.art-mark span { display: block; margin-top: 12px; font: .75rem var(--mono); letter-spacing: .3em; }
.hero-foot { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid var(--line); font: .68rem/1.5 var(--mono); letter-spacing: .07em; color: var(--muted); }
.hero-foot a { color: var(--ink); }
.credentials { background: var(--surface); border-top: 3px solid var(--volt); border-bottom: 1px solid var(--line); }
.credential-heading { display: flex; justify-content: space-between; gap: 18px; padding-top: 20px; font: 500 .65rem/1.5 var(--mono); letter-spacing: .08em; color: var(--muted); }
.credential-heading span { color: var(--ink); }
.credential-grid { display: grid; grid-template-columns: repeat(4,1fr); padding-block: 20px 30px; }
.credential-grid > div { padding-inline: 28px; border-right: 1px solid var(--line); }
.credential-grid > div:first-child { padding-left: 0; }
.credential-grid > div:last-child { padding-right: 0; border-right: 0; }
.credential-grid strong { display: block; font-size: 3.5rem; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; color: var(--accent); }
.credential-grid strong span { margin-left: 8px; font: .8rem var(--mono); letter-spacing: 0; }
.credential-grid p { margin-top: 9px; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.credential-grid p b { color: var(--ink); font-weight: 650; }

/* Original projects */
.cast-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px; }
.cast-image { position: relative; aspect-ratio: 4/4.25; overflow: hidden; background: #111; }
.cast-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cast-card:hover img { transform: scale(1.025); }
.image-label { position: absolute; top: 18px; left: 18px; padding: 7px 10px; background: #070807c9; color: #e9ede1; border: 1px solid #ffffff33; font: .75rem/1.5 var(--mono); letter-spacing: .04em; }
.cast-arrow { position: absolute; bottom: 20px; right: 20px; padding: 9px 12px; min-height: 38px; display: grid; place-items: center; background: var(--volt); color: #111; font-size: .75rem; font-weight: 600; }
.cast-info { padding-top: 23px; }
.cast-info > span { font: .75rem/1.7 var(--mono); color: var(--muted); letter-spacing: .04em; }
.cast-info h3 { margin: 7px 0 12px; font-size: 1.9rem; letter-spacing: -.025em; line-height: 1.15; }
.cast-info p { font-size: .95rem; color: var(--muted); }
.work-foot { display: flex; justify-content: space-between; gap: 25px; margin-top: 40px; padding-top: 25px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.work-foot a { color: var(--ink); }

/* Expandable services: content determines height, with no decorative fillers. */
.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); transition: background .2s; }
.service:first-child { background: var(--surface); box-shadow: inset 0 3px var(--accent); }
.service:hover, .service[open] { background: var(--surface); }
.service summary { display: block; list-style: none; padding: 25px 26px 20px; cursor: pointer; }
.service summary::-webkit-details-marker { display: none; }
.service-no { font: .75rem/1.5 var(--mono); letter-spacing: .04em; color: var(--muted); }
.service h3 { margin: 17px 0 12px; font-size: 1.5rem; line-height: 1.25; letter-spacing: -.02em; }
.service p { color: var(--muted); font-size: .93rem; line-height: 1.65; }
.deliverables { margin-top: 17px; font-size: .72rem; line-height: 1.65; color: var(--accent); }
.service-more { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .825rem; }
.service-more b { font-size: 1.75rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.service[open] .service-more b { transform: rotate(45deg); }
.service-detail { padding: 0 26px 26px; font-size: .9rem; color: var(--muted); }
.service-detail a { display: block; color: var(--accent); margin-top: 18px; }

/* Promotion briefs */
.promotion-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; }
.promotion-toolbar p { font-size: .85rem; color: var(--muted); }
.promotion-playback { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#promotion-position { font: .72rem var(--mono); color: var(--muted); }
#promotion-rotation { border: 1px solid var(--muted); border-radius: 5px; padding: 8px 12px; background: var(--surface2); color: var(--ink); font-size: .76rem; }
#promotion-rotation:hover { border-color: var(--accent); }
.service summary:hover .service-more { color: var(--accent); }

.promotion-section { background: var(--surface); border-block: 1px solid var(--line); }
.promotion-section h2 { word-spacing: .12em; line-height: 1.12; }
.promotion-selector { border: 1px solid var(--line); background: var(--bg); }
.promotion-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 0 20px 20px; border-bottom: 1px solid var(--line); }
.promotion-tabs button { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--surface2); color: var(--ink); border: 1px solid var(--muted); border-radius: 6px; padding: 20px; min-height: 76px; transition: background .15s, border-color .15s; }
.promotion-tabs button:hover { border-color: var(--accent); background: var(--surface); }
.promotion-tabs button > span { font: 500 .75rem var(--mono); }
.promotion-tabs button strong { font-size: 1rem; font-weight: 600; }
.promotion-tabs button b { margin-left: auto; font-size: 1.4rem; font-weight: 400; }
.promotion-tabs button[aria-selected="true"] { background: var(--volt); color: #11180a; border-color: var(--volt); }
.promotion-tabs button[aria-selected="true"] > span, .promotion-tabs button[aria-selected="true"] b { color: #11180a; }
.promotion-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; padding: 42px; }
.promotion-panel-lead { display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); padding-right: 46px; }
.promotion-kicker { font: 500 .68rem/1.5 var(--mono); letter-spacing: .08em; color: var(--accent); }
.promotion-display { max-width: 540px; margin: 24px 0; font-size: clamp(2rem,3.6vw,3.8rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 780; text-wrap: balance; }
.promotion-example-label { font: 500 .58rem/1.6 var(--mono); color: var(--muted); letter-spacing: .07em; }
.promotion-panel-copy h3 { margin-bottom: 12px; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.02em; }
.promotion-panel-copy > p { color: var(--muted); font-size: .95rem; line-height: 1.65; }
.promotion-panel-copy ul { list-style: none; padding: 0; margin: 22px 0; }
.promotion-panel-copy li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.5; }
.promotion-panel-copy li::before { content: '+'; position: absolute; left: 0; color: var(--accent); }
.promotion-panel-copy .text-link { color: var(--ink); border: 1px solid var(--muted); background: var(--surface2); border-radius: 5px; padding: 10px 16px; }
.promotion-panel-copy .text-link:hover { border-color: var(--accent); color: var(--accent); }
.promotion-note { display: grid; grid-template-columns: 1fr 2fr; gap: 35px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.promotion-note strong { font-size: 1rem; line-height: 1.5; }
.promotion-note p { max-width: 680px; font-size: .92rem; color: var(--muted); }

/* Founder, archive and contact */
.about-section { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; }
.about-title { container-type: inline-size; min-width: 0; }
.about-title > .eyebrow { color: var(--accent); margin-bottom: 40px; }
.about-title h2 { font-size: min(23cqi,8rem); letter-spacing: -.045em; line-height: .95; color: var(--accent); }
.signature { font-size: 1.2rem; margin: 24px 0 32px; color: var(--muted); }
.about-copy > p { max-width: 620px; color: var(--muted); line-height: 1.8; }
.about-copy .large-copy, .large-copy { font-size: 1.75rem; line-height: 1.35; letter-spacing: -.025em; color: var(--ink); }
footer { padding-block: 45px 25px; }
.footer-top { display: grid; grid-template-columns: 1fr minmax(320px, .85fr); align-items: start; gap: 48px; }
.footer-brand { display: block; font-size: 2.5rem; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; font-size: .85rem; }
.footer-group { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.footer-group h3 { font: 500 .72rem/1.5 var(--mono); letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.footer-group a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; padding-block: 5px; border-bottom: 1px solid var(--line); }
.footer-group a span { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; margin-top: 38px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: .75rem; }

/* Contact: compact and neutral, with one clear email action. */
.contact-section { padding-block: 42px; background: var(--surface); border-block: 1px solid var(--line); }
.contact-layout { display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center; }
.contact-section .eyebrow { color: var(--accent); margin-bottom: 14px; }
.contact-section h2 { font-size: clamp(1.7rem,2.7vw,2.8rem); line-height: 1.15; }
.contact-copy { color: var(--muted); margin-top: 14px; max-width: 560px; font-size: .95rem; }
.contact-actions { display: flex; flex-direction: column; align-items: start; gap: 14px; }
.email-link { font-size: .8rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Compact desktop / tablet */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .nav { gap: 12px; }
  .nav nav a { padding: 10px; font-size: .82rem; }
  .nav-actions { gap: 8px; }
  .nav-actions > .button { padding: 10px 12px; gap: 12px; }
  .hero-grid { gap: 20px; min-height: 590px; }
  .hero .eyebrow { font-size: .65rem; }
  .hero-statement { font-size: 1.3rem; }
  .art-caption { display: none; }
  .credential-grid > div { padding-inline: 20px; }
  .credential-grid strong { font-size: 2.8rem; }
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .about-grid { gap: 45px; }

}

/* Stacked opening and mobile navigation */
@media (max-width: 800px) {
  :root { --section-space: 58px; }
  html { scroll-padding-top: 94px; }
  .nav { height: 74px; }
  .nav nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 15px 20px; border: 0; border-bottom: 2px solid var(--line); border-radius: 0; background: var(--bg); }
  .nav nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav nav a { font-size: 1rem; padding: 15px; }
  .nav-actions > .button { display: none; }
  .menu-toggle { display: block; background: var(--volt); color: #11180a; border: 1px solid var(--volt); font-size: .8rem; font-weight: 700; padding: 10px 14px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 42px 0 0; }
  .hero h1 { font-size: min(12.5cqi,5rem); }
  .hero-description { max-width: 590px; }
  .hero-art { height: 320px; margin: 0 0 24px; }
  .hero-art > img { object-fit: contain; }
  .hero-art::after { background: none; }
  .art-top { display: none; }
  .art-caption { display: flex; }
  .credential-grid { grid-template-columns: 1fr 1fr; row-gap: 25px; }
  .credential-grid > div:nth-child(2) { border-right: 0; }
  .credential-grid > div:nth-child(3) { padding-left: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-intro { max-width: 580px; justify-self: start; }
  .cast-grid { gap: 16px; }
  .cast-info h3 { font-size: 1.4rem; }
  .image-label { font-size: .6rem; left: 10px; top: 10px; padding: 5px; }
  .promotion-panel { gap: 28px; padding: 28px; }
  .promotion-panel-lead { padding-right: 25px; }
  .promotion-tabs button { padding: 18px 16px; gap: 9px; }
  .promotion-tabs button strong { font-size: .85rem; }
  .promotion-tabs button b { display: none; }
  .promotion-display { font-size: 2.2rem; }
  .promotion-note { grid-template-columns: 1fr; gap: 12px; }
  .about-grid { gap: 30px; grid-template-columns: 1fr 1.2fr; }
  .about-title h2 { font-size: min(23cqi,5rem); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-links { gap: 24px; }
  .footer-bottom { flex-wrap: wrap; }
}

/* Small screens */
@media (max-width: 540px) {
  :root { --gutter: 18px; }
  h2 { font-size: 2.5rem; }
  .brand { font-size: 1.75rem; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .theme { width: 36px; height: 36px; }
  .hero-copy { padding-top: 34px; }
  .hero h1 { font-size: min(12.5cqi,4rem); }
  .hero-statement { font-size: 1.25rem; }
  .hero-links { gap: 12px; }
  .hero-art { height: 240px; }
  .art-caption { display: none; }
  .hero-foot { font-size: .6rem; }
  .hero-foot > span { max-width: 180px; }
  .credential-heading { font-size: .55rem; }
  .credential-grid > div { padding-inline: 15px; }
  .credential-grid strong { font-size: 2.7rem; }
  .credential-grid p { font-size: .75rem; }
  .section-heading { margin-bottom: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .service summary { padding: 23px; }
  .service h3 { font-size: 1.55rem; }
  .service-detail { padding-inline: 23px; }
  .cast-grid { grid-template-columns: 1fr; }
  .cast-card { display: grid; grid-template-columns: 140px 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
  .cast-image { aspect-ratio: 3/4; }
  .cast-info { padding-top: 8px; }
  .cast-info h3 { font-size: 1.5rem; }
  .cast-info p { font-size: .85rem; }
  .image-label { display: none; }
  .cast-arrow { min-height: 30px; padding: 6px 8px; font-size: .6rem; bottom: 10px; right: 10px; }
  .work-foot { flex-direction: column; gap: 10px; }
  .promotion-toolbar { align-items: start; flex-direction: column; gap: 12px; padding: 16px; }
  .promotion-tabs { gap: 7px; padding: 0 12px 16px; }
  .promotion-tabs button { display: block; padding: 17px 10px; min-height: 98px; }
  .promotion-tabs button > span { display: block; margin-bottom: 7px; font-size: .65rem; }
  .promotion-tabs button strong { display: block; font-size: .8rem; line-height: 1.4; }
  .promotion-panel { grid-template-columns: 1fr; padding: 25px; gap: 26px; }
  .promotion-panel-lead { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 23px; }
  .promotion-display { font-size: 2rem; margin: 16px 0; }
  .promotion-panel-copy h3 { font-size: 1.4rem; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-title h2 { font-size: min(23cqi,5.8rem); }
  .about-title > .eyebrow { margin-bottom: 28px; }
  .about-title .signature { margin-bottom: 12px; }
  .about-copy .large-copy, .large-copy { font-size: 1.4rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* User preferences and print */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --bg: white; --surface: white; --ink: black; --muted: #333; --accent: #222; --line: #aaa; --section-space: 25px; }
  .header, .hero-art, .hero-foot, .contact-section, .footer-links { display: none; }
  .shell { width: 100%; }
  .hero-grid, .about-grid, .archive-section { display: block; }
  .hero h1 { font-size: 40pt; }
  .cast-image { max-height: 220px; }
}
