/* ==========================================================================
   Rudkin Contracting concept
   Design language: Bold Contrast (type scale, spacing, composition, motion).
   Palette: Rudkin's real brand. Charcoal #1f2025 and orange #ff9019 sampled
   from their live nav, CTA buttons and logo mark. Earth #917d5b sampled from
   their own excavation photography.
   Display: Zilla Slab. Body: Asap.
   ========================================================================== */

section[id]{ scroll-margin-top:92px; }

:root{
  /* Their charcoal, sampled from rudkincontracting.com nav and footer */
  --ink:            #1f2025;
  --ink-2:          #17181c;
  --ink-3:          #2b2d33;   /* hairlines on dark */

  /* Their orange, sampled from their CTA buttons and their logo mark */
  --orange:         #ff9019;
  --orange-press:   #ffa544;
  --orange-deep:    #9d4a09;   /* same hue, deepened for small text on light */

  /* From their own site photography */
  --earth:          #917d5b;
  --bone:           #f4f1ea;
  --bone-2:         #e8e3d8;

  --text-dark:      #1f2025;
  --text-body:      #4d4a44;
  --text-light:     rgba(255,255,255,0.88);
  --text-light-mute:rgba(255,255,255,0.66);

  --font-display:   "Zilla Slab", Georgia, serif;
  --font-body:      "Asap", "Helvetica Neue", Arial, sans-serif;

  --wrap:           min(92%, 1180px);
  --wrap-wide:      min(94%, 1440px);
  --gutter:         clamp(1.25rem, 4vw, 3rem);
  --pad-y:          clamp(4rem, 7.5vw, 6.75rem);
  --nav-h:          78px;

  --ease:           cubic-bezier(0.34, 1.10, 0.64, 1);
  --ease-out:       cubic-bezier(0.22, 1, 0.36, 1);
}

*,*::before,*::after{ box-sizing:border-box; }

html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:var(--bone);
  color:var(--text-body);
  font-family:var(--font-body);
  font-size:1.0625rem;
  line-height:1.72;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ display:block; max-width:100%; }
a{ color:inherit; }

h1,h2,h3{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:-0.02em;
  line-height:1.02;
  color:var(--text-dark);
  margin:0;
}
h2{ font-size:clamp(2rem, 4.4vw, 3.35rem); }
h3{ font-size:clamp(1.4rem, 2.3vw, 1.95rem); line-height:1.1; }
p{ margin:0 0 1.05rem; max-width:68ch; }
p:last-child{ margin-bottom:0; }

.wrap{ width:var(--wrap); margin-inline:auto; }
.wrap--wide{ width:var(--wrap-wide); margin-inline:auto; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--orange); color:var(--ink);
  padding:.75rem 1.15rem; font-weight:600;
}
.skip:focus{ left:1rem; top:1rem; }

:where(a,button):focus-visible{
  outline:2px solid var(--orange);
  outline-offset:3px;
}

.rule{
  display:block; width:52px; height:3px;
  background:var(--orange);
  margin-bottom:1.5rem;
}

.lede{
  font-size:clamp(1.05rem,1.5vw,1.2rem);
  color:var(--text-body);
  max-width:60ch;
}

/* ---------------------------------------------------------------- buttons */
.btn{
  display:inline-flex; align-items:center; gap:.6rem;
  font-family:var(--font-body); font-weight:600;
  font-size:.9rem; letter-spacing:.06em; text-transform:uppercase;
  text-decoration:none;
  padding:.85rem 1.5rem;
  min-height:44px;
  border:2px solid transparent;
  transition:background-color .28s var(--ease-out), color .28s var(--ease-out), border-color .28s var(--ease-out), transform .28s var(--ease);
}
.btn--lg{ padding:1.05rem 1.9rem; font-size:.95rem; }

.btn--solid{ background:var(--orange); color:var(--ink); border-color:var(--orange); }
.btn--solid:hover{ background:var(--orange-press); border-color:var(--orange-press); transform:translateY(-2px); }

