/* Content establishes the space. Animation decorates it without clipping type. */
:root { --site-header-height: 88px; }
html { scroll-padding-top: calc(var(--site-header-height) + 20px); }
.site-header { height: var(--site-header-height); gap: 24px; padding-inline: clamp(20px, 4vw, 56px); }
.wordmark, .header-contact { flex-shrink: 0; white-space: nowrap; }
.desktop-nav { gap: clamp(12px, 1.65vw, 28px); white-space: nowrap; }
.menu-toggle { flex-shrink: 0; }

/* The opening has real grid tracks instead of overlapping absolute text. */
.cinema-portal, .motion-paused .cinema-portal { height: auto; min-height: 100svh; }
.portal-scene, .motion-paused .portal-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: 'note note' 'copy art' 'links links';
  align-items: center;
  gap: clamp(28px, 4svh, 48px) clamp(24px, 4vw, 64px);
  height: auto;
  min-height: 100svh;
  padding: calc(var(--site-header-height) + 28px) 5% 30px;
  overflow: visible;
}
.portal-topnote {
  grid-area: note;
  position: relative;
  inset: auto;
  gap: 20px;
  flex-wrap: wrap;
  line-height: 1.7;
  margin: 0;
}
.portal-topnote > span { min-width: 0; max-width: 100%; }
.portal-title {
  grid-area: copy;
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: .15em .1em .2em 0;
  overflow: visible;
  clip-path: none !important;
}
.portal-title .eyebrow { display: block; line-height: 1.8; }
.portal-title h2 {
  font-size: clamp(64px, 11.5vw, 168px);
  line-height: .98;
  letter-spacing: -.035em;
  margin: 24px 0;
  overflow-wrap: break-word;
}
.portal-title h2 em { display: inline-block; max-width: 100%; padding-right: .08em; }
.portal-title p { max-width: 28ch; margin: 0; line-height: 1.8; }
.portal-gallery {
  grid-area: art;
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  height: clamp(330px, 51vw, 540px);
}
.portal-art-main { left: 13%; top: 0; width: 76%; height: 84%; margin: 0; }
.portal-art-small { left: 0; top: auto; bottom: 0; width: 68%; margin: 0; }
.portal-art-stamp { right: 0; top: 68%; width: clamp(70px, 8.5vw, 112px); height: clamp(70px, 8.5vw, 112px); }
.portal-art-stamp strong { font-size: clamp(24px, 3.4vw, 42px); }
.portal-bottom {
  grid-area: links;
  position: relative;
  inset: auto;
  width: 100%;
  min-width: 0;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 24px;
  margin: 0;
}
.portal-enter { min-width: 0; max-width: 100%; }
.portal-enter > span:last-child { min-width: 0; }
.portal-enter small { max-width: 28ch; line-height: 1.7; }
.enter-orbit { flex-shrink: 0; }
.portal-coordinate { max-width: 32ch; }

/* Keep intrinsic text widths inside their grid and flex tracks. */
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.hero-copy { min-width: 0; container-type: inline-size; }
.hero-copy h1 {
  font-size: clamp(44px, 9vw, 140px);
  font-size: clamp(32px, 20cqi, 140px);
  line-height: 1.03;
  letter-spacing: -.035em;
  max-width: 100%;
}
.hero-line { max-width: 100%; overflow: visible; }
.hero-copy .remembered { width: fit-content; max-width: 100%; }
.hero-copy .remembered em { display: inline-block; max-width: 100%; padding-right: .04em; overflow-wrap: anywhere; }
.hero-intro { max-width: 100%; align-items: flex-start; gap: 24px; }
.hero-intro p { min-width: 0; flex: 1 1 0; max-width: 36ch; }
.hero-intro .round-link { flex-shrink: 0; }
.hero-top, .hero-bottom { flex-wrap: wrap; gap: 18px 30px; }
.hero-visual { min-width: 0; max-width: min(100%, 380px); }
.section-heading > *, .files-intro > *, .real-work-intro > *, .journal-heading > *,
.thinking-grid > *, .studio-layout > *, .about-grid > *, .contact-grid > *,
.growth-split > *, .growth-about > *, .growth-scope-grid > *, .service-directory > *,
.brand-file-grid > *, .concept-grid > *, .real-work-grid > *, .file-reading > * { min-width: 0; }
h1, h2, h3, .service-list summary, .file-header, .growth-location { overflow-wrap: break-word; }
.about-credentials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-list summary h3 { min-width: 0; flex: 1; }
.service-list summary > span, .service-list summary > i { flex-shrink: 0; }
.contact-email { font-size: clamp(18px, 2.7vw, 40px); max-width: 100%; overflow-wrap: anywhere; flex-wrap: wrap; }
.contact-grid input, .contact-grid select, .contact-grid textarea { min-width: 0; max-width: 100%; }
.footer-explore, .growth-links, .growth-related { flex-wrap: wrap; }
.ticker { width: 100%; margin-inline: 0; transform: none; }

