/*
 * Digilux HD — digiluxhd.com
 *
 * The design brief in one line: the page is the deliverable. An agent should
 * finish it understanding that they are buying a marketing operation, not an
 * hour of someone's time with a camera.
 *
 * Light pass (17 Aug 2026): the ground is a warm near-white — South Florida
 * daylight, not estate-agent cream — because that's what the work actually
 * looks like. The same brand teal and sand from the dark version carry over,
 * recalibrated so they hold real contrast on paper instead of on ink.
 * Every accent colour here has been checked against every background it
 * appears on — see the size notes on --teal-bright and --sand below before
 * reusing them somewhere new. Everything is a token; nothing hard-codes a
 * colour twice.
 */

:root {
  --paper:        #fbfaf6;
  --paper-raised: #f2f0e9;
  --band:         #e7f1ef;
  --paper-line:   rgba(16, 22, 30, 0.10);

  --ink:        #10161e;
  --ink-soft:   #55606d;
  --ink-mist:   #7c8797;

  /* Small/normal-size text: --teal-deep only (5.3–5.8:1 on every light bg here). */
  --teal-deep:  #0b6e63;
  /* Large text (≥24px, or ≥18.66px bold) and non-text UI only — ~3.1:1 on paper. */
  --teal-bright:#12a093;
  /* Large text and big tabular numbers only — ~3.5:1 on paper. Small text uses --ink instead. */
  --sand:       #b9752e;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max:    1240px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ─────────────  type  ───────────── */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.03;
  text-wrap: balance;
}
/*
 * Sized for the hero card (max-width 640px), not the full page width the
 * old full-bleed hero text used. At the old clamp ceiling (5.6rem) the
 * headline was wider than the card itself and got clipped by the hero
 * section's overflow:hidden. The floor is set by the longest word
 * ("photographs") fitting inside the card's padding on a 360px screen.
 */
h1 {
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem);
  font-weight: 800;
  overflow-wrap: break-word;
}
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
h3 { font-size: 1.14rem; letter-spacing: -0.012em; line-height: 1.25; }

/* h1 is always large text by the WCAG size threshold, so the brighter, more
   saturated teal is the correct pick here even though it can't be used for
   body-sized text. */
h1 em {
  font-style: normal;
  color: var(--teal-bright);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

.lede, .section__lede {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.62;
  max-width: 56ch;
}

/* ─────────────  buttons  ───────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--teal-deep);
  color: var(--paper);
  border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .18s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-bright); transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 0.98rem; }
.btn--sm { padding: 9px 17px; font-size: 0.82rem; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(16, 22, 30, 0.24);
}
.btn--ghost:hover { background: rgba(16, 22, 30, 0.05); border-color: rgba(16, 22, 30, 0.4); }
/* On the teal CTA block the ghost button needs the light-on-colour pairing instead. */
.cta .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,0.4); }
.cta .btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }

/* ─────────────  nav  ───────────── */

