/* Photographs move inside a reserved frame. Text and interactive controls stay on the page grid. */
.folio-window, .tg-site .material-image { position: relative; overflow: hidden; }
.folio-pan { display: block; }
.folio-pan picture, .folio-pan img { display: block; width: 100%; }

.folio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
  align-items: stretch;
  gap: clamp(22px, 5vw, 80px);
  padding-block: clamp(18px, 3vw, 44px);
  margin-bottom: clamp(22px, 3vw, 42px);
  border-block: 1px solid var(--line);
}
.folio-intro-copy { align-self: center; min-width: 0; }
.tg-site :is(.knowledge-page, .legacy-content) .folio-intro h1 {
  max-width: 21ch;
  margin: 0 0 .32em !important;
  font: 650 clamp(38px, 5.3vw, 84px)/.99 var(--display) !important;
  letter-spacing: -.05em !important;
  text-align: left !important;
  text-wrap: balance;
}
.tg-site .folio-intro :is(.section-lead, .techglas-lead) {
  max-width: 52ch; margin: 0 !important;
  font: 470 clamp(15px, 1.3vw, 19px)/1.55 var(--sans) !important;
}
.folio-portrait { min-height: clamp(145px, 16vw, 245px); background: var(--surface); }
.tg-site .folio-portrait img {
  position: absolute; inset: 0; display: block; width: 100%; height: 100% !important;
  object-fit: cover; border-radius: 0;
}

.tg-site .legacy-content .product-masthead {
  align-items: stretch; gap: 0; padding: 0 !important;
  margin-block: clamp(20px, 2.8vw, 44px);
  background: #27322e !important; color: #f8f6eb;
}
.tg-site .product-masthead .masthead-copy {
  align-self: center; min-width: 0; padding: clamp(25px, 3.7vw, 60px);
}
.tg-site .legacy-content .product-masthead .masthead-copy h1 {
  max-width: 15ch !important; color: #f8f6eb !important;
}
.tg-site .legacy-content .product-masthead .masthead-copy .hero-field { color: #efcf78 !important; }
.tg-site .legacy-content .product-masthead .masthead-copy .masthead-lead { color: #efefe4 !important; }
.tg-site .legacy-content .product-masthead .masthead-copy .button {
  background: #efd06f !important; color: #202720 !important; border-color: transparent;
}
.tg-site .legacy-content .product-masthead .masthead-figure {
  display: flex; flex-direction: column; margin: 0; border: 0; border-radius: 0; min-width: 0;
}
.tg-site .legacy-content .product-masthead .masthead-figure::after,
.tg-site .legacy-content .panel-material-visual::after { content: none; }
.masthead-figure .material-image { flex: 1; min-height: 260px; }
.masthead-figure .folio-pan { position: absolute; inset: 0; }
.tg-site .legacy-content .masthead-figure .material-image img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto;
}
.tg-site .legacy-content .tg-panels .panel-material-visual {
  margin-top: 15px; border: 0; border-radius: 0;
}
.tg-site .legacy-content .panel-material-visual .material-image img {
  width: 100%; height: auto; aspect-ratio: 2.52; object-fit: cover;
}
.tg-site .legacy-content .tg-panels__quote {
  background: #faf8f1; border: 1px solid var(--line); border-top: 3px solid #29352e;
  box-shadow: none;
}
.tg-site .legacy-content #example:has(.assembly-render) {
  display: grid;
  grid-template-columns: minmax(0, .64fr) minmax(0, 1.36fr);
  grid-template-rows: auto auto 1fr auto;
  align-items: start;
  column-gap: clamp(18px, 3vw, 44px);
  padding: clamp(20px, 3vw, 46px) !important;
  margin-block: clamp(26px, 4vw, 55px) !important;
  border: none; background: #26322c !important; color: #f2f1e7;
}
.tg-site .legacy-content #example:has(.assembly-render) > .small-h2 { color: #f1d178 !important; }
.tg-site .legacy-content #example:has(.assembly-render)::before,
.tg-site .legacy-content #example:has(.assembly-render)::after { display: none; }
.tg-site .legacy-content #example:has(.assembly-render) > h3 {
  margin-block: 0 18px !important; max-width: 16ch;
  color: #f6f2e6 !important; font-size: clamp(29px, 3.5vw, 55px) !important;
}
.tg-site .legacy-content #example:has(.assembly-render) > h3::before { display: none; }
.tg-site .legacy-content #example .assembly-brief {
  grid-column: 1; max-width: 32ch; margin: 0 0 18px;
  color: #d9dfd4 !important; font-size: clamp(15px, 1.2vw, 18px);
}
.tg-site .legacy-content #example .assembly-render {
  grid-area: 1 / 2 / 4 / 3; align-self: center; width: 100%; margin: 0; border: 0; border-radius: 0;
}
.tg-site .legacy-content #example .assembly-source {
  grid-column: 1 / -1; padding: 0; margin-top: 16px; color: #f6f2e6;
  border-top: 1px solid #637068; background: transparent;
}
.tg-site .legacy-content #example .assembly-source summary { color: inherit !important; }
.tg-site .legacy-content #example .assembly-source img { background: #f4f0e8; }
.profile-dimensions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 64px); margin-top: clamp(22px, 3vw, 46px);
}
.tg-site .legacy-content .profile-dimensions h4 {
  padding-block: 13px; margin: 0; border-top: 2px solid #46554a;
  font: 650 clamp(22px, 2.3vw, 34px)/1.15 var(--display) !important;
  text-align: left;
}
.profile-dimensions-photos { display: flex; gap: 3px; }
.tg-site .profile-dimensions-photos picture { display: block; flex: 1; min-width: 0; }
.tg-site .profile-dimensions-photos img { width: 100%; height: clamp(125px, 15vw, 230px); object-fit: cover; }
.profile-dimensions dl {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin: 12px 0 0;
}
.tg-site .profile-dimensions :is(dt, dd) {
  padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0;
  font: 490 14px/1.46 var(--sans); text-align: left;
}
.tg-site .profile-dimensions dt { padding-right: 12px; color: var(--muted); }
.tg-site .profile-dimensions dd { font-weight: 650; }
.tg-site .legacy-content #project-grid { gap: 0 clamp(18px, 4vw, 60px); }
.tg-site .legacy-content #project-grid .project-card {
  padding: clamp(18px, 2vw, 31px) 0; border: 0; border-top: 1px solid var(--line);
  border-radius: 0; background: transparent !important;
}
.tg-site .legacy-content #project-grid .project-card__customer {
  display: inline-block; padding: 0; color: #4b594f; background: transparent;
  font: 700 12px/1.45 var(--sans);
}
.tg-site .legacy-content #project-grid .project-card h3 {
  max-width: 36ch; margin-block: 7px 10px !important;
  font: 640 clamp(21px, 2.2vw, 32px)/1.15 var(--display) !important;
  text-wrap: pretty;
}
.tg-site .knowledge-search { border: 0; border-top: 2px solid #414e43; border-radius: 0; }
.tg-site .legacy-content :is(.article-shell .techglas-lead, .daily-shell .daily-lead) {
  max-width: 62ch;
  padding-inline-start: clamp(15px, 2vw, 28px);
  border-inline-start: 3px solid #ad8b32;
  font: 480 clamp(17px, 1.45vw, 22px)/1.55 var(--sans) !important;
}
.tg-site .legacy-content .delivery-page .delivery-terms {
  padding: clamp(18px, 3vw, 42px); border: 0; border-top: 2px solid #414e43;
}
.tg-site .legacy-content #request {
  background: transparent !important; border: 0; border-block: 1px solid var(--line);
}

