/* Self-hosted fonts (latin + latin-ext), no requests to Google */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/atkinson-hyperlegible-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("assets/fonts/big-shoulders-display-var-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Big Shoulders Display";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("assets/fonts/big-shoulders-display-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Palette taken from the logo: signal yellow on asphalt, set on galvanised steel */
:root {
  --signal: #ffcb09;
  --asphalt: #0b1213;
  --asphalt-2: #1a2326;
  --steel: #e6e9e8;
  --plate: #ffffff;
  --muted: #4e5a5e;
  --radius: 14px; /* rounded corner of the logo plate */

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Hazard stripe at the same angle as the logo */
  --hazard: repeating-linear-gradient(135deg, var(--signal) 0 14px, var(--asphalt) 14px 28px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--asphalt);
  background: var(--steel);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--asphalt);
  border-radius: 4px;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header: asphalt bar finished with a strip of hazard tape */
.header {
  background: var(--asphalt);
  margin-bottom: 72px;
}
.header::after {
  content: "";
  display: block;
  height: 14px;
  background: var(--hazard);
}
.header__inner {
  position: relative;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header__logo {
  position: absolute;
  left: 40px;
  top: 22px;
  z-index: 1;
  filter: drop-shadow(0 10px 18px rgba(11, 18, 19, .35));
  transition: transform .2s ease;
}
.header__logo:hover { transform: rotate(-3deg); }
.header__logo img { width: 128px; height: 128px; }
.header__contact {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.header__call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .02em;
}
.header__call span {
  color: var(--signal);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.header__call:hover { color: var(--signal); }
.header__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  transition: background .15s ease, border-color .15s ease;
}
.header__icon:hover { background: var(--asphalt-2); border-color: var(--signal); }
.header__icon img { height: 22px; width: auto; }
.header__nick {
  width: 104px;
  height: 104px;
  margin: 0 0 -46px 4px;
  align-self: flex-end;
  border-radius: 50%;
  border: 4px solid var(--signal);
  background: var(--asphalt);
}

/* Three photo tiles with a signal-yellow caption plate */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tile { position: relative; }
.tile img {
  width: 100%;
  aspect-ratio: 600 / 672;
  object-fit: cover;
  border-radius: var(--radius);
}
.tile h2 {
  position: relative;
  margin: -44px 20px 0 0;
  padding: 14px 18px 16px;
  background: var(--signal);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: transform .2s ease;
}
.tile:hover h4 { transform: translateY(-6px); }

/* Intro text + video */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 88px;
}
.intro__text h1 {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.intro__text p { margin: 0 0 20px; color: var(--muted); }
.intro__text h1 + p {
  font-size: 22px;
  line-height: 1.45;
  color: var(--asphalt);
}
.intro__video {
  aspect-ratio: 16 / 9;
  background: var(--asphalt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 12px 12px 0 var(--signal);
}
.intro__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Services + detachering on an asphalt panel */
.lists {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 56px;
  margin: 80px 0 96px;
  padding: 56px;
  background: var(--asphalt);
  color: #fff;
  border-radius: var(--radius);
}
.lists h2 {
  margin: 0 0 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
}
.lists ul { margin: 0; padding: 0; list-style: none; }

/* Services read like an inspection checklist */
.lists__services li {
  position: relative;
  padding: 12px 0 12px 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.lists__services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 20px;
  height: 20px;
  border: 2px solid var(--signal);
  border-radius: 4px;
}
.lists__services li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  width: 6px;
  height: 11px;
  border: solid var(--signal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Roles set in the display face, like names on a site roster */
.lists__detachering li {
  padding: 6px 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.cta a { border-radius: 8px; transition: transform .15s ease; }
.cta a:hover { transform: translateY(-2px); }
.cta img { height: 52px; width: auto; border-radius: 8px; }
.cta__main {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  background: var(--signal);
  color: var(--asphalt);
  font-weight: 700;
  font-size: 17px;
}

/* Footer, opened by the same hazard tape */
.footer {
  background: var(--asphalt);
  color: rgba(255, 255, 255, .8);
  padding: 0 0 24px;
}
.footer::before {
  content: "";
  display: block;
  height: 14px;
  margin-bottom: 64px;
  background: var(--hazard);
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer__grid img[alt^="Part"] { margin-bottom: 24px; }
.footer p { margin: 0; }
.footer h2 {
  margin: 4px 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--signal);
}
.footer a:hover { color: var(--signal); }
.footer__copy {
  margin: 56px 0 0 !important;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .55);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Tablet */
@media (max-width: 1000px) {
  .wrap { padding: 0 24px; }
  .header__logo { left: 24px; }
  .tile h2 { font-size: 24px; }
  .intro, .lists { grid-template-columns: 1fr; }
  .lists { padding: 40px 32px; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header { margin-bottom: 56px; }
  .header__inner { height: 72px; }
  .header__logo { left: 16px; top: 14px; }
  .header__logo img { width: 84px; height: 84px; }
  .header__call { display: none; }
  .header__contact { gap: 10px; }
  .header__icon { width: 40px; height: 40px; }
  .header__nick { width: 72px; height: 72px; margin-bottom: -30px; }
  .tiles { grid-template-columns: 1fr; gap: 32px; }
  .tile h2 { font-size: 28px; }
  .intro { margin-top: 56px; gap: 40px; }
  .intro__text h1 + p { font-size: 19px; }
  .intro__video { box-shadow: 8px 8px 0 var(--signal); }
  .lists { margin: 56px -16px 0; padding: 40px 16px; border-radius: 0; }
  .lists__detachering li { font-size: 26px; }
  .cta { flex-wrap: nowrap; }
  .cta__main { flex: 1; justify-content: center; padding: 0 12px; font-size: 16px; }
  .footer__grid { grid-template-columns: 1fr; }
}
