/* Shared content width for tablets, laptops and large monitors.
   --gutter keeps the header, every hero and every section aligned to one column. */
:root{--wrap:1200px;--gutter:max(5%,calc((100% - var(--wrap)) / 2));--hero-h:clamp(540px,calc(100svh - 106px),860px)}
@media(min-width:1600px){:root{--wrap:1360px}}
@media(min-width:2000px){:root{--wrap:1520px}}

@media(min-width:721px){
  .site-header{max-width:none;padding-left:var(--gutter);padding-right:var(--gutter)}

  /* Home hero: content-sized, vertically centred, never taller than 860px. */
  .hero{min-height:var(--hero-h);padding:clamp(56px,7vh,96px) var(--gutter);column-gap:clamp(30px,5vw,96px)}

  /* Inner-page heros: copy and illustration sit in one grid instead of
     being pinned to the far edges of the screen. */
  .motion-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.62fr);column-gap:clamp(30px,5vw,96px);row-gap:clamp(36px,6vh,72px);align-content:center;align-items:center;min-height:var(--hero-h);padding:clamp(56px,7vh,96px) var(--gutter)}
  .motion-intro .intro-main,.resume-intro .intro-main,.gallery-intro .intro-main,.collection-intro .intro-main{grid-column:1;grid-row:1;max-width:none}
  .case-intro{grid-template-columns:minmax(0,1fr)}
  .case-intro .intro-main{max-width:1200px}
  .intro-bottom{grid-column:1/-1;grid-row:2}
  .intro-cv-preview,.intro-work-stack,.collection-collage{position:relative;inset:auto;grid-column:2;grid-row:1;justify-self:center;margin:0}
  .intro-cv-preview{width:min(100%,300px);max-width:none}
  .intro-work-stack{width:min(100%,400px);height:auto;aspect-ratio:1/1.05}
  .collection-collage{width:min(100%,400px);height:auto;aspect-ratio:1/.95}
  .intro-spark{right:max(2%,calc(var(--gutter) - 40px));top:clamp(24px,7%,70px)}
  .gallery-intro .intro-spark,.collection-intro .intro-spark{right:calc(var(--gutter) + (100% - 2 * var(--gutter)) * .4);top:clamp(30px,10%,90px)}
  .intro-orbit{right:calc(var(--gutter) - 300px);bottom:30px}

  /* Content sections follow the same column as the header and hero. */
  .discover,.gallery-section,.collection-hub,.social-section,.print-feature,.print-gallery,.email-gallery,.page-heading,.campaign-journey,.campaign-reading,.case-page{max-width:none;padding-left:var(--gutter);padding-right:var(--gutter)}
  .contact-strip{max-width:var(--wrap);margin-left:var(--gutter);margin-right:var(--gutter);padding-left:0;padding-right:0}
  .site-footer{padding-left:var(--gutter);padding-right:var(--gutter)}
  .collection-nav{padding-left:var(--gutter);padding-right:var(--gutter)}
  /* The CV card ran edge to edge between 721px and 1200px. */
  .web-resume{max-width:none;margin-left:var(--gutter);margin-right:var(--gutter)}
  /* Campaign map: keep the nine steps together instead of spreading them over a wide screen. */
  .campaign-journey{min-height:min(90svh,900px)}
  .journey-map{width:100%;max-width:1040px;margin-left:auto;margin-right:auto}
  /* Readable line length for the case-study text on wide screens. */
  .chapter-body>p,.chapter-body>ul,.chapter-body>h3,.target-group>ul{max-width:820px}
  /* Newsletters are designed 600px wide; on big screens they were blown up past that. */
  .email-preview{max-width:min(100%,600px)}
}
/* Phones: header, hero and sections share the same 6% side margin. */
@media(max-width:720px){
  .site-header,.social-section{padding-left:6%;padding-right:6%}
}
@media(min-width:721px) and (max-width:1050px){
  .motion-intro{grid-template-columns:minmax(0,1fr) minmax(0,.55fr)}
  .intro-cv-preview{width:min(100%,230px)}
  .intro-spark{font-size:80px}
}
/* Portrait tablets: let the hero hug its content instead of filling a tall screen. */
@media(min-width:721px) and (orientation:portrait){
  .hero,.motion-intro{min-height:0;padding-top:72px;padding-bottom:72px}
}
@media(min-width:1280px){
  .contact-strip{margin-left:auto;margin-right:auto}
}

/* Large monitors: scale the hero composition with the wider column. */
@media(min-width:1600px){
  .site-header{padding-top:32px;padding-bottom:32px}
  .brand{font-size:26px}
  .brand span{font-size:15px}
  .site-header nav{font-size:18px;gap:32px}
  .hero{grid-template-columns:1.45fr 1fr}
  .hero h1{font-size:clamp(82px,4.6vw,104px)}
  .hero .eyebrow,.motion-intro .eyebrow{font-size:14px}
  .hero-lead{font-size:32px!important}
  .hero-copy>p:not(.eyebrow){font-size:23px}
  .hero .text-link{font-size:21px}
  .portrait-wrap{height:480px}
  .portrait{width:460px}
  .orbit{width:500px;height:500px}
  .hero-star{font-size:130px}
  .photo-note{font-size:21px;padding:15px 28px}
  .motion-intro h1,.resume-intro h1,.gallery-intro h1,.collection-intro h1{font-size:clamp(80px,4.8vw,110px)}
  .intro-description{font-size:24px;max-width:720px}
  .intro-small{font-size:16px}
  .intro-cv-preview{width:min(100%,360px)}
  .intro-work-stack,.collection-collage{width:min(100%,480px)}
  .intro-spark{font-size:140px}
  .intro-orbit{width:560px;height:560px}
  .motion-button{font-size:21px;padding:17px 28px}
  .intro-scroll-note{font-size:16px}
  .section-heading h2,.journey-heading h2{font-size:52px}
}

/* The case-study subtitle used the body grey, which is unreadable on navy. */
.motion-intro .case-context{color:var(--mint)}
