/* ==========================================================================
   CADDA DC — Design system
   Brand carried over from cadda.com.au: Playfair Display + Montserrat,
   charcoal #1a1a1a, warm greige #e3e1de / #dddad4, gold accent #c9a240.
   ========================================================================== */

:root {
  /* Palette */
  --ink:        #121212;
  --ink-2:      #1a1a1a;
  --ink-3:      #232323;
  --ink-4:      #2e2e2c;
  --paper:      #e3e1de;
  --paper-2:    #dddad4;
  --paper-3:    #f2f1ef;
  --gold:       #c9a240;
  --gold-soft:  #d9b968;
  --gold-dim:   rgba(201, 162, 64, 0.28);
  --white:      #ffffff;

  --text-on-dark:      #e8e6e2;
  --text-on-dark-dim:  rgba(232, 230, 226, 0.62);
  --text-on-light:     #1a1a1a;
  --text-on-light-dim: rgba(26, 26, 26, 0.64);

  --rule-dark:  rgba(232, 230, 226, 0.14);
  --rule-light: rgba(26, 26, 26, 0.14);

  /* Type */
  --display: "Playfair Display", "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-hero:  clamp(2.7rem, 6.2vw, 5.2rem);
  --fs-h1:    clamp(2.2rem, 4.6vw, 3.9rem);
  --fs-h2:    clamp(1.75rem, 3.2vw, 2.85rem);
  --fs-h3:    clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-h4:    clamp(1.05rem, 1.4vw, 1.22rem);
  --fs-lead:  clamp(1.05rem, 1.45vw, 1.33rem);
  --fs-body:  clamp(0.97rem, 1.02vw, 1.05rem);
  --fs-sm:    0.875rem;
  --fs-xs:    0.75rem;
  --fs-num:   clamp(2.4rem, 4.4vw, 3.9rem);

  /* Space */
  --gut: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1280px;
  --maxw-text: 68ch;
  --sect: clamp(4.5rem, 9vw, 9rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* -------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 350;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }
p  { margin: 0 0 1.15em; max-width: var(--maxw-text); }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: var(--ink); }

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

/* ------------------------------------------------------------------ helpers */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 920px; }

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.35rem;
  display: block;
}
/* No leading rule on sub headings. */

.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-on-dark); font-weight: 300; max-width: 60ch; }
.dim { color: var(--text-on-dark-dim); }
.note { font-size: var(--fs-sm); color: var(--text-on-dark-dim); font-style: italic; }

.section { padding-block: var(--sect); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }

/* Light "paper" sections mirror the existing brand's greige panels */
.paper {
  background: var(--paper);
  color: var(--text-on-light);
}
.paper h1, .paper h2, .paper h3 { color: var(--ink-2); }
.paper .lead { color: var(--text-on-light); }
.paper .dim, .paper .note { color: var(--text-on-light-dim); }
.paper .eyebrow { color: #8a6d1f; }

.ink-2 { background: var(--ink-2); }
.ink-3 { background: var(--ink-3); }

.rule { height: 1px; background: var(--rule-dark); border: 0; margin: 0; }
.paper .rule { background: var(--rule-light); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.9rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  line-height: 1;
}
.btn:hover { background: var(--gold); color: var(--ink); }
.btn--solid { background: var(--gold); color: var(--ink); }
.btn--solid:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--ghost { border-color: var(--rule-dark); color: var(--text-on-dark); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: transparent; }
.paper .btn--ghost { border-color: var(--rule-light); color: var(--ink-2); }
.paper .btn--ghost:hover { border-color: #8a6d1f; color: #8a6d1f; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-dim);
  padding-bottom: 0.4rem;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}
.arrow-link:hover { border-color: var(--gold); gap: 1rem; }

/* ------------------------------------------------------------------- header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.15rem var(--gut);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease), padding 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule-dark);
  padding-block: 0.85rem;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 42px; width: auto; display: block; transition: opacity 0.4s var(--ease), height 0.4s var(--ease); }
.brand:hover img { opacity: 0.85; }
.site-header.is-stuck .brand img { height: 34px; }
.footer-brand img { height: 52px; width: auto; display: block; }
@media (max-width: 560px) { .brand img { height: 34px; } .site-header.is-stuck .brand img { height: 30px; } }

.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.1rem); }
.nav a {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  position: relative;
  padding-block: 0.3rem;
  transition: color 0.3s var(--ease);
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav a:hover { color: var(--paper); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--gold); }

.nav-cta { flex: none; }
.nav-cta .btn { padding: 0.8rem 1.35rem; }

.burger {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  padding: 0;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* The nav panel is fixed and full-screen, so the brand and burger are
     lifted above it — otherwise the open panel paints over the close button. */
  .burger { display: block; margin-left: auto; position: relative; z-index: 3; }
  .brand { position: relative; z-index: 3; }
  .nav {
    position: fixed;
    inset: 0;
    z-index: 2;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    padding: 6rem var(--gut) 3rem;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    overflow-y: auto;
  }
  body.nav-open .nav { transform: translateX(0); }
  .nav a {
    font-family: var(--display);
    font-size: 1.6rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--paper);
    padding-block: 0.75rem;
    width: 100%;
    border-bottom: 1px solid var(--rule-dark);
  }
  .nav a::after { display: none; }
  .nav-cta { display: none; }
  .nav .nav-cta-mobile { display: block; margin-top: 2rem; border: 0; }
}
@media (min-width: 1081px) { .nav .nav-cta-mobile { display: none; } }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: min(92vh, 940px);
  display: flex;
  align-items: flex-end;
  padding-top: 7rem;
  padding-bottom: clamp(2.25rem, 4vw, 3.75rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12,12,12,0.90) 0%, rgba(12,12,12,0.52) 40%, rgba(12,12,12,0.28) 72%, rgba(12,12,12,0.46) 100%);
}

