:root {
  --bg: #f7f7f4;
  --ink: #111111;
  --muted: #666666;
  --line: rgba(17, 17, 17, 0.16);
  --accent: #667064;
  --soft: #ececea;
  --soft-2: #deded9;
  --font-body: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-heading: "Arial Narrow", "Aptos Narrow", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* 2026 portfolio direction: WIND cover, open navigation, vertical work index */
:root {
  --bg: #d8d8d6;
  --ink: #19100f;
  --muted: rgba(25, 16, 15, .62);
  --line: rgba(25, 16, 15, .2);
  --accent: #a92222;
  --brand-blue: #6274a7;
  --brand-blue-dark: #4f6092;
  --paper: #efefec;
  --soft: #d8d8d6;
  --soft-2: #cfcfcb;
}

body { background: var(--bg); color: var(--ink); }
body[data-route="home"] { overflow: hidden; }

.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, auto) auto;
  align-items: start;
  gap: clamp(20px, 4vw, 72px);
  width: 100%;
  margin: 0;
  padding: 28px 30px 16px;
  color: var(--ink);
  font-size: clamp(16px, 1.65vw, 25px);
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
  transition: color 180ms ease;
}
.identity {
  display: grid;
  gap: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 720;
  line-height: .9;
}
.nav {
  display: contents;
  color: var(--ink);
}
.nav a {
  color: var(--ink);
  font-weight: 620;
  transition: color 180ms ease;
}
.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}
.lang-toggle {
  justify-self: end;
  border: 0;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.home-cover {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 56svh 44svh;
}
.home-blue {
  position: relative;
  overflow: hidden;
  background: var(--brand-blue);
}
.wind-mark {
  position: absolute;
  left: clamp(44px, 17vw, 340px);
  bottom: -18px;
  width: clamp(340px, 42vw, 720px);
  height: clamp(260px, 32vw, 520px);
}
.wind-slash {
  position: absolute;
  left: 31%;
  bottom: 24%;
  width: 16px;
  height: 120px;
  background: var(--ink);
  border-radius: 50%;
}
.wind-line {
  position: absolute;
  left: 58%;
  top: 12%;
  bottom: -20%;
  width: 3px;
  background: rgba(25,16,15,.75);
}
.wind-mark strong {
  position: absolute;
  left: 40%;
  bottom: 18%;
  color: var(--accent);
  font-size: clamp(52px, 8vw, 128px);
  font-weight: 780;
  transform: rotate(-42deg);
  letter-spacing: 0;
}
.home-ground {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.line-art {
  position: absolute;
  left: -2vw;
  top: 10%;
  width: 48vw;
  height: 66%;
  color: var(--brand-blue);
  opacity: .9;
}
.line-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.home-cover-copy {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 120px);
  bottom: clamp(30px, 5vw, 84px);
  width: min(560px, 40vw);
}
.home-cover-copy h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(34px, 4.8vw, 78px);
  font-weight: 430;
  line-height: .95;
  letter-spacing: 0;
}
.home-cover-copy p {
  margin: 0;
  color: rgba(25, 16, 15, .68);
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.65;
}

.work-index-page {
  min-height: 100vh;
  padding: clamp(150px, 18vh, 220px) 30px 110px;
}
.work-index-head {
  display: grid;
  grid-template-columns: minmax(160px, .72fr) minmax(0, 1.28fr);
  gap: 30px;
  margin-bottom: 32px;
}
.work-index-head h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(32px, 3vw, 50px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: 0;
}
.work-index-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.work-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 30px;
}
.work-index-item a {
  display: block;
}
.work-index-item figure {
  margin: 0;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  background: var(--brand-blue-dark);
}
.work-index-item img {
  filter: grayscale(1) contrast(.92) brightness(.88);
  transition: filter 180ms ease, transform 180ms ease;
}
.work-index-item a:hover img {
  filter: grayscale(.1) contrast(1.02) brightness(1);
  transform: scale(1.012);
}
.work-index-caption {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0 20px;
}
.work-index-caption span {
  color: var(--accent);
  font-size: 14px;
}
.work-index-caption h2 {
  margin: 0 0 3px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}
.work-index-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.about-resume-page {
  display: grid;
  grid-template-columns: minmax(260px, .48fr) minmax(0, 1.52fr);
  gap: clamp(40px, 6vw, 90px);
  width: min(1420px, calc(100% - 60px));
  margin: 0 auto;
  padding: clamp(150px, 18vh, 220px) 0 120px;
}
.about-intro {
  position: sticky;
  top: 126px;
  align-self: start;
}
.about-intro p {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
}
.about-intro h1 {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: clamp(34px, 4vw, 68px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: 0;
}
.about-intro > span {
  display: block;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.7;
}
.about-contact {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: var(--ink);
  font-size: 14px;
}
.experience-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.experience-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.experience-row time {
  color: var(--accent);
  font-size: 13px;
}
.experience-row h2 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
.experience-row p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.experience-tags span {
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
}

.case-study-page {
  padding-top: 104px;
}
.case-hero-showcase {
  border-radius: 0;
}

@media (max-width: 900px) {
  body[data-route="home"] { overflow: auto; }
  .site-header {
    position: sticky;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding: 18px 20px;
    background: rgba(216,216,214,.92);
  }
  .identity {
    grid-column: 1 / -1;
    font-size: 24px;
  }
  .nav {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .lang-toggle {
    position: absolute;
    top: 18px;
    right: 20px;
  }
  .home-cover {
    grid-template-rows: 48svh auto;
  }
  .home-ground {
    min-height: 52svh;
  }
  .wind-mark {
    left: 10vw;
    width: 78vw;
  }
  .home-cover-copy {
    right: 24px;
    bottom: 28px;
    width: min(520px, calc(100% - 48px));
  }
  .line-art {
    width: 78vw;
  }
  .work-index-page {
    padding: 64px 20px 90px;
  }
  .work-index-head,
  .work-index-grid,
  .about-resume-page,
  .experience-row {
    grid-template-columns: 1fr;
  }
  .about-resume-page {
    width: calc(100% - 40px);
    padding: 70px 0 90px;
  }
  .about-intro {
    position: static;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); }
body[data-route="home"] { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
#app { min-height: 100vh; }

.site-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 40px;
  width: min(1320px, calc(100% - 160px));
  margin: 0 auto;
  padding: 42px 0 28px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.identity { font-weight: 300; }
.nav { display: flex; gap: 26px; color: var(--muted); }
.nav a, .home-index a { transition: color 180ms ease; }
.nav a:hover, .home-index a:hover { color: var(--ink); }
.nav-priority { color: var(--ink) !important; font-weight: 360; }
.lang-toggle { border: 0; border-bottom: 1px solid var(--line); padding: 4px 0; background: transparent; color: var(--muted); cursor: pointer; }

.home-page { width: min(1700px, calc(100% - clamp(48px, 6vw, 160px))); margin: 0 auto; }
.home-reference {
  display: grid;
  grid-template-columns: clamp(260px, 19vw, 340px) 1fr;
  gap: clamp(34px, 4vw, 64px);
  height: 100svh;
  min-height: 680px;
  padding: clamp(26px, 3vw, 44px) 0;
  overflow: hidden;
}
.home-sidebar { position: sticky; top: clamp(26px, 3vw, 44px); align-self: start; min-height: auto; padding-top: 2px; }
.home-title {
  display: inline-block;
  margin-bottom: 42px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-index {
  counter-reset: home-nav;
  display: grid;
  gap: 6px;
  margin: 0 0 52px;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.55vw, 24px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: .08em;
}
.home-index li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  padding: 0;
  border: 0;
}
.home-index li::before {
  counter-increment: home-nav;
  content: counter(home-nav) ".";
}
.home-gallery { min-width: 0; height: 100%; overflow: hidden; }
.home-gallery h1 {
  margin: 0 0 38px;
  font-family: var(--font-heading);
  font-size: clamp(34px, 2.8vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: .06em;
}
.home-gallery > p { max-width: 760px; margin: -22px 0 28px; color: var(--muted); font-size: 16px; line-height: 1.68; }
.home-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 38px; padding: 0; list-style: none; }
.home-proof li { min-height: 76px; padding: 14px 14px 12px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.42; background: rgba(255, 255, 255, .28); }
.home-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.3vw, 34px);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  padding: 0;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.home-column { min-height: 0; overflow: hidden; }
.home-track {
  display: grid;
  gap: clamp(22px, 2.3vw, 34px);
  will-change: transform;
  animation: homeSlideUp 54s linear infinite;
}
.home-column:nth-child(2) .home-track {
  animation-name: homeSlideDown;
  animation-duration: 62s;
  transform: translateY(-50%);
}
.home-column:nth-child(3) .home-track {
  animation-duration: 70s;
}
.home-masonry:hover .home-track { animation-play-state: paused; }
.home-image { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--soft); }
.home-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 42%, rgba(17, 17, 17, .52) 100%);
  opacity: .92;
  pointer-events: none;
}
.home-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform 220ms ease, filter 220ms ease; }
.home-image:hover img { transform: scale(1.015); filter: saturate(1); }
.home-image-caption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 10px;
  color: #ffffff;
}
.home-image-caption strong {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.35vw, 24px);
  font-weight: 360;
  line-height: 1.1;
  letter-spacing: .04em;
}
.home-image-caption em {
  justify-self: start;
  padding: 7px 12px 8px;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  line-height: 1;
  background: rgba(17, 17, 17, .12);
  backdrop-filter: blur(10px);
}
.home-image-0-0, .home-image-2-0 { aspect-ratio: 1.58 / 1; }
.home-image-0-1, .home-image-2-1 { aspect-ratio: .86 / 1; }
.home-image-0-2, .home-image-1-1, .home-image-2-2 { aspect-ratio: 1.35 / 1; }
.home-image-1-0 { aspect-ratio: .82 / 1; }
.archive-line { display: none; }

