/* ===== FONTS ===== */
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('fonts/PPNeueMontreal-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('fonts/PPNeueMontreal-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
  --black: #1a1a1a;
  --gray: #e3e3e3;
  --white: #f5f5f5;
  --red: #da382e;
  --green: #167d4f;
  --store-rank-orange: #C4552A;
  --font: 'PP Neue Montreal', sans-serif;
  --col-gap: 0.8vw;
  --row-gap: max(0.75rem, 1.3698vh);
  --pad-x: 1.6vw;
  --pad-top: 1.3698vh;
  --row-h: max(5rem, 10.9584vh);
  --nav-h: max(2.5rem, 4.1094vh);
  --hero-title-left-x: 54px;
  --hero-title-left-y: 27px;
  --hero-title-right-x: -155px;
  --hero-title-right-y: 27px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
  font-family: var(--font);
  background-color: var(--black);
  color: var(--black);
  min-height: 100%;
  overflow: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: inline-block; vertical-align: middle; }
h1 { font-weight: 500; }

/* ===== LOADER ===== */
.loader-wrapper {
  z-index: 150;
  background-color: var(--gray);
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, var(--row-h));
  gap: var(--row-gap) var(--col-gap);
  padding: var(--pad-top) var(--pad-x) 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.loader-text {
  font-family: var(--font);
  font-size: 1.36986vh;
  font-weight: 600;
  line-height: 1.35vh;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.023vh;
  align-self: end;
}
.loader-text.t1 { grid-column: 1 / 3; grid-row: 8; }
.loader-text.t2 { grid-column: 5 / 7; grid-row: 8; }
.loader-text.t3 { grid-column: 9 / 11; grid-row: 8; }
.loader-number {
  grid-column: 1 / 7;
  grid-row: 1 / 8;
  font-family: var(--font);
  font-size: 26.0274vh;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.78vh;
  color: var(--black);
  align-self: end;
  margin-bottom: -3.65vh;
}
.counter-heading {
  grid-column: 7 / 8;
  grid-row: 1 / 8;
  font-family: var(--font);
  font-size: 26.0274vh;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.78vh;
  color: var(--black);
  align-self: end;
  margin-bottom: -3.65vh;
}

/* ===== MEGA WRAP ===== */
.mega-wrap {
  display: none;
}
.page-wrap {
  background-color: var(--white);
  width: 100vw;
  height: 100vh;
  position: relative;
}

/* ===== NAV ===== */
.menu {
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px var(--col-gap);
  border-bottom: 0.3px solid rgba(26, 26, 26, 0.5);
  min-height: calc(var(--nav-h) + 1.05vh);
  height: auto;
  padding: calc(var(--pad-top) - 0.05vh) var(--pad-x) calc(var(--pad-top) + 0.18vh);
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: var(--white);
  align-items: center;
  overflow: visible;
}
.menu .title {
  margin-top: -0.02vh;
  line-height: 1.08;
  transform: none;
}
.menu-item { display: flex; align-items: center; gap: 0.8vh; min-width: 0; }
.menu-toggle-wrap { grid-column: 1 / 2; align-self: center; }
.menu-current-page {
  grid-column: 2 / 4;
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.6vw;
  min-width: 0;
  overflow: visible;
  white-space: nowrap;
}
.nav-title {
  grid-column: 5 / 8;
  justify-self: center;
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  min-width: 0;
  min-height: calc(var(--row-gap) + 0.8vh);
  position: relative;
  overflow: visible;
  white-space: nowrap;
}
.grid-toggle {
  grid-column: 12 / 13;
  justify-self: end;
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.4vh;
  min-width: 0;
  min-height: calc(var(--row-gap) + 0.8vh);
  overflow: visible;
  white-space: nowrap;
}

.vertical-stroke {
  background-color: var(--black);
  width: 1px;
  height: var(--row-gap);
}

/* ===== TITLE (small uppercase text) ===== */
/* Fix #10: title needs margin-top: .4vh per original */
.title {
  color: var(--black);
  letter-spacing: 0.023vh;
  text-transform: uppercase;
  font-family: var(--font);
  font-size: clamp(0.625rem, 1.17vh, 0.875rem);
  font-weight: 500;
  line-height: clamp(0.75rem, var(--row-gap), 1.1rem);
  margin-top: 0.4vh;
  margin-bottom: 0;
}
.title.sub-divider { padding-top: 0.8vh; }
.title.project-page { font-size: clamp(0.625rem, 1.17vh, 0.875rem); margin-top: 0.4vh; }
.title.lable { color: var(--white); font-size: clamp(0.625rem, 1.17vh, 0.875rem); }
.title.bottom-align { margin-bottom: 0; }
.title.index { text-transform: uppercase; }
.title.div-cta-title { padding-top: 0.5vh; }
.div-cta-copy {
  margin: 0;
  min-height: 7.4em;
  max-width: none;
}

/* ===== HEADING ===== */
.heading {
  color: var(--black);
  letter-spacing: -0.05vh;
  font-family: var(--font);
  font-size: clamp(2.2rem, 5.5vh, 4.5rem);
  font-weight: 500;
  line-height: 100%;
  margin: 0 0 -0.635vh 0;
}
.heading.sub-divider { margin-top: 5vh; }

/* ===== SUBHEADING ===== */
.subheading {
  color: var(--black);
  font-family: var(--font);
  font-size: clamp(1.2rem, 2.7vh, 2.2rem);
  font-weight: 500;
  line-height: 100%;
  margin: 0;
}
.subheading.bottom-align { margin-bottom: -0.5vh; }

/* ===== DISPLAY HEADING (giant title) ===== */
.display-heading {
  color: var(--black);
  letter-spacing: -0.78vh;
  font-family: var(--font);
  font-size: clamp(6rem, 26vh, 20rem);
  font-weight: 500;
  line-height: 100%;
  margin: 0 0 -3.65vh 0;
  white-space: nowrap;
}
.display-heading.sx-indent { margin-left: -0.4vh; }

/* Fix #7: display-title-container uses vh units like the original */
.display-title-container {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  margin-bottom: -1vh;
  margin-left: -1vh;
  padding-bottom: 1vh;
  padding-left: 1vh;
  display: flex;
  overflow: hidden;
}
.display-title-container.mobile { display: none; }
.display-title-container.with-line {
  flex-flow: row;
  justify-content: flex-start;
  align-items: flex-end;
  padding-left: 1vh;
}
/* Fix #13: desktop.with-line specific styles */
.display-title-container.desktop.with-line {
  justify-content: flex-end;
  align-items: flex-end;
  padding-left: 5vh;
}
.display-title-container.desktop { display: flex; }
.display-title-container.footer-display { display: none; }

/* ===== BODY TEXT ===== */
.body-text {
  color: var(--black);
  font-family: var(--font);
  font-size: clamp(0.7rem, 1.37vh, 1rem);
  font-weight: 600;
  line-height: clamp(0.75rem, 1.35vh, 1.1rem);
  margin: 0.3vh 0 0;
  display: block;
}
.hero-accent {
  color: var(--store-rank-orange);
  font-weight: 600;
}
.text-accent {
  color: var(--store-rank-orange);
  font-weight: 600;
}

.hero-intro-text {
  color: rgba(26, 26, 26, 0.68);
}

.hero-intro-text strong {
  color: var(--black);
  font-weight: 600;
}
.body-text.indent { text-indent: 2.5vw; }
.body-text.indent.off-grid { margin-top: 0.2vh; margin-left: 2.5vw; }
.body-text.indent._2nd-paragraph { margin-top: 0.1vh; }

.body-text-container { display: block; }
.body-text-container.sub-divider { padding-top: 0.8vh; }

/* ===== DIVIDER ===== */
.divider {
  z-index: 95;
  background-color: var(--black);
  opacity: 0.5;
  width: 100%;
  height: 0.3px;
  max-height: 0.3px;
}
.divider.sub-title { margin-top: 2.7396vh; }
.divider.bottom-footer-desktop { margin-top: -1.85vh; }