.btn--ghost{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.4); }
.btn--ghost:hover{ background:#fff; color:var(--ink); border-color:#fff; transform:translateY(-2px); }

.btn--ink{ background:var(--ink); color:#fff; border-color:var(--ink); }
.btn--ink:hover{ background:var(--ink-2); border-color:var(--ink-2); transform:translateY(-2px); }

.btn--outline-ink{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn--outline-ink:hover{ background:var(--ink); color:#fff; transform:translateY(-2px); }

/* ------------------------------------------------------------------- nav */
.nav{
  /* z-index sits ABOVE .menu (140) so the burger X is always tappable while the
     overlay is open. .nav is a stacking context, so the burger's own z-index
     cannot lift it out of a nav that ranks below the overlay. GEMINI rule 20. */
  position:fixed; inset:0 0 auto 0; z-index:150;
  /* Solid from the start: the hero photo's sky is light enough that white nav
     links over it fail 4.5:1 (measured on the live deploy at 1280). */
  background:var(--ink);
  transition:border-color .35s var(--ease-out);
  border-bottom:1px solid transparent;
}
.nav.is-solid{ border-bottom-color:var(--ink-3); }
.nav__inner{
  width:var(--wrap-wide); margin-inline:auto;
  min-height:var(--nav-h);
  display:flex; align-items:center; gap:clamp(1rem,3vw,2.5rem);
}
.nav__logo{ display:block; flex:0 0 auto; }
.nav__logo img{ width:auto; height:40px; max-width:180px; object-fit:contain; }
.nav__links{ display:flex; gap:clamp(1rem,2vw,1.9rem); margin-left:auto; }
.nav__links a{
  color:var(--text-light); text-decoration:none;
  font-size:.94rem; font-weight:500; letter-spacing:.01em;
  padding-block:.4rem;
  border-bottom:2px solid transparent;
  transition:color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.nav__links a:hover{ color:#fff; border-bottom-color:var(--orange); }
.nav__cta{ flex:0 0 auto; padding:.7rem 1.25rem; }

.burger{
  display:none; margin-left:auto;
  width:48px; height:48px; padding:0;
  background:none; border:0; cursor:pointer;
  position:relative; z-index:160;
}
.burger span{
  display:block; width:26px; height:2px; background:#fff;
  margin:5px auto; transition:transform .3s var(--ease-out), opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2){ transform:translateY(-3.5px) rotate(-45deg); }

/* ------------------------------------------------------------ mobile menu */
.menu{
  position:fixed; inset:0; z-index:140;
  background:var(--ink-2);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity .3s var(--ease-out);
}
.menu[hidden]{ display:none; }
.menu.is-open{ opacity:1; }
.menu__panel{
  width:var(--wrap); display:flex; flex-direction:column; gap:.35rem;
  padding-top:var(--nav-h);
}
.menu__panel > a{
  color:#fff; text-decoration:none;
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(1.6rem,7vw,2.4rem); line-height:1.25;
  padding-block:.35rem;
}
.menu__panel > a:hover{ color:var(--orange); }
.menu__rule{ height:1px; background:var(--ink-3); margin:1.25rem 0; }
.menu__meta{
  font-family:var(--font-body) !important;
  font-size:1rem !important; font-weight:500 !important;
  color:var(--text-light-mute) !important;
  padding-block:.65rem !important;
}
.menu__cta{ align-self:flex-start; margin-top:1.4rem; }

/* ------------------------------------------------------------------ hero */
.hero{
  background:var(--ink);
  padding-top:var(--nav-h);
  min-height:100vh; min-height:100svh;
  display:flex; align-items:stretch;
  overflow:hidden;
}
.hero__grid{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1.04fr) minmax(0,0.96fr);
  align-items:stretch;
}
.hero__text{
  display:flex; flex-direction:column; justify-content:center;
  padding:clamp(2.5rem,5vw,4rem) clamp(2rem,4.5vw,4rem) clamp(2.5rem,5vw,4rem) calc((100vw - min(94vw, 1440px))/2);
}
.hero__kicker{
  font-size:.85rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--orange); margin:0 0 1.4rem;
}
.hero__title{
  color:#fff;
  font-size:clamp(2.6rem, 5.6vw, 5.4rem);
  line-height:0.98;
  margin:0 0 1.5rem;
  max-width:13ch;
}
.hero__title em{ font-style:italic; color:var(--orange); }
.hero__sub{
  color:var(--text-light-mute);
  font-size:clamp(1.02rem,1.35vw,1.2rem);
  max-width:48ch;
  margin:0 0 2.1rem;
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:.85rem; }
.hero__facts{
  list-style:none; margin:2.6rem 0 0; padding:2rem 0 0;
  border-top:1px solid var(--ink-3);
  display:flex; flex-wrap:wrap; gap:.5rem 2.2rem;
  font-size:.88rem; letter-spacing:.04em; text-transform:uppercase;
  color:var(--text-light-mute); font-weight:500;
}
.hero__media{ position:relative; overflow:hidden; min-height:52vh; }
.hero__media img{ width:100%; height:100%; object-fit:cover; object-position:50% 45%; }
.hero__media::before{
  content:""; position:absolute; inset:0; z-index:1;
  background:linear-gradient(90deg, var(--ink) 0%, rgba(31,32,37,0.55) 22%, rgba(31,32,37,0) 48%);
  pointer-events:none;
}

/* ---------------------------------------------------------------- ground */
.ground{ background:var(--ink-2); color:var(--text-light); padding-top:var(--pad-y); }
.ground h2{ color:#fff; max-width:14ch; }
.ground .lede{ color:var(--text-light-mute); }
.ground__head{ margin-bottom:clamp(2.5rem,5vw,3.75rem); }
.ground__lot{ width:var(--wrap-wide); margin-inline:auto; overflow:hidden; }
.ground__lot img{ width:100%; height:clamp(220px,34vw,460px); object-fit:cover; object-position:50% 42%; }

.ground__line{
  position:relative;
  height:4px; background:var(--orange);
  width:100%;
  margin-top:0;
}
.ground__label{
  position:absolute; right:max(3vw, calc((100vw - min(94vw,1440px))/2)); top:12px;
  font-size:.74rem; font-weight:600; letter-spacing:.2em; text-transform:uppercase;
  color:var(--orange);
}

.ground__below{
  width:var(--wrap-wide); margin-inline:auto;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(2rem,4vw,3.5rem);
  padding:clamp(3.25rem,6vw,5rem) 0 var(--pad-y);
  align-items:start;
}
.ground__dig{ overflow:hidden; }
.ground__dig img{
  width:100%; height:clamp(260px,32vw,440px); object-fit:cover;
  clip-path:inset(0 0 var(--dig, 0%) 0);
}
.ground__copy p{ color:var(--text-light-mute); }
.ground__quote{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(1.7rem,3vw,2.5rem); line-height:1.05;
  color:var(--orange) !important;
  letter-spacing:-0.02em;
  margin:0 0 1.35rem;
}
.ground__note{
  margin-top:1.6rem; padding-top:1.4rem;
  border-top:1px solid var(--ink-3);
  color:var(--text-light) !important;
  font-weight:500;
}

/* ----------------------------------------------------------------- build */
.build{ background:var(--bone); padding-block:var(--pad-y); }
.build__head{ margin-bottom:clamp(2.75rem,5vw,4.25rem); }

.row{
  width:var(--wrap-wide); margin-inline:auto;
  display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,0.92fr);
  gap:clamp(1.75rem,4vw,4rem);
  align-items:center;
  padding-block:clamp(2rem,3.5vw,3.25rem);
}
.row--flip .row__media{ order:2; }
.row--flip .row__text{ order:1; }
.row__media{ overflow:hidden; }
.row__media img{ width:100%; height:clamp(240px,32vw,470px); object-fit:cover; }
.row__text h3{ margin-bottom:1.1rem; }
.row__text p{ max-width:52ch; }
.row__meta{
  margin-top:1.35rem; padding-top:1.15rem;
  border-top:1px solid var(--bone-2);
  font-size:.95rem; color:var(--orange-deep); font-weight:500;
}

.pair{
  width:var(--wrap-wide); margin-inline:auto;
  display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));
  gap:clamp(1.75rem,3.5vw,3rem);
  margin-top:clamp(2rem,4vw,3.25rem);
  padding-top:clamp(2rem,4vw,3.25rem);
  border-top:1px solid var(--bone-2);
}
.pair__media{ overflow:hidden; margin-bottom:1.5rem; }
.pair__media img{ width:100%; height:clamp(200px,22vw,300px); object-fit:cover; }
.pair__item h3{ margin-bottom:.9rem; }

/* ------------------------------------------------------------------ work */
.work{ background:var(--ink); color:var(--text-light); padding-block:var(--pad-y); }
.work h2{ color:#fff; }
.work .lede{ color:var(--text-light-mute); }
.work__head{ margin-bottom:clamp(2.5rem,5vw,3.75rem); }

.mosaic{
  width:var(--wrap-wide); margin-inline:auto;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:clamp(.75rem,1.4vw,1.25rem);
}
.mosaic__item{ margin:0; grid-column:span 2; display:flex; flex-direction:column; }
.mosaic__item--wide{ grid-column:span 4; }
.mosaic__item img{ width:100%; height:clamp(210px,22vw,320px); object-fit:cover; }
.mosaic__item--wide img{ height:clamp(280px,31vw,450px); }
.mosaic__item--tall img{ height:clamp(280px,31vw,450px); object-position:50% 55%; }
.mosaic__item figcaption{
  padding:.85rem 0 0;
  font-size:.82rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-light-mute); font-weight:500;
}

/* --------------------------------------------------------------- reviews */
.reviews{ background:var(--bone-2); padding-block:var(--pad-y); }
.reviews h2{ margin-bottom:clamp(2rem,4vw,3rem); }

.quote{ margin:0; }
.quote p{
  font-family:var(--font-display);
  font-weight:400; color:var(--text-dark);
  margin-bottom:1.1rem;
}
.quote cite{
  display:block; font-style:normal; font-weight:600;
  font-size:.92rem; letter-spacing:.05em; text-transform:uppercase;
  color:var(--orange-deep);
}
.quote cite span{
  display:block; margin-top:.25rem;
  font-weight:400; letter-spacing:.03em; text-transform:none;
  color:var(--text-body);
}
.quote--lead{
  padding-bottom:clamp(2.25rem,4vw,3.25rem);
  margin-bottom:clamp(2.25rem,4vw,3.25rem);
  border-bottom:1px solid #d3cdbf;
  display:grid; grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);
  gap:clamp(1.5rem,3vw,3rem); align-items:end;
}
.quote--lede-spacer{ display:none; }
.quote--lead p{
  font-size:clamp(1.45rem,2.9vw,2.35rem);
  line-height:1.22; letter-spacing:-0.015em;
  max-width:30ch; margin-bottom:0;
}
.quote--lead cite{ padding-bottom:.4rem; }
.quotes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));
  gap:clamp(1.75rem,3.5vw,3rem);
}
.quotes .quote p{ font-size:1.02rem; line-height:1.6; max-width:40ch; }

