@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Serif+SC:wght@400;500;600&display=swap');

:root { --ink:#111; --paper:#fff; --line:#e6e6e6; --forest:#111; --accent:#111; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"Noto Serif SC",serif; }
body.menu-open { overflow:hidden; }
a { color:inherit; text-decoration:none; }
.site-header { height:76px; padding:0 4vw; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent); font-family:"DM Mono",monospace; font-size:11px; letter-spacing:.06em; position:sticky;top:0;z-index:10;backdrop-filter:blur(18px);background:color-mix(in srgb,var(--paper) 82%,transparent); }
.brand { font-size:15px; font-weight:500; }.brand span{font-size:9px;margin-left:5px;font-weight:400}.site-header nav{display:flex;gap:28px}.site-header nav a:hover,.contact-links a:hover{text-decoration:underline}.menu-button{display:none}
.hero{height:calc(100vh - 76px);min-height:650px;position:relative;background:#111;color:white;overflow:hidden;isolation:isolate}.hero>img{width:100%;height:112%;object-fit:cover;filter:grayscale(100%);opacity:.76;will-change:transform;transform:scale(1.05)}.hero:after{content:"";position:absolute;z-index:0;inset:0;background:linear-gradient(105deg,rgba(0,0,0,.6),rgba(0,0,0,.08) 70%)}
.hero-copy{position:absolute;z-index:1;left:8vw;bottom:17vh}.hero-copy p,.eyebrow{font:11px "DM Mono",monospace;letter-spacing:.08em}.eyebrow span{opacity:.55;font-size:9px;margin-left:7px}.hero h1{font-size:clamp(55px,9.1vw,146px);letter-spacing:-.08em;line-height:.91;font-weight:400;margin:24px 0}.hero h1 span{display:block}.hero h1 span:nth-child(2){padding-left:16vw}.hero h1 span:nth-child(3){padding-left:5vw}.scroll-cue{position:absolute;z-index:1;right:4vw;bottom:35px;font:11px "DM Mono",monospace;letter-spacing:.08em}.scroll-cue span{font-size:18px;margin-left:8px}.hero-orbit{position:absolute;z-index:1;right:4vw;top:12vh;width:140px;height:140px;border:1px solid rgba(255,255,255,.7);border-radius:50%;display:grid;place-items:center;font:9px "DM Mono",monospace;letter-spacing:.12em;text-align:center;line-height:1.6;animation:spin 18s linear infinite}.canvas-glow{display:none}.creative-console{display:none}
.section{padding:120px 8vw}.intro{padding-bottom:70px}.eyebrow{margin:0 0 45px}.intro h2,.about h2,.contact h2{font-size:clamp(31px,4.4vw,61px);font-weight:400;line-height:1.32;margin:0;letter-spacing:-.04em}.filters{display:flex;gap:25px;margin-bottom:30px}.filters button{border:0;background:none;padding:0;font:11px "DM Mono",monospace;cursor:pointer;color:#777}.filters button.active{color:var(--ink);text-decoration:underline;text-underline-offset:5px}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.photo-card{padding:0;border:0;background:none;position:relative;cursor:zoom-in;text-align:left;overflow:hidden;aspect-ratio:1/1.15;border-radius:0;box-shadow:none}.photo-card.large{grid-row:span 2;aspect-ratio:auto}.photo-card.wide{grid-column:span 2;aspect-ratio:2/1}.photo-card img{width:100%;height:100%;object-fit:cover;display:block;filter:grayscale(100%);transition:transform .85s cubic-bezier(.2,.75,.2,1),filter .75s}.photo-card:hover img{transform:scale(1.055);filter:grayscale(0%)}.photo-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.4),transparent 45%);opacity:.55;transition:opacity .4s}.photo-card:hover:after{opacity:.9}.photo-card span{position:absolute;z-index:1;bottom:16px;left:17px;color:white;font-size:18px;text-shadow:0 1px 8px #000}.photo-card small{font:10px "DM Mono",monospace;margin-left:8px}.canvas-note{display:none}
.work-index{border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}.chapter-link{min-height:150px;padding:18px 16px;display:flex;flex-direction:column;gap:11px;border-right:1px solid var(--line);position:relative;overflow:hidden;transition:background .35s,color .35s}.chapter-link:last-child{border-right:0}.chapter-link b,.chapter-link i{font:10px "DM Mono",monospace;letter-spacing:.08em;font-style:normal}.chapter-link span{font-size:21px;letter-spacing:-.04em}.chapter-link i{color:#777}.chapter-link em{position:absolute;right:17px;bottom:14px;font-style:normal;font-size:18px;transition:transform .35s}.chapter-link:before{display:none}.chapter-link:hover,.chapter-link.active{background:#111;color:#fff}.chapter-link:hover em{transform:translate(4px,4px)}.work-chapter{padding-top:55px;scroll-margin-top:76px}.chapter-title{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:35px;align-items:end;margin-bottom:42px}.chapter-title .eyebrow{margin:0;align-self:start}.chapter-title h2{margin:0;font-size:clamp(30px,4.3vw,61px);font-weight:400;line-height:1.18;letter-spacing:-.05em}.chapter-title>p:last-child{font-size:15px;line-height:1.8;margin:0;color:#555;max-width:300px}.daily{padding-bottom:50px}
.film{padding-top:40px}.film-heading{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:28px}.film-heading .eyebrow{margin:0}.film-heading>p:last-child{font:14px "DM Mono",monospace;margin:0;color:#777}.video-frame{position:relative;background:#151515;border-radius:0;overflow:hidden;aspect-ratio:16/9}.video-frame video{width:100%;height:100%;display:block;object-fit:cover;background:#151515}.video-caption{position:absolute;left:20px;right:20px;bottom:18px;display:flex;justify-content:space-between;pointer-events:none;color:#fff;font:10px "DM Mono",monospace;letter-spacing:.08em;text-shadow:0 1px 5px #000}
.about{display:grid;grid-template-columns:1fr 1.3fr;gap:7vw;border-top:1px solid var(--line)}.about p{font-size:17px;line-height:1.9;max-width:570px}.text-link{display:inline-block;margin-top:25px;font:11px "DM Mono",monospace;text-decoration:underline;text-underline-offset:5px}.text-link span{font-size:16px;margin-left:7px}.contact{background:var(--forest);color:#f2f0e7}.contact h2 a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:9px}.contact-links{display:flex;gap:28px;margin-top:85px;font:11px "DM Mono",monospace}.contact-links a{border-bottom:1px solid #a8ad8e;padding-bottom:5px}footer{display:flex;justify-content:space-between;padding:22px 4vw;background:var(--forest);color:#b9bea7;font:10px "DM Mono",monospace}
.lightbox{padding:0;background:#111;color:white;border:0;max-width:min(1000px,90vw);max-height:90vh}.lightbox::backdrop{background:rgba(0,0,0,.82);backdrop-filter:blur(7px)}.lightbox img{display:block;max-width:100%;max-height:75vh;object-fit:contain}.lightbox div{padding:14px 18px;font:11px "DM Mono",monospace}.lightbox p{margin:6px 0 0;color:#bbb}.close{position:absolute;z-index:2;right:9px;top:6px;border:0;color:white;background:transparent;font-size:30px;cursor:pointer}.lightbox-nav{position:absolute;z-index:2;top:calc(50% - 23px);border:1px solid rgba(255,255,255,.3);width:46px;height:46px;border-radius:50%;color:white;background:rgba(20,20,20,.45);backdrop-filter:blur(10px);font-size:22px;cursor:pointer;transition:background .25s,transform .25s}.lightbox-nav:hover{background:white;color:#111}.lightbox-nav.previous{left:16px}.lightbox-nav.next{right:16px}.lightbox-nav.previous:hover{transform:translateX(-3px)}.lightbox-nav.next:hover{transform:translateX(3px)}
.reveal{opacity:0;transform:translateY(34px);transition:opacity .9s cubic-bezier(.2,.75,.2,1),transform .9s cubic-bezier(.2,.75,.2,1)}.reveal.visible{opacity:1;transform:none}.hero .reveal{transition-delay:.15s}@keyframes spin{to{transform:rotate(360deg)}}.cursor-glow{position:fixed;z-index:20;width:170px;height:170px;left:0;top:0;transform:translate(-50%,-50%);border-radius:50%;pointer-events:none;background:radial-gradient(circle,rgba(145,112,255,.12),transparent 68%);mix-blend-mode:multiply;transition:left .12s ease-out,top .12s ease-out;opacity:0}@media(pointer:fine){.cursor-glow{opacity:1}}
@media(max-width:650px){.site-header{height:64px;padding:0 6vw}.site-header nav{display:none}.menu-button{display:block;border:0;background:none;font:11px "DM Mono",monospace}.site-header.open nav{display:flex;position:absolute;z-index:3;top:64px;left:0;right:0;background:var(--paper);padding:24px 6vw;border-bottom:1px solid var(--line)}.hero{height:calc(100vh - 64px);min-height:530px}.hero-copy{left:7vw;bottom:22vh}.hero h1{font-size:62px}.hero h1 span:nth-child(2){padding-left:11vw}.hero h1 span:nth-child(3){padding-left:4vw}.hero-orbit{width:86px;height:86px;right:7vw;top:9vh;font-size:6px}.creative-console{left:7vw;right:7vw;bottom:6vh;gap:7px;overflow:hidden;white-space:nowrap}.console-tag{display:none}.section{padding:76px 7vw}.intro{padding-bottom:35px}.intro h2,.about h2,.contact h2{font-size:31px}.grid{gap:10px}.photo-card{aspect-ratio:1/1.3}.photo-card.large{grid-row:span 1;grid-column:span 2;aspect-ratio:1/1.1}.photo-card.wide{aspect-ratio:1.2/1}.photo-card span{font-size:14px;left:10px;bottom:10px}.photo-card small{display:block;margin:4px 0 0}.canvas-note{font-size:7px}.about{display:block}.about .eyebrow{margin-bottom:33px}.about p{font-size:15px}.contact-links{margin-top:55px}footer{font-size:8px}}
@media(max-width:650px){.work-index{grid-template-columns:1fr 1fr}.chapter-link{min-height:122px;padding:14px 12px;border-bottom:1px solid var(--line)}.chapter-link:nth-child(2){border-right:0}.chapter-link span{font-size:17px}.chapter-link i{font-size:8px}.work-chapter{padding-top:48px;scroll-margin-top:64px}.chapter-title{display:block;margin-bottom:30px}.chapter-title .eyebrow{margin-bottom:28px}.chapter-title h2{font-size:34px}.chapter-title>p:last-child{font-size:14px;margin-top:18px}}

/* 封面：极简导航 + 全屏影像，菜单仅在需要时出现 */
.site-header{height:88px;padding:0 7vw;border:0;background:var(--paper);backdrop-filter:none}.brand{display:grid;place-items:center;width:31px;height:31px;border:1px solid var(--ink);border-radius:50%;font-size:16px;line-height:1;font-family:Georgia,"Noto Serif SC",serif}.brand span{display:none}.menu-button{display:grid;place-content:center;gap:7px;width:42px;height:42px;padding:0;border:0;background:transparent;cursor:pointer}.menu-button span{display:block;width:25px;height:1px;background:var(--ink);transition:transform .3s,opacity .3s}.site-header.open .menu-button span:first-child{transform:translateY(4px) rotate(45deg)}.site-header.open .menu-button span:last-child{transform:translateY(-4px) rotate(-45deg)}.site-header nav{display:none}.site-header.open nav{display:flex;position:fixed;z-index:20;inset:88px 0 0;flex-direction:column;justify-content:center;gap:0;padding:0 9vw;background:var(--forest);color:#f2f0e7}.site-header.open nav a{display:flex;align-items:baseline;gap:18px;padding:18px 0;border-bottom:1px solid rgba(242,240,231,.26);font-size:clamp(31px,5vw,64px);letter-spacing:-.06em}.site-header.open nav small{font:10px "DM Mono",monospace;letter-spacing:.08em;color:#aaa}.hero{height:calc(100vh - 88px);min-height:650px}.hero:after{background:linear-gradient(180deg,rgba(0,0,0,.16),rgba(0,0,0,.58))}.hero-copy{left:50%;bottom:auto;top:50%;width:min(700px,86vw);transform:translate(-50%,-50%);text-align:center}.hero-copy p{font-family:"DM Mono",monospace;font-size:10px;letter-spacing:.12em}.hero h1{margin:17px 0 22px;letter-spacing:-.055em;line-height:.88}.hero h1 span{padding:0!important;font:clamp(42px,6vw,82px)/1 "Noto Serif SC",serif}.hero h1 strong{display:block;margin-top:9px;font:700 clamp(40px,7.5vw,106px)/.85 Georgia,serif;letter-spacing:-.08em}.hero-intro{font-family:"Noto Serif SC",serif!important;font-size:15px!important;line-height:1.8;letter-spacing:.02em!important}.scroll-cue{right:auto;left:50%;bottom:35px;transform:translateX(-50%);white-space:nowrap}.cursor-glow{background:radial-gradient(circle,rgba(0,0,0,.08),transparent 68%)}
@media(max-width:650px){.site-header{height:76px;padding:0 7vw}.site-header.open nav{inset:76px 0 0}.hero{height:calc(100vh - 76px);min-height:530px}.hero-copy{width:88vw}.hero h1 span{font-size:47px}.hero h1 strong{font-size:58px}.hero-intro{font-size:14px!important}.site-header.open nav a{font-size:38px}.scroll-cue{bottom:25px}}

/* 统一的作品集编辑式排版 */
.intro{min-height:52vh;display:flex;flex-direction:column;justify-content:center;border-bottom:1px solid var(--line)}.intro h2{font-size:clamp(40px,6vw,96px);line-height:1.04;max-width:900px}.intro-note{margin:30px 0 0 auto;max-width:290px;font-size:15px;line-height:1.85;color:#555}.gallery{padding-top:0;padding-bottom:0}.work-index{border-top:0}.chapter-link{min-height:230px;padding:28px 24px;justify-content:flex-end}.chapter-link span{font-size:clamp(22px,2.4vw,36px)}.chapter-link i{order:-1;margin-bottom:auto}.chapter-link em{font-size:25px}.work-chapter{padding-top:130px;padding-bottom:35px;border-top:1px solid var(--line)}.work-chapter .grid{margin-left:8vw}.work-chapter:nth-of-type(even) .chapter-title{grid-template-columns:1fr 1fr 1.2fr}.chapter-title{margin-bottom:58px}.chapter-title h2{font-size:clamp(40px,5vw,76px)}.photo-card span{font-family:"Noto Serif SC",serif;font-size:20px}.photo-card small{font-size:9px}.film{padding-top:130px;padding-bottom:130px;border-top:1px solid var(--line)}.film-heading .eyebrow{font-size:11px}.about{padding-top:150px;padding-bottom:150px}.about>div{position:relative}.about-mark{position:absolute;right:0;top:-44px;font:clamp(88px,15vw,210px)/1 Georgia,"Noto Serif SC",serif;color:#f0f0f0;z-index:-1}.about h2{font-size:clamp(44px,6vw,85px);margin-bottom:35px}.contact{min-height:62vh;display:flex;flex-direction:column;justify-content:center}.contact h2{font-size:clamp(42px,6vw,88px);max-width:900px}.contact-links{margin-top:auto;padding-top:100px}.contact .eyebrow span{opacity:.55}.lightbox{border-radius:0}.lightbox div{padding:19px 22px}
@media(max-width:650px){.intro{min-height:45vh}.intro-note{margin:24px 0 0;font-size:14px}.chapter-link{min-height:150px;padding:17px 14px}.chapter-link span{font-size:20px}.work-chapter{padding-top:78px;padding-bottom:18px}.work-chapter .grid{margin-left:0}.chapter-title{margin-bottom:35px}.film{padding-top:80px;padding-bottom:80px}.about{padding-top:110px;padding-bottom:110px}.about-mark{top:-35px;font-size:130px}.contact{min-height:58vh}.contact-links{padding-top:70px}}

/* 参考封面采用的“单字标识 + 居中菜单”节奏 */
.site-header{height:164px;position:relative;z-index:30;flex-direction:column;justify-content:center;gap:24px;padding:16px 0;background:#fff}.brand{position:relative;z-index:31;width:auto;height:auto;border:0;border-radius:0;font:700 22px/1 Georgia,serif}.menu-button{position:relative;z-index:31;width:35px;height:28px;gap:7px}.menu-button span{width:35px;background:#111}.site-header.open .brand{color:#fff}.site-header.open .menu-button span{background:#fff}.site-header.open .menu-button span:first-child{transform:translateY(8px) rotate(45deg)}.site-header.open .menu-button span:nth-child(2){opacity:0}.site-header.open .menu-button span:last-child{transform:translateY(-8px) rotate(-45deg)}.site-header.open nav{z-index:30;inset:0;padding:172px 10vw 8vh;background:#111}.site-header.open nav a{font-size:clamp(34px,5vw,68px)}.hero{height:calc(100vh - 164px);min-height:560px}.hero-copy{top:51%;width:min(600px,88vw)}.hero-copy>p:first-child{font-size:12px;letter-spacing:.02em;font-family:"Noto Serif SC",serif}.hero h1{margin:26px 0 24px}.hero h1 span{font-size:clamp(39px,4.4vw,66px);font-weight:400}.hero h1 strong{margin-top:6px;font-size:clamp(50px,6.1vw,90px);letter-spacing:-.07em}.hero-intro{font-size:16px!important;line-height:1.75}.scroll-cue{bottom:29px;font-size:10px}@media(max-width:650px){.site-header{height:164px}.site-header.open nav{padding-top:172px}.hero{height:calc(100vh - 164px);min-height:560px}.hero h1 span{font-size:43px}.hero h1 strong{font-size:61px}.hero-intro{font-size:14px!important}.hero-copy>p:first-child{font-size:12px}}

/* Subtle, one-time gallery entrance; image hover transforms stay independent. */
.photo-card.gallery-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms ease-out, transform 650ms ease-out;
}
.photo-card.gallery-reveal.gallery-visible {
  opacity: 1;
  transform: translateY(0);
}
.photo-card.gallery-reveal:focus-visible {
  opacity: 1;
  transform: translateY(0);
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  .photo-card.gallery-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero: a sticky viewport backdrop behind normally scrolling page content. */
body { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-backdrop,
.site-shell { grid-area: 1 / 1; min-width: 0; }
.hero-backdrop {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #111;
}
.hero-backdrop > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus-x, 50%) var(--hero-focus-y, 10%);
  filter: none;
  opacity: 1;
  transform: none;
}
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(0,0,0,.12) 48%, rgba(0,0,0,.22));
}
.site-shell { position: relative; z-index: 1; }
.hero {
  display: grid;
  place-items: center;
  height: 550px;
  min-height: 0;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 6vw, 72px);
  background: transparent;
  overflow: visible;
}
/* Only the visible opening changes; the sticky viewport photo stays unchanged. */
@media (max-width: 1024px) {
  .hero { height: clamp(420px, 60svh, 550px); }
}
@media (max-width: 650px) {
  .hero { height: clamp(360px, 62svh, 500px); }
}
.hero::after { content: none; }
/* Full-width, continuous paper prevents the photo showing through gaps or reveal animations. */
.portfolio-foreground { position: relative; isolation: isolate; background: var(--paper); }
.hero .hero-copy,
.hero .hero-copy.reveal,
.hero .hero-copy.reveal.visible {
  position: relative;
  inset: auto;
  width: min(900px, 100%);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}
.hero .hero-copy h1 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  gap: clamp(6px, 1vw, 12px);
  width: 100%;
  min-width: 0;
  margin: clamp(20px, 2vw, 26px) 0 24px;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}
.hero .hero-copy h1 span,
.hero .hero-copy h1 strong {
  display: block;
  max-width: 100%;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  opacity: 1;
  transform: none;
  animation: none;
  transition: none;
}
.hero .hero-copy h1 span {
  font-size: clamp(24px, 4.4vw, 66px);
}
.hero .hero-copy h1 strong {
  font-size: clamp(26px, 4.6vw, 68px);
  line-height: 1;
}
.hero .hero-copy .hero-intro {
  max-width: 100%;
  font-size: clamp(14px, 1.2vw, 16px) !important;
  overflow-wrap: anywhere;
}

/* portfolio index page redesign */
.portfolio-index {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 112px) clamp(24px, 6vw, 88px) clamp(80px, 10vw, 144px);
  background: #fff;
  color: #111;
  scroll-margin-top: 0;
}
.portfolio-index > h1 {
  margin: 0 0 clamp(48px, 6vw, 80px);
  font: 400 clamp(24px, 2.3vw, 32px)/1.2 Georgia, serif;
  letter-spacing: 0;
  text-align: center;
}
.portfolio-series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 80px) clamp(24px, 3vw, 44px);
}
.series-card {
  display: block;
  min-width: 0;
  color: inherit;
  text-align: center;
}
.series-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.series-card h3 {
  margin: 20px 0 7px;
  font: 400 clamp(17px, 1.6vw, 21px)/1.35 Georgia, serif;
  letter-spacing: 0;
}
.series-card h3:last-child { margin-bottom: 0; }
.series-card p {
  margin: 0;
  color: #777;
  font: 400 11px/1.5 Arial, sans-serif;
  letter-spacing: .04em;
}
.series-card:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 8px;
}
@media (max-width: 650px) {
  .portfolio-series-grid { grid-template-columns: minmax(0, 1fr); }
}

