/* CB On-Set — brand tokens
   Ink and Ember come straight from the CB monogram. Cream and Sand pick up the
   warm wood and sepia tones in the photography; Oxblood is the red-lit image
   darkened for a calm, legible contact section.
   To change a colour across the whole site, change it here. */
:root {
  --ink: #171717;
  --ink-soft: #4a4643;
  --ember: #b4502a;        /* text/buttons: 4.5:1 on cream */
  --ember-line: #c65a2e;   /* the monogram line, decorative only */
  --paper: #f7f1e8;       /* cream page background */
  --card: #fffcf7;        /* lighter cream for the form panel */
  --field: #ffffff;       /* form inputs */
  --plaster: #ede3d5;     /* sand: Services band, photo placeholders */
  --rule: #ddd2c4;
  --oxblood: #34161d;
  --oxblood-soft: #e9d9d5;
  --error: #a3231a;

  --font: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --step-4: clamp(2.125rem, 1.4rem + 3vw, 3.75rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 3rem + 5vw, 7.5rem);

  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 var(--space-2); }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--paper); padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 241, 232, 0.96);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0 var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 38px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.primary-nav a {
  display: inline-block; padding: 10px 2px;
  text-decoration: none; font-weight: 500; font-size: var(--step--1);
  position: relative;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
  background: var(--ember-line); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.primary-nav a:hover::after,
.primary-nav a[aria-current="true"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); }

/* Language switch: the monogram's orange line is the divider */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--ink); border-radius: 999px;
  padding: 3px;
}
.lang-switch button {
  font: inherit; font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.04em;
  min-width: 44px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  cursor: pointer; transition: background-color .2s, color .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.lang-switch button[aria-pressed="false"]:hover { background: var(--plaster); }
.lang-bar { width: 2px; height: 20px; background: var(--ember-line); margin: 0 3px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 22px; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease-out), opacity .2s;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Side contact tab, a nod to the reference */
.contact-tab {
  position: fixed; right: 0; top: 38%; z-index: 90;
  writing-mode: vertical-rl;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--rule); border-right: 0;
  border-left: 3px solid var(--ember-line);
  padding: 18px 12px; text-decoration: none; font-weight: 500; font-size: var(--step--1);
  box-shadow: -2px 2px 12px rgba(23, 23, 23, 0.08);
}
.contact-tab:hover { background: var(--plaster); }
/* Only show the side tab when there's room beside the content, so it never covers text */
@media (max-width: 1319px) { .contact-tab { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 2rem + 5vw, 6.5rem); }
.hero-text {
  max-width: 900px; margin: 0 auto; padding: 0 var(--gutter);
  text-align: center;
}
.hero h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
.hero-sub { margin: var(--space-3) auto 0; color: var(--ink-soft); font-size: var(--step-1); max-width: 40ch; }
.hero-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-1) var(--space-4);
  margin: var(--space-4) 0 var(--space-5);
}
.hero-links a {
  display: inline-block; padding: 8px 0;
  text-decoration: none; font-weight: 500;
  border-bottom: 2px solid var(--ember-line);
}
.hero-links a:hover { color: var(--ember); }

/* Image strip */
.strip { position: relative; }
.strip-track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-track li { flex: 0 0 auto; scroll-snap-align: start; height: clamp(300px, 46vw, 560px); }
.strip-track img { height: 100%; width: auto; object-fit: cover; background: var(--plaster); }
.strip-track:focus-visible { outline-offset: -3px; }

.strip-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(255, 252, 247, 0.92); color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(23, 23, 23, 0.18);
  transition: background-color .2s, opacity .2s;
}
.strip-btn:hover { background: var(--card); }
.strip-btn:disabled { opacity: 0.35; cursor: default; }
.strip-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.strip-btn.prev { left: 16px; }
.strip-btn.next { right: 16px; }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; }
.section-head { max-width: 720px; margin-bottom: var(--space-5); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); margin-top: var(--space-2); }

/* The monogram line as heading device */
.ruled {
  font-size: var(--step-3);
  padding-left: 22px;
  border-left: 3px solid var(--ember-line);
}
.lead { font-size: var(--step-1); line-height: 1.5; }

