/* =========================================================
   Nic Davies — Style System (v2: matches live site identity)
   Palette: black / white / signal red, bold rounded cards
   Font: Poppins (headings + body), geometric rounded sans
   ========================================================= */

:root {
  --color-bg: #FFFFFF;
  --color-black: #0A0A0A;
  --color-red: #E8291C;
  --color-red-dark: #C21F14;
  --color-ink: #0A0A0A;
  --color-ink-soft: #4A4A4A;
  --color-white-soft: #E9E9E9;
  --color-line: #E4E4E4;

  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --max-width: 1220px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 500; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); font-weight: 600; }

p { margin: 0 0 1.1em; color: var(--color-ink-soft); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Section heading with hairline rule ---------- */
.section-heading {
  text-align: center;
  padding: 4.5rem 0 2.5rem;
}
.section-heading .rule-top {
  width: 220px;
  height: 1px;
  background: var(--color-line);
  margin: 0 auto 1.6rem;
}
.section-heading h2 { margin: 0; }
.section-heading.on-dark h2 { color: #fff; }
.heading-underline {
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-thickness: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 1em 2em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-red);
  color: #fff;
}
.btn-primary:hover { background: var(--color-red-dark); transform: translateY(-1px); }
.btn-outline-dark {
  border-color: var(--color-black);
  color: var(--color-black);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--color-black); color: #fff; }
.btn-outline-light {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.btn-outline-light:hover { background: #fff; color: var(--color-black); }
.btn-black {
  background: var(--color-black);
  color: #fff;
}
.btn-black:hover { background: #2a2a2a; }

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
.logo { display: flex; align-items: center; }
.logo-mark { height: 44px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.main-nav a:not(.btn) {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-ink);
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.2s ease;
}
.main-nav a:not(.btn):hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav .btn-primary { padding: 0.85em 1.8em; }

.nav-icon { width: 20px; height: 20px; display: inline-flex; color: var(--color-black); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-black);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 92px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.8rem;
    padding: 2.2rem var(--gutter);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    border-bottom: 1px solid var(--color-line);
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-toggle { display: block; }
}

/* ---------- Hero (split black / photo) ---------- */
.hero {
  background: var(--color-black);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 620px;
}
.hero-copy {
  padding: 4rem var(--gutter) 4rem clamp(20px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
}
.hero-copy .eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 1.2rem;
  display: block;
}
.hero-copy h1 { color: #fff; margin-bottom: 0.5em; }
.hero-copy .lede {
  color: var(--color-white-soft);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2rem;
}
.hero-figure {
  position: relative;
  min-height: 340px;
}
.hero-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(1.05);
  position: absolute;
  inset: 0;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-figure { height: 340px; order: -1; }
  .hero-copy { padding: 2.6rem var(--gutter); max-width: none; }
}

/* ---------- Ticker / marquee ---------- */
.ticker {
  background: var(--color-red);
  overflow: hidden;
  white-space: nowrap;
  padding: 1.1rem 0;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker-scroll 26s linear infinite;
}
.ticker-track span {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Feature triplet (red rounded cards) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  padding-bottom: 4rem;
}
.feature-card {
  background: var(--color-red);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  color: #fff;
}
.feature-card .icon {
  width: 42px; height: 42px;
  margin-bottom: 1.6rem;
  color: #fff;
}
.feature-card h3 { color: #fff; margin-bottom: 0.6rem; }
.feature-card p { color: rgba(255,255,255,0.92); margin: 0; font-size: 0.98rem; }

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Red block quote / about-in-15 ---------- */
.red-block {
  background: var(--color-red);
  border-radius: var(--radius-lg);
  padding: clamp(2.2rem, 5vw, 3.6rem);
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.red-block p {
  color: #fff;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 1em;
}
.red-block p:last-child { margin-bottom: 0; }
.red-block .hl { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Approach accordion (dark section) ---------- */
.approach-section {
  background: var(--color-black);
  padding: 4.5rem 0;
  margin-top: 3rem;
}
.approach-heading {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  margin-bottom: 2.5rem;
}
.approach-heading .bar {
  width: 8px;
  border-radius: 4px;
  background: var(--color-red);
  align-self: stretch;
  min-height: 70px;
}
.approach-heading h2 { color: #fff; margin: 0; max-width: 14ch; }

.accordion { border-top: 1px solid rgba(255,255,255,0.16); }
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.16); }
.accordion-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary .plus {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.accordion-item summary .plus::before,
.accordion-item summary .plus::after {
  content: "";
  position: absolute;
  background: #fff;
}
.accordion-item summary .plus::before { width: 10px; height: 1.5px; }
.accordion-item summary .plus::after { width: 1.5px; height: 10px; }
.accordion-item[open] summary .plus { background: var(--color-red); border-color: var(--color-red); transform: rotate(45deg); }
.accordion-item .accordion-body {
  padding: 0 0 1.8rem;
  max-width: 70ch;
}
.accordion-item .accordion-body p { color: var(--color-white-soft); margin: 0; }

/* ---------- CTA banner (light, bold accent text) ---------- */
.cta-banner {
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 {
  max-width: 26ch;
  margin: 0 auto 2rem;
}
.cta-banner strong { font-weight: 700; }

/* ---------- Services: intro band ---------- */
.intro-band {
  background: var(--color-black);
  padding: 4rem 0;
}
.intro-band .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.intro-band-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.intro-band-figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-band-copy .eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-red);
  display: block;
  margin-bottom: 1rem;
}
.intro-band-copy h1 { color: #fff; }
.intro-band-copy p { color: var(--color-white-soft); font-size: 1.05rem; }

@media (max-width: 860px) {
  .intro-band .wrap { grid-template-columns: 1fr; }
}

/* ---------- Focus area carousel (services page, white cards on red band) ---------- */
.focus-band {
  background: var(--color-red);
  padding: 4.5rem 0;
}
.focus-band .section-heading h2 { color: #fff; }
.focus-band .section-heading .rule-top { background: rgba(255,255,255,0.35); }

.focus-carousel-viewport {
  overflow: hidden;
}
.focus-carousel {
  display: flex;
  gap: 1.6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.focus-carousel::-webkit-scrollbar { display: none; }
.focus-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  color: var(--color-ink);
  flex: 0 0 calc((100% - 3.2rem) / 3);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.focus-card h3 { color: var(--color-ink); margin-bottom: 0.8rem; }
.focus-card p { color: var(--color-ink-soft); flex: 1; }
.focus-card .btn { align-self: center; margin-top: 1rem; }

.focus-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.focus-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.focus-nav button:hover { background: rgba(255,255,255,0.5); }
.focus-nav button svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .focus-card { flex: 0 0 calc((100% - 1.6rem) / 2); }
}
@media (max-width: 620px) {
  .focus-card { flex: 0 0 88%; }
}

/* ---------- About page ---------- */
.about-hero { padding: 4.5rem 0 2rem; }
.about-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: sticky;
  top: 110px;
  background: var(--color-red);
  aspect-ratio: 3/4.4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 14%;
}
.about-photo img {
  filter: grayscale(100%) contrast(1.05);
  width: 88%;
  height: auto;
  display: block;
}
.about-photo-caption {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-top: 0.8rem;
}

@media (max-width: 860px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; max-width: 340px; }
}

.ventures {
  margin: 2rem 0;
  padding: 1.8rem;
  background: #fff;
  border: 2px solid var(--color-black);
  border-radius: var(--radius-md);
}
.ventures h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  margin-bottom: 1rem;
}
.ventures ul { margin: 0; padding: 0; list-style: none; }
.ventures li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
}
.ventures li:last-child { border-bottom: none; }
.ventures a { color: var(--color-red); font-weight: 600; }
.ventures a:hover { text-decoration: underline; }

/* ---------- Highlights band (about page, full red band, plain columns) ---------- */
.highlights-band {
  background: var(--color-red);
  padding: 4rem 0;
  text-align: center;
}
.highlights-band h2 { color: #fff; margin-bottom: 3rem; }
.highlights-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  text-align: center;
}
.highlights-cols h3 { color: #fff; margin-bottom: 0.8rem; }
.highlights-cols p { color: rgba(255,255,255,0.92); margin: 0; font-size: 0.95rem; }

@media (max-width: 760px) {
  .highlights-cols { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-hero { padding: 4.5rem 0 2rem; }
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: 4.5rem;
}
@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.contact-details {
  background: var(--color-black);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
}
.contact-details dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin-top: 1.4rem;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { margin: 0.3rem 0 0; font-size: 1.05rem; color: #fff; }
.contact-details a { color: #fff; }
.contact-details a:hover { color: var(--color-red); }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-soft);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: #fff;
  border: 2px solid var(--color-line);
  padding: 0.9em 1.1em;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-ink);
  border-radius: var(--radius-md);
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { border-color: var(--color-red); }

.form-status {
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  display: none;
}
.form-status.success { display: block; color: #1e7a37; }
.form-status.error { display: block; color: var(--color-red-dark); }

.hp-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  padding: 3rem 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-family: var(--font-heading); font-weight: 500; font-size: 0.85rem; color: var(--color-white-soft); }
.footer-links a:hover { color: var(--color-red); }
.copyright { font-family: var(--font-heading); font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-red);
  color: #fff;
  padding: 0.8em 1.2em;
  z-index: 100;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus { left: var(--gutter); top: 12px; }

/* generic section spacing helper */
section.wrap { padding-top: 1rem; padding-bottom: 1rem; }

/* =========================================================
   MOBILE & CAROUSEL REFINEMENTS
   Appended — overrides earlier rules by cascade order.
   ========================================================= */

/* --- Never allow sideways scroll on the page itself --- */
html, body { overflow-x: hidden; max-width: 100%; }

/* Long words / URLs must never blow out a container on narrow screens */
h1, h2, h3, h4, p, li, a, summary { overflow-wrap: break-word; word-break: normal; hyphens: auto; }

/* --- Nav: LinkedIn gets a readable label inside the mobile menu --- */
.nav-linkedin { display: inline-flex; align-items: center; gap: 10px; }
.nav-linkedin-label { display: none; }

@media (max-width: 860px) {
  /* Menu panel scrolls if the viewport is short (landscape phones) */
  .main-nav {
    inset: 92px 0 auto 0;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    gap: 1.4rem;
    padding-bottom: 2.6rem;
  }
  /* Bigger tap targets inside the menu */
  .main-nav a:not(.btn) {
    font-size: 1.15rem;
    padding: 10px 0;
    width: 100%;
  }
  .nav-linkedin-label { display: inline; }
  .main-nav .btn-primary { width: 100%; justify-content: center; padding: 1em 2em; }
  .nav-toggle { padding: 11px 18px; }
}

/* --- Focus carousel: visible, swipeable, well-spaced on phones --- */
.focus-carousel-viewport {
  overflow: hidden;
  /* let cards bleed to the screen edge on mobile so the "peek" reads properly */
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.focus-carousel {
  scroll-padding-inline-start: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding-bottom: 0.5rem;
}
.focus-card {
  /* stop cards collapsing if content is short, and keep them visually even */
  min-height: 300px;
  justify-content: flex-start;
}
.focus-card p { margin-bottom: 1.4rem; }

/* Arrows: proper contrast against the red band (was 30% white on red) */
.focus-nav button {
  background: #fff;
  color: var(--color-red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  width: 52px; height: 52px;
}
.focus-nav button:hover { background: #fff; transform: translateY(-2px); }
.focus-nav button:active { transform: translateY(0); }
.focus-nav button svg { width: 22px; height: 22px; stroke-width: 2.5; }

/* Swipe hint, shown only on touch screens where arrows matter less */
.focus-hint {
  display: none;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1.2rem;
}

@media (max-width: 900px) {
  .focus-card { flex: 0 0 calc((100% - 1.6rem) / 2); min-height: 280px; }
}

@media (max-width: 620px) {
  .focus-card {
    flex: 0 0 86%;
    padding: 2rem 1.6rem;
    min-height: 0;               /* let height follow content on phones */
  }
  .focus-carousel { gap: 1rem; }
  .focus-nav { margin-top: 1.4rem; gap: 0.8rem; }
  .focus-hint { display: block; }
}

/* --- Tighter vertical rhythm on phones (kills the big empty colour gaps) --- */
@media (max-width: 720px) {
  .section-heading { padding: 2.8rem 0 1.6rem; }
  .section-heading .rule-top { width: 140px; margin-bottom: 1.1rem; }
  .focus-band { padding: 2.8rem 0 3rem; }
  .intro-band { padding: 2.8rem 0; }
  .cta-banner { padding: 3rem 0; }
  .cta-banner h2 { max-width: 20ch; margin-bottom: 1.6rem; }
  .approach-section { padding-top: 2.8rem; padding-bottom: 2.8rem; }
  .site-footer { padding: 2.2rem 0; }
}

/* --- Ticker: readable and not overwhelming on small screens --- */
@media (max-width: 620px) {
  .ticker { padding: 0.85rem 0; }
  .ticker-track { gap: 2rem; }
  .ticker-track span { font-size: 0.9rem; }
}

/* --- Hero on phones --- */
@media (max-width: 620px) {
  .hero-figure { height: 300px; }
  .hero-copy { padding: 2.2rem var(--gutter) 2.6rem; }
  .hero-copy .lede { font-size: 1rem; margin-bottom: 1.6rem; }
}

/* --- Every button is a comfortable tap target --- */
@media (max-width: 720px) {
  .btn { min-height: 48px; padding: 0.95em 1.8em; }
}

/* --- Footer stacks cleanly instead of squashing --- */
@media (max-width: 620px) {
  .site-footer .wrap { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem 1.4rem; }
}

/* --- Feature + form grids collapse properly --- */
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { position: static; top: auto; }
}

/* --- Respect notches / rounded corners on modern phones --- */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
  }
}