.divider-hover {
  z-index: 95;
  background-color: var(--black);
  opacity: 1;
  width: 100%;
  height: 1.5px;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: absolute;
  top: 0;
}

/* ===== LABEL (black tag) ===== */
.label {
  z-index: 98;
  background-color: var(--black);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  height: var(--row-gap);
  margin-right: calc(-1 * var(--pad-x));
  position: relative;
  padding: 0 0.4vw;
}
.label.sx {
  margin-left: -0.85vw;
  margin-right: 0;
  padding-left: 0.85vw;
}

/* ===== BUTTONS ===== */
.button-small {
  z-index: 99;
  display: flex;
  gap: 0.8vh;
  color: var(--black);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.button-small.sub-divider { padding-top: 1.4vh; }

.button-small-external {
  z-index: 99;
  display: flex;
  gap: 0.8vh;
  color: var(--black);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  align-items: center;
}
.button-small-external.title-off-grid { padding-left: 0; }

.internal-button-small {
  z-index: 99;
  display: flex;
  gap: 0.8vh;
  color: var(--black);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  align-items: center;
}
.internal-button-small.index {
  flex-direction: column;
  height: calc(clamp(0.75rem, var(--row-gap), 1.1rem) + 0.08vh);
  overflow: hidden;
}

.small-button-underline {
  background-color: var(--black);
  height: 1px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}

.medium-button-underline {
  background-color: var(--black);
  height: 1px;
  position: absolute;
  bottom: -0.35vh; left: 0; right: 0;
  transform: translateX(0);
  transition: transform 0.3s ease;
}

/* Hover effects */
.button-small:hover .small-button-underline,
.button-small-external:hover .small-button-underline,
.internal-button-small:hover .small-button-underline {
  transform: translateX(0);
}
.index-title-button:hover .medium-button-underline {
  transform: translateX(0);
}

/* ===== ICONS ===== */
.icon-small { height: 0.8vh; align-self: center; }
.icon-small.inline-button { margin-bottom: -0.4vh; }
.icon-medium { height: var(--row-gap); }
.icon-big { height: 3vh; }

/* ===== IMAGE ===== */
.image {
  mix-blend-mode: darken;
  object-fit: cover;
  border-radius: var(--row-gap);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ===== SECTION (grid) ===== */
.section {
  z-index: 96;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, minmax(var(--row-h), auto));
  gap: var(--row-gap) var(--col-gap);
  padding: var(--pad-top) var(--pad-x) 0;
  overflow: hidden;
}
/* Uniform section spacing + divider line */
.page-content > .section + .section {
  margin-top: 4vh;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: 4vh;
}
.page-content > .section.footer {
  margin-top: 4vh;
  border-top: 1px solid rgba(26, 26, 26, 0.2);
  padding-top: 4vh;
}
/* No gap between AI products header and cards */
#ai-products-header + .section {
  margin-top: 0 !important;
  border-top: none !important;
  padding-top: 0 !important;
}

.page-content.has-section-endcaps > .section:not(.footer) > .icon-medium {
  display: none !important;
}

.page-content.has-section-endcaps > .section.hero-home > .hero-bottom-divider {
  display: none;
}

.page-content.has-section-endcaps > .section-endcap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1vh;
  padding: 2.8vh var(--pad-x) 2.8vh;
}

.section-endcap-icon {
  width: var(--row-gap);
  height: var(--row-gap);
  display: block;
  flex: 0 0 auto;
  opacity: 0.96;
}

.section-endcap-line {
  width: 100%;
  height: 1px;
  background: rgba(26, 26, 26, 0.72);
  flex: 0 0 auto;
}

/* Section variants */
.section.hero-home {
  grid-template-rows: repeat(8, minmax(var(--row-h), auto));
  min-height: 100vh;
}
.section.aug-1 {
  grid-template-rows: repeat(16, minmax(var(--row-h), auto));
}
.section._4-rows {
  grid-template-rows: repeat(4, minmax(var(--row-h), auto));
}
.section._6-rows {
  grid-template-rows: repeat(6, minmax(var(--row-h), auto));
}
.section._11-rows {
  grid-template-rows: repeat(11, minmax(var(--row-h), auto));
}
.section.footer {
  grid-template-rows: repeat(6, minmax(var(--row-h), auto));
}
/* Fix #3: Index section needs right border */
.section.index {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 3.9vh 0;
  padding: 6vh 2.5vw;
  border-right: 7px solid var(--black);
}

/* ===== PAGE CONTAINER ===== */
.page-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
  left: 0;
}

/* ===== INDEX SIDEBAR ===== */
.index-wrap {
  opacity: 0;
  width: 26.1vw;
  min-width: 26.1vw;
  height: 100vh;
  position: relative;
  overflow: auto;
  transition: opacity 0.4s ease;
}
.index-wrap.open { opacity: 1; }

.index-container {
  z-index: 98;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(11, min-content);
  gap: 3.9vh 0;
  align-content: start;
}

.index-item {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: min-content min-content;
  gap: var(--row-gap) 0;
  overflow: hidden;
}
.index-item.title-container { grid-template-rows: min-content; }
.index-item.project-preview { grid-template-rows: min-content min-content; }

.index-title-button {
  z-index: 99;
  display: flex;
  gap: 1.125vw;
  align-items: flex-end;
  height: 2.7396vh;
  padding-left: 2.5vw;
  text-decoration: none;
  position: relative;
}

.index-heading { margin-bottom: 1vh; }
.index-main-title {
  font-size: clamp(2.2rem, 5.5vh, 4.5rem);
  font-weight: 500;
  line-height: 100%;
}

.index-projects-container {
  display: grid;
  gap: 2vh;
}
.index-image-container { width: 100%; }
.image-placeholder {
  background: var(--gray);
  width: 100%;
  padding-bottom: 66%;
  border-radius: var(--row-gap);
}

.index-button-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: -0.36vh;
}
.index-button-container.side-index { margin-top: 0; }

/* ===== PAGE CONTENT ===== */
.page-content {
  width: 100vw;
  min-width: 100vw;
  height: 100vh;
  position: relative;
  overflow: auto;
}

/* ===== HERO SECTION GRID PLACEMENT ===== */
/* AB/ left, GD right — side by side, no column overlap */
.section.hero-home .display-title-container.mobile { grid-column: 1 / 7; grid-row: 1 / 3; display: none; }
.section.hero-home .display-title-container.with-line:not(.desktop) {
  grid-column: 1 / 6;
  grid-row: 1 / 3;
  transform: translate(var(--hero-title-left-x), var(--hero-title-left-y));
}
.section.hero-home .display-title-container:not(.with-line):not(.mobile):not(.desktop) {
  grid-column: 6 / 11;
  grid-row: 1 / 3;
  transform: translate(var(--hero-title-right-x), var(--hero-title-right-y));
}
.section.hero-home > .display-title-container {
  margin-top: 0.12vh;
  padding-top: 0.52vh;
  margin-bottom: -0.52vh;
  padding-bottom: 0.52vh;
  overflow: visible;
}
.section.hero-home .sub-menu.desktop {
  grid-column: 1 / 13;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px var(--col-gap);
  min-height: 2.45vh;
  margin-top: 0.64vh;
  align-items: end;
}
.section.hero-home .sub-menu.desktop .title {
  margin-top: 0;
  line-height: 1.06;
}
.section.hero-home .sub-menu.desktop > div:nth-child(1) .title,
.section.hero-home .sub-menu.desktop > div:nth-child(2) .title,
.section.hero-home .sub-menu.desktop > .specs-line-subcontainer > .title:nth-child(1),
.section.hero-home .sub-menu.desktop > .specs-line-subcontainer > .title:nth-child(2) {
  position: relative;
  top: 24px;
}
.section.hero-home .sub-menu.desktop > .specs-line-subcontainer > .title:nth-child(2) {
  left: -8px;
}
.section.hero-home .sub-menu.desktop > div:nth-child(1) { grid-column: 1 / 4; }
.section.hero-home .sub-menu.desktop > div:nth-child(2) { grid-column: 4 / 7; }
.section.hero-home .sub-menu.desktop > .specs-line-subcontainer { grid-column: 7 / 13; }
.section.hero-home .sub-menu.desktop > .divider {
  grid-column: 1 / 13;
  align-self: end;
  transform: translateY(-0.42vh);
}
.specs-line-subcontainer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.section.hero-home .hero-intro {
  grid-column: 5 / 8;
  grid-row: 4 / 6;
  align-self: start;
}
.section.hero-home .hero-corethreads {
  grid-column: 1 / 4;
  grid-row: 4 / 7;
  align-self: start;
}
.section.hero-home .heading-container.bottom-anchor {
  padding-top: 0;
  margin-bottom: 0;
}
.section.hero-home .heading-container.year-heading { grid-column: 1 / 4; grid-row: 7; align-self: end; }
.section.hero-home .heading-container.portfolio-heading { grid-column: 4 / 8; grid-row: 7; align-self: end; }
.section.hero-home .hero-bottom-divider { grid-column: 1 / 13; grid-row: 8; align-self: end; }
.section.hero-home .hero-graphic { grid-column: 8 / 13; grid-row: 4 / 8; }
.section.hero-home .on-page-index-container { grid-column: 12 / 13; grid-row: 1 / 4; }

