/* ==========================================================================
   Amptek Electrical — site styles
   Palette and type live in the tokens below. Change them here, not further down.
   ========================================================================== */

:root{
  /* colour */
  --pitch:#0E1116;      /* darkest ground: header, hero, footer */
  --slate:#171C24;      /* raised dark panel */
  --rail:#2A313C;       /* hairlines on dark */
  --amp:#DC1B2E;        /* brand red, taken from the logo — buttons, rules, large text */
  --amp-deep:#A2101F;   /* pressed / hover red */
  /* --amp fails WCAG AA at small sizes, so small red text uses these instead:
     --amp-ink on light grounds (5.2:1), --amp-lift on dark grounds (5.2:1) */
  --amp-ink:#C8102E;
  --amp-lift:#E8505C;
  --paper:#EDF0F4;      /* light page ground */
  --card:#FFFFFF;
  --ink:#12161C;        /* text on light */
  --dim:#5C6572;        /* secondary text on light */
  --dim-d:#98A2B0;      /* secondary text on dark */
  --line:#D7DDE5;       /* hairlines on light */

  /* type — ONE display face (Archivo) for every headline; Source Sans 3 for
     reading; Source Code Pro for the small uppercase labels. Source Sans and
     Source Code are a designed pair, so the labels share the body skeleton.
     Roboto and Lato were the reference points, not the destination: Source
     Sans 3 takes Lato's humanist warmth and Roboto's plain-spoken clarity
     without being either. Deliberately not the default UI grotesque that
     ships on every template. */
  --display:'Archivo','Helvetica Neue',Arial,sans-serif;
  --body:'Source Sans 3',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'Source Code Pro',ui-monospace,SFMono-Regular,Menlo,monospace;

  /* metrics */
  --wrap:1180px;
  --gut:clamp(16px,5vw,48px);
  --head-h:72px;
  --r:3px;               /* almost square: kit, not candy */

  /* spacing — strict 8pt system. Every margin, padding and gap in this file
     is one of these. --s-0 is the only sub-step and is for optical nudges
     inside a component (icon gaps, baseline shims), never for layout.
     Rule and border THICKNESS (1px / 2px / 3px) sits outside the scale:
     those are strokes, not space. */
  --s-0:4px;   --s-1:8px;   --s-2:16px;  --s-3:24px;  --s-4:32px;
  --s-5:40px;  --s-6:48px;  --s-7:64px;  --s-8:80px;  --s-9:96px;
  --s-10:128px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  /* 16px x 1.5 = a 24px line box: body copy sits on the same 8pt rhythm as
     the spacing scale. Display type keeps its own modular scale below —
     forcing headings onto 8pt leading would flatten the hierarchy. */
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit}

h1,h2,h3,h4{
  font-family:var(--display);
  font-variation-settings:"wdth" 88;
  font-weight:800;
  line-height:1.03;
  letter-spacing:-.012em;
  margin:0;
  text-wrap:balance;
}
p{margin:0}

:focus-visible{outline:2px solid var(--amp);outline-offset:var(--s-0);border-radius:2px}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}
.skip{position:absolute;left:-9999px;top:0;background:var(--amp);color:#fff;padding:var(--s-1) var(--s-2);z-index:200}
.skip:focus{left:8px;top:8px}

/* ---------- shared bits ------------------------------------------------- */

.eyebrow{
  font-family:var(--mono);
  font-size:12px;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--amp-ink);
  display:flex;
  align-items:center;
  gap:var(--s-1);
  margin:0 0 var(--s-2);
}
.eyebrow::before{content:"";width:var(--s-3);height:2px;background:var(--amp);flex:none}
/* on dark grounds the darker red drops below 4.5:1, so lift it */
.hero .eyebrow,.pagehead .eyebrow,.section--dark .eyebrow,.section--slate .eyebrow{color:var(--amp-lift)}

