/* =========================================================
   PRO Building – homepage (static preview)
   Built from Figma "PRO Building HP (Alan)" – 1440px design
   ========================================================= */

:root {
  --red: #bd1d1d;
  --red-dark: #9e1414;
  --gray: #575756;
  --gray-line: #ccc;
  --light: #d9d9d9;
  --footer-bg: #333;
  --container: 1120px;
  --gutter: 20px;
  --font: "Ubuntu", system-ui, sans-serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --hover: .25s ease;           /* one shared hover timing for buttons + links */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--gray);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.text-red { color: var(--red); }

/* ---------- shared ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 180px;
  height: 50px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .84px;
  text-transform: uppercase;
  transition: background-color var(--hover);
}
.btn .arrow {
  display: inline-block;     /* transforms don't apply to plain inline text */
  font-weight: 700;
  transition: transform var(--hover);
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translateX(4px); }   /* arrow nudges right */

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-weight: 300;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow::after {
  content: "";
  width: 50px;
  height: 2px;
  margin-left: 4px;
  background: var(--red);
}
.eyebrow--light { color: #fff; text-shadow: 0 0 4px #000; }

.section-title {
  margin-top: 30px;
  font-weight: 700;
  font-size: 50px;
  line-height: 55px;
  color: var(--gray);
}
.section-title--light { color: #fff; }
.section-title.text-red { color: var(--red); }
.section-subtitle {
  margin-top: 10px;
  font-weight: 700;
  font-size: 45px;
  line-height: 45px;
  color: var(--light);
}

/* left-to-right dark wash used on the photo bands */
.shade-left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(255,255,255,0) 0%, rgba(137,137,137,.46) 25%, rgba(0,0,0,.85) 74.5%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

/* ---------- header ---------- */
/* Transparent over the hero; .is-scrolled (set in main.js) turns it white.
   It is fixed, so it stays on top while the page scrolls. */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 47px 0 0;
  transition: background-color var(--hover), padding .3s ease, box-shadow .3s ease;
}
.site-header__inner { display: flex; align-items: flex-start; }
.site-header__logo { margin-left: 2px; flex-shrink: 0; position: relative; }
.site-header__logo img { width: 65px; height: 93px; transition: width .3s ease, height .3s ease, opacity var(--hover); }
.site-header__logo .logo-dark { position: absolute; top: 0; left: 0; opacity: 0; }

.main-nav { margin: 33px 0 0 57px; transition: margin .3s ease; }
.main-nav__list { display: flex; gap: 30px; }
/* Hover (per the client's example): a white tab rises from the top edge of the
   page behind the label, the label turns grey and the PRO mark appears under it.
   --tab-top = distance from the top of the page to the label. */
.main-nav { --tab-top: 80px; --tab-below: 36px; }
.nav-item { position: relative; }
.nav-item::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--tab-top));
  bottom: calc(-1 * var(--tab-below));
  left: -17px;
  right: -15px;
  background: #fff;
  opacity: 0;
  transition: opacity var(--hover);
}
.nav-link {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 15px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  transition: color var(--hover);
}
.nav-mark {
  position: absolute;
  z-index: 1;
  top: calc(100% + 8px);
  left: 50%;
  width: 28px;
  height: 21px;
  margin-left: -1px;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hover);
}
.sub-toggle { display: none; }

/* Subcategories: white panel attached under the tab, dropping over the hero */
.nav-drop {
  position: absolute;
  top: calc(100% + var(--tab-below));
  left: -17px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--hover), transform var(--hover), visibility 0s linear .25s;
}
.nav-drop__card {
  min-width: 250px;
  padding: 6px 24px 16px;
  background: #fff;
  border-radius: 0 6px 6px 6px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .16);
}
.nav-drop ul a {
  display: block;
  padding: 7px 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 18px;
  color: var(--gray);
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  transition: color var(--hover);
}
.nav-drop ul li:last-child a { border-bottom: 0; }
.nav-drop ul a:hover, .nav-drop ul a:focus-visible { color: var(--red); }

@media (min-width: 1101px) {
  .nav-item:hover::before,
  .nav-item:focus-within::before,
  .nav-item:hover > .nav-mark,
  .nav-item:focus-within > .nav-mark { opacity: 1; }
  .nav-item:hover > .nav-link,
  .nav-item:focus-within > .nav-link { color: var(--gray); }
  .nav-item:hover > .nav-drop,
  .nav-item:focus-within > .nav-drop {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--hover), transform var(--hover), visibility 0s;
  }
}