@keyframes homeSlideUp {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes homeSlideDown {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-track {
    animation: none;
    transform: none !important;
  }
}

@media (max-width: 1280px) {
  .home-page { width: calc(100% - 56px); }
  .home-reference { grid-template-columns: 260px 1fr; gap: 34px; min-height: 640px; }
  .home-title { font-size: 20px; }
  .home-index { font-size: clamp(24px, 2.3vw, 32px); }
  .home-image-caption { left: 18px; right: 18px; bottom: 18px; }
  .home-image-caption strong { font-size: clamp(17px, 1.5vw, 22px); }
}

.page { width: min(1320px, calc(100% - 160px)); margin: 0 auto; padding: 96px 0 120px; }
.section-title { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: 72px; }
.section-title p { grid-column: 1 / 2; margin: 12px 0 0; color: var(--accent); font-size: 13px; }
.section-title h1 {
  grid-column: 2 / 7;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: .08em;
}
.section-title span { grid-column: 7 / 12; align-self: end; color: var(--muted); font-size: 17px; line-height: 1.65; }

.image-frame { margin: 0; background: var(--soft); overflow: hidden; }
.image-frame img { filter: saturate(.92); transition: transform 220ms ease, filter 220ms ease; }
a:hover .image-frame img { transform: scale(1.015); filter: saturate(1); }
.empty-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  border: 1px solid var(--line);
  background:
    linear-gradient(33deg, transparent calc(50% - 1px), rgba(17, 17, 17, .12) 50%, transparent calc(50% + 1px)),
    var(--soft);
}
.empty-frame span { max-width: 150px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.45; }

.case-index { display: grid; gap: 32px; }
.case-card { border-top: 1px solid var(--line); }
.case-card:last-child { border-bottom: 1px solid var(--line); }
.case-card a {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: 40px;
  padding: 34px 0;
  align-items: start;
}
.case-card-copy { display: grid; grid-template-columns: 88px 1fr; gap: 12px 24px; }
.case-number { grid-row: span 4; color: var(--accent); font-size: 13px; line-height: 1.45; }
.case-card h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.3vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: .06em;
}
.case-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.case-card em { display: block; margin: 2px 0 10px; color: var(--ink); font-size: 14px; font-style: normal; line-height: 1.68; }
.case-card dl { grid-column: 2; display: grid; gap: 14px; margin: 8px 0 0; }
.case-card dl div { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.case-card dt { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.case-card dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.case-card-image { aspect-ratio: 1.52 / 1; border-radius: 8px; }

.case-study-page {
  width: 100%;
  padding: 0 0 120px;
}
.case-hero-showcase {
  position: relative;
  width: min(1760px, calc(100% - 24px));
  min-height: 640px;
  height: calc(100vh - 126px);
  margin: 0 auto 84px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--soft);
}
.case-hero-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 17, 17, 0) 38%, rgba(17, 17, 17, .42) 100%);
  pointer-events: none;
}
.case-hero-showcase .image-frame {
  position: absolute;
  inset: 0;
}
.case-hero-showcase img {
  filter: saturate(.95);
}
.case-hero-showcase h1 {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 52%;
  width: min(980px, calc(100% - 48px));
  margin: 0;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: clamp(46px, 6.8vw, 108px);
  font-weight: 300;
  line-height: .98;
  text-align: center;
  letter-spacing: .1em;
}
.case-study-copy,
.case-image-grid {
  width: min(1320px, calc(100% - 160px));
  margin: 0 auto;
}
.case-personal-note {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-bottom: 68px;
}
.case-personal-note h2 {
  grid-column: 1 / 5;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.3vw, 38px);
  font-weight: 300;
  line-height: 1.18;
  letter-spacing: .08em;
}
.case-personal-note p {
  grid-column: 5 / 12;
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.82;
}
.case-text-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 82px 88px;
  margin-bottom: 86px;
}
.case-text-grid article { min-width: 0; }
.case-text-grid h2 {
  margin: 0 0 22px;
  font-family: var(--font-heading);
  font-size: clamp(26px, 2.2vw, 36px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: .08em;
}
.case-text-grid p {
  max-width: 760px;
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.78;
}
.case-solution { grid-column: 1 / -1; }
.case-image-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  align-items: start;
}
.case-image-grid .image-frame {
  border-radius: 14px;
  background: var(--soft);
}
.case-image-grid .grid-large {
  grid-column: 1 / 7;
  grid-row: span 2;
  aspect-ratio: .78 / 1;
}
.case-image-grid .grid-tall {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: .72 / 1;
}
.case-image-grid .grid-wide {
  grid-column: span 6;
  aspect-ratio: 1.56 / 1;
}
.case-image-grid .grid-small {
  grid-column: span 3;
  aspect-ratio: 1 / .86;
}

.project-hero-copy { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-bottom: 42px; }
.project-hero-copy p { grid-column: 1 / 2; margin: 10px 0 0; color: var(--accent); }
.project-hero-copy h1 {
  grid-column: 2 / 9;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.05;
  font-weight: 300;
  letter-spacing: .08em;
}
.project-hero-copy span { grid-column: 9 / 13; align-self: end; color: var(--muted); line-height: 1.5; }
.hero-image { aspect-ratio: 16 / 9; border-radius: 8px; }
.project-overview { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; padding: 72px 0; }
.project-info { grid-column: 1 / 5; display: grid; gap: 24px; }
.project-info span { display: block; margin-bottom: 8px; color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.project-info p { margin: 0; color: var(--muted); line-height: 1.5; }
.overview-copy { grid-column: 6 / 13; }
.overview-copy h2, .case-module-copy span, .about-side h2 { margin: 0 0 16px; font-family: var(--font-heading); font-size: 15px; font-weight: 300; letter-spacing: .08em; }
.overview-copy p, .case-module-copy p, .about-narrative p, .about-side p, .study-detail-copy em { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.78; font-style: normal; }

.case-modules { display: grid; gap: 56px; padding-bottom: 72px; }
.case-module {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: end;
}
.case-module-image { grid-column: 1 / 8; aspect-ratio: 1.38 / 1; border-radius: 8px; }
.case-module-copy { grid-column: 8 / 13; padding-bottom: 8px; }
.case-module:nth-child(even) .case-module-image { grid-column: 6 / 13; grid-row: 1; }
.case-module:nth-child(even) .case-module-copy { grid-column: 1 / 6; grid-row: 1; }
.case-module:nth-child(2) .case-module-image,
.case-module:nth-child(4) .case-module-image { aspect-ratio: .96 / 1; }

.detail-gallery, .study-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.detail-gallery .image-frame { aspect-ratio: 1.2 / 1; border-radius: 8px; }
.detail-gallery .wide, .study-gallery .wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.next-project { display: flex; justify-content: space-between; gap: 24px; margin-top: 86px; padding-top: 28px; border-top: 1px solid var(--line); }
.next-project span { color: var(--muted); }
.next-project strong { font-family: var(--font-heading); font-size: clamp(26px, 3.2vw, 46px); font-weight: 300; line-height: 1.08; letter-spacing: .08em; }

.back-to-works {
  position: fixed;
  z-index: 30;
  left: 24px;
  bottom: 18px;
  display: grid;
  width: 188px;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(247, 247, 244, .92);
  backdrop-filter: blur(14px);
}
.back-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.back-thumbs img { aspect-ratio: 1.35 / 1; width: 100%; height: auto; object-fit: cover; filter: saturate(.88); }
.back-to-works strong { font-size: 14px; line-height: 1.2; text-align: center; }
.back-to-works:hover img { filter: saturate(1); }

.study-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.study-card a { display: block; }
.study-card .image-frame { aspect-ratio: 4 / 5; }
.study-card h2 { margin: 18px 0 8px; font-family: var(--font-heading); font-size: 25px; font-weight: 300; line-height: 1.16; letter-spacing: .08em; }
.study-card p { margin: 0 0 10px; color: var(--muted); line-height: 1.45; }
.study-card em { display: block; color: var(--muted); font-size: 14px; font-style: normal; line-height: 1.5; }
.study-detail-copy { max-width: 760px; margin-bottom: 56px; }
.study-detail-copy p { margin: 0 0 18px; color: var(--accent); }
.study-detail-copy h1 { margin: 0 0 20px; font-family: var(--font-heading); font-size: clamp(42px, 5.8vw, 78px); line-height: 1.05; font-weight: 300; letter-spacing: .08em; }
.study-detail-copy span { display: block; margin-bottom: 26px; color: var(--muted); }
.study-gallery .image-frame { aspect-ratio: 1 / 1; }
.empty-study-gallery { margin-bottom: 32px; }

.text-link { display: inline-block; margin-top: 48px; color: var(--ink); border-bottom: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; }
.about-narrative { grid-column: 2 / 8; display: grid; gap: 28px; }
.about-side { grid-column: 9 / 13; }
.about-side h2 { margin-top: 36px; }
.about-side h2:first-child { margin-top: 0; }
ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; color: var(--muted); }
li { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list a, .contact-list div { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--accent); }
.contact-list strong { font-family: var(--font-heading); font-size: clamp(20px, 3vw, 38px); font-weight: 300; line-height: 1.14; letter-spacing: .06em; overflow-wrap: anywhere; }