/* About */
.about-grid {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: start;
}
.about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% center; }
.about-body { max-width: 62ch; }
.about-body .ruled { margin-bottom: var(--space-3); }
.about-body p { color: var(--ink-soft); }
.about-body .lead { color: var(--ink); }
.goals-title { font-size: var(--step-2); margin: var(--space-4) 0 var(--space-3); }
.goals li {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--rule);
  display: grid; gap: 4px;
}
.goals li:last-child { border-bottom: 1px solid var(--rule); }
.goals strong { font-weight: 500; font-size: var(--step-1); }
.goals span { color: var(--ink-soft); }

/* Services */
.services { background: var(--plaster); }
.services-layout { display: grid; gap: var(--space-5); }
.service-list { display: grid; gap: var(--space-4) var(--space-5); grid-template-columns: 1fr; }
.service-list h3 { font-size: var(--step-2); margin-bottom: var(--space-1); }
.service-list p { color: var(--ink-soft); margin: 0; }
.services-media { margin: 0; }
.services-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

/* Process: a real sequence, so it's numbered */
.steps {
  counter-reset: step;
  display: grid; gap: var(--space-4) var(--space-5);
  grid-template-columns: 1fr;
}
.steps li { counter-increment: step; position: relative; padding-top: var(--space-3); border-top: 1px solid var(--ink); }
.steps li::before {
  content: counter(step);
  display: block; font-size: var(--step-3); font-weight: 500; line-height: 1;
  color: var(--ember); margin-bottom: var(--space-2);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: var(--step-1); margin-bottom: var(--space-1); }
.steps p { color: var(--ink-soft); margin: 0; }

/* Team */
.team { padding-top: 0; }
.team-grid { display: grid; gap: var(--space-5) var(--space-4); grid-template-columns: 1fr; }
.member-photo {
  aspect-ratio: 4 / 5; background: var(--plaster);
  display: grid; place-items: center; margin-bottom: var(--space-3);
}
.member-photo img { width: 42%; opacity: 0.5; }
.member h3 { font-size: var(--step-2); }
.member-role { color: var(--ember); font-weight: 500; margin: 6px 0 2px; }
.member-meta { color: var(--ink-soft); font-size: var(--step--1); margin-bottom: var(--space-2); }
.member p:last-child { color: var(--ink-soft); }

/* Contact */
.contact { background: var(--oxblood); color: var(--paper); }
.contact .ruled { border-left-color: var(--ember-line); }
.contact-grid { display: grid; gap: var(--space-5); }
.contact-intro p { color: var(--oxblood-soft); }
.contact-intro .lead { color: var(--paper); margin-top: var(--space-3); }
.contact-email { margin-top: var(--space-3); }
.contact-email a {
  font-size: var(--step-2); font-weight: 500; color: var(--paper);
  text-decoration: none; border-bottom: 2px solid var(--ember-line); padding-bottom: 2px;
  overflow-wrap: anywhere;
}
.contact-email a:hover { border-bottom-color: var(--paper); }
.contact-areas { margin-top: var(--space-4); }

.enquiry {
  background: var(--card); color: var(--ink);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}
.field { margin-bottom: var(--space-3); }
.field-row { display: grid; gap: 0 var(--space-3); grid-template-columns: 1fr; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: var(--step--1); }
.req { color: var(--ember); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  min-height: 48px; padding: 10px 12px;
  border: 1px solid #8f8984; border-radius: 4px; background: var(--field);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-help { font-size: var(--step--1); color: var(--ink-soft); margin: 6px 0 0; }
.field-err { color: var(--error); font-size: var(--step--1); font-weight: 500; margin: 6px 0 0; }

.field.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.field.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); }
.field.check label { font-weight: 400; margin: 0; }
.field.check .field-err { grid-column: 2; }

.req-note { font-size: var(--step--1); color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }

