/* Interior-page layouts, deliberately not loaded on the approved home page. */
.page-content > .shell > .breadcrumbs, .article > .breadcrumbs { padding-block: 22px; }
.page-content > .pw-section { padding-block: 65px; }
.page-content > .photo-section:first-of-type {
  width: calc(100% - 48px);
  margin: 0 auto;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  padding-block: 45px;
}
.page-content > .photo-section:first-of-type h1 { margin: 0; font-size: clamp(42px, 4.4vw, 64px); }
.page-content > .photo-section:first-of-type .section-photo:after { background: linear-gradient(0deg, #172329d9, #17232915); }
.product-hero {
  position: relative;
  isolation: isolate;
  width: calc(100% - 48px);
  margin: 0 auto;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  background: var(--dark);
  color: white;
}
.product-hero-image { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.product-hero-image:after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #172329a6, #17232912), linear-gradient(0deg, #172329c9, transparent 80%); }
.product-hero-image .pw-image { height: 100%; margin: 0; }
.product-hero-image img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center 55%; }
.product-hero-copy { width: min(1320px, calc(100% - 112px)); margin: 0 auto; padding: 55px 0; }
.product-hero-copy .eyebrow { display: inline-block; color: white; margin-bottom: 18px; }
.product-hero h1 { font-size: clamp(44px, 4.8vw, 68px); max-width: 860px; margin: 0 0 28px; }
.product-hero .button { background: #fff; border-color: #fff; color: var(--ink); }
.product-hero .button:hover { background: #e8f2f3; }
.product-body > .pw-section { padding-block: 65px; }
.product-body > .pw-section:first-of-type { padding-block: 65px 60px; }
.product-body .pw-group.pw-grid { display: block; }
.product-body .pw-inner.pw-grid { grid-template-columns: 1fr 1fr; gap: 90px; }
.product-body .pw-copy h3 { font-size: 34px; margin-bottom: 24px; }
.product-body .pw-copy p { font-size: 16px; line-height: 1.85; }
.product-body .pw-copy br { display: none; }
.product-body .pw-copy br + br { display: block; margin-bottom: 1em; }
.product-body .pw-buttons { margin-top: 30px; }
.product-photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-photo-pair .pw-image { margin: 0; }
.product-photo-pair img { aspect-ratio: 1.6; width: 100%; object-fit: cover; }
.product-body .gallery-wrap { margin-top: 0; }
.product-body .gallery-reel > .gallery-item { flex-basis: 36%; }
.product-body .gallery-item img { aspect-ratio: 1.5; }

/* Product overview: complete image-and-copy rows, not unrelated small tiles. */
.pw-page-22 .offer-grid { display: block; margin-top: 45px; }
.pw-page-22 .offer-grid > .pw-inner { display: flex; flex-direction: column; gap: 32px; }
.pw-page-22 .offer-grid > .pw-inner > .pw-group > .pw-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; background: #f3f5f4; }
.pw-page-22 .offer-grid .pw-image { margin: 0; min-height: 380px; position: relative; }
.pw-page-22 .offer-grid .pw-image img { position: absolute; inset: 0; height: 100%; width: 100%; aspect-ratio: auto; object-fit: cover; }
.pw-page-22 .offer-grid > .pw-inner > .pw-group > .pw-inner > .pw-group { padding: 45px; display: flex; align-items: center; }
.pw-page-22 .offer-grid .pw-copy h4 { font-size: clamp(30px, 2.8vw, 40px); }
.pw-page-22 .offer-grid .pw-copy p { font-size: 16px; }
.pw-page-22 .offer-grid .pw-buttons { margin-top: 24px; }
.pw-page-22 .offer-grid > .pw-inner > .pw-group:nth-child(even) .pw-image { order: 2; }
.pw-page-22 [data-section="pc9p6fgl"] { background: #f3f5f4; }
.pw-page-22 [data-section="pc9p6fgl"] .pw-copy + .pw-copy { border-top: 1px solid var(--line); padding-top: 22px; }

/* About, portfolio and contact receive their own rhythm. */
.pw-page-24 [data-section="e4be775b"] > .pw-inner { grid-template-columns: 1.15fr 1fr; gap: 100px; }
.pw-page-24 [data-section="9d28413d"] .pw-copy:first-child h3 { font-size: 12px; color: var(--warm); text-transform: uppercase; letter-spacing: .12em; }
.pw-page-24 [data-section="9d28413d"] h2 { font-size: 43px; }
.pw-page-24 [data-section="9a4bad7b"] .pw-copy { padding: 25px 0; border-top: 1px solid var(--line); }
.pw-page-24 [data-section="9a4bad7b"] h3 { font-size: 28px; }
.pw-page-24 [data-section="9a4bad7b"] p { margin-bottom: 0; }
.pw-page-24 .projects-section { background: #f4f6f5; }
.pw-page-24 [data-section="8fe14de4"] .photo-section { min-height: 430px; display: flex; align-items: flex-end; padding: 40px; }
.pw-page-28 .gallery-wrap { margin-top: 0; }
.pw-page-28 .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pw-page-28 .gallery-grid .gallery-item img { aspect-ratio: 1.5; }
.pw-page-26 [data-section="ab0039a8"] > .pw-inner { grid-template-columns: .85fr 1.15fr; gap: 70px; }
.pw-page-26 [data-section="db0e6d62"] { padding: 45px; min-height: 560px; display: flex; align-items: flex-end; }
.pw-page-26 [data-section="db0e6d62"] a { color: white; }
.pw-page-26 [data-section="76fb746d"] .pw-list { grid-template-columns: 1fr 1fr; gap: 18px 24px; margin-bottom: 40px; }
.pw-page-26 [data-section="76fb746d"] h3 { font-size: 30px; }
.pw-page-26 [data-section="082221f4"] { padding-top: 0; }

/* Editorial index and reading view. */
.journal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; padding: 55px 0 40px; }
.journal-heading .page-heading { padding: 0; }
.journal-heading h1 { margin: 0; font-size: 68px; }
.journal-heading .eyebrow { margin-bottom: 16px; }
.journal-heading .search-form { width: 360px; margin: 0; }
.journal-heading .search-form input { min-width: 0; background: #f5f7f6; }
.journal-heading .search-form label { display: block; margin-bottom: 7px; }
.journal-grid { gap: 50px 28px; }
.journal-card { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); padding-bottom: 28px; min-width: 0; }
.journal-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.journal-card h2 { font-size: 25px; line-height: 1.28; text-wrap: pretty; }
.journal-card .journal-copy > p:not(.eyebrow) { line-height: 1.7; }
.journal-card .text-link { margin-top: auto; }
.journal-card .journal-image { margin-bottom: 24px; }
.journal-card .eyebrow { font-size: 10px !important; }
.journal-featured { grid-column: 1/-1; display: grid; grid-template-columns: 1.2fr 1fr; padding: 0; border: 0; background: #f1f4f3; margin-bottom: 12px; }
.journal-featured .journal-image { margin: 0; min-height: 430px; position: relative; }
.journal-featured .journal-image img, .journal-featured .image-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.journal-featured .journal-copy { justify-content: center; padding: 45px; }
.journal-featured h2 { font-size: clamp(30px, 2.7vw, 39px); line-height: 1.16; }
.journal-featured .text-link { margin-top: 0; }
.journal-featured .journal-copy > p:not(.eyebrow) { font-size: 16px; }
.journal .pagination .nav-links { justify-content: center; flex-wrap: wrap; gap: 8px; }
.journal .pagination .nav-links > * { max-width: none; }
.article { max-width: 1320px; }
.article-header { margin: 12px 0 55px; background: #f1f4f3; }
.article-header.has-cover { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.article-heading { padding: 45px; align-self: center; }
.article-header.has-cover .article-heading { min-height: 430px; display: flex; flex-direction: column; justify-content: center; }
.article-heading .eyebrow { display: inline-block; margin: 0 0 24px; }
.article-header h1 { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.15; margin: 0; text-wrap: pretty; }
.article-header .article-cover { position: absolute; top: 0; right: 0; width: 50%; height: 100%; min-height: 0; max-height: none; object-fit: cover; margin: 0; }
.article-body { max-width: 780px; color: #3b484d; font-size: 17px; line-height: 1.9; overflow-wrap: break-word; }
.article-body > p:first-child { font-size: 19px; line-height: 1.8; color: var(--ink); }
.article-body h2 { color: var(--ink); font-size: 34px; line-height: 1.25; margin-top: 50px; text-wrap: pretty; }
.article-body h3 { font-size: 26px; line-height: 1.3; text-wrap: pretty; }
.article-body img { margin-inline: auto; }
.article-body blockquote { margin: 30px 0; padding: 25px 30px; border-left: 3px solid var(--accent); background: #f4f6f5; }
.article-body .table-of-contents { background: #f1f4f3; border: 1px solid var(--line); padding: 30px; }
.article-bottom { max-width: 1000px; margin-inline: auto; }
.article-bottom .nav-links > div { flex: 1; max-width: 48%; padding: 25px; background: #f1f4f3; }
.article-byline { font-size: 12px; color: var(--muted); margin: 24px 0 0; }
.article-byline a { text-decoration: underline; text-underline-offset: 3px; }
.article-reading { max-width: 1200px; margin-inline: auto; }
.article-reading.has-index { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 65px; align-items: start; }
.article-reading .article-body { width: 100%; min-width: 0; }
.article-index { position: sticky; top: 110px; min-width: 0; }
.article-toc { border: 1px solid var(--line); border-top: 3px solid var(--accent); background: #f5f7f6; }
.article-toc summary { padding: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc:not([open]) summary span { font-size: 0; }
.article-toc:not([open]) summary span:after { content: '+'; font-size: 19px; }
.article-toc nav { max-height: calc(100dvh - 210px); overflow: auto; overscroll-behavior: contain; padding: 0 20px 20px; }
.article-toc ol { list-style: none; margin: 0; padding: 0; }
.article-toc li { border-top: 1px solid var(--line); margin: 0; }
.article-toc a { display: block; padding: 10px 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.article-toc a:hover { color: var(--accent); }
.article-toc .toc-subsection { border: 0; padding-left: 14px; }
.article-toc .toc-subsection a { font-size: 12px; padding: 5px 0; color: var(--muted); }
.article-body h2[id], .article-body h3[id] { scroll-margin-top: 20px; }

@media (max-width: 1000px) {
  .article-reading.has-index { display: flex; flex-direction: column; gap: 30px; }
  .article-index { position: static; order: -1; width: 100%; }
  .article-toc nav { max-height: 320px; }
  .product-body .pw-inner.pw-grid { gap: 40px; }
  .product-hero-copy { width: calc(100% - 70px); }
  .pw-page-22 .offer-grid > .pw-inner > .pw-group > .pw-inner > .pw-group { padding: 30px; }
  .pw-page-24 [data-section="e4be775b"] > .pw-inner { gap: 40px; }
  .pw-page-26 [data-section="ab0039a8"] > .pw-inner { gap: 35px; }
  .journal-featured .journal-copy, .article-heading { padding: 32px; }
  .journal-featured .journal-image, .article-header .article-cover { min-height: 390px; }
}
@media (max-width: 700px) {
  .article-reading.has-index { display: flex; flex-direction: column; gap: 30px; }
  .article-index { position: static; order: -1; width: 100%; }
  .article-toc nav { max-height: 320px; }
  .page-content > .shell > .breadcrumbs, .article > .breadcrumbs { padding-block: 16px; }
  .page-content > .photo-section:first-of-type { width: calc(100% - 24px); min-height: 220px; padding-block: 30px; }
  .page-content > .photo-section:first-of-type h1 { font-size: 40px; }
  .page-content > .pw-section { padding-block: 40px; }
  .product-hero { width: calc(100% - 24px); min-height: 400px; }
  .product-hero-copy { width: 100%; padding: 35px 24px; }
  .product-hero h1 { font-size: 40px; line-height: 1.1; overflow-wrap: break-word; }
  .product-hero .eyebrow { font-size: 10px !important; }
  .product-body > .pw-section, .product-body > .pw-section:first-of-type { padding-block: 38px; }
  .product-body .pw-inner.pw-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-body .pw-copy h3 { font-size: 28px; margin-bottom: 16px; }
  .product-body .pw-copy p { font-size: 15px; line-height: 1.8; }
  .product-photo-pair { grid-template-columns: 1fr; gap: 16px; }
  .product-body .gallery-reel > .gallery-item { flex-basis: 88%; }
  .pw-page-22 .offer-grid { margin-top: 30px; }
  .pw-page-22 .offer-grid > .pw-inner > .pw-group > .pw-inner { grid-template-columns: 1fr; }
  .pw-page-22 .offer-grid .pw-image { min-height: 0; }
  .pw-page-22 .offer-grid .pw-image img { position: static; height: auto; aspect-ratio: 1.5; }
  .pw-page-22 .offer-grid > .pw-inner > .pw-group:nth-child(even) .pw-image { order: 0; }
  .pw-page-22 .offer-grid > .pw-inner > .pw-group > .pw-inner > .pw-group { padding: 26px 24px; }
  .pw-page-22 .offer-grid .pw-copy h4 { font-size: 30px; }
  .pw-page-22 .offer-grid .pw-copy p { font-size: 15px; }
  .pw-page-24 [data-section="e4be775b"] > .pw-inner { grid-template-columns: 1fr; gap: 35px; }
  .pw-page-24 [data-section="9d28413d"] h2 { font-size: 35px; }
  .pw-page-24 [data-section="8fe14de4"] .photo-section { padding: 30px 24px; min-height: 370px; }
  .pw-page-28 .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .pw-page-26 [data-section="ab0039a8"] > .pw-inner { grid-template-columns: 1fr; gap: 35px; }
  .pw-page-26 [data-section="db0e6d62"] { padding: 30px 24px; min-height: 370px; }
  .pw-page-26 [data-section="76fb746d"] .pw-list { grid-template-columns: 1fr; margin-bottom: 30px; }
  .journal-heading { display: block; padding: 35px 0 30px; }
  .journal-heading h1 { font-size: 50px; }
  .journal-heading .search-form { width: 100%; margin-top: 25px; }
  .journal-grid { grid-template-columns: 1fr; gap: 35px; }
  .journal-featured { grid-template-columns: 1fr; }
  .journal-featured .journal-image { min-height: 0; }
  .journal-featured .journal-image img, .journal-featured .image-placeholder { position: static; height: auto; aspect-ratio: 1.5; }
  .journal-featured .journal-copy { padding: 26px 24px; }
  .journal-featured h2 { font-size: 29px; }
  .journal-featured .journal-copy > p:not(.eyebrow) { font-size: 15px; }
  .journal .pagination .nav-links { flex-direction: row; }
  .article-header.has-cover { grid-template-columns: 1fr; }
  .article-header { margin: 8px 0 32px; }
  .article-heading { padding: 30px 24px; }
  .article-header h1 { font-size: 32px; }
  .article-header.has-cover .article-heading { min-height: 0; }
  .article-header .article-cover { position: static; width: 100%; min-height: 0; height: auto; aspect-ratio: 1.5; }
  .article-body { font-size: 16px; }
  .article-body > p:first-child { font-size: 17px; }
  .article-body h2 { font-size: 28px; margin-top: 35px; }
  .article-body h3 { font-size: 24px; }
  .article-body .table-of-contents { padding: 20px; }
  .article-bottom .nav-links > div { max-width: 100%; padding: 20px; }
}