[data-edit-id] { position: relative; }
[data-edit-id]::before {
  content: attr(data-edit-id);
  position: absolute;
  z-index: 20;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border: 1px solid rgba(17, 17, 17, .18);
  border-radius: 999px;
  background: rgba(247, 247, 244, .84);
  color: rgba(17, 17, 17, .62);
  font-family: var(--font-body);
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  pointer-events: none;
}
.home-title[data-edit-id]::before,
.home-index[data-edit-id]::before,
.home-gallery h1[data-edit-id]::before,
.home-gallery p[data-edit-id]::before,
.home-proof[data-edit-id]::before,
.section-title[data-edit-id]::before,
.case-hero-showcase[data-edit-id]::before,
.case-personal-note[data-edit-id]::before,
.case-text-grid[data-edit-id]::before,
.case-image-grid[data-edit-id]::before,
.project-hero-copy[data-edit-id]::before,
.overview-copy[data-edit-id]::before,
.case-modules[data-edit-id]::before,
.about-narrative[data-edit-id]::before,
.about-side[data-edit-id]::before,
.contact-list[data-edit-id]::before {
  top: -22px;
  left: 0;
}
.back-to-works[data-edit-id]::before { top: -22px; left: 0; }

[data-edit-id]::before {
  display: none !important;
}

@media (max-width: 900px) {
  body[data-route="home"] { overflow: auto; }
  .site-header, .home-page, .page { width: calc(100% - 48px); }
  .site-header { grid-template-columns: 1fr auto; gap: 18px; padding: 28px 0 20px; }
  .nav { grid-column: 1 / -1; flex-direction: column; gap: 12px; align-items: flex-start; }
  .home-reference { grid-template-columns: 1fr; gap: 36px; height: auto; min-height: 0; padding: 18px 0 44px; overflow: visible; }
  .home-sidebar { position: static; min-height: auto; }
  .home-title { margin-bottom: 28px; font-size: 24px; line-height: 1.08; }
  .home-index { margin-bottom: 28px; font-size: clamp(22px, 7vw, 28px); line-height: 1.18; }
  .home-gallery h1 { margin-bottom: 28px; }
  .home-gallery > p { margin: -12px 0 28px; }
  .home-proof { grid-template-columns: 1fr; }
  .home-gallery { height: auto; overflow: visible; }
  .home-masonry { grid-template-columns: 1fr; gap: 24px; height: 68svh; min-height: 520px; max-height: 720px; padding-top: 0; padding-bottom: 0; }
  .home-column:nth-child(n+2) { display: none; }
  .home-track { gap: 24px; animation-duration: 28s; }
  .home-image,
  .home-image-0-0,
  .home-image-0-1,
  .home-image-0-2,
  .home-image-1-0,
  .home-image-1-1,
  .home-image-2-0,
  .home-image-2-1,
  .home-image-2-2 { aspect-ratio: 1.25 / 1; }
  .home-image-caption { left: 18px; right: 18px; bottom: 18px; gap: 8px; }
  .home-image-caption strong { font-size: clamp(20px, 6.6vw, 26px); line-height: 1.04; }
  .home-image-caption em { font-size: 12px; }
  .page { padding: 64px 0 90px; }
  .section-title, .project-hero-copy, .project-overview, .about-layout { display: block; }
  .section-title h1, .project-hero-copy h1 { margin: 18px 0; }
  .section-title span, .project-hero-copy span { display: block; max-width: 620px; }
  .case-card a { grid-template-columns: 1fr; gap: 20px; }
  .case-card-copy { grid-template-columns: 1fr; }
  .case-number, .case-card dl { grid-column: auto; }
  .case-card dl div { grid-template-columns: 1fr; gap: 6px; }
  .case-study-page { padding-bottom: 90px; }
  .case-hero-showcase {
    width: calc(100% - 24px);
    min-height: 520px;
    height: 68vh;
    margin-bottom: 54px;
    border-radius: 16px;
  }
  .case-hero-showcase h1 {
    font-size: clamp(40px, 13vw, 68px);
    line-height: .94;
  }
  .case-study-copy,
  .case-image-grid {
    width: calc(100% - 48px);
  }
  .case-personal-note,
  .case-text-grid {
    display: block;
  }
  .case-personal-note { margin-bottom: 54px; }
  .case-personal-note h2 { margin-bottom: 18px; font-size: clamp(26px, 7vw, 34px); }
  .case-personal-note p { font-size: 15px; line-height: 1.78; }
  .case-text-grid h2 { font-size: clamp(27px, 8vw, 36px); }
  .case-text-grid p { font-size: 15px; line-height: 1.76; }
  .case-text-grid article { margin-bottom: 44px; }
  .case-text-grid { margin-bottom: 54px; }
  .case-image-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-image-grid .grid-large,
  .case-image-grid .grid-tall,
  .case-image-grid .grid-wide,
  .case-image-grid .grid-small {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1.05 / 1;
  }
  .project-info, .overview-copy, .about-narrative, .about-side { grid-column: auto; }
  .project-info { margin-bottom: 44px; }
  .case-module,
  .case-module:nth-child(even) {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .case-module-image,
  .case-module-copy,
  .case-module:nth-child(even) .case-module-image,
  .case-module:nth-child(even) .case-module-copy {
    grid-column: auto;
    grid-row: auto;
  }
  .case-module-image,
  .case-module:nth-child(2) .case-module-image,
  .case-module:nth-child(4) .case-module-image { aspect-ratio: 1.15 / 1; }
  .study-grid, .detail-gallery, .study-gallery { grid-template-columns: 1fr; gap: 36px; }
  .detail-gallery .wide, .study-gallery .wide { aspect-ratio: 1.15 / 1; }
  .next-project, .contact-list a, .contact-list div { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .back-to-works { left: 16px; bottom: 14px; width: 148px; padding: 9px; }
  .back-to-works strong { font-size: 12px; }
}

/* Final visual direction overrides. Keep this block last. */
body {
  background: var(--bg);
  color: var(--ink);
}
body[data-route="home"] {
  overflow: hidden;
}
.site-header {
  position: fixed;
  z-index: 60;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, auto) auto;
  align-items: start;
  gap: clamp(20px, 4vw, 72px);
  width: 100%;
  margin: 0;
  padding: 28px 30px 16px;
  color: var(--ink);
  font-size: clamp(16px, 1.65vw, 25px);
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
  background: transparent;
}
.identity {
  display: grid;
  gap: 0;
  color: var(--ink);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 720;
  line-height: .9;
  letter-spacing: 0;
  text-transform: none;
}
.nav {
  display: contents;
  color: var(--ink);
}
.nav a {
  color: var(--ink);
  font-weight: 620;
  letter-spacing: 0;
  text-transform: none;
  transition: color 180ms ease;
}
.nav a:hover,
.nav a.is-active {
  color: var(--accent);
}
.lang-toggle {
  justify-self: end;
  border: 0;
  padding: 2px 0;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}
.home-cover {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 56svh 44svh;
}
.home-blue {
  position: relative;
  overflow: hidden;
  background: var(--brand-blue);
}
.wind-mark {
  position: absolute;
  left: clamp(44px, 17vw, 340px);
  bottom: -18px;
  width: clamp(340px, 42vw, 720px);
  height: clamp(260px, 32vw, 520px);
}
.wind-slash {
  position: absolute;
  left: 31%;
  bottom: 24%;
  width: 16px;
  height: 120px;
  background: var(--ink);
  border-radius: 50%;
}
.wind-line {
  position: absolute;
  left: 58%;
  top: 12%;
  bottom: -20%;
  width: 3px;
  background: rgba(25,16,15,.75);
}
.wind-mark strong {
  position: absolute;
  left: 40%;
  bottom: 18%;
  color: var(--accent);
  font-size: clamp(52px, 8vw, 128px);
  font-weight: 780;
  transform: rotate(-42deg);
  letter-spacing: 0;
}
.home-ground {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.line-art {
  position: absolute;
  left: -2vw;
  top: 10%;
  width: 48vw;
  height: 66%;
  color: var(--brand-blue);
  opacity: .9;
}
.line-art svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.home-cover-copy {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 7vw, 120px);
  bottom: clamp(30px, 5vw, 84px);
  width: min(560px, 40vw);
}
.home-cover-copy h1 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(34px, 4.8vw, 78px);
  font-weight: 430;
  line-height: .95;
  letter-spacing: 0;
}
.home-cover-copy p {
  margin: 0;
  color: rgba(25, 16, 15, .68);
  font-size: clamp(13px, 1.1vw, 17px);
  line-height: 1.65;
}
.work-index-page {
  min-height: 100vh;
  padding: clamp(150px, 18vh, 220px) 30px 110px;
}
.work-index-head {
  display: grid;
  grid-template-columns: minmax(160px, .72fr) minmax(0, 1.28fr);
  gap: 30px;
  margin-bottom: 32px;
}
.work-index-head h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(32px, 3vw, 50px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: 0;
}
.work-index-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}
.work-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 30px;
}
.work-index-item figure {
  margin: 0;
  aspect-ratio: 1.52 / 1;
  overflow: hidden;
  background: var(--brand-blue-dark);
}
.work-index-item img {
  filter: grayscale(1) contrast(.92) brightness(.88);
  transition: filter 180ms ease, transform 180ms ease;
}
.work-index-item a:hover img {
  filter: grayscale(.1) contrast(1.02) brightness(1);
  transform: scale(1.012);
}
.work-index-caption {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0 20px;
}
.work-index-caption span {
  color: var(--accent);
  font-size: 14px;
}
.work-index-caption h2 {
  margin: 0 0 3px;
  font-family: var(--font-body);
  font-size: clamp(18px, 1.6vw, 26px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}
.work-index-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.about-resume-page {
  display: grid;
  grid-template-columns: minmax(260px, .48fr) minmax(0, 1.52fr);
  gap: clamp(40px, 6vw, 90px);
  width: min(1420px, calc(100% - 60px));
  margin: 0 auto;
  padding: clamp(150px, 18vh, 220px) 0 120px;
}
.about-intro {
  position: sticky;
  top: 126px;
  align-self: start;
}
.about-intro p {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  text-transform: uppercase;
}
.about-intro h1 {
  margin: 0 0 24px;
  font-family: var(--font-body);
  font-size: clamp(34px, 4vw, 68px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: 0;
}
.about-intro > span {
  display: block;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 1.7;
}
.experience-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.experience-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.experience-row time {
  color: var(--accent);
  font-size: 13px;
}
.experience-row h2 {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
}
.experience-row p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}
.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.experience-tags span {
  border: 1px solid var(--line);
  padding: 5px 8px;
  color: var(--muted);
  font-size: 12px;
}
.about-contact {
  display: grid;
  gap: 16px;
  margin-top: 32px;
  color: var(--ink);
  font-size: 14px;
}
.about-contact div {
  display: grid;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.about-contact span {
  color: var(--accent);
  font-size: 12px;
}
.about-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.about-contact a {
  overflow-wrap: anywhere;
}
.case-study-page {
  padding-top: 104px;
}
.case-hero-showcase {
  border-radius: 0;
}

@media (max-width: 900px) {
  body[data-route="home"] {
    overflow: auto;
  }
  .site-header {
    position: sticky;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    padding: 18px 20px;
    background: rgba(216,216,214,.92);
  }
  .identity {
    grid-column: 1 / -1;
    font-size: 24px;
  }
  .nav {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 12px 18px;
  }
  .lang-toggle {
    position: absolute;
    top: 18px;
    right: 20px;
  }
  .home-cover {
    grid-template-rows: 48svh auto;
  }
  .home-ground {
    min-height: 52svh;
  }
  .wind-mark {
    left: 10vw;
    width: 78vw;
  }
  .line-art {
    width: 78vw;
  }
  .home-cover-copy {
    right: 24px;
    bottom: 28px;
    width: min(520px, calc(100% - 48px));
  }
  .work-index-page {
    padding: 64px 20px 90px;
  }
  .work-index-head,
  .work-index-grid,
  .about-resume-page,
  .experience-row {
    grid-template-columns: 1fr;
  }
  .about-resume-page {
    width: calc(100% - 40px);
    padding: 70px 0 90px;
  }
  .about-intro {
    position: static;
  }
}

/* Three focused updates: header, home typography, personal studies. */
.site-header {
  min-height: 112px;
  align-items: start;
  padding: 28px 30px;
}

.identity {
  max-width: 300px;
  color: var(--ink);
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: .88;
}

.nav {
  padding-top: 4px;
}

.nav a {
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1;
}

.nav a.is-active {
  color: var(--accent);
}

.home-type-cover {
  position: relative;
}

.home-type-cover .home-blue {
  min-height: 46svh;
}

.home-type-cover .home-ground {
  min-height: 54svh;
}

.home-type-cover .wind-mark {
  opacity: .92;
}

.home-type-cover .line-art {
  left: 0;
  bottom: 11svh;
  width: min(43vw, 720px);
  color: var(--brand-blue);
  opacity: .9;
}

.home-type {
  position: absolute;
  z-index: 5;
  inset: clamp(142px, 17vh, 210px) 30px auto;
  display: grid;
  grid-template-columns: minmax(180px, .28fr) minmax(0, .72fr);
  gap: clamp(34px, 6vw, 112px);
  pointer-events: none;
}

.home-type p {
  align-self: end;
  margin: 0 0 clamp(120px, 18vh, 230px);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-type h1 {
  max-width: 1040px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(76px, 12.2vw, 198px);
  font-weight: 760;
  line-height: .82;
  letter-spacing: 0;
}

.home-type span {
  grid-column: 2;
  max-width: 680px;
  margin-top: clamp(10px, 2vw, 26px);
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
}

.study-index-page,
.study-project-page {
  width: min(1420px, calc(100% - 60px));
  margin: 0 auto;
  padding: clamp(150px, 18vh, 220px) 0 120px;
}

.study-index-head,
.study-project-hero {
  display: grid;
  grid-template-columns: minmax(160px, .32fr) minmax(0, 1.68fr);
  gap: 30px;
  margin-bottom: clamp(48px, 7vw, 92px);
}

.study-index-head p,
.study-project-hero p {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
}

.study-index-head h1,
.study-project-hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(54px, 9vw, 148px);
  font-weight: 740;
  line-height: .9;
  letter-spacing: 0;
}

.study-index-head span,
.study-project-hero span {
  grid-column: 2;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.65;
}

.study-list {
  border-top: 1px solid var(--line);
}

.study-list-item a {
  display: grid;
  grid-template-columns: 70px minmax(220px, .45fr) minmax(0, .9fr) 90px;
  gap: 26px;
  align-items: baseline;
  min-height: 118px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.study-list-item span {
  color: var(--accent);
  font-size: 13px;
}

.study-list-item h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(30px, 3.2vw, 54px);
  font-weight: 730;
  line-height: .96;
  letter-spacing: 0;
}

.study-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.study-list-item em {
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  font-style: normal;
  line-height: 1.6;
}

.study-list-item strong {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
}

.study-list-item a:hover h2,
.study-list-item a:hover strong {
  color: var(--accent);
}

.study-project-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
}

.study-project-layout aside {
  display: grid;
  gap: 18px;
  align-content: start;
  color: var(--accent);
  font-size: 13px;
}

.study-placeholder-stack {
  display: grid;
  gap: 18px;
}

.study-placeholder-stack figure {
  min-height: clamp(280px, 42vw, 620px);
  margin: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(27deg, transparent calc(50% - .5px), var(--line) calc(50% - .5px), var(--line) calc(50% + .5px), transparent calc(50% + .5px)),
    rgba(239, 239, 236, .22);
}

@media (max-width: 900px) {
  .site-header {
    min-height: auto;
  }

  .home-type-cover .home-blue {
    min-height: 38svh;
  }

  .home-type-cover .home-ground {
    min-height: 62svh;
  }

  .home-type {
    inset: 150px 20px auto;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-type p {
    margin: 0;
  }

  .home-type h1 {
    font-size: clamp(66px, 18vw, 112px);
  }

  .home-type span {
    grid-column: 1;
    max-width: 360px;
  }

  .home-type-cover .line-art {
    width: 84vw;
    bottom: 9svh;
  }

  .study-index-page,
  .study-project-page {
    width: calc(100% - 40px);
    padding: 88px 0 90px;
  }

  .study-index-head,
  .study-project-hero,
  .study-list-item a,
  .study-project-layout {
    grid-template-columns: 1fr;
  }

  .study-index-head span,
  .study-project-hero span {
    grid-column: 1;
  }

  .study-list-item a {
    gap: 12px;
    min-height: 0;
    padding: 26px 0;
  }

  .study-list-item strong {
    justify-self: start;
  }
}

/* Personal studies rhythm correction: closer to the earlier work-page scale. */
.study-index-page {
  padding-top: clamp(150px, 18vh, 205px);
}

.study-index-head {
  grid-template-columns: minmax(150px, .22fr) minmax(0, .78fr);
  margin-bottom: clamp(54px, 6vw, 82px);
}

.study-index-head h1 {
  max-width: 1080px;
  font-size: clamp(58px, 7.2vw, 118px);
  line-height: .94;
}

.study-index-head span {
  max-width: 760px;
  margin-top: 4px;
}

.study-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
}

.study-list-item a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-content: start;
  min-height: 250px;
  padding: 28px 0 34px;
}

