/* ==========================================================================
   6 GUN HOME BUILDERS LLC — styles.css
   Dark-mode construction portfolio · accent #FED403
   ========================================================================== */

/* ---------- Self-hosted variable fonts ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/archivo-latin-wght-normal.woff2') format('woff2-variations');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #0b0d10;
  --bg-panel:  #0f1216;
  --bg-card:   #12161c;
  --bg-card-2: #171c24;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text:      #f2f1ec;
  --muted:     #9aa1a9;
  --accent:    #fed403;
  --accent-dim: rgba(254, 212, 3, 0.14);
  --navy:      #0d2235;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(84px, 11vw, 150px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.25s var(--ease);
  --t-med: 0.5s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--navy); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast),
              color var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.btn--solid {
  background: var(--accent);
  color: var(--navy);
}
.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(254, 212, 3, 0.22);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--navy);
  color: #fff;
}
.btn--dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 34, 53, 0.45);
}

.btn--full { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.text-link__arrow { transition: transform var(--t-fast); }
.text-link:hover .text-link__arrow { transform: translateX(6px); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.nav--scrolled {
  background: rgba(11, 13, 16, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

/* Brand + toggle stay clickable above the mobile menu panel (z:1) */
.nav__brand,
.nav__toggle {
  position: relative;
  z-index: 2;
}

.nav__brand img { width: clamp(170px, 20vw, 220px); height: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 36px);
}

.nav__link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  transition: color var(--t-fast);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__num {
  color: var(--accent);
  margin-right: 7px;
  font-size: 10px;
  vertical-align: 2px;
}

.nav__cta { padding: 12px 22px; }

.nav__toggle {
  display: none;
  -webkit-tap-highlight-color: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform var(--t-fast), opacity var(--t-fast);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: 140px;
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, #000 30%, transparent 75%);
}

