/* Content-led spacing. The page may grow; examples never shrink to fill a screen. */
:root { --gut: clamp(24px, 5vw, 96px); --gutter: 32px; }
main > :is(#intro, #work, #services, #craft, #process, #terms) {
  display:block; height:auto; min-height:0;
  padding:clamp(88px, 8vw, 144px) 0;
}
main > :is(#intro, #work, #services, #craft, #process, #terms) > .wrap {
  display:block; height:auto; min-height:0;
}
main > :is(#work, #services, #craft, #process, #terms) > .wrap > .fill {
  flex:none; min-height:0;
}
:is(.sec-head, .work__head) { row-gap:28px; }
:is(.sec-head, .work__head) > h2 { font-size:clamp(34px, 3.6vw, 56px); line-height:1.12; letter-spacing:-.035em; }
:is(.sec-head, .work__head) > p { font-size:18px; line-height:1.65; max-width:48ch; }
:is(.svc, .craft, .process, .work__app), #terms .terms { margin-top:64px; }

/* Give the name, message and actions distinct areas within a generous opening. */
.hero.hero--brand { --hpadb:56px; min-height:100svh; padding-top:calc(var(--nav) + 64px); }
.hero--brand > .wrap > .hero-text { min-height:0; grid-template-rows:auto auto; }
.hero--brand .brand__h1 { min-height:0; font-size:25.8cqi; line-height:.98; letter-spacing:-.04em; }
.hero--brand .brand__name { padding-top:0; white-space:nowrap; }
.hero--brand .brand__what { margin-top:36px; font-size:15px; line-height:1.6; letter-spacing:.13em; }
.hero--brand .brand__tag { margin-top:clamp(64px, 7vw, 112px); padding-top:0; font-size:clamp(64px, 7.2vw, 112px); line-height:1.02; letter-spacing:-.035em; }
.hero--brand .brand__act { padding-bottom:12px; }
.hero--brand .brand__price { margin-top:24px; font-size:14px; line-height:1.6; }
.hero--brand .brand-words { margin-top:64px; padding:32px 0 0; column-gap:20px; }
.hero--brand .brand-words span { font-size:clamp(19px, 2cqi, 30px); line-height:1.3; }
.hero--brand .brand-words i { width:18px; flex-shrink:0; }
.hero--brand .hero__pause { bottom:100px; }

/* Larger opening examples, instead of a cluster of tiny screens. */
.intro__grid { align-items:center; }
.intro__lead { margin-top:28px; font-size:20px; line-height:1.65; }
.intro__media { padding-bottom:40px; }
.intro__col--low { margin-top:64px; }
@media(min-width:1024px) {
  .intro__grid > :first-child { grid-column:1 / span 4; }
  .intro__grid > .intro__media { grid-column:6 / -1; }
}

/* A useful desktop preview and readable project names at every browser height. */
@media(min-width:1024px) {
  #work .work__app { height:clamp(700px, 55vw, 860px); grid-template-columns:clamp(280px, 22vw, 340px) minmax(0, 1fr); }
  #work .work__list { grid-auto-rows:minmax(56px, 1fr); overflow-y:auto; }
  #work .work__item { display:grid; grid-template-columns:minmax(0, 1fr); align-items:center; align-content:center; gap:3px; min-height:56px; padding:8px 12px 8px 74px; }
  #work .work__thumb { width:48px; height:32px; margin-left:12px; }
  #work .work__name { font-size:15px; line-height:1.35; }
  #work .work__trade { font-size:13px; line-height:1.4; white-space:normal; }
}

/* Images get an aspect ratio of their own, independent of the section height. */
.svc { grid-template-rows:auto auto auto; }
.svc__card { min-height:0; }
.svc__panel { --p-h:auto; height:auto; min-height:320px; aspect-ratio:16 / 10; flex:none; }
.craft { grid-template-rows:auto auto 460px; }
.craft__panel { --p-h:auto; height:460px; min-height:460px; flex:none; }
.stage > .craft-type__at { top:88px; bottom:auto; left:28px; }
.stage > .craft-type__ctl { top:28px; left:28px; right:28px; width:auto; justify-content:flex-start; }
.craft-type__ctl .craft-switch { flex-direction:row; }
.craft-type__spec { font-size:13px; }

/* The eight project checkpoints remain intact, arranged as a readable path. */
#process .process { display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:64px; align-items:start; }
#process .process__steps { display:flex; flex-direction:column; gap:48px; margin:0; }
#process .process__step h3 { margin-top:20px; font-size:23px; line-height:1.35; }
#process .process__step p { margin-top:14px; font-size:18px; line-height:1.65; }
#process .process__panel { --p-h:720px; height:720px; min-height:720px; max-height:none; margin:0; flex:none; container-type:inline-size; }
#process .process__panel > .dg { font-size:15px; }
#process .process__panel .dg-cap { font-size:14px; }
#process .process__panel .dg-node--side > .dg-cap { width:min(260px, calc(100cqi - 104px)); max-width:none; flex-direction:column; align-items:flex-start; gap:4px; white-space:normal; line-height:1.4; }

