/* =========================================================
   PANZOOM STUDIO — RESPONSIVE + MULTILINGUAL LAYER
   Version: 2026-08-02
   Loaded after styles.css to preserve all approved behavior.
   ========================================================= */

:root {
  --pz-gutter: clamp(22px, 6vw, 112px);
  --pz-content-max: 1760px;
}

html {
  overflow-x: clip;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
}

main,
.site-header,
.footer {
  width: 100%;
}

h1, h2, h3, p, a, button, small, strong, label {
  overflow-wrap: break-word;
}

img,
video,
iframe {
  max-inline-size: 100%;
}

/* ---------- Language navigation ---------- */

.language-switcher {
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-switcher-desktop {
  display: flex;
  justify-self: end;
  padding: 4px;
  border: 1px solid rgba(245,245,245,0.13);
  border-radius: 999px;
  background: rgba(5,5,5,0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.language-switcher a {
  min-width: 34px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(245,245,245,0.62);
  transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a.is-active {
  color: #050505;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(200,164,106,.22);
}

.language-switcher a.is-active {
  cursor: default;
}

.language-switcher-mobile {
  display: none;
}

/* Header contains desktop navigation, language selector and CTA. */
@media (min-width: 1101px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .desktop-nav {
    min-width: 0;
    gap: clamp(14px, 2vw, 38px);
  }

  .desktop-nav a {
    white-space: nowrap;
  }

  .talk-link {
    white-space: nowrap;
  }
}

/* ---------- Large screens ---------- */

@media (min-width: 1600px) {
  .section,
  .site-header,
  .footer-links,
  .footer-discovery-links {
    padding-left: max(6vw, calc((100vw - var(--pz-content-max)) / 2));
    padding-right: max(6vw, calc((100vw - var(--pz-content-max)) / 2));
  }

  .hero-grid,
  .gateway-heading,
  .gateway-grid,
  .projects-topline,
  .slider-shell,
  .project-strip,
  .project-index-grid,
  .section-heading,
  .service-grid,
  .about-copy,
  .timeline,
  .testimonial-grid,
  .contact-copy,
  .contact-actions-panel {
    max-width: var(--pz-content-max);
  }
}

/* ---------- Notebooks and compact desktop ---------- */

@media (min-width: 1101px) and (max-width: 1360px) {
  .site-header {
    padding-inline: 3.5vw;
    gap: 16px;
  }

  .desktop-nav {
    gap: 15px;
  }

  .desktop-nav a {
    font-size: .64rem;
    letter-spacing: .055em;
  }

  .language-switcher a {
    min-width: 31px;
    padding-inline: 6px;
  }

  .talk-link {
    padding-inline: 14px;
  }

  .hero-title {
    font-size: clamp(4rem, 8vw, 8.6rem);
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .language-switcher-desktop {
    display: none;
  }

  .mobile-menu {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 96px 24px 42px;
  }

  .mobile-menu nav {
    gap: clamp(14px, 3vh, 24px);
  }

  .mobile-menu a {
    line-height: 1.05;
  }

  .language-switcher-mobile {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }

  .language-switcher-mobile a {
    min-width: 46px;
    min-height: 40px;
    border: 1px solid rgba(245,245,245,.12);
  }

  .section {
    padding-left: clamp(28px, 5vw, 64px);
    padding-right: clamp(28px, 5vw, 64px);
  }

  .hero-grid,
  .gateway-heading,
  .section-heading,
  .about-copy,
  .immersive-content,
  .contact-copy {
    min-width: 0;
  }

  .gateway-heading h2,
  .section-heading h2,
  .about-copy h2,
  .immersive-content h2,
  .contact-copy h2 {
    hyphens: auto;
  }

  .service-card p,
  .about-copy p,
  .timeline-item p,
  .gateway-subtab small {
    max-width: 72ch;
  }

  .project-tabs {
    flex-wrap: wrap;
  }

  .project-tabs button {
    min-height: 42px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .section {
    padding-left: 22px;
    padding-right: 22px;
  }

  .mobile-menu {
    place-content: start center;
    align-content: start;
    padding-top: 104px;
  }

  .mobile-menu nav {
    width: min(100%, 520px);
  }

  .mobile-menu nav > a {
    font-size: clamp(1.85rem, 9vw, 3.5rem);
    letter-spacing: .12em;
  }

  .language-switcher-mobile {
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .hero {
    min-height: max(760px, 100svh);
  }

  .hero-grid {
    padding-right: 0;
  }

  .hero-title {
    max-width: 11ch;
    font-size: clamp(2.55rem, 12vw, 4.25rem);
    line-height: .94;
  }

  .hero-sub,
  .hero-investment {
    max-width: 42rem;
    font-size: clamp(.9rem, 3.8vw, 1rem);
    line-height: 1.68;
  }

  .hero-actions {
    width: 100%;
    gap: 12px;
  }

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

  .stat {
    min-width: 0;
  }

  .stat span {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .gateway-heading h2,
  .section-heading h2,
  .about-copy h2,
  .immersive-content h2,
  .contact-copy h2 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10.8vw, 4.15rem);
    line-height: .97;
  }

  .gateway-card {
    min-height: clamp(300px, 86vw, 430px);
  }

  .gateway-card h3 {
    max-width: 9ch;
    font-size: clamp(2rem, 11vw, 3.5rem);
    line-height: .92;
  }

  .gateway-card > p {
    max-width: 34ch;
  }

  .gateway-subtab {
    max-width: calc(100% - 38px);
  }

  .project-tabs {
    gap: 8px;
  }

  .project-tabs button {
    flex: 1 1 auto;
    padding-inline: 12px;
  }

  .project-copy {
    padding: 28px 22px;
  }

  .project-copy h2 {
    font-size: clamp(2.15rem, 12vw, 4rem);
  }

  .project-frame {
    min-height: clamp(300px, 72vw, 440px);
  }

  .service-card {
    min-height: auto;
    padding: 28px 24px;
  }

  .service-card h3 {
    font-size: clamp(1.55rem, 7.5vw, 2.45rem);
  }

  .service-card p,
  .about-copy p,
  .timeline-item p,
  .testimonial p {
    font-size: .95rem;
    line-height: 1.72;
  }

  .about-image,
  .about-image img {
    min-height: clamp(360px, 112vw, 520px);
  }

  .quote {
    font-size: .92rem;
    line-height: 1.5;
  }

  .timeline-item {
    padding-inline: 0;
  }

  .testimonial {
    min-width: 0;
  }

  .showreel-content h2 {
    max-width: 11ch;
  }

  .contact-actions-panel {
    width: 100%;
    padding: 14px;
  }

  .contact-action {
    min-height: 82px;
    grid-template-columns: 48px minmax(0,1fr);
    padding: 16px;
  }

  .contact-icon {
    width: 48px;
    height: 48px;
  }

  .contact-action strong {
    overflow-wrap: anywhere;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    align-items: stretch;
    gap: 10px;
  }

  .footer-social-label {
    grid-column: 1 / -1;
  }

  .footer-links a {
    min-height: 46px;
    justify-content: flex-start;
  }

  .footer-discovery-links {
    justify-content: flex-start;
    padding-inline: 22px;
  }

  .contact-modal-panel {
    width: min(100%, 640px);
    max-height: calc(100svh - 36px);
    overflow-y: auto;
    padding: 28px 22px;
  }

  .project-modal-panel {
    width: 100%;
  }

  .project-intro {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ---------- Small phones ---------- */

@media (max-width: 480px) {
  .site-header {
    padding-inline: 16px;
  }

  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .brand-banner-top {
    margin-top: 72px;
  }

  .hero-title {
    font-size: clamp(2.3rem, 13vw, 3.75rem);
  }

  .btn {
    min-height: 52px;
    padding-inline: 16px;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat-wide {
    grid-column: 1;
    border-right: 0;
  }

  .gateway-card {
    padding: 21px;
  }

  .project-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-social-label {
    grid-column: 1;
  }
}

/* ---------- Landscape phones / short tablets ---------- */

@media (max-width: 900px) and (max-height: 520px) and (orientation: landscape) {
  .mobile-menu {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 82px 28px 24px;
  }

  .mobile-menu nav {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px 30px;
  }

  .mobile-menu nav > a {
    font-size: clamp(1.25rem, 5vw, 2rem);
  }

  .language-switcher-mobile {
    align-self: center;
  }

  .hero {
    min-height: 620px;
  }
}

/* ---------- Korean typography ---------- */

html[lang="ko-KR"] body {
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", var(--font-body);
  word-break: keep-all;
}

html[lang="ko-KR"] .hero-title,
html[lang="ko-KR"] .gateway-heading h2,
html[lang="ko-KR"] .section-heading h2,
html[lang="ko-KR"] .about-copy h2,
html[lang="ko-KR"] .immersive-content h2,
html[lang="ko-KR"] .contact-copy h2,
html[lang="ko-KR"] .showreel-content h2 {
  letter-spacing: -.035em;
  line-height: 1.08;
  text-transform: none;
}

html[lang="ko-KR"] .desktop-nav a,
html[lang="ko-KR"] .eyebrow,
html[lang="ko-KR"] .section-identity,
html[lang="ko-KR"] .footer-discovery-links a {
  letter-spacing: .02em;
}

html[lang="ko-KR"] .mobile-menu nav > a {
  letter-spacing: .04em;
  text-transform: none;
}

@media (max-width: 760px) {
  html[lang="ko-KR"] .hero-title,
  html[lang="ko-KR"] .gateway-heading h2,
  html[lang="ko-KR"] .section-heading h2,
  html[lang="ko-KR"] .about-copy h2,
  html[lang="ko-KR"] .immersive-content h2,
  html[lang="ko-KR"] .contact-copy h2 {
    font-size: clamp(2rem, 9.5vw, 3.65rem);
  }
}

/* ---------- Accessibility / reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .language-switcher a {
    transition: none;
  }
}


/* ---------- All-language automatic translator ---------- */
.language-translate-all {
  min-width: 58px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid rgba(245,245,245,.12);
  border-radius: 999px;
  color: rgba(245,245,245,.72);
  background: transparent;
  font: inherit;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .22s ease, background .22s ease, box-shadow .22s ease;
}

.language-translate-all:hover,
.language-translate-all:focus-visible {
  color: #050505;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(200,164,106,.22);
  outline: none;
}

.language-translate-all span:first-child {
  font-size: .82rem;
  line-height: 1;
}

.language-switcher-mobile .language-translate-all {
  min-width: 92px;
  min-height: 40px;
  border: 1px solid rgba(245,245,245,.12);
}

@media (max-width: 1360px) and (min-width: 1101px) {
  .language-translate-all {
    min-width: 50px;
    padding-inline: 7px;
  }

  .language-translate-all span:last-child {
    display: none;
  }
}


/* =========================================================
   PANZOOM — HERO CTA + MULTILINGUAL TITLE FIT V2
   Version: 2026-08-02
   Scope: layout only. Canonical, hreflang, JSON-LD, sitemap,
   videos, headliner and social entity signals remain unchanged.
   ========================================================= */

/* Prevent the off-canvas mobile CTA from leaking into desktop/closed pages. */
.mobile-menu {
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}
.mobile-menu.is-open {
  visibility: visible;
  pointer-events: auto;
  overflow-y: auto;
}
@media (min-width: 1101px) {
  .mobile-menu { display: none !important; }
}

/* Give the hero copy room without splitting words such as ARCHITECTURE. */
.hero {
  padding-bottom: clamp(148px, 15vh, 190px);
}
.hero-grid {
  width: min(900px, 100%);
  max-width: 900px;
  transform: translateY(-1.5vh);
}
.hero-title {
  max-width: 100%;
  font-size: clamp(4rem, 7.05vw, 8.35rem);
  line-height: .9;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-title span {
  max-width: 100%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.hero-title.pz-heading-wrap span {
  white-space: normal;
  text-wrap: balance;
}

/* Dedicated CTA, centered at the lower edge of the hero background. */
.hero-project-cta {
  position: absolute;
  left: 50%;
  bottom: clamp(92px, 10vh, 122px);
  z-index: 6;
  min-width: clamp(190px, 15vw, 250px);
  min-height: 44px;
  max-width: min(88vw, 360px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border: 1px solid rgba(245,245,245,.26);
  border-radius: 5px;
  color: rgba(250,250,250,.94);
  background: rgba(5,5,5,.44);
  box-shadow: 0 16px 46px rgba(0,0,0,.30), inset 0 0 24px rgba(255,255,255,.018);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: clamp(.62rem, .72vw, .72rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  transform: translateX(-50%);
  transition: color .28s ease, border-color .28s ease, background .28s ease,
              box-shadow .28s ease, transform .28s var(--ease-soft);
}
.hero-project-cta:hover,
.hero-project-cta:focus-visible {
  color: var(--gold);
  border-color: rgba(200,164,106,.76);
  background: rgba(5,5,5,.66);
  box-shadow: 0 18px 54px rgba(0,0,0,.38), 0 0 30px rgba(200,164,106,.14);
  transform: translate(-50%, -2px);
}
.hero-project-cta:active {
  transform: translate(-50%, 0) scale(.985);
}

/* Prominent headings stay editorial and adapt to manually defined languages
   as well as longer automatic translations. No word is hyphenated or split. */
.hero-title,
.gateway-heading h2,
.section-heading h2,
.about-copy h2,
.immersive-content h2,
.contact-copy h2,
.showreel-content h2,
.project-copy h2 {
  max-width: 100%;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none !important;
}
.gateway-heading h2 {
  font-size: clamp(2.65rem, 4.65vw, 5.9rem);
  line-height: .97;
}
.section-heading h2 {
  font-size: clamp(2.45rem, 4.35vw, 5.45rem);
  line-height: 1;
}
.about-copy h2,
.immersive-content h2 {
  font-size: clamp(2.6rem, 4.55vw, 5.75rem);
  line-height: .98;
}
.showreel-content h2 {
  font-size: clamp(3.15rem, 6.25vw, 7.65rem);
  line-height: .88;
}
.project-copy h2 {
  font-size: clamp(2.35rem, 3.65vw, 4.55rem);
}

/* Long Latin translations receive slightly tighter tracking, not broken words. */
html[lang="pt-BR"] .hero-title,
html[lang="pt-BR"] .gateway-heading h2,
html[lang="pt-BR"] .section-heading h2,
html[lang="pt-BR"] .about-copy h2,
html[lang="pt-BR"] .immersive-content h2,
html[lang="es"] .hero-title,
html[lang="es"] .gateway-heading h2,
html[lang="es"] .section-heading h2,
html[lang="es"] .about-copy h2,
html[lang="es"] .immersive-content h2,
html[lang="fr"] .hero-title,
html[lang="fr"] .gateway-heading h2,
html[lang="fr"] .section-heading h2,
html[lang="fr"] .about-copy h2,
html[lang="fr"] .immersive-content h2 {
  letter-spacing: -.012em;
}
html[lang="fr"] .hero-title {
  font-size: clamp(3.65rem, 6.35vw, 7.65rem);
}
html[lang="ko-KR"] .hero-title span {
  white-space: normal;
  word-break: keep-all;
}
html[lang="ko-KR"] .hero-project-cta {
  letter-spacing: .035em;
  text-transform: none;
}

@media (max-width: 1100px) {
  .hero { padding-bottom: 132px; }
  .hero-grid { width: min(780px, 100%); }
  .hero-title { font-size: clamp(3.35rem, 9.1vw, 6.5rem); }
  .hero-project-cta {
    bottom: 82px;
    min-height: 42px;
  }
  .gateway-heading h2,
  .section-heading h2,
  .about-copy h2,
  .immersive-content h2,
  .contact-copy h2 {
    hyphens: none !important;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: max(790px, 100svh);
    padding-bottom: 126px;
  }
  .hero-grid { transform: none; }
  .hero-title {
    max-width: 100%;
    font-size: clamp(2.5rem, 11.5vw, 4.1rem);
    line-height: .95;
  }
  .hero-title span {
    white-space: normal;
    text-wrap: balance;
  }
  .hero-project-cta {
    bottom: 74px;
    min-width: min(230px, 82vw);
    padding-inline: 18px;
    font-size: .64rem;
    letter-spacing: .12em;
  }
  .gateway-heading h2,
  .section-heading h2,
  .about-copy h2,
  .immersive-content h2,
  .contact-copy h2 {
    font-size: clamp(2.05rem, 9.5vw, 3.75rem);
    line-height: 1;
  }
  .showreel-content h2 {
    font-size: clamp(2.55rem, 12vw, 4.65rem);
    line-height: .92;
  }
}

@media (max-width: 480px) {
  .hero { padding-bottom: 118px; }
  .hero-title { font-size: clamp(2.25rem, 11.7vw, 3.55rem); }
  .hero-project-cta {
    bottom: 66px;
    min-width: min(220px, 86vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-project-cta { transition: none; }
}