.h-sec{font-size:clamp(30px,4.4vw,46px)}
/* section heading that stands in for an eyebrow: red caps, with the same rule in front */
.h-sec--feature{
  font-size:clamp(27px,3.7vw,42px);color:var(--amp);
  text-transform:uppercase;letter-spacing:.006em;
}
.h-sec--feature::before{
  content:"";display:inline-block;width:var(--s-4);height:3px;background:var(--amp);
  vertical-align:middle;margin:0 var(--s-2) var(--s-0) 0;
}
.lede{color:var(--dim);font-size:clamp(16px,1.6vw,18px);max-width:56ch;margin-top:var(--s-2)}
.section--dark .lede,.section--slate .lede{color:var(--dim-d)}

.section{padding:clamp(56px,8vw,104px) 0}
.section--dark{background:var(--pitch);color:#fff}
.section--slate{background:var(--slate);color:#fff}
/* Section heads split across a 12-column grid rather than stacking: heading
   in the left seven, standfirst in the right four, a column of air between.
   Neither element lands on the page's centre line. .sec-head--split comes
   after this and re-declares display:flex, so headings with a button beside
   them keep the simpler two-end row. */
.sec-head{
  display:grid;grid-template-columns:repeat(12,1fr);
  column-gap:var(--s-3);margin-bottom:clamp(32px,4vw,48px);
}
.sec-head>.eyebrow,.sec-head>.h-sec{grid-column:1 / span 7}
.sec-head>.lede{grid-column:9 / -1;grid-row:1 / span 2;align-self:end;margin-top:0;max-width:none}
.sec-head--split{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:var(--s-3)}

/* buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--s-1);
  font-family:var(--body);font-weight:600;font-size:16px;
  padding:var(--s-2) var(--s-3);border-radius:var(--r);border:1.5px solid transparent;
  text-decoration:none;cursor:pointer;white-space:nowrap;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .12s ease;
}
.btn:active{transform:translateY(1px)}
.btn--amp{background:var(--amp);color:#fff;border-color:var(--amp)}
.btn--amp:hover{background:var(--amp-deep);border-color:var(--amp-deep)}
.btn--line{background:transparent;color:#fff;border-color:#4A5361}
.btn--line:hover{border-color:#fff;background:rgba(255,255,255,.06)}
.btn--ink{background:var(--ink);color:#fff;border-color:var(--ink)}
.btn--ink:hover{background:#05070A;border-color:#05070A}
.btn--onlight{background:transparent;color:var(--ink);border-color:#B9C2CE}
.btn--onlight:hover{border-color:var(--ink)}
.btn--white{background:#fff;color:var(--ink);border-color:#fff}
.btn--white:hover{background:#F1F3F6;border-color:#F1F3F6}
.btn .num{font-family:var(--mono);letter-spacing:-.01em}

/* ---------- header ------------------------------------------------------ */

.site-head{
  position:sticky;top:0;z-index:100;
  background:var(--card);
  border-bottom:1px solid var(--line);
  transition:box-shadow .2s ease;
}
.site-head.is-stuck{box-shadow:0 8px 24px rgba(18,22,28,.10)}
/* Three grid tracks, not flex: the side tracks are equal (1fr) so the nav
   is centred on the bar itself. With flex the nav would centre between the
   logo and the button, which are different widths, so it would sit off to
   one side. */
.head-in{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
  gap:clamp(16px,2.6vw,32px);height:var(--head-h);
}
.head-in>.brand{justify-self:start}
.head-in>.nav{justify-self:center}
.head-in>.head-cta{justify-self:end}

/* The supplied logo is a square PNG with white padding around the wordmark,
   so the box below crops to the artwork. Nudge left/top if you swap the file. */
.brand{
  display:block;flex:none;text-decoration:none;position:relative;
  width:181px;height:56px;overflow:hidden;
}
.brand img{position:absolute;left:-26.8px;top:-87.7px;width:232.5px;max-width:none;height:auto}

.nav{display:flex;align-items:center;gap:var(--s-4)}
.nav a{
  font-size:19px;font-weight:500;color:#48515E;text-decoration:none;
  padding:var(--s-1) 0;position:relative;transition:color .15s ease;
}
.nav a:hover{color:var(--ink)}
.nav a::after{
  content:"";position:absolute;left:0;right:100%;bottom:0;height:2px;
  background:var(--amp);transition:right .22s ease;
}
.nav a:hover::after,.nav a[aria-current="page"]::after{right:0}
.nav a[aria-current="page"]{color:var(--ink)}
.head-cta{display:flex;align-items:center;gap:var(--s-2);flex:none}
.burger{
  display:none;background:none;border:1px solid #C6CED8;border-radius:var(--r);
  width:48px;height:48px;padding:0;cursor:pointer;
}
.burger span{display:block;width:24px;height:2px;background:var(--ink);margin:var(--s-0) auto;transition:transform .2s ease,opacity .2s ease}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ---------- hero -------------------------------------------------------- */

.hero{background:var(--pitch);color:#fff;position:relative;overflow:hidden}
.hero-grid{
  display:grid;grid-template-columns:1fr 1.1fr;align-items:stretch;
  min-height:min(860px,calc(100vh - var(--head-h)));      /* fallback first */
  min-height:min(860px,calc(100svh - var(--head-h)));     /* wins where supported */
}
.hero-copy{
  display:flex;flex-direction:column;justify-content:center;
  padding:clamp(48px,7vw,96px) clamp(32px,4vw,56px) clamp(48px,7vw,96px) 0;position:relative;
}
.hero-rail{position:absolute;left:-24px;top:clamp(48px,7vw,96px);bottom:clamp(48px,7vw,96px);width:2px;background:var(--rail);overflow:hidden}
.hero-rail::after{
  content:"";position:absolute;left:0;width:2px;height:34%;
  background:linear-gradient(180deg,transparent,var(--amp) 45%,transparent);
  animation:current 4.8s cubic-bezier(.45,0,.2,1) infinite;
}
@keyframes current{0%{top:-40%}55%{top:100%}100%{top:100%}}

.hero h1{font-size:clamp(42px,6.6vw,78px)}
.hero h1 em{font-style:normal;color:var(--amp)}
.hero-sub{color:#C3CBD6;font-size:clamp(17px,1.9vw,19px);max-width:44ch;margin-top:var(--s-3)}
/* used by the 404 page CTA pair */
.hero-cta{display:flex;flex-wrap:wrap;gap:var(--s-2);margin-top:var(--s-5)}
.hero-cta .btn{padding:var(--s-2) var(--s-4);font-size:17px}
.hero-area{
  margin-top:var(--s-4);line-height:1.7;
  font-family:var(--mono);font-size:13px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--dim-d);
}
/* inline-block rule rather than a flex child, so the line wraps cleanly on phones */
.hero-area::before{
  content:"";display:inline-block;width:var(--s-3);height:2px;background:var(--amp);
  vertical-align:middle;margin:0 var(--s-1) var(--s-0) 0;
}
.hero-area strong{color:#fff;font-weight:500}

/* the photo runs to the right edge of the page rather than stopping at the grid.
   The negative margin is the gap between the content column and the window edge. */
.hero-shot{
  position:relative;min-height:336px;
  margin:0 calc(-1 * max(var(--gut), (100vw - var(--wrap))/2 + var(--gut))) 0 0;
}
.hero-shot img{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}
.hero-shot::before{
  content:"";position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;
  background:linear-gradient(90deg,var(--pitch) 0%,rgba(14,17,22,.55) 22%,rgba(14,17,22,0) 62%);
}
/* interior page banner */
.pagehead{background:var(--pitch);color:#fff;padding:clamp(48px,6vw,80px) 0 clamp(40px,5vw,64px)}
/* The banner is the one place every interior page risks becoming a single
   stacked column. On a 12-column grid the headline takes the left seven and
   the standfirst sits in the last four, baseline-aligned to it. */
.pagehead .wrap{display:grid;grid-template-columns:repeat(12,1fr);column-gap:var(--s-3)}
.pagehead .wrap>*{grid-column:1 / -1}
.pagehead .wrap>h1{grid-column:1 / span 7}
.pagehead .wrap>.lede{grid-column:9 / -1;align-self:end;margin-top:0;max-width:none}
.pagehead h1{font-size:clamp(34px,5.2vw,58px)}
.pagehead .lede{color:var(--dim-d)}
.crumb{font-family:var(--mono);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim-d);margin-bottom:var(--s-2)}
.crumb a{color:var(--dim-d);text-decoration:none}
.crumb a:hover{color:#fff}

/* ---------- the board: services drawn as a circuit schedule ------------- */

.board{list-style:none;margin:0;padding:0;border:1px solid var(--line);background:var(--card)}
/* Name on the left, what the job involves on the right — the split a written
   quote uses, so a visitor can scan the names alone and stop at the one they
   need. (The old layout led with 01–05 way numbers; these services are
   alternatives, not steps, so the numbering implied an order that isn't there.) */
.board-head{
  display:grid;grid-template-columns:minmax(200px,264px) 1fr;align-items:center;
  background:var(--pitch);color:var(--dim-d);
  font-family:var(--mono);font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;
  padding:var(--s-2) var(--s-3);gap:var(--s-4);
}

.way{
  display:grid;grid-template-columns:minmax(200px,264px) 1fr;align-items:baseline;gap:var(--s-1) var(--s-4);
  padding:var(--s-3);border-top:1px solid var(--line);position:relative;
  transition:background .18s ease;
}
.board .way:first-of-type{border-top:0}
.way::before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--amp);
  transform:scaleY(0);transform-origin:top;transition:transform .24s ease;
}
.way:hover,.way:focus-within{background:#F7F9FB}
.way:hover::before,.way:focus-within::before{transform:scaleY(1)}

.way-name{margin:0;font-size:21px;letter-spacing:-.008em;text-wrap:balance}
.way-desc{margin:0;color:var(--dim);font-size:16px;max-width:62ch}
.board-foot{
  font-family:var(--mono);font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;
  color:var(--dim);margin-top:var(--s-2);
}

/* ---------- why choose us ---------------------------------------------- */

/* Four promises, not four identical boxes. A 12-column grid with 7/5 then
   5/7 spans gives the block an alternating weight so it reads as a laid-out
   page rather than a spreadsheet. */
.why-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:1px;background:var(--rail);border:1px solid var(--rail)}
.why-item{background:var(--pitch);padding:clamp(24px,3.4vw,40px)}
.why-item:nth-child(1),.why-item:nth-child(4){grid-column:span 7}
.why-item:nth-child(2),.why-item:nth-child(3){grid-column:span 5}
.why-item h3{font-size:20px;margin-bottom:var(--s-1);display:flex;align-items:baseline;gap:var(--s-1)}
.why-item h3::before{content:"//";color:var(--amp-lift);font-family:var(--mono);font-size:13px;font-weight:500}
.why-item p{color:var(--dim-d);font-size:16px}

/* indented a column from the block above: these three are a footnote to the
   four promises, not a fifth promise, and the offset says so */
.figures{
  display:grid;grid-template-columns:repeat(12,1fr);gap:var(--s-4);
  margin-top:var(--s-5);list-style:none;padding:0;
}
.figure{grid-column:span 3}
.figure:first-child{grid-column:2 / span 3}
.figure b{display:block;font-family:var(--display);font-variation-settings:"wdth" 88;font-weight:800;font-size:30px;line-height:1.1}
.figure span{font-family:var(--mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim-d)}

/* two-column prose block (about page) */
.prose-grid{display:grid;grid-template-columns:.85fr 1.15fr;gap:clamp(32px,5vw,64px);align-items:start}
.prose p+p{margin-top:var(--s-2)}
.prose{color:var(--dim);font-size:16px}
.prose strong{color:var(--ink);font-weight:600}
.steps{list-style:none;margin:0;padding:0;counter-reset:step}
.steps li{padding:var(--s-3) 0;border-top:1px solid var(--line);display:grid;grid-template-columns:var(--s-7) 1fr;gap:var(--s-2)}
.steps li:first-child{border-top:0;padding-top:0}
.steps b{display:block;font-size:16px;font-weight:600;color:var(--ink)}
.steps span{font-family:var(--mono);font-size:12.5px;color:var(--amp-ink);letter-spacing:.08em;padding-top:var(--s-0)}
.steps p{color:var(--dim);font-size:16px;margin-top:var(--s-0)}

/* ---------- gallery ----------------------------------------------------- */

/* the gallery is grouped by type of work — each group gets a ruled heading */
.shots-group+.shots-group{margin-top:clamp(40px,5.5vw,72px)}
.group-head{
  display:flex;align-items:baseline;gap:var(--s-2);
  margin-bottom:var(--s-2);padding-bottom:var(--s-2);border-bottom:1px solid var(--line);
}
.group-head h2{font-size:clamp(19px,2.2vw,23px)}

/* Home page "Recent work": six curated tiles, cropped to a tidy landscape
   grid. The gallery page overrides all of this below. */
.shots{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s-2)}
.shot{margin:0;position:relative;overflow:hidden;background:var(--card);border:1px solid var(--line)}
.shot-img{aspect-ratio:4/3;overflow:hidden;background:#DFE4EA}
.shot-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s cubic-bezier(.2,.6,.2,1)}
.shot:hover .shot-img img{transform:scale(1.045)}
.shot figcaption{
  padding:var(--s-2);font-family:var(--mono);font-size:11.5px;letter-spacing:.07em;
  text-transform:uppercase;color:var(--dim);display:flex;justify-content:space-between;gap:var(--s-2);
}
.shot figcaption b{color:var(--ink);font-weight:500}
.ph{
  aspect-ratio:4/3;display:grid;place-items:center;text-align:center;padding:var(--s-2);
  background:repeating-linear-gradient(135deg,#E4E9EF 0 9px,#DDE3EA 9px 18px);
  color:#8C97A5;font-family:var(--mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;
}
/* add this class to a figure to make one tile a double-width feature */
.shot--wide{grid-column:span 2}
.shot--wide .shot-img{aspect-ratio:8/3}

/* ---------- gallery page tiles ------------------------------------------

   The gallery shows whole photographs — nothing cropped. Two things make
   that work:

   1. Flex instead of grid. A group of 4 or 5 photos doesn't divide by
      three, and grid strands the remainder against the left edge. Flex
      with justify-content:center leaves a short last row centred.
      --col is the tile width; the breakpoints below are the only thing
      that changes it.

   2. The frame matches the photograph. Almost every job photo is taken
      upright on a phone (3:4), so that is the default frame and those
      images fill it exactly — no crop, no empty bars. The handful of
      landscape shots carry .shot--land and get a 4:3 frame instead, and
      they are grouped into their own row so each row stays level.
   ------------------------------------------------------------------------ */

.shots-group .shots{
  display:flex;flex-wrap:wrap;justify-content:center;
  grid-template-columns:none;--col:calc((100% - var(--s-4)) / 3);
}
.shots-group .shot{flex:0 1 var(--col);max-width:var(--col);min-width:0}
.shots-group .shot-img{aspect-ratio:3/4;background:var(--pitch);transition:background .35s ease}
.shots-group .shot--land .shot-img{aspect-ratio:4/3}
.shots-group .shot-img img{object-fit:contain;object-position:center;transition:none}
/* a zoom on hover would crop, so the hover lifts the backdrop instead */
.shots-group .shot:hover .shot-img img{transform:none}
.shots-group .shot:hover .shot-img{background:#1E242D}

/* ---------- cta band ---------------------------------------------------- */

.band{background:var(--amp);color:#fff}
.band-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--s-3);padding:clamp(32px,4.6vw,56px) 0}
.band h2{font-size:clamp(26px,3.5vw,38px);max-width:20ch}
.band p{color:rgba(255,255,255,.87);margin-top:var(--s-1);max-width:46ch}
.band-cta{display:flex;flex-wrap:wrap;gap:var(--s-2)}

/* ---------- contact ----------------------------------------------------- */

.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(32px,5vw,72px);align-items:start}
.dl{margin:0;padding:0}
.dl div{padding:var(--s-3) 0;border-top:1px solid var(--line)}
.dl div:first-child{border-top:0;padding-top:0}
.dl dt{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--dim);margin-bottom:var(--s-1)}
.dl dd{margin:0;font-size:20px;font-weight:500;word-break:break-word}
.dl dd a{text-decoration:none;border-bottom:2px solid var(--amp);padding-bottom:1px}
.dl dd a:hover{color:var(--amp)}
.dl dd small{display:block;font-size:16px;font-weight:400;color:var(--dim);margin-top:var(--s-1)}

.form{background:var(--card);border:1px solid var(--line);padding:clamp(24px,3.4vw,40px)}
.form h2{font-size:24px;margin-bottom:var(--s-1)}
.form>p{color:var(--dim);font-size:16px;margin-bottom:var(--s-3)}
.field{margin-bottom:var(--s-3)}
.field label{display:block;font-family:var(--mono);font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin-bottom:var(--s-1)}
.field input,.field textarea{
  width:100%;font-family:var(--body);font-size:16px;color:var(--ink);
  background:#FBFCFD;border:1px solid var(--line);border-radius:var(--r);
  padding:var(--s-2);transition:border-color .16s ease,background .16s ease;
}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--amp);background:#fff}
.field textarea{resize:vertical;min-height:136px}
.form-note{font-size:16px;color:var(--dim);margin-top:var(--s-2);text-align:center}
.form .btn{width:100%}

