:root {
  --ys-ink: #0a0a0a;
  --ys-paper: #f1f0ea;
  --ys-acid: #b8ff2c;
  --ys-line: rgba(10, 10, 10, .24);
  --ys-muted: #64645f;
  --ys-pad: clamp(18px, 3vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ys-portfolio { margin: 0; background: var(--ys-paper); color: var(--ys-ink); font-family: Manrope, Arial, sans-serif; font-size: 16px; line-height: 1.5; }
body.ys-portfolio.admin-bar .ys-header { top: 32px; }
.ys-portfolio .ys-global-header,
.ys-portfolio .ys-global-footer { display: none !important; }
.ys-portfolio a { color: inherit; text-decoration: none; }
.ys-portfolio img { max-width: 100%; }
.ys-portfolio a:focus-visible, .ys-portfolio button:focus-visible, .ys-portfolio input:focus-visible, .ys-portfolio textarea:focus-visible, .ys-portfolio select:focus-visible { outline: 2px solid var(--ys-acid); outline-offset: 3px; }
.ys-skip { position: fixed; z-index: 1000; left: 10px; top: 10px; padding: 10px 14px; background: var(--ys-acid); transform: translateY(-150%); }
.ys-skip:focus { transform: none; }
.ys-kicker, .ys-section-label, .ys-nav, .ys-project-meta, .ys-project-titlebar, .ys-work-head, .ys-work-row > span, .ys-back { font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; }
.ys-header { position: sticky; z-index: 50; top: 0; height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #202020; color: #fff; padding: 0 var(--ys-pad); }
.ys-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.ys-brand-initials { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.72); font: 500 .62rem/1 "DM Mono", monospace; letter-spacing: .04em; }
.ys-brand-initials::after { content: ""; position: absolute; right: -3px; top: -3px; width: 6px; height: 6px; background: var(--ys-acid); }
.ys-nav { grid-column: 2; justify-self: center; width: max-content; display: flex; gap: 5px; border-radius: 14px; background: #171717; padding: 5px; }
.ys-nav a { min-width: 74px; border-radius: 10px; padding: 10px 14px; color: #aaa; text-align: center; transition: color .2s, background-color .2s; }
.ys-nav a:hover { color: #fff; }
.ys-nav a[aria-current="page"] { background: var(--ys-paper); color: var(--ys-ink); }
.ys-menu-toggle { display: none; }

.ys-home-hero { height: calc(100svh - 76px); min-height: 620px; display: grid; grid-template-rows: minmax(340px, 66%) minmax(190px, 34%); overflow: hidden; background: #202020; color: #fff; padding: 6px var(--ys-pad) 18px; }
.ys-hero-stage { position: relative; min-height: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); background: #292929; isolation: isolate; }
.ys-hero-stage::before { content: ""; position: absolute; z-index: 0; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: clamp(68px, 8vw, 128px) clamp(68px, 8vw, 128px); }
.ys-hero-corner { position: absolute; z-index: 3; color: #cacac6; font: 400 1rem/1 "DM Mono", monospace; }
.ys-hero-corner.is-nw { left: 12px; top: 10px; }
.ys-hero-corner.is-ne { right: 12px; top: 10px; }
.ys-hero-corner.is-sw { left: 12px; bottom: 10px; }
.ys-hero-corner.is-se { right: 12px; bottom: 10px; }
.ys-hero-images { position: absolute; z-index: 2; inset: 0; }
.ys-hero-image { position: absolute; left: 0; top: 0; display: block; width: clamp(210px, 22vw, 340px); aspect-ratio: 3 / 2; overflow: hidden; background: #171717; box-shadow: 0 18px 46px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.16); opacity: 0; transform: translate3d(calc(var(--ys-x) - 50%), calc(var(--ys-y) - 50% + 10px), 0) scale(.96); transition: opacity .48s ease, transform .62s cubic-bezier(.22,.75,.22,1); will-change: opacity, transform; }
.ys-hero-image.is-visible { opacity: 1; transform: translate3d(calc(var(--ys-x) - 50%), calc(var(--ys-y) - 50%), 0) scale(1); }
.ys-hero-image.is-leaving { pointer-events: none; opacity: 0; transform: translate3d(calc(var(--ys-x) - 50%), calc(var(--ys-y) - 50% - 6px), 0) scale(.985); }
.ys-hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ys-hero-copy { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-top: clamp(22px, 2.3vw, 36px); }
.ys-home-hero h1 { max-width: none; margin: 0 0 auto; font-size: clamp(3.1rem, 5.15vw, 6.2rem); font-weight: 400; line-height: .96; letter-spacing: -.055em; text-transform: none; }
.ys-home-hero h1 span { display: block; white-space: nowrap; }
.ys-hero-bottom { display: flex; justify-content: flex-end; align-items: end; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 12px; }
.ys-scroll { display: flex; min-width: 126px; justify-content: space-between; align-items: center; color: #fff; font: .72rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }

.ys-section { padding: clamp(76px, 11vw, 168px) var(--ys-pad); }
.ys-section-label { display: flex; justify-content: space-between; border-top: 1px solid var(--ys-line); padding-top: 13px; margin-bottom: clamp(50px, 8vw, 110px); }
.ys-profile { display: grid; grid-template-columns: 1fr 2.15fr; gap: 8vw; padding-block: clamp(56px, 7vw, 104px); }
.ys-profile .ys-section-label { display: block; border: 0; margin: 0; padding: 0; }
.ys-profile .ys-section-label span { display: block; }
.ys-profile-copy p { max-width: 1030px; margin: 0 0 36px; font-size: clamp(1.5rem, 2.8vw, 3rem); line-height: 1.2; letter-spacing: -.035em; }
.ys-text-link { display: inline-flex; align-items: center; gap: 40px; border-bottom: 1px solid var(--ys-ink); padding-bottom: 7px; font: .8rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.ys-text-link span { transition: transform .2s; }
.ys-text-link:hover span { transform: translate(4px, -4px); }

.ys-selected { background: #fff; padding-top: clamp(86px, 9vw, 132px); }
.ys-selected-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; border-bottom: 1px solid var(--ys-ink); padding-bottom: 30px; margin-bottom: 0; }
.ys-selected-head h2 { margin: 0; font-size: clamp(3.25rem, 5.3vw, 6.5rem); line-height: .95; letter-spacing: -.065em; font-weight: 400; }
.ys-selected-all { display: grid; grid-template-columns: auto 46px; align-items: stretch; min-height: 46px; overflow: hidden; border: 1px solid var(--ys-ink); font: .74rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.ys-selected-all span, .ys-selected-all b { display: grid; place-items: center; padding: 0 18px; }
.ys-selected-all b { padding: 0; background: var(--ys-ink); color: #fff; font-size: 1rem; font-weight: 400; transition: background .2s, color .2s; }
.ys-selected-all:hover b { background: var(--ys-acid); color: var(--ys-ink); }
.ys-project-grid { width: 100%; max-width: 3600px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 470px), 1fr)); column-gap: 16px; row-gap: clamp(54px, 6vw, 88px); margin-inline: auto; }
.ys-project-card { min-width: 0; }
.ys-project-titlebar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--ys-ink); }
.ys-project-titlebar::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; background: var(--ys-acid); }
.ys-project-titlebar h3 { flex: 1; margin: 0; overflow: hidden; font: 500 clamp(.9rem, 1.25vw, 1.2rem)/1.2 Manrope, sans-serif; letter-spacing: -.025em; text-overflow: ellipsis; text-transform: none; white-space: nowrap; }
.ys-project-titlebar span { display: grid; place-items: center; min-width: 30px; height: 24px; border: 1px solid var(--ys-ink); }
.ys-project-media { position: relative; overflow: hidden; min-height: 0; aspect-ratio: 3/2; background: #d7d7d1; }
.ys-project-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.ys-project-card:hover .ys-project-media img { transform: scale(1.025); }
.ys-project-media.is-placeholder { background: var(--ys-ink); color: var(--ys-paper); }
.ys-project-card:nth-child(even) .ys-project-media.is-placeholder { background: var(--ys-paper); color: var(--ys-ink); }
.ys-project-media.is-placeholder::before { content: attr(data-index); position: absolute; inset: 0; display: grid; place-items: center; font: 300 clamp(4rem, 11vw, 11rem)/1 "DM Mono", monospace; }
.ys-project-media.is-placeholder::after { content: ""; position: absolute; inset: 12%; opacity: .28; background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px); background-size: 20% 20%; }
.ys-project-meta { display: block; }
.ys-project-meta > div { display: grid; grid-template-columns: minmax(72px, .48fr) 1fr; gap: 16px; align-items: baseline; min-height: 32px; border-bottom: 1px solid var(--ys-line); padding: 7px 0 6px; }
.ys-project-meta span { color: var(--ys-muted); }
.ys-project-meta strong { overflow: hidden; font: inherit; color: var(--ys-ink); text-overflow: ellipsis; white-space: nowrap; }

.ys-empty-works { display: flex; justify-content: space-between; align-items: end; gap: 30px; min-height: 260px; border-bottom: 1px solid var(--ys-line); padding: 48px 0; }
.ys-empty-works p { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.ys-page { min-height: 70vh; }
.ys-works-page { background: #1f1f1f; color: #f0f0f1; }
.ys-works-hero { min-height: clamp(230px, 24vw, 330px); display: flex; align-items: flex-end; border-bottom: 1px solid rgba(240,240,241,.68); margin: 0 var(--ys-pad); padding: clamp(105px, 12vw, 165px) 0 28px; }
.ys-works-hero h1 { margin: 0; font-size: clamp(3.5rem, 5vw, 5.25rem); font-weight: 400; line-height: .95; letter-spacing: -.055em; }
.ys-work-index { min-height: 48vh; padding: 44px var(--ys-pad) clamp(120px, 12vw, 190px); }
.ys-work-head, .ys-work-row { display: grid; grid-template-columns: minmax(220px, 1.08fr) minmax(180px, 1.08fr) minmax(80px, 1fr) 36px; gap: 18px; align-items: center; }
.ys-work-head { min-height: 30px; color: #a6a6a8; font: 500 .62rem/1 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.ys-work-empty { max-width: 32ch; margin: 70px 0 0; color: #929294; font-size: clamp(1.4rem, 2.6vw, 2.8rem); line-height: 1.2; letter-spacing: -.035em; }
.ys-work-row { position: relative; min-height: 44px; border-bottom: 1px solid rgba(240,240,241,.1); color: #f0f0f1; transition: background-color .15s ease, color .15s ease; }
.ys-work-row:first-of-type { border-top: 1px solid rgba(240,240,241,.1); }
.ys-work-row strong { overflow: hidden; font: 600 clamp(.88rem, 1.18vw, 1rem)/1.15 Manrope, Arial, sans-serif; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.ys-work-row > span { color: #929294; font: 400 .67rem/1.25 "DM Mono", monospace; letter-spacing: .035em; text-transform: uppercase; }
.ys-work-row:hover, .ys-work-row:focus-visible { z-index: 4; outline: 0; background: #f0f0f1; color: #1f1f1f; }
.ys-work-row:hover > span, .ys-work-row:focus-visible > span { color: #5f5f61; }
.ys-row-arrow { justify-self: center; color: inherit !important; font-family: Manrope, Arial, sans-serif !important; font-size: 1rem !important; transform: translateY(-1px); }
.ys-row-preview { pointer-events: none; position: fixed; z-index: 60; left: 0; top: 0; display: block; width: clamp(230px, 22vw, 340px); aspect-ratio: 3/2; overflow: hidden; opacity: 0; transform: translate3d(var(--ys-preview-x, -120vw), var(--ys-preview-y, -120vh), 0) scale(.97); transform-origin: top left; transition: opacity .16s ease, transform .24s cubic-bezier(.2,.8,.2,1); box-shadow: 0 20px 55px rgba(0,0,0,.32); }
.ys-row-preview.is-priming { transition: none; }
.ys-row-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ys-work-row.is-preview-ready:hover .ys-row-preview, .ys-work-row.is-preview-ready:focus-visible .ys-row-preview { opacity: 1; transform: translate3d(var(--ys-preview-x, -120vw), var(--ys-preview-y, -120vh), 0) scale(1); }

.ys-index-page { background: #1f1f1f; color: #f0f0f1; }
.ys-info-hero { min-height: clamp(230px, 24vw, 330px); }
.ys-info-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(45px, 9vw, 150px); margin: 0 var(--ys-pad); border-bottom: 1px solid rgba(240,240,241,.18); padding: clamp(55px, 7vw, 100px) 0; }
.ys-about-intro-lead { max-width: 18ch; margin: 0; font-size: clamp(2.25rem, 4.25vw, 5rem); line-height: 1.04; letter-spacing: -.055em; }
.ys-about-intro-copy { align-self: end; }
.ys-about-intro-copy p { max-width: 52ch; margin: 0; color: #aaa; }
.ys-about-intro-copy .ys-text-link { margin-top: 34px; }
.ys-info-meta { display: flex; flex-wrap: wrap; gap: 7px 20px; border-top: 1px solid rgba(240,240,241,.18); margin-bottom: 34px; padding-top: 10px; color: #929294; font: 400 .66rem/1.4 "DM Mono", monospace; letter-spacing: .045em; text-transform: uppercase; }
.ys-info-meta span + span::before { content: "/"; margin-right: 20px; color: #5f5f61; }
.ys-index-page .ys-text-link { border-color: #f0f0f1; }
.ys-background { background: #1f1f1f; padding-top: clamp(70px, 8vw, 118px); }
.ys-background .ys-section-label { border-color: rgba(240,240,241,.58); }
.ys-background-columns { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(45px, 7vw, 110px); }
.ys-background-group { min-width: 0; }
.ys-background-heading { min-height: 90px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-bottom: 1px solid rgba(240,240,241,.68); }
.ys-background-heading h2 { margin: 0; font-size: clamp(2rem, 3.4vw, 4rem); line-height: .95; letter-spacing: -.055em; font-weight: 500; }
.ys-background-heading span { padding-top: 7px; color: #929294; font: 400 .66rem/1.2 "DM Mono", monospace; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.ys-timeline { margin: 0; padding: 0; list-style: none; }
.ys-timeline li { display: grid; grid-template-columns: minmax(104px, .38fr) 1fr; gap: clamp(20px, 2.7vw, 42px); border-bottom: 1px solid rgba(240,240,241,.1); padding: 25px 0 30px; }
.ys-timeline time { color: #929294; font: 400 .68rem/1.35 "DM Mono", monospace; letter-spacing: .025em; text-transform: uppercase; }
.ys-timeline h3 { margin: -3px 0 5px; font-size: clamp(1.05rem, 1.45vw, 1.35rem); line-height: 1.18; letter-spacing: -.035em; font-weight: 600; }
.ys-timeline p { max-width: 48ch; margin: 14px 0 0; color: #aaa; font-size: .88rem; line-height: 1.6; }
.ys-timeline .ys-timeline-place { max-width: none; margin: 0; color: #f0f0f1; font: 400 .68rem/1.45 "DM Mono", monospace; letter-spacing: .025em; text-transform: uppercase; }
.ys-timeline cite { font-style: italic; }

.ys-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; padding-top: clamp(56px, 7vw, 100px); }
.ys-contact-intro .ys-kicker { display: block; margin-bottom: clamp(38px, 5vw, 72px); color: #929294; }
.ys-contact-intro p { max-width: 16ch; margin: 0 0 60px; font-size: clamp(2rem, 4vw, 4.7rem); line-height: 1.04; letter-spacing: -.055em; }
.ys-contact-email { display: inline-flex; gap: 25px; border-bottom: 1px solid; padding-bottom: 7px; font-family: "DM Mono", monospace; font-size: .82rem; }
.ys-contact-form { border-top: 1px solid rgba(240,240,241,.68); }
.ys-contact-form label { display: grid; grid-template-columns: 100px 1fr; gap: 20px; border-bottom: 1px solid rgba(240,240,241,.12); padding: 23px 0; color: #929294; font: .75rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.ys-contact-form input, .ys-contact-form textarea { width: 100%; border: 0; outline: 0; resize: vertical; background: transparent; color: #f0f0f1; font: 400 1rem/1.5 Manrope, sans-serif; }
.ys-contact-form input::placeholder, .ys-contact-form textarea::placeholder { color: #68686a; }
.ys-contact-form button { width: 100%; margin-top: 24px; display: flex; justify-content: space-between; border: 0; background: #f0f0f1; color: var(--ys-ink); padding: 20px; cursor: pointer; font: .78rem "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.ys-contact-form button:hover { background: var(--ys-acid); color: var(--ys-ink); }

.ys-case-page { background: #1d1d1d; }
.ys-article { padding: 0 var(--ys-pad) clamp(100px, 12vw, 170px); }
.ys-case { background: #1d1d1d; color: #f2f2f2; }
.ys-case-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); gap: clamp(28px, 3.2vw, 58px); border-bottom: 1px solid rgba(255,255,255,.26); padding: clamp(28px, 3.2vw, 52px) 0 clamp(36px, 4vw, 62px); }
.ys-case-hero-media { min-width: 0; }
.ys-article-cover { width: 100%; height: clamp(440px, 66vh, 700px); margin: 0; overflow: hidden; background: #252525; }
.ys-article-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ys-case-cover-placeholder { height: clamp(440px, 66vh, 700px); display: grid; place-items: center; overflow: hidden; background: var(--ys-acid); color: var(--ys-ink); }
.ys-case-cover-placeholder span { font: 300 clamp(6rem, 16vw, 17rem)/1 "DM Mono", monospace; letter-spacing: -.12em; opacity: .85; }
.ys-case-hero-content { min-width: 0; min-height: clamp(440px, 66vh, 700px); display: flex; flex-direction: column; }
.ys-case-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 22px; border-bottom: 1px solid rgba(255,255,255,.18); padding-bottom: 12px; }
.ys-case-eyebrow { color: #929294; font: .68rem/1.3 "DM Mono", monospace; letter-spacing: .055em; text-transform: uppercase; }
.ys-case-hero h1 { max-width: 18ch; margin: clamp(45px, 8vh, 90px) 0 28px; font-size: clamp(3.1rem, 5.35vw, 6.4rem); line-height: .94; letter-spacing: -.065em; font-weight: 400; }
.ys-case-back { display: inline-flex; align-items: center; gap: 10px; color: #aaa; font: .66rem "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.ys-case-back span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: .8rem; transition: background .2s, color .2s; }
.ys-case-back:hover span { background: #fff; color: var(--ys-ink); }
.ys-case-deck { max-width: 42ch; margin: 0; color: #aaa; font-size: clamp(.9rem, 1.15vw, 1.08rem); line-height: 1.55; }
.ys-case-hero-meta { margin-top: auto; border-top: 1px solid rgba(255,255,255,.18); }
.ys-case-hero-meta > div { min-height: 35px; display: grid; grid-template-columns: minmax(88px, .42fr) 1fr; gap: 18px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.12); }
.ys-case-hero-meta span, .ys-case-hero-meta strong { overflow: hidden; font: 400 .66rem/1.4 "DM Mono", monospace; letter-spacing: .045em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ys-case-hero-meta span { color: #717173; }
.ys-case-hero-meta strong { color: #d6d6d7; }
.ys-case-layout { padding-top: clamp(54px, 7vw, 100px); }
.ys-case-story { min-width: 0; }
.ys-case-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.22); margin-bottom: clamp(60px, 8vw, 110px); }
.ys-case-summary > div { min-width: 0; border-right: 1px solid rgba(255,255,255,.16); padding: 15px 22px 28px 0; }
.ys-case-summary > div + div { padding-left: 22px; }
.ys-case-summary > div:last-child { border-right: 0; }
.ys-case-summary span { color: var(--ys-acid); font: .68rem "DM Mono", monospace; letter-spacing: .06em; }
.ys-case-summary h2 { margin: 36px 0 14px; font-size: 1rem; font-weight: 500; letter-spacing: -.02em; }
.ys-case-summary p { margin: 0; color: #aaa; font-size: .92rem; line-height: 1.6; }
.ys-article-body { width: 100%; margin: 0; font-size: 1.08rem; line-height: 1.75; }
.ys-article-body h2, .ys-article-body h3 { line-height: 1.08; letter-spacing: -.045em; }
.ys-article-body h2 { font-size: clamp(2rem, 4vw, 4rem); }
.ys-article-body figure:not(.wp-block-gallery) { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); gap: clamp(28px, 3.2vw, 58px); align-items: start; border-top: 1px solid rgba(255,255,255,.18); margin: clamp(70px, 8vw, 120px) 0; padding-top: 18px; }
.ys-article-body figure:not(.wp-block-gallery) > img, .ys-article-body figure:not(.wp-block-gallery) > a, .ys-article-body figure:not(.wp-block-gallery) > picture { grid-column: 1; min-width: 0; }
.ys-article-body img { display: block; width: 100%; height: auto; }
.ys-article-body figure:not(.wp-block-gallery) figcaption { grid-column: 2; grid-row: 1; margin: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 10px; color: #aaa; font: .68rem/1.55 "DM Mono", monospace; letter-spacing: .045em; text-transform: uppercase; }
.ys-case-gallery { margin-top: clamp(70px, 9vw, 130px); }
.ys-gallery-image { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr); gap: clamp(28px, 3.2vw, 58px); align-items: start; border-top: 1px solid rgba(255,255,255,.18); margin: 0; padding: clamp(18px, 2vw, 28px) 0 clamp(70px, 9vw, 130px); }
.ys-gallery-media { grid-column: 1; grid-row: 1; min-width: 0; }
.ys-gallery-image img { display: block; width: 100%; height: auto; }
.ys-gallery-image figcaption { grid-column: 2; grid-row: 1; margin: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 10px; color: #aaa; font: .68rem/1.55 "DM Mono", monospace; letter-spacing: .045em; text-transform: uppercase; }
.ys-case-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; }
.ys-case-nav a { min-height: 52px; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: stretch; overflow: hidden; background: #151515; }
.ys-case-nav .is-next, .ys-case-nav-index { grid-template-columns: minmax(0, 1fr) 46px !important; }
.ys-case-nav span { display: grid; place-items: center; background: #f2f2f2; color: var(--ys-ink); font-size: 1.2rem; }
.ys-case-nav strong { display: grid; place-items: center; overflow: hidden; padding: 0 16px; font-size: .82rem; font-weight: 500; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.ys-case-nav-index { grid-column: 1/-1; }

.ys-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s, transform .65s; }
.ys-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  body.ys-portfolio.admin-bar .ys-header { top: 46px; }
  .ys-header { grid-template-columns: 1fr auto; }
  .ys-menu-toggle { display: block; border: 0; background: transparent; color: #fff; font: .75rem "DM Mono", monospace; text-transform: uppercase; }
  .ys-nav { width: auto; display: none; position: absolute; left: 0; right: 0; top: 76px; padding: 25px var(--ys-pad) 32px; border-radius: 0; background: var(--ys-ink); flex-direction: column; font-size: 1rem; border-top: 1px solid rgba(255,255,255,.2); }
  .ys-nav.is-open { display: flex; }
  .ys-nav a { text-align: left; }
  .ys-profile, .ys-about-intro, .ys-background-columns, .ys-contact-grid { grid-template-columns: 1fr; }
  .ys-profile { gap: 45px; }
  .ys-project-meta > div { grid-template-columns: 70px 1fr; }
  .ys-work-head, .ys-work-row { grid-template-columns: minmax(180px, 1.1fr) minmax(150px, 1fr) 80px 36px; }
  .ys-about-intro { gap: 34px; }
  .ys-about-intro-copy { max-width: 620px; }
  .ys-case-hero { grid-template-columns: 1fr; gap: 30px; }
  .ys-case-hero-content { min-height: 0; grid-row: 1; }
  .ys-case-hero-media { grid-row: 2; }
  .ys-case-hero h1 { margin-top: 42px; }
  .ys-case-hero-meta { margin-top: 46px; }
  .ys-article-cover, .ys-case-cover-placeholder { height: clamp(360px, 64vw, 560px); }
  .ys-article-body figure:not(.wp-block-gallery), .ys-gallery-image { grid-template-columns: 1fr; gap: 14px; }
  .ys-article-body figure:not(.wp-block-gallery) figcaption, .ys-gallery-image figcaption { grid-column: 1; grid-row: 2; }
}

@media (max-width: 620px) {
  .ys-home-hero { height: calc(100svh - 76px); min-height: 560px; grid-template-rows: minmax(245px, 56%) minmax(210px, 44%); padding-top: 2px; }
  .ys-home-hero h1 { max-width: none; font-size: clamp(2.35rem, 10.5vw, 3.4rem); }
  .ys-hero-image { width: clamp(170px, 52vw, 230px); }
  .ys-hero-copy { padding-top: 22px; }
  .ys-scroll { min-width: 118px; }
  .ys-selected-head { grid-template-columns: 1fr; align-items: start; padding-bottom: 22px; }
  .ys-selected-all { width: max-content; }
  .ys-project-grid { display: block; }
  .ys-project-card { display: block; margin-bottom: 55px !important; }
  .ys-project-media { aspect-ratio: 3/2; }
  .ys-works-hero { min-height: 230px; padding-top: 92px; padding-bottom: 24px; }
  .ys-works-hero h1 { font-size: clamp(3.35rem, 17vw, 4.6rem); }
  .ys-work-index { padding-top: 34px; }
  .ys-work-head { grid-template-columns: minmax(0, 1fr) 60px 26px; }
  .ys-work-head span:nth-child(2) { display: none; }
  .ys-work-head span:nth-child(3) { grid-column: 2; }
  .ys-work-row { grid-template-columns: minmax(0, 1fr) 60px 26px; grid-template-rows: auto auto; gap: 3px 10px; min-height: 58px; padding: 9px 0; }
  .ys-work-row strong { grid-column: 1; grid-row: 1; }
  .ys-work-status { grid-column: 1; grid-row: 2; font-size: .58rem !important; }
  .ys-work-year { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .ys-row-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .ys-row-preview { display: none; }
  .ys-info-meta { display: block; }
  .ys-info-meta span { display: block; }
  .ys-info-meta span + span::before { content: none; }
  .ys-background-columns { gap: 72px; }
  .ys-background-heading { min-height: 72px; }
  .ys-timeline li { grid-template-columns: 92px 1fr; gap: 18px; }
  .ys-contact-form label { grid-template-columns: 1fr; gap: 8px; }
  .ys-article { padding-left: var(--ys-pad); padding-right: var(--ys-pad); }
  .ys-case-hero { gap: 24px; padding-top: 24px; padding-bottom: 36px; }
  .ys-case-hero-top { align-items: flex-start; }
  .ys-case-hero h1 { margin: 34px 0 20px; font-size: clamp(2.65rem, 12vw, 4.35rem); }
  .ys-case-deck { max-width: 34ch; font-size: .88rem; }
  .ys-case-hero-meta { margin-top: 36px; }
  .ys-article-cover, .ys-case-cover-placeholder { height: clamp(250px, 72vw, 390px); }
  .ys-case-layout { display: block; padding-top: 54px; }
  .ys-case-summary { grid-template-columns: 1fr; }
  .ys-case-summary > div, .ys-case-summary > div + div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); padding: 14px 0 26px; }
  .ys-case-summary > div:last-child { border-bottom: 0; }
  .ys-case-summary h2 { margin-top: 22px; }
  .ys-article-body { font-size: 1rem; }
  .ys-gallery-image { padding-bottom: 72px; }
  .ys-case-nav { grid-template-columns: 1fr; margin-left: 0; }
  .ys-case-nav-index { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ys-reveal { opacity: 1; transform: none; transition: none; }
  .ys-project-media img, .ys-text-link span { transition: none; }
  .ys-hero-image { transition: none; }
}
