:root {
  --ink: #1a241c;
  --forest: #163528;
  --forest-2: #2a4f3a;
  --moss: #6e7d68;
  --paper: #f2ebe0;
  --paper-deep: #e5dccb;
  --white: #fffdf8;
  --bronze: #6b5428;
  --bronze-light: #a8894a;
  --rust: #8a5235;
  --gold: #b4975a;
  --line: #d0c4ae;
  --danger: #8a2e2e;
  --shadow: 0 18px 50px rgb(22 40 30 / 8%);
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: Candara, Calibri, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  font-weight: 400;
}
a { color: var(--forest-2); text-underline-offset: .22em; }
a:hover { color: var(--rust); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
:focus-visible { outline: 3px solid #c48a2e; outline-offset: 4px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .75rem 1rem; background: var(--white); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.shell { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
.eyebrow { margin: 0 0 .7rem; color: var(--bronze); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.small { font-size: .82rem; color: #5c675f; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.25rem;
  border: 1px solid var(--forest); background: var(--forest); color: white;
  font-weight: 700; text-decoration: none; letter-spacing: .02em;
  transition: background .25s ease, border-color .25s ease;
}
.button:hover { background: var(--forest-2); border-color: var(--forest-2); color: white; }
.text-link { font-weight: 700; }

/* Public website atmosphere */
.public-site {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgb(107 84 40 / 6%), transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgb(42 79 58 / 7%), transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23cfc3ad' stroke-opacity='.35' stroke-width='.6'%3E%3Cpath d='M90 10c8 28 8 52 0 80M70 30c18 18 32 40 36 70M110 28c-16 20-28 42-30 72M48 55c22 12 40 34 48 62M132 52c-20 14-36 36-42 64'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(rgb(26 36 28 / 2.5%) 1px, transparent 1px);
  background-size: auto, auto, 180px 180px, 100% 6px;
  background-attachment: fixed, fixed, scroll, scroll;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(242 235 224 / 92%);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.masthead { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wordmark {
  display: flex; flex-direction: column; color: var(--ink); text-decoration: none;
  font-family: var(--serif); text-transform: uppercase; line-height: 1; letter-spacing: .1em;
}
.wordmark span { font-size: .78rem; letter-spacing: .18em; }
.wordmark strong { margin-top: .4rem; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: .22em; }
.masthead nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .85rem 1.35rem; max-width: 720px; }
.masthead nav a {
  color: var(--ink); font-size: .84rem; font-weight: 600; text-decoration: none;
  letter-spacing: .01em; transition: color .2s ease;
}
.masthead nav a:hover { color: var(--bronze); }

.landscape-image, .editorial-image { margin-block: 0 3rem; }
.landscape-image img, .editorial-image img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.editorial-image { max-width: 860px; }
.landscape-image figcaption, .editorial-image figcaption { margin-top: .65rem; font-size: .8rem; color: #5c675f; }

.hero {
  min-height: min(78vh, 720px);
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr);
  align-items: end; gap: 4rem; padding-block: 5.5rem 4.5rem;
  animation: rise .9s ease both;
}
.hero h1, .page-header h1 {
  margin: 0; font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -.03em;
}
.hero h1 { max-width: 11ch; font-size: clamp(3.8rem, 9vw, 7.4rem); }
.standfirst { max-width: 720px; font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.85rem); line-height: 1.35; }
.hero .standfirst { max-width: 34ch; margin-top: 1.4rem; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.3rem; }
.hero-panel {
  padding: 2rem 1.8rem; border: 1px solid var(--line);
  background: rgb(255 253 248 / 72%);
  box-shadow: var(--shadow);
  position: relative;
  animation: rise 1.1s .12s ease both;
}
.hero-panel::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid rgb(168 137 74 / 45%); pointer-events: none;
}
.hero-panel p:last-child { margin-bottom: 0; }
.hero-note {
  position: relative; padding: 7rem 2rem 2rem; border: 1px solid var(--line);
  background: rgb(255 253 247 / 55%); box-shadow: var(--shadow);
}
.hero-note::before, .hero-note::after { content: ""; position: absolute; border: 1px solid var(--line); inset: 10px; pointer-events: none; }
.hero-note::after { inset: 18px; border-color: transparent; border-top-color: var(--gold); }
.ornament {
  position: absolute; top: 2rem; left: 50%; width: 65px; height: 65px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--forest); font-family: var(--serif); transform: translateX(-50%);
}

.paper-band { padding-block: 5.5rem; background: var(--forest); color: var(--white); position: relative; overflow: hidden; }
.paper-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120' viewBox='0 0 220 120'%3E%3Cpath fill='none' stroke='%23d8c38f' stroke-width='1' d='M10 90c30-40 50-55 70-55s40 20 60 20 40-30 70-45'/%3E%3C/svg%3E");
  background-size: 220px 120px;
}
.paper-band .eyebrow { color: #d7bb82; }
.prose-grid { display: grid; grid-template-columns: minmax(130px, .35fr) minmax(0, 1.35fr); gap: 4rem; position: relative; z-index: 1; }
.prose-grid h2 { margin-top: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 400; line-height: 1.12; }
.prose-grid > div > p { max-width: 760px; font-size: 1.08rem; }
.paper-band a { color: white; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 5rem; }
.feature-grid article { padding: 1rem 2.5rem 2rem; border-left: 1px solid var(--line); }
.feature-grid article:last-child { border-right: 1px solid var(--line); }
.feature-grid h2 { font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.number { color: var(--bronze); font-family: var(--serif); font-size: 1.3rem; }

.page-header { padding-block: 6rem 4rem; border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 950px; font-size: clamp(3.2rem, 7vw, 6.2rem); }
.page-header + .prose-grid { padding-block: 4.5rem 6rem; }
.prose { max-width: 800px; }
.prose > p:first-child { margin-top: 0; font-size: 1.15rem; }
.prose h2 { margin-top: 2.6rem; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .45rem 0; }
.notice { margin: 2rem 0; padding: 1.2rem 1.4rem; border-left: 4px solid var(--gold); background: var(--paper-deep); }
.notice p:last-child { margin-bottom: 0; }
.checklist { padding: 0; list-style: none; }
.checklist li { padding: .8rem 0 .8rem 2.2rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: "✓"; position: absolute; left: .3rem; color: var(--forest-2); font-weight: 800; }
.timeline { padding-block: 5rem 7rem; list-style: none; }
.timeline li { display: grid; grid-template-columns: 150px minmax(0, 700px); gap: 3rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.timeline time { color: var(--bronze); font-family: var(--serif); font-size: 2rem; }
.timeline h2 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }

.section-block { padding-block: 4.5rem 5rem; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2 { margin: 0 0 .8rem; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400; line-height: 1.1; }
.section-more { margin-top: 2rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.6rem; }
.gallery-grid-compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-card { display: flex; flex-direction: column; gap: .85rem; }
.gallery-card-media {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--paper-deep); border: 1px solid var(--line); text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-card-media:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-placeholder {
  width: 100%; height: 100%; min-height: 180px; display: grid; place-items: center;
  background:
    linear-gradient(160deg, rgb(229 220 203 / 90%), rgb(242 235 224 / 40%)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%236b5428' stroke-opacity='.28' stroke-width='1.2' d='M60 18c4 18 4 34 0 52M46 32c12 12 22 28 24 46M74 30c-10 14-18 30-20 48'/%3E%3C/svg%3E");
  background-size: cover, 120px 120px;
  color: var(--bronze); font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em;
}
.gallery-placeholder-large { min-height: 420px; font-size: 1.6rem; }
.gallery-card-body h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.gallery-card-body h3 a { color: var(--ink); text-decoration: none; }
.gallery-card-body h3 a:hover { color: var(--bronze); }
.meta { margin: .25rem 0; color: #5c675f; font-size: .9rem; }
.copyright-line { margin: .4rem 0 0; font-size: .78rem; color: #667168; }
.placeholder-tag {
  display: inline-block; margin: .35rem 0 0; padding: .15rem .45rem;
  border: 1px solid var(--line); color: var(--bronze); font-size: .68rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.category-nav {
  display: flex; flex-wrap: wrap; gap: .7rem 1.1rem; margin-bottom: 2.5rem;
  padding-bottom: 1.2rem; border-bottom: 1px solid var(--line);
}
.category-nav a {
  color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600;
  padding-bottom: .2rem; border-bottom: 2px solid transparent;
}
.category-nav a.is-active, .category-nav a:hover { border-bottom-color: var(--bronze); color: var(--bronze); }

.work-detail {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3rem; padding-block: 3.5rem 5rem; align-items: start;
}
.work-figure { margin: 0; }
.work-figure img, .work-figure .gallery-placeholder {
  width: 100%; border: 1px solid var(--line); background: var(--paper-deep);
}
.work-figure figcaption { margin-top: .9rem; }

.news-list { display: flex; flex-direction: column; gap: 0; }
.news-row {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 2rem;
  padding: 1.6rem 0; border-top: 1px solid var(--line);
}
.news-row time { color: var(--bronze); font-family: var(--serif); font-size: 1.15rem; }
.news-row h2, .news-row h3 { margin: 0 0 .5rem; font-family: var(--serif); font-weight: 400; }
.news-row h2 { font-size: 2rem; }
.news-row h3 { font-size: 1.55rem; }
.news-row h2 a, .news-row h3 a { color: var(--ink); text-decoration: none; }
.news-row h2 a:hover, .news-row h3 a:hover { color: var(--bronze); }
.news-list-full .news-row:last-child { border-bottom: 1px solid var(--line); }

.research-group { margin-top: 3rem; }
.research-group h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
.research-list { margin: 0; padding: 0; list-style: none; }
.research-list li { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.research-list h3 { margin: 0 0 .35rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }

.site-footer { padding-block: 4rem; border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .8fr .9fr; gap: 2.5rem; }
.footer-links p { margin: .35rem 0; }
.footer-note { grid-column: 1 / -1; margin: .5rem 0 0; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Administration */
.admin-site { background: #eceeea; color: #18241c; }
.admin-header { min-height: 78px; display: flex; align-items: center; gap: 2rem; padding: .8rem 2rem; background: var(--forest); color: white; }
.admin-brand { display: flex; flex-direction: column; min-width: 210px; color: white; line-height: 1.15; text-decoration: none; }
.admin-brand span { font-family: var(--serif); }
.admin-brand strong { margin-top: .15rem; color: #d8c38f; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.admin-header nav { display: flex; flex: 1; gap: 1.2rem; }
.admin-header nav a { color: #edf2ed; font-size: .85rem; font-weight: 600; text-decoration: none; }
.quiet-button { border: 1px solid rgb(255 255 255 / 35%); background: transparent; color: white; padding: .45rem .8rem; }
.admin-main { width: min(1380px, calc(100% - 3rem)); margin: 0 auto; padding-block: 2.5rem 5rem; }
.admin-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.admin-page-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; line-height: 1; }
.admin-page-heading p:last-child { margin-bottom: 0; color: #536158; }
.heading-actions { display: flex; align-items: center; gap: 1rem; }
.metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 1.5rem; }
.metric-grid article { min-height: 130px; padding: 1.1rem; border: 1px solid #d3d8d2; background: white; }
.metric-grid span { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.metric-grid p { margin: .8rem 0 0; color: #556159; font-size: .82rem; }
.metric-grid .attention { border-color: #b8634f; background: #fff8f5; }
.panel { margin-bottom: 1.5rem; padding: 1.4rem; border: 1px solid #d3d8d2; background: white; box-shadow: 0 4px 15px rgb(30 43 34 / 4%); }
.panel h2 { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; }
.panel-heading .eyebrow { margin-bottom: .2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .85rem .7rem; border-bottom: 1px solid #e3e6e2; text-align: left; vertical-align: top; }
th { color: #5b685f; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
td small { display: block; color: #66736a; }
.status { display: inline-block; padding: .28rem .55rem; border: 1px solid #bac5bd; border-radius: 99px; background: #edf3ee; color: #294434; font-size: .72rem; font-style: normal; font-weight: 700; white-space: nowrap; }
.status-awaiting_family, .status-awaiting_payment, .status-supplied_copy { border-color: #d3b56d; background: #fff8dd; color: #614c13; }
.status-declined, .status-closed { background: #eee; color: #555; }
.sample-badge { display: inline-block; margin-left: .5rem; padding: .28rem .55rem; background: #fff0d0; color: #674611; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.filter-bar { display: flex; align-items: end; gap: 1rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid #d3d8d2; background: #f7f8f6; }
.filter-bar label { flex: 1; color: #526057; font-size: .78rem; font-weight: 700; }
.filter-bar input, .filter-bar select { width: 100%; margin-top: .25rem; }
input, select, textarea { min-height: 42px; padding: .55rem .65rem; border: 1px solid #aab5ad; border-radius: 0; background: white; color: var(--ink); }
textarea { min-height: 100px; resize: vertical; }
input[type="checkbox"] { width: 20px; min-height: 20px; }
.filter-bar button, .stacked-form button, .model-form button { min-height: 42px; padding: .55rem 1rem; border: 1px solid var(--forest); background: var(--forest); color: white; font-weight: 700; }
.model-form { padding: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.5rem; }
.field { display: flex; flex-direction: column; gap: .3rem; }
.field.full-width { grid-column: 1 / -1; }
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: .7rem 0; border-bottom: 1px solid #e3e6e2; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list small { display: block; color: #66736a; }
.message.warning { border-color: #d3b56d; background: #fff8dd; color: #614c13; }
.field label, .stacked-form label { font-size: .79rem; font-weight: 750; }
.field small { color: #647168; }
.field .errorlist { margin: .2rem 0; color: var(--danger); }
.checkbox-field { flex-direction: row; align-items: center; }
.checkbox-field input { order: -1; }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #dfe4df; }
.stacked-form > div { display: flex; flex-direction: column; gap: .25rem; margin-bottom: 1rem; }
.compact { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid #dfe4df; }
.login-panel { width: min(480px, 100%); margin: 5rem auto; padding: 2.5rem; border: 1px solid #ccd3cd; background: white; box-shadow: var(--shadow); }
.login-panel h1 { margin-top: 0; font-family: var(--serif); font-size: 2.7rem; font-weight: 400; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .65fr); gap: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1rem; border-top: 1px solid #e2e5e2; }
.facts dt { color: #69736c; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.facts dd { margin: .2rem 0 0; }
.sensitive { border-left: 4px solid #93613a; background: #fffdf8; }
.sensitive h3 { margin: 1.2rem 0 .3rem; font-size: .8rem; text-transform: uppercase; }
.quote-row { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .8rem 0; border-top: 1px solid #e3e6e2; }
.quote-row small, .quote-row em { grid-column: 1 / -1; color: #667269; }
.quote-row em { color: #815a15; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.audit-list { padding: 0; list-style: none; }
.audit-list li { display: grid; grid-template-columns: 145px 1fr; gap: 1rem; padding: .65rem 0; border-top: 1px solid #e3e6e2; }
.audit-list time { color: #69736c; font-size: .78rem; }
.audit-list small { display: block; color: #69736c; }
.messages { width: min(1380px, calc(100% - 3rem)); margin: 1rem auto 0; }
.message { padding: .75rem 1rem; border-left: 4px solid var(--forest); background: white; }
.message.error, .form-errors { border-left-color: var(--danger); color: var(--danger); }
.warning { border-left-color: #b17b1f; }

/* Demonstration banner, shown on every page while DEMO_MODE is on */
.demo-banner {
  margin: 0; padding: .6rem 1.5rem;
  border-bottom: 1px solid var(--bronze);
  background: repeating-linear-gradient(135deg, #f6ecd4, #f6ecd4 14px, #f1e4c6 14px, #f1e4c6 28px);
  color: #4a3a16; font-size: .82rem; text-align: center;
}
.demo-banner strong { display: inline-block; margin-right: .4rem; letter-spacing: .1em; text-transform: uppercase; }

/* Reassuring empty states rather than blank tables */
.empty-state { margin: 0; padding: 1rem 1.1rem; border-left: 4px solid #bac5bd; background: #f4f7f4; color: #4a5750; }

/* Warnings that must be impossible to overlook */
.payment-warning, .document-warning {
  padding: 1rem 1.15rem; border: 2px solid var(--rust); border-left-width: 6px;
  background: #fdf3ec; color: #5a2f1a;
}
.payment-warning strong, .document-warning strong { display: block; font-size: 1rem; }
.payment-warning p, .document-warning p { margin: .4rem 0 0; }
.payment-warning-large {
  padding: 1.6rem; border: 3px solid var(--rust); background: #fdf1e8; color: #5a2f1a; text-align: center;
}
.payment-warning-large strong { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.2; }
.payment-warning-large p { margin: .7rem 0 0; }
.warning-text { color: #7a4a1c; font-weight: 700; }
.sample-notice { padding: .9rem 1.1rem; border-left: 4px solid var(--gold); background: #fffaea; color: #5a4a17; }

/* Public enquiry form */
.enquiry-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .5fr); gap: 2.5rem; align-items: start; }
.enquiry-intro { border-left: 3px solid var(--gold); padding-left: 1.2rem; }
.enquiry-form { padding: 2rem; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.enquiry-form fieldset { margin: 0 0 1.8rem; padding: 0; border: 0; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.enquiry-form legend { padding: 0 .6rem 0 0; font-family: var(--serif); font-size: 1.3rem; }
.enquiry-form label { display: block; font-weight: 700; font-size: .86rem; }
.enquiry-form input[type="text"], .enquiry-form input[type="email"], .enquiry-form input[type="tel"],
.enquiry-form input[type="date"], .enquiry-form input[type="number"], .enquiry-form select, .enquiry-form textarea {
  width: 100%; padding: .6rem .7rem; border: 1px solid #b8bfb6; background: white;
}
.enquiry-form small { display: block; color: #5c675f; font-size: .8rem; }
.enquiry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; }
.enquiry-grid .full-width { grid-column: 1 / -1; }
.enquiry-grid .checkbox-field { display: grid; grid-template-columns: auto 1fr; gap: .1rem .6rem; align-items: start; }
.enquiry-grid .checkbox-field input { margin-top: .45rem; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Requester pages reached by secure link, no sign-in */
.requester-panels { display: grid; gap: 1.5rem; }
.requester-card { padding: 1.6rem; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.requester-card h2 { margin-top: 0; font-family: var(--serif); font-weight: 400; }
.requester-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin: 0; }
.requester-facts dt { color: #69736c; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.requester-facts dd { margin: .15rem 0 0; }
.requester-form { display: grid; gap: .9rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.requester-form label { font-weight: 700; font-size: .86rem; }
.requester-form input[type="text"], .requester-form textarea { width: 100%; padding: .6rem .7rem; border: 1px solid #b8bfb6; background: white; }
.requester-messages { display: grid; gap: 1rem; padding: 0; list-style: none; }
.requester-message { padding: 1rem 1.1rem; border-left: 3px solid var(--forest-2); background: #f5f8f5; }
.requester-message p { margin: .4rem 0 0; white-space: pre-line; }

/* Family reviewer portal, deliberately plain and free of Estate finances */
.family-heading { border-bottom: 2px solid var(--gold); }
.family-note .notice { border-left-color: var(--gold); }
.family-card { padding: 1.2rem 0; border-top: 1px solid #e2e5e2; }
.family-card:first-of-type { border-top: 0; }
.family-card-heading { display: flex; flex-wrap: wrap; gap: .8rem; align-items: baseline; justify-content: space-between; }
.family-card-heading h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.family-summary { max-width: 62ch; font-size: 1.02rem; white-space: pre-line; }

/* Work queues */
.queue-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.queue-nav a { padding: .4rem .75rem; border: 1px solid #c3ccc4; background: var(--white); font-size: .82rem; text-decoration: none; }
.queue-nav a.is-active { border-color: var(--forest); background: var(--forest); color: white; }
.queue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.queue-count { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }

/* Audit trails shown inside panels */
.audit-trail { display: grid; gap: .55rem; margin: 0; padding-left: 1.2rem; }
.audit-when { color: #69736c; font-size: .78rem; }

/* Radio and checkbox groups */
.choice-set { margin: 0 0 1rem; padding: 0; border: 0; }
.choice-set legend { padding: 0; font-weight: 700; font-size: .86rem; }
.choice { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem 0; }

/* Action clusters on detail pages */
.action-bar { display: flex; flex-wrap: wrap; gap: .6rem; }
.action-links { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: .7rem; font-size: .84rem; }
.link-button { padding: 0; border: 0; background: none; color: var(--forest-2); font-weight: 700; text-decoration: underline; }
.link-button:hover { color: var(--rust); }

/* Captured email and draft licence wording */
.email-preview, .draft-terms {
  padding: 1rem 1.1rem; border: 1px dashed #a9b3aa; background: #fbfbf7;
  font-size: .92rem; white-space: pre-line;
}

@media (max-width: 980px) {
  .enquiry-layout { grid-template-columns: 1fr; }
  .masthead { align-items: flex-start; flex-direction: column; padding-block: 1.3rem; }
  .masthead nav { max-width: none; justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 2.5rem; min-height: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .gallery-grid, .gallery-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-header { align-items: flex-start; flex-wrap: wrap; }
  .admin-header nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  .shell, .admin-main, .messages { width: min(100% - 1.5rem, 1180px); }
  .hero { padding-block: 3.5rem; }
  .hero h1 { font-size: 3.4rem; }
  .prose-grid, .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid { padding-block: 3rem; }
  .page-header { padding-block: 3.5rem 2.5rem; }
  .page-header h1 { font-size: 2.8rem; }
  .page-header + .prose-grid { padding-block: 3rem 4rem; }
  .timeline li, .news-row { grid-template-columns: 1fr; gap: .4rem; }
  .gallery-grid, .gallery-grid-compact { grid-template-columns: 1fr; }
  .admin-header { padding: .8rem; }
  .admin-page-heading { align-items: flex-start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid, .facts, .enquiry-grid, .requester-facts { grid-template-columns: 1fr; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .model-form { padding: 1rem; }
  .audit-list li { grid-template-columns: 1fr; gap: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.gallery-grid > figure { margin: 0; min-width: 0; }
.demo-work-image { position: relative; min-height: 240px; height: 100%; overflow: hidden; background: #343c32; }
.demo-work-image img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display:block; }
.demo-work-image::after { content: ""; position:absolute; inset:40% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.85)); }
.demo-work-image > span, .demo-work-image > small { position:absolute; left:1.2rem; right:1rem; color:white; z-index:1; }
.demo-work-image > span { bottom:2.5rem; font-size:1.5rem; font-weight:600; }
.demo-work-image > small { bottom:.7rem; font-size:.8rem; }
.biography-portrait { max-width: 640px; margin-block:3rem; }
.biography-portrait img { width:100%; height:auto; display:block; }
.biography-portrait figcaption { font-size:.9rem; padding-block:1rem; }
.illustration-collection { border-top: 1px solid #d4cbbb; }
.illustration-note { max-width: 65ch; margin-bottom: 1.5rem; }
.illustration-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2rem; }
.illustration-grid figure { margin: 0; min-width: 0; }
.illustration-grid img { display: block; width: 100%; height: auto; }
.illustration-grid figcaption { padding-top: .8rem; line-height: 1.6; }
.illustration-grid figcaption span { display: block; font-size: .85rem; color: #615d53; }
@media print { .illustration-collection { display: none; } }
.gallery-grid > figure img { display: block; width: 100%; height: auto; }
.gallery-grid > figure figcaption { padding-block: .75rem; }

@media print {
  .site-header, .site-footer, .admin-header, .filter-bar, .button, .quiet-button { display: none !important; }
  body { background: white; color: black; }
  .panel { box-shadow: none; }
}