.hours{list-style:none;margin:var(--s-3) 0 0;padding:0;border-top:1px solid var(--line)}
.hours li{display:flex;justify-content:space-between;gap:var(--s-2);padding:var(--s-1) 0;border-bottom:1px solid var(--line);font-size:16px}
.hours li span:last-child{font-family:var(--mono);font-size:16px;color:var(--dim)}

/* ---------- footer ------------------------------------------------------ */

.site-foot{background:var(--pitch);color:#fff;padding:clamp(48px,6vw,72px) 0 0}
.foot-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:clamp(24px,4vw,56px)}
/* scoped to .foot-desc, not `.foot-brand p` — a type selector there would
   outrank .wordmark below and grey out the footer logotype */
.foot-desc{color:var(--dim-d);font-size:16px;max-width:38ch}
.foot-area{
  margin-top:var(--s-2);line-height:1.7;
  font-family:var(--mono);font-size:12px;letter-spacing:.08em;
  text-transform:uppercase;color:#fff;
}
.foot-area::before{
  content:"";display:inline-block;width:var(--s-2);height:2px;background:var(--amp);
  vertical-align:middle;margin:0 var(--s-1) var(--s-0) 0;
}
.wordmark{
  font-family:var(--display);font-variation-settings:"wdth" 88;font-weight:800;
  font-size:30px;line-height:1;color:#fff;letter-spacing:-.015em;
}
.wordmark span{color:var(--amp)}
.wordmark-sub{
  font-family:var(--mono);font-size:11px;letter-spacing:.44em;text-transform:uppercase;
  color:var(--dim-d);margin:var(--s-1) 0 var(--s-2);
}
.foot-h{font-family:var(--mono);font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#fff;margin-bottom:var(--s-2)}
.foot-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--s-1)}
.foot-list a{color:var(--dim-d);text-decoration:none;font-size:16px}
.foot-list a:hover{color:#fff}
.foot-list li{color:var(--dim-d);font-size:16px}
.ig{display:inline-flex;align-items:center;gap:var(--s-1)}
.ig svg{width:17px;height:17px;flex:none}
.foot-bar{
  margin-top:clamp(40px,5vw,56px);border-top:1px solid var(--rail);
  padding:var(--s-3) 0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--s-2);
  font-family:var(--mono);font-size:11.5px;letter-spacing:.06em;color:#808B99;text-transform:uppercase;
}