.hero-intro {
  display: grid;
  gap: 0.55vh;
  width: 333px;
  max-width: 333px;
  padding-top: 0.3vh;
  transform: translate(-58.66px, 20px) scale(1.2);
  transform-origin: top left;
}

.hero-corethreads {
  display: grid;
  grid-template-rows: min-content 1fr;
  gap: 0.8vh;
  align-self: end;
  justify-self: start;
  max-width: 22.5vw;
}
.hero-corethreads-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1vw;
}
.hero-corethreads-title {
  letter-spacing: 0.02vh;
}
.hero-corethreads-panel {
  display: grid;
  grid-template-columns: minmax(3.85rem, 4.7vw) 1fr;
  gap: 1.2vw;
  min-height: 100%;
  align-items: start;
}
.hero-corethreads-visual {
  border: 0.3px solid rgba(26, 26, 26, 0.48);
  border-radius: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.66);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
}
.corethreads-spark-frame {
  min-height: 4.8vh;
  border-bottom: 0.3px solid rgba(26, 26, 26, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.corethreads-spark,
.corethreads-spark::before,
.corethreads-spark::after {
  position: absolute;
  background: var(--black);
  content: "";
  display: block;
}
.corethreads-spark {
  width: 2.1rem;
  height: 1px;
  opacity: 0.82;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.corethreads-spark::before {
  width: 1px;
  height: 2.1rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.corethreads-spark::after {
  width: 2.1rem;
  height: 1px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(32deg);
}
.corethreads-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  background: #d7d7d7;
}
.corethreads-mosaic-cell {
  aspect-ratio: 1;
  background: #d2d2d2;
  border-right: 0.3px solid rgba(255, 255, 255, 0.22);
  border-bottom: 0.3px solid rgba(255, 255, 255, 0.22);
  transition:
    background-color 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.78;
  transform-origin: center center;
  will-change: transform, opacity, background-color;
  backface-visibility: hidden;
}
.corethreads-mosaic-cell.is-on {
  background: #ebebeb;
  transform: scale(0.965);
  opacity: 0.94;
}
.corethreads-mosaic-cell.is-flash {
  background: #f5f5f5;
  transform: scale(1.03);
  opacity: 0.99;
}
.hero-corethreads-list {
  display: grid;
  align-content: start;
}
.corethread-item {
  display: grid;
  gap: 0.15vh;
  padding: 0.42vh 0 0.65vh;
  border-top: 0.3px solid rgba(26, 26, 26, 0.68);
  transform: translate3d(0, 0, 0);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.52s ease;
  cursor: pointer;
  will-change: transform;
  contain: paint;
}
.corethread-item:last-child {
  border-bottom: 0.3px solid rgba(26, 26, 26, 0.68);
}
.corethread-rule {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.35vw;
}
.corethread-index {
  opacity: 0.78;
}
.corethread-bar {
  height: 0.62vh;
  min-height: 6px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.corethread-bar-fill {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -60deg,
      var(--black) 0,
      var(--black) 4px,
      transparent 4px,
      transparent 7px
  );
  transform-origin: left center;
  transform: scaleX(0.56);
  transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.82s ease;
  opacity: 0.72;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.corethread-heading {
  color: var(--black);
  font-family: var(--font);
  font-size: clamp(0.92rem, 1.95vh, 1.5rem);
  line-height: 92%;
  letter-spacing: 0.015vh;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0;
  transition: opacity 0.68s cubic-bezier(0.22, 1, 0.36, 1), transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.88;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.corethread-meta {
  opacity: 0.58;
  margin-top: 0.08vh;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1), transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.corethread-item.is-active,
.corethread-item:hover {
  padding-left: 0;
}
.corethread-item.is-animating .corethread-heading,
.corethread-item.is-animating .corethread-meta {
  animation: corethreadLineIn 0.42s ease;
}
.corethread-item.is-active .corethread-heading,
.corethread-item.is-active .corethread-meta,
.corethread-item:hover .corethread-heading,
.corethread-item:hover .corethread-meta {
  opacity: 1;
}
.corethread-item.is-active .corethread-bar-fill,
.corethread-item:hover .corethread-bar-fill {
  opacity: 1;
}

@keyframes corethreadLineIn {
  0% {
    opacity: 0.45;
    transform: translateX(-0.22vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0.08vw);
  }
}

@keyframes corethreadsSparkPulse {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.78; }
  50% { transform: scale(1.04) rotate(8deg); opacity: 1; }
}

.heading-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 0.8vh;
}
.heading-container.bottom-anchor {
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  margin-bottom: var(--row-gap);
  gap: 0.8vh;
}
.heading-container.bottom-anchor-on-grid {
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 0.8vh;
}
.heading-container.div-cta-head { margin-bottom: 0; padding-left: 2.5vw; }

/* On-page index */
.on-page-index-container {
  display: flex;
  flex-direction: column;
  margin-top: 4.35vh;
  gap: 0;
}

/* ===== PROJECT SHOWCASE ===== */
.section.aug-1.project-showcase {
  grid-template-rows: repeat(12, minmax(var(--row-h), auto));
  gap: var(--row-gap) var(--col-gap);
}
.section.project-showcase .latest-project {
  grid-column: 1 / 4;
  grid-row: 1 / 4;
}
.latest-project {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1vh;
  padding: calc(var(--row-gap) * 0.9);
  border: 0.3px solid rgba(26, 26, 26, 0.24);
  border-radius: calc(var(--row-gap) * 1.25);
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.02), rgba(26, 26, 26, 0.06)),
    rgba(245, 245, 245, 0.84);
}
.latest-project-media {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 14vh;
  border: 0.3px solid rgba(26, 26, 26, 0.38);
  border-radius: calc(var(--row-gap) * 0.9);
  overflow: hidden;
  background: rgba(245, 244, 240, 0.96);
}
.latest-project-panel {
  position: relative;
  min-height: clamp(9.5rem, 20vh, 14rem);
  overflow: hidden;
}
.latest-project-panel-left {
  background: #0e0e0e;
  border-right: 0.3px solid rgba(26, 26, 26, 0.18);
}
.latest-project-panel-right {
  background: rgba(247, 246, 243, 0.98);
}
.latest-project-loop {
  width: 100%;
  height: 100%;
  display: block;
  mix-blend-mode: normal;
}
.latest-project-loop-left {
  object-fit: cover;
  object-position: center;
}
.latest-project-loop-right {
  object-fit: cover;
  object-position: center;
}
.latest-project-corner {
  position: absolute;
  top: clamp(0.38rem, 0.7vw, 0.58rem);
  right: clamp(0.4rem, 0.7vw, 0.6rem);
  width: clamp(0.7rem, 0.95vw, 0.84rem);
  aspect-ratio: 1;
  border: 0.3px solid rgba(26, 26, 26, 0.9);
  z-index: 2;
  background: rgba(255, 255, 255, 0.84);
}
.latest-project-corner::after {
  content: "";
  position: absolute;
  inset: 0.14rem;
  background: var(--black);
}
.latest-project-image {
  border-radius: calc(var(--row-gap) * 0.9);
  width: 100%;
  height: 100%;
  min-height: 14vh;
  mix-blend-mode: darken;
}
.project-showcase-heading {
  grid-column: 4 / 10;
  grid-row: 1;
}
.project-showcase-kicker {
  grid-column: 4 / 10;
  grid-row: 2;
}
.case-card {
  z-index: 98;
  position: relative;
  display: grid;
  grid-template-rows: minmax(16vh, 1fr) auto auto;
  gap: 1.2vh;
  padding: calc(var(--row-gap) * 0.9);
  border: 0.3px solid rgba(26, 26, 26, 0.26);
  border-radius: calc(var(--row-gap) * 1.35);
  background:
    radial-gradient(circle at top right, rgba(26, 26, 26, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(26, 26, 26, 0.02)),
    rgba(245, 245, 245, 0.92);
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.case-card:hover {
  transform: translateY(-0.5vh);
  box-shadow: 0 1.4rem 3rem rgba(26, 26, 26, 0.1);
  border-color: rgba(26, 26, 26, 0.42);
}
.case-card-media {
  border-radius: calc(var(--row-gap) * 0.95);
  overflow: hidden;
  background: rgba(26, 26, 26, 0.08);
  min-height: 16vh;
}
.case-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover .case-card-media img {
  transform: scale(1.04);
}
.case-card-copy {
  display: grid;
  gap: 0.9vh;
}
.case-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8vw;
  flex-wrap: wrap;
}
.case-card-title {
  font-size: clamp(1.6rem, 3.25vh, 2.7rem);
  line-height: 94%;
}
.case-card-tags {
  display: flex;
  gap: 0.5vw;
  flex-wrap: wrap;
}
.case-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0.3px solid rgba(26, 26, 26, 0.24);
  padding: 0.45vh 0.65vw;
  color: var(--black);
  font-family: var(--font);
  font-size: clamp(0.625rem, 1.1vh, 0.82rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.023vh;
}
.section.project-showcase .case-card-featured {
  grid-column: 1 / 7;
  grid-row: 4 / 8;
}
.section.project-showcase .case-card:nth-of-type(2) {
  grid-column: 7 / 13;
  grid-row: 3 / 6;
}
.section.project-showcase .case-card:nth-of-type(3) {
  grid-column: 7 / 13;
  grid-row: 6 / 9;
}
.section.project-showcase .case-card:nth-of-type(4) {
  grid-column: 1 / 5;
  grid-row: 8 / 11;
}
.section.project-showcase .case-card-wide {
  grid-column: 5 / 13;
  grid-row: 9 / 12;
}

/* Legacy project-list support for other pages if reused */
.project-list {
  z-index: 98;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.4vh var(--col-gap);
  grid-template-rows: auto;
  text-decoration: none;
  grid-column: 1 / 13;
  position: relative;
  padding: 1vh 0 1.5vh;
}
.project-list .divider-hover { grid-column: 1 / 13; position: absolute; top: 0; left: 0; right: 0; }
.project-list .divider { grid-column: 1 / 13; }
.project-list .title.sub-divider { grid-column: 1 / 2; padding-top: 0.4vh; }
.project-list .heading-container { grid-column: 4 / 10; padding-top: 0; }
.project-list .label { grid-column: 12 / 13; align-self: start; }
.list-project-preview {
  z-index: 96;
  border-radius: var(--row-gap);
  width: 15.5vw;
  max-width: none;
  display: none;
  position: fixed;
  pointer-events: none;
  object-fit: cover;
  height: auto;
  mix-blend-mode: darken;
}
.project-list:hover .divider-hover { transform: translateX(0); }

/* ===== TRANSITION SECTION ===== */
.section._4-rows > .divider { grid-column: 1 / 13; grid-row: 1; }
.section._4-rows > .body-text-container { grid-column: 4 / 8; grid-row: 1; }
.section._4-rows > .button-small { grid-column: 10 / 13; grid-row: 1; justify-self: end; }
.section._4-rows > .icon-medium { grid-column: 6 / 7; grid-row: 3; justify-self: center; }

/* ===== DESIGN PROCESS SECTION ===== */
.section._11-rows > .heading-container.bottom-anchor { grid-column: 7 / 13; grid-row: 1; }
/* briefing label after the number, not overlapping */
.section._11-rows > .process-briefing { grid-column: 8 / 11; grid-row: 2; }
.section._11-rows > .process-number { grid-column: 7 / 8; grid-row: 2; }
.section._11-rows > .paragraph-list-container {
  grid-column: 7 / 13;
  grid-row: 3 / 11;
}
.paragraph-list-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, min-content);
  gap: 5.2vh var(--col-gap);
  align-content: start;
}
.paragraph-list-item {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: min-content;
  gap: var(--row-gap) var(--col-gap);
  grid-column: 1 / -1;
}
.paragraph-list-item .label.sx { grid-column: 1 / 2; }
.paragraph-list-item .divider { grid-column: 1 / 6; }
.paragraph-list-item .body-text-container { grid-column: 2 / 6; }

