/* TON.BAND editorial system. Scoped to content; the four animated home tiles keep their own composition. */
:root {
  --tb-font-display: 'Barlow Condensed', sans-serif;
  --tb-font-body: 'DM Sans', sans-serif;
  --tb-ink: #111;
  --tb-paper: #f2f0e7;
  --tb-muted: #bdbab4;
  --tb-line: #f2f0e72b;
  --tb-content-width: 1200px;
  --tb-gutter: clamp(20px, 5vw, 80px);
  --tb-inset: max(var(--tb-gutter), calc((100% - var(--tb-content-width)) / 2));
  --tb-section-space: clamp(48px, 5.6vw, 80px);
  --tb-section-compact: clamp(36px, 4.4vw, 64px);
  --tb-column-gap: clamp(28px, 4vw, 56px);
  --tb-group-gap: 24px;
  --tb-title: clamp(40px, 4.5vw, 64px);
  --tb-subtitle: clamp(28px, 2.7vw, 38px);
  --tb-body: 17px;
  --tb-caption: 13px;
  --tb-action: 15px;
  --tb-media-radius: 4px;
  --tb-control-radius: 4px;
}

/* One reading width and vertical rhythm, including full-bleed colour sections. */
:is(.home-editorial, .studio-premium, .tb-session-editorial, .tbr-editorial, .tb-digital-work, .tb-about-editorial, .tb-contact-editorial) {
  font-family: var(--tb-font-body);
}
.home-editorial .he-inset,
.tb-session-editorial .tb-se-inset,
.tb-digital-work .dw-shell,
.tb-digital-work .dw-case > .dw-shell,
.tb-about-editorial .tb-ae-inset,
.ce-width {
  width: calc(100% - 2 * var(--tb-gutter));
  max-width: var(--tb-content-width);
  margin-inline: auto;
}
.home-editorial .he-inset:not(.he-couch-feature),
.tb-session-editorial .tb-se-inset,
.tb-digital-work :is(.dw-offer, .dw-case, .dw-contact),
.tb-about-editorial .tb-ae-inset,
.tb-about-editorial .tb-ae-intro > .tb-ae-inset,
.tb-contact-editorial :is(.ce-inquiry, .ce-visit) {
  padding-block: var(--tb-section-space);
}
.home-editorial :is(.he-place, .home-contact),
.studio-premium :is(.studio-project-example, .studio-photography-gallery, .studio-project),
.tb-session-editorial .tb-se-welcome,
.tbr-editorial .tbr-section {
  max-width: none;
  padding: var(--tb-section-space) var(--tb-inset);
}
.home-editorial :is(.he-project-list, .he-place, .home-contact, .he-schedule),
.studio-premium :is(.studio-project-example, .studio-photography-gallery, .studio-project),
.tb-session-editorial :is(.tb-se-next, .tb-se-story-heading, .tb-se-welcome, .tb-se-visit),
.tbr-editorial :is(.tbr-section-heading, .tbr-profile-grid, .tbr-technical-grid, .tbr-request-section),
.tb-digital-work :is(.dw-intro, .dw-contact, .dw-platform-intro, .dw-platform-showcase, .dw-human-layout),
.tb-about-editorial :is(.tb-ae-section-head, .tb-ae-connected-scene, .tb-ae-visit),
.tb-contact-editorial :is(.ce-section-head, .contact-grid, .ce-visit-grid) {
  column-gap: var(--tb-column-gap);
}

