/* Self-hosted fonts (variable, latin subset) */
@font-face{font-family:'Bricolage Grotesque';font-style:normal;font-weight:700 800;font-display:swap;src:url(/fonts/bricolage.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 500;font-display:swap;src:url(/fonts/inter.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Colour */
  --canvas:      #F8FAFC;
  --ink:         #0F172A;
  --body:        #334155;
  --muted:       #475569;
  --teal:        #0057B8;
  --teal-deep:   #004A99;
  --orb-teal:    #0057B8;
  --orb-blue:    #3B82F6;
  --paper:       #FFFDF7;
  --edge:        rgba(15,23,42,0.08);

  /* Surfaces */
  --glass-bg:    rgba(255,255,255,0.72);
  --solid-bg:    rgba(255,255,255,0.96);
  --glass-blur:  16px;
  --radius:      20px;
  --radius-pill: 999px;
  --shadow:      0 8px 32px rgba(15,23,42,0.06);
  --shadow-card: 0 2px 12px rgba(15,23,42,0.05);

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  /* Layout */
  --maxw: 1120px;
  --header-h: 68px;

  /* Type scale */
  --h1-size:   clamp(2.25rem, 5.5vw, 4rem);
  --h2-size:   clamp(1.75rem, 3.5vw, 2.5rem);
  --h3-size:   1.25rem;
  --body-size: 1.0625rem;
  --lead-size: 1.1875rem;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--canvas);
  color: var(--body);
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--body-size);
  line-height: 1.65;
  overflow-x: hidden;
  background: var(--canvas);
  min-height: 100dvh;
}

h1, h2, h3, .price, blockquote {
  font-family: 'Bricolage Grotesque', 'Georgia', serif;
}

h1 {
  font-size: var(--h1-size);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h2 {
  font-size: var(--h2-size);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h3 {
  font-size: var(--h3-size);
  font-weight: 700;
  color: var(--ink);
}

p { color: var(--body); }

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

img, svg { display: block; }

ul { list-style: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

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

/* ============================================================
   BACKGROUND LAYER (orbs + contour map)
   ============================================================ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--canvas);
}

.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60vw 50vh at 15% 20%, rgba(13,148,136,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50vw 55vh at 85% 70%, rgba(59,130,246,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40vw 40vh at 60% 10%, rgba(59,130,246,0.06) 0%, transparent 70%);
}

.contour-map {
  position: absolute;
  bottom: -5%;
  right: -5%;
  width: 55vw;
  max-width: 700px;
  min-width: 260px;
  opacity: 1;
}

@media (max-width: 640px) {
  .contour-map {
    width: 90vw;
    bottom: -2%;
    right: -10%;
    opacity: 0.7;
  }
}

/* ============================================================
   GLASS & CARD SURFACES
   ============================================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
  border-radius: var(--radius);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass { background: rgba(255,255,255,0.94); }
}

.card {
  background: var(--solid-bg);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-6); }
}

@media (min-width: 960px) {
  .container { padding-inline: var(--space-7); }
}

.section {
  padding-block: var(--space-8);
}

@media (min-width: 640px) {
  .section { padding-block: calc(var(--space-8) * 1.25); }
}

[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ============================================================
   UTILITIES
   ============================================================ */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,87,184,0.25);
}

.btn-ghost {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--teal);
  border: 1px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.9);
  color: var(--teal-deep);
  transform: translateY(-1px);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-weight: 500;
  text-decoration: none;
  z-index: 1000;
  transition: top 0.1s;
}