.section._11-rows > .image.process-graph { grid-column: 2 / 5; grid-row: 2 / 9; }
.section._11-rows > .process-caption { grid-column: 7 / 13; grid-row: 11; }
.section._11-rows > .icon-medium { grid-column: 6 / 7; grid-row: 11; justify-self: center; }

.inline-title-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(8, var(--row-gap));
  gap: 0;
}
.section._11-rows > .inline-title-container { display: none; }
.section._11-rows > .inline-title-container:nth-of-type(1) { grid-column: 7 / 8; grid-row: 3 / 4; }
.section._11-rows > .inline-title-container:nth-of-type(2) { grid-column: 7 / 8; grid-row: 4 / 5; }
.section._11-rows > .inline-title-container:nth-of-type(3) { grid-column: 7 / 8; grid-row: 5 / 6; }
.section._11-rows > .inline-title-container:nth-of-type(4) { grid-column: 7 / 8; grid-row: 6 / 7; }
.section._11-rows > .inline-title-container:nth-of-type(5) { grid-column: 7 / 8; grid-row: 7 / 8; }
.section._11-rows > .inline-title-container:nth-of-type(6) { grid-column: 7 / 8; grid-row: 8 / 9; }

/* ===== EXPERIENCE PROCESS OVERRIDE ===== */
.section._11-rows.experience-process {
  min-height: 1044px;
  height: 1044px;
}
.section._11-rows.experience-process > .heading-container.bottom-anchor {
  grid-column: 8 / 12;
  grid-row: 1;
  align-self: start;
  margin-bottom: 1.3698vh;
}
.section._11-rows.experience-process > .process-number {
  grid-column: 8 / 9;
  grid-row: 1;
  align-self: end;
}
.section._11-rows.experience-process > .process-briefing {
  grid-column: 9 / 12;
  grid-row: 1;
  align-self: end;
}
.section._11-rows.experience-process > .paragraph-list-container {
  grid-column: 8 / 13;
  grid-row: 3 / 10;
  gap: 4.6vh 0;
}
.section._11-rows.experience-process .paragraph-list-container {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, min-content);
}
.section._11-rows.experience-process .paragraph-list-item {
  grid-template-columns: minmax(6rem, 1.05fr) minmax(0, 4.2fr);
  gap: 1.1vh var(--col-gap);
  align-items: start;
}
.section._11-rows.experience-process .paragraph-list-item .label.sx {
  grid-column: 1 / 2;
  margin-left: 0;
  padding-left: 0;
}
.section._11-rows.experience-process .paragraph-list-item .divider {
  grid-column: 1 / 3;
}
.section._11-rows.experience-process .paragraph-list-item .body-text-container {
  grid-column: 2 / 3;
  padding-top: 0.8vh;
  display: grid;
  gap: 0.45vh;
  max-width: min(31vw, 41ch);
}
.section._11-rows.experience-process .paragraph-list-item .body-text {
  text-wrap: pretty;
}
.section._11-rows.experience-process .paragraph-list-item .body-text.indent {
  text-indent: 0;
  margin-left: 0;
}
.section._11-rows.experience-process > .image.process-graph {
  grid-column: 3 / 6;
  grid-row: 1 / 7;
  align-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.section._11-rows.experience-process > .image.process-graph-small {
  grid-column: 1 / 2;
  grid-row: 6 / 10;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.section._11-rows.experience-process > .process-caption {
  grid-column: 3 / 6;
  grid-row: 7 / 8;
  align-self: start;
  max-width: 14vw;
  padding-top: 1.4vh;
  border-top: 0.3px solid rgba(26, 26, 26, 0.52);
  line-height: 1.18;
}
.section._11-rows.experience-process > .icon-medium {
  grid-column: 6 / 8;
  grid-row: 10 / 12;
  justify-self: center;
  align-self: center;
}

/* ===== VALUE / CAPABILITY SECTION ===== */
.section._6-rows > .philosophy-label { grid-column: 4 / 8; grid-row: 1; align-self: start; }
.section._6-rows > .philosophy-quote {
  grid-column: 2 / 10;
  grid-row: 1 / 4;
  font-size: clamp(2.2rem, 5.5vh, 4.5rem);
  line-height: 110%;
  letter-spacing: -0.05vh;
  margin-top: 3vh;
}
.section._6-rows > .divider.sub-title { grid-column: 1 / 13; grid-row: 4; align-self: start; }
.section._6-rows > .icon-medium { grid-column: 6 / 7; grid-row: 5; justify-self: center; }
.section._6-rows > .philosophy-body { grid-column: 4 / 8; grid-row: 4 / 6; padding-top: 1vh; }

.section._6-rows.capability-home {
  grid-template-rows: auto auto auto auto;
}
#skills {
  min-height: 0;
  height: auto;
}
.section.capability-home > .philosophy-label { grid-column: 4 / 8; grid-row: 1; align-self: end; }
.section.capability-home > .philosophy-quote {
  grid-column: 2 / 11;
  grid-row: 2 / 3;
  width: min(617px, 100%);
  max-width: 617px;
  margin-top: calc(2.3vh + 30px);
  margin-left: -8px;
}
.section.capability-home > .divider.sub-title { grid-column: 1 / 13; grid-row: 3; }
.section.capability-home > .icon-medium { grid-column: 6 / 7; grid-row: 6; align-self: center; }
.capability-grid {
  grid-column: 2 / 12;
  grid-row: 3 / 6;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(min-content, auto);
  gap: var(--row-gap) var(--col-gap);
}
.capability-card {
  display: grid;
  gap: 1vh;
  padding: calc(var(--row-gap) * 0.95);
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: 0;
  background: var(--bg);
  min-height: 100%;
}
.capability-card-top {
  display: grid;
  gap: 0.35vh;
}
.capability-footer {
  grid-column: 1 / 13;
  grid-row: 7;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1vw;
  padding-top: 1vh;
  border-top: 0.3px solid rgba(26, 26, 26, 0.24);
  flex-wrap: wrap;
}

/* ===== METHODOLOGY SECTION ===== */
#methodology {
  min-height: 640px;
  height: 640px;
  grid-template-rows: repeat(9, minmax(var(--row-h), auto));
}
#methodology > .philosophy-label {
  grid-column: 4 / 8;
  grid-row: 1;
  align-self: start;
  margin-top: 0.4vh;
}
#methodology > .philosophy-quote {
  grid-column: 2 / 8;
  grid-row: 1 / 3;
  width: min(32rem, 100%);
  max-width: 32rem;
  margin-top: 1.4vh;
  margin-left: -8px;
  align-self: start;
  position: relative;
  top: 96px;
  z-index: 3;
}
#methodology > .divider.sub-title {
  grid-row: 3;
}
#methodology > .methodology-float {
  grid-column: 8 / 13 !important;
  grid-row: 1 / 4 !important;
  align-self: start !important;
  justify-self: end !important;
  width: min(26rem, 58%) !important;
  margin-top: 0.8vh;
  transform: translateY(-0.6vh);
  position: relative;
  z-index: 1;
  pointer-events: none;
}
#methodology > .methodology-float > video {
  transform: translate(-124px, 8px) scale(1.6);
  transform-origin: center center;
}
#methodology > .capability-grid {
  grid-column: 2 / 12;
  grid-row: 4 / 9;
  grid-auto-rows: minmax(0, 1fr);
  gap: calc(var(--row-gap) * 0.88) var(--col-gap);
  align-self: stretch;
  position: relative;
  z-index: 2;
}
#methodology > .icon-medium {
  grid-column: 6 / 8;
  grid-row: 9;
}