/* Hero image carousel — CSS-only crossfade */
.hero__media--carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero__media--carousel img.is-active { opacity: 1; }
@keyframes heroFade {
  0%, 20% { opacity: 1; }
  25%, 95% { opacity: 0; }
  100% { opacity: 1; }
}
.hero__media--carousel img {
  animation: heroFade 28s infinite;
}
.hero__media--carousel img:nth-child(1) { animation-delay: 0s; }
.hero__media--carousel img:nth-child(2) { animation-delay: 7s; }
.hero__media--carousel img:nth-child(3) { animation-delay: 14s; }
.hero__media--carousel img:nth-child(4) { animation-delay: 21s; }
.hero__inner { width: 100%; }
.hero h1 { font-size: clamp(1.85rem, 4.2vw, 3.4rem); max-width: 24ch; margin-bottom: 1.1rem; }
.hero .lead { max-width: 56ch; font-size: clamp(0.92rem, 1.15vw, 1.08rem); }
.hero .eyebrow { font-size: 0.68rem; margin-bottom: 1rem; }
.hero .btn { padding: 0.85rem 1.5rem; font-size: 0.68rem; }

.hero--compact { min-height: min(62vh, 620px); }
.hero--compact h1 { font-size: clamp(1.75rem, 3.8vw, 3rem); max-width: 26ch; }

/* Page hero without photography */
.pagehead {
  padding-top: clamp(9rem, 14vw, 13rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--ink-2);
  border-bottom: 1px solid var(--rule-dark);
  position: relative;
}
.pagehead h1 { max-width: 24ch; }

/* page head with a background render */
.pagehead--media {
  overflow: hidden;
  padding-top: clamp(10rem, 16vw, 15rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  background: #0e0e0e;
}
.pagehead__media { position: absolute; inset: 0; z-index: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.pagehead__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14,14,14,0.92) 0%, rgba(14,14,14,0.34) 26%, rgba(14,14,14,0.30) 62%, rgba(14,14,14,0.72) 100%),
    linear-gradient(101deg, rgba(14,14,14,0.93) 0%, rgba(14,14,14,0.80) 40%, rgba(14,14,14,0.46) 70%, rgba(14,14,14,0.30) 100%);
}
.pagehead--media > .wrap { position: relative; z-index: 1; }
.pagehead--media .lead { max-width: 60ch; }
.pagehead__credit {
  margin-top: 2.25rem;
  max-width: 62ch;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-soft, rgba(227,225,218,0.6));
}
@media (max-width: 760px) {
  .pagehead--media { padding-top: clamp(8rem, 26vw, 11rem); }
  .pagehead__media::after {
    background: linear-gradient(to bottom, rgba(14,14,14,0.90) 0%, rgba(14,14,14,0.80) 34%, rgba(14,14,14,0.90) 100%);
  }
}

.strap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.strap span { display: inline-flex; align-items: center; gap: 1.2rem; }
.strap span:not(:last-child)::after { content: ""; width: 4px; height: 4px; background: var(--gold-dim); border-radius: 50%; }
.hero .strap { margin-top: 1.3rem; }