.skip-link:focus { top: 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(248,250,252,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--edge);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 2px 12px rgba(15,23,42,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 640px) { .header-inner { padding-inline: var(--space-6); } }
@media (min-width: 960px) { .header-inner { padding-inline: var(--space-7); } }

.logo {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo span { color: var(--teal); }

.logo:hover { color: var(--ink); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
}

@media (min-width: 760px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--body);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-radius: 6px;
  transition: color 0.12s, background 0.12s;
}

.nav-links a:hover {
  color: var(--teal);
  background: rgba(0,87,184,0.06);
}

.nav-cta {
  display: none;
}

@media (min-width: 760px) {
  .nav-cta { display: inline-flex; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink);
}

@media (min-width: 760px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(248,250,252,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  gap: var(--space-4);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.mobile-nav.is-open { transform: translateX(0); }

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--edge);
  display: block;
}

.mobile-nav a:hover { color: var(--teal); }

.mobile-nav .btn {
  margin-top: var(--space-2);
  width: 100%;
}

/* no-js: show nav links without hamburger; show mailto fallback */
.no-js .hamburger { display: none; }
.no-js .nav-links { display: flex; flex-wrap: wrap; }
.no-js .nav-cta { display: inline-flex; }
.no-js .mailto-fallback { display: block; }
.no-js #submit-btn { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: calc(var(--space-8) + var(--space-4));
  padding-bottom: var(--space-7);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (min-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.hero-copy { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(0,87,184,0.08);
  border: 1px solid rgba(0,87,184,0.15);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

.hero-eyebrow svg { flex-shrink: 0; }

.hero-lead {
  font-size: var(--lead-size);
  color: var(--body);
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Hero visual: noticeboard → website */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.notice-layer, .browser-layer {
  position: absolute;
  border-radius: 10px;
}

.notice-layer {
  background: var(--paper);
  width: 220px;
  height: 290px;
  transform: rotate(-2deg) translate(-30px, 10px);
  box-shadow: 0 4px 20px rgba(15,23,42,0.12);
  padding: 20px 18px 18px;
  animation: noticeSettle 0.7s cubic-bezier(0.34,1.56,0.64,1) forwards;
  animation-delay: 0.1s;
  opacity: 0;
  transform-origin: center bottom;
}

@keyframes noticeSettle {
  from { opacity: 0; transform: rotate(-6deg) translate(-30px, 30px); }
  to   { opacity: 1; transform: rotate(-2deg) translate(-30px, 10px); }
}

.notice-pin {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(15,23,42,0.2);
  margin: 0 auto var(--space-3);
}

.notice-title {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.notice-line {
  height: 7px;
  border-radius: 3px;
  background: rgba(15,23,42,0.12);
  margin-bottom: 7px;
}

.notice-line.short  { width: 70%; }
.notice-line.medium { width: 85%; }
.notice-line.shorter { width: 55%; }

.notice-strikeout {
  height: 7px;
  border-radius: 3px;
  background: rgba(15,23,42,0.12);
  margin-bottom: 7px;
  width: 80%;
  position: relative;
}

.notice-strikeout::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(15,23,42,0.4);
  border-radius: 1px;
}

.notice-caption {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}

.browser-layer {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.9);
  width: 240px;
  height: 300px;
  transform: translate(30px, -10px);
  overflow: hidden;
}

.browser-bar {
  height: 36px;
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
}

.browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(15,23,42,0.15);
}

.browser-addr {
  flex: 1;
  height: 18px;
  border-radius: 999px;
  background: rgba(15,23,42,0.08);
  margin-left: 4px;
}

.browser-content {
  padding: 10px;
}

.skel-nav {
  height: 8px;
  border-radius: 4px;
  background: rgba(0,87,184,0.18);
  margin-bottom: 10px;
  width: 100%;
}

.skel-heading {
  height: 14px;
  border-radius: 4px;
  background: rgba(15,23,42,0.12);
  margin-bottom: 8px;
  width: 90%;
  animation: skelFadeUp 0.4s ease forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.skel-btn-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  animation: skelFadeUp 0.4s ease forwards;
  animation-delay: 0.75s;
  opacity: 0;
}

.skel-btn {
  height: 20px;
  border-radius: 999px;
  background: rgba(0,87,184,0.22);
  width: 60px;
}

.skel-row {
  height: 7px;
  border-radius: 3px;
  background: rgba(15,23,42,0.08);
  margin-bottom: 6px;
  animation: skelFadeUp 0.4s ease forwards;
  opacity: 0;
}

/* delays applied inline on each .skel-row element */

@keyframes skelFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .notice-layer, .skel-heading, .skel-btn-row, .skel-row {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .notice-layer { transform: rotate(-2deg) translate(-30px, 10px); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  margin-top: var(--space-6);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
}

@media (min-width: 640px) {
  .trust-bar-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
  }
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,87,184,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.3;
}

.trust-text small {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0,87,184,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card h3 { margin-bottom: var(--space-2); }

.service-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================================
   WORK
   ============================================================ */
.section-lead {
  color: var(--muted);
  margin-top: var(--space-3);
  max-width: 52ch;
  font-size: 0.9375rem;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

@media (min-width: 760px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .work-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.work-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.1);
  border-color: rgba(0,87,184,0.2);
}

.work-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.1);
}

/* preview area: replace .preview with <img> tag when screenshot is ready */
/* replace .preview with <img src="..." alt="..." width="1280" height="800"> */
.preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  border-radius: var(--radius) var(--radius) 0 0;
}

