/* Proportion and responsive refinement — 2026-08-15 */
html,
body,
#root,
.site-shell {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.shell,
.header-inner {
  width: min(1240px, calc(100vw - 48px));
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

/* Homepage: stronger balance between the promise and the supporting image. */
.home-hero {
  padding: 72px 0 64px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.04fr);
  gap: clamp(44px, 5vw, 72px);
}

.hero-copy h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(3.35rem, 5vw, 5.2rem);
  line-height: 1.02;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  font-size: 1.04rem;
}

.hero-art {
  padding: 14px 14px 42px;
}

/* Interior heroes: shorter, calmer and easier to scan. */
.page-hero {
  padding: clamp(68px, 6vw, 88px) 0;
}

.page-hero .shell::after {
  width: 96px;
  height: 96px;
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 5vw, 4.9rem);
  line-height: 1.04;
}

.page-hero .shell > div > p:not(.eyebrow) {
  max-width: 700px;
  font-size: 1.04rem;
}

/* Portfolio: consistent widescreen imagery and a lighter reading rhythm. */
.work-grid {
  column-gap: 34px;
  row-gap: 58px;
}

.project-visual.compact {
  aspect-ratio: 16 / 9;
}

.project-card-copy {
  padding: 22px 4px 30px;
}

.project-card-copy h3 {
  margin: 10px 0 8px;
  font-size: 1.58rem;
}

.project-card-copy p {
  min-height: 0;
  margin-bottom: 20px;
  font-size: 0.98rem;
  line-height: 1.62;
}

.project-visual figcaption {
  left: 18px;
  bottom: 16px;
  max-width: calc(100% - 36px);
  padding: 10px 14px;
  font-size: 0.68rem;
}

@media (max-width: 1100px) {
  .shell,
  .header-inner {
    width: min(960px, calc(100vw - 40px));
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-copy h1 {
    max-width: 720px;
  }

  .hero-art {
    width: min(820px, 100%);
  }
}

@media (max-width: 840px) {
  .shell,
  .header-inner {
    width: calc(100vw - 32px);
  }

  .header-inner {
    min-width: 0;
    gap: 16px;
  }

  .brand-link {
    flex: 0 1 186px;
    min-width: 0;
  }

  .menu-toggle {
    flex: 0 0 46px;
  }

  .page-hero {
    padding: 64px 0 58px;
  }

  .page-hero h1 {
    max-width: 680px;
    font-size: clamp(2.65rem, 8.5vw, 4.25rem);
  }

  .work-grid {
    row-gap: 48px;
  }
}

@media (max-width: 720px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .shell,
  .header-inner {
    width: calc(100vw - 28px);
  }

  .brand-link {
    width: auto;
    flex-basis: 166px;
  }

  .home-hero {
    padding: 52px 0 48px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-copy h1 {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(2.55rem, 12vw, 3rem);
  }

  .hero-copy > p:not(.eyebrow) {
    margin-bottom: 26px;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .hero-art {
    padding: 8px 8px 38px;
  }

  .hero-art img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
  }

  .page-hero {
    padding: 54px 0 50px;
  }

  .page-hero h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(2.3rem, 10.5vw, 2.7rem);
    line-height: 1.04;
    overflow-wrap: anywhere;
  }

  .page-hero .shell > div > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .work-grid {
    gap: 42px;
  }

  .project-visual.compact {
    aspect-ratio: 16 / 9;
  }

  .project-visual figcaption {
    left: 14px;
    bottom: 12px;
    max-width: calc(100% - 28px);
    padding: 9px 12px;
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }

  .project-card-copy {
    padding: 20px 4px 26px;
  }

  .project-card-copy h3 {
    font-size: 1.42rem;
  }

  .project-card-copy p {
    font-size: 0.94rem;
  }

  .project-links {
    gap: 16px;
  }
}