/* ------------------------------------------------------------------ metrics */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--rule-dark);
  border: 1px solid var(--rule-dark);
}
.metrics > div { background: var(--ink); padding: clamp(1.5rem, 2.6vw, 2.4rem); }
.paper .metrics { background: var(--rule-light); border-color: var(--rule-light); }
.paper .metrics > div { background: var(--paper); }
.metrics dt {
  font-family: var(--display);
  font-size: var(--fs-num);
  line-height: 1;
  color: var(--gold);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.metrics dd {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  line-height: 1.5;
}
.paper .metrics dd { color: var(--text-on-light-dim); }
.metrics-sub {
  margin-top: 1.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  font-weight: 500;
}
.paper .metrics-sub { color: var(--text-on-light-dim); }
/* On phones a two-up metrics grid leaves an empty cell for odd counts and
   squeezes long labels into narrow columns, so stack them. */
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
}

/* -------------------------------------------------------------------- grids */
.grid { display: grid; gap: clamp(1.5rem, 2.6vw, 2.6rem); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
/* four-up cards get a tighter heading so short titles do not wrap awkwardly */
.g-4 .card h3 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; letter-spacing: 0.01em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.sticky-head { position: sticky; top: 7rem; }
@media (max-width: 900px) { .sticky-head { position: static; } }

/* -------------------------------------------------------------------- cards */
.card {
  border: 1px solid var(--rule-dark);
  padding: clamp(1.6rem, 2.4vw, 2.2rem);
  background: var(--ink-2);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
  height: 100%;
}
.card:hover { border-color: var(--gold-dim); }
.paper .card { background: var(--paper-3); border-color: var(--rule-light); }
.card__num {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 1.1rem;
  display: block;
}
.card h3, .card h4 { margin-bottom: 0.7rem; }
.card p { font-size: 0.95rem; color: var(--text-on-dark-dim); }
.paper .card p { color: var(--text-on-light-dim); }

.pillar {
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.6rem;
  padding-bottom: 2.4rem;
}
.pillar:last-child { padding-bottom: 0; }
.paper .pillar { border-top-color: var(--rule-light); }
.pillar .card__num { margin-bottom: 0.85rem; }
.pillar h3 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; letter-spacing: 0.005em; }
.pillar p { font-size: 0.95rem; color: var(--text-on-dark-dim); }
.paper .pillar p { color: var(--text-on-light-dim); }

/* --------------------------------------------------------------------- list */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.85rem;
  font-size: 0.97rem;
  max-width: 62ch;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 1px;
  background: var(--gold);
}
.ticks li strong { color: var(--paper); font-weight: 600; }
.paper .ticks li strong { color: var(--ink-2); }

.deflist { margin: 0; }
.deflist > div {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--rule-dark);
}
.paper .deflist > div { border-top-color: var(--rule-light); }
.deflist > div:last-child { border-bottom: 1px solid var(--rule-dark); }
.paper .deflist > div:last-child { border-bottom-color: var(--rule-light); }
.deflist dt { font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em; }
.deflist dd { margin: 0; font-size: 0.95rem; color: var(--text-on-dark-dim); }
.paper .deflist dd { color: var(--text-on-light-dim); }
@media (max-width: 700px) { .deflist > div { grid-template-columns: 1fr; gap: 0.4rem; } }

/* -------------------------------------------------------------------- table */
.tbl-wrap { overflow-x: auto; margin-top: 2.5rem; -webkit-overflow-scrolling: touch; }
/* On narrow screens the table scrolls sideways, so tell the reader it does. */
@media (max-width: 760px) {
  .tbl-wrap::after {
    content: "Swipe the table sideways to see all columns";
    display: block;
    margin-top: 0.9rem;
    font-size: var(--fs-xs);
    letter-spacing: 0.08em;
    font-style: italic;
    color: var(--text-on-dark-dim);
  }
  .paper .tbl-wrap::after { color: var(--text-on-light-dim); }
}
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
thead th {
  text-align: left;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0 1.1rem 0.9rem 0;
  border-bottom: 1px solid var(--gold-dim);
  white-space: nowrap;
}
tbody td { padding: 1.05rem 1.1rem 1.05rem 0; border-bottom: 1px solid var(--rule-dark); vertical-align: top; }
.paper tbody td { border-bottom-color: var(--rule-light); }
tbody tr:hover td { background: rgba(201, 162, 64, 0.035); }
tbody td:first-child { font-weight: 600; color: var(--paper); white-space: nowrap; }
.paper tbody td:first-child { color: var(--ink-2); }
td .tag { white-space: nowrap; }

