:root {
  --paper: #f2f1ed;
  --white: #fff;
  --ink: #111;
  --muted: #666;
  --line: #c9c8c3;
  --soft: #e6e5e0;
  --accent: #0b6872;
  --accent-soft: #d7eceb;
  --pad: clamp(20px, 4.2vw, 72px);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); scrollbar-gutter:stable; }
@supports not (scrollbar-gutter:stable) { html {overflow-y:scroll} }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); }
body.locked, body.lightbox-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.work-filters { scrollbar-width: none; }
.work-filters::-webkit-scrollbar { display: none; height: 0; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card-heading h3, .detail-heading h1, .project-pagination b, .contact-list b { overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--paper); }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-pad { padding-left: var(--pad); padding-right: var(--pad); }
.section-label { margin: 0; font-size: 10px; letter-spacing: .14em; }

/* Access gate */
.gate { position: fixed; inset: 0; z-index: 100; min-height: 100svh; padding: 28px var(--pad); background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; }
.gate-top { display: flex; justify-content: space-between; border-top: 1px solid var(--ink); padding-top: 10px; font-size: 9px; letter-spacing: .16em; }
.gate-main { align-self: center; display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 8vw; align-items: end; }
.gate-main h1 { margin: 0; font-size: clamp(92px, 16vw, 240px); line-height: .69; letter-spacing: -.09em; font-weight: 400; }
.password-row { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--ink); }
.password-row input { min-width: 0; border: 0; background: transparent; outline: 0; padding: 15px 0; }
.password-row button { border: 0; background: transparent; padding: 15px 0 15px 24px; cursor: pointer; }
.gate-error { min-height: 20px; margin: 12px 0 0; color: #8a2525; font-size: 12px; }
.gate-foot { margin: 0; font-size: 9px; letter-spacing: .16em; }

/* Persistent website navigation */
.site-header { position: sticky; top: 0; z-index: 30; height: 68px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--ink); background: rgba(242, 241, 237, .88); backdrop-filter: blur(14px); }
.site-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 11px; font-weight: 700; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .35s cubic-bezier(.2,.75,.25,1); }
.site-mark:hover { color: var(--paper); border-color: var(--accent); background: var(--accent); transform: rotate(-5deg); }
.main-nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 60px); font-size: 12px; }
.main-nav a { position: relative; padding: 25px 0 22px; color: var(--muted); transition: color .25s ease; }
.main-nav a.active { color: var(--ink); }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .35s cubic-bezier(.2,.75,.25,1); }
.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-year { justify-self: end; font-size: 9px; letter-spacing: .16em; }
.menu-toggle { display: none; }
#app-view.page-enter { animation: pageIn .55s cubic-bezier(.2,.75,.25,1) both; }
#app-view.has-motion .reveal-target { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.25,1); }
#app-view.has-motion .reveal-target.is-visible { opacity: 1; transform: translateY(0); }