/* --------------------------------------------------------------- rudkins */
.rudkins{ background:var(--ink-2); color:var(--text-light); }
.rudkins__grid{
  display:grid; grid-template-columns:minmax(0,0.82fr) minmax(0,1.18fr);
  align-items:center;
}
.rudkins__media{ overflow:hidden; align-self:stretch; }
.rudkins__media img{ width:100%; height:100%; min-height:clamp(340px,44vw,660px); object-fit:cover; object-position:50% 30%; }
.rudkins__text{
  padding:var(--pad-y) calc((100vw - min(94vw, 1440px))/2) var(--pad-y) clamp(2rem,4.5vw,4.5rem);
}
.rudkins h2{ color:#fff; }
.rudkins p{ color:var(--text-light-mute); max-width:56ch; }
.rudkins__role{
  font-size:.85rem; font-weight:600; letter-spacing:.18em; text-transform:uppercase;
  color:var(--orange) !important; margin:1rem 0 1.75rem;
}
.rudkins__area{
  margin-top:1.75rem; padding-top:1.4rem;
  border-top:1px solid var(--ink-3);
  color:var(--text-light) !important; font-weight:500;
}

/* ------------------------------------------------------------------- cta */
.cta{ background:var(--orange); color:var(--ink); padding-block:clamp(3.5rem,6.5vw,5.5rem); }
.cta__inner{ text-align:center; }
.cta h2{ color:var(--ink); margin-bottom:1rem; }
.cta p{ color:var(--ink); max-width:52ch; margin-inline:auto; font-weight:500; }
.cta__row{ display:flex; flex-wrap:wrap; gap:.85rem; justify-content:center; margin-top:2rem; }
.cta__addr{ margin-top:1.9rem; font-size:.92rem; letter-spacing:.05em; }

/* ---------------------------------------------------------------- footer */
.footer{ background:var(--ink); color:var(--text-light-mute); padding-top:clamp(3rem,5.5vw,4.5rem); }
.footer__grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr;
  gap:clamp(2rem,4vw,3.5rem);
  padding-bottom:clamp(2.5rem,4.5vw,3.5rem);
}
.footer__brand img{ width:auto; height:44px; max-width:190px; object-fit:contain; margin-bottom:1.15rem; }
.footer__brand p{ font-size:.95rem; max-width:34ch; }
.footer__nav{ display:flex; flex-direction:column; gap:.15rem; }
.footer__nav a, .footer__contact a{
  color:var(--text-light-mute); text-decoration:none;
  padding-block:0.65rem; font-size:.95rem;
  transition:color .25s var(--ease-out);
}
.footer__nav a:hover, .footer__contact a:hover{ color:var(--orange); }
.footer__contact{ display:flex; flex-direction:column; }
.footer__contact p{ font-size:.95rem; margin-top:.7rem; }
.footer__base{
  border-top:1px solid var(--ink-3);
  padding-block:1.5rem;
  font-size:.85rem;
}
.footer__base p{ margin:0; }

