/* EXCESS portfolio additions: service previews, showcase categories, and process proof. */

.cta-band .btn--light {
  border-color: rgba(255, 255, 255, .78);
  background: transparent;
  color: #fff;
}

.cta-band .btn--light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

/* Reusable Thai / English contact split for every project CTA. */
.sitewide-contact-actions {
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr) minmax(190px, 1fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: end;
  margin-top: clamp(30px, 4vw, 48px);
}

.sitewide-contact-actions > .btn {
  align-self: stretch;
  min-width: 146px;
}

.contact-language {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .48);
}

.contact-language-label {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, .62);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.contact-language a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: .45rem;
  color: #fff;
  font-size: clamp(.82rem, 1.15vw, .95rem);
  font-weight: 780;
  white-space: nowrap;
}

.contact-language a:last-child {
  justify-self: end;
}

.contact-language a span {
  transition: transform 200ms var(--ease);
}

.home-md .sitewide-contact-actions {
  grid-template-columns: auto minmax(190px, 1fr) minmax(190px, 1fr);
  margin-top: 0;
}

.home-md .contact-language {
  border-color: color-mix(in oklch, var(--home-canvas) 48%, transparent);
}

.home-md .contact-language-label {
  color: color-mix(in oklch, var(--home-canvas) 64%, transparent);
}

.home-md .contact-language a {
  color: var(--home-canvas);
  font-family: var(--home-font);
}

/* Image-led article index. Each card reuses the article's real project image. */
.article-list.article-list--visual {
  align-items: stretch;
}

.article-card--visual {
  padding: 0;
  min-height: 0;
  justify-content: flex-start;
}

.article-card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--soft);
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 720ms var(--ease), filter 320ms var(--ease);
}

.article-card--visual > .kicker {
  margin: clamp(24px, 3vw, 38px) clamp(26px, 4vw, 52px) 0;
}

.article-card--visual > div {
  display: flex;
  min-height: 300px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 clamp(26px, 4vw, 52px) clamp(28px, 4vw, 50px);
}

.article-card--visual .link-arrow {
  margin-top: auto;
}

.product-gallery-section {
  border-block: 1px solid var(--line);
  background: #fff;
}

.portfolio-heading {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.portfolio-heading .display {
  margin: 0;
  max-width: 12ch;
}

.portfolio-heading .lede {
  margin: 0;
  justify-self: end;
}

.product-gallery,
.show-cat-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}

.product-gallery .pg-cell {
  grid-column: span 4;
}

.pg-cell {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.pg-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 420ms var(--ease), transform 720ms var(--ease);
}

.pg-cell img.is-loaded,
.show-cat-grid .pg-cell img {
  opacity: 1;
}

.pg-cell.is-swapping {
  opacity: .35;
  transform: scale(.985);
}

.bento-viewall,
.show-learnmore {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: 28px;
  border-bottom: 1px solid currentColor;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  transition: gap 220ms var(--ease), color 220ms var(--ease);
}

.bento-viewall:hover,
.show-learnmore:hover {
  gap: 1rem;
  color: var(--muted);
}

.showcase-index {
  padding-top: 0;
}