/* ---------- mobile call bar --------------------------------------------- */

/* ---------- floating WhatsApp / Instagram buttons ----------------------- */

.dock{position:fixed;right:var(--s-2);bottom:var(--s-2);z-index:130;display:flex;flex-direction:column;gap:var(--s-1)}
.dock__btn{
  width:48px;height:48px;border-radius:50%;
  display:grid;place-items:center;color:#fff;
  box-shadow:0 6px 18px rgba(6,9,13,.28);
  transition:transform .18s ease,box-shadow .18s ease;
}
.dock__btn:hover{transform:translateY(-2px) scale(1.04);box-shadow:0 10px 24px rgba(6,9,13,.34)}
.dock__btn svg{width:24px;height:24px}
.dock__btn--wa{background:#25D366}
.dock__btn--ig{background:radial-gradient(circle at 30% 107%,#FDF497 0%,#FDF497 5%,#FD5949 45%,#D6249F 60%,#285AEB 90%)}

/* ---------- mobile call bar --------------------------------------------- */

.callbar{display:none;position:fixed;left:0;right:0;bottom:0;z-index:120;background:var(--pitch);border-top:1px solid var(--rail)}
.callbar a{
  flex:1;display:flex;align-items:center;justify-content:center;gap:var(--s-1);
  padding:var(--s-2) var(--s-1);text-decoration:none;color:#fff;font-weight:600;font-size:16px;
}
.callbar a:first-child{background:var(--amp)}

/* ---------- older-browser fallback --------------------------------------

   Every photo container above gets its height ONLY from `aspect-ratio`, and
   the images inside are absolutely positioned or set to height:100%. On a
   browser without `aspect-ratio` (iOS Safari below 15, Chrome below 88, and
   the in-app browsers that ride on them) those containers collapse to zero:
   every photo on the site disappears and the hero caption, pinned to the
   bottom of a zero-height figure, lands on top of the buttons.

   The padding-bottom trick reserves the same space using only properties
   that have worked for a decade. Percentage padding resolves against WIDTH,
   so 75% == 4:3, 133.333% == 3:4 and 37.5% == 8:3.
   ------------------------------------------------------------------------ */

@supports not (aspect-ratio: 1 / 1){
  .shot-img{position:relative;height:0;padding-bottom:75%}
  .shots-group .shot-img{padding-bottom:133.333%}
  .shots-group .shot--land .shot-img{padding-bottom:75%}
  .shot-img>img{position:absolute;top:0;left:0;width:100%;height:100%}
  .shot--wide .shot-img{padding-bottom:37.5%}

  @media (max-width:1000px){
    .hero-shot{height:0;padding-bottom:75%}
  }
  @media (max-width:640px){
    .shot--wide .shot-img{padding-bottom:75%}
  }
}

/* ---------- scroll reveal ----------------------------------------------- */

/* Only hide content when JS is running, so a script failure can never leave
   the page blank. The `js` class is set by a one-liner in each page <head>. */
.js .rv{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.js .rv.in{opacity:1;transform:none}

/* ---------- responsive -------------------------------------------------- */

@media (max-width:1000px){
  .hero-grid{grid-template-columns:1fr;min-height:0}
  .hero-copy{padding:clamp(40px,7vw,64px) 0 clamp(32px,5vw,48px)}
  .hero-rail{left:-16px;bottom:clamp(32px,5vw,48px)}
  .hero-shot{min-height:0;aspect-ratio:4/3;margin-inline:calc(-1 * var(--gut))}
  .hero-shot::before{background:linear-gradient(180deg,rgba(14,17,22,.5),rgba(14,17,22,0) 45%)}
  .contact-grid,.prose-grid{grid-template-columns:1fr}
  /* the asymmetric splits collapse together: below this width a 7/4 split
     leaves both halves too narrow to read */
  .pagehead .wrap,.sec-head{display:block}
  .pagehead .wrap>.lede,.sec-head>.lede{margin-top:var(--s-2)}
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .why-grid>.why-item{grid-column:auto}
  .figures{grid-template-columns:repeat(3,1fr)}
  .figures>.figure{grid-column:auto}
  .foot-grid{grid-template-columns:1fr 1fr}
  .shots{grid-template-columns:repeat(2,1fr)}
  .shots-group .shots{--col:calc((100% - var(--s-2)) / 2)}
}

@media (max-width:820px){
  .burger{display:block}
  .nav{
    position:fixed;top:var(--head-h);right:0;bottom:auto;left:0;flex-direction:column;align-items:stretch;
    gap:0;background:var(--card);border-bottom:1px solid var(--line);padding:var(--s-1) var(--gut) var(--s-3);
    box-shadow:0 12px 24px rgba(18,22,28,.10);
    /* visibility:hidden also takes the links out of the tab order — without it a
       keyboard user tabs into an invisible menu */
    transform:translateY(-8px);opacity:0;visibility:hidden;pointer-events:none;
    transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s;
  }
  .nav.open{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition-delay:0s}
  .nav a{padding:var(--s-2) 0;border-bottom:1px solid var(--line);font-size:17px}
  .nav a::after{display:none}
  /* .nav is fixed on mobile, so the row falls back to logo left / buttons right */
  .head-in{display:flex;justify-content:space-between;gap:var(--s-2)}
  /* the dropdown is position:fixed, so the desktop grid centring would shrink
     it to its content width and float it mid-screen */
  .head-in>.nav{justify-self:stretch}
  .brand{width:140px;height:43px}
  .brand img{left:-20.4px;top:-66.8px;width:178.8px}
  .head-cta{gap:var(--s-1)}
  /* min-height keeps the 8pt padding from dropping the tap target below 44px */
  .head-cta .btn{padding:var(--s-1) var(--s-2);min-height:48px;font-size:16px}
  body{padding-bottom:56px}
  .callbar{display:flex}
  /* clear the sticky call bar */
  .dock{bottom:72px;right:var(--s-2);gap:var(--s-1)}
}

@media (max-width:640px){
  /* stacked rows make a two-column header misleading, so only the first
     label stays */
  .board-head{grid-template-columns:1fr;gap:0;padding-inline:var(--s-2)}
  .board-head span+span{display:none}
  .way{grid-template-columns:1fr;gap:var(--s-1);padding:var(--s-3) var(--s-2)}
  .why-grid{grid-template-columns:1fr}
  .figures{grid-template-columns:1fr;gap:var(--s-3)}
  .shots{grid-template-columns:1fr}
  .shots-group .shots{--col:100%}
  .shot--wide{grid-column:span 1}
  .shot--wide .shot-img{aspect-ratio:4/3}
  .foot-grid{grid-template-columns:1fr}
  .band-in{padding-block:var(--s-4)}
  /* full-width CTAs are easier to hit one-handed */
  .hero-cta .btn,.band-cta .btn,.sec-head--split>.btn{flex:1 1 100%;width:100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .js .rv{opacity:1;transform:none}
  .hero-rail::after{top:20%;animation:none}
}