/* Section titles share one role; product UI, calendars and the Couch Slam wordmark retain their own scale. */
main .home-editorial :is(.he-section-top, .he-schedule, .he-place-copy, .home-contact) h2,
#app .studio-premium h2,
#app .tb-session-editorial h2,
#app .tbr-editorial h2,
#app .tb-digital-work h2:not(.dw-image-toolbar h2),
#app .tb-about-editorial h2,
#app .tb-contact-editorial h2,
.area-exit .area-exit-heading h2 {
  font-family: var(--tb-font-display);
  font-size: var(--tb-title);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
  white-space: normal;
  min-width: 0;
  text-shadow: none;
}
.home-editorial .he-project h3,
.studio-premium :is(.studio-recording-copy, .studio-process) h3,
.tb-session-editorial :is(.tb-se-date-info, .tb-se-beyond) h3,
.tbr-editorial .tbr-profile-heading h3,
.tb-about-editorial :is(.tb-ae-team, .tb-ae-area-title, .tb-ae-method-list) h3,
.tb-contact-editorial .ce-direct h3 {
  font-family: var(--tb-font-display);
  font-size: var(--tb-subtitle);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-transform: none;
  text-wrap: balance;
}
.tb-contact-editorial .inquiry-context h3 {
  font: 600 var(--tb-subtitle)/1.15 var(--tb-font-display) !important;
}
:is(.studio-premium, .tb-session-editorial, .tbr-editorial, .tb-digital-work, .tb-about-editorial, .tb-contact-editorial) p {
  text-wrap: pretty;
  max-width: 65ch;
}
.studio-premium :is(.studio-recording-copy, .studio-mixing-copy, .studio-gallery-heading) > p,
.tb-session-editorial :is(.tb-se-next-intro, .tb-se-welcome-copy, .tb-se-story-heading) > p,
.tbr-editorial :is(.tbr-introduction, .tbr-profile-copy, .tbr-request-intro) > p,
.tb-digital-work :is(.dw-intro, .dw-platform-contribution, .dw-contact > div) > p,
.tb-about-editorial .tb-ae-team article > p:not(.tb-ae-team-role),
.tb-contact-editorial :is(.ce-section-head, .inquiry-context, .ce-first-steps, .ce-visit-copy) > p {
  font-size: var(--tb-body);
  line-height: 1.65;
}
:is(.home-editorial, .studio-premium, .tb-session-editorial, .tbr-editorial, .tb-digital-work, .tb-about-editorial) figcaption,
.tb-session-editorial .tb-se-photo-composition .gallery-item > span,
.studio-premium .studio-photo-note {
  font-family: var(--tb-font-body);
  font-size: var(--tb-caption);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
}

/* Text links and filled actions use the same type and target size across services. */
.home-editorial :is(.home-text-link, .he-project-more, .he-date-link),
.studio-premium .studio-text-link,
.tb-session-editorial :is(.tb-se-link, .tb-se-quiet-button),
.tbr-editorial :is(.tbr-link, .tbr-text-link),
.tb-digital-work .dw-link,
.tb-about-editorial .tb-ae-link,
.tb-contact-editorial .ce-text-link {
  font-family: var(--tb-font-body);
  font-size: var(--tb-action);
  font-weight: 500;
  line-height: 1.45;
  min-height: 44px;
  gap: 16px;
  max-width: 100%;
  padding-block: 10px;
  text-underline-offset: 5px;
}
.home-editorial :is(.he-primary, .home-submit, .he-couch-apply-link),
.studio-premium .studio-project-submit,
.tb-session-editorial .tb-se-primary,
.tbr-editorial .tbr-primary,
.tb-digital-work .dw-primary,
.tb-about-editorial .tb-ae-primary,
.tb-contact-editorial #contact-form > .button,
.page-hero :is(.studio-editorial-copy, .session-editorial-copy, .rooms-editorial-copy, .digital-copy) > .button {
  font-family: var(--tb-font-body);
  font-size: var(--tb-action);
  font-weight: 500;
  line-height: 1.45;
  min-height: 48px;
  border-radius: var(--tb-control-radius);
  padding: 14px 20px;
  gap: 16px;
  white-space: normal;
  box-sizing: border-box;
}
.home-editorial .he-section-top .home-text-link { max-width: none; }
.home-editorial .he-section-top { gap: var(--tb-group-gap); flex-wrap: wrap; }

