/* Home-only direction: playful editorial, without changing project pages. */
.home-page {
  --home-cream: #f8f1e7;
  --home-charcoal: #26201e;
  --home-pink: #e8aaa8;
  --home-coral: #d87368;
  --home-butter: #f2d97b;
  --home-pistachio: #c8d5aa;
  overflow: hidden;
  background: var(--home-cream);
  color: var(--home-charcoal);
}

/* Final IA overrides — keep flagship cards authoritative after legacy home rules. */
.flagship-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 34%);
  gap: clamp(18px, 3vw, 38px);
  align-items: end;
  min-height: 360px;
  border: 1px solid rgba(38, 32, 30, 0.16);
}

.flagship-tile .cap-number {
  position: absolute;
  left: clamp(22px, 3vw, 42px);
  top: clamp(18px, 2.4vw, 34px);
}

.flagship-tile p {
  margin: clamp(56px, 6vw, 90px) 0 28px;
  line-height: 1.12;
}

.flagship-tile h4 {
  margin: 0;
  font-family: "DM Serif Display", "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.flagship-tile .flagship-copy > em {
  display: block;
  margin-top: 8px;
  color: rgba(38, 32, 30, 0.64);
  font-style: normal;
}

.flagship-visual {
  justify-self: end;
  width: 100%;
  max-width: 270px;
}

.flagship-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cap-tile-3 .flagship-visual img {
  object-fit: contain;
}

body:has(.home-page) .home-featured {
  display: none;
}

@media (max-width: 900px) {
  .flagship-tile {
    grid-template-columns: 1fr;
  }

  .flagship-visual {
    justify-self: start;
    max-width: min(310px, 78vw);
  }
}

@media (max-width: 560px) {
  .flagship-collage {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .flagship-tile,
  .cap-tile-1.flagship-tile,
  .cap-tile-2.flagship-tile,
  .cap-tile-3.flagship-tile,
  .cap-tile-4.flagship-tile {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
  }

  .flagship-tile p {
    margin-top: 70px;
    font-size: clamp(27px, 8.2vw, 38px);
    line-height: 1.16;
  }

  .flagship-tile h4 {
    font-size: clamp(31px, 9vw, 44px);
    line-height: 1.08;
  }

  .flagship-visual {
    max-width: 100%;
  }

  .flagship-visual img {
    aspect-ratio: 16 / 10;
  }
}

/* Contact / flagship visual polish */
.cap-tile-4 .flagship-visual {
  max-width: 310px;
  padding: 10px;
  border: 1px solid rgba(65, 21, 36, 0.18);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.62);
  transform: rotate(1.2deg);
}

.cap-tile-4 .flagship-visual img {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 16px;
  background: #fffaf4;
}

@media (max-width: 560px) {
  .cap-tile-4 .flagship-visual {
    max-width: 100%;
    transform: rotate(.5deg);
  }

  .cap-tile-4 .flagship-visual img {
    aspect-ratio: 16 / 10;
  }
}

/* Final home card spacing pass: playful, not crowded. */
.home-page .flagship-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: none;
  gap: clamp(64px, 8vw, 118px) clamp(38px, 5vw, 76px);
  align-items: stretch;
  max-width: min(1320px, calc(100vw - (var(--pad) * 2)));
}

.home-page .flagship-tile,
.home-page .cap-tile-1.flagship-tile,
.home-page .cap-tile-2.flagship-tile,
.home-page .cap-tile-3.flagship-tile,
.home-page .cap-tile-4.flagship-tile {
  grid-column: auto;
  width: 100%;
  height: auto;
  min-height: clamp(520px, 44vw, 660px);
  margin: 0;
  overflow: visible;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: space-between;
  gap: 28px;
  padding: clamp(28px, 3.4vw, 48px);
}

.home-page .cap-tile-1.flagship-tile {
  transform: rotate(-.8deg);
}

.home-page .cap-tile-2.flagship-tile {
  transform: translateY(38px) rotate(.7deg);
}

.home-page .cap-tile-3.flagship-tile {
  transform: translateY(-10px) rotate(.65deg);
}

.home-page .cap-tile-4.flagship-tile {
  transform: translateY(32px) rotate(-.7deg);
}

.home-page .flagship-tile:hover {
  transform: translateY(-7px) rotate(0deg);
}

.home-page .flagship-tile p {
  margin: clamp(76px, 7vw, 110px) 0 30px;
  font-size: clamp(32px, 3.1vw, 50px);
  line-height: 1.14;
}

.home-page .flagship-tile h4 {
  font-size: clamp(34px, 3.9vw, 60px);
  line-height: 1.08;
}

