:root {
  --blue: #2547a0;
  --grey: #dedede;
  --ink: #212020;
  --white: #ffffff;
  --gutter: clamp(16px, 4vw, 60px);
  --max: 1400px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Raleway", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--grey);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
/* height:auto lets width/height attributes reserve space without fixing the pixel height */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 500;
  margin: 0 0 0.5em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); letter-spacing: -0.05em; line-height: 1.03; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); letter-spacing: -0.05em; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.05rem); letter-spacing: -0.05em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }

/* Header — sticks to the top and tightens once the page scrolls */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(222, 222, 222, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(33,32,32,.08), 0 6px 20px rgba(33,32,32,.08); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto;
  padding: 22px calc(var(--gutter) + 5vw);
  transition: padding .3s ease;
}
.site-header.is-scrolled .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 40px; width: auto; transition: height .3s ease; }
.site-header.is-scrolled .logo img { height: 32px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn--icon { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.btn--icon .btn-short { display: none; }
:target { scroll-margin-top: 90px; }
#contact { scroll-margin-top: 70px; }
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-family: var(--body);
  font-size: 0.85rem;
  padding: 0.85em 1.5em;
  border-radius: 300px;
  border: 0;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn:hover { opacity: .85; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn--lg { text-transform: uppercase; font-size: 1rem; padding: 1.1em 2.2em; letter-spacing: .04em; }
.btn--light { background: var(--white); color: var(--ink); }

/* Sections */
.section { padding: clamp(60px, 9vw, 130px) var(--gutter); }
.wrap { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 880px; margin: 0 auto; }
.blue { background: var(--blue); color: var(--white); }
.dark { background: var(--ink); color: var(--white); }
.center { text-align: center; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.42rem); line-height: 1.5; }

/* Hero */
.hero {
  position: relative;
  margin: 0 var(--gutter);
  min-height: min(88vh, 900px);
  display: grid; place-items: center;
  text-align: center;
  color: var(--white);
  background: var(--blue);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  /* Brand-blue scrim keeps white text legible over the colored plan */
  background:
    radial-gradient(ellipse at center, rgba(18, 30, 72, 0.55) 0%, rgba(18, 30, 72, 0.78) 70%),
    rgba(37, 71, 160, 0.35);
}
.hero h1, .hero p { text-shadow: 0 2px 18px rgba(10, 16, 40, 0.55); }
.hero__inner { position: relative; z-index: 2; max-width: 900px; padding: 80px 24px; }
.hero p { font-size: clamp(1rem, 1.5vw, 1.35rem); max-width: 720px; margin: 0 auto; }

/* Stats bar */
.stats { padding: clamp(40px, 6vw, 70px) var(--gutter) 0; }
.stats__list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1100px;
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats__list li {
  text-align: center; padding: 8px 16px;
  border-left: 1px solid rgba(33,32,32,.15);
}
.stats__list li:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--head); font-weight: 500; letter-spacing: -0.04em;
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.1; color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; font-size: .92rem; margin-top: 4px; }
.stats__list li:nth-child(2) { transition-delay: .1s; }
.stats__list li:nth-child(3) { transition-delay: .2s; }
.stats__list li:nth-child(4) { transition-delay: .3s; }

/* Services + pricing */
.services .intro { max-width: 900px; margin: 0 auto 60px; }
.services .intro h2 { text-align: center; margin-bottom: 0.8em; }
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 36px);
  margin-bottom: 50px;
}
.price-card {
  background: var(--white);
  display: flex; flex-direction: column;
}
/* After the reveal finishes, switch to a snappier transition for the hover lift */
.price-card.reveal.in { transition: transform .3s ease, box-shadow .3s ease; }
.price-card.in:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(33,32,32,.14); }
.price-card__body { display: flex; flex-direction: column; align-items: center; flex: 1; }
.card-link {
  margin-top: auto; padding-top: 18px;
  color: var(--ink); font-weight: 600; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
}
.card-link span { display: inline-block; transition: transform .25s ease; }
.card-link:hover span, .price-card:hover .card-link span { transform: translateX(4px); }
/* min-height:0 stops the flex column from stretching the image to its natural height */
.price-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; min-height: 0; flex: none; }
.price-card__body { padding: 28px 28px 34px; text-align: center; }
.price-card h3 { margin-bottom: .4em; }
.price-card .rate { font-size: 1.2rem; color: var(--blue); font-weight: 600; margin: 0; }
.price-card .plus { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin: .3em 0 0; opacity: .75; }
.pricing-note { max-width: 820px; margin: 0 auto 36px; text-align: center; font-size: 1rem; }

