@import url("./styles-patch-v21.css");
@import url("./styles-v22.css");
@import url("./styles-v23.css?v=234");
@import url("./styles-v24.css?v=241");
@import url("./styles-v25.css?v=251");
@import url("./styles-v26.css?v=260");
@import url("./styles-v27.css?v=271");
@import url("./styles-v28.css?v=280");
@import url("./styles-v29.css?v=290");
@import url("./styles-v30.css?v=300");
@import url("./styles-v31.css?v=310");
@import url("./styles-v32.css?v=320");
@import url("./styles-v33.css?v=330");
@import url("./styles-v34.css?v=352");
@import url("./styles-v35.css?v=353");
@import url("./styles-v36-mobile.css?v=354");
@import url("./styles-v37-mobile-fix.css?v=355");
@import url("./styles-v38-mobile-tight.css?v=356");
@import url("./styles-v39-mobile-polish.css?v=357");
@import url("./styles-v40-mobile-project-overlay.css?v=358");
@import url("./styles-v41-mobile-video-cards.css?v=359");
@import url("./styles-v42-mobile-polish.css?v=360");
@import url("./styles-v43-mobile-header-practice-life.css?v=361");
@import url("./styles-v44-mobile-header-tabs.css?v=362");
@import url("./styles-v45-mobile-static-nav.css?v=363");

.panel-lead h3,
.story-copy h3,
.real-copy h3 {
  font-size: clamp(32px, 2.7vw, 48px);
}

/* 2026-07 content-positioning update */
.brand {
  min-width: 0;
}

.brand-copy {
  display: grid;
  gap: 3px;
  max-width: min(390px, 34vw);
  line-height: 1.28;
}

.brand-copy b,
.brand-copy small {
  display: block;
  overflow-wrap: normal;
  font: inherit;
}

.brand-copy b {
  color: rgba(235, 238, 232, 0.76);
  font-weight: 650;
}

.brand-copy small {
  color: rgba(174, 180, 173, 0.68);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}

.availability {
  white-space: nowrap;
}

.case-points {
  display: grid;
  gap: 16px;
  margin-top: 30px;
  max-width: 560px;
}

.case-points article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.case-points span {
  color: var(--green);
  font-size: 10px;
  line-height: 1.5;
}

.case-points p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.85;
}

.about-position {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.9;
}

@media (max-width: 1080px) {
  .brand-copy {
    max-width: min(320px, 48vw);
  }
}

@media (max-width: 720px) {
  .brand-copy {
    max-width: 178px;
    gap: 2px;
  }

  .brand-copy b {
    font-size: 7px;
    line-height: 1.25;
  }

  .brand-copy small {
    font-size: 6px;
    line-height: 1.25;
    letter-spacing: 0.06em;
  }

  .availability {
    max-width: 118px;
    white-space: normal;
    line-height: 1.35;
  }

  .case-points article {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .brand-copy {
    max-width: 150px;
  }


  .site-header nav {
    gap: 18px;
  }
}
.hero-copy h1 {
  max-width: 820px;
  font-size: 68px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-copy h1 span {
  letter-spacing: 0;
}

@media (max-width: 1080px) {
  .hero-copy h1 {
    font-size: 60px;
  }
}

@media (max-width: 720px) {
  .hero-copy h1 {
    font-size: 44px;
    line-height: 1.16;
  }
}
.hero-copy h1 em {
  font-style: normal;
  white-space: nowrap;
}
/* 2026-07 second-round task-book updates */
.menu-toggle {
  display: none;
}

.site-header nav {
  align-items: center;
}

.site-header nav a {
  position: relative;
  padding: 10px 0;
  color: rgba(235, 238, 232, 0.74);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--green);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header nav a.active,
.site-header nav a[aria-current="location"] {
  color: rgba(255, 255, 255, 0.94);
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.site-header nav a.active::after,
.site-header nav a[aria-current="location"]::after {
  opacity: 0.82;
  transform: scaleX(1);
}

.hero-copy h1 {
  max-width: 920px;
  color: rgba(255, 255, 255, 0.96);
}

.hero-copy h1 .hero-mainline,
.hero-copy h1 .hero-subline {
  display: block;
  color: currentColor;
  letter-spacing: 0;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
}

.hero-copy h1 .hero-subline {
  margin-top: 8px;
  color: rgba(231, 235, 229, 0.78);
  font-size: 0.86em;
}

.hero-mainline-mobile,
.hero-subline-mobile {
  display: none !important;
}

.hero-intro,
.projects .head-summary p,
.about-position,
.growth-statement p,
.life-copy > p:not(.eyebrow),
.contact > p:not(.eyebrow) {
  color: rgba(229, 235, 230, 0.78);
}

.button-primary {
  border-color: rgba(159, 195, 178, 0.58);
  background: rgba(159, 195, 178, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.button-secondary {
  color: rgba(235, 238, 232, 0.82);
}

.project-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 22px);
  margin-bottom: clamp(34px, 4.2vw, 72px);
}

.project-entry {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  min-height: clamp(210px, 22vw, 310px);
  overflow: hidden;
  padding: clamp(18px, 2vw, 28px);
  border: 1px solid rgba(218, 232, 226, 0.14);
  background: #0b0d0c;
  color: rgba(244, 248, 246, 0.92);
  text-decoration: none;
  transition: border-color 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.project-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 10, 9, 0.12) 0%, rgba(7, 10, 9, 0.42) 46%, rgba(7, 10, 9, 0.82) 100%);
  transition: background 0.28s ease;
}

.project-entry img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.64);
  transform: scale(1.02);
  transition: filter 0.35s ease, transform 0.45s var(--ease);
}

.project-entry span {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.project-entry b {
  max-width: 9em;
  font-size: clamp(26px, 2.35vw, 38px);
  font-weight: 430;
  line-height: 1.08;
}

.project-entry em {
  margin-top: 8px;
  color: rgba(236, 242, 238, 0.68);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.04em;
}

.project-entry i {
  margin-top: 18px;
  color: rgba(235, 238, 232, 0.72);
  font-size: 12px;
  font-style: normal;
}

.project-entry:hover,
.project-entry:focus-visible {
  border-color: rgba(159, 195, 178, 0.58);
  transform: translateY(-3px);
}

.project-entry:hover::before,
.project-entry:focus-visible::before {
  background: linear-gradient(180deg, rgba(7, 10, 9, 0.04) 0%, rgba(7, 10, 9, 0.26) 44%, rgba(7, 10, 9, 0.72) 100%);
}

.project-entry:hover img,
.project-entry:focus-visible img {
  filter: saturate(0.86) contrast(1.05) brightness(0.78);
  transform: scale(1.065);
}

.project-entry:focus-visible {
  outline: 2px solid rgba(159, 195, 178, 0.85);
  outline-offset: 4px;
}

.project-world {
  scroll-margin-top: 108px;
}

.project-world-inner {
  padding-top: clamp(118px, 12vh, 150px);
  padding-bottom: clamp(82px, 9vh, 112px);
}

.project-world-shade {
  background:
    linear-gradient(90deg, rgba(8, 10, 9, 0.88) 0%, rgba(8, 10, 9, 0.72) 33%, rgba(8, 10, 9, 0.2) 60%, rgba(8, 10, 9, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 10, 9, 0.66) 0%, transparent 42%, rgba(8, 10, 9, 0.12) 100%);
}

.project-backdrops img {
  filter: saturate(0.68) contrast(1.06) brightness(0.72);
}

.project-backdrops img.active {
  filter: saturate(0.8) contrast(1.06) brightness(0.78);
}

.project-intro h3 {
  max-width: 9em;
  line-height: 0.95;
  letter-spacing: 0;
}

.project-world:hover .project-backdrops img.active,
.project-world:focus-within .project-backdrops img.active {
  filter: saturate(0.86) contrast(1.07) brightness(0.82);
}

.growth-axis-label {
  color: rgba(244, 248, 246, 0.88);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.contact h2 {
  max-width: 980px;
}

.contact > p:not(.eyebrow) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1080px) {
  .site-header nav a {
    font-size: 13px;
  }

  .project-entry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 92px;
  }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    width: auto;
    height: auto;
    min-height: 76px;
    padding: 12px clamp(18px, 5vw, 26px) 0;
    transform: none;
    border-bottom: 1px solid rgba(218, 232, 226, 0.1);
    background: rgba(7, 10, 9, 0.9);
    backdrop-filter: blur(18px);
  }

  .site-header .brand {
    grid-column: 1;
    align-self: center;
    min-width: 0;
  }

  .site-header .availability {
    display: none;
  }

  .menu-toggle {
    grid-column: 2;
    align-self: center;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 62px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(218, 232, 226, 0.2);
    background: rgba(255, 255, 255, 0.035);
    color: rgba(244, 248, 246, 0.88);
    font: 700 10px/1 Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
    letter-spacing: 0.1em;
  }

  .menu-toggle i {
    position: relative;
    width: 14px;
    height: 10px;
  }

  .menu-toggle i::before,
  .menu-toggle i::after {
    content: "";
    position: absolute;
    left: 0;
    width: 14px;
    height: 1px;
    background: currentColor;
    transition: transform 0.24s ease, top 0.24s ease;
  }

  .menu-toggle i::before { top: 2px; }
  .menu-toggle i::after { top: 8px; }

  .site-header.is-menu-open .menu-toggle i::before {
    top: 5px;
    transform: rotate(42deg);
  }

  .site-header.is-menu-open .menu-toggle i::after {
    top: 5px;
    transform: rotate(-42deg);
  }

  .site-header nav {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    border-top: 0;
    transition: max-height 0.28s ease, opacity 0.22s ease, padding 0.28s ease, border-color 0.28s ease;
  }

  .site-header.is-menu-open nav {
    max-height: 310px;
    padding: 8px 0 10px;
    opacity: 1;
    pointer-events: auto;
    border-top: 1px solid rgba(218, 232, 226, 0.11);
  }

  .site-header nav a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0;
    border-bottom: 1px solid rgba(218, 232, 226, 0.08);
    color: rgba(235, 238, 232, 0.78);
    font-size: 14px;
    letter-spacing: 0.04em;
    white-space: normal;
  }

  .site-header nav a::after {
    display: none;
  }

  .site-header nav a.active,
  .site-header nav a[aria-current="location"] {
    color: rgba(255, 255, 255, 0.95);
  }

  .hero-mainline-desktop,
  .hero-subline-desktop {
    display: none !important;
  }

  .hero-mainline-mobile,
  .hero-subline-mobile {
    display: block !important;
  }

  .hero-copy h1 .hero-subline {
    margin-top: 8px;
    font-size: 0.72em;
    color: rgba(229, 235, 230, 0.76);
  }

  .hero-intro {
    max-width: 100%;
    color: rgba(229, 235, 230, 0.76);
  }

  .project-entry-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 30px;
  }

  .project-entry {
    min-height: 172px;
    padding: 18px;
  }

  .project-entry b {
    font-size: 28px;
  }

  .project-world {
    scroll-margin-top: 96px;
  }

  .project-world-inner {
    padding-top: 92px;
    padding-bottom: 44px;
  }

  .project-intro h3 {
    max-width: 7.8em;
    line-height: 0.98;
  }

  .growth-axis-label {
    font-size: 11px;
  }

  .contact h2 {
    font-size: 42px;
    line-height: 1.08;
  }

  .contact > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    font-size: 40px;
  }

  .site-header nav {
    gap: 0;
  }
}
@media (max-width: 720px) {
  .site-header #site-nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    overflow-x: hidden !important;
  }

  .site-header.is-menu-open #site-nav {
    max-height: 320px !important;
  }

  .site-header #site-nav a {
    width: 100% !important;
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
  }
}
@media (max-width: 720px) {
  .site-header {
    grid-template-rows: auto auto !important;
    align-content: start !important;
  }

  .site-header #site-nav {
    height: auto !important;
    min-height: 0 !important;
  }

  .site-header.is-menu-open {
    height: auto !important;
    min-height: 76px !important;
    padding-bottom: 0 !important;
  }
}
@media (min-width: 721px) {
  .hero-copy h1 {
    font-size: 60px;
  }

  .hero-mainline-desktop {
    white-space: nowrap;
  }

  .projects > .section-head {
    margin-bottom: clamp(34px, 4vw, 56px);
  }
}

