.hero__secondary {
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.25vw, 2.05rem);
  line-height: 1.45;
  text-wrap: balance;
}

.customer-challenges {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.narrative-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.narrative-grid > div {
  border-top: 1px solid rgba(40, 47, 43, .25);
  padding-top: 1rem;
}

.narrative-grid h3 {
  margin: 0 0 .65rem;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.5;
}

.narrative-grid p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
}

.process .narrative-grid {
  margin-bottom: 2rem;
}

#tools-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  text-align: center;
}

.challenge-icon {
  display: block;
  margin: 0 0 .9rem;
  color: #69523d;
}

.challenge-gesture {
  stroke: #89623d;
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .challenge-item.is-in-view .challenge-spark {
    animation: challenge-spark-in 550ms cubic-bezier(.2, .65, .3, 1) both;
  }

  .challenge-item.is-in-view .challenge-arrow {
    animation: challenge-arrow-in 430ms 90ms cubic-bezier(.2, .65, .3, 1) both;
  }

  .challenge-item.is-in-view .challenge-check {
    stroke-dasharray: 1;
    animation: challenge-check-in 440ms 180ms cubic-bezier(.2, .65, .3, 1) both;
  }
}

@keyframes challenge-spark-in {
  from { transform: scale(.25) rotate(-25deg); opacity: .25; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes challenge-arrow-in {
  from { transform: translateX(-5px); opacity: .25; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes challenge-check-in {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.service-cards,
.case-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}

.service-cards .service-row {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.25rem;
  padding: 0 0 1.5rem;
  border-top: 0;
  border-bottom: 1px solid rgba(237, 233, 220, .22);
}

.service-cards .service-row figure {
  width: 100%;
  margin: 0;
  background: rgba(237, 233, 220, .08);
}

.service-cards .service-row figure > img,
.case-wall .case-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.case-wall {
  row-gap: clamp(.85rem, 2vw, 1.5rem);
}

.case-milestones {
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.case-milestones h3 {
  margin: 0 0 1.25rem;
  font: 500 clamp(1.5rem, 2.8vw, 2.4rem)/1.2 var(--font-serif);
}

.case-milestones .proof-strip {
  margin-top: 0;
}

@media (max-width: 1000px) {
  .service-cards,
  .case-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .service-cards,
  .case-wall {
    grid-template-columns: minmax(0, 1fr);
  }
}

.case-wall .case-image {
  position: relative;
}

.case-image-title {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 2.4rem clamp(.75rem, 1.7vw, 1.25rem) .85rem;
  background: linear-gradient(transparent, rgba(18, 17, 14, .88) 58%);
  color: #fffaf0;
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
  line-height: 1.4;
  text-wrap: pretty;
}

/* Shared type and spacing for the homepage narrative. */
main {
  --home-space-sm: clamp(.75rem, .65rem + .4vw, 1rem);
  --home-space-md: clamp(1rem, .82rem + .75vw, 1.5rem);
  --home-gutter: clamp(1.25rem, .85rem + 1.4vw, 2.25rem);
  --home-heading-gap: clamp(1.75rem, 1rem + 2.5vw, 3.5rem);
  --home-section-gap: clamp(3.75rem, 2.4rem + 5.2vw, 7rem);
  --home-title-size: clamp(1.85rem, 1.25rem + 2.3vw, 3.25rem);
  --home-card-size: clamp(1.12rem, 1.03rem + .45vw, 1.42rem);
  --home-paper-accent: #795b39;
  --home-dark-copy: #d3ded8;
}

main > :is(.customer-challenges, .services, .selected-work, .process, .insights, .about, .art-portal, .narrative-contact) {
  padding-block: var(--home-section-gap);
}

main > :is(.customer-challenges, .services, .selected-work, .process, .insights) .section-heading {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: var(--home-space-sm);
  margin-bottom: var(--home-heading-gap);
}

main .section-heading > .eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .14em;
}

main :is(.section-heading h2, .about h2, .contact h2, .art-portal h2) {
  font: 500 var(--home-title-size)/1.28 var(--font-serif);
  letter-spacing: .015em;
  text-wrap: balance;
}

main .section-intro {
  justify-self: start;
  max-width: 58ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
}

.customer-challenges .narrative-grid,
.service-cards,
.case-wall {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--home-gutter);
}

.narrative-grid h3,
.service-cards .service-copy h3,
main .process-list h3,
main .insight-card h3 {
  font: 600 var(--home-card-size)/1.42 var(--font-sans);
  letter-spacing: .01em;
  margin-block: 0 var(--home-space-sm);
}

.narrative-grid p,
.service-cards .service-copy > p:not(.eyebrow),
main .process-list p {
  font: 400 1rem/1.75 var(--font-sans);
}

.customer-challenges .narrative-grid p {
  color: var(--muted);
}

.service-cards .service-row {
  gap: var(--home-space-md);
  padding-bottom: var(--home-gutter);
  border-color: rgb(245 241 232 / .24);
}

.service-cards .service-copy > p:not(.eyebrow) {
  color: var(--home-dark-copy);
}

.service-cards .service-tags {
  gap: .4rem .8rem;
  margin-block: var(--home-space-md) var(--home-space-sm);
  font-size: .82rem;
}

.service-cards .service-copy .text-link {
  font-size: .9rem;
}

.challenge-icon {
  color: var(--home-paper-accent);
  margin-bottom: var(--home-space-sm);
}

.challenge-gesture {
  stroke: var(--home-paper-accent);
}

.case-image-title {
  padding: 1.85rem var(--home-space-md) var(--home-space-sm);
  background: linear-gradient(transparent, rgb(11 44 48 / .9) 72%);
  color: var(--light);
  font: 600 clamp(.9rem, .85rem + .21vw, 1.04rem)/1.4 var(--font-sans);
}

.case-milestones {
  margin-top: var(--home-section-gap);
}

.case-milestones h3 {
  font: 500 clamp(1.65rem, 1.35rem + 1vw, 2.4rem)/1.25 var(--font-serif);
  margin-bottom: var(--home-space-md);
}

.case-milestones .proof-strip {
  gap: var(--home-gutter);
  padding-block: var(--home-gutter);
}

.case-milestones .proof-strip > div > span {
  font: 500 clamp(1.65rem, 1.1rem + 1.9vw, 3rem)/1.08 var(--font-serif);
  color: var(--home-paper-accent);
  letter-spacing: 0;
  white-space: nowrap;
}

.case-milestones .proof-strip p {
  font-size: .92rem;
  line-height: 1.55;
}

main > .tool-logos {
  background: var(--deep);
  padding-block: var(--home-heading-gap);
}

#tools-title {
  font: 600 var(--home-card-size)/1.4 var(--font-sans);
  margin-bottom: var(--home-gutter);
}

@media (min-width: 641px) and (max-width: 1000px) {
  .service-cards, .case-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .customer-challenges .narrative-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .service-cards, .case-wall {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .home-polish-enter {
    animation: home-polish-enter 480ms cubic-bezier(.22, .65, .36, 1) both;
    animation-delay: var(--home-enter-delay, 0ms);
  }
}

@keyframes home-polish-enter {
  from { opacity: .28; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

/* Allow Traditional Chinese headlines to wrap between sense groups. */
html[lang="zh-Hant"] main {
  line-break: strict;
  word-break: normal;
}

html[lang="zh-Hant"] main :is(.hero__secondary, .section-heading h2, .case-image-title, .about h2, .contact h2) {
  text-wrap: wrap;
}

.zh-phrase {
  white-space: nowrap;
}

@media (max-width: 420px) {
  html[lang="zh-Hant"] #challenges-title {
    font-size: clamp(1.3rem, 6.4vw, 1.65rem);
  }
}

.service-cards .service-copy > p:not(.eyebrow) {
  margin-bottom: var(--home-space-md);
}

.process .process-list h3 {
  font-size: 1rem;
  margin: .35rem 0 0;
}

.home-contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
}

.home-contact-links .footer-email {
  margin: 0;
}

@media (max-width: 760px) {
  .process .process-list li {
    grid-template-columns: 2rem minmax(0, 1fr);
    padding-block: .65rem;
  }

  .process .process-list h3 {
    margin: 0;
  }
}

html[lang="zh-Hant"] main :is(
  .hero__secondary,
  .section-heading h2,
  .case-milestones h3,
  .about h2,
  .contact h2,
  .art-portal h2
) {
  font-family: "Cormorant Garamond", "GenYoMin2TC", "Noto Serif TC", serif;
  font-weight: 400;
}

.hero::after {
  content: none;
}

.hero .hero__content {
  text-shadow: none;
}

.hero .hero-kicker {
  color: #fffaf0;
  font-size: clamp(.82rem, .76rem + .23vw, 1rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .13em;
}

.hero .regional-clock {
  padding: 0;
  background: none;
  font-size: .8rem;
}

main > .about-intro {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.about.about-intro > .shell {
  border-top: 0;
  padding-top: 0;
}

main > .founder-section > .shell {
  padding-top: 0;
  border-top: 0;
}

main > .tool-logos {
  padding-block: clamp(1.35rem, 3.4vw, 2.65rem);
}

.tool-logos .logo-scroll {
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgb(245 241 232 / .34) transparent;
}

.tool-logos .tool-logos__grid {
  display: flex;
  min-width: max-content;
  justify-content: space-between;
  gap: clamp(1.25rem, 3vw, 2.7rem);
}

.tool-logos .tool-logo {
  flex: 1 0 auto;
  gap: .45rem;
  min-height: 3.25rem;
}

.tool-logos .tool-logo img {
  width: 1.45rem;
  height: 1.45rem;
}

.tool-logos .tool-logo span {
  color: #f3eee3;
  font-family: var(--font-sans);
  font-size: clamp(.82rem, 1.16vw, .95rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

.home-contact-links {
  gap: .55rem 1.5rem;
  margin-top: .65rem;
}

.home-contact-links :is(.home-contact-primary, .footer-email) {
  display: inline-block;
  border: 0;
  text-decoration: underline;
  text-underline-offset: .4em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgb(245 241 232 / .5);
  font-size: 1rem;
  line-height: 1.7;
}

.home-contact-links .home-contact-primary {
  color: #e2cba2;
  font-weight: 600;
  text-decoration-color: currentColor;
}

.home-contact-links a:hover {
  text-decoration-color: currentColor;
}

/* Soft shadow on the lettering, with no overlay on the photograph. */
.hero--full-bleed :is(.hero-kicker, .hero__primary, .hero__secondary, .hero-poem, .regional-clock) {
  color: #fff;
  text-shadow: 0 1px 4px rgb(9 39 43 / .8), 0 2px 12px rgb(9 39 43 / .42);
}

.hero--full-bleed .hero__primary {
  font-weight: 500;
}

.hero--full-bleed :is(.hero-kicker, .hero-poem) {
  color: #ffe3a0;
  text-shadow:
    0 -2px 3px rgb(3 20 20 / .72),
    0 2px 3px rgb(3 20 20 / .82),
    0 4px 9px rgb(3 20 20 / .4),
    0 0 12px rgb(255 207 123 / .27);
}

.hero--full-bleed :is(.hero__secondary, .regional-clock) {
  text-shadow: 0 2px 3px rgb(3 20 20 / .82), 0 4px 9px rgb(3 20 20 / .4);
}

.hero--full-bleed :is(.hero-poem, .regional-clock) {
  font-weight: 600;
}

html[lang="zh-Hant"] .hero--full-bleed .hero__secondary {
  font-weight: 600;
}

.hero--full-bleed .hero-poem {
  font-size: clamp(.79rem, .73rem + .23vw, .96rem);
}

@media (max-width: 760px) {
  .tool-logos .logo-scroll {
    overflow: visible;
  }

  .tool-logos .tool-logos__grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem .85rem;
  }
}

@media (max-width: 460px) {
  .tool-logos .tool-logos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-logos .tool-logo:last-child {
    grid-column: 1 / -1;
  }
}