.preview-browser {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.preview-browser-bar {
  height: 28px;
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid var(--edge);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
  flex-shrink: 0;
}

.preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15,23,42,0.12);
}

.preview-url {
  flex: 1;
  height: 14px;
  border-radius: 999px;
  background: rgba(15,23,42,0.07);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  padding: 0 6px;
  color: var(--muted);
  overflow: hidden;
  margin-left: 2px;
  font-family: monospace;
}

.preview-body {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* ---- PPG Public site miniature (modalitymidsussexppg.org) ---- */
.ppg-pub-preview { background:#F0F7F0; display:flex; flex-direction:column; flex:1; }
.ppg-pub-hdr { height:26px; background:#fff; border-bottom:1px solid rgba(26,56,40,0.07); display:flex; align-items:center; padding:0 7px; gap:5px; flex-shrink:0; }
.ppg-pub-logo-wrap { display:flex; flex-direction:column; gap:2px; }
.ppg-pub-logo-main { height:7px; width:48px; border-radius:2px; background:#1A3828; }
.ppg-pub-logo-sub  { height:3px; width:28px; border-radius:1px; background:rgba(26,56,40,0.28); }
.ppg-pub-nav-item  { height:5px; width:18px; border-radius:2px; background:rgba(26,56,40,0.11); }
.ppg-pub-contact-pill { margin-left:auto; height:13px; width:34px; border-radius:999px; background:#1A5C2E; }
.ppg-pub-hero-card { margin:6px; border-radius:7px; background:#DAF0DC; padding:9px 9px 6px; display:flex; flex-direction:column; align-items:stretch; gap:4px; }
.ppg-pub-badge    { height:9px; width:68px; border-radius:999px; border:1px solid rgba(26,92,46,0.3); background:rgba(26,92,46,0.06); align-self:center; }
.ppg-pub-h1-dark  { height:10px; border-radius:2px; background:rgba(26,56,40,0.28); }
.ppg-pub-h1-green { height:10px; width:72%; border-radius:2px; background:rgba(42,102,50,0.46); }
.ppg-pub-body-t   { height:4px; border-radius:2px; background:rgba(26,56,40,0.09); }
.ppg-pub-body-t.w80 { width:80%; }
.ppg-pub-btns     { display:flex; gap:4px; margin-top:1px; }
.ppg-pub-btn-s    { height:11px; width:38px; border-radius:999px; background:#1A5C2E; }
.ppg-pub-btn-o    { height:11px; width:32px; border-radius:999px; border:1px solid rgba(26,92,46,0.4); }
.ppg-pub-cards-row { display:flex; gap:3px; padding:0 6px 6px; }
.ppg-pub-card     { flex:1; height:28px; border-radius:5px; background:#fff; border:1px solid rgba(26,92,46,0.1); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; }
.ppg-pub-card-icon { width:9px; height:9px; border-radius:3px; background:rgba(26,92,46,0.14); }
.ppg-pub-card-text { height:3px; width:75%; border-radius:1px; background:rgba(26,56,40,0.14); }

/* ---- PPG Committee Portal miniature (committee.modalitymidsussexppg.org) ---- */
.com-portal-preview { background:#EDF3F3; display:flex; flex-direction:column; flex:1; }
.com-hdr { height:26px; background:#fff; border-bottom:1px solid rgba(13,37,32,0.07); display:flex; align-items:center; padding:0 7px; gap:4px; flex-shrink:0; }
.com-hdr-logo { height:7px; width:52px; border-radius:2px; background:#0D2520; }
.com-hdr-sep  { flex:1; }
.com-hdr-nav  { height:5px; border-radius:2px; background:rgba(13,37,32,0.1); }
.com-hdr-logout { width:9px; height:9px; border-radius:2px; background:rgba(13,37,32,0.1); margin-left:4px; }
.com-body-wrap { padding:7px; display:flex; gap:5px; flex:1; }
.com-main-col  { flex:2; display:flex; flex-direction:column; gap:5px; }
.com-h1-line   { height:9px; width:62%; border-radius:2px; background:rgba(13,37,32,0.3); }
.com-sub-link  { height:5px; width:48%; border-radius:2px; background:rgba(12,91,82,0.5); }
.com-briefing  { flex:1; border-radius:7px; background:#C6E2DE; padding:7px; display:flex; flex-direction:column; gap:4px; }
.com-icon-sq   { width:14px; height:14px; border-radius:4px; background:#0C5C52; }
.com-label-sm  { height:4px; width:34px; border-radius:2px; background:rgba(12,91,82,0.6); }
.com-card-title { height:8px; width:58%; border-radius:2px; background:rgba(13,37,32,0.3); }
.com-card-desc  { height:4px; border-radius:2px; background:rgba(13,37,32,0.11); }
.com-card-desc.w90 { width:90%; } .com-card-desc.w78 { width:78%; }
.com-card-btn  { height:12px; width:62%; border-radius:999px; background:#0C5C52; margin-top:2px; }
.com-sidebar   { flex:1; background:#fff; border-radius:7px; border:1px solid rgba(12,91,82,0.1); padding:6px; display:flex; flex-direction:column; gap:4px; }
.com-sb-title  { height:6px; width:58%; border-radius:2px; background:rgba(13,37,32,0.25); }
.com-sb-link   { height:5px; border-radius:2px; background:rgba(12,91,82,0.42); }
.com-sb-link.w85 { width:85%; } .com-sb-link.w65 { width:65%; } .com-sb-link.w90 { width:90%; }
.com-sb-meta   { height:3px; width:72%; border-radius:2px; background:rgba(13,37,32,0.08); margin-bottom:1px; }

/* ---- EGAC miniature — yellow/black/blue real colours (eastgrinsteadac.co.uk) ---- */
.egac-new-preview { display:flex; flex-direction:column; flex:1; background:#fff; }
.egac-photo-top   { position:relative; padding:6px 8px 5px; background:linear-gradient(160deg,#1E5FAD 0%,#2878C8 55%,#1A52A0 100%); overflow:hidden; flex-shrink:0; }
.egac-track-lines { position:absolute; inset:0; background:repeating-linear-gradient(75deg,transparent 0,transparent 18px,rgba(255,255,255,0.07) 18px,rgba(255,255,255,0.07) 20px); }
.egac-logo-row    { display:flex; gap:4px; align-items:baseline; position:relative; z-index:1; }
.egac-logo-yellow { height:7px; width:46px; border-radius:2px; background:#EFC000; }
.egac-logo-white  { height:7px; width:38px; border-radius:2px; background:rgba(255,255,255,0.9); }
.egac-tagline-row { height:4px; width:70px; border-radius:2px; background:rgba(255,255,255,0.45); margin-top:3px; position:relative; z-index:1; }
.egac-black-nav   { background:#1C1C1C; display:flex; gap:3px; padding:3px 6px; flex-shrink:0; overflow:hidden; }
.egac-nav-tab     { height:6px; border-radius:2px; background:rgba(255,255,255,0.65); flex-shrink:0; }
.egac-two-col     { display:flex; gap:4px; padding:5px 6px; flex:1; }
.egac-news-feed   { flex:2; display:flex; flex-direction:column; gap:5px; }
.egac-news-row    { display:flex; gap:4px; align-items:flex-start; }
.egac-date-disc   { width:16px; height:20px; border-radius:999px; background:#EFC000; flex-shrink:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1.5px; padding:2px; }
.egac-date-line   { height:2.5px; width:8px; border-radius:1px; background:rgba(255,255,255,0.9); }
.egac-news-body   { flex:1; display:flex; flex-direction:column; gap:3px; }
.egac-news-h      { height:6px; border-radius:2px; background:rgba(15,23,42,0.22); }
.egac-news-h.w75  { width:75%; }
.egac-news-excerpt { height:4px; border-radius:2px; background:rgba(15,23,42,0.08); width:88%; }
.egac-news-tag    { height:5px; width:28px; border-radius:2px; background:rgba(239,192,0,0.55); }
.egac-right-col   { flex:1; }
.egac-welcome-box { background:#fff; border:1px solid rgba(15,23,42,0.08); border-radius:5px; padding:5px; display:flex; flex-direction:column; gap:3px; }
.egac-welcome-h   { height:6px; width:85%; border-radius:2px; background:rgba(15,23,42,0.22); }
.egac-welcome-t   { height:4px; border-radius:2px; background:rgba(15,23,42,0.08); }
.egac-welcome-t.w90 { width:90%; } .egac-welcome-t.w80 { width:80%; } .egac-welcome-t.w70 { width:70%; }

/* EGSport miniature */
.egs-preview { background:#0D1B2E; display:flex; flex-direction:column; flex:1; }
.egs-hdr { background:#0D1B2E; display:flex; align-items:center; justify-content:space-between; padding:5px 8px; }
.egs-logo-txt { color:#fff; font-size:0.5rem; font-weight:700; }
.egs-nav-row { display:flex; align-items:center; gap:5px; }
.egs-nav-dot { width:14px; height:1.5px; background:rgba(255,255,255,0.5); border-radius:1px; }
.egs-reg-btn { width:22px; height:7px; border:1px solid rgba(255,255,255,0.65); border-radius:1.5px; }
.egs-hero { position:relative; min-height:70px; background:linear-gradient(160deg,#162b44 0%,#0e2035 50%,#0D1B2E 100%); display:flex; align-items:flex-start; padding:7px 8px; overflow:hidden; }
.egs-hero-trees { position:absolute; top:0; right:0; width:55%; bottom:0; background:linear-gradient(to bottom,rgba(28,50,28,0.25) 0%,rgba(14,30,50,0.5) 100%); }
.egs-hero-content { position:relative; z-index:1; }
.egs-hero-label { font-size:0.4rem; color:rgba(255,255,255,0.65); margin-bottom:2px; }
.egs-hero-h1 { font-size:0.57rem; font-weight:800; color:#fff; line-height:1.15; margin-bottom:3px; }
.egs-hero-sub { font-size:0.34rem; color:rgba(255,255,255,0.72); margin-bottom:5px; line-height:1.3; max-width:115px; }
.egs-hero-btns { display:flex; gap:4px; }
.egs-btn-green { background:#266B28; color:#fff; border-radius:2px; font-size:0.34rem; font-weight:600; padding:2px 5px; }
.egs-btn-ghost { border:1px solid rgba(255,255,255,0.6); color:#fff; border-radius:2px; font-size:0.34rem; padding:2px 5px; }
.egs-features { background:#fff; display:flex; }
.egs-feat { flex:1; padding:5px 7px; border-right:1px solid rgba(0,0,0,0.07); }
.egs-feat:last-child { border-right:none; }
.egs-feat-h { font-size:0.38rem; font-weight:700; color:#0D1B2E; margin-bottom:2px; line-height:1.2; }
.egs-feat-body { font-size:0.32rem; color:#555; line-height:1.3; }
.egs-feat-link { font-size:0.32rem; color:#266B28; margin-top:2px; display:block; }
.egs-dark { background:#0D1B2E; padding:6px 8px; }
.egs-dark-h { font-size:0.38rem; font-weight:700; color:#fff; margin-bottom:2px; }
.egs-dark-link { font-size:0.32rem; color:#4CAF50; display:block; text-align:right; }

/* Work card lock badge */
.work-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(15,23,42,0.05);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: var(--space-2);
}

.work-card-info {
  padding: var(--space-5) var(--space-6);
}

.work-card-info h3 {
  margin-bottom: var(--space-2);
  display: block;
}

.work-domain {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.work-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.external-hint {
  font-size: 0;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
  align-items: start;
}

@media (min-width: 760px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

/* On mobile, show featured card first */
.pricing-card { order: 1; }
.pricing-card.featured { order: 0; }

@media (min-width: 760px) {
  .pricing-card, .pricing-card.featured { order: unset; }
}

.pricing-card {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,0.1);
}

.pricing-card.featured {
  border-color: rgba(0,87,184,0.25);
  box-shadow: 0 12px 36px rgba(15,23,42,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
  position: relative;
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 8px rgba(0,87,184,0.3);
}

.plan-audience {
  margin-bottom: var(--space-1);
}

.plan-name {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.price {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: var(--space-1);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.plan-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.4;
}

.plan-feature svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal);
}

.pricing-footnote {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
}

@media (min-width: 640px) {
  .pricing-footnote {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-footnote-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.pricing-footnote-item strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}

.pricing-footnote-item p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

@media (min-width: 760px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.step-number {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: rgba(0,87,184,0.18);
  line-height: 1;
  letter-spacing: -0.03em;
}

.process-step h3 { margin-top: var(--space-1); }

.process-step p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-card {
  padding: var(--space-6) var(--space-7);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 760px) {
  .about-inner {
    grid-template-columns: 3fr 2fr;
    align-items: start;
  }
}

.pull-quote {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.015em;
  position: relative;
  padding-left: var(--space-5);
}

.pull-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--teal);
}

.pull-quote-attr {
  display: block;
  margin-top: var(--space-4);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-top: var(--space-2);
}

.fact-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--edge);
}

.fact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}

.fact-value {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.faq-item {
  interpolate-size: allow-keywords;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -2px;
  border-radius: var(--radius);
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--teal);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 var(--space-6) var(--space-5);
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
  overflow: hidden;
}

/* Progressive CSS animation for FAQ */
@supports (interpolate-size: allow-keywords) {
  details::details-content {
    overflow: hidden;
    block-size: 0;
    transition: block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
  }
  details[open]::details-content {
    block-size: auto;
  }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-card {
  padding: var(--space-6);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}

@media (min-width: 760px) {
  .contact-inner {
    grid-template-columns: 1fr 1.5fr;
    align-items: start;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-info h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--space-2);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.contact-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal);
}

.contact-detail-text strong {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.contact-detail-text span, .contact-detail-text a {
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-promise {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(0,87,184,0.07);
  border: 1px solid rgba(0,87,184,0.12);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal-deep);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8125rem;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(15,23,42,0.12);
  border-radius: 10px;
  font-size: 0.9375rem;
  background: rgba(255,255,255,0.8);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,87,184,0.18);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 0.8125rem;
  color: #DC2626;
  display: none;
}

.form-error.visible { display: block; }

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #DC2626;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

.form-footnote {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.form-footnote a { font-size: inherit; }

.form-status {
  display: none;
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-status.success {
  display: block;
  background: rgba(0,87,184,0.07);
  border: 1px solid rgba(0,87,184,0.2);
  color: var(--teal-deep);
  font-weight: 500;
}

.form-status.error {
  display: block;
  background: rgba(220,38,38,0.05);
  border: 1px solid rgba(220,38,38,0.2);
  color: #991B1B;
}

.mailto-fallback {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: var(--space-2);
  display: none;
}

/* ============================================================
   PRIVACY NOTE
   ============================================================ */
.privacy-block {
  padding: var(--space-6) var(--space-7);
}

.privacy-block h2 {
  font-size: 1.125rem;
  margin-bottom: var(--space-4);
}

.privacy-block ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}

.privacy-block li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: var(--space-5);
  position: relative;
}

.privacy-block li::before {
  content: '·';
  position: absolute;
  left: var(--space-2);
  color: var(--teal);
  font-weight: 700;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--edge);
  padding-block: var(--space-7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: flex-start;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--teal); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  max-width: 640px;
}

.section-header h2 { margin-top: var(--space-2); }

/* ============================================================
   SEO PAGES (inner pages, breadcrumbs, prose)
   ============================================================ */
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { color: var(--teal); text-decoration: underline; }
.about-heading { margin-bottom: var(--space-5); }
.page-hero { padding-top: calc(var(--header-h) + var(--space-6)); padding-bottom: var(--space-5); }
.page-hero h1 { max-width: 20ch; }
.page-hero .page-lead { font-size: var(--lead-size); max-width: 60ch; margin-top: var(--space-4); }
.breadcrumb { font-size: 0.875rem; margin-bottom: var(--space-4); color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: var(--space-7); margin-bottom: var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: var(--space-4); }
.prose ul { list-style: disc; padding-left: var(--space-5); }
.prose li { margin-bottom: var(--space-2); }
.cta-card { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.cta-card h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.related-links { display: flex; flex-wrap: wrap; gap: var(--space-3); list-style: none; }
.related-links a { display: inline-block; padding: var(--space-2) var(--space-4); border: 1px solid var(--edge); border-radius: var(--radius-pill); background: var(--solid-bg); text-decoration: none; }
.prose .related-links { list-style: none; padding-left: 0; }
.prose .related-links li { margin-bottom: 0; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.work-all { margin-top: var(--space-6); display: flex; justify-content: center; }
.post-meta { font-size: 0.9375rem; color: var(--muted); margin-bottom: var(--space-5) !important; }
.post-list { display: grid; gap: var(--space-4); list-style: none; }
.post-list .card { padding: var(--space-5); }
.post-list h2, .post-list h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.glance { display: grid; gap: var(--space-3); margin-bottom: var(--space-5); }
.glance div { display: grid; grid-template-columns: 9rem 1fr; gap: var(--space-2) var(--space-4); }
@media (max-width: 560px) { .glance div { grid-template-columns: 1fr; gap: 0; } }
.glance dt { font-weight: 500; color: var(--ink); min-width: 9rem; }
.glance dd { color: var(--body); }
#guides .related-links { margin-top: var(--space-2); }

/* work card actions */
.work-card-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }
.btn-sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.work-card:hover, .work-card:focus-within { transform: none; }
@media (min-width: 760px) and (max-width: 1279px) { .work-card .preview { aspect-ratio: 2 / 1; } }