/* Third round local preview fixes */
.mobile-heading-text {
  display: none;
}

.hero-copy h1 .hero-subline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.05px rgba(232, 238, 233, 0.72);
  text-stroke: 1.05px rgba(232, 238, 233, 0.72);
  text-shadow: 0 0 20px rgba(232, 238, 233, 0.08);
}

.contact-links a:focus-visible {
  outline: 1px solid rgba(168, 216, 200, 0.72);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  body.is-mobile-menu-open {
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: contain;
  }

  .desktop-heading-text {
    display: none !important;
  }

  .mobile-heading-text {
    display: block;
  }

  .mobile-heading-text > span,
  .hero-mainline-mobile > span {
    display: block;
    white-space: nowrap;
  }

  .hero-mainline-mobile > span {
    margin-top: 0 !important;
  }

  .hero-copy h1 {
    max-width: 7.2em;
  }

  .hero-mainline-mobile {
    white-space: normal;
  }

  .hero-copy h1 .hero-subline {
    -webkit-text-stroke-width: 0.82px;
    text-stroke-width: 0.82px;
  }

  .section-head h2,
  .contact h2 {
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .scene-deck {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .scene-deck::-webkit-scrollbar,
  .transfer-rail::-webkit-scrollbar {
    display: none;
  }

  .scene-card,
  .scene-card:nth-child(n),
  .scene-card:hover,
  .scene-card:focus-visible,
  .scene-card.active {
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .transfer-rail {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }

  .transfer-rail .transfer-card {
    flex: 0 0 min(78vw, 286px);
    min-height: 212px;
    height: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .transfer-rail .transfer-card > div {
    min-height: 0;
    grid-template-rows: auto;
  }

  .transfer-rail .transfer-card p {
    min-height: 0;
  }

  .growth-grid path {
    stroke: rgba(226, 239, 235, 0.075);
  }

  .growth-years .growth-year-secondary {
    display: none;
  }

  .growth-years text {
    font-size: 14px;
    letter-spacing: 0.04em;
  }

  .growth-axis-label {
    padding: 9px 10px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }


  .about-lead h2 {
    font-size: clamp(31px, 8.7vw, 40px);
    line-height: 1.14;
    letter-spacing: 0;
  }

  .about-lead h2 span {
    white-space: nowrap;
  }  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.6;
  }
}

@media (max-width: 340px) {
  .hero-copy h1 {
    font-size: 37px;
  }

  .section-head h2,
  .contact h2 {
    font-size: clamp(36px, 10.5vw, 42px);
  }
}
/* Fourth round local preview fixes */
.reveal {
  opacity: 0.64;
  transform: translateY(18px);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.contact > p:not(.eyebrow) {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 721px) {
  .projects.section-space {
    padding-top: clamp(90px, 12vh, 128px);
  }
}

@media (max-width: 720px) {
  :root {
    --mobile-title-main: clamp(31px, 8.7vw, 39px);
    --mobile-title-concept: clamp(32px, 9.05vw, 41px);
    --mobile-hero-visual: clamp(112px, 34vw, 148px);
    --mobile-hero-gap: clamp(10px, 3vw, 16px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) var(--mobile-hero-visual);
    gap: 0 var(--mobile-hero-gap);
    align-items: start;
    padding-bottom: clamp(30px, 7vh, 52px);
  }

  .hero-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    align-self: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--mobile-hero-visual);
    column-gap: var(--mobile-hero-gap);
    align-items: start;
  }

  .hero-identity,
  .hero-copy > .eyebrow,
  .hero-copy h1 {
    grid-column: 1;
    min-width: 0;
  }

  .hero-intro,
  .personal-meta,
  .hero-actions {
    grid-column: 1 / -1;
  }

  .hero-visual {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: end;
    z-index: 3;
    width: var(--mobile-hero-visual);
    max-width: none;
    margin-top: clamp(2px, 0.8vw, 6px);
  }

  .portrait-disc {
    inset: 6%;
  }

  .hero-identity {
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 12px;
  }

  .hero-identity strong {
    font-size: clamp(36px, 10.4vw, 43px);
    letter-spacing: 0;
  }

  .hero-identity span {
    font-size: 8.5px;
    letter-spacing: 0.2em;
  }

  .hero-copy > .eyebrow {
    margin-bottom: 16px;
    font-size: 7.5px;
    line-height: 1.45;
    letter-spacing: 0.14em;
  }

  .hero-copy h1,
  .hero h1 {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
    font-size: var(--mobile-title-main);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .hero-copy h1 .hero-mainline,
  .hero-copy h1 .hero-mainline span {
    color: rgba(248, 250, 246, 0.94);
    -webkit-text-fill-color: rgba(248, 250, 246, 0.94);
    -webkit-text-stroke: 0;
    text-stroke: 0;
    text-shadow: 0 0 18px rgba(232, 238, 233, 0.08);
  }

  .hero-mainline-mobile > span {
    display: block;
    white-space: nowrap;
  }

  .hero-copy h1 .hero-subline,
  .hero-subline-mobile {
    margin-top: 8px;
    color: transparent;
    font-size: 0.8em;
    line-height: 1.12;
    white-space: nowrap;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.64px rgba(232, 238, 233, 0.54);
    text-stroke: 0.64px rgba(232, 238, 233, 0.54);
    text-shadow: 0 0 14px rgba(232, 238, 233, 0.07);
  }

  .hero-intro {
    margin-top: clamp(20px, 5.6vw, 28px);
    font-size: 13px;
    line-height: 1.78;
  }

  .personal-meta {
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 26px;
  }

  .section-head h2,
  .about-lead h2,
  .life-copy h2,
  .contact h2 {
    font-size: var(--mobile-title-main);
    line-height: 1.1;
    letter-spacing: 0;
  }

  .mobile-heading-text {
    line-height: inherit;
  }

  .projects .mobile-heading-text {
    display: block;
    white-space: nowrap;
  }

  .projects > .section-head {
    gap: 18px;
    margin-bottom: 16px;
  }

  .projects > .section-head > div:first-child {
    gap: 12px;
  }

  .projects .section-head h2 {
    font-size: var(--mobile-title-main);
    line-height: 1.08;
  }

  .projects .head-summary p {
    line-height: 1.72;
  }

  .migration-head h2 {
    max-width: none;
    font-size: var(--mobile-title-concept);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .migration-head h2 span {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.72px rgba(232, 238, 233, 0.48);
    text-stroke: 0.72px rgba(232, 238, 233, 0.48);
    text-shadow: 0 0 12px rgba(232, 238, 233, 0.06);
  }

  .migration-head > p:last-of-type {
    margin-top: clamp(18px, 4.8vw, 24px);
    line-height: 1.74;
  }

  .migration-legend {
    margin-top: clamp(18px, 4.8vw, 24px);
  }

  .migration-graph {
    height: clamp(260px, 72vw, 330px);
    margin-top: 14px;
    overflow: hidden;
  }

  .migration-graph::before {
    opacity: 0.42;
    filter: none;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.42) 74%, transparent 96%);
  }

  .migration-graph::after {
    opacity: 0.24;
    filter: blur(7px);
  }

  .about-lead h2 {
    line-height: 1.14;
  }

  .about-lead h2 span {
    white-space: nowrap;
  }

  .life-copy h2 {
    margin-bottom: 18px;
  }

  .contact h2 {
    margin-bottom: 20px;
  }

  .project-intro .project-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    max-width: 100%;
    margin: 10px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid rgba(245, 248, 242, 0.22);
    border-bottom: 0;
  }

  .project-facts div {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
  }

  .project-facts dt,
  .project-facts dd {
    background: none;
    animation: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
  }

  .project-facts dt {
    color: rgba(245, 248, 242, 0.45);
    font-size: 8px;
    line-height: 1.5;
    letter-spacing: 0.12em;
  }

  .project-facts dd {
    color: rgba(245, 248, 242, 0.76);
    font-size: 10.5px;
    line-height: 1.48;
  }

  .scene-status {
    margin-top: 10px;
  }
}

@media (max-width: 375px) {
  :root {
    --mobile-title-main: clamp(30px, 8.4vw, 35px);
    --mobile-title-concept: clamp(31px, 8.8vw, 37px);
    --mobile-hero-visual: clamp(104px, 32vw, 122px);
    --mobile-hero-gap: 10px;
  }

  .hero-identity span {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .hero-copy > .eyebrow {
    font-size: 7px;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Fifth round local preview fixes */
.growth-axis-label {
  pointer-events: none;
}

.growth-axis-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(226, 239, 235, 0.48), rgba(226, 239, 235, 0));
  transform-origin: left center;
}

.growth-axis-space::after {
  left: calc(100% - 2px);
  transform: rotate(-18deg);
}

.growth-axis-ai::after {
  right: calc(100% - 2px);
  background: linear-gradient(270deg, rgba(240, 157, 125, 0.48), rgba(240, 157, 125, 0));
  transform: rotate(17deg);
  transform-origin: right center;
}

.graph-node-controls {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.graph-node-control {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.graph-node-control:focus-visible {
  outline: 1px solid rgba(191, 236, 218, 0.82);
  outline-offset: 3px;
  opacity: 0.16;
  background: rgba(191, 236, 218, 0.24);
}

.migration-graph canvas {
  touch-action: manipulation;
}

.migration-graph.is-node-selected canvas {
  cursor: pointer;
}

@media (min-width: 721px) {
  .desktop-heading-ai,
  .desktop-heading-ai > span {
    display: block;
  }

  .desktop-heading-ai > span {
    white-space: nowrap;
  }

  .about.section-space {
    padding-top: clamp(150px, 18vh, 180px);
  }

  .growth-axis-space {
    left: 14%;
    top: 57%;
  }

  .growth-axis-ai {
    right: 12%;
    top: 34%;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    height: 76px !important;
    min-height: 76px !important;
    overflow: hidden;
    transition: min-height 0.24s ease, height 0.24s ease, padding 0.24s ease, background-color 0.24s ease;
    will-change: height, min-height;
  }

  .site-header.is-compact {
    height: 54px !important;
    min-height: 54px !important;
    padding-top: 8px !important;
    background: rgba(7, 10, 9, 0.94);
  }

  .site-header.is-compact .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 11px;
  }

  .site-header.is-compact .brand-copy {
    max-width: 154px;
    gap: 0;
  }

  .site-header.is-compact .brand-copy b {
    font-size: 6.6px;
    line-height: 1.12;
  }

  .site-header.is-compact .brand-copy small {
    display: none;
  }

  .site-header.is-compact .menu-toggle {
    min-width: 58px;
    min-height: 36px;
    padding-inline: 10px;
  }

  .site-header.is-menu-open {
    height: auto !important;
    min-height: 76px !important;
    overflow: visible;
    padding-top: 12px !important;
  }

  .site-header.is-menu-open .brand-mark {
    width: 38px;
    height: 38px;
  }

  .site-header.is-menu-open .brand-copy {
    gap: 2px;
  }

  .site-header.is-menu-open .brand-copy small {
    display: block;
  }

  .about-lead h2 span {
    color: rgba(234, 241, 237, 0.84) !important;
    -webkit-text-fill-color: rgba(234, 241, 237, 0.84) !important;
    -webkit-text-stroke: 0 !important;
    text-stroke: 0 !important;
    text-shadow: 0 0 18px rgba(226, 239, 235, 0.12);
  }

  .growth-axis-label {
    padding: 8px 9px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .growth-axis-label::after {
    width: 28px;
  }

  .growth-axis-space {
    left: 6%;
    top: 61%;
  }

  .growth-axis-ai {
    right: 3%;
    top: 31%;
  }

  .graph-node-control {
    min-width: 40px;
    min-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .brand-mark,
  .site-header .brand-copy,
  .site-header .brand-copy small,
  .site-header .menu-toggle {
    transition: none !important;
  }
}
/* Sixth round local preview fixes */
.portrait-disc .disc-label {
  display: none !important;
  border: 0 !important;
}

@media (max-width: 720px) {
  .project-kicker {
    position: relative;
    border-bottom: 0 !important;
    padding-bottom: 18px;
  }

  .project-kicker::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: clamp(72px, 28vw, 118px);
    height: 1px;
    background: rgba(245, 248, 242, 0.1);
    pointer-events: none;
  }
}
/* Seventh round responsive typography trial: scoped to the three approved scenes only. */
:root {
  --type-display-xl-min: 64px;
  --type-display-xl-max: 80px;
  --type-display-xl: clamp(var(--type-display-xl-min), 5.2vw, var(--type-display-xl-max));
  --type-display-xl-hero-compact: clamp(58px, 4.2vw, 64px);
  --type-display-l-min: 52px;
  --type-display-l-max: 64px;
  --type-display-l: clamp(var(--type-display-l-min), 4.45vw, var(--type-display-l-max));
  --type-project-min: 52px;
  --type-project-max: 68px;
  --type-project: clamp(var(--type-project-min), 4.4vw, var(--type-project-max));
  --type-h2-min: 32px;
  --type-h2-max: 40px;
  --type-h2: clamp(var(--type-h2-min), 2.6vw, var(--type-h2-max));
  --type-h3-min: 20px;
  --type-h3-max: 26px;
  --type-h3: clamp(var(--type-h3-min), 1.7vw, var(--type-h3-max));
  --type-lead-min: 17px;
  --type-lead-max: 20px;
  --type-lead: clamp(var(--type-lead-min), 1.2vw, var(--type-lead-max));
  --type-body-min: 15px;
  --type-body-max: 17px;
  --type-body: clamp(var(--type-body-min), 1.05vw, var(--type-body-max));
  --type-meta-min: 11px;
  --type-meta-max: 13px;
  --type-meta: clamp(var(--type-meta-min), 0.8vw, var(--type-meta-max));
  --leading-display-cn: 1.04;
  --leading-project-cn: 1.04;
  --leading-lead-cn: 1.72;
  --leading-body-cn: 1.7;
  --tracking-title-cn: 0;
  --tracking-meta-en: 0.12em;
}

.hero-copy h1 {
  max-width: min(920px, 100%);
  font-size: var(--type-display-xl-hero-compact);
  line-height: var(--leading-display-cn);
  letter-spacing: var(--tracking-title-cn);
  text-wrap: balance;
}

.hero-copy h1 .hero-mainline,
.hero-copy h1 .hero-subline {
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
}

.hero-copy h1 .hero-subline {
  margin-top: 10px;
  font-size: 0.84em;
  line-height: 1.06;
}

.hero-intro {
  max-width: 680px;
  font-size: var(--type-lead);
  line-height: var(--leading-lead-cn);
}

.hero-copy > .eyebrow {
  font-size: var(--type-meta);
  letter-spacing: var(--tracking-meta-en);
}

.personal-meta li {
  font-size: var(--type-meta);
  line-height: 1.45;
  letter-spacing: 0.03em;
}

.personal-meta li span {
  font-size: clamp(8px, 0.62vw, 10px);
  line-height: 1.2;
  letter-spacing: var(--tracking-meta-en);
}

#project-hotel .project-description {
  max-width: 36em;
  margin-bottom: 24px;
  font-size: var(--type-body);
  line-height: var(--leading-body-cn);
}

#project-hotel .project-facts dt {
  font-size: clamp(9px, 0.7vw, 11px);
  line-height: 1.35;
  letter-spacing: var(--tracking-meta-en);
}

#project-hotel .project-facts dd {
  font-size: clamp(13px, 0.92vw, 15px);
  line-height: 1.62;
}

#practice .section-head {
  grid-template-columns: minmax(380px, 0.82fr) minmax(560px, 1.18fr);
  align-items: center;
  gap: clamp(44px, 5vw, 76px);
}