@media (max-width: 1100px) {
  :root { --site-header-height: 80px; }
  .desktop-nav, .header-contact { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; width: 44px; height: 44px; padding: 8px; gap: 6px; }
  .menu-toggle > span { height: 1px; width: 26px; background: currentColor; }
  .mobile-nav:not([hidden]) {
    display: flex;
    position: fixed;
    inset: var(--site-header-height) 0 0;
    z-index: 29;
    flex-direction: column;
    padding: 24px clamp(24px, 5vw, 56px) 40px;
    overflow: auto;
    background: var(--paper);
    color: var(--ink);
  }
  .mobile-nav > a { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font: 400 clamp(27px, 5vw, 42px)/1.2 var(--serif); }
  .mobile-nav > a > span { flex-shrink: 0; font: 10px/1.4 var(--sans); }
}
@media (max-width: 900px) {
  .portal-scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'note' 'copy' 'art' 'links';
    gap: 30px;
    padding: calc(var(--site-header-height) + 24px) clamp(22px, 5vw, 48px) 28px;
  }
  .portal-title { width: 100%; max-width: none; }
  .portal-title h2 { font-size: clamp(64px, 18vw, 120px); line-height: 1; margin: 20px 0; }
  .portal-title p { max-width: 34ch; }
  .portal-gallery { width: min(100%, 500px); height: clamp(260px, 80vw, 450px); justify-self: center; }
  .portal-bottom { align-items: center; gap: 24px; }
  .portal-topnote > span:last-child { display: none; }
  .portal-scroll { margin-left: auto; }
  .thinking-grid, .studio-layout, .about-grid, .growth-about, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 30px; }
}
@media (max-width: 700px) {
  :root { --site-header-height: 77px; }
  .portal-title .eyebrow { font-size: 8px; letter-spacing: 1.4px; }
  .portal-title p { font-size: 12px; max-width: 30ch; }
  .portal-topnote { font-size: 7px; letter-spacing: 1px; }
  .portal-title h2 { font-size: clamp(54px, 18.5vw, 108px); }
  .portal-gallery { height: clamp(240px, 82vw, 390px); }
  .portal-enter { font-size: 8px; gap: 12px; }
  .portal-enter small { font-size: 9px; }
  .portal-art-small { width: 66%; }
  .hero-grid { display: flex; gap: 45px; }
  .hero-copy h1 { font-size: clamp(30px, 20cqi, 112px); line-height: 1.03; }
  .hero-top > span { display: block; font-size: 7px; }
  .hero-intro { margin-top: 36px; }
  .hero-intro p { font-size: 14px; }
  .hero-visual { width: min(78%, 345px); }
  .about-credentials { gap: 24px; }
  .contact-asterisk { right: 0; top: -22px; font-size: 30px; }
}
@media (max-width: 380px) {
  .portal-bottom { align-items: flex-start; }
  .portal-scroll { display: none; }
  .about-credentials { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .portal-scene { min-height: 100svh; height: auto; }
  .portal-title, .hero-line { clip-path: none !important; }
}