/*
 * The nav is a permanent light pill rather than a bar that only gains a
 * background once you scroll past the hero. A conditional-contrast nav means
 * its readability depends on whatever photograph happens to be underneath it
 * at page load — this way it's legible over any hero image without having to
 * re-verify contrast every time the lead photo changes.
 */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: 24px;
  margin: 14px var(--gutter) 0;
  padding: 13px 20px;
  border-radius: 999px;
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(16, 22, 30, 0.08);
  box-shadow: 0 8px 30px -18px rgba(16, 22, 30, 0.25);
  color: var(--ink);
  transition: background .3s ease, box-shadow .3s ease, margin .3s ease;
}
.nav.is-stuck {
  margin-top: 10px;
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 10px 34px -16px rgba(16, 22, 30, 0.32);
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: auto;
}
.wordmark span { color: var(--teal-deep); }
.nav__links { display: none; gap: 28px; }
.nav__links a {
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ─────────────  hero  ───────────── */

.hero {
  position: relative;
  min-height: min(92svh, 880px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(96px, 18vh, 150px) var(--gutter) clamp(32px, 6vh, 88px);
  background: var(--paper);
  overflow: hidden;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
/*
 * The old version held text directly over the photograph and needed a heavy
 * dark scrim to keep it readable — which is exactly the "too dark" feeling
 * the redesign is meant to remove from the first thing a visitor sees.
 * Here the copy lives in a solid paper card instead, so the photograph only
 * needs a light grounding gradient at the very bottom, not a readability
 * device for the headline.
 */
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 22, 30, 0.22) 100%);
}
.hero__body {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
}
.hero__card {
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(16, 22, 30, 0.07);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 48px);
  max-width: 640px;
  box-shadow: 0 30px 70px -30px rgba(16, 22, 30, 0.35);
}
.hero h1 { margin: 14px 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 460px) {
  .hero__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .cta__actions { flex-direction: column; align-items: stretch; }
  .cta__actions .btn { width: 100%; }
}

.credit {
  margin-top: clamp(20px, 3vh, 30px);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 12px;
}
.credit span { width: 34px; height: 1px; background: var(--teal-deep); display: block; }

/* ─────────────  sections  ───────────── */

.section { padding: clamp(72px, 11vw, 148px) var(--gutter); }
/* First section on a subpage (Work/Coverage/Process) sits directly under the
   fixed floating nav instead of a tall hero, so it needs extra top clearance
   the nav doesn't otherwise reserve. */
.section--page { padding-top: clamp(140px, 22vh, 200px); }
/* Alternate-rhythm band: replaces the old near-black .section--ink. Colour
   carries the rhythm between sections here, not darkness. */
.section--tint { background: var(--band); }
.section > * { max-width: var(--max); margin-inline: auto; }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }
.section__head h2 { margin: 14px 0 18px; }

/* ─────────────  the kit  ───────────── */

.kit {
  display: grid;
  gap: clamp(14px, 1.6vw, 22px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .kit { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .kit { grid-template-columns: repeat(3, 1fr); } }

.kit__card {
  background: #fff;
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease, border-color .22s ease;
}
.kit__card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--teal-deep) 40%, var(--paper-line));
  box-shadow: 0 20px 46px -26px rgba(11, 110, 99, 0.35);
}
.kit__card--feature { grid-column: span 1; }
@media (min-width: 720px) { .kit__card--feature { grid-column: span 2; flex-direction: row; } }
@media (min-width: 720px) { .kit__card--flip { flex-direction: row-reverse; } }