.home-page .flagship-copy {
  width: 100%;
}

.home-page .flagship-visual {
  justify-self: stretch;
  width: min(100%, 390px);
  max-width: none;
  margin-top: 4px;
}

.home-page .flagship-visual img,
.home-page .cap-tile-3 .flagship-visual img {
  width: 100%;
  height: auto;
  max-height: 300px;
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(255, 250, 240, .52);
}

.home-page .flagship-visual span {
  min-height: 260px;
  overflow-wrap: anywhere;
}

@media (max-width: 980px) {
  .home-page .flagship-collage {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .home-page .cap-tile-1.flagship-tile,
  .home-page .cap-tile-2.flagship-tile,
  .home-page .cap-tile-3.flagship-tile,
  .home-page .cap-tile-4.flagship-tile {
    min-height: 0;
    transform: none;
  }

  .home-page .flagship-tile:hover {
    transform: translateY(-5px);
  }
}

@media (max-width: 560px) {
  .home-page .flagship-collage {
    max-width: 100%;
    gap: 34px;
  }

  .home-page .flagship-tile,
  .home-page .cap-tile-1.flagship-tile,
  .home-page .cap-tile-2.flagship-tile,
  .home-page .cap-tile-3.flagship-tile,
  .home-page .cap-tile-4.flagship-tile {
    padding: 24px;
    min-height: 0;
  }

  .home-page .flagship-tile p {
    margin-top: 78px;
    font-size: clamp(30px, 8.6vw, 40px);
  }

  .home-page .flagship-tile h4 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .home-page .flagship-visual {
    width: 100%;
  }

  .home-page .flagship-visual img {
    max-height: none;
  }
}

/* IA refresh: capability direction = flagship case study */
.flagship-collage {
  align-items: stretch;
}

.flagship-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 34%);
  gap: clamp(18px, 3vw, 38px);
  align-items: end;
  min-height: 360px;
  border: 1px solid rgba(38, 32, 30, 0.16);
  color: var(--home-charcoal);
}

.flagship-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.flagship-tile .cap-number {
  position: absolute;
  left: clamp(22px, 3vw, 42px);
  top: clamp(18px, 2.4vw, 34px);
}

.flagship-tile h3 {
  max-width: none;
  margin: 0 0 22px;
  color: rgba(38, 32, 30, 0.72);
}

.flagship-tile p {
  margin: clamp(56px, 6vw, 90px) 0 28px;
  max-width: 720px;
  line-height: 1.12;
}

.flagship-tile small {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(248, 241, 231, 0.64);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.flagship-tile h4 {
  margin: 0;
  max-width: 720px;
  font-family: "DM Serif Display", "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.flagship-tile .flagship-copy > em {
  display: block;
  margin-top: 8px;
  color: rgba(38, 32, 30, 0.64);
  font-size: clamp(14px, 1.3vw, 18px);
  font-style: normal;
  line-height: 1.35;
}

.flagship-visual {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: end;
  width: 100%;
  max-width: 270px;
  padding: 10px;
  border: 1px solid rgba(38, 32, 30, 0.16);
  border-radius: 24px;
  background: rgba(248, 241, 231, 0.58);
  transform: rotate(2.5deg);
  box-shadow: 8px 9px 0 rgba(38, 32, 30, 0.055);
  transition: transform .25s ease;
}

.flagship-tile:nth-child(even) .flagship-visual {
  transform: rotate(-2deg);
}

.flagship-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  object-fit: cover;
}

.cap-tile-3 .flagship-visual img {
  object-fit: contain;
  background: rgba(255, 250, 240, 0.52);
}

.flagship-visual span {
  display: grid;
  min-height: 220px;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 22% 18%, rgba(232, 170, 168, .45), transparent 32%),
    radial-gradient(circle at 78% 76%, rgba(242, 217, 123, .48), transparent 34%),
    rgba(248, 241, 231, .62);
  font-family: "DM Serif Display", serif;
  font-size: clamp(28px, 3vw, 44px);
  line-height: .92;
  text-align: center;
}

.flagship-tile:hover .flagship-visual {
  transform: rotate(0deg) translateY(-4px);
}

body:has(.home-page) .home-featured {
  display: none;
}