#practice .section-head h2 {
  max-width: 8.2em;
  font-size: var(--type-display-l);
  line-height: var(--leading-display-cn);
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
}

#practice .desktop-heading-ai > span,
#practice .mobile-heading-text > span {
  display: block;
  white-space: nowrap;
}

#practice .head-summary {
  max-width: 680px;
  font-size: var(--type-lead);
  line-height: var(--leading-lead-cn);
}

#practice .head-summary p {
  max-width: 34em;
  text-wrap: pretty;
}

@media (max-width: 720px) {
  :root {
    --type-display-xl-min: 40px;
    --type-display-xl-max: 48px;
    --type-display-xl: clamp(var(--type-display-xl-min), 10.8vw, var(--type-display-xl-max));
    --type-display-xl-hero-compact: clamp(30px, 8.7vw, 39px);
    --type-display-l-min: 34px;
    --type-display-l-max: 42px;
    --type-display-l: clamp(var(--type-display-l-min), 9.6vw, var(--type-display-l-max));
    --type-project-min: 40px;
    --type-project-max: 50px;
    --type-project: clamp(var(--type-project-min), 10.8vw, var(--type-project-max));
    --type-h2-min: 26px;
    --type-h2-max: 32px;
    --type-h2: clamp(var(--type-h2-min), 7.4vw, var(--type-h2-max));
    --type-h3-min: 18px;
    --type-h3-max: 22px;
    --type-h3: clamp(var(--type-h3-min), 5.4vw, var(--type-h3-max));
    --type-lead-min: 15px;
    --type-lead-max: 18px;
    --type-lead: clamp(var(--type-lead-min), 4.2vw, var(--type-lead-max));
    --type-body-min: 14px;
    --type-body-max: 17px;
    --type-body: clamp(var(--type-body-min), 3.9vw, var(--type-body-max));
    --type-meta-min: 10px;
    --type-meta-max: 12px;
    --type-meta: clamp(var(--type-meta-min), 3vw, var(--type-meta-max));
    --leading-display-cn: 1.08;
    --leading-project-cn: 1.06;
    --leading-lead-cn: 1.7;
    --leading-body-cn: 1.68;
  }

  .hero-copy h1,
  .hero h1 {
    font-size: var(--type-display-xl-hero-compact);
    line-height: var(--leading-display-cn);
  }

  .hero-copy h1 .hero-subline,
  .hero-subline-mobile {
    font-size: 0.8em;
    line-height: 1.12;
  }

  .hero-intro {
    font-size: var(--type-body);
    line-height: var(--leading-body-cn);
  }

  .personal-meta li {
    font-size: clamp(10.5px, 3vw, 12px);
    line-height: 1.38;
  }


  #project-hotel .project-description {
    max-width: 34em;
    margin-bottom: 0;
    font-size: clamp(12.5px, 3.55vw, 15px);
    line-height: 1.66;
  }

  #project-hotel .project-facts dt {
    font-size: 8.5px;
    line-height: 1.45;
  }

  #project-hotel .project-facts dd {
    font-size: clamp(10.5px, 3vw, 12px);
    line-height: 1.52;
  }

  #practice .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  #practice .section-head h2 {
    max-width: 8em;
    font-size: var(--type-display-l);
    line-height: var(--leading-display-cn);
  }

  #practice .head-summary {
    max-width: 100%;
    font-size: var(--type-body);
    line-height: var(--leading-body-cn);
  }

  #practice .head-summary p {
    max-width: 100%;
  }
}


/* Seventh round full-site typography experiment: local preview only. */
:root {
  --type-display-xl-min: 64px;
  --type-display-xl-max: 96px;
  --type-display-xl: clamp(var(--type-display-xl-min), 6.2vw, var(--type-display-xl-max));
  --type-display-xl-hero-compact: clamp(54px, 5.4vw, 78px);
  --type-display-l-min: 46px;
  --type-display-l-max: 68px;
  --type-display-l: clamp(var(--type-display-l-min), 4.3vw, var(--type-display-l-max));
  --type-display-l-concept: clamp(52px, 5vw, 74px);
  --type-ai-display-inline: clamp(43px, 3.55vw, 56px);
  --type-project-min: 50px;
  --type-project-max: 76px;
  --type-project: clamp(var(--type-project-min), 4.7vw, var(--type-project-max));
  --type-project-long: clamp(44px, 4.05vw, 64px);
  --type-h2-min: 30px;
  --type-h2-max: 44px;
  --type-h2: clamp(var(--type-h2-min), 2.75vw, var(--type-h2-max));
  --type-h3-min: 20px;
  --type-h3-max: 28px;
  --type-h3: clamp(var(--type-h3-min), 1.75vw, var(--type-h3-max));
  --type-card-title-min: 17px;
  --type-card-title-max: 22px;
  --type-card-title: clamp(var(--type-card-title-min), 1.32vw, var(--type-card-title-max));
  --type-lead-min: 16px;
  --type-lead-max: 20px;
  --type-lead: clamp(var(--type-lead-min), 1.22vw, var(--type-lead-max));
  --type-body-min: 14px;
  --type-body-max: 17px;
  --type-body: clamp(var(--type-body-min), 1vw, var(--type-body-max));
  --type-body-small-min: 12px;
  --type-body-small-max: 15px;
  --type-body-small: clamp(var(--type-body-small-min), 0.9vw, var(--type-body-small-max));
  --type-meta-min: 10px;
  --type-meta-max: 12px;
  --type-meta: clamp(var(--type-meta-min), 0.72vw, var(--type-meta-max));
  --type-micro-min: 8px;
  --type-micro-max: 10px;
  --type-micro: clamp(var(--type-micro-min), 0.58vw, var(--type-micro-max));
  --leading-display-cn: 1.08;
  --leading-project-cn: 1.06;
  --leading-heading-cn: 1.18;
  --leading-lead-cn: 1.72;
  --leading-body-cn: 1.72;
  --leading-compact-cn: 1.5;
  --tracking-title-cn: 0;
  --tracking-meta-en: 0.12em;
  --tracking-ui-en: 0.08em;
  --measure-lead: 39em;
  --measure-body: 42em;
  --space-head-to-body: clamp(18px, 2.1vw, 30px);
  --space-section-head: clamp(40px, 5.2vw, 78px);
}

/* Shared semantic layers */
.hero-copy h1,
.hero h1 {
  font-size: var(--type-display-xl-hero-compact);
  line-height: var(--leading-display-cn);
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-copy h1 .hero-subline,
.hero-subline-mobile {
  font-size: 0.78em;
  line-height: 1.12;
}

.hero-copy > .eyebrow,
.section-head > .eyebrow,
.project-entry span,
.project-kicker,
.project-kicker span,
.project-scene-type,
.project-facts dt,
.scene-status span,
.tags span,
.migration-head > .eyebrow,
.migration-legend b,
.graph-caption span,
.graph-stats span,
.practice-tabs button span,
.practice-tabs button small,
.panel-lead .eyebrow,
.case-points span,
.role-split span,
.doc-stage figcaption span,
.tool-list span,
.about-position,
.growth-statement span,
.growth-axis-label,
.growth-milestones span,
.growth-milestones time,
.life-copy > .eyebrow,
.life-tags span,
.life-media-overlay span,
.contact > .eyebrow,
.contact-links a span,
footer {
  font-size: var(--type-meta);
  line-height: 1.45;
  letter-spacing: var(--tracking-meta-en);
}

.nav-links a,
.nav-action,
.practice-tabs button i,
.transfer-number {
  font-size: var(--type-micro);
  line-height: 1.35;
  letter-spacing: var(--tracking-ui-en);
}

.hero-intro,
.head-summary,
.head-summary p,
.project-description,
.migration-head > p:last-child,
.migration-head > p:last-of-type,
.story-copy > p:not(.eyebrow),
.real-copy > p:not(.eyebrow),
.panel-lead p,
.about-position,
.growth-statement p,
.life-copy > p:not(.eyebrow),
.contact > p:not(.eyebrow) {
  max-width: var(--measure-lead);
  font-size: var(--type-lead);
  line-height: var(--leading-lead-cn);
  letter-spacing: 0;
  text-wrap: pretty;
}

.project-description,
.case-points p,
.role-split b,
.doc-stage figcaption b,
.tool-list p,
.growth-milestones p,
.scene-status b,
.project-facts dd,
.life-media-overlay button,
.contact-links a {
  max-width: var(--measure-body);
  font-size: var(--type-body);
  line-height: var(--leading-body-cn);
  letter-spacing: 0;
}

.section-head {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
  margin-bottom: var(--space-section-head);
}

.section-head h2,
.contact h2 {
  max-width: 9.5em;
  font-size: var(--type-display-l);
  line-height: var(--leading-display-cn);
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.head-summary {
  align-self: start;
}

/* Space project entries and details */
.project-entry-grid {
  align-items: stretch;
}

.project-entry b {
  max-width: 9em;
  font-size: var(--type-h2);
  line-height: 1.14;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.project-entry em,
.project-entry i {
  font-size: var(--type-body-small);
  line-height: var(--leading-compact-cn);
  letter-spacing: 0.03em;
}

.project-intro h3 {
  max-width: min(9.4em, 720px);
  margin-bottom: var(--space-head-to-body);
  font-size: var(--type-project);
  line-height: var(--leading-project-cn);
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.project-description {
  margin-top: 0;
  margin-bottom: clamp(20px, 2.5vw, 34px);
}

.project-facts,
.scene-status,
.tags,
.scene-deck {
  font-size: var(--type-body-small);
  line-height: var(--leading-compact-cn);
}

/* From space to intelligence */
.migration-head {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(38px, 5vw, 76px);
}

.migration-head h2 {
  max-width: 6.4em;
  font-size: var(--type-display-l-concept);
  line-height: 1.03;
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
}

.migration-head h2 span {
  letter-spacing: 0;
}

.migration-legend em,
.graph-caption b,
.graph-caption em,
.graph-stats b,
.transfer-rail .transfer-card p {
  font-size: var(--type-body-small);
  line-height: var(--leading-compact-cn);
}

.transfer-rail .transfer-card h3,
.tool-list b,
.growth-milestones b {
  font-size: var(--type-card-title);
  line-height: 1.24;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

/* AI creation and digital practice */
#practice .section-head {
  grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.48fr);
  align-items: start;
  gap: clamp(32px, 4vw, 58px);
  margin-bottom: clamp(30px, 3.5vw, 46px);
}

#practice .section-head h2 {
  max-width: none;
  font-size: var(--type-ai-display-inline);
  line-height: 1.06;
  letter-spacing: var(--tracking-title-cn);
  white-space: nowrap;
  text-wrap: nowrap;
}

#practice .desktop-heading-ai,
#practice .desktop-heading-ai > span {
  display: inline !important;
  white-space: nowrap;
}

#practice .head-summary {
  max-width: 38em;
  padding-top: 0.08em;
}