/* Expect */
.expect { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: start; }
.expect ul { list-style: none; padding: 0; margin: 0; }
.expect li {
  padding: 0 0 1.1em 34px; position: relative; font-size: 1.02rem;
}
.expect li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 14px; height: 14px; border: 2px solid var(--white);
}
.expect figure { margin: 0 0 28px; }
.expect figure img { background: var(--white); width: 100%; cursor: zoom-in; }
.expect figcaption { font-size: .9rem; margin-top: 8px; opacity: .85; }

/* About Jon */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.about__photos { display: grid; gap: 22px; justify-items: center; }
.about__photos img { width: 100%; object-fit: cover; }
/* Source photo is only 400x400 — never display it larger than that */
.about__photos .jon { width: min(100%, 320px); aspect-ratio: 1; border-radius: 50%; }
.about a { color: var(--blue); font-weight: 600; }

/* Clients */
.clients h2 { text-align: center; margin-bottom: 1.2em; }
.client-list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1150px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px;
}
.client-list li {
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 300px;
  padding: .45em 1.1em;
  font-size: .95rem;
}
.client-list li.you { background: var(--blue); border-color: var(--blue); }

/* Testimonials */
.testimonial {
  position: relative;
  min-height: 600px;
  display: grid; place-items: center;
  padding: 80px var(--gutter);
  background: var(--grey) center / cover no-repeat;
}
.testimonial::before { content: ""; position: absolute; inset: 0; background: rgba(222,222,222,.86); }
.testimonial blockquote {
  position: relative; margin: 0; max-width: 900px; text-align: center;
}
.testimonial blockquote p {
  font-family: var(--head); letter-spacing: -0.02em;
  font-size: clamp(1.3rem, 2.3vw, 1.9rem); line-height: 1.35;
}
.testimonial cite { font-style: normal; font-size: 1rem; display: block; }
.testimonial cite::before { content: "— "; }

/* Gallery CTA */
.gallery-cta { text-align: center; }
.gallery-cta h2 { max-width: 900px; margin: 0 auto 1em; }

/* Footer */
.site-footer { padding: clamp(50px, 7vw, 90px) var(--gutter); }
.footer-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.site-footer h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p, .site-footer li { margin: 0 0 .35em; }
.site-footer a { color: var(--blue); text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }
.service-area { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.map-wrap { margin: 0; }
.area-map { width: 100%; max-width: 360px; height: auto; display: block; margin-left: auto; }
.area-map .st { fill: #cbcbcb; stroke: var(--grey); stroke-width: .6; stroke-linejoin: round; }
.area-map .radius { fill: rgba(37, 71, 160, 0.18); stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 4 3; }
.area-map .radius-center { fill: var(--blue); }
.area-map text {
  font-family: var(--body); font-weight: 600; font-size: 6px;
  fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none;
}
.map-legend { display: flex; gap: 16px; justify-content: flex-end; margin-top: 10px; font-size: .8rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 12px; height: 12px; display: inline-block; }
.map-legend .k-radius { background: rgba(37, 71, 160, 0.18); border: 1.5px dashed var(--blue); border-radius: 50%; }
.label { display: block; font-size: .85rem; opacity: .7; margin-top: .8em; }
.copyright { max-width: var(--max); margin: 50px auto 0; font-size: .85rem; opacity: .7; }

/* Gallery page */
.gallery-head { padding-top: clamp(40px, 6vw, 80px); padding-bottom: 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  max-width: var(--max); margin: 0 auto;
}
.gallery-grid button {
  padding: 0; border: 0; background: var(--white); cursor: zoom-in;
  aspect-ratio: 4 / 3; overflow: hidden;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-grid button:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 20, 20, .94);
  display: none; align-items: center; justify-content: center;
  padding: 60px 16px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 100%; max-width: 100%; object-fit: contain; background: var(--white); }
.lightbox button {
  position: absolute; background: none; border: 0; color: var(--white);
  font-size: 2.4rem; line-height: 1; cursor: pointer; padding: 10px 16px;
}
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 900px) {
  .pricing, .expect, .about, .footer-grid { grid-template-columns: 1fr; }
  .site-header__inner { padding: 14px var(--gutter); }
  .stats__list { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats__list li:nth-child(3) { border-left: 0; }
  .about__photos { grid-template-columns: 1fr 1fr; align-items: center; }
  .about__photos .jon { width: min(100%, 260px); }
  .testimonial { min-height: 460px; }
}

@media (max-width: 560px) {
  .btn--icon .btn-long { display: none; }
  .btn--icon .btn-short { display: inline; }
  .logo img { height: 32px; }
  .service-area { grid-template-columns: 1fr; }
  .area-map { margin-left: 0; }
  .map-legend { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .price-card, .site-header, .site-header__inner, .logo img { transition: none; }
  .price-card.in:hover { transform: none; }
}
/* On phones, keep the header focused on the tap-to-call action. */
@media (max-width: 560px) {
  .header-actions .btn--icon:nth-child(n + 2) { display: none; }
}
