/* ==========================================================
   ARCHITECT, PRODUCT, FILM & OTHER — SHARED VISUAL SYSTEM
   Loaded on architect.html, product.html, film.html and other.html.
   Genuinely shared portfolio styles live in styles.css.
   This file holds portfolio-page-specific styling only,
   scoped via .architect-page / .product-page / .film-page / .other-page.
   ========================================================== */

/* ==========================================================
   DESKTOP — HERO-STYLE INTRO PANEL (shared)
   ========================================================== */

@media (min-width: 901px) {
  /* Product/Film/Other: hide the legacy hero banner on desktop so the
     intro panel starts at the top exactly like Architect. Kept mobile/tablet. */
  .product-page .exterior-hero,
  .film-page .exterior-hero,
  .other-page .exterior-hero {
    display: none;
  }

  .architect-page .exterior-text,
  .product-page .exterior-text,
  .film-page .exterior-text,
  .other-page .exterior-text {
    padding: 82px 0 46px;
  }

  .architect-page .exterior-box,
  .product-page .exterior-box,
  .film-page .exterior-box,
  .other-page .exterior-box {
    max-width: 1120px;
    margin: 0 auto;
    padding: 52px;
    background: var(--home-panel);
    display: block;
    text-align: left;
  }

  .architect-page .exterior-box .home-eyebrow,
  .product-page .exterior-box .home-eyebrow,
  .film-page .exterior-box .home-eyebrow,
  .other-page .exterior-box .home-eyebrow {
    margin: 0 0 15px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--home-soft);
  }

  .architect-page .exterior-box h1,
  .product-page .exterior-box h1,
  .film-page .exterior-box h1,
  .other-page .exterior-box h1 {
    margin: 0;
    max-width: 850px;
    font-size: clamp(3.1rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: var(--home-text);
  }

  /* Architect-only section labels (Exterior / Interior) */
  .architect-page .exterior-box h3 {
    margin: 44px 0 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--home-accent);
  }

  .architect-page .exterior-box p,
  .product-page .exterior-box p,
  .film-page .exterior-box p,
  .other-page .exterior-box p {
    margin: 10px 0 0;
    max-width: 700px;
    font-size: 1.08rem;
    line-height: 1.78;
    color: var(--home-soft);
  }

/* Product-only: force the heading onto two lines on desktop only.
      The inline span keeps "3D Product Visualization" as a single h1
      and still wraps naturally on mobile/tablet. */
  .product-page .exterior-box h1 .h1-line {
    display: block;
  }

  /* Other: force the heading onto two lines on desktop only */
  .other-page .exterior-box h1 .h1-line {
    display: block;
  }

  /* Product/Film: mirror Architect's desktop rhythm without labels.
     Architect runs h1 -> 44px -> [label + p] -> 44px -> [label + p]
     -> 10px -> closing; Product/Film map lead -> 44px -> section ->
     44px -> section -> 10px -> closing (closing keeps the shared 10px).
     Other maps lead -> 44px -> closing (closing keeps the shared 10px). */
  .product-page .exterior-box .ex-lead,
  .product-page .exterior-box .ex-section,
  .film-page .exterior-box .ex-lead,
  .film-page .exterior-box .ex-section,
  .other-page .exterior-box .ex-lead {
    margin-top: 44px;
  }

  /* Gallery heading — Home section-title system, connected to grid */
  .architect-page .exterior-gallery,
  .product-page .exterior-gallery,
  .film-page .exterior-gallery,
  .other-page .exterior-gallery {
    padding: 16px 0 48px;
  }

  .architect-page .exterior-gallery h1,
  .product-page .exterior-gallery h2,
  .film-page .exterior-gallery h2 {
    font-size: clamp(2.2rem, 3.8vw, 2rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: rgb(136, 135, 135);
    margin: 0 0 16px;
  }

  /* Explore more work — compact closing CTA, Home link scale, centered */
  .architect-page .exterior-gallery:last-of-type,
  .product-page .exterior-gallery:last-of-type,
  .film-page .exterior-gallery:last-of-type,
  .other-page .exterior-gallery:last-of-type {
    padding: 0 0 36px;
  }

  .architect-page .ex-more,
  .product-page .ex-more,
  .film-page .ex-more,
  .other-page .ex-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .architect-page .ex-more a,
  .product-page .ex-more a,
  .film-page .ex-more a,
  .other-page .ex-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--home-text);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.25s ease;
  }

  .architect-page .ex-more a:hover,
  .product-page .ex-more a:hover,
  .film-page .ex-more a:hover,
  .other-page .ex-more a:hover {
    color: var(--home-accent);
  }

  .architect-page .ex-more svg,
  .product-page .ex-more svg,
  .film-page .ex-more svg,
  .other-page .ex-more svg {
    width: 28px;
    height: 28px;
    opacity: 0.6;
    flex-shrink: 0;
  }

  /* Editorial media cards on desktop — media stays dominant, each item
     reads as one refined unit. Film wraps media + caption in .video-card;
     Other's grid items are bare figures, so the figure itself is the unit. */
  .film-page .video-card,
  .other-page .ex-grid-2 figure {
    background: var(--home-card);
    border: 1px solid var(--home-line);
  }

  .film-page .video-card figure {
    margin: 0;
    border-bottom: 1px solid var(--home-line);
  }

  .film-page .video-card p {
    margin: 14px 18px 16px;
    max-width: none;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--home-text);
    text-align: left;
  }
}