/* Fix #1 & #2: CTA section with proper 8-col grid and grid-based cards */
.section._6-rows.increase-mobile {
  grid-template-rows: repeat(6, minmax(var(--row-h), auto));
}
.div-cta-container {
  grid-column: 2 / 10;
  grid-row: 1 / 7;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--row-gap) var(--col-gap);
}
.div-cta {
  grid-column: span 4;
  background-color: transparent;
  border: 0.3px solid rgba(26,26,26,0.3);
  border-radius: var(--row-gap);
  padding: var(--row-gap) var(--col-gap);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto auto;
  gap: var(--row-gap);
}
#ai-products .div-cta-container {
  grid-column: 1 / 13;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
#ai-products .div-cta {
  grid-column: span 4;
  min-width: 0;
}
#ai-products .div-cta-container > .div-cta {
  min-height: 720px;
  height: auto;
}
#ai-products .div-cta-container > .div-cta:nth-child(2) {
  position: static;
  left: auto;
}
.div-cta-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.9vh;
}
.divider.div-cta-2 { margin: 0; }
.image-container { border-radius: var(--row-gap); overflow: hidden; }
#ai-products .div-cta .button-small-external .title {
  line-height: 1.25;
}
.div-cta-compact .heading {
  font-size: clamp(1.95rem, 4.15vh, 3.3rem);
  line-height: 0.92;
  letter-spacing: -0.08vh;
}

