/* ==========================================================================
   El Focale Photography — styles
   Colours are taken directly from the logo.
   ========================================================================== */

/* Poppins, hosted on this site (SIL Open Font License, see /fonts/OFL.txt) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/poppins-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/poppins-latin-600-normal.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --paper: #f5f5f4;        /* soft grey section background */
  --frame: #e9e9e7;        /* empty photo slot */
  --line: #e3e3e1;         /* hairlines */
  --grey: #5e5e5e;         /* logo grey — body text */
  --ink: #0b0b0b;          /* logo black — headings, buttons */
  --red: #e53935;          /* logo red — accents */
  --red-dark: #c62828;     /* red for hover states (better contrast) */

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --gap: clamp(12px, 2vw, 24px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p { margin: 0 0 1em; color: var(--grey); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

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

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

a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* Gutters also clear the notch / rounded corners when a phone is held sideways */
.container {
  width: 100%;
  max-width: calc(var(--container) + env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(72px, 10vw, 128px); }
.section--paper { background: var(--paper); }
.section--flush-top { padding-top: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.dot { color: var(--red); }

.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 50px;
  padding: 14px 28px;
  text-align: center;
  font: 500 0.78rem/1.4 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: 8px;
}
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow:hover { color: var(--red-dark); }

/* ---------- Logo mark (inline SVG) ---------- */

.mark .m-frame { fill: var(--grey); }
.mark .m-letters { fill: var(--ink); }
.mark .m-dot { fill: var(--red); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.brand .mark { width: 50px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-sub {
  margin-top: 6px;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--grey);
}

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  transition: color 0.2s var(--ease);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--ink); }
/* The active page gets the red dot from the logo */
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  transform: translateX(-50%);
}

.quick-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.quick-email svg { width: 16px; height: 16px; }
.quick-email:hover { border-color: var(--ink); }

.nav-toggle { display: none; }

@media (max-width: 820px) {
  :root { --header-h: 68px; }

  .brand .mark { width: 42px; height: 32px; }
  .brand-name { font-size: 1.05rem; }

  .quick-email { margin-left: auto; padding: 10px 12px; }
  .quick-email span { display: none; }

  .js .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 4px max(var(--gutter), env(safe-area-inset-right, 0px)) 24px max(var(--gutter), env(safe-area-inset-left, 0px));
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a {
    padding: 18px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav a[aria-current="page"]::after {
    left: auto;
    right: 4px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  /* Without JavaScript the menu simply wraps below the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) .site-nav { order: 3; width: 100%; margin: 0; }
  html:not(.js) .site-nav ul { gap: 24px; }
}

/* Small phones (iPhone SE, compact Androids, folded foldables down to 280px) */
@media (max-width: 360px) {
  .brand { gap: 10px; }
  .brand .mark { width: 37px; height: 28px; }
  .brand-name { font-size: 0.98rem; }
  .brand-sub { letter-spacing: 0.24em; }
  .header-inner { gap: 12px; }
  .quick-email { padding: 10px; }
}

/* Phones held sideways: shorter header so more of the page is visible */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --header-h: 58px; }
  .brand .mark { width: 37px; height: 28px; }
  .hero { padding-top: 32px; }
}

/* ---------- Photo frames (empty slots until photos are added) ---------- */

.frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 5);
  background: var(--frame);
}
/* Photo shapes: r-4x5 portrait, r-2x3 tall portrait, r-1x1 square, r-4x3 / r-3x2 landscape */
.r-4x5 { --ratio: 4 / 5; }
.r-2x3 { --ratio: 2 / 3; }
.r-1x1 { --ratio: 1 / 1; }
.r-4x3 { --ratio: 4 / 3; }
.r-3x2 { --ratio: 3 / 2; }
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

/* Camera-focus corners, echoing the logo */
.frame::before {
  --c: rgba(94, 94, 94, 0.35);
  --l: 22px;
  --t: 2px;
  content: "";
  position: absolute;
  inset: clamp(12px, 7%, 28px);
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t),
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l);
  background-repeat: no-repeat;
  transition: inset 0.6s var(--ease), opacity 0.4s var(--ease);
}

/* Red focus dot in the middle of an empty slot */
.frame:not(:has(img))::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.55;
}

/* Once a real photo is in, the corners are white and only appear on hover */
.frame:has(img)::before { --c: rgba(255, 255, 255, 0.85); opacity: 0; }

a.frame:hover::before,
a:hover > .frame::before { inset: clamp(20px, 11%, 44px); opacity: 1; }
a.frame:hover img,
a:hover > .frame img { transform: scale(1.03); }

.masonry {
  columns: 3;
  column-gap: var(--gap);
}
.masonry > * {
  display: block;
  break-inside: avoid;
  margin: 0 0 var(--gap);
}

