/* VIEWPORT RHYTHM — spacing-only correction on approved kinetic V3 preview.
   No typography, colours, content, graphics, hover/click engine or layout structure changes.
   The fixed 81px header is accommodated by SECTION padding, not doubled
   scroll-padding + scroll-margin + generous section padding. */
:root{
  --rhythm-top:clamp(94px,9.5svh,116px);
  --rhythm-bottom:clamp(50px,6svh,74px);
}
/* Fix the doubled anchor inset (96px + 96px) inherited from precision-finish.
   Each target section already has a header-safe top inset. */
html{scroll-padding-top:0}
#intro,#work,#about,#skills,#approach,#company,#message,#contact{scroll-margin-top:0}

/* Statement and introduction: keep all of their actual text in one logical
   viewport where possible, without changing the selected headline type scale. */
.manifesto{
  min-height:100svh;
  padding-top:var(--rhythm-top);
  padding-bottom:var(--rhythm-bottom);
}
.manifesto-words{
  padding-top:clamp(28px,3.2svh,42px);
  padding-bottom:clamp(34px,4.1svh,52px);
}
.work-introduction{
  min-height:100svh;
  padding-top:var(--rhythm-top);
  padding-bottom:var(--rhythm-bottom);
}
.work-introduction h2{margin-block:clamp(19px,2.8svh,34px)}
.work-intro-bottom p{margin-block:0}

/* About: remove the unused top/bottom gutters, preserve the same two columns. */
.personal-section{
  padding-top:var(--rhythm-top);
  padding-bottom:var(--rhythm-bottom);
}
.personal-section .about-grid{
  margin-top:clamp(28px,3.5svh,44px);
}

/* Skills: all six existing rows follow the headline, rather than starting
   after a second large visual spacer. Keep original text and column layout. */
.skills-section{
  padding-top:var(--rhythm-top);
  padding-bottom:var(--rhythm-bottom);
}
.skills-section .skills-grid{margin-top:clamp(29px,3.7svh,45px)}
.skills-section .skills-list{margin-top:clamp(22px,2.6svh,33px)}
.skills-section .skills-list li{
  min-height:0;
  padding-top:clamp(6px,.85svh,9px);
  padding-bottom:clamp(6px,.85svh,9px);
}

/* How I work: eliminate stacked separation above and below the four steps. */
.approach-section{
  padding-top:var(--rhythm-top);
  padding-bottom:var(--rhythm-bottom);
}
.approach-section .approach-heading{
  margin-top:clamp(29px,3.7svh,46px);
  margin-bottom:clamp(36px,4.8svh,60px);
}

/* Company: one connected story, instead of large empty horizontal bands. */
.company-section{
  padding-top:var(--rhythm-top);
  padding-bottom:var(--rhythm-bottom);
}
.company-section .company-topline{margin-bottom:clamp(24px,3svh,39px)}
.company-section .company-heading{margin-bottom:clamp(29px,3.8svh,45px)}
.company-section .company-heading>p{margin-top:clamp(15px,2svh,23px)}
.company-section .company-roles{padding-top:clamp(19px,2.6svh,27px)}
.company-section .company-other{
  margin-top:clamp(26px,3.5svh,43px);
  padding-top:clamp(19px,2.8svh,31px);
}
.company-section .company-other-projects{margin-top:clamp(18px,2.6svh,28px)}

/* Contact form: same inputs/CTA, less empty vertical track around them. */
.message-section{
  padding-top:var(--rhythm-top);
  padding-bottom:var(--rhythm-bottom);
}
.message-section .message-layout{margin-top:clamp(28px,3.6svh,44px)}
.message-section .message-explainer{margin-top:clamp(20px,2.9svh,29px)}
.message-section .message-privacy{margin-top:clamp(16px,2.4svh,23px)}

/* Final contact: preserve the giant SAY HELLO and real footer, but remove
   the three large empty gaps which previously pushed SAY under the fixed nav. */
.contact-section{
  padding-top:var(--rhythm-top);
  padding-bottom:30px;
}
.contact-section h2{
  margin-top:clamp(28px,3.5svh,42px);
  margin-bottom:clamp(32px,4svh,48px);
}
.contact-section .contact-bottom{
  margin-bottom:clamp(34px,4.7svh,55px);
}

@media(max-width:1050px){
  .personal-section .about-grid{gap:clamp(22px,3.4svh,32px)}
  .skills-section .skills-intro{gap:clamp(19px,3svh,28px)}
  .skills-section .skills-list{margin-top:clamp(24px,3svh,38px)}
}
@media(max-width:850px){
  :root{
    --rhythm-top:clamp(95px,11svh,111px);
    --rhythm-bottom:clamp(52px,7svh,76px);
  }
  .skills-section .skills-grid{margin-top:clamp(27px,3.7svh,39px)}
  .skills-section .skills-list li{padding-block:10px}
  .company-section .company-other{margin-top:clamp(26px,4svh,38px)}
  .contact-section .contact-bottom{margin-bottom:clamp(38px,5svh,60px)}
}
@media(max-width:600px){
  :root{
    --rhythm-top:clamp(94px,11svh,108px);
    --rhythm-bottom:clamp(48px,6.5svh,64px);
  }
  .work-introduction{min-height:100svh}
  .work-introduction h2{margin-block:clamp(24px,4.5svh,36px)}
  .personal-section .about-grid{margin-top:clamp(25px,4svh,35px)}
  .skills-section .skills-grid{margin-top:clamp(26px,4svh,37px)}
  .skills-section .skills-list{margin-top:clamp(23px,3.7svh,35px)}
  .company-section .company-topline{margin-bottom:clamp(23px,3.6svh,32px)}
  .company-section .company-heading{margin-bottom:clamp(26px,4svh,36px)}
  .company-section .company-other-projects{margin-top:clamp(20px,3svh,27px)}
  .contact-section h2{margin-top:clamp(27px,4svh,37px);margin-bottom:clamp(28px,4.5svh,42px)}
}
@media(max-height:760px) and (min-width:1051px){
  :root{--rhythm-top:91px;--rhythm-bottom:39px}
  .work-introduction h2{margin-block:18px}
  .skills-section .skills-grid{margin-top:24px}
  .skills-section .skills-list{margin-top:16px}
  .skills-section .skills-list li{padding-block:6px}
  .contact-section h2{margin-block:22px 28px}
  .contact-section .contact-bottom{margin-bottom:30px}
}