/* ------------------------------------------------------------------- 404 */
.error{
  background:var(--ink); color:var(--text-light);
  min-height:100vh; min-height:100svh;
  display:flex; align-items:center;
  padding:calc(var(--nav-h) + 3rem) 0 4rem;
}
.error__code{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(5rem,15vw,11rem); line-height:1;
  color:var(--orange); letter-spacing:-0.03em; margin-bottom:1rem;
}
.error h1{ color:#fff; font-size:clamp(2rem,4.5vw,3.2rem); margin-bottom:1.25rem; }
.error p{ color:var(--text-light-mute); max-width:48ch; margin-bottom:2rem; }

/* ---------------------------------------------------------------- motion */
html.js [data-anim]{ opacity:0; }
html.js [data-anim="wipe"]{ opacity:1; clip-path:inset(0 0 100% 0); }
html.js .ground__dig img{ --dig:100%; }

@media (prefers-reduced-motion: reduce){
  html.js [data-anim]{ opacity:1 !important; clip-path:none !important; transform:none !important; }
  html.js .ground__dig img{ --dig:0% !important; clip-path:none !important; }
  *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; }
}

/* ----------------------------------------------------------- responsive */
@media (max-width:1080px){
  .hero__grid{ grid-template-columns:minmax(0,1fr) minmax(0,0.85fr); }
  .rudkins__grid{ grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr); }
}