.hero__glow {
  position: absolute;
  top: -220px;
  right: -160px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(254, 212, 3, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

.hero__watermark {
  position: absolute;
  right: -1.5vw;
  bottom: 16vh;
  font-size: clamp(180px, 30vw, 460px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  user-select: none;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  padding-bottom: clamp(56px, 8vh, 110px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(20px, 3vh, 34px);
}
.kicker__tick {
  width: 34px;
  height: 2px;
  background: var(--accent);
}

.hero__title {
  font-size: clamp(46px, 8.4vw, 110px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: clamp(22px, 3.4vh, 38px);
}
.hero__title > span { display: block; }

.hero__title-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(242, 241, 236, 0.75);
}

.hero__sub {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--muted);
  margin-bottom: clamp(28px, 4vh, 44px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(20px, 2.6vw, 34px) clamp(8px, 1.6vw, 24px);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }

.stat__value {
  display: block;
  font-size: clamp(30px, 3.6vw, 50px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Ticker
   ========================================================================== */
.ticker {
  overflow: hidden;
  background: var(--accent);
  border-block: 1px solid var(--accent);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-block: 13px;
}

.ticker__group span {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.ticker__group i {
  font-style: normal;
  color: var(--navy);
  opacity: 0.55;
  margin-inline: 26px;
  font-size: 11px;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line-soft);
}

.section--panel { background: var(--bg-panel); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(34px, 5vw, 60px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.section__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.section__title {
  font-size: clamp(32px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.section__intro { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__intro .section__lede { margin-top: 18px; }

.section__intro--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.section__intro--split .section__lede { max-width: 400px; margin-top: 0; }

.section__lede { color: var(--muted); font-size: 17px; }

.accent-underline {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 3px;
  background-position: 0 96%;
}

/* ==========================================================================
   About
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4.4fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.about__copy .section__title { margin-bottom: 26px; }
.about__copy p { color: var(--muted); margin-bottom: 18px; max-width: 60ch; }

.about__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.about__card:hover { border-color: rgba(254, 212, 3, 0.4); transform: translateY(-4px); }

.about__card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
}
.about__card-head img { width: 26px; height: auto; }

.spec__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}
.spec__row:last-child { border-bottom: 0; }

.spec__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec__row dd { font-weight: 700; font-size: 15px; }

.about__card-stripe {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    var(--navy) 12px 24px
  );
}

/* ==========================================================================
   Services
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--bg-panel);
  transition: background var(--t-fast), transform var(--t-fast);
}
.service-card:hover { background: var(--bg-card-2); }

.service-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.14em;
  margin-bottom: 26px;
  transition: color var(--t-fast);
}
.service-card:hover .service-card__num { color: var(--accent); }

.service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--text);
  transition: color var(--t-fast), transform var(--t-fast);
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card:hover .service-card__icon {
  color: var(--accent);
  transform: translateY(-3px);
}

.service-card__title {
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  flex-grow: 1;
}

.service-card__arrow {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: 20px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.service-card--cta {
  background: var(--accent-dim);
  border: 1px dashed rgba(254, 212, 3, 0.4);
  margin: -1px;
  z-index: 1;
}
.service-card--cta:hover { background: rgba(254, 212, 3, 0.2); }
.service-card--cta .service-card__num { color: var(--accent); font-size: 20px; }
.service-card__arrow--big { font-size: 26px; }

/* ==========================================================================
   Featured Work
   ========================================================================== */
.work__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}

.project-card { grid-column: span 5; }
.project-card--wide { grid-column: span 7; }

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10.5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t-fast), transform var(--t-med), box-shadow var(--t-med);
}

/* Placeholder art (replace with real photos in production) */
.project-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(254, 212, 3, 0.13), transparent 42%),
    linear-gradient(155deg, #1c222b 0%, #10141a 58%, #0c0f13 100%);
  transition: transform var(--t-med);
}

.project-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  transition: transform var(--t-med), opacity var(--t-med);
}

.project-card__media[data-pattern="tile"]::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 56px 56px;
}

.project-card__media[data-pattern="stairs"]::after {
  background-image: repeating-linear-gradient(
    -35deg,
    rgba(255,255,255,0.06) 0 26px,
    transparent 26px 64px
  );
}

.project-card__media[data-pattern="pavers"]::after {
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 44px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 44px);
}

.project-card__media[data-pattern="slab"]::after {
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 130px);
}

.project-card__index {
  position: absolute;
  left: 22px;
  bottom: 14px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 241, 236, 0.28);
  transition: -webkit-text-stroke-color var(--t-fast), color var(--t-med);
}

.project-card:hover .project-card__media {
  border-color: rgba(254, 212, 3, 0.55);
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.project-card:hover .project-card__media::before { transform: scale(1.06); }
.project-card:hover .project-card__media::after { transform: scale(1.06); opacity: 0.75; }
.project-card:hover .project-card__index { -webkit-text-stroke-color: var(--accent); }

.project-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding-top: 16px;
}

.project-card__title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color var(--t-fast);
}
.project-card:hover .project-card__title { color: var(--accent); }

.project-card__tags {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card__loc {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  background: var(--accent);
  color: var(--navy);
}

.cta-band__stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--navy) 0 14px,
    transparent 14px 28px
  );
  opacity: 0.9;
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-block: clamp(44px, 6vw, 76px);
}

.cta-band__title {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact__info .section__title { margin-bottom: 22px; }
.contact__info > p { color: var(--muted); max-width: 46ch; }

.contact__list { list-style: none; margin-top: 34px; }

.contact__list li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}

.contact__key {
  flex-shrink: 0;
  width: 110px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact__list a { transition: color var(--t-fast); overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--accent); }

.contact__form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 44px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.req { color: var(--accent); margin-left: 4px; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 21px) 50%, calc(100% - 15px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(254, 212, 3, 0.12);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: #e5533d;
}