.error-summary {
  border: 2px solid var(--error); padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-3);
}
.error-summary p { font-weight: 500; margin-bottom: 6px; }
.error-summary ul { list-style: disc; padding-left: 1.2em; }
.error-summary a { color: var(--error); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: inherit; font-weight: 500;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: var(--ember); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn[aria-busy="true"]::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status:not(:empty) { margin-top: var(--space-3); padding: var(--space-2) var(--space-3); border-left: 3px solid var(--ember-line); background: var(--plaster); }
.form-status.ok { border-left-color: #2f6b3a; }

/* Footer */
.site-footer { background: var(--ink); color: #d8d4d0; padding: var(--space-5) 0; }
.footer-inner { display: grid; gap: var(--space-2); }
.footer-logo { width: 200px; margin-bottom: var(--space-2); }
.footer-meta { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: var(--step--1); margin: 0; }
.footer-meta a { color: var(--paper); }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 5fr 6fr; gap: var(--space-6); }
  .about-media { position: sticky; top: calc(var(--header-h) + 32px); }
  .services-layout { grid-template-columns: 2fr 1fr; align-items: start; }
  .services-media { position: sticky; top: calc(var(--header-h) + 32px); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 5fr 7fr; gap: var(--space-6); }
}

/* Mobile navigation */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .brand img { height: 30px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .primary-nav.open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; padding: var(--space-1) var(--gutter) var(--space-3); }
  .primary-nav a { display: block; padding: 14px 0; font-size: var(--step-1); border-bottom: 1px solid var(--rule); }
  .primary-nav a::after { display: none; }
  .header-actions { margin-left: auto; }
  .contact-tab { display: none; }
  .strip-btn { width: 44px; height: 44px; }
  .strip-btn.prev { left: 8px; }
  .strip-btn.next { right: 8px; }
}
@media (max-width: 380px) {
  .brand img { height: 26px; }
  .lang-switch button { min-width: 40px; padding: 0 8px; }
}

/* ---------- Paragraph breaks from content.js ----------
   A \n\n in a text in content.js shows as a new paragraph. */
[data-i18n] { white-space: pre-line; }

/* ---------- Alignment: headlines centred, body text justified ---------- */
h1, h2, h3,
.goals strong,
.member-role, .member-meta,
.steps li::before { text-align: center; }

/* Section headings: the monogram's orange line sits centred above the title */
.ruled {
  border-left: 0;
  padding-left: 0;
  text-align: center;
}
.ruled::before {
  content: "";
  display: block;
  width: 3px;
  height: 1.1em;
  margin: 0 auto 16px;
  background: var(--ember-line);
}

/* Section intros and lead lines are short, so they're centred under their headline */
.section-head { margin-left: auto; margin-right: auto; text-align: center; }
.lead,
.contact-intro { text-align: center; }

/* Body text: justified, with hyphenation so word gaps stay even (language comes from <html lang>) */
.about-body p:not(.lead),
.goals span,
.service-list p,
.steps p,
.member p:last-child {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  hyphenate-limit-chars: 4 2 2;
}

/* Bold words from content.js (**like this**): darker and heavier so they stand out in body text */
main [data-i18n] strong { font-weight: 600; color: var(--ink); hyphens: manual; -webkit-hyphens: manual; }
.contact [data-i18n] strong { color: inherit; }

/* ---------- Services: title over the text, odd last service centred ---------- */
.services .section-head { margin-bottom: var(--space-6); }
@media (min-width: 640px) {
  /* When the last visible service is alone on its row, centre it */
  .service-list > li:not([hidden]):nth-child(odd):not(:has(~ li:not([hidden]))) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - var(--space-5) / 2);
  }
}
@media (min-width: 960px) {
  /* Centre the title over the two text columns, not the whole width (photo included) */
  .services .section-head {
    max-width: none;
    width: calc((100% - var(--space-5)) * 2 / 3);
    margin-left: 0;
    margin-right: 0;
  }
}

/* How we work: slightly narrower gutters so the justified columns have more room */
@media (min-width: 960px) {
  .steps { column-gap: var(--space-4); }
}