.site-header__actions {
  margin: 15px 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: margin .3s ease;
}
.icon-btn img { transition: filter var(--hover); }

/* scrolled state: white bar, logo in base colours, grey text (phone button unchanged) */
body:not(.nav-open) .site-header.is-scrolled {
  padding: 12px 0;
  background: #fff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
}
body:not(.nav-open) .is-scrolled .site-header__inner { align-items: center; }
body:not(.nav-open) .is-scrolled .site-header__logo img { width: 44px; height: 63px; }
body:not(.nav-open) .is-scrolled .logo-light { opacity: 0; }
body:not(.nav-open) .is-scrolled .logo-dark { opacity: 1; }
body:not(.nav-open) .is-scrolled .main-nav,
body:not(.nav-open) .is-scrolled .site-header__actions { margin-top: 0; }
body:not(.nav-open) .is-scrolled .nav-link { color: var(--gray); }
body:not(.nav-open) .is-scrolled .icon-btn img { filter: brightness(0) opacity(.66); }
body:not(.nav-open) .is-scrolled .nav-toggle span { background: var(--gray); }
body:not(.nav-open) .is-scrolled .main-nav { --tab-top: 36px; }   /* label sits 36px from the top of the white bar */
.btn--phone {
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 3.48px;
  text-transform: none;
}
.icon-btn {
  background: none; border: 0; padding: 0;
  width: 25px; height: 26px;
}
.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  background: none; border: 0; padding: 4px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff;
  transition: transform .25s, opacity .25s;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 950px;
  padding-top: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #10141c;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero__shade {
  position: absolute;
  left: 0; right: 0; top: 238px; bottom: 0;
  background: linear-gradient(to top, #000 .26%, rgba(44,44,45,.79) 51.6%, rgba(207,209,215,0) 91%);
  mix-blend-mode: multiply;
}
.hero__inner { padding-bottom: 96px; }   /* empty space under the four features (was 48px in the design) */

.hero__content { display: flex; align-items: flex-start; }
.hero__left { width: 546px; flex-shrink: 0; }
.hero__eyebrow {
  margin-left: 4px;
  font-size: 12px;
  line-height: 42px;
  letter-spacing: 7.8px;
  text-transform: uppercase;
  text-shadow: 2px 2px 10px #000;
}
.hero__eyebrow i {
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 -2px 0 -6px;
  background: #fff;
  vertical-align: 2px;
}
.hero__title {
  margin-left: -5px;
  font-weight: 700;
  font-size: 100px;
  line-height: 100px;
}
.hero__right {
  margin-top: 11px;
  padding-left: 27px;
  border-left: 2px solid var(--red);
  max-width: 559px;
}
.hero__lead {
  max-width: 530px;
  font-size: 20px;
  line-height: 38px;
  letter-spacing: 1.8px;
  text-shadow: 2px 2px 10px #000;
}
.hero__right .btn { margin-top: 54px; margin-left: 2px; }

.hero__stats {
  margin-top: 85px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 2px;
}
.hero__stats li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.hero__stats li img, .hero__stats li svg { flex-shrink: 0; }
.hero__stats-sep {
  width: 1px;
  height: 38px;
  background: #fff;
}

/* ---------- about ---------- */
.about {
  position: relative;
  min-height: 832px;
  display: flex;
  align-items: stretch;
}
.about__inner { padding-top: 79px; padding-bottom: 80px; }
.about__content { max-width: 650px; }
.about__title {
  margin-top: 24px;
  font-weight: 700;
  font-size: 50px;
  line-height: 55px;
}
.about__title > span { display: block; }
.about__subtitle { font-size: 45px; color: var(--gray); }
.about__text { margin-top: 30px; max-width: 640px; }
.about__text p {
  font-weight: 300;
  font-size: 20px;
  line-height: 30px;
}
.about__text p + p { margin-top: 30px; }
.about__content .btn { margin-top: 22px; }
/* sits on the right edge; matches the design at 1440 (608px = half the screen - 112px)
   and grows on wider screens, but stops at 760px */