/* Fix #5: Footer should be 7 rows with bottom padding */
/* ===== FOOTER SECTION ===== */
.section.footer { grid-template-rows: repeat(4, minmax(var(--row-h), auto)); padding-bottom: var(--row-gap); }
.section.footer > .icon-medium { grid-column: 6 / 7; grid-row: 1; justify-self: center; align-self: center; }
.section.footer > .divider.footer-divider { grid-column: 1 / 13; grid-row: 2; align-self: end; }
/* Footer: AB/ left, GD center, /26 right — side by side, no overlap */
.section.footer > .display-title-container.footer-display { grid-column: 1 / 7; grid-row: 3 / 6; display: none; }
.section.footer > .display-title-container.with-line:not(.desktop) { grid-column: 1 / 4; grid-row: 3 / 6; }
.section.footer > .display-title-container:not(.with-line):not(.mobile):not(.desktop):not(.footer-display) { grid-column: 4 / 8; grid-row: 3 / 6; }
.section.footer > .display-title-container.desktop.with-line { grid-column: 8 / 12; grid-row: 3 / 6; }
/* Fix #6: footer-title-container should be 12-column grid, row 7 */
.section.footer > .button-container { grid-column: 4 / 8; grid-row: 7; }
.section.footer > .footer-title-container {
  grid-column: 1 / 13;
  grid-row: 7;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--col-gap);
  align-items: end;
  align-self: end;
  padding-bottom: 0.5vh;
}
.footer-title-container > h1:nth-child(1) { grid-column: 1 / 4; }
.footer-title-container > h1:nth-child(2) { grid-column: 4 / 8; }
.footer-title-container > h1:nth-child(3) { grid-column: 9 / 13; }
.footer-title-container > .divider { grid-column: 1 / 13; }
/* Fix #11: button-container needs margin-top */
.button-container {
  display: flex;
  flex-direction: column;
  gap: 0.3vh;
  margin-top: var(--row-gap);
}

/* ===== MENU OPEN STATE ===== */
.page-container.menu-open {
  transform: translateX(26.1vw);
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.page-container {
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Menu toggle button */
.internal-button-small.index {
  position: relative;
}
#menuOpen, #menuClose {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#menuClose {
  opacity: 0;
  position: absolute;
  top: 0;
}
.menu-is-open #menuOpen { opacity: 0; transform: translateY(-100%); }
.menu-is-open #menuClose { opacity: 1; transform: translateY(0); }

/* ===== GRID OVERLAY ===== */
.grid-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  pointer-events: none;
  display: none;
  padding: 0 var(--pad-x);
}
.grid-overlay.visible { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--col-gap); }
.grid-overlay .grid-col {
  background: rgba(218, 56, 46, 0.08);
  border-left: 0.5px solid rgba(218, 56, 46, 0.2);
  border-right: 0.5px solid rgba(218, 56, 46, 0.2);
  height: 100vh;
}

/* ===== SCROLLBAR ===== */
.page-content::-webkit-scrollbar { width: 0; }
.index-wrap::-webkit-scrollbar { width: 0; }
.page-content:focus { outline: none; }
.page-content { scroll-behavior: smooth; }

/* Fix #8: Tablet breakpoint — 8 columns, 7.0584vh rows */
/* ===== RESPONSIVE: TABLET ===== */
@media screen and (max-width: 991px) {
  :root {
    --row-h: 7.0584vh;
    --row-gap: 1.56vh;
    --pad-x: 2.4vw;
    --col-gap: 1.2vw;
  }
  .display-title-container.mobile { display: flex !important; }
  .display-title-container.with-line,
  .display-title-container:not(.mobile):not(.footer-display) { display: none; }
  .sub-menu.desktop { display: none !important; }
  .desktop-only { display: none; }
  .section { grid-template-columns: repeat(8, 1fr); }
  .menu { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .grid-toggle { grid-column: 8; }
  .project-list { grid-template-columns: repeat(8, 1fr); }
  .project-list .heading-container { grid-column: 3 / 7; }
  .project-list .label { grid-column: 8; }
  .on-page-index-container { display: none; }
  .section.hero-home .display-title-container.mobile { grid-column: 1 / 9; grid-row: 1 / 3; }
  .section.hero-home .hero-intro {
    grid-column: 1 / 5;
    grid-row: 4 / 5;
    align-self: start;
  }
  .section.hero-home .hero-corethreads {
    grid-column: 1 / 5;
    grid-row: 5 / 7;
    align-self: end;
  }
  .section.hero-home .hero-graphic { grid-column: 5 / 9; grid-row: 4 / 8; }
  .section.hero-home .heading-container.year-heading { grid-column: 1 / 3; grid-row: 7; }
  .section.hero-home .heading-container.portfolio-heading { grid-column: 3 / 6; grid-row: 7; }
  .hero-intro {
    width: auto;
    max-width: none;
    transform: none;
  }
  .hero-corethreads { max-width: none; }
  .hero-corethreads-panel { grid-template-columns: minmax(7.5rem, 34%) 1fr; gap: 1.5vw; }
  .section.aug-1.project-showcase { grid-template-rows: repeat(14, minmax(var(--row-h), auto)); }
  .section.project-showcase .latest-project { grid-column: 1 / 4; grid-row: 1 / 4; }
  .project-showcase-heading { grid-column: 4 / 9; grid-row: 1; }
  .project-showcase-kicker { grid-column: 4 / 9; grid-row: 2; }
  .section.project-showcase .case-card-featured { grid-column: 1 / 6; grid-row: 4 / 8; }
  .section.project-showcase .case-card:nth-of-type(2) { grid-column: 6 / 9; grid-row: 4 / 7; }
  .section.project-showcase .case-card:nth-of-type(3) { grid-column: 6 / 9; grid-row: 7 / 10; }
  .section.project-showcase .case-card:nth-of-type(4) { grid-column: 1 / 4; grid-row: 8 / 11; }
  .section.project-showcase .case-card-wide { grid-column: 4 / 9; grid-row: 10 / 14; }
  .section._11-rows.experience-process {
    min-height: 1044px;
    height: 1044px;
    grid-template-rows: repeat(12, minmax(var(--row-h), auto));
  }
  .section._11-rows.experience-process > .heading-container.bottom-anchor {
    grid-column: 5 / 9;
    grid-row: 1;
  }
  .section._11-rows.experience-process > .process-number {
    grid-column: 5 / 6;
    grid-row: 1;
    align-self: end;
  }
  .section._11-rows.experience-process > .process-briefing {
    grid-column: 6 / 9;
    grid-row: 1;
    align-self: end;
  }
  .section._11-rows.experience-process > .paragraph-list-container {
    grid-column: 5 / 9;
    grid-row: 3 / 10;
  }
  .section._11-rows.experience-process .paragraph-list-item {
    grid-template-columns: minmax(5.2rem, 1fr) minmax(0, 4fr);
  }
  .section._11-rows.experience-process .paragraph-list-item .body-text-container {
    max-width: none;
  }
  .section._11-rows.experience-process > .image.process-graph {
    grid-column: 2 / 5;
    grid-row: 1 / 6;
  }
  .section._11-rows.experience-process > .image.process-graph-small {
    grid-column: 1 / 2;
    grid-row: 7 / 10;
    width: 100%;
    height: 100%;
  }
  .section._11-rows.experience-process > .process-caption {
    grid-column: 2 / 5;
    grid-row: 6 / 7;
    max-width: none;
  }
  .section._11-rows.experience-process > .icon-medium {
    grid-column: 4 / 6;
    grid-row: 11 / 13;
  }
  .section.capability-home > .philosophy-label { grid-column: 3 / 7; }
  .section.capability-home > .philosophy-quote { grid-column: 1 / 9; }
  .capability-grid { grid-column: 1 / 9; }
  #skills {
    min-height: 432px;
    height: 432px;
  }
  #methodology {
    min-height: 640px;
    height: 640px;
    grid-template-rows: repeat(11, minmax(var(--row-h), auto));
  }
  #methodology > .philosophy-label {
    grid-column: 3 / 6;
    grid-row: 1;
  }
  #methodology > .philosophy-quote {
    grid-column: 1 / 6;
    grid-row: 1 / 3;
    width: min(28rem, 100%);
    max-width: 28rem;
    margin-top: 1vh;
  }
  #methodology > .methodology-float {
    grid-column: 6 / 9 !important;
    grid-row: 1 / 4 !important;
    width: min(18rem, 72%) !important;
    margin-top: 0.4vh;
    transform: translateY(-0.6vh);
  }
  #methodology > .capability-grid {
    grid-column: 1 / 9;
    grid-row: 4 / 11;
  }
  #methodology > .icon-medium {
    grid-column: 4 / 6;
    grid-row: 11;
  }
  .div-cta-container { grid-column: 1 / 9; grid-template-columns: repeat(8, 1fr); }
  #ai-products .div-cta-container {
    grid-column: 1 / 9;
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .section.footer > .display-title-container.footer-display { display: flex !important; grid-column: 1 / 9; }
  .index-wrap { width: 40vw; min-width: 40vw; }
}