/* ---------- Contact: two ways to get in touch ---------- */
.contact-paths { display: grid; gap: var(--space-3); margin: var(--space-4) 0; text-align: left; }
.contact-path {
  border-top: 1px solid rgba(233, 217, 213, 0.3);
  padding-top: var(--space-3);
  display: grid; gap: var(--space-2);
}
.contact-path h3 { color: var(--paper); font-size: var(--step-1); text-align: center; }
.contact .contact-path p { margin: 0; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; justify-self: center;
  font-weight: 500; color: var(--paper); text-decoration: none;
  border: 1.5px solid var(--paper); border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-outline::after { content: "→"; }
.btn-outline:hover { background: var(--paper); color: var(--oxblood); }

/* ---------- Forms: switch between "Production enquiry" and "Join our roster" ---------- */
.forms { scroll-margin-top: calc(var(--header-h) + 16px); }
.form-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  padding: 4px; margin-bottom: var(--space-2);
  border: 1.5px solid var(--paper); border-radius: 999px;
}
.form-switch button {
  min-height: 48px; padding: 0 16px;
  font: inherit; font-weight: 500; color: var(--paper);
  background: transparent; border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.form-switch button:hover { background: rgba(247, 241, 232, 0.12); }
.form-switch button[aria-pressed="true"] { background: var(--paper); color: var(--oxblood); }
.form-switch button:focus-visible { outline: 3px solid var(--ember-line); outline-offset: 2px; }
.form-intro { margin: 0 0 var(--space-3); color: var(--ink-soft); }

/* File upload fields */
.field input[type="file"] {
  width: 100%; font: inherit; font-size: var(--step--1); color: var(--ink);
  padding: 10px; border: 1px dashed #8f8984; border-radius: 4px; background: var(--field);
}
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 500; margin-right: 12px; padding: 8px 14px;
  color: var(--paper); background: var(--ink); border: 0; border-radius: 999px; cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--ember); }
.files-help { margin: calc(var(--space-2) * -1) 0 var(--space-3); }