#practice .practice-content {
  min-height: clamp(500px, 52vw, 620px);
  padding-top: clamp(34px, 4.4vw, 64px);
  padding-bottom: clamp(34px, 4.4vw, 64px);
}

.practice-tabs button strong {
  font-size: var(--type-card-title);
  line-height: 1.24;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.panel-lead h3,
.story-copy h3,
.real-copy h3 {
  max-width: 10.5em;
  margin-bottom: clamp(14px, 1.8vw, 24px);
  font-size: var(--type-h2);
  line-height: 1.12;
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.case-points,
.role-split,
.tool-list {
  font-size: var(--type-body-small);
  line-height: var(--leading-compact-cn);
}

/* About, life, contact, footer */
.about-lead {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.about-lead h2,
.life-copy h2 {
  max-width: 10em;
  font-size: var(--type-display-l);
  line-height: var(--leading-display-cn);
  letter-spacing: var(--tracking-title-cn);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.about-lead h2 span {
  display: block;
  white-space: nowrap;
}

.life-copy h2 {
  max-width: 8.4em;
}

.growth-statement {
  gap: clamp(12px, 1.6vw, 22px);
}

.life-copy {
  max-width: min(620px, 100%);
}

.contact h2 {
  max-width: 11em;
}

.contact-links a {
  line-height: 1.35;
}

@media (min-width: 721px) and (max-width: 1400px) {
  #practice .section-head {
    grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.48fr);
    gap: clamp(28px, 3.2vw, 46px);
  }

  #practice .section-head h2 {
    font-size: clamp(40px, 3.2vw, 48px);
  }

  .project-intro h3 {
    font-size: clamp(46px, 4.2vw, 62px);
  }

}

@media (max-width: 720px) {
  :root {
    --type-display-xl-min: 38px;
    --type-display-xl-max: 48px;
    --type-display-xl: clamp(var(--type-display-xl-min), 10.8vw, var(--type-display-xl-max));
    --type-display-xl-hero-compact: clamp(29px, 8.5vw, 39px);
    --type-display-l-min: 32px;
    --type-display-l-max: 42px;
    --type-display-l: clamp(var(--type-display-l-min), 9.2vw, var(--type-display-l-max));
    --type-display-l-concept: clamp(34px, 9.8vw, 44px);
    --type-ai-display-inline: clamp(32px, 9.2vw, 42px);
    --type-project-min: 36px;
    --type-project-max: 48px;
    --type-project: clamp(var(--type-project-min), 10.2vw, var(--type-project-max));
    --type-project-long: clamp(32px, 9.1vw, 42px);
    --type-h2-min: 24px;
    --type-h2-max: 31px;
    --type-h2: clamp(var(--type-h2-min), 7.2vw, var(--type-h2-max));
    --type-h3-min: 18px;
    --type-h3-max: 22px;
    --type-h3: clamp(var(--type-h3-min), 5.4vw, var(--type-h3-max));
    --type-card-title-min: 16px;
    --type-card-title-max: 19px;
    --type-card-title: clamp(var(--type-card-title-min), 4.8vw, var(--type-card-title-max));
    --type-lead-min: 14px;
    --type-lead-max: 17px;
    --type-lead: clamp(var(--type-lead-min), 4.1vw, var(--type-lead-max));
    --type-body-min: 13px;
    --type-body-max: 16px;
    --type-body: clamp(var(--type-body-min), 3.75vw, var(--type-body-max));
    --type-body-small-min: 11.5px;
    --type-body-small-max: 14px;
    --type-body-small: clamp(var(--type-body-small-min), 3.35vw, var(--type-body-small-max));
    --type-meta-min: 9.5px;
    --type-meta-max: 11.5px;
    --type-meta: clamp(var(--type-meta-min), 2.9vw, var(--type-meta-max));
    --type-micro-min: 8px;
    --type-micro-max: 9.5px;
    --type-micro: clamp(var(--type-micro-min), 2.5vw, var(--type-micro-max));
    --leading-display-cn: 1.09;
    --leading-project-cn: 1.08;
    --leading-heading-cn: 1.18;
    --leading-lead-cn: 1.68;
    --leading-body-cn: 1.7;
    --space-section-head: 30px;
    --space-head-to-body: 14px;
  }

  .nav-links a,
  .nav-action {
    font-size: var(--type-micro);
    line-height: 1.3;
  }

  .hero-copy h1,
  .hero h1 {
    font-size: var(--type-display-xl-hero-compact);
    line-height: var(--leading-display-cn);
    max-width: 8.6em;
  }

  .hero-intro,
  .head-summary,
  .head-summary p,
  .project-description,
  .migration-head > p:last-child,
  .migration-head > p:last-of-type,
  .story-copy > p:not(.eyebrow),
  .real-copy > p:not(.eyebrow),
  .panel-lead p,
  .about-position,
  .growth-statement p,
  .life-copy > p:not(.eyebrow),
  .contact > p:not(.eyebrow) {
    max-width: 100%;
    font-size: var(--type-body);
    line-height: var(--leading-body-cn);
  }

  .section-head,
  .migration-head,
  .about-lead {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: var(--space-section-head);
  }

  .section-head h2,
  .migration-head h2,
  .about-lead h2,
  .life-copy h2,
  .contact h2 {
    max-width: 100%;
    font-size: var(--type-display-l);
    line-height: var(--leading-display-cn);
    letter-spacing: var(--tracking-title-cn);
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .project-entry b {
    max-width: 8.5em;
    font-size: var(--type-h2);
    line-height: 1.16;
  }

  .project-entry em,
  .project-entry i,
  .project-facts dd,
  .scene-status b,
  .case-points p,
  .role-split b,
  .doc-stage figcaption b,
  .tool-list p,
  .growth-milestones p,
  .contact-links a {
    font-size: var(--type-body-small);
    line-height: var(--leading-compact-cn);
  }

  .project-intro h3 {
    max-width: 8.6em;
    margin-bottom: var(--space-head-to-body);
    font-size: var(--type-project-long);
    line-height: var(--leading-project-cn);
  }


  .migration-head h2 {
    max-width: 6em;
    font-size: var(--type-display-l-concept);
    line-height: 1.04;
  }

  #practice .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-bottom: 28px;
  }

  #practice .section-head h2 {
    max-width: 8em;
    font-size: var(--type-display-l);
    line-height: var(--leading-display-cn);
    white-space: normal;
    text-wrap: balance;
  }

  #practice .desktop-heading-ai {
    display: none !important;
  }

  #practice .mobile-heading-text {
    display: block !important;
  }

  #practice .mobile-heading-text > span {
    display: block;
    white-space: nowrap;
  }

  #practice .practice-content {
    min-height: 0;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .practice-tabs button strong,
  .transfer-rail .transfer-card h3,
  .tool-list b,
  .growth-milestones b {
    font-size: var(--type-card-title);
    line-height: 1.26;
  }

  .panel-lead h3,
  .story-copy h3,
  .real-copy h3 {
    max-width: 9.4em;
    margin-bottom: 12px;
    font-size: var(--type-h2);
    line-height: 1.12;
  }

  .about-lead h2 span,
  .contact .mobile-heading-text > span {
    display: block;
    white-space: nowrap;
  }

  .life-copy h2 {
    max-width: 7.2em;
  }
}


/* Round 7 targeted fix: unified project titles and compact migration layout. */
:root {
  --type-project-title-unified: clamp(62px, 4.45vw, 64px);
  --leading-project-title-unified: 1.04;
  --project-title-weight-unified: 430;
  --project-title-tracking-unified: 0;
  --project-title-width-unified: min(580px, 100%);
  --project-title-gap-unified: 28px;
}

#project-commercial .project-intro h3,
#project-hotel .project-intro h3,
#project-apartment .project-intro h3 {
  width: var(--project-title-width-unified);
  max-width: var(--project-title-width-unified);
  height: calc(var(--type-project-title-unified) * var(--leading-project-title-unified) * 2);
  margin-bottom: var(--project-title-gap-unified);
  font-size: var(--type-project-title-unified);
  line-height: var(--leading-project-title-unified);
  font-weight: var(--project-title-weight-unified);
  letter-spacing: var(--project-title-tracking-unified);
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: unset;
}

@media (min-width: 721px) and (max-width: 1400px) {
  #project-commercial .project-intro h3,
  #project-hotel .project-intro h3,
  #project-apartment .project-intro h3 {
    width: var(--project-title-width-unified);
    max-width: var(--project-title-width-unified);
    height: calc(var(--type-project-title-unified) * var(--leading-project-title-unified) * 2);
    margin-bottom: var(--project-title-gap-unified);
    font-size: var(--type-project-title-unified);
    line-height: var(--leading-project-title-unified);
  }
}

@media (min-width: 761px) {
  .migration.section-space {
    padding-top: clamp(24px, 4.8vh, 58px);
  }

  .migration-head {
    display: grid;
    grid-template-columns: minmax(350px, 0.45fr) minmax(590px, 0.55fr);
    column-gap: clamp(28px, 3.2vw, 68px);
    row-gap: 0;
    align-items: center;
    min-height: 0;
    position: relative;
  }

  .migration-head .eyebrow,
  .migration-head h2,
  .migration-head > p:last-of-type,
  .migration-legend {
    grid-column: 1;
  }

  .migration-head .eyebrow {
    margin-bottom: clamp(20px, 1.8vw, 26px);
  }

  .migration-head h2 {
    max-width: 6.4em;
    margin-top: 0;
    margin-bottom: 0;
  }

  .migration-head > p:last-of-type {
    max-width: 600px;
    margin-top: clamp(48px, 3.8vw, 56px);
    margin-bottom: 0;
  }

  .migration-legend {
    max-width: 560px;
    margin-top: clamp(40px, 3.4vw, 48px);
  }

  .migration-graph {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    width: min(900px, 108%);
    height: clamp(430px, 35vw, 570px);
    margin: clamp(-18px, -1.4vw, -10px) -2.5vw 0 auto;
  }

  .transfer-rail {
    margin-top: clamp(56px, 4.4vw, 72px);
  }
}