/* Home overview */
.home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(72svh - 68px); display: grid; grid-template-rows: auto 1fr; padding-top: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--ink); background: radial-gradient(circle at 92% 8%, rgba(113, 193, 193, .18), transparent 29%), linear-gradient(120deg, rgba(255,255,255,.22), transparent 58%); }
.home-hero::before { content: ""; position: absolute; z-index: -1; width: min(70vw, 900px); aspect-ratio: 1; right: -17vw; top: 5%; border: 1px solid rgba(11, 104, 114, .25); border-radius: 50%; transform: rotate(-18deg) scaleY(.58); pointer-events: none; }
.home-hero::after { content: ""; position: absolute; z-index: -1; width: 210px; height: 210px; right: 10%; bottom: -118px; border: 1px solid rgba(11, 104, 114, .28); border-radius: 50%; box-shadow: 0 0 0 14px rgba(11,104,114,.04), 0 0 0 28px rgba(11,104,114,.025); pointer-events: none; }
.hero-kicker { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .15em; }
.hero-kicker, .hero-title { position: relative; z-index: 1; }
.hero-kicker span:last-child { color: var(--accent); }
.hero-title { align-self: center; display: grid; grid-template-columns: 1fr auto; align-items: end; }
.hero-title h1 { margin: 0; font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-size: clamp(96px, 18vw, 270px); line-height: .66; letter-spacing: -.105em; font-weight: 400; color: var(--ink); text-shadow: var(--shadow-x, 8px) var(--shadow-y, 9px) 0 rgba(11, 104, 114, .2); transition: text-shadow .35s cubic-bezier(.2,.75,.25,1); }
.hero-title p { margin: 0 0 4px; padding-left: 18px; border-left: 1px solid var(--accent); font-size: clamp(14px, 1.4vw, 20px); line-height: 1.55; text-align: right; }
.selected-section { padding-top: 100px; padding-bottom: 120px; }
.section-intro, .page-heading { display: grid; grid-template-columns: 190px 1fr auto; align-items: end; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-intro p, .section-intro h2, .section-intro span { margin: 0; }
.section-intro p, .section-intro span { font-size: 10px; letter-spacing: .1em; }
.section-intro h2 { font-size: clamp(50px, 7vw, 108px); line-height: .82; letter-spacing: -.07em; font-weight: 400; }
.selected-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 58px 14px; padding-top: 28px; }
.project-card { min-width: 0; transition: transform .45s cubic-bezier(.2,.75,.25,1); }
.project-card:hover { transform: translateY(-6px); }
.project-card a { display: block; }
.card-image { position: relative; overflow: hidden; background: var(--soft); }
.card-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 45%, rgba(11,104,114,.24)); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.selected .card-image { aspect-ratio: 3 / 4; }
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: opacity .65s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
#app-view.has-motion .card-image img { opacity: 0; }
#app-view.has-motion .card-image img.is-loaded { opacity: 1; }
.project-card:hover .card-image::after { opacity: 1; }
.project-card:hover .card-image img { transform: scale(1.035); }
.selected .card-image img { object-fit: cover; object-position: center; }
.card-heading { display: grid; grid-template-columns: 30px 1fr auto; gap: 6px; align-items: baseline; padding-top: 12px; margin-top: 1px; border-top: 1px solid var(--ink); }
.card-heading > span { color: var(--accent); font-size: 9px; }
.card-heading h3 { margin: 0; font-size: clamp(20px, 2vw, 32px); font-weight: 500; letter-spacing: -.04em; transition: color .25s ease; }
.project-card:hover .card-heading h3 { color: var(--accent); }
.card-featured { font-size: 8px !important; letter-spacing: .1em; }
.card-info { display: flex; justify-content: space-between; gap: 12px; padding-left: 36px; margin-top: 10px; font-size: 10px; color: var(--muted); }
.project-card > a > p { margin: 6px 0 0; padding-left: 36px; font-size: 10px; color: var(--muted); }
.text-link { margin-top: 70px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); min-height: 88px; display: flex; align-items: center; justify-content: space-between; font-size: clamp(22px, 3vw, 44px); }

.home-profile { padding-top: 100px; padding-bottom: 100px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 10vw; border-top: 1px solid var(--ink); }
.home-profile h2 { margin: 24px 0 54px; font-size: 20px; line-height: 1.2; font-weight: 500; }
.home-profile-statement { margin: 0; font-size: clamp(36px, 5vw, 76px); line-height: 1.05; letter-spacing: -.055em; font-weight: 400; }
.home-profile-copy { align-self: end; }
.home-profile-copy p { font-size: 16px; line-height: 1.9; }
.home-profile-copy a { display: inline-block; margin-top: 25px; padding-bottom: 7px; border-bottom: 1px solid var(--ink); font-size: 12px; }
.home-contact { padding-top: 35px; padding-bottom: 35px; display: flex; justify-content: space-between; border-top: 1px solid var(--ink); font-size: clamp(20px, 3vw, 42px); }
.home-contact p { margin: 0; }