.showcase-intro {
  display: grid;
  grid-template-columns: minmax(360px, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  padding-bottom: clamp(56px, 8vw, 112px);
}

.showcase-intro .display {
  margin: 18px 0 0;
  font-size: clamp(2.8rem, 4.4vw, 4.8rem);
}

.showcase-intro .lede {
  margin: 0;
  justify-self: end;
}

.show-jumpbar {
  position: sticky;
  z-index: 15;
  top: var(--nav);
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  scrollbar-width: none;
}

.show-jumpbar::-webkit-scrollbar {
  display: none;
}

.show-jumpbar a {
  flex: 0 0 auto;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem 1rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.show-jumpbar a span {
  font-size: .64rem;
  font-variant-numeric: tabular-nums;
}

.show-jumpbar a:hover,
.show-jumpbar a.active {
  background: var(--ink);
  color: #fff;
}

.show-cat {
  padding: clamp(72px, 9vw, 136px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav) + 56px);
}

.show-cat-head {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1.45fr);
  gap: clamp(28px, 6vw, 92px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.show-cat-kicker {
  align-self: start;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.show-cat-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: .96;
}

.show-cat-desc {
  grid-column: 2;
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.show-cat-grid .pg-cell {
  grid-column: span 3;
}

.show-cat-grid .pg-cell:nth-child(1),
.show-cat-grid .pg-cell:nth-child(6) {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.show-cat-grid .pg-cell:nth-child(4n) {
  aspect-ratio: 3 / 4;
}

#work-in-progress {
  background: var(--soft);
}

#work-in-progress .show-cat-grid .pg-cell:nth-child(5n + 1) {
  grid-column: span 6;
}

.show-cat-empty {
  padding: 38px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

/* Homepage process proof, deliberately separate from the service grid. */
.home-md .why .why-process-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
}

.home-md .why .why-process-copy {
  text-align: left;
}

.home-md .why .why-process-copy .eyebrow {
  justify-content: flex-start;
}

.home-md .process-preview {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  grid-template-rows: repeat(2, minmax(130px, 1fr));
  gap: 8px;
  min-height: clamp(380px, 48vw, 650px);
}

.home-md .process-preview figure {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  background: var(--home-surface);
}

.home-md .process-preview figure:first-child {
  grid-row: 1 / 3;
}

.home-md .process-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 720ms var(--home-ease-out);
}

.home-md .process-preview figcaption {
  position: static;
  padding: .75rem 0 0;
  background: transparent;
  color: var(--home-ink, #171717);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* About page process triptych. */
.about-process {
  border-block: 1px solid var(--line);
  background: #fff;
}

.process-triptych {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: clamp(8px, 1vw, 14px);
}

.process-triptych figure {
  margin: 0;
}

.process-triptych figure > div {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--soft);
}

.process-triptych figure:first-child > div {
  aspect-ratio: 16 / 10;
}

.process-triptych img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 720ms var(--ease);
}

.process-triptych figcaption {
  padding: 13px 0 17px;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 750;
}

/* Shared lightbox for service and showcase photographs. */
#lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(12, 12, 12, .96);
}

#lightbox.open {
  display: grid;
}

#lightbox .lb-img {
  max-width: min(1200px, 88vw);
  max-height: 82vh;
  object-fit: contain;
}

#lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

#lightbox .lb-close {
  top: 18px;
  right: 18px;
  font-size: 1.7rem;
}

#lightbox .lb-prev,
#lightbox .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
}

#lightbox .lb-prev {
  left: 18px;
}

#lightbox .lb-next {
  right: 18px;
}

#lightbox .lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: .75rem;
  letter-spacing: .08em;
}

@media (hover: hover) and (pointer: fine) {
  .pg-cell:hover img,
  .home-md .process-preview figure:hover img,
  .process-triptych figure:hover img,
  .article-card--visual:hover .article-card-media img {
    transform: scale(1.05);
  }

  .contact-language a:hover span {
    transform: translate(3px, -3px);
  }
}

@media (max-width: 1050px) {
  .portfolio-heading,
  .showcase-intro,
  .show-cat-head,
  .home-md .why .why-process-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-heading .lede,
  .showcase-intro .lede {
    justify-self: start;
  }

  .show-cat-desc {
    grid-column: 1;
  }

  .show-cat-grid .pg-cell {
    grid-column: span 4;
  }

  .show-cat-grid .pg-cell:nth-child(1),
  .show-cat-grid .pg-cell:nth-child(6),
  #work-in-progress .show-cat-grid .pg-cell:nth-child(5n + 1) {
    grid-column: span 8;
  }

  .sitewide-contact-actions,
  .home-md .sitewide-contact-actions {
    grid-template-columns: 1fr 1fr;
  }

  .sitewide-contact-actions > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 700px) {
  .portfolio-heading,
  .showcase-intro,
  .show-cat-head {
    gap: 18px;
  }

  .product-gallery,
  .show-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-gallery .pg-cell,
  .show-cat-grid .pg-cell,
  .show-cat-grid .pg-cell:nth-child(1),
  .show-cat-grid .pg-cell:nth-child(6),
  #work-in-progress .show-cat-grid .pg-cell:nth-child(5n + 1) {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }

  .product-gallery .pg-cell:first-child,
  .show-cat-grid .pg-cell:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .home-md .process-preview {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 62vw 38vw;
    min-height: 0;
  }

  .home-md .process-preview figure:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .process-triptych {
    grid-template-columns: 1fr 1fr;
  }

  .process-triptych figure:first-child {
    grid-column: 1 / -1;
  }

  #lightbox .lb-prev,
  #lightbox .lb-next {
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .sitewide-contact-actions,
  .home-md .sitewide-contact-actions {
    grid-template-columns: 1fr;
  }

  .sitewide-contact-actions > .btn {
    grid-column: auto;
    justify-self: stretch;
  }

  .contact-language {
    grid-template-columns: 1fr;
  }

  .contact-language a:last-child {
    justify-self: start;
  }

  .article-card--visual > div {
    min-height: 260px;
  }
}