.study-list-item span {
  display: block;
}

.study-list-item h2 {
  max-width: 360px;
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: .98;
}

.study-list-item em {
  max-width: 390px;
  font-size: 16px;
}

.study-list-item strong {
  justify-self: start;
  align-self: end;
}

@media (max-width: 900px) {
  .study-index-head h1 {
    font-size: clamp(50px, 14vw, 86px);
  }

  .study-list {
    grid-template-columns: 1fr;
  }

  .study-list-item a {
    min-height: 0;
  }
}

/* Home cleanup: keep only the blue field and the main title. */
body[data-route="home"] {
  background: var(--brand-blue);
}

body[data-route="home"] .site-header {
  background: transparent;
}

.home-type-cover {
  display: block;
  min-height: 100svh;
  background: var(--brand-blue);
}

.home-type-cover .home-blue,
.home-type-cover .home-ground,
.home-type-cover .wind-mark,
.home-type-cover .line-art {
  display: none !important;
}

.home-type-cover .home-type {
  position: relative;
  inset: auto;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(260px, .25fr) minmax(0, .75fr);
  align-items: center;
  gap: clamp(30px, 6vw, 110px);
  padding: clamp(116px, 14vh, 168px) 30px 54px;
  pointer-events: none;
}

.home-type-cover .home-type h1 {
  grid-column: 2;
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(78px, 11vw, 184px);
  line-height: .84;
}

.home-type-cover .home-type p,
.home-type-cover .home-type span {
  display: none !important;
}

@media (max-width: 900px) {
  .home-type-cover .home-type {
    min-height: 100svh;
    grid-template-columns: 1fr;
    padding: 130px 20px 46px;
  }

  .home-type-cover .home-type h1 {
    grid-column: 1;
    font-size: clamp(66px, 18vw, 112px);
  }
}

/* Keep the home split background: blue top, gray bottom, without extra marks. */
body[data-route="home"] {
  background: var(--bg);
}

.home-type-cover {
  background: linear-gradient(
    to bottom,
    var(--brand-blue) 0,
    var(--brand-blue) 56svh,
    var(--bg) 56svh,
    var(--bg) 100%
  );
}

/* Final home: Yoshirotten-inspired staggered framework wall. */
body[data-route="home"] {
  overflow: auto;
  background:
    linear-gradient(to bottom, var(--brand-blue) 0 24svh, var(--bg) 24svh 100%);
}

body[data-route="home"] .site-header {
  background: transparent;
}

.home-yoshi-wall {
  position: relative;
  min-height: auto;
  padding: 112px 28px 86px;
}