@media (max-width:900px){
  .quote--lead{ grid-template-columns:minmax(0,1fr); align-items:start; gap:1.25rem; }
  .quote--lead cite{ padding-bottom:0; }
  .nav__links{ display:none; }
  .nav__cta{ display:none; }
  .burger{ display:block; }
  .nav{ border-bottom-color:var(--ink-3); }

  .hero{ min-height:0; height:auto; padding-top:var(--nav-h); }
  .hero__grid{ grid-template-columns:minmax(0,1fr); }
  .hero__text{
    order:2;
    padding:clamp(2.25rem,7vw,3.25rem) var(--gutter) clamp(2.75rem,7vw,3.5rem);
  }
  .hero__media{ order:1; min-height:min(58svh, 420px); }
  .hero__media::before{
    background:linear-gradient(180deg, rgba(31,32,37,0.72) 0%, rgba(31,32,37,0.15) 45%, rgba(31,32,37,0) 70%);
  }
  .hero__title{ max-width:none; }

  .ground__below{ grid-template-columns:minmax(0,1fr); width:var(--wrap); }
  .ground__head{ width:var(--wrap); }
  .ground__lot{ width:100%; }
  .ground__label{ right:4vw; }

  .row{ grid-template-columns:minmax(0,1fr); width:var(--wrap); gap:1.5rem; }
  .row--flip .row__media{ order:0; }
  .row--flip .row__text{ order:0; }
  .build__head, .work__head{ width:var(--wrap); }
  .pair{ width:var(--wrap); }

  .mosaic{ grid-template-columns:repeat(2,minmax(0,1fr)); width:var(--wrap); }
  .mosaic__item, .mosaic__item--wide, .mosaic__item--tall{ grid-column:span 2; grid-row:auto; }
  .mosaic__item img{ height:clamp(200px,42vw,340px); }
  .mosaic__item--tall img{ height:clamp(240px,50vw,380px); }
  .mosaic__item--wide img{ height:clamp(210px,46vw,360px); }

  .rudkins__grid{ grid-template-columns:minmax(0,1fr); }
  .rudkins__media img{ min-height:0; height:clamp(300px,70vw,460px); }
  .rudkins__text{ padding:clamp(2.5rem,7vw,3.5rem) var(--gutter); }

  .footer__grid{ grid-template-columns:1fr 1fr; }
  .footer__brand{ grid-column:1 / -1; }
}

@media (max-width:560px){
  .hero__facts{ gap:.35rem 1.4rem; font-size:.8rem; }
  .hero__cta .btn{ width:100%; justify-content:center; }
  .mosaic{ grid-template-columns:minmax(0,1fr); }
  .mosaic__item, .mosaic__item--wide, .mosaic__item--tall{ grid-column:span 1; }
  .quote--lead p{ max-width:none; }
  .footer__grid{ grid-template-columns:1fr; }
  .cta__row .btn{ width:100%; justify-content:center; }
}