.about__media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(calc(50% - 112px), 760px);
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- featured project ---------- */
.feature {
  position: relative;
  min-height: 650px;
  color: #fff;
  overflow: hidden;
  background: #222;
}
.feature__bg, .legacy__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.feature__bg { object-position: center bottom; }
.feature__inner { padding-top: 116px; padding-bottom: 84px; }
.feature__text { margin-top: 30px; max-width: 635px; }
.feature__text p,
.legacy__text {
  font-weight: 300;
  font-size: 20px;
  line-height: 30px;
  text-shadow: 0 0 4px #000;
}
.feature__text p + p { margin-top: 30px; }
.feature .btn, .legacy .btn { margin-top: 30px; }

/* ---------- our work ---------- */
.work { padding-top: 120px; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 31px;
  row-gap: 25px;
}
.work__intro {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
}
.work__intro .section-title { margin-top: 24px; }
.work-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  overflow: hidden;
  background: #ddd;
}
.work-card--tall { aspect-ratio: auto; flex: 1; margin-top: 24px; min-height: 300px; }
.work-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.work-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 66%;
  background: linear-gradient(to bottom, rgba(189,189,187,0) 27.3%, #000 90%);
}
.work-card--tall::after { height: 61%; }
/* hover: the photo darkens slightly; label + red dots stay crisp (no zoom, no movement) */
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, .32);
  opacity: 0;
  transition: opacity var(--hover);
}
.work-card:hover::before, .work-card:focus-visible::before { opacity: 1; }
.work-card__label {
  position: absolute;
  left: 17px; right: 12px; bottom: 9px;
  z-index: 2;
  font-weight: 700;
  font-size: 20px;
  line-height: 22px;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.work-card--tall .work-card__label { bottom: 15px; }
.work-card__label em { font-style: normal; font-weight: 400; color: var(--red); }

/* ---------- services ---------- */
.services {
  position: relative;
  padding-top: 120px;
  overflow: hidden;
}
.services__media {
  position: absolute;
  top: 125px;
  left: calc(50% + 98px);
  width: 621px;
  height: 456px;
  overflow: hidden;
}
.services__media img {
  position: absolute;
  max-width: none;
  width: 126.7%;
  height: 128.32%;
  left: -2.05%;
  top: -7.69%;
}
.services__fade {
  position: absolute;
  top: 0; left: 0;
  width: 382px; height: 100%;
  background: linear-gradient(to right, #fff 27.8%, rgba(255,255,255,0) 79.5%);
}
.services__inner { z-index: 1; }
.services__list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 360px);   /* wide enough for "Post-Construction Services" */
  column-gap: 40px;
  row-gap: 3px;
}
.services__list li {
  display: flex;
  align-items: center;
  height: 87px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--gray-line);
}
.services__list .num {
  flex: none;                /* never shrink, so number → line → text spacing is identical in every row */
  width: 55px;
  font-weight: 700;
  font-size: 35px;
  line-height: 1;
  color: var(--red);
}
.services__list .name {
  padding-left: 15px;
  border-left: 2px solid var(--gray-line);
  font-weight: 500;
  font-size: 23px;
  line-height: 30px;
  white-space: nowrap;
}
.services .btn { margin-top: 28px; }