@media (min-width: 900px) {
  .tg-site .legacy-content #request > div {
    width: 100%; max-width: none; display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr; gap: 10px clamp(32px, 6vw, 95px);
  }
  .tg-site .legacy-content #request > div > [class*="col-"] { grid-area: 1 / 2 / 3 / 3; width: 100%; }
}

@media (max-width: 767px) {
  .folio-intro {
    grid-template-columns: minmax(0, 1fr); gap: 15px;
    padding-block: 14px; margin-bottom: 22px;
  }
  .folio-portrait { min-height: 0; height: clamp(72px, 23vw, 125px); }
  .tg-site .legacy-content .product-masthead { grid-template-columns: minmax(0, 1fr); }
  .tg-site .product-masthead .masthead-copy { padding: 22px 19px; }
  .masthead-figure .material-image { flex: auto; min-height: 0; aspect-ratio: 2; }
  .tg-site .legacy-content #example:has(.assembly-render) {
    display: block; padding: 19px 15px 8px !important;
  }
  .tg-site .legacy-content #example .assembly-render { margin-top: 15px; }
  .tg-site .legacy-content #example:has(.assembly-render) > h3 { max-width: none; font-size: clamp(25px, 7vw, 38px) !important; }
  .profile-dimensions { grid-template-columns: minmax(0, 1fr); }
}

@keyframes folio-travel {
  from { transform: translateY(calc(0px - var(--travel))) scale(var(--zoom)); }
  to { transform: translateY(var(--travel)) scale(var(--zoom)); }
}
@keyframes folio-type-in { from { transform: translateY(16px); } }
@keyframes folio-arrival { from { transform: translateY(1%) scale(1.045); } }
@media (prefers-reduced-motion: no-preference) {
  .folio-arriving { animation: folio-arrival .42s cubic-bezier(.23, 1, .32, 1); }
  @supports (animation-timeline: view()) {
    .folio-pan, .folio-portrait img {
      --travel: 2.4%; --zoom: 1.06;
      animation: folio-travel linear both;
      animation-timeline: view(block);
      animation-range: entry 0% exit 100%;
    }
    .tg-catalog-card-copy, .tg-site .legacy-content #example > h3 {
      animation: folio-type-in linear both;
      animation-timeline: view(block);
      animation-range: entry 0% entry 85%;
    }
    [data-material-detail] .folio-pan, .tg-catalog-card:focus-visible .tg-catalog-card-copy { animation: none; }
  }
}
@media (prefers-reduced-motion: no-preference) and (pointer: coarse) {
  .folio-pan, .folio-portrait img { --travel: 1.6%; --zoom: 1.045; }
}