/* single page scroll portfolio grid below hero */
#work { scroll-margin-top: 0; }
.work-chapter, .film, #about, #contact {
  scroll-margin-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Anchor targets must not shift while their scroll position is calculated. */
.work-chapter:target, .film:target, #about:target, #contact:target {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Project albums: only opt-in cropped slides change the existing lightbox image layout. */
.lightbox img[data-fit="cover"] {
  width: min(1000px, 90vw);
  height: 75vh;
  height: 75svh;
  object-fit: cover;
}
.film-project-grid > .video-frame { grid-column: 1 / -1; }

/* Masonry enhancement: DOM order remains CMS order; JS places tiles in shortest columns. */
.natural-gallery { --gallery-columns: 3; --gallery-gap: 16px; display: grid; grid-template-columns: repeat(var(--gallery-columns), minmax(0,1fr)); gap: var(--gallery-gap); align-items: start; }
.gallery-tile { margin: 0; min-width: 0; }
.natural-gallery.masonry-ready { display: block; position: relative; }
.masonry-ready > .gallery-tile, .masonry-ready > .video-frame { position: absolute; left: var(--tile-left); top: var(--tile-top); width: var(--tile-width); }
.natural-gallery .gallery-photo { display: block; width: 100%; aspect-ratio: auto; grid-row: auto; grid-column: auto; }
.natural-gallery .gallery-photo img { display: block; width: 100%; height: auto; object-fit: contain; filter: none; transition: none; }
.natural-gallery .gallery-photo:hover img { transform: none; filter: none; }
.natural-gallery .gallery-photo::after { content: none; }
.gallery-tile .gallery-project-title { display: none; }
/* Shared bilingual headings for all four portfolio categories. */
#portrait, #brand, #daily, #film { padding-top: 64px; }
#film { padding-bottom: 35px; }
.chapter-title.photo-category-title { display: block; margin-bottom: 32px; }
.photo-category-title .eyebrow { margin: 0 0 22px; }
.photo-category-title h2 { text-align: center; font: 400 clamp(30px, 3.2vw, 46px)/1.2 Georgia, "Noto Serif SC", serif; letter-spacing: -.025em; }
.chapter-title.photo-category-title > .category-subtitle { max-width: none; margin: 10px 0 0; text-align: center; font: 400 12px/1.6 "Noto Serif SC", serif; letter-spacing: .18em; color: #777; }
@media (max-width: 767px) {
  #portrait, #brand, #daily, #film { padding-top: 40px; }
  #film { padding-bottom: 18px; }
  .chapter-title.photo-category-title { margin-bottom: 24px; }
  .photo-category-title .eyebrow { margin-bottom: 20px; }
  .photo-category-title h2 { font-size: clamp(28px, 7.7vw, 36px); }
  .chapter-title.photo-category-title > .category-subtitle { margin-top: 8px; font-size: 11px; }
}
.natural-gallery > .video-frame { grid-column: 1 / -1; }
.lightbox.gallery-lightbox {
  position: fixed; inset: 0; margin: 0; box-sizing: border-box;
  width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  padding: calc(54px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: #fff; color: #111; overflow: hidden;
}
.lightbox.gallery-lightbox[open] { display: grid; grid-template: minmax(0,1fr) / minmax(0,1fr); place-items: center; }
.lightbox.gallery-lightbox::backdrop { background: #fff; backdrop-filter: none; }
.lightbox.gallery-lightbox img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; object-fit: contain; filter: none; touch-action: pan-y pinch-zoom; }
.gallery-lightbox > div { display: none; }
.gallery-lightbox .close { position: absolute; z-index: 5; left: max(16px, env(safe-area-inset-left, 0px)); top: calc(10px + env(safe-area-inset-top, 0px)); right: auto; color: #111; font: 32px/1 Arial,sans-serif; padding: 6px; background: transparent; }
.gallery-lightbox .lightbox-nav {
  position: absolute; top: 0; bottom: 0; width: 45%; height: 100%; border: 0; border-radius: 0;
  background: transparent; backdrop-filter: none; color: #111; font-size: 0; opacity: 0; transform: none; transition: opacity .15s;
}
.gallery-lightbox .previous { left: 0; right: auto; }
.gallery-lightbox .next { right: 0; left: auto; }
.gallery-lightbox .lightbox-nav::after { position: absolute; top: 50%; transform: translateY(-50%); font: 44px/1 Arial,sans-serif; }
.gallery-lightbox .previous::after { content: "‹"; left: max(20px, env(safe-area-inset-left, 0px)); }
.gallery-lightbox .next::after { content: "›"; right: max(20px, env(safe-area-inset-right, 0px)); }
.gallery-lightbox .lightbox-nav:hover, .gallery-lightbox .lightbox-nav:focus-visible { opacity: 1; background: transparent; color: #111; transform: none; }
@media (hover: none), (pointer: coarse) { .gallery-lightbox .lightbox-nav { opacity: .7; } }
@media (max-width: 1099px) { .natural-gallery { --gallery-columns: 2; } }
@media (max-width: 767px) {
  #portrait, #brand { padding-left: 16px; padding-right: 16px; }
  #portrait .natural-gallery, #brand .natural-gallery { margin-left: 0; }
  .natural-gallery { --gallery-columns: 1; --gallery-gap: 10px; }
}

/* Brand-only showcase. Portrait and legacy video layouts remain independent. */
#brand .brand-showcase { max-width: 1120px; margin: 0 auto; }
#brand .brand-carousel { --brand-side-scale: .78; position: relative; height: clamp(260px, 38vw, 500px); margin: 0 0 clamp(40px, 6vw, 80px); isolation: isolate; touch-action: pan-y pinch-zoom; }
#brand .brand-slide { position: absolute; top: 0; left: 50%; width: 64%; height: 100%; display: flex; justify-content: center; align-items: center; transform: translateX(-50%); opacity: 0; visibility: hidden; z-index: 0; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .4s, visibility .55s; }
#brand .brand-slide { pointer-events: none; }
#brand .brand-slide img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: none; pointer-events: auto; }
#brand .brand-carousel:not(.is-ready) .brand-slide:first-child, #brand .brand-slide[data-position="current"] { transform: translateX(-50%); opacity: 1; visibility: visible; z-index: 3; }
#brand .is-ready .brand-slide[data-position="off"] { transform: translateX(-50%) scale(.7); opacity: 0; visibility: hidden; z-index: 0; pointer-events: none; }
#brand .brand-slide[data-position="previous"] { transform: translateX(calc(-50% - var(--brand-offset, 27%))) scale(var(--brand-side-scale)); opacity: 1; visibility: visible; z-index: 1; }
#brand .brand-slide[data-position="next"] { transform: translateX(calc(-50% + var(--brand-offset, 27%))) scale(var(--brand-side-scale)); opacity: 1; visibility: visible; z-index: 1; }
#brand .brand-slide:focus-visible { outline: 1px solid #777; outline-offset: 4px; }
#brand .brand-projects { display: grid; gap: clamp(32px, 5vw, 72px); }
#brand .brand-project { min-width: 0; scroll-margin-top: 24px; }
#brand .brand-project-heading { margin: 0 0 28px; text-align: center; }
#brand .brand-project-number { margin: 0; color: #777; font: 400 10px/1.6 "DM Mono", monospace; letter-spacing: .12em; }
#brand .brand-project-heading h3 { margin: 10px 0 0; font: 400 clamp(22px, 2.4vw, 32px)/1.3 Georgia, "Noto Serif SC", serif; letter-spacing: .02em; overflow-wrap: anywhere; }
#brand .brand-project-photos { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 16px; }
#brand .brand-project-photos.single { display: block; max-width: 760px; margin: 0 auto; }
#brand .gallery-tile { min-width: 0; }
#brand .gallery-photo { display: block; width: 100%; aspect-ratio: auto; grid-row: auto; grid-column: auto; }
#brand .gallery-photo img { display: block; width: 100%; height: auto; object-fit: contain; filter: none; transition: none; }
#brand .gallery-photo:hover img { filter: none; transform: none; }
#brand .gallery-photo::after { content: none; }
#brand [data-template="hero-details"] .multiple > .gallery-tile:first-child { grid-column: 1 / -1; }
#brand [data-template="editorial"] .multiple { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; }
#brand [data-template="editorial"] .multiple > .gallery-tile:nth-child(even) { margin-top: 40px; }
#brand [data-template="book"] .multiple { grid-template-columns: repeat(2,minmax(0,1fr)); }
.brand-carousel-status.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 767px) {
  #brand .brand-carousel { height: clamp(220px, 75vw, 360px); margin-bottom: 32px; }
  #brand .brand-slide { width: 72%; }
  #brand .brand-project-photos, #brand [data-template] .brand-project-photos.multiple { grid-template-columns: minmax(0,1fr); gap: 10px; }
  #brand .brand-project-heading { margin-bottom: 20px; }
  #brand [data-template="editorial"] .multiple > .gallery-tile:nth-child(even) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) { #brand .brand-slide { transition: none; } }

/* Video categories: shared cards, compact fashion packing, regular commercial rows. */
#daily .film-gallery, #film .film-gallery { --film-columns: 2; --film-gap: 20px; display: grid; grid-template-columns: repeat(var(--film-columns), minmax(0,1fr)); gap: var(--film-gap); align-items: start; }
.film-gallery > * { min-width: 0; }
#daily .film-gallery--fashion { --film-single-max: 640px; }
#daily .film-gallery--fashion .film-still img { aspect-ratio: auto 16 / 9; }
.film-gallery--fashion.is-packed { display: block !important; position: relative; }
.film-gallery--fashion.is-packed > * { position: absolute; width: var(--film-width); left: var(--film-left); top: var(--film-top); }
.video-card { --video-ratio: 16 / 9; }
.video-card[data-aspect="portrait"] { --video-ratio: 9 / 16; }
.video-card[data-aspect="square"] { --video-ratio: 1; }
.video-cover { display: block; position: relative; width: 100%; aspect-ratio: var(--video-ratio); padding: 0; border: 0; background: #f3f3f3; color: #666; cursor: pointer; overflow: hidden; }
.video-cover img { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; font: 12px/1.6 "Noto Serif SC", serif; }
.video-cover.has-poster .video-placeholder { display: none; }
.video-play { position: absolute; left: 12px; bottom: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font: 14px/1 Arial,sans-serif; }
.video-cover:focus-visible { outline: 2px solid #555; outline-offset: 4px; }
.video-card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; }
.video-card-info h3 { margin: 0; font: 400 15px/1.5 "Noto Serif SC",serif; overflow-wrap: anywhere; }
.video-card-info > span { flex: none; color: #777; font: 11px/1.5 "DM Mono",monospace; }
.film-gallery .film-still .photo-card { width: 100%; aspect-ratio: auto; display: block; }
.film-gallery .film-still img { width: 100%; height: auto; object-fit: contain; }
.film-still.is-image-unavailable .photo-card { aspect-ratio: 16 / 9; background: #f3f3f3; cursor: default; }
.film-still.is-image-unavailable .photo-card::after { content: none; }
.film-still.is-image-unavailable .photo-card > span { color: #777; text-shadow: none; }
.film-image-message { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: #777; font: 12px/1.6 "Noto Serif SC",serif; }
.video-dialog { position: fixed; inset: 0; margin: 0; border: 0; box-sizing: border-box; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; padding: calc(60px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px)); background: #111; color: #fff; }
.video-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; gap: 12px; }
.video-dialog::backdrop { background: #111; }
.video-dialog h2 { margin: 0; text-align: center; font: 400 14px/1.5 "Noto Serif SC",serif; }
.video-player-host { min-height: 0; min-width: 0; display: grid; place-items: center; }
.video-player-host video { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; background: #111; }
.video-close { position: absolute; left: max(16px,env(safe-area-inset-left,0px)); top: calc(8px + env(safe-area-inset-top,0px)); z-index: 2; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font: 32px/1 Arial,sans-serif; cursor: pointer; }
.video-message { margin: 0; text-align: center; font: 13px/1.8 "Noto Serif SC",serif; color: #ddd; }
@media (max-width: 767px) {
  #daily .film-gallery, #film .film-gallery { --film-columns: 1; --film-gap: 16px; }
  .video-card-info h3 { font-size: 14px; }
}

/* Lighting Design: compact asymmetric collages; DOM and album order stay intact. */
#lighting { padding-top: 64px; padding-bottom: 35px; scroll-margin-top: 24px; }
.lighting-directory-card { grid-column: 1 / -1; width: calc((100% - clamp(24px,3vw,44px)) / 2); justify-self: center; }
.lighting-directory-placeholder { aspect-ratio: 3 / 4; display: grid; place-items: center; background: #f3f3f3; color: #777; font: 400 clamp(18px,2vw,26px)/1.3 Georgia,serif; }
#lighting .lighting-projects { max-width: 560px; margin: 0 auto; display: grid; gap: 40px; }
.lighting-project { width: min(100%,400px); min-width: 0; scroll-margin-top: 24px; }
.lighting-project[data-direction="right"] { justify-self: end; }
#lighting .chapter-title { margin-bottom: 24px; }
.lighting-project-heading { text-align: left; margin: 0 0 14px; }
.lighting-project-heading > p:first-child { margin: 0; font: 10px/1.6 "DM Mono",monospace; letter-spacing: .1em; color: #777; }
.lighting-project-heading h3 { margin: 7px 0 0; font: 400 clamp(18px,1.968vw,26.24px)/1.3 Georgia,"Noto Serif SC",serif; overflow-wrap: anywhere; }
.lighting-duty { margin: 7px 0 0; color: #777; font: 12px/1.8 "Noto Serif SC",serif; }
.lighting-shots { display: grid; gap: 12px; align-items: start; }
.lighting-shot { margin: 0; min-width: 0; }
.lighting-shots[data-count="3"] { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); }
.lighting-shots[data-count="3"] > :first-child { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.lighting-shots[data-count="3"] > :nth-child(2) { grid-column: 2; grid-row: 1; }
.lighting-shots[data-count="3"] > :last-child { grid-column: 2; grid-row: 2; }
.lighting-project[data-direction="right"] .lighting-shots[data-count="3"] { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); }
.lighting-project[data-direction="right"] .lighting-shots[data-count="3"] > :first-child { grid-column: 2; }
.lighting-project[data-direction="right"] .lighting-shots[data-count="3"] > :nth-child(2),
.lighting-project[data-direction="right"] .lighting-shots[data-count="3"] > :last-child { grid-column: 1; }
.lighting-shots[data-count="1"] { grid-template-columns: minmax(0,280px); justify-content: center; }
.lighting-shots[data-count="2"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
#lighting .lighting-photo { display: block; width: 100%; max-width: 100%; aspect-ratio: auto; background: #f3f3f3; }
#lighting .lighting-photo img { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; filter: none; transition: none; }
#lighting .lighting-photo:hover img { transform: none; filter: none; }
#lighting .lighting-photo::after { content: none; }
#lighting .lighting-photo.is-unavailable { aspect-ratio: 9 / 16; }
.lighting-image-message { margin: 0; padding: 16px; color: #777; font: 12px/1.8 "Noto Serif SC",serif; }
.lighting-lightbox-error { position: absolute; top: 45%; left: 16px; right: 16px; margin: 0; text-align: center; color: #777; font: 13px/1.8 "Noto Serif SC",serif; pointer-events: none; }
@media (max-width: 767px) {
  #lighting { padding: 40px 16px 18px; }
  #lighting .chapter-title { margin-bottom: 18px; }
  #lighting .lighting-projects { max-width: 420px; gap: 32px; }
  .lighting-project-heading { margin-bottom: 10px; }
  .lighting-shots { gap: 10px; }
  .lighting-shots[data-count="1"] { grid-template-columns: minmax(0,240px); }
}
@media (max-width: 650px) { .lighting-directory-card { width: 100%; grid-column: auto; } }

/* Lighting desktop staggered gallery: intrinsic tracks keep visible edges 20px apart. */
@media (min-width: 1100px) {
  #lighting .lighting-projects { width: max-content; max-width: 100%; gap: 36px; }
  #lighting .lighting-project { width: max-content; max-width: 100%; justify-self: start; }
  #lighting .lighting-shots { display: flex; width: max-content; max-width: 100%; align-items: flex-start; gap: 20px; }
  #lighting .lighting-shot { flex: 0 0 auto; align-self: flex-start; }
  #lighting .lighting-shots > :first-child { margin-top: 12px; }
  #lighting .lighting-shots > :nth-child(2) { margin-top: 0; }
  #lighting .lighting-shots > :nth-child(3) { margin-top: 24px; }
  #lighting .lighting-photo { width: max-content; }
  #lighting .lighting-photo img { width: auto; height: auto; max-width: none; max-height: 300px; }
}

/* Lighting editorial trial: independent of the recoverable staggered gallery. */
#lighting .lighting-projects:has(.lighting-editorial),
#lighting .lighting-projects:has(.lighting-editorial-empty) { display: block; width: 100%; max-width: 1200px; }
.lighting-editorial { display: grid; grid-template-columns: minmax(0,.32fr) minmax(0,.68fr); gap: clamp(40px,3vw,60px); }
.lighting-brand-index { display: flex; flex-direction: column; align-self: start; gap: 12px; max-height: 480px; overflow-y: auto; }
.lighting-index-button { display: grid; grid-template-columns: 26px minmax(0,1fr); gap: 12px; padding: 12px 0 12px 12px; border: 0; border-left: 1px solid transparent; background: none; color: #777; text-align: left; cursor: pointer; }
.lighting-index-button[aria-pressed="true"] { border-left-color: #111; color: #111; }
.lighting-index-number { padding-top: 5px; font: 10px/1.6 "DM Mono",monospace; }
.lighting-index-name { display: block; font: 400 clamp(18px,1.968vw,26.24px)/1.3 Georgia,"Noto Serif SC",serif; overflow-wrap: anywhere; }
.lighting-index-description { display: block; margin-top: 7px; font: 12px/1.8 "Noto Serif SC",serif; color: #777; }
.lighting-preview-stage { min-width: 0; display: grid; }
.lighting-preview-panel { grid-area: 1 / 1; min-width: 0; }
.lighting-preview-panel[hidden] { display: none; }
.lighting-preview-heading { height: 76px; }
.lighting-preview-heading p { margin: 0; font: 10px/1.6 "DM Mono",monospace; letter-spacing: .1em; color: #777; }
.lighting-preview-heading h3 { margin: 7px 0 0; font: 400 clamp(18px,1.968vw,26.24px)/1.3 Georgia,"Noto Serif SC",serif; overflow-wrap: anywhere; }
.lighting-preview-shots { display: flex; align-items: center; gap: 16px; height: 360px; min-width: 0; }
#lighting .lighting-editorial-photo { display: flex; flex: 0 1 auto; min-width: 0; width: max-content; max-width: calc((100% - 16px)/2); max-height: 100%; aspect-ratio: auto; background: none; }
#lighting .lighting-editorial-photo img { width: auto; height: auto; max-width: 100%; max-height: 360px; object-fit: contain; aspect-ratio: auto; filter: none; transition: none; }
#lighting .lighting-editorial-photo::after { content: none; }
#lighting .lighting-editorial-photo:hover img { transform: none; filter: none; }
.lighting-preview-footer { padding: 0; background: transparent; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #777; font: 12px/1.8 "Noto Serif SC",serif; }
.lighting-open-album { flex-shrink: 0; padding: 8px 0; border: 0; background: none; color: #111; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.lighting-index-button:focus-visible, .lighting-open-album:focus-visible, .lighting-editorial-photo:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.lighting-editorial-empty { padding: 40px 0; color: #777; text-align: center; }
@media (max-width: 1099px) {
  .lighting-editorial { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .lighting-brand-index { flex-direction: row; max-height: none; overflow-x: auto; padding: 4px; gap: 20px; }
  .lighting-index-button { flex: 0 0 auto; max-width: 260px; padding: 8px 0; border-left: 0; border-bottom: 1px solid transparent; }
  .lighting-index-button[aria-pressed="true"] { border-bottom-color: #111; }
  .lighting-preview-shots { height: 320px; }
  #lighting .lighting-editorial-photo img { max-height: 320px; }
}
@media (max-width: 767px) {
  .lighting-editorial { gap: 18px; }
  .lighting-preview-heading { height: 64px; }
  .lighting-preview-shots { height: 280px; gap: 12px; }
  #lighting .lighting-editorial-photo { max-width: calc((100% - 12px)/2); }
  #lighting .lighting-editorial-photo img { max-height: 280px; }
  .lighting-index-description { font-size: 11px; }
  .lighting-preview-footer { gap: 8px; font-size: 11px; }
}

#lighting .lighting-preview-shots.is-sized .lighting-editorial-photo { flex: 0 0 auto; max-width: none; }
#lighting .lighting-preview-shots.is-sized .lighting-editorial-photo img { width: 100%; height: auto; }

#lighting .lighting-editorial-photo.gallery-reveal { opacity: 1; transform: none; transition: none; }
#lighting .lighting-editorial-photo.is-unavailable { min-width: 120px; min-height: 160px; }

/* Lighting center mode: dedicated layer, product carousel remains unchanged. */
.lighting-center-mode .lighting-index-button { color: #999; transition: color 180ms ease; }
.lighting-center-mode .lighting-index-button:hover { color: #444; }
.lighting-center-mode .lighting-index-button[aria-pressed="true"] { color: #111; }
.lighting-center-mode .lighting-index-button[aria-pressed="true"] .lighting-index-name { font-weight: 500; }
.lighting-center-mode .lighting-index-description { color: inherit; }
.lighting-center-panel { grid-area: 1 / 1; min-width: 0; animation: lighting-brand-enter 180ms ease-out; }
.lighting-center-panel[hidden], .lighting-center-slide[hidden], .lighting-center-controls button[hidden] { display: none; }
.lighting-center-carousel { height: 360px; position: relative; overflow: hidden; isolation: isolate; touch-action: pan-y pinch-zoom; }
#lighting .lighting-center-slide { position: absolute; left: 50%; top: 50%; transform: translate(calc(-50% + var(--lighting-offset,0px)),-50%); display: block; padding: 0; border: 0; margin: 0; max-width: 68%; height: 100%; width: max-content; background: #fff; cursor: pointer; text-decoration: none; }
#lighting .lighting-center-slide img { display: block; width: 100%; height: 100%; object-fit: contain; filter: none; }
#lighting .lighting-center-slide[data-position="current"] { z-index: 2; cursor: zoom-in; }
#lighting .lighting-center-slide:not([data-position="current"]) { z-index: 1; opacity: .7; visibility: hidden; }
#lighting .lighting-center-carousel[data-ready="true"] .lighting-center-slide { visibility: visible; }
.lighting-center-controls { display: flex; min-height: 56px; align-items: center; justify-content: center; gap: 20px; }
.lighting-center-controls button { width: 44px; height: 44px; padding: 0; border: 0; background: none; color: #111; cursor: pointer; font-size: 20px; }
.lighting-center-count { min-width: 64px; text-align: center; font: 11px/1.6 "DM Mono",monospace; color: #777; }
.lighting-center-carousel:focus-visible, .lighting-center-slide:focus-visible, .lighting-center-controls button:focus-visible { outline: 2px solid #111; outline-offset: -3px; }
@keyframes lighting-brand-enter { from { opacity: .55; } to { opacity: 1; } }
@media (max-width: 1099px) {
  .lighting-center-mode .lighting-index-button { border-left: 1px solid transparent; padding-left: 10px; }
  .lighting-center-mode .lighting-index-button[aria-pressed="true"] { border-left-color: #111; border-bottom-color: transparent; }
  .lighting-center-carousel { height: 320px; }
}
@media (max-width: 767px) { .lighting-center-carousel { height: 280px; } }
@media (prefers-reduced-motion: reduce) {
  .lighting-center-panel { animation: none; }
  .lighting-center-mode .lighting-index-button { transition: none; }
}

/* Lighting desktop visual tuning: mobile/tablet and brand selector stay unchanged. */
@media (min-width: 1100px) {
  .lighting-center-carousel { height: 440px; }
  #lighting .lighting-center-slide { max-width: 72%; }
  #lighting .lighting-center-slide[data-position="current"] { opacity: 1; }
  #lighting .lighting-center-slide:not([data-position="current"]) { opacity: .68; }
}

/* Lighting phone-only refinement: preserve tablet and desktop compositions. */
@media (max-width: 767px) {
  .lighting-center-mode .lighting-brand-index { min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; gap: 16px; }
  .lighting-center-mode .lighting-index-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; max-width: none; min-height: 44px; padding: 6px 10px; white-space: nowrap; }
  .lighting-center-mode .lighting-index-number { padding-top: 0; }
  .lighting-center-mode .lighting-index-name { white-space: nowrap; overflow-wrap: normal; }
  .lighting-center-mode .lighting-index-description { display: none; }
  .lighting-center-mode .lighting-preview-heading { height: 32px; }
  .lighting-center-mode .lighting-preview-heading h3 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .lighting-center-mode .lighting-center-carousel { height: 320px; }
  #lighting .lighting-center-mode .lighting-center-slide { max-width: 72%; }
  #lighting .lighting-center-mode .lighting-center-slide:not([data-position="current"]) { opacity: .68; }
}

/* Compact phone brand indicator; fixed geometry in both selection states. */
@media (max-width: 600px) {
  #lighting .lighting-center-mode .lighting-index-button[aria-pressed="true"] { border-left-color: transparent; }
  #lighting .lighting-center-mode .lighting-index-name { position: relative; }
  #lighting .lighting-center-mode .lighting-index-name::after { content: ""; position: absolute; top: calc(100% + 7px); left: 0; width: 85%; height: 2px; background: #111; opacity: 0; pointer-events: none; }
  #lighting .lighting-center-mode .lighting-index-button[aria-pressed="true"] .lighting-index-name::after { opacity: 1; }
}

/* Phase 1 usability: preserve established visual layouts. */
#lighting .lighting-center-mode .lighting-index-button:not([aria-pressed="true"]) { color: #666; }
#lighting .lighting-center-mode .lighting-index-button:not([aria-pressed="true"]):hover { color: #444; }
@media (max-width: 767px) {
  /* Enlarge the hit area without changing the 35x28px icon box or its position. */
  .site-header .menu-button::before { content: ""; position: absolute; width: 44px; height: 44px; left: 50%; top: 50%; transform: translate(-50%,-50%); background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-foreground .reveal { opacity: 1; transform: none; transition: none; }
}

/* Optional video details stay separate from the media and native controls. */
.video-dialog { overflow-y: auto; }
.video-dialog[open] { grid-template-rows: auto minmax(min(180px,30svh),1fr); grid-auto-rows: auto; }
.video-dialog .video-close { position: fixed; }
.video-details { width: min(100%,900px); justify-self: center; max-height: min(24svh,12rem); overflow-y: auto; overscroll-behavior: contain; overflow-wrap: anywhere; }
.video-details[hidden], .video-details p[hidden] { display: none; }
.video-details p { margin: 0; }
.video-project-meta { color: #bbb; font: 12px/1.7 "Noto Serif SC",serif; }
.video-description { color: #ddd; font: 13px/1.8 "Noto Serif SC",serif; white-space: pre-wrap; }
.video-project-meta:not([hidden]) + .video-description:not([hidden]) { margin-top: 8px; }
.video-details:focus-visible { outline: 1px solid #aaa; outline-offset: 2px; }

.video-dialog h2 { min-width: 0; overflow-wrap: anywhere; }