@media (max-width: 720px) {
  :root {
    --type-project-title-unified: clamp(40px, 10.2vw, 42px);
    --leading-project-title-unified: 1.06;
    --project-title-width-unified: min(320px, 100%);
    --project-title-gap-unified: 14px;
  }

  #project-commercial .project-intro h3,
  #project-hotel .project-intro h3,
  #project-apartment .project-intro h3 {
    width: var(--project-title-width-unified);
    max-width: var(--project-title-width-unified);
    height: calc(var(--type-project-title-unified) * var(--leading-project-title-unified) * 2);
    margin-bottom: var(--project-title-gap-unified);
    font-size: var(--type-project-title-unified);
    line-height: var(--leading-project-title-unified);
    font-weight: var(--project-title-weight-unified);
    letter-spacing: var(--project-title-tracking-unified);
  }
}


/* Round 8 targeted fix: project focus, migration, AI text hierarchy, growth cards. */
:root {
  --type-secondary-body: var(--type-body-small);
  --leading-secondary-body: var(--leading-compact-cn);
  --color-secondary-body: rgba(174, 180, 173, 0.78);
  --type-method-card-title: clamp(16px, 1.05vw, 18px);
  --method-card-title-line: 1.24;
  --method-card-title-height: calc(var(--type-method-card-title) * var(--method-card-title-line) * 2);
  --type-growth-card-title: clamp(15px, 0.96vw, 16px);
  --growth-card-title-line: 1.24;
  --growth-card-title-height: calc(var(--type-growth-card-title) * var(--growth-card-title-line));
}

@media (min-width: 761px) {
  #project-commercial .project-intro .project-facts {
    grid-template-columns: minmax(245px, 0.92fr) minmax(318px, 1.2fr);
    gap: clamp(22px, 2.8vw, 38px);
    max-width: min(640px, 100%);
  }

  #project-commercial .project-facts div {
    min-width: 0;
  }

  #project-commercial .project-facts dd {
    white-space: nowrap;
  }

  .migration.section-space {
    padding-top: clamp(20px, 3.6vh, 46px);
  }

  .migration-head {
    grid-template-columns: minmax(520px, 0.42fr) minmax(680px, 0.58fr);
    column-gap: clamp(24px, 2.6vw, 52px);
    align-items: center;
  }

  .migration-head h2 {
    max-width: none;
    min-width: 0;
    white-space: nowrap;
    text-wrap: nowrap;
    font-size: clamp(56px, 4.15vw, 64px);
    line-height: 1.02;
  }

  .migration-head .eyebrow {
    margin-bottom: clamp(16px, 1.25vw, 22px);
  }

  .migration-head > p:last-of-type {
    max-width: 590px;
    margin-top: clamp(32px, 2.7vw, 42px);
  }

  .migration-legend {
    max-width: 560px;
    margin-top: clamp(28px, 2.6vw, 40px);
  }

  .migration-graph {
    width: min(860px, 101%);
    height: clamp(470px, 38vw, 610px);
    margin: clamp(-18px, -1.4vw, -8px) 0 0 auto;
  }

  .transfer-rail {
    margin-top: clamp(42px, 3.5vw, 58px);
  }

  .transfer-rail .transfer-card {
    min-height: 224px;
    display: grid;
    align-items: start;
  }

  .transfer-rail .transfer-card > div {
    align-self: start;
    margin-top: 0;
  }

  .transfer-rail .transfer-card > div {
    display: grid;
    grid-template-rows: 20px var(--method-card-title-height) auto;
    align-content: start;
    gap: 10px;
  }

  .transfer-rail .transfer-card small {
    display: flex;
    align-items: flex-start;
    min-height: 20px;
    margin: 0;
  }

  .transfer-rail .transfer-card h3 {
    display: flex;
    align-items: flex-start;
    min-height: var(--method-card-title-height);
    margin: 0;
    font-size: var(--type-method-card-title);
    line-height: var(--method-card-title-line);
    font-weight: 520;
    letter-spacing: 0;
    text-wrap: balance;
  }

  .transfer-rail .transfer-card p {
    margin-top: 0;
  }

  .case-points p,
  .real-copy > p:not(.eyebrow),
  .website-case .real-copy > p:not(.eyebrow),
  .tool-list p {
    max-width: var(--measure-body);
    margin-top: 0;
    color: var(--color-secondary-body);
    font-size: var(--type-secondary-body);
    line-height: var(--leading-secondary-body);
    font-weight: 400;
    letter-spacing: 0;
  }

  .case-points article {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
  }

  .case-points span,
  .tool-list span {
    color: rgba(168, 216, 200, 0.72);
    font-size: var(--type-meta);
    line-height: 1.45;
    letter-spacing: var(--tracking-meta-en);
  }

  .tool-list b {
    font-size: var(--type-card-title);
    line-height: 1.24;
    font-weight: 560;
    letter-spacing: 0;
  }

  .growth-statement {
    display: grid;
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 0.62fr);
    align-items: center;
    gap: clamp(18px, 2vw, 28px);
  }

  .growth-statement span,
  .growth-statement p {
    align-self: center;
    margin: 0;
  }

  .growth-milestones {
    align-items: stretch;
  }

  .growth-milestones article {
    min-height: 246px;
  }

  .growth-milestones b {
    display: block;
    width: 100%;
    min-height: var(--growth-card-title-height);
    margin: 10px 0 10px;
    font-size: var(--type-growth-card-title);
    line-height: var(--growth-card-title-line);
    font-weight: 560;
    letter-spacing: 0;
    white-space: nowrap;
    text-wrap: nowrap;
    overflow-wrap: normal;
  }

  .growth-milestones p {
    margin-top: 0;
  }
}

@media (min-width: 761px) and (max-width: 1366px) {
  .migration-head {
    grid-template-columns: minmax(500px, 0.42fr) minmax(620px, 0.58fr);
  }

  .migration-head h2 {
    font-size: clamp(53px, 4vw, 60px);
  }

  .migration-graph {
    width: min(820px, 101%);
    margin-right: 0;
  }

  .growth-milestones b {
    font-size: clamp(14px, 1.02vw, 15px);
  }
}

@media (max-width: 720px) {
  #project-commercial .project-facts dd {
    white-space: normal;
  }

  .case-points p,
  .real-copy > p:not(.eyebrow),
  .website-case .real-copy > p:not(.eyebrow),
  .tool-list p {
    color: var(--color-secondary-body);
    font-size: var(--type-secondary-body);
    line-height: var(--leading-secondary-body);
    font-weight: 400;
    letter-spacing: 0;
  }

  .tool-list b {
    font-size: var(--type-card-title);
    line-height: 1.26;
    font-weight: 560;
    letter-spacing: 0;
  }

  .growth-statement {
    align-items: center;
  }
}

/* Round 9 local-only graph refinement: enlarge and lower desktop system map. */
@media (min-width: 1025px) {
  .migration-graph {
    width: min(940px, 109%);
    height: clamp(535px, 42vw, 660px);
    margin: clamp(18px, 2vw, 34px) -2% 0 auto;
  }

  .transfer-rail {
    margin-top: clamp(30px, 2.8vw, 44px);
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .migration-graph {
    width: min(900px, 108%);
    height: clamp(510px, 41vw, 620px);
    margin-top: clamp(16px, 1.8vw, 28px);
    margin-right: -1%;
  }
}
/* Mr. Mellow Phase 1 */
:root {
  --mellow-ink: #3f382f;
  --mellow-muted: #776b5d;
  --mellow-paper: #eee6d8;
  --mellow-paper-deep: #e2d5c2;
  --mellow-gold: #b69a73;
  --mellow-blue: #233340;
  --mellow-moss: #5f6540;
}

.practice-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: visible;
}

.practice-tabs button,
.practice-tabs button.active {
  flex: initial;
  width: 100%;
  max-width: none;
  min-width: 0;
  scroll-snap-align: unset;
}

.practice-tabs button {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "num title icon"
    "num meta icon";
  align-items: center;
  column-gap: 14px;
  min-height: 104px;
  padding: 18px clamp(14px, 1.5vw, 24px);
  overflow: hidden;
  text-align: left;
}

.practice-tabs button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.72) contrast(1.05) brightness(0.7);
  transform: scale(1.01);
  transition: opacity 0.5s ease, transform 0.75s var(--ease), filter 0.5s ease;
}

.practice-tabs button span,
.practice-tabs button strong,
.practice-tabs button small,
.practice-tabs button i {
  position: relative;
  z-index: 1;
}

.practice-tabs button span {
  grid-area: num;
  margin-right: 0;
  color: rgba(235, 238, 232, 0.46);
}

.practice-tabs button strong {
  grid-area: title;
  color: rgba(235, 238, 232, 0.62);
}

.practice-tabs button small {
  grid-area: meta;
  margin-top: 5px;
  color: rgba(174, 180, 173, 0.54);
}

.practice-tabs button i {
  grid-area: icon;
  align-self: end;
  color: rgba(235, 238, 232, 0.35);
  font-style: normal;
}

.practice-tabs button:hover img,
.practice-tabs button.active img,
.practice-tabs button:focus-visible img {
  opacity: 0.22;
  filter: saturate(0.86) contrast(1.05) brightness(0.86);
  transform: scale(1.035);
}

.practice-tabs button.active strong,
.practice-tabs button:hover strong,
.practice-tabs button:focus-visible strong {
  color: var(--ink);
}

.practice-tabs button.active span,
.practice-tabs button:hover span,
.practice-tabs button:focus-visible span,
.practice-tabs button.active i {
  color: var(--green);
}

.ip-panel {
  display: block;
}

.ip-panel[hidden] {
  display: none;
}

.ip-panel-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(340px, 0.42fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: stretch;
}

.ip-panel-copy {
  align-self: center;
  max-width: 600px;
}

.ip-panel-copy h3 {
  max-width: 8em;
  margin: 0 0 22px;
  font-size: clamp(34px, 3.3vw, 54px);
  font-weight: 430;
  line-height: 1.08;
  letter-spacing: 0;
}

.ip-panel-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--soft);
  font-size: var(--type-body);
  line-height: 1.78;
}

.mellow-entry-card {
  position: relative;
  min-height: clamp(380px, 34vw, 520px);
  display: grid;
  align-content: end;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(235, 238, 232, 0.22);
  border-radius: 8px;
  background: #111311;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
}

.mellow-entry-card::before,
.mellow-entry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mellow-entry-card::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 12, 10, 0.9) 0%, rgba(10, 12, 10, 0.44) 46%, rgba(10, 12, 10, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 12, 10, 0.88) 0%, transparent 64%);
}

.mellow-entry-card::after {
  z-index: 2;
  border: 1px solid transparent;
  transition: border-color 0.45s ease;
}

.mellow-entry-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.82) contrast(1.04) brightness(0.76);
  transition: transform 0.8s var(--ease), filter 0.6s ease;
}

.mellow-entry-card:hover > img,
.mellow-entry-card:focus-visible > img {
  transform: scale(1.02);
  filter: saturate(0.9) contrast(1.04) brightness(0.84);
}

.mellow-entry-card:hover::after,
.mellow-entry-card:focus-visible::after {
  border-color: rgba(182, 154, 115, 0.72);
}

.entry-index,
.entry-copy {
  position: relative;
  z-index: 3;
}

.entry-index {
  position: absolute;
  top: clamp(22px, 2.4vw, 34px);
  left: clamp(24px, 3vw, 38px);
  color: rgba(235, 238, 232, 0.62);
  font-size: var(--type-meta);
  letter-spacing: 0.12em;
}

.entry-copy p {
  margin: 0 0 10px;
  color: rgba(235, 238, 232, 0.68);
  font-size: var(--type-meta);
  letter-spacing: 0.12em;
}

.entry-copy h4 {
  max-width: 10em;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 430;
  line-height: 1.18;
  letter-spacing: 0;
}

.entry-copy em {
  display: block;
  max-width: 24em;
  color: rgba(235, 238, 232, 0.72);
  font-size: var(--type-body-small);
  font-style: normal;
  line-height: 1.68;
}

.entry-copy .tags {
  margin-top: 22px;
}