.home-statement {
  position: absolute;
  z-index: 1;
  left: 28px;
  top: 27svh;
  width: min(240px, 18vw);
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}

.home-wall-layout {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 28px;
  gap: 18px 28px;
}

.home-wall-item {
  min-width: 0;
  height: 100%;
}

.home-wall-item a {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 9px;
  height: 100%;
}

.home-wall-item:nth-child(1) {
  grid-column: 1 / span 5;
  grid-row: 1 / span 14;
}

.home-wall-item:nth-child(2) {
  grid-column: 6 / span 6;
  grid-row: 2 / span 12;
}

.home-wall-item:nth-child(3) {
  grid-column: 1 / span 7;
  grid-row: 15 / span 13;
}

.home-wall-item:nth-child(4) {
  grid-column: 8 / span 4;
  grid-row: 16 / span 12;
}

.home-wall-item:nth-child(5) {
  grid-column: 1 / span 4;
  grid-row: 29 / span 16;
}

.home-wall-item:nth-child(6) {
  grid-column: 5 / span 4;
  grid-row: 30 / span 17;
}

.home-wall-item:nth-child(7) {
  grid-column: 9 / span 4;
  grid-row: 29 / span 15;
}

.home-wall-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f3f3f1;
  border: 1px solid rgba(25, 16, 15, .08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .36) inset;
}

.home-wall-caption {
  display: grid;
  gap: 2px;
  padding-left: 2px;
}

.home-wall-caption h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(13px, .95vw, 17px);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-wall-caption h2 span {
  color: var(--accent);
  font-size: 10px;
  margin-right: 5px;
}

.home-wall-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

.home-wall-item a:hover .home-wall-frame {
  background: #fff;
}

.home-wall-item a:hover h2 {
  color: var(--accent);
}

.home-mini-title {
  position: fixed;
  z-index: 19;
  left: 28px;
  bottom: 24px;
  margin: 0;
  max-width: 360px;
  color: rgba(25, 16, 15, .68);
  font-family: var(--font-body);
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: 0;
  pointer-events: none;
}

.home-mini-title strong {
  color: var(--accent);
}

@media (max-width: 900px) {
  body[data-route="home"] {
    background: linear-gradient(to bottom, var(--brand-blue) 0 22svh, var(--bg) 22svh 100%);
  }

  .home-yoshi-wall {
    padding: 94px 20px 76px;
  }

  .home-statement,
  .home-mini-title {
    position: static;
    width: auto;
    max-width: 360px;
    margin: 0 0 22px;
  }

  .home-wall-layout {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 28px;
  }

  .home-wall-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .home-wall-item a {
    min-height: 360px;
  }
}

/* Home zoom and right-edge alignment fix. */
:root {
  --home-safe-gutter: clamp(20px, 1.55vw, 28px);
  --home-stage-width: min(1680px, calc(100% - clamp(40px, 5%, 96px)));
}

body[data-route="home"] {
  overflow-x: hidden;
}

body[data-route="home"] .site-header {
  box-sizing: border-box;
  width: var(--home-stage-width);
  max-width: 100%;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  margin: 0 auto;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(3, max-content) max-content;
  gap: clamp(22px, 4vw, 72px);
  align-items: start;
  background: transparent;
}

body[data-route="home"] .identity {
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: .92;
}

body[data-route="home"] .nav {
  display: contents;
  padding-top: 0;
}

body[data-route="home"] .nav a {
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1;
  white-space: nowrap;
}

body[data-route="home"] .lang-toggle {
  position: static;
  justify-self: end;
  padding-top: 1px;
  white-space: nowrap;
}

body[data-route="home"] .home-yoshi-wall {
  box-sizing: border-box;
  width: var(--home-stage-width);
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 0;
  padding-left: 0;
}

body[data-route="home"] .home-wall-layout {
  max-width: 100%;
}

@media (max-width: 700px) {
  body[data-route="home"] .site-header {
    position: sticky;
    left: auto;
    transform: none;
    width: 100%;
    min-height: auto;
    padding: 18px 20px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    background: linear-gradient(to bottom, rgba(98, 116, 167, .98), rgba(98, 116, 167, .86));
  }

  body[data-route="home"] .nav,
  body[data-route="home"] .lang-toggle {
    display: none !important;
  }

  body[data-route="home"] .identity {
    font-size: clamp(18px, 7vw, 28px);
    line-height: .9;
  }

  body[data-route="home"] .home-yoshi-wall {
    width: 100%;
    padding: 78px 20px 76px;
  }

  body[data-route="home"] .home-statement,
  body[data-route="home"] .home-mini-title {
    position: static;
    width: auto;
    max-width: 280px;
    margin: 0 0 22px;
  }

  body[data-route="home"] .home-wall-layout {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 28px;
  }

  body[data-route="home"] .home-wall-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-route="home"] .home-wall-item a {
    min-height: 0;
  }
}

/* Home layout mechanism: fixed-ratio images, 12-column rhythm, archive preview. */
body[data-route="home"] {
  background: linear-gradient(to bottom, var(--brand-blue) 0 24%, var(--bg) 24% 100%);
  overflow-x: hidden;
}

body[data-route="home"] .home-yoshi-wall {
  width: var(--home-stage-width);
  max-width: 1680px;
  margin: 0 auto;
  padding: 112px 0 92px;
  min-height: auto;
}

body[data-route="home"] .home-statement {
  position: static;
  width: 220px;
  max-width: 100%;
  margin: 0 0 28px;
  font-size: 12px;
  line-height: 1.35;
}

body[data-route="home"] .home-selected-work,
body[data-route="home"] .home-archive {
  position: relative;
}

body[data-route="home"] .home-archive {
  margin-top: 72px;
}

body[data-route="home"] .home-section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 18px;
  color: var(--accent);
  text-transform: uppercase;
}

body[data-route="home"] .home-section-head span {
  grid-column: 1 / span 3;
  font-size: 12px;
  line-height: 1.2;
}

body[data-route="home"] .home-section-head p {
  grid-column: 5 / span 4;
  margin: 0;
  color: rgba(25, 16, 15, .62);
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
}

body[data-route="home"] .home-wall-layout,
body[data-route="home"] .home-archive-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-items: start;
  gap: 28px;
}

body[data-route="home"] .home-wall-item,
body[data-route="home"] .home-archive-card {
  min-width: 0;
  height: auto;
}

body[data-route="home"] .home-wall-item a,
body[data-route="home"] .home-archive-card a {
  display: block;
  height: auto;
  min-height: 0;
}

body[data-route="home"] .home-wall-item:nth-child(1) {
  grid-column: 1 / span 5;
  margin-top: 0;
}

body[data-route="home"] .home-wall-item:nth-child(2) {
  grid-column: 6 / span 7;
  margin-top: 36px;
}

body[data-route="home"] .home-wall-item:nth-child(3) {
  grid-column: 1 / span 7;
  margin-top: 18px;
}

body[data-route="home"] .home-wall-item:nth-child(4) {
  grid-column: 8 / span 5;
  margin-top: 64px;
}

body[data-route="home"] .home-wall-frame,
body[data-route="home"] .home-archive-frame {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #f3f3f1;
  border: 1px solid rgba(25, 16, 15, .08);
  box-shadow: none;
}

body[data-route="home"] .home-wall-frame {
  aspect-ratio: 4 / 3;
}

body[data-route="home"] .home-wall-item:nth-child(1) .home-wall-frame {
  aspect-ratio: 4 / 5;
}

body[data-route="home"] .home-wall-item:nth-child(2) .home-wall-frame,
body[data-route="home"] .home-wall-item:nth-child(3) .home-wall-frame {
  aspect-ratio: 16 / 9;
}

body[data-route="home"] .home-wall-item:nth-child(4) .home-wall-frame {
  aspect-ratio: 5 / 4;
}

body[data-route="home"] .home-wall-frame img,
body[data-route="home"] .home-archive-frame img {
  display: block;
  width: 100%;
  height: 100%;
  filter: saturate(.92);
  transition: transform 220ms ease, filter 220ms ease;
}

body[data-route="home"] .home-wall-frame.is-cover img,
body[data-route="home"] .home-archive-frame img {
  object-fit: cover;
  object-position: center;
}

body[data-route="home"] .home-wall-frame.is-contain img {
  object-fit: contain;
  object-position: center;
}

body[data-route="home"] .home-wall-item a:hover img,
body[data-route="home"] .home-archive-card a:hover img {
  transform: scale(1.015);
  filter: saturate(1);
}

body[data-route="home"] .home-wall-caption,
body[data-route="home"] .home-archive-caption {
  display: block;
  padding: 10px 0 0;
}

body[data-route="home"] .home-wall-caption h2,
body[data-route="home"] .home-archive-caption h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 760;
  letter-spacing: 0;
}

body[data-route="home"] .home-wall-caption h2 {
  font-size: clamp(16px, 1.35vw, 24px);
  line-height: 1.02;
}

body[data-route="home"] .home-wall-caption h2 span,
body[data-route="home"] .home-archive-caption span {
  color: var(--accent);
  font-size: 11px;
  margin-right: 6px;
}

body[data-route="home"] .home-wall-caption p,
body[data-route="home"] .home-archive-caption p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

body[data-route="home"] .home-archive-card:nth-child(1) {
  grid-column: 1 / span 3;
}

body[data-route="home"] .home-archive-card:nth-child(2) {
  grid-column: 4 / span 3;
  margin-top: 26px;
}

body[data-route="home"] .home-archive-card:nth-child(3) {
  grid-column: 7 / span 3;
}

body[data-route="home"] .home-archive-card:nth-child(4) {
  grid-column: 10 / span 3;
  margin-top: 42px;
}

body[data-route="home"] .home-archive-frame {
  aspect-ratio: 4 / 3;
}