/* Accessible breadcrumb trail for canonical inner pages. */
.site-breadcrumbs {
  border-bottom: 1px solid var(--line, #dededb);
  color: var(--muted, #666);
}

.site-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .025em;
  line-height: 1.4;
}

.site-breadcrumbs li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-breadcrumbs li + li::before {
  margin-inline: .65rem;
  color: color-mix(in oklch, var(--muted, #666) 55%, transparent);
  content: "/";
}

.site-breadcrumbs a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
  transition: color 180ms ease-out, text-decoration-color 180ms ease-out;
}

.site-breadcrumbs a:hover {
  color: var(--ink, #171717);
  text-decoration-color: currentColor;
}

.site-breadcrumbs a:focus-visible {
  border-radius: 2px;
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.site-breadcrumbs [aria-current="page"] {
  overflow: hidden;
  max-width: min(58vw, 48ch);
  color: var(--ink, #171717);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .site-breadcrumbs ol {
    min-height: 44px;
    padding-block: 8px;
    font-size: .68rem;
  }

  .site-breadcrumbs li + li::before {
    margin-inline: .48rem;
  }

  .site-breadcrumbs [aria-current="page"] {
    max-width: 46vw;
  }
}

/* Preserve the complete project photograph when its full composition is important. */
.page-image.page-image--full {
  height: auto;
  object-fit: contain;
}

/* Long-form material guide: preserve a readable editorial rhythm without changing the site shell. */
.article-guide h3 {
  margin: 2rem 0 0.65rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  letter-spacing: -0.02em;
}

.article-guide ul {
  margin: 0 0 1.7rem;
  padding-inline-start: 1.35rem;
}

.article-guide hr {
  margin: clamp(3.5rem, 7vw, 6rem) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-table-wrap {
  margin: 1.5rem 0 3rem;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.article-table-wrap table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
}

.article-table-wrap th,
.article-table-wrap td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-table-wrap thead th {
  background: var(--soft);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.article-table-wrap tbody tr:last-child th,
.article-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.article-contact-note {
  margin-top: 2rem;
  padding: clamp(1.3rem, 3vw, 2rem);
  border: 1px solid var(--line);
  color: var(--ink) !important;
}

/* Shared Home-style footer for every public inner page. */
.footer.footer--home {
  padding: clamp(64px, 8vw, 104px) 0 28px;
  border-top: 1px solid var(--line, #dededb);
  background: #fff;
  color: var(--ink, #171717);
}

.footer--home .foot-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(130px, .65fr) minmax(180px, .8fr) minmax(260px, 1.15fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.footer--home .home-foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 22px;
  color: var(--ink, #171717);
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: -.015em;
}

.footer--home .home-foot-logo:hover {
  color: var(--ink, #171717);
}

.footer--home .home-foot-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer--home .foot-brand > p {
  max-width: 38ch;
  margin: 0;
  color: var(--muted, #666);
  font-size: .92rem;
  line-height: 1.7;
}

.footer--home .foot-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer--home .foot-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--line, #dededb);
  border-radius: 50%;
  color: var(--ink, #171717);
  transition: background-color .22s ease, color .22s ease, transform .22s ease;
}

.footer--home .foot-social a:hover {
  background: var(--ink, #171717);
  color: #fff;
  transform: translateY(-3px);
}

.footer--home .foot-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer--home .foot-col h3 {
  margin: 0 0 17px;
  color: var(--ink, #171717);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .03em;
}

.footer--home .foot-col a,
.footer--home .foot-col p {
  display: block;
  margin: 0;
  padding: 5px 0;
  color: var(--muted, #666);
  font-size: .9rem;
  line-height: 1.65;
}

.footer--home .foot-col a:hover {
  color: var(--ink, #171717);
}

.footer--home .foot-map {
  height: 150px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line, #dededb);
}

.footer--home .foot-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer--home .foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(42px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--line, #dededb);
  color: var(--muted, #666);
  font-size: .73rem;
}

@media (max-width: 1050px) {
  .footer--home .foot-grid {
    grid-template-columns: 1.2fr .7fr .8fr;
  }

  .footer--home .foot-col:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr);
    gap: 0 32px;
    align-items: start;
  }

  .footer--home .foot-col:last-child h3 {
    grid-column: 1 / -1;
  }

  .footer--home .foot-map {
    grid-column: 2;
    grid-row: 2 / span 2;
    margin-top: 5px;
  }
}

@media (max-width: 700px) {
  .footer.footer--home {
    padding-top: 58px;
  }

  .footer--home .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 24px;
  }

  .footer--home .foot-brand,
  .footer--home .foot-col:last-child {
    grid-column: 1 / -1;
  }

  .footer--home .foot-col:last-child {
    display: block;
  }

  .footer--home .foot-map {
    height: 190px;
    margin-top: 14px;
  }

  .footer--home .foot-bottom {
    flex-direction: column;
    margin-top: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-cell img,
  .home-md .process-preview img,
  .process-triptych img {
    transition-duration: 1ms;
  }
}

/* Contact directory v2: the channels are the actions, so no redundant CTA button. */
.cta-project-title {
  margin: 1.1rem 0 0;
  max-width: 13ch;
}

.cta-band .cta-project-title {
  color: #fff;
}

.cta-project-copy {
  max-width: 58ch;
  margin-top: 1.4rem;
}

.sitewide-contact-actions,
.home-md .sitewide-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
  width: 100%;
  max-width: 820px;
  margin-top: clamp(36px, 5vw, 62px);
}

.contact-language,
.sitewide-contact-actions .contact-language,
.home-md .contact-language {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
  padding-top: 0;
  border-top: 0;
}

.contact-language-label,
.sitewide-contact-actions .contact-language-label,
.home-md .contact-language-label {
  width: 100%;
  margin-top: 0;
  padding: 14px 0 16px;
  background: transparent;
  color: #fff;
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  font-weight: 900;
  letter-spacing: .15em;
  line-height: 1.1;
  text-align: center;
  justify-self: stretch;
}

/* Showcase masonry respects each photograph's real horizontal or vertical shape. */
.show-cat-grid {
  display: block;
  columns: 3;
  column-gap: clamp(10px, 1.2vw, 18px);
}

.show-cat-grid .pg-cell,
.show-cat-grid .pg-cell:nth-child(1),
.show-cat-grid .pg-cell:nth-child(6),
.show-cat-grid .pg-cell:nth-child(4n),
#work-in-progress .show-cat-grid .pg-cell:nth-child(5n + 1) {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(10px, 1.2vw, 18px);
  aspect-ratio: auto;
  break-inside: avoid;
  grid-column: auto;
  vertical-align: top;
}

.show-cat-grid .pg-cell img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.show-cat-grid .pg-cell.is-visible {
  animation: showcase-reveal 520ms var(--ease) var(--reveal-delay, 0ms) both;
}

.show-cat-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 34px;
  align-items: center;
  margin-top: 26px;
}

.show-cat-foot .show-learnmore {
  margin-top: 0;
}

.show-more {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #171717;
  background: #171717;
  color: #fff;
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}

.show-more i {
  margin-left: 18px;
  font-style: normal;
  font-size: 1rem;
}

@keyframes showcase-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
  .show-more:hover {
    background: #fff;
    color: #171717;
    transform: translateY(-2px);
  }
}

@media (max-width: 1050px) {
  .show-cat-grid { columns: 2; }
}

@media (max-width: 620px) {
  .show-cat-grid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .show-cat-grid .pg-cell.is-visible { animation: none; }
}

.contact-language a,
.home-md .contact-language a {
  display: grid;
  grid-template-columns: minmax(76px, .42fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: .86rem;
  font-weight: 600;
  white-space: normal;
}

.contact-language a:last-child,
.home-md .contact-language a:last-child {
  justify-self: stretch;
}

.contact-language a > span,
.home-md .contact-language a > span {
  color: rgba(255, 255, 255, .48);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.contact-language a > strong,
.home-md .contact-language a > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font: inherit;
}

.contact-language a > i,
.home-md .contact-language a > i {
  font-style: normal;
  transition: transform 220ms var(--ease);
}

.contact-language a:last-child,
.home-md .contact-language a:last-child {
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  padding-block: 10px;
}

.contact-language a:last-child > strong,
.home-md .contact-language a:last-child > strong {
  grid-column: 1 / -1;
  font-size: .76rem;
}

.contact-language a:last-child > i,
.home-md .contact-language a:last-child > i {
  grid-column: 2;
  grid-row: 1;
}

.contact-cta-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: color-mix(in oklch, var(--home-canvas) 66%, transparent);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.home-md .cta--contact-directory {
  align-items: start;
  padding-inline: clamp(28px, 4vw, 56px);
  background: var(--home-ink);
  color: var(--home-canvas);
}

.home-md .cta--contact-directory .cta-actions {
  align-self: start;
  width: 100%;
}

.home-md .cta--contact-directory .sitewide-contact-actions {
  margin-top: 0;
}

.home-md .cta--contact-directory h2,
.home-md .cta--contact-directory p {
  color: var(--home-canvas);
}

.home-md .cta--contact-directory p {
  opacity: .72;
}

.home-md .cta--contact-directory .contact-language {
  border-top: 0;
}

.home-md .cta--contact-directory .contact-language-label {
  width: 100%;
  margin-top: 0;
  padding: 14px 0 16px;
  background: transparent;
  color: var(--home-canvas);
  font-size: clamp(1.125rem, 1.6vw, 1.35rem);
  letter-spacing: .16em;
  line-height: 1.1;
  text-align: center;
  justify-self: stretch;
}

.home-md .work-board.is-swapping {
  opacity: 0;
  transform: scale(.992);
  pointer-events: none;
}

@media (min-width: 960px) {
  .home-md .cta--contact-directory {
    grid-template-columns: minmax(0, .85fr) minmax(480px, 1.15fr);
    gap: clamp(40px, 5vw, 72px);
  }

  .home-md .cta--contact-directory .sitewide-contact-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 40px);
  }
}

@media (max-width: 959px) {
  .home-md .cta--contact-directory {
    grid-template-columns: 1fr;
  }
}

@media (hover: hover) and (pointer: fine) {
  .contact-language a:hover,
  .home-md .contact-language a:hover {
    color: rgba(255, 255, 255, .72);
  }

  .contact-language a:hover > i,
  .home-md .contact-language a:hover > i {
    transform: translate(3px, -3px);
  }
}

@media (max-width: 700px) {
  .sitewide-contact-actions,
  .home-md .sitewide-contact-actions {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-language a,
  .home-md .contact-language a {
    grid-template-columns: 74px minmax(0, 1fr) auto;
  }
}

/* Translation-safe sizing for portfolio and showcase headings. */
.portfolio-heading > *,
.showcase-intro > *,
.show-cat-head > * {
  min-inline-size: 0;
}

.portfolio-heading .display,
.showcase-intro .display,
.show-cat-head .display {
  max-inline-size: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

html[lang="th"] .portfolio-heading .display,
html[lang="th"] .showcase-intro .display,
html[lang="th"] .show-cat-head .display {
  letter-spacing: -.045em;
  line-height: 1.03;
}
