:root {
  --red: #CC2B33;        /* Bolt Red: call buttons only */
  --red-deep: #A8222A;
  --ink: #2A2427;        /* Cable Black */
  --ink-soft: #5A5155;
  --white: #FFFFFF;      /* Plaster White */
  --plate: #EEECEA;      /* Switchplate */
  --walnut: #6E4126;
  --walnut-text: #F4E6DA;
  --led: #F3B23C;        /* LED Warm: focus ring and the hero rule */
  --display: "Archivo", "Source Sans 3", sans-serif;
  --text: "Source Sans 3", system-ui, sans-serif;
  --pad: clamp(1rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (max-width: 899px) { html { scroll-padding-bottom: 5rem; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

::selection { background: var(--led); color: var(--ink); }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible {
  outline: 3px solid var(--led);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--ink);
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.75em; }
h3 { font-size: 1.2rem; margin-bottom: 0.4em; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--pad); }

/* Skip link: off-screen until focused */
.skip {
  position: absolute;
  left: var(--pad);
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
}
.skip:focus { top: 0.5rem; }

/* Concept bar */
.concept-bar {
  margin: 0;
  max-width: none;
  padding: 0.5rem var(--pad);
  background: var(--ink);
  color: var(--white);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}

/* Header */
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem 2rem;
  padding-block: 0.875rem;
}
@media (max-width: 359px) { .header-inner { gap: 1rem; } }
.brand { flex: none; display: block; width: clamp(108px, 28vw, 150px); aspect-ratio: 488 / 156; overflow: hidden; }
/* crop the dithered bottom rows of the source logo */
.brand img { width: 100%; height: auto; }
.nav { display: flex; gap: clamp(0.875rem, 3vw, 2rem); margin-left: auto; }
.nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  padding-block: 0.7rem;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 0.35em; }

/* Buttons: red means call */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.btn-call { background: var(--red); color: var(--white); }
.btn-call:hover { background: var(--red-deep); }
.header-call { display: none; }
@media (min-width: 900px) { .header-call { display: inline-flex; } }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.email-link { font-weight: 600; overflow-wrap: anywhere; }

/* Hero */
.hero { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); }
.hero-inner { display: grid; gap: 2rem; }
.hero h1 {
  font-size: clamp(2.05rem, 5.4vw + 0.4rem, 3.6rem);
  line-height: 1.02;
  max-width: 16ch;
}
.hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 4px;
  margin-top: 0.4em;
  background: var(--led);
}
.hero-lede { font-size: 1.125em; margin-block: 1.25rem 1.75rem; max-width: 34em; color: var(--ink-soft); }
.hero-owner { margin: 1rem 0 0; font-size: 0.9375em; color: var(--ink-soft); }
.hero-photo { margin-inline: calc(var(--pad) * -1); }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  animation: switch-on 900ms cubic-bezier(0.16, 1, 0.3, 1) 400ms both;
}
@keyframes switch-on {
  from { filter: brightness(0.35) saturate(0.6); }
  to { filter: brightness(1) saturate(1); }
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 3.5rem; }
  .hero-photo { margin-inline: 0; }
  .hero-photo img { aspect-ratio: auto; height: min(76vh, 640px); object-position: 40% 50%; }
}

/* Intro */
.intro { padding-block: clamp(3rem, 7vw, 6rem); }
.intro-inner { display: grid; gap: 2.5rem; }
.intro h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
@media (min-width: 900px) { .intro-inner { grid-template-columns: 7fr 5fr; gap: 4rem; } }

/* Work */
.work {
  background: var(--walnut);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
}
.work figure { display: flex; flex-direction: column; min-width: 0; }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--walnut-text);
}
.w-large, .w-strip { grid-column: 1 / -1; }
.w-strip img { aspect-ratio: 1100 / 299; }
@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem 1.5rem; }
  .w-large { grid-column: span 8; grid-row: span 2; }
  .w-side { grid-column: span 4; }
  .w-side img { flex: 1 1 auto; height: 0; min-height: 0; aspect-ratio: auto; }
  .w-row { grid-column: span 3; }
  .w-strip { grid-column: 1 / -1; }
  .work figcaption { font-size: 0.9375rem; }
}

/* Services */
.services { background: var(--plate); padding-block: clamp(3rem, 7vw, 6rem); }
.service-list { display: grid; column-gap: 4rem; }
.service-list article { padding-block: 1.5rem; border-top: 1px solid #CFCAC6; }
.service-list p { color: var(--ink-soft); }
@media (min-width: 900px) { .service-list { grid-template-columns: 1fr 1fr; } }

/* Contact */
.contact { padding-block: clamp(3.5rem, 8vw, 7rem); }
.contact h2 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); max-width: 16ch; margin-bottom: 0.5em; }
.contact p { font-size: 1.125em; margin-bottom: 1.75rem; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #D9D3D5;
  font-size: 0.875rem;
  padding-block: 2rem;
}
.footer-inner { display: grid; gap: 0.5rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; gap: 2rem; }
}

/* Phone-only call bar */
.mobile-call {
  position: fixed;
  inset: auto 0.75rem 0.75rem;
  z-index: 10;
  box-shadow: 0 6px 18px rgba(42, 36, 39, 0.28);
}
@media (max-width: 899px) { body { padding-bottom: 4.5rem; } }
@media (min-width: 900px) { .mobile-call { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img { animation: none; }
}