body[data-route="home"] .home-archive-card:nth-child(2) .home-archive-frame,
body[data-route="home"] .home-archive-card:nth-child(4) .home-archive-frame {
  aspect-ratio: 3 / 4;
}

body[data-route="home"] .home-archive-caption h3 {
  font-size: clamp(13px, .95vw, 17px);
  line-height: 1.08;
}

body[data-route="home"] .home-mini-title {
  position: static;
  max-width: 360px;
  margin: 76px 0 0;
  font-size: clamp(18px, 1.8vw, 30px);
}

@media (min-width: 1880px) {
  body[data-route="home"] .home-wall-layout,
  body[data-route="home"] .home-archive-grid,
  body[data-route="home"] .home-section-head {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  body[data-route="home"] {
    background: linear-gradient(to bottom, var(--brand-blue) 0 22%, var(--bg) 22% 100%);
  }

  body[data-route="home"] .home-yoshi-wall {
    width: 100%;
    padding: 86px 20px 76px;
  }

  body[data-route="home"] .home-section-head,
  body[data-route="home"] .home-wall-layout,
  body[data-route="home"] .home-archive-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body[data-route="home"] .home-section-head span,
  body[data-route="home"] .home-section-head p,
  body[data-route="home"] .home-wall-item:nth-child(n),
  body[data-route="home"] .home-archive-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  body[data-route="home"] .home-wall-item a,
  body[data-route="home"] .home-archive-card a {
    min-height: 0;
  }

  body[data-route="home"] .home-wall-frame,
  body[data-route="home"] .home-wall-item:nth-child(n) .home-wall-frame,
  body[data-route="home"] .home-archive-frame,
  body[data-route="home"] .home-archive-card:nth-child(n) .home-archive-frame {
    aspect-ratio: 4 / 3;
  }

  body[data-route="home"] .home-archive {
    margin-top: 56px;
  }
}

/* Structure standard from portfolio instruction file. */
.site-container {
  box-sizing: border-box;
  width: min(1680px, calc(100% - clamp(48px, 6vw, 112px)));
  margin: 0 auto;
}

.media,
.placeholder-media {
  width: 100%;
  aspect-ratio: var(--ratio, 16 / 9);
  margin: 0;
  overflow: hidden;
  background: #f4f4f1;
  border: 1px solid rgba(25, 16, 15, .08);
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fit-cover img,
.is-cover img {
  object-fit: cover;
  object-position: center;
}

.fit-contain img,
.is-contain img {
  object-fit: contain;
  object-position: center;
}

.placeholder-media {
  display: grid;
  place-items: center;
  color: rgba(25, 16, 15, .46);
  font-size: 12px;
  line-height: 1.2;
}

.work-structure-page,
.studies-structure-page,
.about-structure-page,
.detail-template-page,
.archive-detail-page,
.study-detail-template {
  padding-top: clamp(132px, 15vh, 188px);
  padding-bottom: 96px;
}

.work-structure-hero,
.detail-hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.work-structure-hero h1,
.detail-hero h1 {
  grid-column: 1 / span 5;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(56px, 7vw, 126px);
  font-weight: 760;
  line-height: .92;
  letter-spacing: 0;
}

.work-structure-hero h1 span,
.detail-hero h1 span {
  font-size: .72em;
}

.work-structure-hero > div,
.detail-hero > div {
  grid-column: 1 / span 6;
}

.work-structure-hero > p,
.detail-hero > dl {
  grid-column: 7 / span 5;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.detail-hero p,
.detail-hero em {
  display: block;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
  text-transform: uppercase;
}

.detail-hero dl {
  display: grid;
  gap: 14px;
}

.detail-hero dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-hero dt,
.detail-hero dd {
  margin: 0;
}

.detail-hero dt {
  color: var(--accent);
  font-size: 12px;
}

.anchor-nav,
.archive-filters,
.study-category-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin: 0 0 72px;
  color: var(--muted);
  font-size: 13px;
}

.anchor-nav a {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.structure-section-header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.structure-section-header > div {
  grid-column: 1 / span 5;
}

.structure-section-header h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(34px, 4.8vw, 88px);
  font-weight: 760;
  line-height: .95;
  letter-spacing: 0;
}

.structure-section-header p,
.structure-section-header span {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.structure-section-header > span {
  grid-column: 7 / span 4;
  margin-top: 6px;
}

.selected-work-section,
.commercial-archive-section {
  scroll-margin-top: 120px;
}

.selected-work-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 42px 28px;
  align-items: start;
  margin-bottom: 86px;
}

.project-card {
  min-width: 0;
}

.project-card a,
.archive-card a,
.study-structure-card a {
  display: block;
}

.selected-work-grid .project-card:nth-child(1) {
  grid-column: 1 / span 6;
}

.selected-work-grid .project-card:nth-child(2) {
  grid-column: 7 / span 6;
  margin-top: 54px;
}

.selected-work-grid .project-card:nth-child(3) {
  grid-column: 1 / span 5;
}

.selected-work-grid .project-card:nth-child(4) {
  grid-column: 7 / span 6;
  margin-top: 42px;
}

.card-number,
.archive-card-copy em {
  color: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.project-card-media,
.archive-card-media,
.study-card-media {
  margin-top: 10px;
}

.project-card-copy,
.archive-card-copy,
.study-structure-card div {
  padding-top: 12px;
}

.project-card-copy h3,
.archive-card-copy h3,
.study-structure-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(20px, 2vw, 34px);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: 0;
}

.project-card-copy strong,
.archive-card-copy strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: clamp(14px, 1.1vw, 18px);
  line-height: 1.15;
}

.project-card-copy p,
.project-card-copy em,
.archive-card-copy p,
.study-structure-card p {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.archive-description {
  max-width: 360px;
  margin: -10px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.archive-filters span {
  border-bottom: 1px solid rgba(25, 16, 15, .26);
  padding-bottom: 3px;
}

.archive-grid,
.studies-structure-grid,
.archive-detail-images,
.detail-output-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.archive-card {
  grid-column: span 3;
}

.archive-card-copy h3 {
  font-size: clamp(14px, 1.05vw, 18px);
}

.archive-card-copy strong,
.archive-card-copy p,
.archive-card-copy em {
  font-size: 11px;
}

.detail-hero-media {
  margin-bottom: 64px;
}

.detail-copy-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  margin: 64px 0;
}

.detail-copy-grid article {
  grid-column: span 4;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.detail-copy-grid h2,
.detail-output h2,
.about-structure-grid h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.detail-copy-grid p,
.about-structure-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.detail-output-media,
.archive-detail-media {
  grid-column: span 3;
}

.archive-detail-images {
  margin: 36px 0 58px;
}

.studies-structure-grid .study-structure-card {
  grid-column: span 3;
}

.about-structure-intro {
  margin-bottom: 56px;
}

.about-structure-intro p {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

.about-structure-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 7vw, 124px);
  font-weight: 760;
  line-height: .9;
}

.about-structure-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.about-structure-grid article {
  grid-column: span 6;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.about-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-chip-list span {
  border: 1px solid var(--line);
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
}

body[data-route="home"] .home-wall-layout .project-card:nth-child(1) {
  grid-column: 1 / span 5;
}

body[data-route="home"] .home-wall-layout .project-card:nth-child(2) {
  grid-column: 6 / span 7;
  margin-top: 36px;
}

body[data-route="home"] .home-wall-layout .project-card:nth-child(3) {
  grid-column: 1 / span 6;
  margin-top: 18px;
}

body[data-route="home"] .home-wall-layout .project-card:nth-child(4) {
  grid-column: 8 / span 5;
  margin-top: 64px;
}

body[data-route="home"] .home-archive-grid .archive-card:nth-child(n) {
  grid-column: span 3;
  margin-top: 0;
}

body[data-route="home"] .home-archive-grid .archive-card:nth-child(2),
body[data-route="home"] .home-archive-grid .archive-card:nth-child(4) {
  margin-top: 34px;
}

@media (max-width: 900px) {
  .site-container {
    width: calc(100% - 40px);
  }

  .work-structure-page,
  .studies-structure-page,
  .about-structure-page,
  .detail-template-page,
  .archive-detail-page,
  .study-detail-template {
    padding-top: 96px;
  }

  .work-structure-hero,
  .detail-hero,
  .structure-section-header,
  .selected-work-grid,
  .archive-grid,
  .studies-structure-grid,
  .archive-detail-images,
  .detail-output-grid,
  .detail-copy-grid,
  .about-structure-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-structure-hero > div,
  .work-structure-hero > p,
  .detail-hero > div,
  .detail-hero > dl,
  .structure-section-header > div,
  .structure-section-header > span,
  .selected-work-grid .project-card:nth-child(n),
  .archive-card,
  .studies-structure-grid .study-structure-card,
  .detail-copy-grid article,
  .detail-output-media,
  .archive-detail-media,
  .about-structure-grid article,
  body[data-route="home"] .home-wall-layout .project-card:nth-child(n),
  body[data-route="home"] .home-archive-grid .archive-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  .work-structure-hero h1,
  .detail-hero h1,
  .about-structure-intro h1 {
    font-size: clamp(48px, 14vw, 82px);
  }

  .project-card-copy h3 {
    font-size: 28px;
  }

  .archive-grid,
  .studies-structure-grid {
    gap: 34px;
  }
}

/* Resume-backed About page. */
.about-structure-intro > span {
  display: block;
  max-width: 620px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.25;
}

.about-hero-meta {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-top: 28px;
}

.about-hero-meta strong {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.12;
}

.about-hero-meta span,
.about-hero-meta em {
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 20px);
  font-style: normal;
  line-height: 1.45;
}

.about-resume-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.about-profile {
  grid-column: 1 / span 4;
  display: grid;
  gap: 34px;
}

.about-profile article,
.about-experience-list {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.about-profile h2,
.about-experience-list h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.about-profile p,
.about-experience-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.about-profile p + p {
  margin-top: 12px;
}

.about-capability-list {
  display: grid;
  gap: 18px;
}

.about-capability-item {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.about-capability-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.about-capability-item h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.about-capability-item strong {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.about-capability-item p {
  margin-top: 8px;
}

.about-experience-list {
  grid-column: 5 / span 8;
}

.about-experience-row {
  display: grid;
  grid-template-columns: minmax(116px, 1fr) minmax(0, 4fr);
  gap: 28px;
  border-top: 1px solid var(--line);
  padding: 24px 0 28px;
}

.about-experience-row:first-of-type {
  margin-top: 8px;
}

.about-experience-row time {
  color: var(--accent);
  font-size: 13px;
  line-height: 1.25;
}

.about-experience-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 2vw, 36px);
  line-height: 1.08;
}

.about-experience-row strong {
  display: block;
  margin: 6px 0 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.about-experience-row .about-chip-list {
  margin-top: 14px;
}

.about-section-subtitle {
  margin-top: 42px !important;
}

.about-profile .text-link {
  display: inline-block;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .about-resume-layout,
  .about-experience-row {
    grid-template-columns: 1fr;
  }

  .about-profile,
  .about-experience-list {
    grid-column: auto;
  }

  .about-experience-row {
    gap: 10px;
  }
}

/* Project detail templates and lightbox. */
.case-page,
.archive-detail {
  width: min(1680px, calc(100% - clamp(40px, 6vw, 112px)));
  margin: 0 auto;
  padding: clamp(118px, 14vh, 168px) 0 100px;
}

.case-hero,
.archive-detail__header {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: 36px;
  align-items: start;
}

.case-title,
.archive-detail__title {
  grid-column: 1 / span 6;
}

.case-title p,
.archive-detail__title p {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

.case-title h1,
.archive-detail__title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(56px, 6vw, 104px);
  line-height: .92;
  letter-spacing: 0;
}

.archive-detail__title h1 {
  font-size: clamp(42px, 4.8vw, 82px);
}

.case-title h1 span,
.archive-detail__title h1 span {
  display: inline-block;
  color: rgba(25, 16, 15, .58);
  font-size: .46em;
  line-height: 1.1;
}

.case-meta,
.archive-detail__meta {
  grid-column: 8 / span 4;
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
}

.case-meta div,
.archive-detail__meta div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.case-meta dt,
.case-meta dd,
.archive-detail__meta dt,
.archive-detail__meta dd {
  margin: 0;
}

.case-meta dt,
.archive-detail__meta dt {
  color: var(--accent);
  font-size: 12px;
}

.case-meta dd,
.archive-detail__meta dd {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.case-intro,
.archive-detail__overview {
  grid-column: 1 / span 7;
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 22px);
  line-height: 1.55;
}

.case-hero-media {
  grid-column: 1 / span 12;
  margin-top: 14px;
}

.case-page .media,
.archive-detail .media,
.study-detail-template .lightbox-media {
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
  cursor: zoom-in;
}

.case-page .media img,
.archive-detail .media img,
.study-detail-template .lightbox-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.case-hero-image.fit-cover img,
.fit-cover img {
  object-fit: cover;
}

.case-section {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 72px);
  row-gap: 28px;
  margin-top: clamp(84px, 10vw, 140px);
}

.case-section__text {
  grid-column: 1 / span 3;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.case-section__text span {
  color: var(--accent);
  font-size: 12px;
}

.case-section__text h2 {
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1.1;
}

.case-section__text p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.case-section__media {
  grid-column: 4 / span 9;
}

.case-image-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2vw, 36px);
  align-items: start;
}

.layout-full {
  grid-column: span 12;
}

.layout-half {
  grid-column: span 6;
}

.layout-third {
  grid-column: span 4;
}

.layout-narrow {
  grid-column: 3 / span 8;
}

.case-next {
  margin-top: clamp(84px, 10vw, 140px);
}

.archive-detail__header {
  margin-bottom: 72px;
}

.archive-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(42px, 5vw, 82px);
}

.archive-gallery__item {
  width: 100%;
}

.archive-gallery__item.layout-narrow {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.archive-detail__notes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
  margin-top: 72px;
}

.archive-detail__notes article {
  grid-column: span 6;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.archive-detail__notes h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.archive-detail__notes p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.archive-back-link {
  display: inline-block;
  margin-top: 46px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, .92);
}

.lightbox__image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.lightbox__close {
  top: 22px;
  right: 28px;
  font-size: 36px;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 54px;
  line-height: 1;
}

.lightbox__prev {
  left: 28px;
}

.lightbox__next {
  right: 28px;
}

.lightbox__counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

body.has-lightbox {
  overflow: hidden;
}

/* Manifest-driven portfolio roles. */
body[data-route="home"] .home-yoshi-wall {
  width: min(1680px, calc(100% - clamp(40px, 5vw, 96px)));
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 112px;
}

body[data-route="home"] .home-wall-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: clamp(22px, 2vw, 34px);
  align-items: start;
}

