/* Demo: Joe Smith, master electrician.

   A trade page is read on a phone, often by a general contractor who wants the
   licence number and the insurance limit before anything else. So the licence,
   the coverage and the safety record sit in a strip directly under the
   headline, and the phone number is a button rather than a footnote.

   Visually: high contrast, condensed headings, amber on slate. Built to stay
   legible in daylight on a job site, which is the opposite constraint to every
   other page in this set. */

:root {
  --paper:   #FAFAF9;
  --raise:   #FFFFFF;
  --slate:   #1C2024;
  --ink:     #16191C;
  --ink-2:   #4D5359;
  --ink-3:   #6C737A;
  --line:    #E1E3E5;
  --line-2:  #C3C7CB;
  --amber:   #C8761A;

  --display: "Oswald", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--display); text-wrap: balance; font-weight: 600; }
p { margin: 0; }
a { color: var(--amber); text-underline-offset: 3px; }

.shell { max-width: 1000px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.label {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ----------------------------------------------------------------- top --- */
.top { background: var(--slate); color: #F2F3F4; padding-block: 52px 44px; }
.kicker {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.top h1 {
  margin-top: 16px;
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.top .sub { margin-top: 20px; max-width: 52ch; color: rgba(242, 243, 244, 0.78); }
.top__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.top__in { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 42px; align-items: center; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  background: var(--amber);
  color: #16191C;
  border: 2px solid var(--amber);
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { background: #A85F10; border-color: #A85F10; color: #fff; }
.btn--quiet { background: transparent; color: inherit; border-color: currentColor; }
.btn--quiet:hover { background: rgba(200, 118, 26, 0.12); border-color: var(--amber); color: inherit; }

/* --------------------------------------------------------------- strip --- */
/* The four facts a contractor checks before calling anybody. */
.strip { background: var(--raise); border-bottom: 1px solid var(--line); }
.strip__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0;
}
.strip__in > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.strip__in > div:first-child { border-left: 0; padding-left: 0; }
.strip b {
  display: block;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
}
.strip span { display: block; margin-top: 6px; font-size: 0.82rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- work --- */
.work { padding-block: 48px 0; }
.job { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.work .job:first-of-type { border-top: 2px solid var(--slate); }
.job h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); text-transform: uppercase; }
.job__meta { margin-top: 6px; font-size: 0.82rem; color: var(--ink-3); letter-spacing: 0.02em; }
.job > p:not(.job__meta) { margin-top: 14px; color: var(--ink-2); max-width: 66ch; }

.job__facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.job__facts li { background: var(--raise); padding: 12px 14px; font-size: 0.88rem; color: var(--ink-2); }
.job__facts b { font-family: var(--display); font-size: 1.1rem; color: var(--ink); display: block; }

/* -------------------------------------------------------------- skills --- */
.skills { padding-block: 48px 0; }
.skills__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; margin-top: 24px; }
.skills h4 { font-size: 1.1rem; text-transform: uppercase; padding-bottom: 10px; border-bottom: 3px solid var(--amber); }
.skills ul { margin: 14px 0 0; padding-left: 18px; }
.skills li { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 7px; }
.skills li::marker { color: var(--amber); }

/* --------------------------------------------------------------- creds --- */
.creds { padding-block: 48px 0; }
.creds__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.cred { background: var(--raise); border: 1px solid var(--line); border-top: 3px solid var(--slate); padding: 18px; }
.cred__name { font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; }
.cred__body { margin-top: 8px; font-size: 0.87rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- says --- */
.says { padding-block: 48px 0; }
.says blockquote { margin: 0; background: var(--slate); color: #F2F3F4; padding: 30px; }
.says p { font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.45; max-width: 54ch; }
.says footer { margin-top: 14px; font-size: 0.84rem; color: rgba(242, 243, 244, 0.65); }

/* ------------------------------------------------------------- contact --- */
.contact { margin-top: 52px; padding: 40px 0 72px; border-top: 2px solid var(--slate); }
.contact h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); text-transform: uppercase; max-width: 22ch; }
.contact p { margin-top: 14px; color: var(--ink-2); max-width: 60ch; }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.contact .btn--quiet { color: var(--ink); border-color: var(--line-2); }
.contact .btn--quiet:hover { border-color: var(--slate); background: var(--raise); }
.updated { margin-top: 28px; font-size: 0.8rem; color: var(--ink-3); }

/* ------------------------------------------------------------ narrower --- */
@media (max-width: 880px) {
  .top__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .top__portrait { max-width: 280px; }
  .rig__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .shell { padding-left: 18px; padding-right: 18px; }
  .strip__in > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .strip__in > div:first-child { border-top: 0; }
  .btn { width: 100%; text-align: center; }
}


/* ------------------------------------------------------------ media slot ---
   Where the client's own headshot, work photograph or video goes. Marked
   rather than faked: a framed panel in the page palette with a glyph and a
   label, so the slot looks deliberate while it is empty and the layout does
   not move when the real image lands in it. */
.shot { margin: 0; }
.shot__fill {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(158deg, #2C333A 0%, #1C2024 54%, #3E2610 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.shot__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 70% 16%, rgba(200, 118, 26, 0.46), transparent 62%);
}
.shot__glyph {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  color: rgba(255, 255, 255, 0.62);
}
.shot--wide .shot__fill,
.shot--video .shot__fill { aspect-ratio: 16 / 9; }
.shot--square .shot__fill { aspect-ratio: 1 / 1; }
.shot--tall .shot__fill { aspect-ratio: 3 / 4; }
.shot figcaption {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.shot--on-dark figcaption { color: rgba(255, 255, 255, 0.55); }
.shot__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #C8761A;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}
.shot__play svg { width: 25px; height: 25px; margin-left: 4px; color: #16191C; }

/* A row of slots, for the pages where the work is the photographs. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

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

/* The van and the panel, because a GC wants to see whose work this is. */
.rig { margin-top: 48px; background: var(--slate); color: #F2F3F4; padding: 38px 30px; }
.rig__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 34px; align-items: center; }
.rig h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); text-transform: uppercase; max-width: 15ch; }
.rig p { margin-top: 14px; color: rgba(242, 243, 244, 0.72); max-width: 42ch; }
.rig .label { color: var(--amber); }