/* Honeypot — visually removed, still in the DOM for bots to find */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--accent);
  min-height: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  padding-block: clamp(48px, 6vw, 80px);
}

.footer__brand img { width: 210px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 30ch; }

.footer__col { display: flex; flex-direction: column; gap: 10px; }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer__col a,
.footer__col span {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--t-fast);
  overflow-wrap: anywhere;
}
.footer__col a:hover { color: var(--text); }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.footer__top { transition: color var(--t-fast); }
.footer__top:hover { color: var(--accent); }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1060px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 240px; }
}

@media (max-width: 940px) {
  .about__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .about__card { max-width: 520px; }

  .project-card,
  .project-card--wide { grid-column: span 12; }

  .section__intro--split { flex-direction: column; align-items: flex-start; gap: 16px; }

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

@media (max-width: 860px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1; /* below .nav__inner (z:2), above the page — no negative
                   z-index: Safari paints those behind page content */
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
    padding: 100px var(--gutter) 60px;
    background: #0b0d10; /* fully opaque base… */
    background: rgba(11, 13, 16, 0.97); /* …then translucent+blur where supported */
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-fast), visibility var(--t-fast);
  }
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav__links { background: #0b0d10; } /* no blur support → solid panel */
  }

  .nav--open .nav__links {
    opacity: 1;
    visibility: visible;
  }

  .nav--open {
    background: rgba(11, 13, 16, 0.97);
    border-color: var(--line);
  }

  .nav__link {
    font-size: 26px;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0;
    color: var(--text);
    padding: 10px 0;
  }

  .nav__num { font-size: 13px; vertical-align: 10px; }

  .nav__cta { margin-top: 26px; }

  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero__stats-row { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); padding-left: 20px; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__watermark { bottom: 30vh; }
  .cta-band__inner { justify-content: center; text-align: center; }

  /* Contact details: label above value so long values (email) sit on one line */
  .contact__list li { display: block; }
  .contact__key { display: block; width: auto; margin-bottom: 4px; }
}

/* ==========================================================================
   Photo integration
   ========================================================================== */

/* --- Hero background photo --- */
.hero__photo {
  position: absolute;
  inset: 0;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.62) 0%, rgba(11, 13, 16, 0.25) 30%, rgba(11, 13, 16, 0.88) 88%, var(--bg) 100%),
    linear-gradient(97deg, rgba(11, 13, 16, 0.95) 22%, rgba(11, 13, 16, 0.68) 55%, rgba(11, 13, 16, 0.38) 100%);
}

/* --- About photo --- */
.about__side {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.about__photo {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: transform var(--t-med);
}
.about__photo:hover img { transform: scale(1.04); }

.about__photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(11, 13, 16, 0.85));
}

/* --- Service card hover photos --- */
.service-card {
  isolation: isolate;
  overflow: hidden;
}

.service-card__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity var(--t-med), transform var(--t-med);
}
.service-card:hover .service-card__bg {
  opacity: 0.14;
  transform: scale(1);
}

/* --- Project card photos --- */
.project-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-med);
}

.project-card__media.has-photo::after {
  background: linear-gradient(180deg, rgba(11, 13, 16, 0) 45%, rgba(11, 13, 16, 0.66) 100%);
  opacity: 1;
}

.project-card__media.has-photo .project-card__index {
  -webkit-text-stroke-color: rgba(242, 241, 236, 0.55);
}

.project-card:hover .project-card__media img { transform: scale(1.06); }
.project-card:hover .project-card__media.has-photo::after { transform: none; opacity: 1; }

@media (max-width: 940px) {
  .about__side { max-width: 520px; }
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(11, 13, 16, 0.72) 0%, rgba(11, 13, 16, 0.45) 30%, rgba(11, 13, 16, 0.92) 88%, var(--bg) 100%),
      linear-gradient(97deg, rgba(11, 13, 16, 0.9) 30%, rgba(11, 13, 16, 0.62) 100%);
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