.kit__card img {
  width: 100%; height: 220px; object-fit: cover;
}
@media (min-width: 720px) {
  .kit__card--feature img { width: 48%; height: auto; align-self: stretch; min-height: 260px; }
}
.kit__body { padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.kit__body p { color: var(--ink-soft); font-size: 0.97rem; }

/* ─────────────  ai  ───────────── */

.ai {
  display: grid; gap: clamp(36px, 5vw, 72px);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 980px) { .ai { grid-template-columns: 1.15fr 0.85fr; } }
.ai h2 { margin: 14px 0 20px; }

.pledge {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 2px solid var(--teal-deep);
  background: rgba(11, 110, 99, .07);
  border-radius: 0 10px 10px 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.pledge strong { color: var(--ink); font-weight: 600; }

.ai__list { margin-top: 30px; display: grid; gap: 0; }
.ai__list > div {
  display: grid; gap: 4px;
  padding: 16px 0;
  border-top: 1px solid var(--paper-line);
}
@media (min-width: 620px) { .ai__list > div { grid-template-columns: 13.5rem 1fr; gap: 20px; align-items: baseline; } }
.ai__list dt { font-weight: 600; font-size: 0.97rem; }
.ai__list dd { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

.ai__figure { margin: 0; }
.ai__figure img { border-radius: 14px; width: 100%; }
.ai__figure figcaption {
  margin-top: 12px;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ─────────────  work  ───────────── */

.work {
  display: grid;
  gap: clamp(10px, 1.2vw, 16px);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px)  { .work { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .work { grid-template-columns: repeat(4, 1fr); } }

.work figure {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
  background: var(--paper-line);
}
/* Every third frame runs tall, so the grid reads as an edit rather than a
   contact sheet. */
.work figure:nth-child(6n + 1) { grid-row: span 2; aspect-ratio: 4 / 6.15; }
@media (max-width: 759px) { .work figure:nth-child(6n + 1) { grid-row: span 1; aspect-ratio: 4 / 3; } }

.work img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .35s ease;
}
.work figure:hover img { transform: scale(1.05); }
/* This caption sits on a photograph, not on the page ground, so the dark
   gradient here is a legibility device for text-on-image — not a reversion
   to a dark UI. */
.work figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 14px 12px;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  background: linear-gradient(transparent, rgba(16,22,30,.86));
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}
.work figure:hover figcaption, .work figure:focus-within figcaption { opacity: 1; transform: none; }

/* ─────────────  coverage  ───────────── */

/*
 * City names only, as tags — not a numbered list. Per-city listing counts
 * are business data; the public page names the coverage area without
 * handing out the breakdown.
 */
.coverage {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.coverage li {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--paper-line);
  font-size: 0.95rem;
}

/* ─────────────  process  ───────────── */

.steps {
  list-style: none; padding: 0; counter-reset: step;
  display: grid; gap: clamp(24px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border-top: 2px solid var(--teal-deep); padding-top: 20px; }
.steps b {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.16em; color: var(--teal-deep);
  display: block; margin-bottom: 12px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-soft); font-size: 0.97rem; }

/* ─────────────  cta  ───────────── */

/*
 * The close of the page is a deliberate saturated colour block, not a
 * return to near-black — a bold brand-teal moment rather than a "dark
 * section" the way the old ink background read.
 */
.cta {
  background: var(--teal-deep);
  color: var(--paper);
  padding: clamp(80px, 12vw, 156px) var(--gutter);
  text-align: center;
}
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta > p { color: rgba(251, 250, 246, 0.82); margin: 18px auto 0; max-width: 46ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cta .btn:not(.btn--ghost) { background: var(--paper); color: var(--teal-deep); }
.cta .btn:not(.btn--ghost):hover { background: #fff; }
.cta__alt { margin-top: 26px; font-size: 0.9rem; color: rgba(251, 250, 246, 0.82); }
.cta__alt a { color: var(--paper); text-decoration: underline; }

/* ─────────────  footer  ───────────── */

.foot {
  background: var(--paper-raised);
  color: var(--ink-soft);
  padding: clamp(48px, 6vw, 76px) var(--gutter) 36px;
  border-top: 1px solid var(--paper-line);
  font-size: 0.9rem;
}
.foot__row {
  max-width: var(--max); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between;
}
.foot .wordmark { color: var(--ink); display: inline-block; margin-bottom: 10px; }
.foot__links { display: grid; gap: 8px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); }
.foot__legal {
  max-width: var(--max); margin: clamp(36px, 5vw, 56px) auto 0;
  padding-top: 22px; border-top: 1px solid var(--paper-line);
  font-size: 0.78rem; color: var(--ink-soft);
}

/* ─────────────  reveal on scroll  ───────────── */

/*
 * Reveal-on-scroll, with a hard rule: content is never hidden by CSS alone.
 *
 * The .reveal class is added by main.js, so if the script fails to load, is
 * blocked, or throws before the observer is wired, nothing ever gets the
 * class and everything stays visible. What must not happen is a stylesheet
 * that sets opacity:0 on real content and then depends on JavaScript to undo
 * it — that is how a page ends up blank for the one visitor whose network ate
 * the script.
 */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.is-in { opacity: 1; transform: none; } }