.entry-copy b {
  display: inline-flex;
  margin-top: 24px;
  padding-top: 14px;
  color: var(--green);
  border-top: 1px solid rgba(235, 238, 232, 0.18);
  font-size: var(--type-meta);
  font-weight: 500;
  letter-spacing: 0.11em;
}

.mellow-project {
  position: relative;
  background:
    linear-gradient(180deg, rgba(16, 18, 17, 0) 0%, rgba(20, 18, 15, 0.68) 18%, rgba(17, 17, 15, 0.94) 100%),
    var(--bg);
}

.mellow-hero {
  --project-accent: var(--mellow-gold);
  position: relative;
  min-height: min(880px, calc(100svh - 18px));
  overflow: hidden;
  isolation: isolate;
  scroll-margin-top: 108px;
  border-top: 1px solid rgba(235, 238, 232, 0.16);
  border-bottom: 1px solid rgba(235, 238, 232, 0.16);
  background: #0b0c0b;
}

.mellow-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(235, 238, 232, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(235, 238, 232, 0.08) 1px, transparent 1px);
  background-size: 100% 22%, calc(100% / 12) 100%;
  opacity: 0.18;
  mask-image: linear-gradient(90deg, #000 0%, #000 42%, transparent 88%);
}

.mellow-backdrops {
  z-index: -3;
}

.mellow-backdrops img {
  object-position: 52% center;
  filter: saturate(0.78) contrast(1.04) brightness(0.74);
}

.mellow-backdrops img.active {
  filter: saturate(0.9) contrast(1.04) brightness(0.84);
}

.mellow-backdrops img[data-fit="contain"] {
  object-fit: contain;
  object-position: 54% center;
  padding: min(7vw, 92px) min(22vw, 260px) min(5vw, 70px) min(28vw, 340px);
  background:
    radial-gradient(circle at 56% 48%, rgba(150, 123, 88, 0.35), transparent 34%),
    linear-gradient(120deg, #14110d 0%, #272016 48%, #0d0d0b 100%);
}

.mellow-hero-shade {
  position: absolute;
  pointer-events: none;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.96) 0%, rgba(7, 9, 8, 0.78) 31%, rgba(7, 9, 8, 0.1) 58%, rgba(7, 9, 8, 0.66) 100%),
    radial-gradient(circle at 58% 58%, transparent 0 22%, rgba(8, 10, 9, 0.16) 48%, rgba(8, 10, 9, 0.72) 100%),
    linear-gradient(0deg, rgba(7, 9, 8, 0.84) 0%, transparent 38%, rgba(7, 9, 8, 0.26) 100%);
}

.mellow-hero-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(370px, 0.34fr) minmax(0, 0.44fr) minmax(230px, 0.22fr);
  gap: clamp(26px, 3vw, 50px);
  align-items: center;
  padding-top: clamp(116px, 13vh, 148px);
  padding-bottom: clamp(70px, 8vh, 104px);
}

.mellow-hero-copy {
  grid-column: 1;
  max-width: 560px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.mellow-hero-copy h2 {
  margin: clamp(38px, 5vw, 68px) 0 22px;
  color: rgba(246, 247, 242, 0.95);
  font-size: clamp(50px, 4.8vw, 76px);
  font-weight: 410;
  line-height: 1.02;
  letter-spacing: 0;
  word-break: keep-all;
  white-space: nowrap;
}

.mellow-hero-copy h2 span {
  display: block;
  margin-top: 8px;
  font-size: 0.62em;
  line-height: 1.08;
  white-space: nowrap;
}

.mellow-scene-line {
  max-width: 18em;
  margin: 0 0 28px;
  color: rgba(235, 238, 232, 0.82);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.7;
}

.mellow-scene-line::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  margin-bottom: 18px;
  background: rgba(235, 238, 232, 0.58);
}

.mellow-hero-desc {
  max-width: 26em;
  margin-bottom: 28px;
  color: rgba(235, 238, 232, 0.62);
  font-size: var(--type-body-small);
  line-height: 1.72;
}

.mellow-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(235, 238, 232, 0.16);
  border-bottom: 1px solid rgba(235, 238, 232, 0.16);
}

.mellow-facts div:last-child {
  grid-column: 1 / -1;
}

.mellow-facts dt {
  margin-bottom: 8px;
  color: rgba(235, 238, 232, 0.38);
  font-size: var(--type-meta);
  letter-spacing: 0.12em;
}

.mellow-facts dd {
  margin: 0;
  color: rgba(235, 238, 232, 0.74);
  font-size: var(--type-body-small);
  line-height: 1.5;
}

.mellow-status {
  margin-top: 34px;
}

.mellow-scene-deck {
  grid-column: 3;
  width: min(100%, 318px);
  justify-self: end;
  gap: 8px;
}

.mellow-scene-card,
.mellow-scene-card:nth-child(n),
.mellow-scene-card:hover,
.mellow-scene-card:focus-visible,
.mellow-scene-card.active {
  width: 100%;
  height: clamp(88px, 11vh, 128px);
  margin: 0;
  transform: none;
  border-color: rgba(235, 238, 232, 0.22);
}

.mellow-scene-card.active,
.mellow-scene-card:hover,
.mellow-scene-card:focus-visible {
  height: clamp(126px, 17vh, 174px);
  border-color: rgba(235, 238, 232, 0.58);
}

.mellow-scene-card img {
  filter: saturate(0.72) contrast(1.04) brightness(0.76);
}

.mellow-scene-card.active img,
.mellow-scene-card:hover img,
.mellow-scene-card:focus-visible img {
  filter: saturate(0.9) contrast(1.03) brightness(0.9);
  transform: scale(1.02);
}

.mellow-scroll-note {
  color: rgba(235, 238, 232, 0.44);
}

.mellow-origin {
  scroll-margin-top: 108px;
  padding: clamp(70px, 9vw, 128px) 0 clamp(76px, 9vw, 132px);
}

.mellow-paper {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 5.4vw, 78px);
  color: var(--mellow-ink);
  background:
    linear-gradient(90deg, rgba(86, 69, 48, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(86, 69, 48, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.56), transparent 26%),
    linear-gradient(180deg, var(--mellow-paper) 0%, #e9dece 100%);
  background-size: 80px 80px, 80px 80px, auto, auto;
  border: 1px solid rgba(237, 226, 210, 0.62);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.mellow-paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: 0.1;
}

.mellow-section-head,
.mellow-origin-copy,
.mellow-translation {
  position: relative;
  z-index: 1;
}

.mellow-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(280px, 0.52fr);
  gap: clamp(30px, 5vw, 74px);
  align-items: start;
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid rgba(82, 67, 49, 0.18);
}

.mellow-section-head .eyebrow {
  color: rgba(82, 67, 49, 0.55);
}

.mellow-section-head h3 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 46px);
  font-weight: 450;
  line-height: 1.12;
  letter-spacing: 0;
}

.mellow-section-head blockquote {
  margin: 0;
  color: #5b4d3c;
  font-family: Georgia, "Times New Roman", "SimSun", serif;
  font-size: clamp(28px, 3vw, 48px);
  line-height: 1.52;
  letter-spacing: 0;
}

.mellow-section-head blockquote::before,
.mellow-section-head blockquote::after {
  color: rgba(134, 105, 68, 0.62);
  font-size: 1.2em;
}

.mellow-section-head blockquote::before {
  content: "“";
  margin-right: 0.18em;
}

.mellow-section-head blockquote::after {
  content: "”";
  margin-left: 0.18em;
}

.mellow-origin-copy {
  max-width: 760px;
  margin-top: clamp(30px, 4vw, 52px);
  color: var(--mellow-muted);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.9;
}

.mellow-origin-copy p {
  margin-bottom: 12px;
}

.mellow-translation {
  margin-top: clamp(36px, 5vw, 68px);
}

.mellow-translation-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.mellow-translation-title span {
  color: rgba(82, 67, 49, 0.55);
  font-size: var(--type-meta);
  letter-spacing: 0.12em;
}

.mellow-translation-title h4 {
  margin: 0;
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: 0;
}

.translation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.translation-card {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 1.45vw, 20px);
  border: 1px solid rgba(82, 67, 49, 0.16);
  border-radius: 8px;
  background: rgba(255, 251, 242, 0.36);
}

.translation-card header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.translation-card header span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: #fff8ea;
  border-radius: 50%;
  background: #767452;
  font-size: 11px;
  line-height: 1;
}

.translation-card h5 {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 18px);
  font-weight: 520;
  line-height: 1.25;
  letter-spacing: 0;
}

.translation-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.translation-images figure {
  margin: 0;
}

.translation-images img {
  width: 100%;
  aspect-ratio: 1.52;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  border: 1px solid rgba(82, 67, 49, 0.12);
  background: rgba(255, 255, 255, 0.3);
}

.translation-images i {
  justify-self: center;
  color: rgba(82, 67, 49, 0.48);
  font-style: normal;
  line-height: 1;
}

.translation-images figcaption {
  margin-top: 5px;
  color: rgba(82, 67, 49, 0.58);
  font-size: var(--type-micro);
  letter-spacing: 0.08em;
}

.translation-card p {
  margin: 0;
  color: var(--mellow-muted);
  font-size: var(--type-body-small);
  line-height: 1.64;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .practice-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-panel-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .mellow-hero-inner {
    grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.34fr) minmax(210px, 0.28fr);
    gap: 24px;
  }

  .translation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .practice-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .practice-tabs button,
  .practice-tabs button.active {
    flex: initial;
    min-height: 100px;
    padding: 12px 10px;
    scroll-snap-align: unset;
  }

  .practice-tabs button {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "num icon"
      "title title"
      "meta meta";
    row-gap: 4px;
  }

  .practice-tabs button strong {
    font-size: 12px;
    line-height: 1.22;
  }

  .practice-tabs button small {
    font-size: 7px;
    line-height: 1.32;
  }

  .practice-tabs button i {
    justify-self: end;
  }

  .ip-panel-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .ip-panel-copy h3 {
    max-width: none;
    font-size: var(--type-h2);
  }

  .mellow-entry-card {
    min-height: 430px;
    padding: 22px;
  }

  .mellow-entry-card > img {
    object-position: center top;
  }

  .mellow-project {
    margin-top: 16px;
  }

  .mellow-hero {
    min-height: 0;
    scroll-margin-top: 136px;
  }

  .mellow-hero::before {
    opacity: 0.12;
    mask-image: linear-gradient(180deg, #000, transparent 86%);
  }

  .mellow-backdrops {
    position: relative;
    inset: auto;
    z-index: 0;
    height: clamp(410px, 116vw, 560px);
    overflow: hidden;
  }

  .mellow-backdrops img {
    object-position: center top;
    filter: saturate(0.82) contrast(1.04) brightness(0.82);
  }

  .mellow-backdrops img.active {
    filter: saturate(0.92) contrast(1.04) brightness(0.9);
  }

  .mellow-backdrops img[data-fit="contain"] {
    padding: 34px 18px;
    object-position: center;
  }

  .mellow-hero-shade {
    z-index: 1;
    inset: 0 0 auto;
    height: clamp(410px, 116vw, 560px);
    background:
      linear-gradient(0deg, rgba(9, 10, 9, 0.54) 0%, transparent 42%, rgba(9, 10, 9, 0.2) 100%),
      linear-gradient(90deg, rgba(9, 10, 9, 0.2), transparent 60%);
  }

  .mellow-hero-inner {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 26px;
    padding-bottom: 42px;
  }

  .mellow-hero-copy {
    grid-column: 1;
  }

  .mellow-hero-copy h2 {
    margin-top: 16px;
    font-size: clamp(42px, 12vw, 54px);
  }

  .mellow-scene-line {
    max-width: 100%;
    font-size: var(--type-lead);
  }

  .mellow-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .mellow-facts div:last-child {
    grid-column: auto;
  }

  .mellow-scene-deck {
    grid-column: 1;
    width: 100%;
    justify-self: stretch;
    flex-direction: row;
    align-items: stretch;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mellow-scene-deck::-webkit-scrollbar {
    display: none;
  }

  .mellow-scene-card,
  .mellow-scene-card:nth-child(n),
  .mellow-scene-card:hover,
  .mellow-scene-card:focus-visible,
  .mellow-scene-card.active {
    flex: 0 0 76%;
    width: auto;
    height: 134px;
    scroll-snap-align: start;
  }

  .mellow-scene-card.active {
    border-color: rgba(182, 154, 115, 0.86);
  }

  .mellow-scroll-note {
    display: none;
  }

  .mellow-origin {
    scroll-margin-top: 136px;
    padding: 42px 0 64px;
  }

  .mellow-paper {
    width: calc(100% + 30px);
    margin-left: -15px;
    padding: 30px 18px 34px;
    border-left: 0;
    border-right: 0;
  }

  .mellow-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .mellow-section-head h3 {
    font-size: var(--type-h2);
  }

  .mellow-section-head blockquote {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.55;
  }

  .mellow-origin-copy {
    font-size: var(--type-body);
  }

  .mellow-translation-title {
    align-items: flex-start;
  }

  .mellow-translation-title h4 {
    font-size: var(--type-h3);
  }

  .translation-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .translation-card {
    padding: 16px;
  }

  .translation-images img {
    aspect-ratio: 1.45;
  }
}

@media (max-width: 430px) {
  .practice-tabs button,
  .practice-tabs button.active {
    min-height: 96px;
    padding: 11px 9px;
  }

  .mellow-scene-card,
  .mellow-scene-card:nth-child(n),
  .mellow-scene-card:hover,
  .mellow-scene-card:focus-visible,
  .mellow-scene-card.active {
    flex-basis: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .practice-tabs button img,
  .mellow-entry-card > img,
  .mellow-backdrops img,
  .mellow-scene-card,
  .mellow-scene-card img {
    transition: none !important;
  }
}
/* 2026-07 AI practice restructure: four tabs + Mr. Mellow unified gallery */
.practice .section-head h2 span,
.ai-method .section-head h2 span {
  letter-spacing: 0;
}

.design-outcome {
  align-items: center;
  min-height: clamp(520px, 44vw, 680px);
}

.website-case {
  grid-template-columns: minmax(360px, 0.52fr) minmax(340px, 0.48fr);
  gap: clamp(34px, 4vw, 58px);
}

.compact-points {
  max-width: none;
  margin-top: 24px;
  gap: 12px;
}

.compact-points article {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 12px;
}

.website-process {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.website-process img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(235, 238, 232, 0.18);
  border-radius: 8px;
  filter: saturate(0.78) contrast(1.04) brightness(0.82);
  background: rgba(255, 255, 255, 0.04);
}

.website-process span {
  color: var(--green);
  font-size: 18px;
}

.mellow-project-unified {
  scroll-margin-top: 124px;
  margin-top: clamp(42px, 5vw, 70px);
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid rgba(235, 238, 232, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 43, 38, 0.8) 0%, rgba(28, 23, 18, 0.92) 42%, rgba(13, 15, 14, 0.98) 100%),
    #111311;
}

.mellow-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(310px, 0.36fr);
  gap: clamp(18px, 2.6vw, 34px);
  align-items: stretch;
}