/* ---------- legacy ---------- */
.legacy {
  position: relative;
  min-height: 626px;
  margin-top: 120px;
  color: #fff;
  overflow: hidden;
  background: #333;
}
.legacy__bg { object-position: center 82%; }
.legacy__inner { padding-top: 106px; padding-bottom: 106px; }
.legacy__subtitle {
  margin-top: 16px;
  color: #ccc;
  text-shadow: 0 0 4px #000;
}
.legacy__text { margin-top: 18px; max-width: 560px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 44px 0 41px;
}
/* full-width footer; side padding scales with the screen (20px on phones, up to 96px) */
.footer-container {
  width: 100%;
  padding: 0 clamp(20px, 5vw, 96px);
}
.footer-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 0 37px 3px;
  border-bottom: 1px solid var(--light);
}
.footer-top__logo { flex-shrink: 0; }
.footer-top__logo img { width: 65px; height: 93px; }
.vline { width: 2px; height: 50px; background: var(--red); flex-shrink: 0; }
.footer-top__block p,
.footer-top__cta-text {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 27px;
  letter-spacing: 1.32px;
  white-space: nowrap;
}
.footer-top__block a { text-decoration: underline; }
.footer-top__block a, .footer-col a, .footer-bottom a { transition: color var(--hover); }
.footer-top__block a:hover, .footer-col a:hover, .footer-bottom a:hover { color: #ff8a8a; }
.phones a + a { margin-left: 22px; }
.footer-top__btn { margin-left: auto; flex-shrink: 0; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;   /* link columns share the full width */
  column-gap: 24px;
  padding: 28px 0 30px 3px;
  border-bottom: 1px solid var(--light);
}
.footer-col h3 {
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 14px;       /* more air between the column title and its list */
}
.footer-col a {
  display: block;
  font-weight: 300;
  font-size: 12px;
  line-height: 26px;         /* was 20px – looser list spacing */
}
.footer-social {
  align-self: stretch;       /* red line follows the height of the link columns */
  margin: 4px 0;
  padding-left: 34px;
  border-left: 2px solid var(--red);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.footer-social__icons { display: flex; align-items: center; gap: 4px; }
.footer-social__icons a { opacity: .95; transition: opacity var(--hover); }
.footer-social__icons a:hover { opacity: .6; }
.footer-social p {
  margin: -4px 0 0 6px;
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
}
.footer-bottom {
  padding: 20px 0 0 1px;
  font-weight: 500;
  font-size: 12px;
  line-height: 24px;         /* was 15px – matches the looser link lists */
}
.footer-bottom > a { display: block; }

/* ---------- scroll reveal (main.js adds .is-visible once) ---------- */
.js [data-reveal] {
  --reveal-delay: .3s;                /* short pause so the entrance is noticeable while scrolling */
  opacity: 0;
  transform: translateX(-24px);       /* slight left-to-right arrival */
  transition: opacity .6s ease var(--reveal-delay), transform .6s ease var(--reveal-delay);
}
.js [data-reveal="fade"] { transform: none; }   /* fade only, no movement */
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* stagger: the block itself stays put; its children fade in one after another (no movement).
   Used for the four features under the hero: item, divider, item, divider… every .15s */
.js [data-reveal="stagger"] { opacity: 1; transform: none; transition: none; }
.js [data-reveal="stagger"] > * {
  opacity: 0;
  transition: opacity .6s ease calc(var(--reveal-delay) + var(--i, 0) * .15s);
}
.js [data-reveal="stagger"].is-visible > * { opacity: 1; }
[data-reveal="stagger"] > :nth-child(2) { --i: 1; }
[data-reveal="stagger"] > :nth-child(3) { --i: 2; }
[data-reveal="stagger"] > :nth-child(4) { --i: 3; }
[data-reveal="stagger"] > :nth-child(5) { --i: 4; }
[data-reveal="stagger"] > :nth-child(6) { --i: 5; }
[data-reveal="stagger"] > :nth-child(7) { --i: 6; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal="stagger"] > * { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .main-nav { margin-left: 36px; }
  .main-nav__list { gap: 20px; }
  .hero__title { font-size: 84px; line-height: 88px; }
  .hero__left { width: 470px; }
  .about__content { max-width: 54%; }
  .footer-links { column-gap: 16px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .site-header__inner { align-items: center; }
  .site-header__actions { margin-top: 0; }

  /* full-screen menu, opened by tap */
  .main-nav {
    position: fixed;
    inset: 0;
    margin: 0;
    padding: 130px 32px 40px;
    overflow-y: auto;
    background: rgba(10, 14, 22, .97);
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: -1;
  }
  .nav-open .main-nav { transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav__list { flex-direction: column; gap: 0; }
  .nav-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .nav-link { flex: 1; padding: 16px 0; font-size: 15px; }

  /* the arrow opens the subcategories; the label itself still links to the main page */
  .sub-toggle {
    display: block;
    width: 48px; height: 48px;
    margin-right: -12px;
    background: none; border: 0;
    position: relative;
  }
  .sub-toggle::before {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform var(--hover);
  }
  .nav-item.is-open .sub-toggle::before { transform: translate(-50%, -30%) rotate(-135deg); }

  .nav-drop {
    position: static;
    width: 100%;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
  }
  .nav-item.is-open > .nav-drop { display: block; }
  .nav-item::before, .nav-mark { display: none; }
  .nav-drop__card { min-width: 0; padding: 0 0 12px 14px; background: none; border: 0; box-shadow: none; }
  .nav-drop ul a { padding: 9px 0; font-size: 14px; color: rgba(255, 255, 255, .78); border-bottom: 0; white-space: normal; }
  .nav-drop ul a:hover { color: #fff; }

  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  body:not(.nav-open) .site-header.is-scrolled { padding: 10px 0; }
}

@media (max-width: 992px) {
  .hero { min-height: 820px; }
  .hero__content { flex-direction: column; gap: 32px; }
  .hero__left { width: auto; }
  .hero__right { margin-top: 0; }
  .hero__stats { flex-wrap: wrap; row-gap: 20px; margin-top: 60px; }
  .hero__stats li { width: 50%; }
  .hero__stats .hero__stats-sep { display: none; }

  .about { flex-direction: column; min-height: 0; }
  .about__content { max-width: 680px; }
  .about__media { position: static; width: 100%; height: 480px; }

  /* keep the desktop crop proportions (621×456) so the sketch is never squashed */
  .services__media { position: relative; top: auto; left: auto; width: 100%; max-width: 621px; height: auto; aspect-ratio: 621 / 456; margin: 40px 0 0 auto; }
  .services { display: flex; flex-direction: column-reverse; }

  .footer-top { flex-wrap: wrap; gap: 20px 30px; }
  .footer-top .vline { display: none; }
  .footer-top__block p, .footer-top__cta-text { white-space: normal; }
  .footer-top__btn { margin-left: 0; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .footer-social { height: auto; padding: 8px 0 8px 24px; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .site-header { padding-top: 20px; }
  .hero { padding-top: 130px; }
  .site-header__logo img { width: 52px; height: 74px; }
  .btn--phone { width: auto; padding: 0 14px; letter-spacing: 1.5px; }
  .hero { min-height: 760px; }
  .hero__title { font-size: 60px; line-height: 64px; }
  .hero__eyebrow { letter-spacing: 5px; }
  .hero__eyebrow i { margin: 0 8px 0 0; }
  .hero__lead { font-size: 17px; line-height: 30px; letter-spacing: 1px; }
  .hero__right .btn { margin-top: 28px; }

  /* headline + text sit high up on phones, so the dark wash covers the whole hero */
  .hero__shade {
    top: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(20,20,22,.7) 40%, rgba(20,20,22,.5) 70%, rgba(20,20,22,.3) 100%);
  }

  /* four features: 2 columns × 2 rows, icon above the label.
     The fixed 24px icon row keeps every label on the same line even though the icons differ in height. */
  .hero__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    margin-top: 48px;
  }
  .hero__stats li {
    width: auto;
    display: grid;
    grid-template-rows: 24px auto;
    row-gap: 10px;
    justify-items: start;
  }
  .hero__stats li img { align-self: end; }

  .section-title, .about__title { font-size: 38px; line-height: 44px; }
  .section-subtitle, .about__subtitle { font-size: 30px; line-height: 36px; }
  .about__text p, .feature__text p, .legacy__text { font-size: 17px; line-height: 28px; }
  .about__media { height: 360px; }
  .feature__inner, .legacy__inner { padding-top: 80px; padding-bottom: 80px; }
  /* text runs almost edge to edge here, so the dark wash has to reach much further right */
  .shade-left {
    background: linear-gradient(to left, rgba(0,0,0,.5) 0%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.85) 75%);
  }
  .work, .services { padding-top: 80px; }
  .legacy { margin-top: 32px; }
  /* sketch: full screen width, less white around it, lighter left fade */
  .services__media { max-width: none; margin-top: 8px; aspect-ratio: 16 / 10; }   /* trims the empty white ground at the bottom */
  .services__media img { width: 120%; height: auto; left: -8%; top: -6%; }
  .services__fade { width: 22%; }

  .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 16px; }
  .work__intro { grid-column: 1 / -1; grid-row: auto; }
  .work-card--tall { aspect-ratio: 16 / 10; flex: none; min-height: 0; }
  .work-card__label { font-size: 16px; line-height: 19px; left: 12px; }

  .services__list { grid-template-columns: 1fr; max-width: 420px; }
  .services__list li:nth-child(1) { order: 1; }
  .services__list li:nth-child(3) { order: 2; }
  .services__list li:nth-child(5) { order: 3; }
  .services__list li:nth-child(2) { order: 4; }
  .services__list li:nth-child(4) { order: 5; }
  .services__list li:nth-child(6) { order: 6; }
  .services__list .name { font-size: 19px; white-space: normal; }

  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .site-header__actions { gap: 12px; }
  .btn--phone { font-size: 11px; height: 42px; }
  .hero__title { font-size: 48px; line-height: 52px; }
  .work__grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}