/* The brand's orange line between the two form choices (as in the logo and above each title) */
.form-switch { grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.form-switch-bar { width: 3px; height: 28px; background: var(--ember-line); }

/* =========================================================
   Opening: logo intro, bigger header logo, coloured hero
   ========================================================= */
:root { --ember-glow: #e3784b; } /* lighter ember for words on dark backgrounds */

/* ---------- Logo intro (shown once per visit) ---------- */
.intro { display: none; }
.intro-on .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(198, 90, 46, 0.55), transparent 70%),
    radial-gradient(60% 55% at 100% 100%, rgba(237, 227, 213, 0.14), transparent 70%),
    #241014;
  animation: intro-out .7s ease 2.3s forwards;
  cursor: pointer;
}
.intro-on:not(.intro-done) body { overflow: hidden; }
.intro-done .intro { display: none; }
.intro-inner { display: grid; justify-items: center; gap: 28px; width: min(560px, 72vw); }
.intro-inner img {
  width: 100%; height: auto;
  opacity: 0; transform: scale(.94);
  animation: intro-logo 1.1s cubic-bezier(.2, .7, .2, 1) .2s forwards;
}
.intro-line {
  display: block; height: 3px; width: 100%;
  background: var(--ember-line);
  transform: scaleX(0); transform-origin: left;
  animation: intro-line 1.6s cubic-bezier(.6, 0, .2, 1) .5s forwards;
}
@keyframes intro-logo { to { opacity: 1; transform: scale(1); } }
@keyframes intro-line { to { transform: scaleX(1); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Header logo: more presence ---------- */
:root { --header-h: 88px; }
.brand img { height: 52px; }
@media (max-width: 899px) {
  :root { --header-h: 72px; }
  .brand img { height: 38px; }
}
@media (max-width: 380px) {
  .brand img { height: 32px; }
}

/* ---------- Hero: oxblood with warm glows ---------- */
.hero {
  position: relative; overflow: hidden;
  color: var(--paper);
  background:
    radial-gradient(55% 60% at 0% 0%, rgba(198, 90, 46, 0.5), transparent 70%),
    radial-gradient(45% 55% at 100% 30%, rgba(237, 227, 213, 0.12), transparent 70%),
    linear-gradient(180deg, #2a1117 0%, var(--oxblood) 60%, #3d1a21 100%);
  padding-bottom: clamp(2rem, 1rem + 3vw, 4rem);
}
/* Large faded monogram line in the background, echoing the logo */
.hero::before {
  content: ""; position: absolute; z-index: 0;
  left: 88%; top: -10%; width: 3px; height: 120%;
  background: linear-gradient(180deg, transparent, rgba(198, 90, 46, 0.35) 30%, rgba(198, 90, 46, 0.35) 70%, transparent);
  transform: translateX(-50%) rotate(18deg);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-mark {
  display: block; width: 3px; height: 64px; margin: 0 auto var(--space-3);
  background: var(--ember-line);
}
.hero h1 { color: var(--paper); }
.hero h1 strong { color: var(--ember-glow); font-weight: inherit; }
.hero .hero-sub { color: var(--oxblood-soft); }
.hero-links a { color: var(--paper); border-bottom-color: var(--ember-glow); }
.hero-links a:hover { color: var(--ember-glow); }
.hero .strip-track img { background: #2a1117; }

/* Gentle entrance for the title once the page (or the intro) is ready */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: hero-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .1s; }
  .hero-text > :nth-child(3) { animation-delay: .2s; }
  .hero-text > :nth-child(4) { animation-delay: .3s; }
  .intro-on .hero-text > * { animation-delay: 2.5s; }
  .intro-on .hero-text > :nth-child(2) { animation-delay: 2.6s; }
  .intro-on .hero-text > :nth-child(3) { animation-delay: 2.7s; }
  .intro-on .hero-text > :nth-child(4) { animation-delay: 2.8s; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =========================================================
   Light version of the home page (replaces the dark hero above).
   One pattern runs through the whole site: soft burgundy/ember
   "light leaks" in the corners, the brand's orange line, and
   warm burgundy shadows under the photos.
   ========================================================= */
:root {
  --glow-ember: rgba(198, 90, 46, 0.26);
  --glow-wine: rgba(52, 22, 29, 0.22);
  --shadow-wine: 0 24px 48px -22px rgba(52, 22, 29, 0.55), 0 8px 18px -10px rgba(52, 22, 29, 0.25);
}

/* Hero: cream, with an ember glow top-left and a burgundy shadow bottom-right */
.hero {
  color: var(--ink);
  background:
    radial-gradient(55% 65% at 0% 0%, var(--glow-ember), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, var(--glow-wine), transparent 72%),
    var(--paper);
}
.hero::before {
  background: linear-gradient(180deg, transparent, rgba(198, 90, 46, 0.28) 30%, rgba(198, 90, 46, 0.28) 70%, transparent);
}
.hero h1 { color: var(--ink); }
.hero h1 strong { color: var(--ember); }
.hero .hero-sub { color: var(--ink-soft); }
.hero-links a { color: var(--ink); border-bottom-color: var(--ember-line); }
.hero-links a:hover { color: var(--ember); }
.hero .strip-track img { background: var(--plaster); }

/* Warm burgundy shadows under the photos, everywhere */
.strip-track { padding: 10px 0 40px; }
.strip-track img,
.about-media img,
.services-media img { box-shadow: var(--shadow-wine); }

/* The same corner glows on every section, alternating sides */
.about, .services, .process { position: relative; overflow: hidden; }
.about {
  background:
    radial-gradient(45% 55% at 100% 0%, var(--glow-ember), transparent 70%),
    var(--paper);
}
.services {
  background:
    radial-gradient(45% 55% at 0% 100%, var(--glow-wine), transparent 70%),
    radial-gradient(40% 50% at 100% 0%, rgba(198, 90, 46, 0.14), transparent 70%),
    var(--plaster);
}
.process {
  background:
    radial-gradient(45% 55% at 0% 0%, var(--glow-ember), transparent 70%),
    radial-gradient(45% 55% at 100% 100%, var(--glow-wine), transparent 70%),
    var(--paper);
}
/* Contact keeps its burgundy, with the same glows as the opening screen */
.contact {
  background:
    radial-gradient(55% 60% at 0% 0%, rgba(198, 90, 46, 0.45), transparent 70%),
    radial-gradient(50% 55% at 100% 100%, rgba(237, 227, 213, 0.10), transparent 70%),
    var(--oxblood);
}

/* The diagonal accent line only on wider screens, where it stays clear of the text */
@media (max-width: 899px) { .hero::before { display: none; } }

/* =========================================================
   Final look: one cream colour for every section, no glows or
   photo shadows. Only Contact stays dark burgundy.
   (Overrides the glow and shadow rules above.)
   ========================================================= */
.hero, .about, .services, .process, .team { background: var(--paper); }
.strip-track img,
.about-media img,
.services-media img { box-shadow: none; }
.strip-track { padding: 0; }

/* ---------- Hero: the CB monogram, faded, behind the title ---------- */
.hero-text { position: relative; isolation: isolate; }
.hero-text::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 50%;
  width: min(760px, 92vw); aspect-ratio: 900 / 610;
  transform: translate(-50%, -50%);
  background: url("assets/monogram.png") center / contain no-repeat;
  opacity: 0.07;
  pointer-events: none;
}