.mellow-gallery-media {
  position: relative;
  min-height: clamp(430px, 40vw, 650px);
  overflow: hidden;
  border: 1px solid rgba(235, 238, 232, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(235, 238, 232, 0.05), rgba(235, 238, 232, 0.02)),
    #0b0c0b;
}

.mellow-gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.88) contrast(1.04) brightness(0.9);
  background: #0b0c0b;
}

.mellow-project-unified.is-switching .mellow-gallery-media img {
  animation: mellowGalleryFade 0.34s ease both;
}

@keyframes mellowGalleryFade {
  from { opacity: 0.72; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

.mellow-gallery-counter {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(235, 238, 232, 0.16);
  border-radius: 8px;
  background: rgba(8, 9, 8, 0.72);
  backdrop-filter: blur(14px);
  color: rgba(235, 238, 232, 0.76);
  font-size: var(--type-meta);
  letter-spacing: 0.08em;
}

.mellow-gallery-counter b {
  color: rgba(235, 238, 232, 0.94);
  font-weight: 520;
}

.mellow-gallery-copy {
  display: grid;
  align-content: center;
  min-height: 100%;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid rgba(235, 238, 232, 0.14);
  border-radius: 8px;
  background: rgba(10, 12, 11, 0.62);
}

.mellow-gallery-copy h4 {
  margin: 0 0 18px;
  color: rgba(246, 247, 242, 0.96);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 430;
  line-height: 1.12;
  letter-spacing: 0;
}

.mellow-gallery-copy p:not(.eyebrow) {
  margin: 0;
  color: rgba(235, 238, 232, 0.76);
  font-size: var(--type-body);
  line-height: 1.86;
}

.mellow-gallery-copy blockquote {
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid rgba(182, 154, 115, 0.34);
  color: rgba(218, 198, 169, 0.9);
  font-size: clamp(18px, 1.5vw, 24px);
  font-weight: 360;
  line-height: 1.68;
}

.mellow-gallery-source {
  display: block;
  margin-top: 18px;
  color: rgba(174, 180, 173, 0.48);
  font-size: var(--type-meta);
  letter-spacing: 0.09em;
  line-height: 1.5;
}

.mellow-gallery-source span {
  color: rgba(218, 198, 169, 0.72);
}

.mellow-gallery-actions {
  display: flex;
  gap: 10px;
  margin-top: clamp(22px, 3vw, 34px);
}

.mellow-nav-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(235, 238, 232, 0.24);
  border-radius: 50%;
  color: rgba(235, 238, 232, 0.86);
  background: rgba(235, 238, 232, 0.06);
  font-size: 18px;
  cursor: pointer;
}

.mellow-nav-button:hover,
.mellow-nav-button:focus-visible {
  border-color: rgba(182, 154, 115, 0.76);
  color: #fff;
  background: rgba(182, 154, 115, 0.16);
}

.mellow-thumb-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.mellow-thumb-rail button {
  position: relative;
  min-height: 118px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(235, 238, 232, 0.14);
  border-radius: 8px;
  background: rgba(235, 238, 232, 0.04);
  color: rgba(235, 238, 232, 0.74);
  text-align: left;
  cursor: pointer;
}

.mellow-thumb-rail button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(5, 6, 5, 0.78) 100%);
  pointer-events: none;
}

.mellow-thumb-rail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) brightness(0.68);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.mellow-thumb-rail span,
.mellow-thumb-rail b {
  position: relative;
  z-index: 1;
  display: block;
}

.mellow-thumb-rail span {
  color: rgba(218, 198, 169, 0.86);
  font-size: var(--type-meta);
  letter-spacing: 0.12em;
}

.mellow-thumb-rail b {
  max-width: 7em;
  margin-top: 58px;
  color: rgba(235, 238, 232, 0.82);
  font-size: 12px;
  font-weight: 520;
  line-height: 1.35;
}

.mellow-thumb-rail button:hover,
.mellow-thumb-rail button:focus-visible,
.mellow-thumb-rail button.active {
  border-color: rgba(182, 154, 115, 0.74);
  background: rgba(182, 154, 115, 0.08);
}

.mellow-thumb-rail button:hover img,
.mellow-thumb-rail button:focus-visible img,
.mellow-thumb-rail button.active img {
  transform: scale(1.04);
  filter: saturate(0.9) contrast(1.04) brightness(0.82);
}

.ai-method {
  padding-top: clamp(42px, 6vw, 84px);
}

.method-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.26fr) minmax(0, 0.74fr);
  gap: clamp(28px, 5vw, 74px);
  padding: clamp(24px, 3vw, 38px) 0;
  border-top: 1px solid rgba(235, 238, 232, 0.16);
  border-bottom: 1px solid rgba(235, 238, 232, 0.16);
}

.method-statement {
  margin: 0;
  color: rgba(218, 198, 169, 0.88);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 360;
  line-height: 1.55;
}

.method-list {
  display: grid;
  gap: 0;
}

.method-list article {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid rgba(235, 238, 232, 0.12);
}

.method-list article:first-child {
  border-top: 0;
}

.method-list span {
  color: rgba(159, 195, 178, 0.86);
  font-size: var(--type-meta);
  letter-spacing: 0.1em;
}

.method-list b {
  color: rgba(235, 238, 232, 0.82);
  font-size: var(--type-body-small);
  font-weight: 420;
  line-height: 1.78;
}

.method-list em {
  color: rgba(174, 180, 173, 0.58);
  font-size: var(--type-meta);
  font-style: normal;
  line-height: 1.55;
}

@media (min-width: 721px) and (max-width: 1100px) {
  .website-case,
  .mellow-gallery-layout,
  .method-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .mellow-thumb-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .method-list article {
    grid-template-columns: 140px minmax(0, 1fr) 190px;
  }
}