/* Consistent frames. Photography is cropped; screenshots remain fully visible. */
.home-editorial .he-project-visual,
.home-editorial .he-place .home-about-visual,
.studio-premium :is(.studio-photo-tile, .studio-film-frame),
.tb-session-editorial .gallery-item picture,
.tbr-editorial .tbr-profile-visual figure,
.tb-digital-work :is(.dw-platform-feature .dw-preview, .dw-platform-feature img),
.tb-about-editorial :is(.tb-ae-regie img, .tb-ae-hero-photo img),
.tb-contact-hero .ce-hero-photo img { border-radius: var(--tb-media-radius); }
.home-editorial .he-place .home-about-visual,
.tbr-editorial .tbr-profile-visual figure,
.tbr-editorial .tbr-technical-grid > figure {
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  max-height: 360px;
}
.home-editorial .he-place .home-about-visual img { width: 100%; height: 100%; object-fit: cover; }
.studio-premium .studio-photo-grid { gap: 16px; }
.tb-session-editorial .tb-se-photo-composition .gallery.photo-grid--sessions { gap: 24px 16px !important; }
.tb-digital-work .dw-platform-feature img { aspect-ratio: 16/9; object-fit: contain; }

/* Recording and mixing use the same compact photographic spread as the other services. */
.studio-premium .studio-recording {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: var(--tb-column-gap);
  row-gap: 24px;
  height: auto;
  min-height: 0;
  padding: var(--tb-section-space) var(--tb-inset);
  overflow: visible;
}
.studio-premium .studio-recording-heading { grid-column: 1; grid-row: 1; padding: 0; }
.studio-premium .studio-recording-image {
  position: relative;
  inset: auto;
  z-index: auto;
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  aspect-ratio: 3/2;
  align-self: center;
  mask: none;
  -webkit-mask: none;
  border-radius: var(--tb-media-radius);
}
.studio-premium .studio-recording-image svg { width: 100%; height: 100%; filter: none; }
.studio-premium .studio-recording-image::after,
.studio-premium .studio-recording-foreground,
.studio-premium .studio-location-mark,
.studio-premium .studio-mic-detail { display: none; }
.studio-premium .studio-recording-bottom { position: static; display: block; grid-column: 1; grid-row: 2; }
.studio-premium .studio-recording-copy { padding: 0; }
.studio-premium .studio-recording-copy h3 { margin-bottom: 16px; }
.studio-premium .studio-mixing {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--tb-column-gap);
  align-items: center;
  min-height: 0;
  padding: var(--tb-section-space) var(--tb-inset);
}
.studio-premium .studio-regie-media { aspect-ratio: 3/2; border-radius: var(--tb-media-radius); }
.studio-premium .studio-regie-media img { transform: none; filter: none; }
.studio-premium .studio-regie-media::after { display: none; }
.studio-premium .studio-mixing-copy { padding: 0; }
.studio-premium .studio-process { margin-inline: var(--tb-inset); padding: 32px 0; }
.studio-premium .studio-process p { font-size: 15px; line-height: 1.6; }
.studio-premium .studio-process ol { gap: var(--tb-group-gap); }
.studio-premium .studio-overline { display: none; }

/* Shared small-screen rules preserve the existing reading order and controls. */
@media (max-width: 700px) {
  :root { --tb-body: 16px; --tb-group-gap: 20px; }
  .studio-premium .studio-recording { grid-template-columns: minmax(0, 1fr); }
  .studio-premium .studio-recording-heading { grid-row: 1; }
  .studio-premium .studio-recording-image { grid-column: 1; grid-row: 2; }
  .studio-premium .studio-recording-bottom { grid-column: 1; grid-row: 3; }
  .studio-premium .studio-mixing { grid-template-columns: minmax(0, 1fr); }
  .studio-premium .studio-regie-media { min-height: 0; height: auto; }
  .studio-premium .studio-project-submit { width: 100%; }
  .studio-premium .studio-process ol { grid-template-columns: minmax(0, 1fr); }
  .studio-premium .studio-process li + li { padding: 20px 0 0; border-left: 0; border-top: 1px solid var(--tb-line); }
  .home-editorial .he-section-top { align-items: start; }
  main > .journey .hero-grid { height: auto; min-height: 0; grid-template-rows: auto auto minmax(165px,1fr); gap: 14px; }
  main > .journey .hero-details { grid-row: 2; margin: 0; }
  main > .journey .team-description { font-size: 16px; line-height: 1.55; margin-bottom: 20px; }
  main > .journey .sculpture { grid-row: 3; height: clamp(165px,48vw,245px); min-height: 0; }
}