@media (max-width: 900px) { .masonry { columns: 2; } }

/* ---------- Home: hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 112px) clamp(72px, 10vw, 128px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}

.hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero h1 .line { display: block; }
.hero h1 .line + .line { color: var(--grey); }

.hero-lead {
  max-width: 32em;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: clamp(28px, 3.5vw, 44px);
}

.services {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}
.services h2 {
  margin-bottom: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: svc;
}
.service-list li {
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  column-gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: svc;
}
.service-list li::before {
  content: counter(svc, decimal-leading-zero);
  grid-row: span 2;
  padding-top: 0.3em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--grey);
}
.service-name { font-weight: 500; line-height: 1.4; }
.service-desc { margin: 2px 0 0; font-size: 0.875rem; line-height: 1.55; }

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

/* ---------- Home: selected work ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

/* ---------- Home: approach ---------- */

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: center;
}

.approach-text > p { max-width: 36em; margin-top: 24px; }

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin: clamp(32px, 4vw, 44px) 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  padding-top: 18px;
  border-top: 1px solid #d9d9d6;
  counter-increment: step;
}
.steps h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red-dark);
}
.steps p { margin-top: 6px; font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 900px) {
  .approach-grid { grid-template-columns: 1fr; }
  .approach-media { max-width: 440px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Call to action band ---------- */

.cta { text-align: center; }
.cta p { max-width: 30em; margin: 20px auto 0; }
.cta .hero-actions { justify-content: center; }
.cta-email {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease);
}
.cta-email:hover { text-decoration-color: var(--red); }

/* ---------- Inner page intro ---------- */

.page-intro { padding-block: clamp(48px, 7vw, 96px) clamp(28px, 3vw, 44px); }
.page-intro h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  letter-spacing: -0.03em;
}
.page-intro p { max-width: 34em; margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.1rem); }

/* ---------- Portfolio ---------- */

.filters {
  display: none;
  flex-wrap: wrap;
  gap: 0 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.js .filters { display: flex; }

.filter {
  position: relative;
  min-height: 48px;
  padding: 14px 0;
  font: 500 0.78rem/1 var(--font);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.filter:hover { color: var(--ink); }
.filter[aria-pressed="true"] { color: var(--ink); }
.filter[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--ink);
}

.work-item { animation: fade-in 0.5s var(--ease) both; }
.work-item[hidden] { display: none; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .work-item { animation: none; }
  .frame::before, .frame img { transition: none; }
}

/* ---------- Contact ---------- */

.contact { padding-block: 0 clamp(72px, 10vw, 128px); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.contact-details {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.contact-details li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-details svg { width: 20px; height: 20px; margin-top: 3px; color: var(--grey); }
.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}
.contact-value {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
}
a.contact-value:hover { color: var(--red-dark); }

.form-card {
  padding: clamp(24px, 4.5vw, 56px);
  background: var(--paper);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--grey);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  font: 400 1rem/1.5 var(--font);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #cfcfcc;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 170px; resize: vertical; }
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235e5e5e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.was-validated .field :invalid { border-color: var(--red-dark); }

/* Hidden trap field for spam bots */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cf-turnstile { min-height: 65px; max-width: 100%; }

.form-status { grid-column: 1 / -1; margin: 0; font-size: 0.9rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red-dark); }
.form-status a { color: inherit; }

.form-success h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.form-success[hidden] { display: none; }

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

@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .form-card { padding: 24px 18px; }
}

/* ---------- 404 ---------- */

.not-found { padding-block: clamp(96px, 14vw, 180px); text-align: center; }
.not-found h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.not-found p { margin: 18px auto 36px; }

/* ---------- Footer ---------- */

.site-footer {
  padding: clamp(64px, 8vw, 96px) 0 28px;
  font-size: 0.9rem;
  color: #c9c9c9;
  background: #0e0e0e;
}
.site-footer p { color: #a8a8a8; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.3fr 1.2fr;
  gap: 40px;
}

.footer-brand .brand { color: var(--white); }
.footer-brand .brand-sub { color: #a8a8a8; }
.footer-brand .mark .m-frame { fill: #7a7a7a; }
.footer-brand .mark .m-letters { fill: var(--white); }
.footer-brand p { max-width: 22em; margin-top: 22px; }

.site-footer h2 {
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 10px; }
.footer-links a {
  color: #c9c9c9;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--white); }

.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #c9c9c9;
  border: 1px solid #2f2f2f;
  border-radius: 50%;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.socials a:hover { color: var(--white); border-color: var(--red); }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  font-size: 0.78rem;
  color: #8f8f8f;
  border-top: 1px solid #262626;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.site-footer { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
}