/* ===== RESPONSIVE: MOBILE ===== */
@media screen and (max-width: 767px) {
  :root {
    --pad-x: 4vw;
    --col-gap: 2vw;
    --row-h: 6.25vh;
  }
  .section { grid-template-columns: repeat(4, 1fr); }
  .menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-toggle { grid-column: 4; }
  .menu-current-page { display: none; }
  .section.hero-home { grid-template-rows: repeat(10, minmax(var(--row-h), auto)); }
  .section.hero-home .display-title-container.mobile { grid-column: 1 / 5; grid-row: 1 / 3; }
  .section.hero-home .hero-intro {
    grid-column: 1 / 5;
    grid-row: 4 / 5;
    align-self: start;
  }
  .section.hero-home .hero-corethreads {
    grid-column: 1 / 5;
    grid-row: 5 / 7;
    align-self: start;
  }
  .section.hero-home .hero-graphic { grid-column: 1 / 5; grid-row: 8 / 10; }
  .section.hero-home .heading-container.year-heading { grid-column: 1 / 3; grid-row: 10; }
  .section.hero-home .heading-container.portfolio-heading { grid-column: 3 / 5; grid-row: 10; }
  .section.hero-home .hero-bottom-divider { grid-column: 1 / 5; grid-row: 10; }
  .project-list { grid-template-columns: repeat(4, 1fr); }
  .project-list .heading-container { grid-column: 1 / 4; }
  .project-list .label { grid-column: 4; }
  .hero-corethreads { max-width: none; }
  .hero-corethreads-panel { grid-template-columns: 1fr; }
  .hero-corethreads-visual { min-height: 14vh; }
  .hero-intro {
    width: auto;
    max-width: none;
    transform: none;
  }
  .section.aug-1.project-showcase {
    grid-template-rows: repeat(26, minmax(var(--row-h), auto));
  }
  .section.project-showcase .latest-project { grid-column: 1 / 5; grid-row: 1 / 4; }
  .latest-project-media {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    min-height: 11rem;
  }
  .project-showcase-heading { grid-column: 1 / 5; grid-row: 4; }
  .project-showcase-kicker { grid-column: 1 / 5; grid-row: 5; }
  .section.project-showcase .case-card-featured { grid-column: 1 / 5; grid-row: 6 / 10; }
  .section.project-showcase .case-card:nth-of-type(2) { grid-column: 1 / 5; grid-row: 10 / 14; }
  .section.project-showcase .case-card:nth-of-type(3) { grid-column: 1 / 5; grid-row: 14 / 18; }
  .section.project-showcase .case-card:nth-of-type(4) { grid-column: 1 / 5; grid-row: 18 / 22; }
  .section.project-showcase .case-card-wide { grid-column: 1 / 5; grid-row: 22 / 26; }
  .section._11-rows.experience-process {
    min-height: auto;
    height: auto;
    grid-template-rows: repeat(15, minmax(var(--row-h), auto));
  }
  .section._11-rows.experience-process > .heading-container.bottom-anchor {
    grid-column: 1 / 5;
    grid-row: 1;
  }
  .section._11-rows.experience-process > .process-number {
    grid-column: 1 / 2;
    grid-row: 1;
    align-self: end;
  }
  .section._11-rows.experience-process > .process-briefing {
    grid-column: 2 / 5;
    grid-row: 1;
    align-self: end;
  }
  .section._11-rows.experience-process > .image.process-graph {
    grid-column: 1 / 5;
    grid-row: 3 / 6;
  }
  .section._11-rows.experience-process > .paragraph-list-container {
    grid-column: 1 / 5;
    grid-row: 6 / 12;
    gap: 3.4vh 0;
  }
  .section._11-rows.experience-process .paragraph-list-item {
    grid-template-columns: 1fr;
    gap: 0.8vh 0;
  }
  .section._11-rows.experience-process .paragraph-list-item .label.sx,
  .section._11-rows.experience-process .paragraph-list-item .divider,
  .section._11-rows.experience-process .paragraph-list-item .body-text-container {
    grid-column: 1;
  }
  .section._11-rows.experience-process > .image.process-graph-small {
    grid-column: 1 / 2;
    grid-row: 12 / 15;
    width: 100%;
    height: 100%;
  }
  .section._11-rows.experience-process > .process-caption {
    grid-column: 2 / 5;
    grid-row: 12 / 15;
    max-width: none;
  }
  .section._11-rows.experience-process > .icon-medium {
    grid-column: 2 / 4;
    grid-row: 15;
  }
  .section._6-rows.capability-home { grid-template-rows: repeat(8, minmax(var(--row-h), auto)); }
  #skills {
    min-height: auto;
    height: auto;
  }
  .section.capability-home > .philosophy-label { grid-column: 1 / 5; grid-row: 1; }
  .section.capability-home > .philosophy-quote { grid-column: 1 / 5; grid-row: 1 / 3; margin-top: 4vh; }
  .section.capability-home > .divider.sub-title { grid-row: 3; }
  .capability-grid {
    grid-column: 1 / 5;
    grid-row: 4 / 7;
    grid-template-columns: 1fr;
  }
  .section.capability-home > .icon-medium { grid-column: 2 / 4; grid-row: 7; }
  .capability-footer { grid-column: 1 / 5; grid-row: 8; }
  #methodology {
    min-height: auto;
    height: auto;
    grid-template-rows: repeat(12, minmax(var(--row-h), auto));
    gap: calc(var(--row-gap) * 0.6) var(--col-gap);
  }
  #methodology > .philosophy-quote {
    grid-column: 1 / 5;
    grid-row: 1 / 3;
    width: min(20rem, 100%);
    max-width: 20rem;
    margin-top: 2.2vh;
    top: 0;
  }
  #methodology > .capability-grid {
    grid-column: 1 / 5;
    grid-row: 4 / 12;
    grid-auto-rows: minmax(0, 1fr);
    gap: calc(var(--row-gap) * 0.6) var(--col-gap);
  }
  #methodology > .icon-medium {
    grid-column: 2 / 4;
    grid-row: 12;
  }
  .div-cta-container { grid-column: 1 / 5; grid-template-columns: 1fr; }
  .div-cta { grid-column: 1; }
  .div-cta-copy { min-height: 0; }
  #ai-products .div-cta-container > .div-cta {
    min-height: 0;
    height: auto;
  }
  #ai-products .div-cta-container > .div-cta:nth-child(2) { left: 0; }
  .display-heading { font-size: clamp(5rem, 16vh, 14rem); letter-spacing: -0.5vh; }
  .heading { font-size: clamp(1.6rem, 3.5vh, 2.5rem); }
  .index-wrap { width: 80vw; min-width: 80vw; }
  .page-container { left: -80vw; }
  .page-container.menu-open { transform: translateX(80vw); }
}

/* Fix #12: Small phone breakpoint */
@media screen and (max-width: 479px) {
  :root {
    --pad-x: 5vw;
    --col-gap: 3vw;
    --row-h: 5.5vh;
  }
  .display-heading { font-size: clamp(4rem, 13vh, 10rem); letter-spacing: -0.4vh; margin-bottom: -2vh; }
  .heading { font-size: clamp(1.4rem, 3vh, 2rem); }
  .section.footer > .footer-title-container { grid-template-columns: 1fr; gap: 0.5vh; }
}

/* ===== REVIEW MODE ===== */
body.review-mode .loader-wrapper {
  display: none !important;
}

.review-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 310;
}