/* Compact collections remain close to their next action. */
.home-editorial .he-inset.he-schedule,
.studio-premium .studio-photography-gallery { padding-block: var(--tb-section-compact); }
#app .tb-contact-hero.ce-has-selection + .tb-contact-editorial .ce-section-head h2 { font-size: var(--tb-subtitle); }

/* The Studio page uses the shared header proportions, too. */
.studio-premium-page .header.site-header.unified-header { height: 96px; min-height: 96px; padding-inline: 4vw; }
.studio-premium-page .site-header .header-areas a { font-size: 16px; }
.studio-premium .studio-project > * { min-width: 0; }
@media (max-width: 800px) {
  .studio-premium-page .header.site-header.unified-header { height: 78px; min-height: 78px; padding-inline: 20px; }
  .studio-premium .studio-project { grid-template-columns: minmax(0, 1fr); }
}

/* Home already inherits a gutter from its original tile shell; do not count it twice. */
.home-editorial .he-inset {
  width: calc(100% - 2 * var(--tb-home-inset, 0px));
}
.home-editorial :is(.he-place, .home-contact) {
  padding-inline: max(var(--tb-home-inset, 0px), calc((100% - var(--tb-content-width)) / 2));
}
.tb-contact-editorial .ce-width,
.tb-contact-hero .ce-width {
  width: calc(100% - 2 * var(--tb-gutter));
  max-width: var(--tb-content-width);
  margin-inline: auto;
}
.studio-premium .studio-recording-image { height: auto; }
.home-editorial .he-couch-main,
.tbr-editorial .tbr-action {
  font-family: var(--tb-font-body);
  font-size: var(--tb-action);
  font-weight: 500;
  line-height: 1.45;
  min-height: 48px;
  border-radius: var(--tb-control-radius);
  padding: 14px 20px;
  gap: 16px;
  white-space: normal;
  box-sizing: border-box;
}
@media (max-width: 999px) {
  .home-editorial { --tb-home-inset: max(0px, calc(var(--tb-gutter) - 22px)); }
}
@media (max-width: 700px) {
  .home-editorial { --tb-home-inset: max(0px, calc(var(--tb-gutter) - 17px)); }
}

/* Calendar disclosure and gallery share one section gap on the same surface. */
.tb-session-editorial .tb-se-next { padding-bottom: 0; }
.studio-premium .studio-recording-image { min-height: 0; }

/* Service and information-page heroes share a display role; the animated home opening is separate. */
:root { --tb-hero-title: clamp(44px, 6.2vw, 96px); }
.page-hero :is(.studio-editorial-copy, .session-editorial-copy, .rooms-editorial-copy, .digital-copy) h1,
.tb-about-editorial .tb-ae-hero h1,
.page-hero.tb-contact-hero h1 {
  font-family: var(--tb-font-display);
  font-size: var(--tb-hero-title) !important;
  font-weight: 700;
  line-height: .98 !important;
  letter-spacing: -.025em;
  white-space: normal;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
}
@media (max-width: 800px) {
  :root { --tb-hero-title: clamp(44px, 9.8vw, 76px); }
}
.tb-contact-hero.ce-has-selection h1 { font-size: var(--tb-subtitle) !important; }