/* Project index */
.page-heading { padding-top: 95px; padding-bottom: 32px; }
.page-heading > p { margin: 0; align-self: start; font-size: 10px; letter-spacing: .14em; }
.page-heading h1 { margin: 0; font-size: clamp(88px, 14vw, 210px); line-height: .65; font-weight: 400; letter-spacing: -.09em; }
.page-heading > div { display: grid; gap: 6px; text-align: right; font-size: 10px; color: var(--muted); }
.work-filters { position: sticky; top: 68px; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--paper); border-bottom: 1px solid var(--ink); }
.work-filters a { display: flex; justify-content: space-between; gap: 10px; padding: 16px 12px; border-right: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.work-filters a:first-child { padding-left: 0; }
.work-filters a:last-child { border-right: 0; }
.work-filters a.active { color: var(--ink); font-weight: 700; }
.archive-grid { padding-top: 36px; padding-bottom: 120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 54px 14px; }
.archive .card-image { aspect-ratio: 3 / 4; }
.archive .card-image img { object-fit: cover; }
.archive .card-heading h3 { font-size: 21px; }

/* Profile */
.profile-lead { padding-top: 100px; padding-bottom: 110px; display: grid; grid-template-columns: 170px 1.2fr .7fr; gap: 30px; align-items: start; border-bottom: 1px solid var(--ink); }
.profile-lead h2 { margin: 0; font-size: clamp(38px, 5vw, 76px); line-height: 1.12; letter-spacing: -.055em; font-weight: 400; }
.profile-copy { color: var(--muted); }
.profile-copy p { margin: 0; font-size: 14px; line-height: 1.9; }
.profile-copy p + p { margin-top: 22px; }
.career-section, .capability-section { padding-top: 90px; padding-bottom: 100px; display: grid; grid-template-columns: 1fr 3fr; gap: 40px; border-bottom: 1px solid var(--ink); }
.career-section header h2, .capability-section header h2, .facts-section h2 { margin: 24px 0 0; font-size: 36px; font-weight: 400; }
.career-section article { display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: end; border-top: 1px solid var(--ink); padding-top: 18px; }
.career-section time { font-size: 12px; }
.career-section h3 { margin: 0; font-size: clamp(32px, 4vw, 58px); font-weight: 400; }
.career-section strong { justify-self: end; font-size: 13px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.capability-grid article { min-height: 300px; padding: 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.capability-grid article:last-child { border-right: 0; }
.capability-grid span { font-size: 10px; }
.capability-grid h3 { margin: auto 0 18px; font-size: 24px; line-height: 1.25; font-weight: 400; }
.capability-grid p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.capability-skills { grid-column: 2; display: grid; grid-template-columns: 1fr 3fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.capability-skills span { font-size: 10px; letter-spacing: .08em; }
.capability-skills p { margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); }
.facts-section { padding-top: 90px; padding-bottom: 100px; display: grid; grid-template-columns: 1fr 3fr; gap: 40px; }
.facts-section dl { margin: 0; border-top: 1px solid var(--ink); }
.facts-section dl > div { display: grid; grid-template-columns: 1fr 3fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts-section dt { font-size: 11px; color: var(--muted); }
.facts-section dd { margin: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.facts-section dd b { font-weight: 500; }
.facts-section dd span { font-size: 12px; line-height: 1.6; color: var(--muted); }
.role-note { padding-top: 24px; padding-bottom: 24px; border-top: 1px solid var(--ink); font-size: 12px; color: var(--muted); }

/* Contact */
.contact-page { min-height: calc(100svh - 68px); padding-top: 80px; padding-bottom: 80px; display: grid; grid-template-columns: 1.2fr 1fr 220px; gap: 6vw; align-items: end; }
.contact-title { align-self: start; }
.contact-title > p { margin: 0; font-size: 10px; letter-spacing: .14em; }
.contact-title h1 { margin: 50px 0 0; font-size: clamp(19.2px, 2.8vw, 42.4px); line-height: 1; letter-spacing: -.065em; font-weight: 400; }
.contact-title-line, .contact-title > p { display: block; width: max-content; max-width: 100%; }
.contact-title-line + .contact-title-line { margin-top: 1em; }
body.is-contact-page #app-view.page-enter { animation: none; }
body.is-contact-page #app-view:focus { outline: none; }
.contact-list { border-top: 1px solid var(--ink); }
.copy-button, .contact-city { width: 100%; display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 19px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.copy-button span, .copy-button i, .contact-city span { font-size: 10px; color: var(--muted); font-style: normal; }
.copy-button b, .contact-city b { font-weight: 400; }
.qr { margin: 0; }
.qr img { width: 220px; }
.qr figcaption { margin-top: 10px; font-size: 10px; color: var(--muted); }

/* Project detail */
.detail-heading { padding-top: 38px; padding-bottom: 44px; }
.detail-heading > nav { display: flex; gap: 8px; font-size: 10px; color: var(--muted); }
.detail-heading > nav b { color: var(--ink); font-weight: 400; }
.detail-heading > div { display: grid; grid-template-columns: 180px 1fr; align-items: end; padding: 70px 0 45px; }
.detail-heading > div p { margin: 0; font-size: 9px; letter-spacing: .13em; }
.detail-heading h1 { margin: 0; font-size: clamp(72px, 12vw, 180px); line-height: .72; letter-spacing: -.08em; font-weight: 400; }
.project-meta { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.project-meta > div { padding: 14px 14px 16px 0; border-right: 1px solid var(--line); }
.project-meta > div + div { padding-left: 14px; }
.project-meta > div:last-child { border-right: 0; }
.project-meta dt { font-size: 9px; color: var(--muted); }
.project-meta dd { margin: 7px 0 0; font-size: 12px; }
.detail-cover { margin: 0; padding: 0 var(--pad); }
.detail-cover button, .detail-gallery button { width: 100%; border: 0; padding: 0; background: var(--soft); cursor: zoom-in; transition: transform .45s cubic-bezier(.2,.75,.25,1), box-shadow .45s ease; }
.detail-cover button:hover, .detail-gallery button:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(17,17,17,.12); }
.detail-cover img { width: 100%; height: min(78vh, 900px); object-fit: contain; background: #e9e8e4; }
.detail-brief { padding-top: 88px; padding-bottom: 105px; display: grid; grid-template-columns: minmax(130px, .55fr) minmax(320px, 1.35fr) minmax(220px, .75fr); gap: clamp(35px, 6vw, 110px); align-items: start; }
.detail-brief-label { border-top: 1px solid var(--ink); padding-top: 12px; }
.detail-brief-label span { font-size: 8px; letter-spacing: .13em; color: var(--muted); }
.detail-brief-label p { margin: 42px 0 0; font-size: 13px; }
.detail-brief-copy h2 { margin: 0 0 23px; max-width: 760px; font-size: clamp(28px, 3.2vw, 50px); line-height: 1.12; letter-spacing: -.045em; font-weight: 400; }
.detail-brief-copy > p { max-width: 700px; margin: 0; font-size: 14px; line-height: 1.9; color: var(--muted); }
.detail-boundary { margin-top: 25px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11px !important; }
.detail-tags { margin: 0; padding: 0; border-top: 1px solid var(--ink); list-style: none; }
.detail-tags li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.detail-tags li::before { content: "↳"; display: inline-block; width: 24px; color: var(--ink); }
.detail-gallery { padding-bottom: 120px; display: grid; gap: clamp(10px, 1.25vw, 20px); }
.detail-gallery.has-turnaround { padding-bottom: clamp(10px, 1.25vw, 20px); }
.gallery-cluster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.25vw, 20px); }
.gallery-cluster.is-trio { grid-template-rows: repeat(2, clamp(240px, 30vw, 500px)); }
.gallery-cluster.is-pair { grid-template-rows: clamp(320px, 40vw, 620px); }
.gallery-cluster.is-single { grid-template-columns: 1fr; grid-template-rows: clamp(420px, 62vw, 820px); }
.gallery-cluster.is-complete { grid-template-rows: none; align-items: start; }
.detail-gallery .gallery-item { position: relative; width: 100%; min-width: 0; height: 100%; border: 0; padding: 0; overflow: hidden; background: #e9e8e4; cursor: zoom-in; }
.gallery-cluster.is-complete .gallery-item { height: auto; align-self: start; }
.gallery-cluster.is-trio:not(.is-mirror) > :nth-child(1) { grid-column: 1; grid-row: 1; }
.gallery-cluster.is-trio:not(.is-mirror) > :nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.gallery-cluster.is-trio:not(.is-mirror) > :nth-child(3) { grid-column: 1; grid-row: 2; }
.gallery-cluster.is-trio.is-mirror > :nth-child(1) { grid-column: 2; grid-row: 1; }
.gallery-cluster.is-trio.is-mirror > :nth-child(2) { grid-column: 1; grid-row: 1 / 3; }
.gallery-cluster.is-trio.is-mirror > :nth-child(3) { grid-column: 2; grid-row: 2; }
.gallery-cluster.is-trio:not(.is-mirror) .is-tall { grid-column: 2; grid-row: 1 / 3; }
.gallery-cluster.is-trio:not(.is-mirror) .is-stack-top { grid-column: 1; grid-row: 1; }
.gallery-cluster.is-trio:not(.is-mirror) .is-stack-bottom { grid-column: 1; grid-row: 2; }
.gallery-cluster.is-trio.is-mirror .is-tall { grid-column: 1; grid-row: 1 / 3; }
.gallery-cluster.is-trio.is-mirror .is-stack-top { grid-column: 2; grid-row: 1; }
.gallery-cluster.is-trio.is-mirror .is-stack-bottom { grid-column: 2; grid-row: 2; }
.detail-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; background: #e9e8e4; transition: opacity .65s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
#app-view.has-motion .detail-gallery img, #app-view.has-motion .detail-cover img, #app-view.has-motion .turnaround-item img { opacity: 0; }
#app-view.has-motion .detail-gallery img.is-loaded, #app-view.has-motion .detail-cover img.is-loaded, #app-view.has-motion .turnaround-item img.is-loaded { opacity: 1; }
.gallery-item:hover img, .turnaround-item:hover img { transform: scale(1.025); }
.gallery-cluster.is-complete img { height: auto; object-fit: contain; }
.detail-gallery .gallery-item > span { position: absolute; right: 8px; bottom: 7px; min-width: 25px; padding: 4px 5px; background: rgba(242, 241, 237, .9); color: var(--ink); font-size: 8px; letter-spacing: .08em; }
.detail-turnaround { padding-bottom: 120px; }
.turnaround-grid { display: grid; gap: clamp(8px, 1.25vw, 18px); }
.turnaround-grid.is-portrait { grid-template-columns: repeat(var(--view-count), minmax(0, 1fr)); }
.turnaround-grid.is-landscape { grid-template-columns: 1fr; }
.turnaround-item { position: relative; width: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; overflow: hidden; }
.turnaround-item img { display: block; width: 100%; height: auto; background: #e9e8e4; transition: opacity .65s ease, transform .8s cubic-bezier(.2,.75,.25,1); }
.project-pagination { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.project-pagination a { padding: 22px 14px; display: grid; gap: 9px; border-right: 1px solid var(--line); }
.project-pagination a:first-child { padding-left: 0; }
.project-pagination a:last-child { border-right: 0; text-align: right; padding-right: 0; }
.project-pagination a:nth-child(2) { text-align: center; }
.project-pagination span { font-size: 9px; color: var(--muted); }
.project-pagination b { font-size: 16px; font-weight: 400; }

/* Shared footer and image viewer */
.site-footer { padding: 22px var(--pad); display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--ink); font-size: 9px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12, 12, 12, .97); color: white; display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; animation: lightboxIn .28s ease both; }
.lightbox figure { margin: 0; height: 92vh; display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox figure img { max-width: 100%; max-height: 86vh; object-fit: contain; animation: pageIn .35s cubic-bezier(.2,.75,.25,1) both; }
.lightbox figcaption { font-size: 11px; color: #aaa; }
.lightbox button { border: 0; background: transparent; color: white; font-size: 25px; cursor: pointer; height: 100%; }
.lightbox-close { position: absolute; top: 14px; right: 18px; width: 48px; height: 48px !important; z-index: 2; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 300; transform: translateX(-50%); background: var(--ink); color: white; padding: 10px 18px; font-size: 11px; opacity: 0; pointer-events: none; }
.toast.show { opacity: 1; }

@media (max-width: 900px) {
  .selected-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-lead { grid-template-columns: 1fr 2fr; }
  .profile-copy { grid-column: 2; }
  .career-section, .capability-section, .facts-section { grid-template-columns: 1fr; }
  .capability-skills { grid-column: auto; }
  .contact-page { grid-template-columns: 1fr 180px; }
  .contact-title { grid-column: 1 / -1; }
  .qr img { width: 180px; }
  .detail-brief { grid-template-columns: 1fr 2fr; }
  .detail-tags { grid-column: 2; }
  .detail-cover img { height: auto; max-height: none; }
}

@media (max-width: 700px) {
  :root { --pad: 18px; }
  .gate-main { grid-template-columns: 1fr; align-content: center; }
  .gate-main h1 { font-size: 30vw; }
  .site-header { height: 60px; grid-template-columns: 1fr auto; }
  .menu-toggle { display: block; border: 0; background: transparent; font-size: 11px; }
  .main-nav { position: fixed; inset: 60px 0 auto; padding: 22px 18px 28px; background: rgba(242,241,237,.97); border-bottom: 1px solid var(--ink); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: opacity .25s ease, transform .35s cubic-bezier(.2,.75,.25,1), visibility .35s; }
  .menu-open .main-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .header-year { display: none; }
  .home-hero { min-height: calc(72svh - 60px); }
  .hero-title { grid-template-columns: 1fr; }
  .hero-title h1 { font-size: 30vw; }
  .hero-title p { margin-top: 30px; text-align: left; }
  .section-intro, .page-heading { grid-template-columns: 1fr auto; }
  .section-intro p, .page-heading > p { grid-column: 1 / -1; margin-bottom: 30px; }
  .section-intro h2 { font-size: 56px; }
  .selected-list { grid-template-columns: 1fr; gap: 45px; }
  .project-card.selected { grid-column: auto; padding-top: 0; }
  .selected .card-image { aspect-ratio: 3 / 4; }
  .card-heading { grid-template-columns: 23px 1fr; }
  .card-featured { grid-column: 2; }
  .card-info, .project-card > a > p { padding-left: 29px; }
  .home-profile { grid-template-columns: 1fr; }
  .home-contact { display: grid; gap: 18px; }
  .page-heading { padding-top: 60px; }
  .page-heading h1 { font-size: 95px; }
  .page-heading > div { max-width: 100px; }
  .work-filters { top: 60px; display: flex; overflow-x: auto; }
  .work-filters a { min-width: 135px; flex: 1 0 auto; }
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 8px; }
  .archive .card-heading h3 { font-size: 17px; }
  .profile-lead { grid-template-columns: 1fr; }
  .profile-copy { grid-column: auto; }
  .career-section article { grid-template-columns: 1fr; gap: 16px; }
  .career-section strong { justify-self: start; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts-section dl > div, .facts-section dd { grid-template-columns: 1fr; gap: 12px; }
  .contact-page { grid-template-columns: 1fr; padding-top: 55px; }
  .contact-title { grid-column: auto; }
  .contact-title h1 { font-size: 20.8px; }
  .detail-heading > div { grid-template-columns: 1fr; gap: 18px; padding-top: 50px; }
  .detail-heading h1 { font-size: 72px; }
  .project-meta { grid-template-columns: 1fr; }
  .project-meta > div, .project-meta > div + div { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-meta > div:last-child { border-bottom: 0; }
  .detail-cover img { height: auto; max-height: 75vh; }
  .detail-brief { grid-template-columns: 1fr; gap: 30px; padding-top: 60px; padding-bottom: 70px; }
  .detail-brief-label p { margin-top: 25px; }
  .detail-tags { grid-column: auto; }
  .detail-gallery, .gallery-cluster { gap: 8px; }
  .gallery-cluster, .gallery-cluster.is-single { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery-cluster .gallery-item, .gallery-cluster.is-trio .gallery-item { grid-column: 1 !important; grid-row: auto !important; height: auto; }
  .detail-gallery img { height: auto; object-fit: contain; }
  .turnaround-grid.is-portrait { grid-template-columns: 1fr; }
  .project-pagination { grid-template-columns: 1fr 1fr; }
  .project-pagination a:nth-child(2) { display: none; }
  .project-pagination a:nth-child(3) { border-right: 0; }
  .site-footer { display: grid; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