@media (max-width: 720px) {
  .design-outcome,
  .website-case {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .compact-points article {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .website-process {
    grid-template-columns: minmax(0, 1fr);
  }

  .website-process span {
    justify-self: center;
    transform: rotate(90deg);
  }

  .mellow-project-unified {
    scroll-margin-top: 136px;
    width: calc(100% + 30px);
    margin-left: -15px;
    padding: 14px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .mellow-gallery-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .mellow-gallery-media {
    min-height: clamp(300px, 92vw, 430px);
  }

  .mellow-gallery-copy {
    padding: 22px 18px;
  }

  .mellow-gallery-copy h4 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .mellow-gallery-counter {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 10px;
    gap: 10px;
  }

  .mellow-thumb-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mellow-thumb-rail::-webkit-scrollbar {
    display: none;
  }

  .mellow-thumb-rail button {
    flex: 0 0 44%;
    min-height: 110px;
    scroll-snap-align: start;
  }

  .method-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .method-list article {
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    padding: 16px 0;
  }
}

@media (max-width: 430px) {
  .mellow-thumb-rail button {
    flex-basis: 62%;
  }

  .method-statement {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mellow-project-unified.is-switching .mellow-gallery-media img {
    animation: none;
  }

  .mellow-thumb-rail img,
  .mellow-gallery-media img,
  .mellow-nav-button {
    transition: none !important;
  }
}
/* 2026-07 gallery-side placement refinement */
.mellow-gallery-side {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 100%;
}

@media (min-width: 1101px) {
  .mellow-gallery-media {
    min-height: 0;
    height: clamp(410px, 34vw, 510px);
  }

  .mellow-gallery-copy {
    align-content: end;
    padding: clamp(20px, 2.2vw, 32px);
  }

  .mellow-gallery-copy h4 {
    font-size: clamp(28px, 2.3vw, 40px);
  }

  .mellow-gallery-copy blockquote {
    margin-top: 20px;
    font-size: clamp(17px, 1.25vw, 21px);
  }

  .mellow-gallery-actions {
    margin-top: 20px;
  }

  .mellow-thumb-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 0;
  }

  .mellow-thumb-rail button {
    min-height: 76px;
    padding: 8px;
  }

  .mellow-thumb-rail b {
    margin-top: 28px;
    font-size: 11px;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .mellow-gallery-side {
    display: flex;
    flex-direction: column;
  }

  .mellow-gallery-media {
    min-height: 0;
    height: clamp(380px, 64vw, 560px);
  }

  .mellow-thumb-rail {
    order: -1;
  }
}

@media (max-width: 720px) {
  .mellow-gallery-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mellow-thumb-rail {
    order: -1;
    margin-top: 0;
  }
}
/* 2026-07 mobile gallery rail height fix */
@media (max-width: 1100px) {
  .mellow-gallery-side {
    min-height: 0;
  }

  .mellow-gallery-copy {
    min-height: auto;
  }

  .mellow-thumb-rail {
    flex: 0 0 auto;
    min-height: 122px;
  }
}
/* 2026-07 Mr. Mellow chapter index overlays the main visual */
.mellow-gallery-media {
  isolation: isolate;
}

.mellow-gallery-media::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 1;
  width: min(380px, 46%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(8, 9, 8, 0.42) 38%, rgba(8, 9, 8, 0.82) 100%);
}

.mellow-gallery-media .mellow-gallery-counter {
  z-index: 4;
}

.mellow-gallery-media .mellow-thumb-rail {
  position: absolute;
  z-index: 5;
  top: 50%;
  right: clamp(12px, 1.5vw, 20px);
  width: min(300px, 34%);
  max-height: calc(100% - 118px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 2px;
  overflow-x: hidden;
  overflow-y: auto;
  transform: translateY(-50%);
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.mellow-gallery-media .mellow-thumb-rail::-webkit-scrollbar {
  display: none;
}

.mellow-gallery-media .mellow-thumb-rail button,
.mellow-gallery-media .mellow-thumb-rail button.active {
  flex: 0 0 clamp(72px, 8vh, 92px);
  width: 100%;
  min-height: 0;
  height: auto;
  padding: 9px;
  scroll-snap-align: center;
  background: rgba(8, 9, 8, 0.62);
  backdrop-filter: blur(12px);
  transition: flex-basis 0.45s var(--ease), border-color 0.35s ease, background 0.35s ease;
}

.mellow-gallery-media .mellow-thumb-rail button.active,
.mellow-gallery-media .mellow-thumb-rail button:hover,
.mellow-gallery-media .mellow-thumb-rail button:focus-visible {
  flex-basis: clamp(112px, 14vh, 142px);
  border-color: rgba(218, 198, 169, 0.82);
  background: rgba(20, 17, 13, 0.72);
}

.mellow-gallery-media .mellow-thumb-rail b {
  margin-top: clamp(28px, 4vh, 52px);
}

.mellow-gallery-media .mellow-thumb-rail span {
  color: rgba(238, 226, 204, 0.9);
}

.mellow-project-unified.auto-running .mellow-thumb-rail button.active::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, rgba(218, 198, 169, 0), rgba(218, 198, 169, 0.95));
  animation: mellowIndexProgress 6.8s linear both;
}

@keyframes mellowIndexProgress {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .mellow-gallery-media .mellow-thumb-rail {
    width: min(280px, 38%);
    max-height: calc(100% - 96px);
  }
}

@media (max-width: 720px) {
  .mellow-gallery-media::after {
    inset: auto 0 0;
    width: auto;
    height: 56%;
    background: linear-gradient(0deg, rgba(8, 9, 8, 0.9) 0%, rgba(8, 9, 8, 0.52) 42%, transparent 100%);
  }

  .mellow-gallery-media .mellow-thumb-rail {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 58px;
    width: auto;
    max-height: none;
    min-height: 112px;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    transform: none;
    scroll-snap-type: x mandatory;
  }

  .mellow-gallery-media .mellow-thumb-rail button,
  .mellow-gallery-media .mellow-thumb-rail button.active {
    flex: 0 0 42%;
    min-height: 108px;
  }

  .mellow-gallery-media .mellow-thumb-rail button.active,
  .mellow-gallery-media .mellow-thumb-rail button:hover,
  .mellow-gallery-media .mellow-thumb-rail button:focus-visible {
    flex-basis: 56%;
  }

  .mellow-gallery-media .mellow-thumb-rail b {
    margin-top: 46px;
  }
}

@media (max-width: 430px) {
  .mellow-gallery-media .mellow-thumb-rail button,
  .mellow-gallery-media .mellow-thumb-rail button.active {
    flex-basis: 54%;
  }

  .mellow-gallery-media .mellow-thumb-rail button.active,
  .mellow-gallery-media .mellow-thumb-rail button:hover,
  .mellow-gallery-media .mellow-thumb-rail button:focus-visible {
    flex-basis: 66%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mellow-gallery-media .mellow-thumb-rail button,
  .mellow-project-unified.auto-running .mellow-thumb-rail button.active::before {
    animation: none !important;
    transition: none !important;
  }
}

/* 2026-07 AI workflow reference layout */
.ai-method .method-head {
  align-items: start;
  margin-bottom: clamp(42px, 5vw, 76px);
}

.ai-method .method-head .head-summary {
  max-width: 680px;
}

.ai-method .method-head .head-summary p {
  color: rgba(235, 238, 232, 0.72);
  font-size: clamp(16px, 1.28vw, 22px);
  line-height: 1.9;
}

.method-flow {
  position: relative;
  border-top: 1px solid rgba(235, 238, 232, 0.15);
  border-bottom: 1px solid rgba(235, 238, 232, 0.15);
}

.method-steps {
  --method-node-size: 64px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 46px);
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: clamp(50px, 5.2vw, 82px) 0 clamp(44px, 5vw, 76px);
}

.method-step {
  position: relative;
  min-width: 0;
}

.method-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--method-node-size) + 12px);
  right: -34px;
  top: 70px;
  height: 1px;
  background: linear-gradient(90deg, rgba(235, 238, 232, 0.7), rgba(235, 238, 232, 0.34) 72%, transparent);
}

.method-step:nth-child(1)::after,
.method-step:nth-child(2)::after {
  background:
    linear-gradient(90deg, rgba(235, 238, 232, 0.62), rgba(235, 238, 232, 0.62)) left / 58% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(235, 238, 232, 0.52) 0 3px, transparent 3px 10px) right / 38% 1px no-repeat;
}

.method-step.is-final::after {
  content: "";
  position: absolute;
  left: calc(var(--method-node-size) + 12px);
  right: 2px;
  top: 70px;
  height: 1px;
  background: linear-gradient(90deg, rgba(218, 198, 169, 0.72), rgba(218, 198, 169, 0.2));
}

.method-step.is-final::before {
  content: "";
  position: absolute;
  top: 67px;
  right: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 228, 190, 0.92);
  box-shadow: 0 0 18px rgba(250, 211, 154, 0.78), 0 0 42px rgba(250, 211, 154, 0.38);
}

.method-step-number {
  display: block;
  margin: 0 0 18px 24px;
  color: rgba(168, 216, 200, 0.8);
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.method-step-node {
  display: grid;
  place-items: center;
  position: relative;
  width: var(--method-node-size);
  height: var(--method-node-size);
  border: 1px solid rgba(235, 238, 232, 0.68);
  border-radius: 50%;
  color: rgba(235, 238, 232, 0.84);
  background:
    radial-gradient(circle at 50% 50%, rgba(218, 198, 169, 0.08), transparent 58%),
    rgba(10, 17, 17, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 0 18px rgba(255, 255, 255, 0.04);
}

.method-step-node::before {
  content: attr(data-icon);
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 420;
  line-height: 1;
}

.method-step h3 {
  margin: 24px 0 12px;
  color: rgba(218, 198, 169, 0.9);
  font-size: clamp(20px, 1.9vw, 31px);
  font-weight: 380;
  line-height: 1.25;
  letter-spacing: 0;
}

.method-step p {
  max-width: 14em;
  margin: 0;
  color: rgba(235, 238, 232, 0.64);
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.72;
}

.method-step em {
  display: inline-flex;
  max-width: 100%;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(235, 238, 232, 0.16);
  border-radius: 4px;
  color: rgba(174, 180, 173, 0.72);
  font-size: clamp(12px, 0.78vw, 14px);
  font-style: normal;
  line-height: 1.35;
}

.method-step.is-final .method-step-number,
.method-step.is-final h3 {
  color: rgba(245, 215, 168, 0.95);
}

.method-step.is-final .method-step-node {
  border-color: rgba(245, 215, 168, 0.85);
  color: rgba(250, 228, 190, 0.96);
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 215, 168, 0.2), transparent 58%),
    rgba(28, 23, 16, 0.62);
  box-shadow: 0 0 22px rgba(245, 196, 128, 0.28), inset 0 0 24px rgba(245, 196, 128, 0.14);
}

.method-step.is-final em {
  border-color: rgba(218, 198, 169, 0.34);
  color: rgba(218, 198, 169, 0.9);
}

.method-responsibility {
  display: grid;
  grid-template-columns: minmax(320px, 0.46fr) minmax(300px, 0.32fr) minmax(180px, 0.22fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  position: relative;
  padding: clamp(42px, 5vw, 78px) 0 clamp(38px, 4.5vw, 68px);
  border-top: 1px solid rgba(235, 238, 232, 0.15);
}

.method-responsibility::before {
  content: "";
  position: absolute;
  left: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(250, 228, 190, 0.88);
  box-shadow: 0 0 18px rgba(250, 211, 154, 0.72), 0 0 42px rgba(250, 211, 154, 0.28);
}

.method-responsibility-statement {
  margin: 0;
  color: rgba(218, 198, 169, 0.9);
  font-size: clamp(30px, 3.1vw, 52px);
  font-weight: 360;
  line-height: 1.28;
  letter-spacing: 0;
}

.method-responsibility-copy {
  margin: 0;
  color: rgba(235, 238, 232, 0.58);
  font-size: clamp(14px, 0.96vw, 16px);
  line-height: 1.82;
}

.method-target-diagram {
  justify-self: end;
  position: relative;
  width: min(100%, 260px);
  height: 132px;
  opacity: 0.78;
}

.method-target-diagram::before,
.method-target-diagram::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px dotted rgba(235, 238, 232, 0.18);
}

.method-target-diagram span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(218, 198, 169, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.method-target-diagram span:nth-child(1) {
  width: 88px;
  height: 88px;
}

.method-target-diagram span:nth-child(2) {
  width: 126px;
  height: 88px;
}

.method-target-diagram span:nth-child(3) {
  width: 168px;
  height: 88px;
}

.method-target-diagram i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 228, 190, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px rgba(250, 211, 154, 0.82), 0 0 44px rgba(250, 211, 154, 0.34);
}

@media (min-width: 721px) and (max-width: 1180px) {
  .method-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 52px;
  }

  .method-step:nth-child(3)::after {
    display: none;
  }

  .method-responsibility {
    grid-template-columns: minmax(260px, 0.5fr) minmax(260px, 0.5fr);
  }

  .method-target-diagram {
    grid-column: 2;
    justify-self: start;
    width: 220px;
  }
}

@media (max-width: 720px) {
  .ai-method .method-head {
    margin-bottom: 30px;
  }

  .ai-method .method-head .head-summary p {
    font-size: 15px;
    line-height: 1.78;
  }

  .method-flow {
    border-top-color: rgba(235, 238, 232, 0.14);
  }

  .method-steps {
    --method-node-size: 48px;
    display: block;
    padding: 22px 0 26px;
  }

  .method-step {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(235, 238, 232, 0.1);
  }

  .method-step:last-child {
    border-bottom: 0;
  }

  .method-step:not(:last-child)::after,
  .method-step.is-final::after,
  .method-step.is-final::before {
    display: none;
  }

  .method-step-number {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 8px;
    align-self: start;
    font-size: 13px;
  }

  .method-step-node {
    grid-column: 1;
    grid-row: 2 / span 3;
  }

  .method-step h3,
  .method-step p,
  .method-step em {
    grid-column: 2;
  }

  .method-step h3 {
    margin: 2px 0 8px;
    font-size: 22px;
  }

  .method-step p {
    max-width: none;
    font-size: 14px;
    line-height: 1.65;
  }

  .method-step em {
    width: fit-content;
    margin-top: 10px;
    font-size: 12px;
  }

  .method-responsibility {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 30px 0;
  }

  .method-responsibility-statement {
    font-size: clamp(26px, 8.2vw, 34px);
  }

  .method-responsibility-copy {
    font-size: 14px;
    line-height: 1.72;
  }

  .method-target-diagram {
    justify-self: start;
    width: 190px;
    height: 86px;
  }

  .method-target-diagram span:nth-child(1) {
    width: 62px;
    height: 62px;
  }

  .method-target-diagram span:nth-child(2) {
    width: 92px;
    height: 62px;
  }

  .method-target-diagram span:nth-child(3) {
    width: 124px;
    height: 62px;
  }
}
/* 2026-07 AI workflow tool pill alignment */
@media (min-width: 721px) {
  .method-step p {
    min-height: 3.45em;
  }
}
/* 2026-07 AI workflow connector simplification */
@media (min-width: 721px) {
  .method-step:nth-child(1)::after,
  .method-step:nth-child(2)::after {
    background: linear-gradient(90deg, rgba(235, 238, 232, 0.7), rgba(235, 238, 232, 0.34) 72%, transparent);
  }
}
/* 2026-07-29 AI workflow tool pill fit: keep the long visual-tool label close to its text. */
.method-step:nth-child(2) em {
  display: inline-grid;
  width: max-content;
  max-width: 100%;
  justify-items: start;
  gap: 1px;
  box-sizing: border-box;
}

.method-step:nth-child(2) em span {
  display: block;
}