body[data-route="home"] .home-wall-item:nth-child(1) {
  grid-column: 1 / span 5;
  grid-row: auto;
}

body[data-route="home"] .home-wall-item:nth-child(2) {
  grid-column: 7 / span 6;
  grid-row: auto;
  margin-top: 42px;
}

body[data-route="home"] .home-wall-item:nth-child(3) {
  grid-column: 2 / span 6;
  grid-row: auto;
  margin-top: 18px;
}

body[data-route="home"] .home-wall-item:nth-child(4) {
  grid-column: 8 / span 4;
  grid-row: auto;
  margin-top: 62px;
}

body[data-route="home"] .home-wall-item:nth-child(5) {
  grid-column: 1 / span 4;
  grid-row: auto;
  margin-top: 18px;
}

body[data-route="home"] .home-wall-item:nth-child(6) {
  grid-column: 6 / span 6;
  grid-row: auto;
  margin-top: 36px;
}

body[data-route="home"] .home-wall-frame {
  aspect-ratio: var(--ratio, 4 / 3);
  height: auto;
}

body[data-route="home"] .home-wall-item:nth-child(1) .home-wall-frame {
  aspect-ratio: 4 / 3;
}

body[data-route="home"] .home-wall-item:nth-child(2) .home-wall-frame {
  aspect-ratio: 16 / 10;
}

body[data-route="home"] .home-wall-item:nth-child(3) .home-wall-frame {
  aspect-ratio: 1 / 1;
}

body[data-route="home"] .home-wall-item:nth-child(4) .home-wall-frame {
  aspect-ratio: 3 / 4;
}

body[data-route="home"] .home-wall-item,
body[data-route="home"] .home-wall-item a {
  height: auto;
}

body[data-route="home"] .home-wall-item a {
  display: block;
}

body[data-route="home"] .home-wall-frame.is-cover img {
  object-fit: cover;
  object-position: center;
}

body[data-route="home"] .home-wall-frame.is-contain img {
  object-fit: contain;
  object-position: center;
}

body[data-route="home"] .home-wall-caption h2 {
  font-size: clamp(12px, .9vw, 16px);
  line-height: 1.12;
}

body[data-route="home"] .home-wall-caption p,
body[data-route="home"] .home-mini-title {
  display: none;
}

body[data-route="home"] .home-archive,
body[data-route="home"] .home-study-entry,
body[data-route="home"] .home-about-entry {
  margin-top: clamp(64px, 7vw, 112px);
}

body[data-route="home"] .home-archive-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 28px);
}

body[data-route="home"] .home-archive-card {
  grid-column: span 3;
}

body[data-route="home"] .home-archive-card:nth-child(2n) {
  margin-top: 28px;
}

body[data-route="home"] .home-archive-frame {
  aspect-ratio: var(--ratio, 4 / 3);
  height: auto;
}

body[data-route="home"] .home-archive-frame img {
  object-fit: cover;
}

body[data-route="home"] .home-archive-caption h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: clamp(12px, .9vw, 16px);
  line-height: 1.12;
}

body[data-route="home"] .home-archive-caption p,
body[data-route="home"] .home-archive-caption strong,
body[data-route="home"] .home-archive-caption em {
  display: none;
}

body[data-route="home"] .home-study-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 1.6vw, 28px);
}

body[data-route="home"] .home-study-grid .study-structure-card {
  grid-column: span 4;
}

body[data-route="home"] .home-study-grid .study-structure-card p {
  display: none;
}

body[data-route="home"] .home-study-grid .study-structure-card h3 {
  font-size: clamp(12px, .9vw, 16px);
}

body[data-route="home"] .home-about-entry {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

body[data-route="home"] .home-about-entry a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink);
}

body[data-route="home"] .home-about-entry span {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
}

body[data-route="home"] .home-about-entry strong {
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1;
}

.selected-work-grid {
  gap: clamp(56px, 4vw, 72px) clamp(34px, 3vw, 48px);
}

.selected-work-grid .project-card:nth-child(n) {
  grid-column: span 6;
  margin-top: 0;
}

.project-card-media {
  aspect-ratio: 4 / 3;
}

.project-card-media.is-cover img {
  object-fit: cover;
  object-position: center;
}

.project-card-media.is-contain img {
  object-fit: contain;
  object-position: center;
}

.project-selected-003 .project-card-media.is-cover img,
.project-selected-003 .home-wall-frame.is-cover img {
  object-position: left center;
}

.project-card-copy h3 {
  font-size: clamp(18px, 1.35vw, 24px);
}

.project-card-copy em {
  display: none;
}

.archive-grid {
  gap: clamp(40px, 3vw, 48px) clamp(24px, 2vw, 32px);
}

.archive-card {
  grid-column: span 3;
}

.archive-card-media {
  aspect-ratio: 4 / 3;
}

