/* ==========================================================================
   PJA Carpentry Services — site styles
   A warm, crafted, modern look: deep charcoal, cream, oak & brass.
   ========================================================================== */

:root {
  --ink: #1a2635;
  --ink-soft: #45566b;
  --ink-faint: #71829a;
  --cream: #f7f9fc;
  --cream-deep: #eaf0f7;
  --paper: #ffffff;
  --oak: #2b6ea6;
  --oak-deep: #1f5581;
  --brass: #8db8dd;
  --walnut: #1c2f42;
  --line: #dce4ed;
  --success: #3e7a4e;
  --error: #b23a3a;

  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(23, 37, 54, 0.08);
  --shadow-lift: 0 18px 44px rgba(23, 37, 54, 0.14);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--oak-deep); }
a:hover { color: var(--oak); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

.section { padding: clamp(3.2rem, 8vw, 6rem) 0; }
.section--tint { background: var(--cream-deep); }
.section--dark { background: var(--walnut); color: #dfe8f2; }
.section--dark h2, .section--dark h3 { color: #f2f7fc; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--oak-deep);
  margin-bottom: 0.9rem;
}
.section--dark .kicker { color: var(--brass); }

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 46rem;
}
.section--dark .lead { color: #b9c9da; }

.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
svg.logo { height: 62px; width: auto; display: block; }
.logo-pja { font-family: var(--font-display); fill: var(--oak-deep); }
.logo-sub { font-family: var(--font-body); fill: var(--ink); }
.logo-roof { stroke: var(--oak); }
.logo-base { stroke: var(--oak); }
.logo--footer { height: 72px; margin-bottom: 0.6rem; }
.logo--footer .logo-pja { fill: #7fb2d9; }
.logo--footer .logo-sub { fill: #dfe8f2; }
.logo--footer .logo-roof, .logo--footer .logo-base { stroke: #7fb2d9; }
@media (max-width: 720px) { svg.logo { height: 52px; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--oak);
}

.nav-cta { white-space: nowrap; }
.nav-links a.btn {
  padding: 0.78rem 1.55rem;
  border-bottom: none;
  color: #fff;
}
.nav-links a.btn:hover { color: #fff; }
.page-hero .hero-meta { margin-top: 1.4rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.78rem 1.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-body);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--oak);
  color: #fff;
  box-shadow: 0 6px 18px rgba(43, 110, 166, 0.35);
}
.btn--primary:hover { background: var(--oak-deep); color: #fff; }

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.section--dark .btn--ghost { border-color: #b9c9da; color: #dfe8f2; }
.section--dark .btn--ghost:hover { background: #dfe8f2; color: var(--walnut); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(90, 150, 205, 0.18), transparent 60%),
    var(--cream);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 em {
  font-style: italic;
  color: var(--oak-deep);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  color: var(--ink-faint);
  font-size: 0.92rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 18px; height: 18px; color: var(--oak); }

.hero-figure { position: relative; }
.hero-figure .frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
}
.hero-figure .frame img, .hero-figure .frame svg { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute;
  left: -1.4rem;
  bottom: 1.6rem;
  background: var(--paper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 0.9rem 1.15rem;
  max-width: 260px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero-card strong { display: block; color: var(--ink); font-size: 1rem; }
.stars { color: #dfa32c; letter-spacing: 0.12em; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Full-bleed hero banner
   -------------------------------------------------------------------------- */
.hero-full {
  position: relative;
  overflow: hidden;
  background: var(--walnut);
}
.hero-full > img {
  width: 100%;
  height: clamp(420px, 72vh, 680px);
  object-fit: cover;
  display: block;
}
.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 22, 34, 0.85) 0%, rgba(12, 22, 34, 0.35) 45%, rgba(12, 22, 34, 0.15) 100%);
}
.hero-full-content {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding-bottom: clamp(2rem, 5vw, 3.6rem);
  color: #fff;
}
.hero-full-content h1 {
  color: #fff;
  max-width: 18ch;
  text-shadow: 0 2px 18px rgba(10, 18, 28, 0.55);
}
.hero-full-content h1 em { color: #a8d0f0; font-style: italic; }
.hero-full-content .lead {
  color: #e6eef7;
  text-shadow: 0 1px 12px rgba(10, 18, 28, 0.6);
}
.hero-full-content .hero-meta { color: #d5e2ef; }
.hero-full-content .hero-meta svg { color: #a8d0f0; }
.hero-full-content .btn--ghost { border-color: #fff; color: #fff; }
.hero-full-content .btn--ghost:hover { background: #fff; color: var(--walnut); }

/* Latest work gallery links */
a.work-item { text-decoration: none; color: inherit; }
.work-item .view-tag {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--oak-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.work-item:hover .view-tag { opacity: 1; }

/* Project detail pages */
.project-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--cream-deep);
}
.project-hero img { width: 100%; max-height: 72vh; object-fit: cover; display: block; }
.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2rem, 5vw, 3.6rem);
  align-items: start;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.project-aside .card { margin-bottom: 1.2rem; }
.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .project-layout { grid-template-columns: 1fr; }
  .hero-full > img { height: 60vh; }
}

/* --------------------------------------------------------------------------
   Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stats .stat {
  padding: 1.4rem 0.8rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--oak-deep);
}
.stat span { font-size: 0.9rem; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Cards / grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card--feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--feature > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card--feature .card-body { padding: 1.8rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--cream-deep), #fff);
  border: 1px solid var(--line);
  color: var(--oak-deep);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 0.4rem; }
.card .card-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Portfolio / gallery
   -------------------------------------------------------------------------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.work-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: var(--cream-deep);
}
.work-item--tall { aspect-ratio: 3 / 4; grid-row: span 2; }
.work-item img, .work-item svg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.work-item:hover img, .work-item:hover svg { transform: scale(1.04); }
.work-item figcaption, .work-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.1rem 0.9rem;
  background: linear-gradient(transparent, rgba(15, 27, 41, 0.82));
  color: #f5efe4;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.2rem;
}
.filter-bar button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
}
.filter-bar button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background: rgba(10, 18, 28, 0.92);
  padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(92vw, 1000px); }
.lightbox img, .lightbox svg { max-height: 80vh; width: auto; max-width: 100%; border-radius: var(--radius-sm); margin-inline: auto; }
.lightbox figcaption { color: #dbe5ef; text-align: center; margin-top: 0.8rem; }
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 4.2rem;
  line-height: 0.6;
  color: var(--brass);
  display: block;
  margin-bottom: 0.9rem;
}
.quote-card blockquote {
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
  flex: 1;
}
.quote-card cite {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}
.quote-card cite span {
  display: block;
  font-weight: 400;
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.quote-banner {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}
.quote-banner blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 1.2rem;
  color: #eef4fa;
}
.quote-banner cite { font-style: normal; color: var(--brass); font-weight: 600; }

/* --------------------------------------------------------------------------
   Facebook embed (click-to-load)
   -------------------------------------------------------------------------- */
.fb-embed {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.fb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}
.fb-embed iframe {
  border: 0;
  width: 100%;
  max-width: 500px;
  height: 640px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.fb-embed .fb-note { width: 100%; text-align: center; font-size: 0.85rem; color: var(--ink-faint); }

/* --------------------------------------------------------------------------
   Process
   -------------------------------------------------------------------------- */
.process { counter-reset: step; }
.process .card { position: relative; padding-top: 2.2rem; }
.process .card::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -1.1rem;
  left: 1.6rem;
  background: var(--oak);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.95rem;
  box-shadow: 0 6px 16px rgba(43, 110, 166, 0.4);
}

/* --------------------------------------------------------------------------
   Split feature rows
   -------------------------------------------------------------------------- */
.feature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature-row + .feature-row { margin-top: clamp(3rem, 7vw, 5rem); }
.feature-row .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 3;
  background: var(--cream-deep);
}
.feature-row .media img, .feature-row .media svg { width: 100%; height: 100%; object-fit: cover; }
.feature-row--flip .media { order: 2; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 1.05em;
  height: 1.05em;
  border-radius: 50%;
  background: var(--oak);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 70% no-repeat, linear-gradient(#000, #000);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>') center / 70% no-repeat, linear-gradient(#000, #000);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
}
/* simpler tick fallback */
.checklist li::before {
  background: none;
  -webkit-mask: none;
  mask: none;
  content: "\2713";
  color: var(--oak);
  font-weight: 800;
  width: auto;
  height: auto;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   CTA panel
   -------------------------------------------------------------------------- */
.cta-panel {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(90, 150, 205, 0.25), transparent 60%),
    var(--walnut);
  border-radius: calc(var(--radius) + 6px);
  color: #dfe8f2;
  text-align: center;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.4rem, 5vw, 4rem);
}
.cta-panel h2 { color: #f2f7fc; }
.cta-panel p { color: #b9c9da; max-width: 40rem; margin-inline: auto; }
.cta-panel .btn { margin-top: 1.2rem; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-info .card { margin-bottom: 1.2rem; }
.contact-info a { text-decoration: none; font-weight: 600; }
.contact-info .icon-line {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}
.contact-info .icon-line svg { width: 22px; height: 22px; color: var(--oak-deep); flex: none; margin-top: 0.2rem; }

form.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: 0.92rem; }
.form-field label .req { color: var(--error); }
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--oak);
  outline-offset: 1px;
  border-color: var(--oak);
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 1.1rem 0 1.4rem;
}
.form-consent input { margin-top: 0.25rem; }
.form-note { font-size: 0.85rem; color: var(--ink-faint); margin-top: 1rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--walnut);
  color: #b3c2d3;
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  margin-bottom: 2.6rem;
}
.site-footer h4 {
  color: #e8eff7;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #b3c2d3; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-brand .brand-name { color: #f2f7fc; }
.footer-brand .brand-sub { color: var(--brass); }
.footer-bottom {
  border-top: 1px solid rgba(179, 194, 211, 0.25);
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.8rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8296ab;
}
.footer-bottom a { color: #8296ab; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Cookie consent banner
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 80;
  max-width: 30rem;
  margin-left: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.4rem 1.5rem;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.cookie-banner p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-actions .btn { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* --------------------------------------------------------------------------
   Prose pages (privacy etc.)
   -------------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose ul { color: var(--ink-soft); }
.prose li { margin-bottom: 0.4rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.prose th { background: var(--cream-deep); }
.page-hero { padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(1.6rem, 4vw, 2.6rem); }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s 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: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-figure { max-width: 30rem; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.2rem 1.2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.7rem 0.2rem; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 0.9rem; text-align: center; }
  .grid--3, .grid--2, .form-grid, .feature-row, .contact-layout { grid-template-columns: 1fr; }
  .feature-row--flip .media { order: 0; }
  .work-grid { grid-template-columns: 1fr; }
  .work-item--tall { grid-row: auto; aspect-ratio: 4 / 3; }
  .hero-card { left: 0.8rem; right: 0.8rem; max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