/* Terms and footer keep a comfortable rhythm without stretching into empty screens. */
#terms .terms { flex:none; }
#terms .terms__rows > li { flex:none; padding-block:28px; }
#terms .terms__rows > li:first-child { padding-top:0; }
#terms .terms__rows > li > p { margin-top:8px; font-size:17px; line-height:1.65; }
#terms .terms__foot { gap:24px; padding-top:32px; }
#terms .terms__scope { font-size:18px; line-height:1.65; }
#contact.footer.closing { display:block; height:auto; min-height:0; padding:64px 0 48px; }
#contact.footer.closing > .wrap { height:auto; min-height:200px; gap:72px; padding-bottom:0; }
#contact .footer__legal { margin-top:0; font-size:14px; line-height:1.6; }

@media(min-width:640px) and (max-width:1023px) {
  .hero--brand .brand__tag { font-size:clamp(56px, 8vw, 80px); }
  .hero--brand .brand__act { margin-top:36px; padding-bottom:0; }
  #work .work__app { height:auto; grid-template-rows:auto auto; }
  #work .work__stage:not(.is-full) { flex:none; height:640px; min-height:640px; }
  .craft { grid-template-rows:none; row-gap:40px; }
  .craft__card { display:flex; grid-row:auto; }
  .craft-type__spec { display:none; }
  #process .process { grid-template-columns:minmax(0, 1fr); gap:48px; }
  #process .process__steps { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; }
  #process .process__steps > li { grid-column:auto; }
}
@media(max-width:639px) {
  :root { --gut:24px; --gutter:24px; }
  main > :is(#intro, #work, #services, #craft, #process, #terms) { padding-block:72px; }
  :is(.sec-head, .work__head) { row-gap:24px; }
  :is(.sec-head, .work__head) > h2 { font-size:34px; }
  :is(.sec-head, .work__head) > p { font-size:17px; line-height:1.65; }
  :is(.svc, .craft, .process, .work__app), #terms .terms { margin-top:40px; }
  .hero.hero--brand { min-height:0; padding-top:calc(var(--nav) + 48px); padding-bottom:48px; }
  .hero--brand > .wrap > .hero-text { grid-template-rows:auto auto auto; }
  .hero--brand .brand__h1 { font-size:28.2cqi; }
  .hero--brand .brand__what { margin-top:24px; font-size:13px; line-height:1.6; }
  .hero--brand .brand__tag { margin-top:48px; font-size:clamp(44px, 11vw, 60px); line-height:1.03; }
  .hero--brand .brand__act { margin-top:32px; padding-bottom:0; }
  .hero--brand .brand__price { margin-top:24px; font-size:13px; }
  .hero--brand .brand-words { margin-top:40px; padding-top:16px; row-gap:12px; }
  .hero--brand .brand-words span { font-size:16px; line-height:1.4; }
  .hero--brand .hero__pause { bottom:100px; }
  .intro__lead { font-size:18px; margin-top:24px; }
  .intro__media { grid-template-columns:minmax(0, 1fr); margin-top:40px; padding-bottom:0; }
  .intro__col { gap:24px; }
  .intro__col--low { display:none; }
  .intro__win:nth-child(2) { display:block; }
  #work .work__app { height:auto; grid-template-rows:auto auto; }
  #work .work__stage:not(.is-full) { flex:none; height:560px; min-height:560px; }
  .svc { grid-template-rows:none; row-gap:32px; }
  .svc__panel { min-height:320px; aspect-ratio:4 / 5; }
  .craft { grid-template-rows:none; row-gap:32px; }
  .craft__card { grid-row:auto; }
  .card > .craft__panel { height:240px; min-height:240px; }
  .craft__card:last-child > .craft__panel { height:350px; min-height:350px; }
  .stage > .craft-type__at { top:88px; left:20px; bottom:auto; }
  .stage > .craft-type__ctl { top:20px; left:20px; right:20px; }
  #process .process { grid-template-columns:minmax(0, 1fr); gap:40px; }
  #process .process__steps { gap:36px; }
  #process .process__step h3 { font-size:22px; }
  #process .process__step p { font-size:17px; }
  #process .process__panel { --p-h:720px; height:720px; min-height:720px; }
  #process .process__panel .dg-cap { font-size:13px; }
  #terms .terms__rows { margin-top:36px; }
  #terms .terms__rows > li { padding-block:24px; }
  #terms .terms__foot { padding-top:32px; }
  #contact.footer.closing { padding:56px 0 96px; }
  #contact.footer.closing > .wrap { min-height:180px; gap:64px; }
  #contact .footer__nav { gap:16px 24px; flex-wrap:wrap; }
}