.archive-card-media img {
  object-fit: cover;
}

.archive-card-copy h3 {
  font-size: clamp(12px, .82vw, 14px);
  line-height: 1.16;
}

.archive-card-copy {
  padding-top: 9px;
}

.archive-card-copy p,
.archive-card-copy strong {
  opacity: 0;
  transition: opacity 180ms ease;
}

.archive-card a:hover .archive-card-copy p,
.archive-card a:hover .archive-card-copy strong {
  opacity: 1;
}

.study-structure-card.is-placeholder {
  display: block;
}

.study-structure-card.is-placeholder .placeholder-media {
  background: #f7f7f4;
}

.case-hero-image {
  width: 100%;
}

.case-hero-image img {
  max-height: none;
  object-fit: contain;
}

.case-section-image {
  background: #f3f3ef;
}

.case-section-image img {
  object-fit: contain;
}

.archive-media-frame {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 40px;
  background: #f3f3ef;
}

.archive-media-frame .media {
  aspect-ratio: auto;
  border: 0;
  background: transparent;
}

.archive-media-frame img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.archive-media-frame.is-social {
  max-width: 860px;
}

.archive-media-frame.is-ecommerce {
  max-width: 960px;
}

.archive-media-frame.is-ecommerce img {
  max-height: none;
  object-fit: contain;
}

.archive-media-frame.is-structure {
  max-width: 1000px;
}

.archive-media-frame.is-structure img,
.archive-media-frame.fit-contain img,
.archive-detail .fit-contain img {
  object-fit: contain;
}

.archive-detail-media {
  max-width: 1180px;
  margin: 0 auto 96px;
  padding: 0;
  background: transparent;
  border: 0;
}

.archive-detail-media .media {
  aspect-ratio: auto;
  margin: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

.archive-detail-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.archive-detail-media.is-ecommerce,
.archive-detail-media.is-social,
.archive-detail-media.is-structure {
  max-width: 960px;
}

.archive-detail-media.is-ecommerce img,
.archive-detail-media.is-social img,
.archive-detail-media.is-structure img {
  object-fit: contain;
}

.lightbox__close {
  font-size: 0;
}

.lightbox__close::before {
  content: "X";
  font-size: 28px;
}

.lightbox__prev,
.lightbox__next {
  font-size: 0;
}

.lightbox__prev::before {
  content: "<";
  font-size: 42px;
}

.lightbox__next::before {
  content: ">";
  font-size: 42px;
}

@media (max-width: 768px) {
  .case-page,
  .archive-detail {
    width: calc(100% - 40px);
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .case-hero,
  .archive-detail__header,
  .case-section,
  .case-image-grid,
  .archive-detail__notes {
    grid-template-columns: 1fr;
  }

  .case-title,
  .case-meta,
  .case-intro,
  .case-hero-media,
  .case-section__text,
  .case-section__media,
  .archive-detail__title,
  .archive-detail__meta,
  .archive-detail__overview,
  .archive-detail__notes article,
  .layout-full,
  .layout-half,
  .layout-third,
  .layout-narrow {
    grid-column: 1;
  }

  .case-title h1 {
    font-size: clamp(42px, 12vw, 56px);
  }

  .archive-detail__title h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .lightbox__prev {
    left: 14px;
  }

  .lightbox__next {
    right: 14px;
  }
}

@media (max-width: 900px) {
  body[data-route="home"] .home-yoshi-wall {
    width: calc(100% - 40px);
    padding-left: 0;
    padding-right: 0;
  }

  body[data-route="home"] .home-wall-layout,
  body[data-route="home"] .home-archive-grid,
  body[data-route="home"] .home-study-grid,
  .selected-work-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  body[data-route="home"] .home-wall-item:nth-child(n),
  body[data-route="home"] .home-archive-card:nth-child(n),
  body[data-route="home"] .home-study-grid .study-structure-card,
  .selected-work-grid .project-card:nth-child(n),
  .archive-card {
    grid-column: auto;
    margin-top: 0;
  }

  .archive-media-frame {
    padding: 20px;
    margin-bottom: 42px;
  }
}

/* Final home/archive refinements from WIND Portfolio Update. */
body[data-route="home"] .home-wall-layout {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(30px, 3.2vw, 58px) clamp(28px, 3.6vw, 68px);
  align-items: start;
}

body[data-route="home"] .home-wall-item:nth-child(1) {
  grid-column: 1 / span 5;
  margin-top: 0;
}

body[data-route="home"] .home-wall-item:nth-child(2) {
  grid-column: 7 / span 5;
  margin-top: clamp(34px, 4vw, 64px);
}

body[data-route="home"] .home-wall-item:nth-child(3) {
  grid-column: 2 / span 5;
  margin-top: clamp(8px, 1.6vw, 24px);
}

body[data-route="home"] .home-wall-item:nth-child(4) {
  grid-column: 8 / span 4;
  margin-top: clamp(28px, 4vw, 58px);
}

body[data-route="home"] .home-wall-item:nth-child(n+5) {
  grid-column: span 5;
  margin-top: 0;
}

body[data-route="home"] .home-wall-frame,
body[data-route="home"] .home-wall-item:nth-child(n) .home-wall-frame {
  aspect-ratio: 4 / 3;
  height: auto;
}

body[data-route="home"] .home-wall-frame img {
  width: 100%;
  height: 100%;
}

body[data-route="home"] .home-wall-frame.is-cover img {
  object-fit: cover;
  object-position: center;
}

body[data-route="home"] .home-wall-frame.is-contain img {
  object-fit: contain;
  object-position: center;
}

body[data-route="home"] .home-archive {
  margin-top: clamp(84px, 9vw, 148px);
}

body[data-route="home"] .home-archive-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: clamp(38px, 4vw, 64px) clamp(34px, 4.6vw, 74px);
  align-items: start;
}

body[data-route="home"] .home-archive-card,
body[data-route="home"] .home-archive-card:nth-child(n) {
  grid-column: auto;
  margin-top: 0;
}

body[data-route="home"] .home-archive-frame,
body[data-route="home"] .home-archive-card:nth-child(n) .home-archive-frame {
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: transparent;
}

body[data-route="home"] .home-archive-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-route="home"] .home-archive-caption h3 {
  max-width: 100%;
  margin-top: 9px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.18;
  opacity: .64;
}

body[data-route="home"] .home-archive-card a:hover .home-archive-caption h3 {
  opacity: 1;
}

body[data-route="home"] .home-study-entry,
body[data-route="home"] .home-study-grid {
  display: none;
}

.archive-detail {
  padding-bottom: clamp(96px, 10vw, 150px);
}

.archive-detail__header {
  margin-bottom: clamp(62px, 7vw, 104px);
}

.archive-gallery {
  gap: clamp(58px, 7vw, 118px);
}

.archive-detail-media {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
}

.archive-detail-media .media {
  background: transparent;
  border: 0;
}

.archive-detail-media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}

.archive-detail-media.is-ecommerce,
.archive-detail-media.is-social,
.archive-detail-media.is-structure {
  max-width: 960px;
}

@media (max-width: 1200px) {
  body[data-route="home"] .home-archive-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body[data-route="home"] .home-wall-layout,
  body[data-route="home"] .home-archive-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  body[data-route="home"] .home-wall-item:nth-child(n),
  body[data-route="home"] .home-archive-card:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }

  body[data-route="home"] .home-wall-frame,
  body[data-route="home"] .home-wall-item:nth-child(n) .home-wall-frame {
    aspect-ratio: 4 / 3;
  }

  body[data-route="home"] .home-archive-frame,
  body[data-route="home"] .home-archive-card:nth-child(n) .home-archive-frame {
    aspect-ratio: 1 / 1;
  }

  .archive-gallery {
    gap: 42px;
  }
}

body[data-route="home"] .project-selected-003 .home-wall-frame.is-cover img,
.project-selected-003 .project-card-media.is-cover img {
  object-position: left center;
}

body[data-route="home"] .project-selected-001 .home-wall-frame.is-cover img,
.project-selected-001 .project-card-media.is-cover img {
  object-position: 86% center;
}

.project-archive-015 .archive-card-media img,
body[data-route="home"] .project-archive-015 .home-archive-frame img {
  object-position: 72% center;
}

.project-archive-011 .archive-card-media img,
body[data-route="home"] .project-archive-011 .home-archive-frame img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.95);
  transform-origin: center 36%;
}

body[data-route="home"] .project-archive-011.home-archive-card a:hover img {
  transform: scale(1.98);
  filter: saturate(1);
}

.project-archive-017 .archive-card-media img,
body[data-route="home"] .project-archive-017 .home-archive-frame img {
  object-position: 78% center;
}

/* Mobile header visibility fix: keep navigation usable on narrow screens. */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header,
  body[data-route="home"] .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    transform: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: flex-start;
    gap: 20px 16px;
    padding: 22px 20px;
    z-index: 80;
  }

  .identity,
  body[data-route="home"] .identity {
    grid-column: 1 / -1;
    flex: 0 0 auto;
    max-width: 100%;
  }

  .nav,
  body[data-route="home"] .nav {
    display: flex !important;
    grid-column: 1 / 2;
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px 18px;
    padding-top: 0;
  }

  .nav a,
  body[data-route="home"] .nav a {
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .lang-toggle,
  body[data-route="home"] .lang-toggle {
    display: inline-flex !important;
    grid-column: 2 / 3;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .site-header,
  body[data-route="home"] .site-header {
    gap: 16px 12px;
    padding: 20px 16px;
  }

  .nav,
  body[data-route="home"] .nav {
    gap: 10px 14px;
  }

  .nav a,
  .lang-toggle,
  body[data-route="home"] .nav a,
  body[data-route="home"] .lang-toggle {
    font-size: 13px;
  }
}