.tag {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.34rem 0.6rem;
  border: 1px solid var(--rule-dark);
  color: var(--text-on-dark-dim);
  line-height: 1;
}
.paper .tag { border-color: var(--rule-light); color: var(--text-on-light-dim); }
.tag--gold { border-color: var(--gold-dim); color: var(--gold); }
.tag--held { border-color: rgba(126, 168, 116, 0.5); color: #9dc48f; }
.paper .tag--held { border-color: rgba(78, 116, 68, 0.5); color: #4e7444; }

/* --------------------------------------------------------------------- team */
.person figure { margin: 0 0 1.15rem; overflow: hidden; background: var(--ink-3); }
/* Portraits are supplied in full colour on a navy backdrop, so no filter is applied. */
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform 0.7s var(--ease); }
.person:hover img { transform: scale(1.03); }
.person h3 { font-size: 1.18rem; margin-bottom: 0.3rem; }
.person .role {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.person p { font-size: 0.9rem; color: var(--text-on-dark-dim); }
.paper .person p { color: var(--text-on-light-dim); }

/* ------------------------------------------------------------------ feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.feature--flip > figure { order: 2; }
.feature--top { align-items: start; }
.feature figure { margin: 0; }
.feature img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.feature img.natural { aspect-ratio: auto; object-fit: contain; }
.feature figure > figcaption { margin-top: 0.8rem; font-family: 'Montserrat', system-ui, sans-serif; font-size: 0.8rem; font-style: italic; line-height: 1.5; color: rgba(227, 225, 222, 0.5); }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature--flip > figure { order: 0; }
}

.band-img { position: relative; height: clamp(260px, 40vh, 460px); overflow: hidden; }
.band-img img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------------- quote */
.pullquote {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.32;
  color: var(--paper);
  border-left: 2px solid var(--gold);
  padding-left: clamp(1.25rem, 3vw, 2.5rem);
  margin: clamp(2.5rem, 5vw, 4rem) 0;
  max-width: 34ch;
}
.paper .pullquote { color: var(--ink-2); }

/* --------------------------------------------------------------------- news */
.newscard {
  display: grid;
  gap: 0.9rem;
  border-top: 1px solid var(--rule-dark);
  padding: 2rem 0;
  transition: border-color 0.4s var(--ease);
}
.paper .newscard { border-top-color: var(--rule-light); }
.newscard:hover { border-top-color: var(--gold); }
.newscard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  font-weight: 500;
}
.paper .newscard__meta { color: var(--text-on-light-dim); }
.newscard h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); margin: 0; max-width: 34ch; }
/* the 34ch measure is narrower than a phone screen — let headlines fill it */
@media (max-width: 760px) { .newscard h3 { max-width: none; } }
.newscard p { font-size: 0.97rem; color: var(--text-on-dark-dim); max-width: 62ch; margin: 0; }
.paper .newscard p { color: var(--text-on-light-dim); }
.newscard a.arrow-link { justify-self: start; margin-top: 0.4rem; }

.newscard--lead {
  border-top: 2px solid var(--gold);
  padding-top: 2.5rem;
}
.newscard--lead h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }

/* Article body */
.article { max-width: 72ch; }
.article h2 { font-size: var(--fs-h3); margin-top: 2.75rem; }
.article h3 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; margin-top: 2.25rem; }
.article p, .article li { font-size: 1.03rem; line-height: 1.78; }
.article ul { padding-left: 1.2rem; }
.article li { margin-bottom: 0.6rem; }
.article strong { color: var(--paper); font-weight: 600; }
.paper .article strong { color: var(--ink-2); }

/* --------------------------------------------------------------------- form */
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: 0.5rem; }
.field > label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
}
.paper .field > label { color: var(--text-on-light-dim); }
.field .req { color: var(--gold); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--rule-dark);
  color: var(--text-on-dark);
  padding: 0.95rem 1.05rem;
  font-family: var(--sans);
  font-size: 0.97rem;
  border-radius: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.paper input[type="text"], .paper input[type="email"], .paper input[type="tel"], .paper select, .paper textarea {
  background: rgba(255,255,255,0.6);
  border-color: var(--rule-light);
  color: var(--ink-2);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.06); }