@media (max-width: 900px) {
  .flagship-tile {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flagship-visual {
    justify-self: start;
    max-width: min(310px, 78vw);
  }
}

@media (max-width: 560px) {
  .flagship-collage {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .flagship-tile,
  .cap-tile-1,
  .cap-tile-2,
  .cap-tile-3,
  .cap-tile-4 {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
  }

  .flagship-tile p {
    margin-top: 70px;
    font-size: clamp(27px, 8.2vw, 38px);
    line-height: 1.16;
  }

  .flagship-tile h4 {
    font-size: clamp(31px, 9vw, 44px);
    line-height: 1.08;
  }

  .flagship-visual {
    max-width: 100%;
  }

  .flagship-visual img {
    aspect-ratio: 16 / 10;
  }
}

body:has(.home-page) .site-header {
  background: rgba(248, 241, 231, 0.9);
  border-bottom-color: rgba(38, 32, 30, 0.25);
}

body:has(.home-page) .brand {
  font-family: "DM Sans", "Noto Sans SC", sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

body:has(.home-page) .brand::after {
  content: "✦";
  color: var(--home-coral);
  font-size: 12px;
  transform: translateY(-5px);
}

.home-hero {
  position: relative;
  min-height: calc(100svh - 74px);
  padding: clamp(70px, 9vh, 120px) var(--pad) 54px;
  isolation: isolate;
  display: flex;
  align-items: center;
}

.hero-signature {
  position: absolute;
  z-index: -1;
  left: -2vw;
  top: 43%;
  width: 105vw;
  color: var(--home-pink);
  opacity: 0.72;
  font-family: "Caveat", cursive;
  font-size: clamp(150px, 22vw, 355px);
  font-weight: 400;
  line-height: 0.55;
  letter-spacing: -0.075em;
  white-space: nowrap;
  transform: translateY(-50%) rotate(-4deg);
  pointer-events: none;
  animation: signature-in 1.25s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.hero-signature span:last-child {
  margin-left: 0.09em;
}

.home-hero-copy {
  width: min(1040px, 82%);
  position: relative;
  z-index: 2;
}

.home-hero .eyebrow {
  margin-bottom: clamp(32px, 5vh, 64px);
}

.home-hero h1 {
  margin: 0;
  font-family: "DM Serif Display", "Noto Serif SC", serif;
  font-weight: 400;
}

.home-hero h1 > span {
  display: block;
  width: fit-content;
  padding: 0.04em 0.16em 0.1em;
  background: var(--home-butter);
  font-size: clamp(42px, 5.3vw, 78px);
  line-height: 0.95;
  transform: rotate(-1.5deg);
  animation: hero-line-in 0.75s 0.2s both;
}

.home-hero h1 strong {
  display: block;
  margin-top: 0.16em;
  font-size: clamp(58px, 8.7vw, 132px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.055em;
  animation: hero-line-in 0.85s 0.32s both;
}

.home-hero-bottom {
  display: grid;
  grid-template-columns: minmax(300px, 500px) auto;
  gap: clamp(40px, 8vw, 130px);
  align-items: end;
  margin: clamp(42px, 6vh, 78px) 0 0 clamp(30px, 10vw, 160px);
  animation: hero-line-in 0.85s 0.48s both;
}

.home-intro {
  margin: 0;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.65;
}

.home-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}

.home-primary {
  display: inline-block;
  padding: 15px 21px;
  background: var(--home-charcoal);
  color: var(--home-cream);
  font-size: 13px;
  transition: transform 0.25s, background 0.25s;
}

.home-primary:hover {
  transform: rotate(-1.5deg) translateY(-2px);
  background: var(--home-coral);
}

.home-secondary {
  font-size: 12px;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s, padding-left 0.2s;
}

.home-secondary:hover {
  color: var(--home-coral);
  padding-left: 5px;
}

.hero-note {
  position: absolute;
  right: var(--pad);
  top: 17%;
  display: grid;
  gap: 3px;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.hero-note i {
  color: var(--home-coral);
  font-style: normal;
  margin-left: 18px;
}

.hero-spark {
  position: absolute;
  right: 18%;
  bottom: 18%;
  color: var(--home-coral);
  font-size: 28px;
  animation: spark-in 0.6s 0.9s both;
}

.hero-scribble {
  position: absolute;
  right: 3%;
  bottom: 25%;
  width: clamp(130px, 17vw, 230px);
  fill: none;
  stroke: var(--home-charcoal);
  stroke-width: 1.2;
  opacity: 0.7;
}

.hero-scribble path {
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: draw-line 1.1s 0.75s forwards;
}

.home-scroll {
  position: absolute;
  right: var(--pad);
  bottom: 34px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-capabilities,
.home-featured {
  position: relative;
  padding: clamp(100px, 12vw, 180px) var(--pad);
}

.home-capabilities {
  background: #f3e8dc;
}

.home-capabilities::before {
  content: "";
  position: absolute;
  left: -5%;
  top: -32px;
  width: 110%;
  height: 66px;
  background: #f3e8dc;
  clip-path: polygon(0 36%, 13% 54%, 29% 28%, 47% 61%, 66% 24%, 82% 55%, 100% 32%, 100% 100%, 0 100%);
}

.home-section-head,
.home-featured-head {
  position: relative;
  max-width: var(--max);
  margin: 0 auto clamp(70px, 9vw, 125px);
}

.home-section-head h2,
.home-featured-head h2 {
  margin: 0;
  font-family: "DM Serif Display", "Noto Serif SC", serif;
  font-size: clamp(58px, 8.2vw, 124px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.hand-note,
.featured-note {
  position: absolute;
  font-family: "Caveat", cursive;
  color: var(--home-coral);
  font-size: clamp(20px, 2.2vw, 32px);
  transform: rotate(-7deg);
}

.hand-note {
  left: min(62vw, 880px);
  bottom: 5%;
}

.cap-collage {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(250px, auto));
  gap: clamp(15px, 2vw, 30px);
}

.cap-tile {
  position: relative;
  min-height: 280px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.75, 0.2, 1), background 0.3s;
}

.cap-tile::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 70px;
  right: -35px;
  bottom: -25px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.35;
  transform: rotate(-18deg);
  transition: transform 0.35s;
}

.cap-tile:hover {
  transform: translateY(-7px) rotate(-0.5deg);
}

.cap-tile:hover::after {
  transform: rotate(-5deg) translateX(-10px);
}

.cap-tile-1 {
  grid-column: 1 / span 7;
  background: var(--home-pink);
}

.cap-tile-2 {
  grid-column: 8 / span 5;
  margin-top: 55px;
  background: var(--home-butter);
}

.cap-tile-3 {
  grid-column: 1 / span 5;
  background: var(--home-pistachio);
}

.cap-tile-4 {
  grid-column: 6 / span 7;
  margin-top: -28px;
  background: #d9c6b7;
}

.cap-number {
  font-family: "DM Serif Display", serif;
  font-size: clamp(56px, 7vw, 100px);
  line-height: 0.7;
  color: rgba(38, 32, 30, 0.28);
}

.cap-tile p {
  margin: clamp(38px, 5vw, 76px) 0 30px;
  font-family: "DM Serif Display", "Noto Serif SC", serif;
  font-size: clamp(27px, 3.2vw, 48px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.cap-tile p strong {
  font-weight: 400;
  box-shadow: inset 0 -0.22em rgba(248, 241, 231, 0.56);
}

.cap-tile h3 {
  margin: 0;
  max-width: 82%;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cap-arrow {
  position: absolute;
  right: 26px;
  top: 24px;
  font-size: 22px;
  transition: transform 0.25s;
}

.cap-tile:hover .cap-arrow {
  transform: translate(4px, -4px);
}

.home-featured {
  background: var(--home-cream);
}

.home-featured-head h2 {
  max-width: 820px;
}

.featured-note {
  right: 12%;
  bottom: 4%;
}

.home-project-wall {
  max-width: var(--max);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(90px, 11vw, 170px) 28px;
  align-items: start;
}

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

.home-project-1 { grid-column: 1 / span 7; }
.home-project-2 { grid-column: 9 / span 4; margin-top: 170px; }
.home-project-3 { grid-column: 3 / span 9; }
.home-project-4 { grid-column: 1 / span 5; margin-top: 80px; }
.home-project-5 { grid-column: 7 / span 6; }

.home-project-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.55s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.home-project-visual.portrait { aspect-ratio: 3 / 4; }
.home-project-visual.landscape { aspect-ratio: 4 / 3; }
.home-project-visual.wide { aspect-ratio: 16 / 9; }

.home-project-visual::before,
.home-project-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
}

.home-project-visual::before {
  inset: 12% 9% 19% 28%;
  border: 1px solid currentColor;
  transform: rotate(-3deg);
  opacity: 0.45;
}

.home-project-visual::after {
  width: 46%;
  aspect-ratio: 1;
  right: -7%;
  bottom: -18%;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.52;
}

.home-project-placeholder {
  position: absolute;
  left: 8%;
  bottom: 8%;
  padding: 8px 11px;
  background: rgba(248, 241, 231, 0.8);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-project-number {
  position: absolute;
  left: 5%;
  top: 4%;
  font-family: "DM Serif Display", serif;
  font-size: clamp(82px, 11vw, 170px);
  line-height: 0.8;
  color: rgba(248, 241, 231, 0.62);
}

.home-project-mark {
  position: absolute;
  right: 7%;
  top: 7%;
  font-size: 24px;
}

.home-project-copy {
  position: relative;
  width: 90%;
  margin: -13px 0 0 5%;
  padding: 18px 20px 4px;
  background: var(--home-cream);
  z-index: 2;
}

.home-project-copy small {
  font-size: 9px;
  letter-spacing: 0.14em;
}

.home-project-copy h3 {
  margin: 11px 0 12px;
  font-family: "DM Serif Display", "Noto Serif SC", serif;
  font-size: clamp(28px, 3vw, 45px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  transition: color 0.25s;
}

.home-project-copy p {
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.home-project-link {
  display: inline-block;
  font-size: 11px;
  border-bottom: 1px solid currentColor;
  transition: transform 0.25s, color 0.25s;
}

.home-project:hover .home-project-visual {
  transform: scale(1.015) rotate(0.35deg);
}

.home-project:hover .home-project-copy h3,
.home-project:hover .home-project-link {
  color: var(--home-coral);
}

.home-project:hover .home-project-link {
  transform: translateX(5px);
}

@keyframes signature-in {
  from { opacity: 0; transform: translateY(-42%) rotate(-7deg); }
}

@keyframes hero-line-in {
  from { opacity: 0; transform: translateY(28px); }
}

@keyframes spark-in {
  from { opacity: 0; transform: scale(0) rotate(-45deg); }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 900px) {
  .home-hero-copy { width: 92%; }
  .home-hero-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-left: 8%;
  }
  .hero-signature { font-size: clamp(125px, 27vw, 230px); }
  .hero-scribble { right: -3%; bottom: 20%; }
  .cap-collage { grid-template-rows: auto; }
  .cap-tile { min-height: 330px; }
  .cap-tile-1 { grid-column: 1 / span 7; }
  .cap-tile-2 { grid-column: 8 / span 5; }
  .cap-tile-3 { grid-column: 1 / span 5; }
  .cap-tile-4 { grid-column: 6 / span 7; }
  .home-project-1 { grid-column: 1 / span 8; }
  .home-project-2 { grid-column: 8 / span 5; }
  .home-project-3 { grid-column: 2 / span 10; }
  .home-project-4 { grid-column: 1 / span 6; }
  .home-project-5 { grid-column: 7 / span 6; }
}

@media (max-width: 640px) {
  body:has(.home-page) .brand::after { content: "✦"; }
  .home-hero {
    min-height: calc(100svh - 68px);
    align-items: flex-start;
    padding-top: 70px;
    padding-bottom: 64px;
  }
  .home-hero-copy { width: 100%; }
  .home-hero .eyebrow { margin-bottom: 30px; font-size: 9px; }
  .home-hero h1 > span { font-size: 39px; }
  .home-hero h1 strong { font-size: clamp(50px, 15vw, 66px); line-height: 0.92; }
  .hero-signature {
    left: -22%;
    top: 45%;
    width: 145%;
    font-size: clamp(124px, 42vw, 180px);
    line-height: 0.64;
    white-space: normal;
  }
  .hero-signature span { display: block; }
  .hero-signature span:last-child { margin-left: 0.6em; }
  .home-hero-bottom { margin: 42px 0 0 8%; gap: 26px; }
  .home-intro { font-size: 16px; line-height: 1.65; }
  .hero-note { display: none; }
  .hero-scribble { width: 100px; right: -8%; bottom: 22%; opacity: 0.42; }
  .hero-spark { right: 12%; bottom: 13%; }
  .home-scroll { display: none; }
  .home-section-head h2,
  .home-featured-head h2 { font-size: clamp(52px, 16vw, 72px); }
  .hand-note,
  .featured-note { position: static; display: block; width: fit-content; margin: 24px 0 0 auto; }
  .cap-collage,
  .home-project-wall { grid-template-columns: minmax(0, 1fr); }
  .cap-tile,
  .cap-tile-1,
  .cap-tile-2,
  .cap-tile-3,
  .cap-tile-4 {
    grid-column: 1;
    min-height: 300px;
    margin: 0;
  }
  .cap-tile:nth-child(even) { margin-left: 9%; }
  .cap-tile:nth-child(odd) { margin-right: 7%; }
  .home-project-wall { gap: 90px; }
  .home-project-1,
  .home-project-2,
  .home-project-3,
  .home-project-4,
  .home-project-5 {
    grid-column: 1;
    margin-top: 0;
  }
  .home-project:nth-child(even) { margin-left: 8%; }
  .home-project:nth-child(odd) { margin-right: 5%; }
  .home-project-visual { min-height: 320px; }
  .home-project-copy { width: 94%; margin-left: 3%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Second-pass refinement: controlled imperfection and a clearer personal signature. */
body:has(.home-page) .brand::after {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.28s ease;
}

body:has(.home-page) .brand:hover::after {
  transform: translateY(-5px) rotate(22deg) scale(1.12);
}

.home-hero-copy {
  width: min(900px, 68%);
}

.hero-signature {
  inset: 0;
  width: auto;
  color: var(--home-pink);
  opacity: 0.66;
  font-size: clamp(126px, 15vw, 235px);
  line-height: 0.7;
  white-space: nowrap;
  transform: none;
  animation: none;
}

.hero-signature span {
  position: absolute;
  display: block;
  width: max-content;
  pointer-events: none;
}

.signature-vicky {
  top: 28%;
  right: 7%;
  transform: rotate(-7deg);
  animation: signature-vicky-in 0.75s 0.15s both;
}

.signature-peng {
  top: 53%;
  right: 15%;
  margin: 0 !important;
  transform: rotate(-4deg);
  animation: signature-peng-in 0.75s 0.3s both;
}

.home-hero h1 strong {
  font-size: clamp(58px, 7.5vw, 112px);
  max-width: 880px;
}

.home-hero-bottom {
  margin-left: clamp(42px, 7vw, 110px);
}

.hero-note {
  top: 15%;
  right: 4.5%;
  transform: rotate(6deg);
}

.hero-personal-note {
  position: absolute;
  right: 31%;
  bottom: 13%;
  font-family: "Caveat", cursive;
  font-size: clamp(19px, 1.8vw, 27px);
  color: var(--home-coral);
  transform: rotate(-5deg);
  animation: note-in 0.55s 0.85s both;
}

.hero-scribble {
  right: 1%;
  bottom: 21%;
  transform: rotate(5deg);
}

.home-scroll {
  font-family: "Caveat", cursive;
  font-size: 17px;
  letter-spacing: 0.02em;
  text-transform: none;
  transform: rotate(-3deg);
}

.cap-collage {
  grid-template-rows: 390px 330px;
  column-gap: clamp(12px, 1.4vw, 22px);
  row-gap: 44px;
}

.cap-tile {
  min-height: 0;
  transition-delay: var(--delay, 0ms);
}

.cap-tile-1 {
  grid-column: 1 / span 7;
  margin-right: 4%;
}

.cap-tile-2 {
  grid-column: 8 / span 5;
  height: 330px;
  margin: 72px 0 0 -2%;
}

.cap-tile-3 {
  grid-column: 2 / span 4;
  height: 292px;
  margin: -8px 8% 0 0;
}

.cap-tile-4 {
  grid-column: 6 / span 7;
  height: 315px;
  margin: 18px 0 0 -1%;
  background: var(--home-cream);
  color: #9c514d;
  border: 1px solid rgba(156, 81, 77, 0.38);
}

.cap-tile-4 .cap-number {
  color: rgba(156, 81, 77, 0.23);
}

.cap-personal-note {
  position: absolute;
  right: 8%;
  bottom: 9%;
  font-family: "Caveat", cursive;
  font-size: clamp(18px, 1.7vw, 25px);
  font-style: normal;
  transform: rotate(-6deg);
}

.section-bridge {
  max-width: var(--max);
  margin: 82px auto -62px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-family: "Caveat", cursive;
  font-size: 22px;
  color: var(--home-coral);
  transform: rotate(-2deg);
}

.section-bridge svg {
  width: 150px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.home-featured-head {
  margin-left: 4%;
}

.home-featured-head .eyebrow {
  transform: translateX(-18px) rotate(-1deg);
}

.home-project-wall {
  row-gap: clamp(120px, 13vw, 190px);
}

.home-project-1 {
  grid-column: 1 / span 8;
}

.home-project-2 {
  grid-column: 9 / span 4;
  margin-top: 220px;
}

.home-project-2 .home-project-copy {
  width: 122%;
  margin-left: -24%;
  padding-left: 9%;
}

.home-project-3 {
  grid-column: 2 / span 10;
}

.home-project-3 .home-project-visual::before {
  inset: 8% 45% 13% 6%;
  background: rgba(248, 241, 231, 0.16);
}

.project-paper {
  position: absolute;
  background: rgba(248, 241, 231, 0.34);
  border: 1px solid currentColor;
  z-index: -1;
}

.paper-a {
  width: 34%;
  height: 62%;
  right: 11%;
  top: 15%;
  transform: rotate(3deg);
}

.paper-b {
  width: 25%;
  height: 47%;
  right: 30%;
  bottom: 8%;
  transform: rotate(-4deg);
}

.home-project-4 {
  grid-column: 1 / span 7;
  margin-top: 54px;
}

.home-project-4 .home-project-copy {
  margin-left: 12%;
}

.project-note {
  display: block;
  width: fit-content;
  margin: -6px 0 18px auto;
  font-family: "Caveat", cursive;
  font-size: 20px;
  font-style: normal;
  color: var(--home-coral);
  transform: rotate(-3deg);
}

.home-project-5 {
  grid-column: 8 / span 5;
  margin-top: 150px;
}

.project-columns {
  position: absolute;
  inset: 19% 11% 24% 12%;
  background: repeating-linear-gradient(90deg, transparent 0 30%, currentColor 30% calc(30% + 1px), transparent calc(30% + 1px) 35%);
  opacity: 0.22;
}

.home-project-5 .home-project-number {
  left: -2%;
}

.home-project-visual {
  box-shadow: none;
}

.home-project-copy {
  padding-top: 22px;
}

@keyframes signature-vicky-in {
  from { opacity: 0; transform: translate(28px, 10px) rotate(-10deg); }
}

@keyframes signature-peng-in {
  from { opacity: 0; transform: translate(34px, 14px) rotate(-7deg); }
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(8px) rotate(-8deg); }
}

@media (max-width: 900px) {
  .home-hero-copy { width: 74%; }
  .hero-signature { font-size: clamp(112px, 17vw, 155px); }
  .signature-vicky { top: 31%; right: 3%; }
  .signature-peng { top: 50%; right: 8%; }
  .hero-personal-note { right: 22%; bottom: 10%; }
  .cap-collage { grid-template-rows: 350px 300px; }
  .cap-tile-2 { height: 295px; }
  .cap-tile-3 { height: 270px; }
  .cap-tile-4 { height: 285px; }
}

@media (max-width: 640px) {
  .home-hero {
    min-height: 940px;
    padding-top: 66px;
  }
  .home-hero-copy { width: 100%; }
  .home-hero h1 strong {
    max-width: 100%;
    font-size: clamp(47px, 13.2vw, 58px);
    line-height: 0.94;
  }
  .hero-signature {
    inset: 0;
    width: 100%;
    font-size: clamp(104px, 30vw, 132px);
    line-height: 0.72;
    transform: none;
  }
  .hero-signature span {
    max-width: none;
    white-space: nowrap;
  }
  .signature-vicky {
    top: 42%;
    right: 4%;
  }
  .signature-peng {
    top: 53%;
    right: 20%;
  }
  .home-hero-bottom {
    margin: 245px 0 0 7%;
    gap: 24px;
  }
  .hero-personal-note {
    right: 8%;
    bottom: 7%;
    font-size: 19px;
  }
  .hero-scribble {
    right: -8%;
    bottom: 15%;
  }
  .hero-spark {
    right: 12%;
    bottom: 13%;
  }
  .cap-collage {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .cap-tile,
  .cap-tile-1,
  .cap-tile-2,
  .cap-tile-3,
  .cap-tile-4 {
    flex: none;
    height: auto;
    min-height: 290px;
    margin-top: 0;
  }
  .cap-tile-1 { width: 92%; margin-right: auto; }
  .cap-tile-2 { width: 78%; margin-left: auto; }
  .cap-tile-3 { width: 84%; margin-right: auto; }
  .cap-tile-4 { width: 94%; margin-left: auto; }
  .cap-personal-note { right: 7%; bottom: 7%; }
  .section-bridge { margin: 58px 0 -58px; }
  .section-bridge svg { width: 105px; }
  .home-featured-head { margin-left: 0; }
  .home-project-2 .home-project-copy,
  .home-project-4 .home-project-copy {
    width: 94%;
    margin-left: 3%;
    padding-left: 20px;
  }
  .home-project-1 { margin-right: 3%; }
  .home-project-2 { margin-left: 15%; }
  .home-project-3 { margin-right: 0; }
  .home-project-4 { margin-left: 5%; margin-right: 4%; }
  .home-project-5 { margin-left: 12%; margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .signature-vicky,
  .signature-peng,
  .hero-personal-note {
    animation: none !important;
  }
}

/* Typography breathing room and compact personal wordmark. */
.brand,
body:has(.home-page) .brand {
  gap: 5px;
  font-family: "Caveat", cursive;
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  transform: rotate(-2deg);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.brand .brand-wordmark {
  display: inline-block;
  white-space: nowrap;
}

.brand::after,
body:has(.home-page) .brand::after {
  content: "✦";
  display: inline-block;
  color: var(--home-coral, #c56f70);
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  transform: translateY(-7px);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.brand:hover {
  opacity: 0.78;
  transform: rotate(-2deg) translateY(-1px);
}

.brand:hover::after,
body:has(.home-page) .brand:hover::after {
  transform: translateY(-7px) rotate(24deg) scale(1.12);
}

.home-hero h1 strong {
  max-width: 820px;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

:lang(zh-CN) .home-hero h1 strong {
  max-width: 760px;
  font-size: clamp(54px, 6.9vw, 102px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.home-hero-bottom {
  margin-top: clamp(58px, 7.5vh, 92px);
}

.home-section-head,
.home-featured-head {
  margin-bottom: clamp(90px, 11vw, 150px);
}

.home-section-head h2,
.home-featured-head h2 {
  line-height: 1.04;
  letter-spacing: -0.042em;
}

:lang(zh-CN) .home-section-head h2 {
  max-width: 760px;
  font-size: clamp(56px, 7.2vw, 108px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

:lang(zh-CN) .home-featured-head h2 {
  max-width: 680px;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.home-featured-head .featured-note {
  bottom: -4%;
}

@media (max-width: 900px) {
  .brand,
  body:has(.home-page) .brand {
    font-size: 24px;
  }

  .brand span,
  .brand .brand-wordmark {
    display: inline-block;
  }

  :lang(zh-CN) .home-hero h1 strong {
    max-width: 640px;
    font-size: clamp(50px, 8.8vw, 70px);
    line-height: 1.1;
  }

  :lang(zh-CN) .home-section-head h2,
  :lang(zh-CN) .home-featured-head h2 {
    max-width: 620px;
    font-size: clamp(54px, 9.5vw, 74px);
    line-height: 1.12;
  }
}

@media (max-width: 640px) {
  .brand,
  body:has(.home-page) .brand {
    font-size: 22px;
    transform: rotate(-2deg);
  }

  .brand::after,
  body:has(.home-page) .brand::after {
    font-size: 8px;
    transform: translateY(-6px);
  }

  .home-hero h1 > span {
    line-height: 1.08;
  }

  :lang(zh-CN) .home-hero h1 strong {
    max-width: 100%;
    font-size: clamp(44px, 12.4vw, 53px);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .home-hero-bottom {
    margin-top: 270px;
  }

  .home-section-head,
  .home-featured-head {
    margin-bottom: 86px;
  }

  :lang(zh-CN) .home-section-head h2,
  :lang(zh-CN) .home-featured-head h2 {
    max-width: 100%;
    font-size: clamp(47px, 13vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.025em;
  }

  :lang(en) .home-section-head h2,
  :lang(en) .home-featured-head h2 {
    font-size: clamp(48px, 14vw, 60px);
    line-height: 1.06;
  }
}

/* Final IA overrides — keep flagship cards authoritative after legacy home rules. */
.flagship-tile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 34%);
  gap: clamp(18px, 3vw, 38px);
  align-items: end;
  min-height: 360px;
  border: 1px solid rgba(38, 32, 30, 0.16);
}

.flagship-tile .cap-number {
  position: absolute;
  left: clamp(22px, 3vw, 42px);
  top: clamp(18px, 2.4vw, 34px);
}

.flagship-tile p {
  margin: clamp(56px, 6vw, 90px) 0 28px;
  line-height: 1.12;
}

.flagship-tile h4 {
  margin: 0;
  font-family: "DM Serif Display", "Noto Serif SC", serif;
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.flagship-tile .flagship-copy > em {
  display: block;
  margin-top: 8px;
  color: rgba(38, 32, 30, 0.64);
  font-style: normal;
}

.flagship-visual {
  justify-self: end;
  width: 100%;
  max-width: 270px;
}

.flagship-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cap-tile-3 .flagship-visual img {
  object-fit: contain;
}

body:has(.home-page) .home-featured {
  display: none;
}

@media (max-width: 900px) {
  .flagship-tile {
    grid-template-columns: 1fr;
  }

  .flagship-visual {
    justify-self: start;
    max-width: min(310px, 78vw);
  }
}

@media (max-width: 560px) {
  .flagship-collage {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .flagship-tile,
  .cap-tile-1.flagship-tile,
  .cap-tile-2.flagship-tile,
  .cap-tile-3.flagship-tile,
  .cap-tile-4.flagship-tile {
    width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    min-height: 0;
  }

  .flagship-tile p {
    margin-top: 70px;
    font-size: clamp(27px, 8.2vw, 38px);
    line-height: 1.16;
  }

  .flagship-tile h4 {
    font-size: clamp(31px, 9vw, 44px);
    line-height: 1.08;
  }

  .flagship-visual {
    max-width: 100%;
  }

  .flagship-visual img {
    aspect-ratio: 16 / 10;
  }
}