/* ==========================================================
   MOBILE — COMPACT INTRO PANEL (shared)
   Mirrors Home page mobile hero typography/spacing.
   ========================================================== */

@media (max-width: 739px) {
  .architect-page .exterior-text,
  .product-page .exterior-text,
  .film-page .exterior-text,
  .other-page .exterior-text {
    margin-top: 0;
    padding: 18px 0 14px;
  }

  .architect-page .exterior-text .container,
  .product-page .exterior-text .container,
  .film-page .exterior-text .container,
  .other-page .exterior-text .container {
    padding: 0 12px;
  }

  .architect-page .exterior-box,
  .product-page .exterior-box,
  .film-page .exterior-box,
  .other-page .exterior-box {
    display: block;
    padding: 16px 14px;
  }

  /* Product: hide the hero banner image on mobile only */
  .product-page .exterior-hero {
    display: none;
  }

  /* Film: hide the hero banner image on mobile only */
  .film-page .exterior-hero {
    display: none;
  }

.architect-page .exterior-box h1,
  .product-page .exterior-box h1,
  .film-page .exterior-box h1,
  .other-page .exterior-box h1 {
    margin: 0;
    font-size: clamp(1.5rem, 7vw, 2.2rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--home-text);
  }

  /* Architect-only: stronger, more confident heading on mobile */
  .architect-page .exterior-box h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  /* Architect-only section labels (Exterior / Interior) */
  .architect-page .exterior-box h3 {
    margin: 16px 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--home-accent);
  }

  .architect-page .exterior-box p,
  .product-page .exterior-box p {
    margin: 0 0 4px;
    max-width: none;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--home-soft);
  }

  .product-page .ex-lead {
    margin: 0 0 8px;
  }

  .product-page .ex-section {
    margin: 0 0 6px;
  }

  .product-page .ex-closing {
    margin: 0 0 2px;
  }

  /* Gallery headings — shared mobile treatment */
  .architect-page .exterior-gallery h1,
  .product-page .exterior-gallery h2,
  .film-page .exterior-gallery h2 {
    font-size: 1.2rem;
  }

  /* Film mobile video captions — adapted from desktop editorial style */
  .film-page .video-card p {
    margin: 8px 10px 6px;
    font-size: 0.7rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.015em;
    color: var(--home-soft);
  }

  .product-page .exterior-box p:first-child {
    margin-top: 0.5rem;
  }

  .product-page .ex-lead {
    margin-top: 0.5rem;
  }

  /* Other: hide the hero banner image on mobile only */
  .other-page .exterior-hero {
    display: none;
  }

  /* Other: force the heading onto two lines on mobile only */
  .other-page .exterior-box h1 .h1-line {
    display: block;
  }

  /* Other: refined mobile intro typography */
  .other-page .exterior-box {
    padding: 14px;
  }

  .other-page .exterior-box h1 {
    margin: 0 0 10px;
    font-size: clamp(1.4rem, 6.5vw, 2rem);
    line-height: 1;
    letter-spacing: -0.035em;
  }

  .other-page .exterior-box p {
    margin: 0 0 10px;
    max-width: none;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--home-soft);
  }

  .other-page .ex-lead {
    margin: 0 0 10px;
  }

  .other-page .ex-closing {
    margin: 0;
  }
}
/* Modal close button — reused from Home page modal CSS,
   scoped to portfolio page classes. */
  .other-page .modal .close,
  .architect-page .modal .close,
  .product-page .modal .close {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 14px;
    z-index: 10060;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: rgba(12, 16, 15, 0.55);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);

    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }

  .other-page .modal .close svg,
  .architect-page .modal .close svg,
  .product-page .modal .close svg {
    display: block;
    width: 22px;
    height: 22px;
  }

  .other-page .modal .close:hover,
  .architect-page .modal .close:hover,
  .product-page .modal .close:hover {
    background: rgba(12, 16, 15, 0.82);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
  }

  .other-page .modal .close:focus-visible,
  .architect-page .modal .close:focus-visible,
  .product-page .modal .close:focus-visible {
    outline: 2px solid rgba(175, 194, 184, 0.9);
    outline-offset: 3px;
  }