.paper input:focus, .paper select:focus, .paper textarea:focus { background: var(--white); }
textarea { min-height: 130px; resize: vertical; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 14px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 3rem;
}
select option { background: var(--ink-2); color: var(--text-on-dark); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 640px) { .field-2 { grid-template-columns: 1fr; } }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; font-size: 0.9rem; line-height: 1.6; }
.check input { margin: 0.28rem 0 0; width: 16px; height: 16px; accent-color: var(--gold); flex: none; }
.checks { display: grid; gap: 1.1rem; }
.checks--2 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem 2rem; }

fieldset { border: 1px solid var(--rule-dark); padding: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.paper fieldset { border-color: var(--rule-light); }
legend {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  padding-inline: 0.7rem;
}

/* ------------------------------------------------------------------- notice */
.notice {
  border: 1px solid var(--gold-dim);
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 64, 0.055);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
}
.notice h3 { font-family: var(--sans); font-size: var(--fs-h4); font-weight: 600; color: var(--gold); }
.notice p { font-size: 0.93rem; }
.notice p:last-child { margin-bottom: 0; }

.callout {
  border: 1px solid var(--rule-dark);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: var(--ink-2);
}
.paper .callout { background: var(--paper-3); border-color: var(--rule-light); }

/* -------------------------------------------------------------------- steps */
.steps { counter-reset: s; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding: 1.9rem 0;
  border-top: 1px solid var(--rule-dark);
}
.paper .step { border-top-color: var(--rule-light); }
.step:last-child { border-bottom: 1px solid var(--rule-dark); }
.paper .step:last-child { border-bottom-color: var(--rule-light); }
.step__n {
  counter-increment: s;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--gold);
  line-height: 1;
  min-width: 2.4rem;
}
.step__n::before { content: counter(s, decimal-leading-zero); }
.step h3 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; margin-bottom: 0.5rem; }
.step p { font-size: 0.95rem; color: var(--text-on-dark-dim); margin: 0; }
.paper .step p { color: var(--text-on-light-dim); }

/* ------------------------------------------------------------------ routing */
.route {
  border: 1px solid var(--rule-dark);
  padding: clamp(1.75rem, 2.8vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--ink-2);
  transition: border-color 0.4s var(--ease);
}
.route:hover { border-color: var(--gold-dim); }
.route h3 { font-size: var(--fs-h4); font-family: var(--sans); font-weight: 600; margin: 0; }
.route p { font-size: 0.95rem; color: var(--text-on-dark-dim); flex: 1; margin: 0; }
.route .arrow-link { align-self: flex-start; margin-top: 0.5rem; }

/* -------------------------------------------------------------------- close */
.closer {
  padding-block: clamp(4.5rem, 8vw, 8rem);
  background: var(--ink-2);
  border-top: 1px solid var(--rule-dark);
  text-align: left;
}
.closer h2 { max-width: 28ch; }

/* ------------------------------------------------------------------- footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--rule-dark); padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: clamp(2.5rem, 5vw, 5rem); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand p { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 1.1rem; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.footer-cols h4 {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.footer-cols a, .footer-cols li { font-size: 0.9rem; color: var(--text-on-dark-dim); }
.footer-cols a { transition: color 0.3s var(--ease); }
.footer-cols a:hover { color: var(--gold); }
.footer-legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
  display: grid;
  gap: 1.25rem;
}
.footer-legal p { font-size: 0.78rem; line-height: 1.7; color: rgba(232,230,226,0.42); max-width: none; margin: 0; }
.footer-legal .ids { color: var(--text-on-dark-dim); font-size: 0.8rem; letter-spacing: 0.02em; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; font-size: 0.78rem; color: rgba(232,230,226,0.42); }
.footer-meta a:hover { color: var(--gold); }
.confid {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,230,226,0.3);
}

/* -------------------------------------------------------------------- reveal */
.r { opacity: 0; transform: translateY(22px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.r.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .r { opacity: 1; transform: none; transition: none; }
  .person img, .card { transition: none; }
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.85rem 1.4rem;
  z-index: 200;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.skip:focus { left: 1rem; top: 1rem; }

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; }

/* ------------------------------------------------------------------ filters */
[hidden] { display: none !important; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-dark);
}
.paper .filters { border-bottom-color: var(--rule-light); }
.filters button {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-dim);
  background: none;
  border: 1px solid var(--rule-dark);
  padding: 0.62rem 1.1rem;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.paper .filters button { color: var(--text-on-light-dim); border-color: var(--rule-light); }
.filters button:hover { color: var(--gold); border-color: var(--gold-dim); }
.filters button.is-on { color: var(--ink); background: var(--gold); border-color: var(--gold); }