.review-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(26, 26, 26, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 26, 0.032) 1px, transparent 1px),
    linear-gradient(to right, rgba(26, 26, 26, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(26, 26, 26, 0.055) 1px, transparent 1px);
  background-size: 4px 4px, 4px 4px, 20px 20px, 20px 20px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

.review-target {
  position: fixed;
  pointer-events: auto;
  cursor: pointer;
  border: 1px dashed rgba(218, 56, 46, 0.92);
  background: rgba(218, 56, 46, 0.08);
  box-shadow: inset 0 0 0 1px rgba(218, 56, 46, 0.16);
  transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.review-target.is-active {
  border-color: rgba(22, 125, 79, 0.94);
  background: rgba(22, 125, 79, 0.1);
  box-shadow: inset 0 0 0 1px rgba(22, 125, 79, 0.18);
}

.review-target.is-draggable {
  pointer-events: auto;
  cursor: grab;
}

.review-target.is-resizable {
  pointer-events: auto;
}

.review-target.is-height-resizable {
  pointer-events: auto;
}

.review-target.is-dragging {
  cursor: grabbing;
}

.review-target.is-resizing {
  cursor: ew-resize;
}

.review-target.is-height-resizing {
  cursor: ns-resize;
}

.review-target-label {
  position: absolute;
  top: -1.6rem;
  left: -1px;
  display: none;
  align-items: center;
  min-height: 1.35rem;
  padding: 0.14rem 0.45rem 0.1rem;
  background: rgba(26, 26, 26, 0.95);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
}

.review-target-handle {
  position: absolute;
  right: -0.45rem;
  bottom: -0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border: 1px solid rgba(22, 125, 79, 0.96);
  background: rgba(245, 245, 245, 0.96);
  box-shadow: 0 0 0 1px rgba(22, 125, 79, 0.18);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.review-target.is-active .review-target-handle {
  opacity: 0.7;
}

.review-target.is-resizable .review-target-handle {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  cursor: ew-resize;
}

.review-target-height-handle {
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  width: 1.5rem;
  height: 0.72rem;
  border: 1px solid rgba(22, 125, 79, 0.96);
  background: rgba(245, 245, 245, 0.96);
  box-shadow: 0 0 0 1px rgba(22, 125, 79, 0.18);
  opacity: 0;
  transform: translateX(-50%) scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.review-target.is-height-resizable .review-target-height-handle {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
  cursor: ns-resize;
}

.review-dock {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 320;
  width: min(21rem, calc(100vw - 2rem));
  box-sizing: border-box;
  max-height: calc(100vh - 2rem);
  padding: 0.95rem;
  overflow: auto;
  background: rgba(245, 245, 245, 0.94);
  border: 1px solid rgba(26, 26, 26, 0.14);
  box-shadow: 0 18px 48px rgba(26, 26, 26, 0.12);
  backdrop-filter: blur(10px);
}

body.project-page.review-mode .review-dock {
  top: auto;
  bottom: 1rem;
  max-height: min(60vh, calc(100vh - 2rem));
}

.review-dock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.review-dock.is-dragging .review-dock-head {
  cursor: grabbing;
}

.review-kicker {
  margin: 0;
  color: rgba(26, 26, 26, 0.56);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-dock-title {
  margin: 0.3rem 0 0;
  color: var(--black);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.review-dock-copy {
  margin: 0.7rem 0 0;
  color: rgba(26, 26, 26, 0.82);
  font-family: var(--font);
  font-size: 0.78rem;
  line-height: 1.45;
}

.review-control-panel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
  padding: 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.review-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-control-label {
  color: rgba(26, 26, 26, 0.62);
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.review-selected-id,
.review-grid-status,
.review-drag-status,
.review-resize-status {
  color: var(--black);
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: right;
}

.review-offsets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.review-offset-box {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(245, 245, 245, 0.72);
}

.review-offset-box span {
  color: rgba(26, 26, 26, 0.56);
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-offset-value {
  color: var(--black);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
}

.review-control-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.review-scale-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.review-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: transparent;
  color: var(--black);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.review-control-button.primary {
  border-color: rgba(22, 125, 79, 0.36);
  background: rgba(22, 125, 79, 0.12);
}

.review-dock-copy code,
.review-target-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.review-dock-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.review-handoff-panel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.review-source-panel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.review-source-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.review-source-meta-box {
  display: grid;
  gap: 0.16rem;
  padding: 0.5rem 0.58rem;
  border: 1px solid rgba(26, 26, 26, 0.1);
  background: rgba(245, 245, 245, 0.72);
}

.review-source-meta-box-wide {
  grid-column: 1 / -1;
}

.review-source-meta-box span {
  color: rgba(26, 26, 26, 0.56);
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.review-source-value {
  color: var(--black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.35;
  word-break: break-word;
}

.review-source-text {
  width: 100%;
  min-height: 12rem;
  padding: 0.68rem 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(245, 245, 245, 0.78);
  color: var(--black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.7rem;
  line-height: 1.45;
  resize: vertical;
}

.review-source-text.is-copied {
  border-color: rgba(22, 125, 79, 0.42);
}

.review-source-note {
  margin: 0;
  color: rgba(26, 26, 26, 0.72);
  font-family: var(--font);
  font-size: 0.74rem;
  line-height: 1.45;
}

.review-text-panel {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.9rem;
  padding: 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.review-text-head,
.review-text-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-text-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.review-text-copy,
.review-text-status {
  margin: 0;
  color: rgba(26, 26, 26, 0.72);
  font-family: var(--font);
  font-size: 0.74rem;
  line-height: 1.45;
}

.review-text-row {
  display: grid;
  gap: 0.35rem;
}

.review-text-color-select {
  width: 100%;
  min-height: 2rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: rgba(245, 245, 245, 0.82);
  color: var(--black);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
}

.review-text-selection {
  width: 100%;
  min-height: 4.25rem;
  padding: 0.68rem 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(245, 245, 245, 0.78);
  color: var(--black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  resize: vertical;
}

.review-handoff-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-handoff-copy,
.review-handoff-status {
  margin: 0;
  color: rgba(26, 26, 26, 0.72);
  font-family: var(--font);
  font-size: 0.74rem;
  line-height: 1.45;
}

.review-handoff-text {
  width: 100%;
  min-height: 8.4rem;
  padding: 0.68rem 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(245, 245, 245, 0.78);
  color: var(--black);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  resize: vertical;
}

.review-handoff-text:focus {
  outline: none;
  border-color: rgba(22, 125, 79, 0.42);
}

.review-dock-link,
.review-dock-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(26, 26, 26, 0.16);
  background: transparent;
  color: var(--black);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.review-dock-head .review-dock-toggle {
  cursor: pointer;
  touch-action: auto;
}

.review-control-button:disabled,
.review-dock-toggle:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.review-target-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.review-target-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: var(--black);
  text-align: left;
  cursor: pointer;
}

.review-target-button.is-active {
  border-color: rgba(22, 125, 79, 0.36);
  background: rgba(22, 125, 79, 0.1);
}

.review-target-name {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
}

.review-target-code {
  color: rgba(26, 26, 26, 0.72);
  font-size: 0.72rem;
  line-height: 1;
}

body.review-overlay-hidden .review-layer {
  opacity: 0;
}

body.review-overlay-hidden .review-target {
  pointer-events: none;
}

body.review-text-selecting .review-layer {
  pointer-events: none;
}

body.review-text-selecting .review-target {
  pointer-events: none;
  opacity: 0.18;
}

body.review-text-selecting .review-target.is-active {
  opacity: 0.32;
}

.review-inline-accent {
  font-weight: 600;
}

.review-inline-accent-store {
  color: var(--store-rank-orange);
}

@media screen and (max-width: 991px) {
  .review-dock {
    width: min(18rem, calc(100vw - 1rem));
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.75rem;
  }

  body.project-page.review-mode .review-dock {
    top: auto;
    bottom: 0.5rem;
  }
}