/* --------------------------------------------------------------- form: done */
.form-done {
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  background: rgba(201, 162, 64, 0.07);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.form-done h3 {
  font-family: var(--sans);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.form-done p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ article layout */
.pagehead--article h1 { max-width: 30ch; }
.pagehead--article .newscard__meta { margin-bottom: 1.75rem; }

.split--article { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); }
@media (max-width: 900px) { .split--article { grid-template-columns: 1fr; } }
.split--article aside { position: sticky; top: 7rem; }
@media (max-width: 900px) { .split--article aside { position: static; } }

.callout h4 {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.callout p { font-size: 0.93rem; }
.callout p:last-of-type { margin-bottom: 0; }
.callout .arrow-link { margin-top: 1.1rem; }

/* ---------- completed works gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.4rem 2rem;
  align-items: start;
}
.gallery figure {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: rgba(18, 18, 18, 0.06);
  border: 1px solid rgba(18, 18, 18, 0.14);
}
.gallery figcaption {
  margin-top: 0.9rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.83rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(18, 18, 18, 0.68);
}
.gallery figure:only-child {
  max-width: 720px;
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- amberley site plan ---------- */
.siteplan {
  margin: 0;
}
.siteplan svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(201, 162, 64, 0.22);
  background: #171717;
}
.siteplan text {
  font-family: 'Montserrat', system-ui, sans-serif;
  fill: #e3e1de;
}
.siteplan .sp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.siteplan svg {
  min-width: 540px;
}
.siteplan .sp-stage {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  fill: #e3e1de;
}
.siteplan .sp-mw {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  fill: #c9a240;
}
.siteplan .sp-road {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  fill: rgba(227, 225, 222, 0.52);
  text-anchor: middle;
}
.siteplan .sp-note {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  fill: #c9a240;
}
.siteplan .sp-body {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  fill: rgba(227, 225, 222, 0.9);
}
@media (max-width: 720px) {
  .siteplan .sp-stage { font-size: 14px; }
  .siteplan .sp-mw { font-size: 12px; }
  .siteplan .sp-road { font-size: 11.5px; }
  .siteplan .sp-note { font-size: 11px; }
  .siteplan .sp-body { font-size: 20px; }
}
.siteplan .sp-hint { display: none; }
@media (max-width: 720px) { .siteplan .sp-hint { display: inline; } }
.siteplan .sp-hint { display: none; }
@media (max-width: 720px) { .siteplan .sp-hint { display: inline; } }
.siteplan--tall svg {
  min-width: 0;
  max-width: 460px;
}
.siteplan--tall .sp-stage { font-size: 13px; }
.siteplan--tall .sp-note { font-size: 11px; }
.sp-key {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.sp-key li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(227, 225, 222, 0.75);
}
.paper .sp-key li { color: rgba(18, 18, 18, 0.68); }
.sp-sw {
  flex: 0 0 auto;
  width: 20px;
  height: 13px;
  border: 1px solid rgba(201, 162, 64, 0.6);
}
.sp-sw--retail {
  background-image: repeating-linear-gradient(45deg, rgba(201, 162, 64, 0.5) 0 1px, transparent 1px 6px);
}
.sp-sw--daycare { background: rgba(201, 162, 64, 0.24); }
.sp-sw--town { background: rgba(201, 162, 64, 0.06); }
.siteplan figcaption.sp-caption {
  margin-top: 0.9rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(227, 225, 222, 0.5);
}
.paper .siteplan figcaption.sp-caption {
  color: rgba(18, 18, 18, 0.5);
}

/* ---------- wide figure ---------- */
.widefig { margin: 0; }
.widefig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(201, 162, 64, 0.18);
}
.widefig figcaption {
  margin-top: 0.9rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(227, 225, 222, 0.5);
}
.paper .widefig figcaption { color: rgba(18, 18, 18, 0.5); }

/* ---------- duo figure pair ---------- */
.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}
.duo figure { margin: 0; }

/* figure sitting inside a text column */
.colfig { margin: 0; }
.colfig img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule-dark);
}
.duo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 64, 0.18);
}
.duo figcaption {
  margin-top: 0.85rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(227, 225, 222, 0.62);
}
.paper .duo figcaption { color: rgba(18, 18, 18, 0.62); }

/* Form failure message: shown when a submission could not be saved */
.form-error{
  margin-top:1rem;
  padding:.9rem 1rem;
  border-left:3px solid #b3452f;
  background:rgba(179,69,47,.08);
  color:#7c2d1c;
  font-size:.95rem;
  line-height:1.5;
}
