/* ==========================================================================
   Yap.life — styles.css
   Brand tokens from the printed business cards. No build step.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --navy: #15233A;
  --gold: #B8924A;        /* rules, borders, diamonds, labels on navy (5.4:1 on navy) */
  --gold-light: #D8BC7F;  /* wordmark and text on navy (8.6:1) */
  --cream: #F8F3EA;
  --ink: #2A2A2A;
  --muted: #6B6457;       /* 5.3:1 on cream */
  --gold-text: #7A5A22;   /* gold text on cream (5.7:1). Never use #B8924A for text on cream. */

  /* Semantic (light) */
  --bg: var(--cream);
  --bg-tint: #F2EBDD;
  --surface: #FCF9F3;
  --text: var(--ink);
  --text-muted: var(--muted);
  --heading: var(--navy);
  --label: var(--gold-text);
  --rule: var(--gold);
  --rule-soft: rgba(184, 146, 74, 0.4);
  --link: var(--navy);
  --panel-bg: var(--navy);
  --panel-text: #ECE5D8;
  --panel-heading: var(--cream);
  --btn-bg: var(--navy);
  --btn-text: var(--cream);
  --field-bg: #FFFDF9;
  --field-border: #B9AE98;
  --focus: var(--navy);
  --shadow: 0 10px 30px rgba(21, 35, 58, 0.08);

  /* Type */
  --serif: "Palatino Linotype", Palatino, "Book Antiqua", "TeX Gyre Pagella", Georgia, serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 72rem;
  --narrow: 42rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius: 2px;
  --header-h: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--navy);
    --bg-tint: #192A44;
    --surface: #1B2C47;
    --text: #E9E2D4;
    --text-muted: #B9B0A0;
    --heading: var(--gold-light);
    --label: var(--gold);
    --rule-soft: rgba(184, 146, 74, 0.45);
    --link: var(--gold-light);
    --panel-bg: #0E1828;
    --panel-text: #E9E2D4;
    --panel-heading: var(--cream);
    --btn-bg: var(--gold-light);
    --btn-text: var(--navy);
    --field-bg: #102036;
    --field-border: #5E6B80;
    --focus: var(--gold-light);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--heading);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: 0.005em;
}

h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.45rem, 1.25rem + 0.8vw, 1.8rem); }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 500; }

a { color: var(--link); }

ul, ol { margin: 0; padding: 0; }

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

.panel :focus-visible,
.site-footer :focus-visible { outline-color: var(--gold-light); }

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

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

.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  background: var(--navy);
  color: var(--cream);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--gold);
}
.skip-link:focus { top: 1rem; }

main:focus { outline: none; }

/* ---------- Signature details ---------- */

/* Labels / eyebrows, as on the cards */
.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 1rem;
}
.label--on-navy { color: var(--gold); }

/* Diamond between two hairlines */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.25rem auto 1.5rem;
}
.divider::before,
.divider::after {
  content: "";
  width: 3.5rem;
  height: 1px;
  background: var(--rule);
}
.divider i {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
.divider--small { margin: 0.6rem auto 0.75rem; }
.divider--small::before,
.divider--small::after { width: 1.75rem; }

.diamond {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  margin-right: 0.85em;
  vertical-align: 0.2em;
}

/* Navy panel with 1px gold inset border, like the card front */
.panel {
  position: relative;
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--radius);
  padding: clamp(2.75rem, 7vw, 5.5rem) clamp(1.75rem, 6vw, 5rem);
}
.panel::before {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.6vw, 16px);
  border: 1px solid var(--gold);
  pointer-events: none;
}
.panel h2,
.panel h3 { color: var(--panel-heading); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.btn--primary:hover { background: transparent; color: var(--heading); border-color: var(--heading); }

.btn--light { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); }

.btn--outline-light { background: transparent; color: var(--gold-light); border-color: var(--gold); }
.btn--outline-light:hover { border-color: var(--gold-light); color: var(--cream); }

.text-link {
  color: var(--link);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.2s ease;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule-soft);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--heading);
  text-decoration: none;
  white-space: nowrap;
  margin: 0;
}
.wordmark--on-navy { color: var(--gold-light); }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  list-style: none;
}

.nav-list a {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-list a:hover,
.nav-list a[aria-current="true"] { color: var(--heading); border-bottom-color: var(--gold); }

.nav-list .nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--gold);
  color: var(--heading);
}
.nav-list .nav-cta:hover { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.25rem 0.5rem 0.75rem;
  background: none;
  border: 0;
  color: var(--heading);
  font: 500 0.8rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 55.99em) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule-soft);
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
  }
  .nav-list li + li { border-top: 1px solid var(--rule-soft); }
  .nav-list a {
    display: block;
    padding: 1rem 0;
    border-bottom: 0;
  }
  .nav-list .nav-cta {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    text-align: center;
  }
  .nav-list li:last-child { border-top: 0; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vw, 5rem); }

.hero-panel { text-align: center; }

.hero-wordmark {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.2rem + 4.5vw, 4.5rem);
  letter-spacing: 0.2em;
  /* letter-spacing adds trailing space after the last glyph; offset it to stay optically centred */
  margin: 0 -0.2em 1.25rem 0;
  color: var(--gold-light);
  line-height: 1;
}

.hero-title {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
  color: var(--cream);
  margin: 0 auto 0.75rem;
  max-width: 18ch;
}

.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--gold-light);
  margin: 0;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  color: var(--panel-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

/* The business, speaking */
.voice {
  max-width: 34rem;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 146, 74, 0.5);
  text-align: left;
}
.voice .label { text-align: center; margin-bottom: 1.5rem; }

.voice-list { list-style: none; }

.voice-msg {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.75rem;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--cream);
  animation: voice-in 0.7s ease-out both;
  animation-delay: calc(0.5s + var(--i) * 0.9s);
}
.voice-msg + .voice-msg { border-top: 1px solid rgba(216, 188, 127, 0.16); }
.voice-msg::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.45rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.voice-msg:last-child { color: var(--gold-light); font-style: italic; }

@keyframes voice-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); }

.section-head {
  text-align: center;
  max-width: var(--narrow);
  margin: 0 auto clamp(2.75rem, 6vw, 4rem);
}
.section-head h2 { margin-bottom: 0; }
.section-intro { color: var(--text-muted); margin: 0; }

.prose { max-width: var(--narrow); margin-inline: auto; }
.prose p { font-size: 1.1rem; }
.prose em { font-family: var(--serif); font-size: 1.15em; color: var(--heading); }

.pull-quote {
  margin: 3rem auto 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--rule-soft);
  text-align: center;
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  line-height: 1.3;
  color: var(--heading);
}

/* ---------- Services ---------- */
.service {
  display: grid;
  gap: 1.5rem 4rem;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  border-top: 1px solid var(--rule-soft);
}
.service:last-child { border-bottom: 1px solid var(--rule-soft); }

.service-head p { color: var(--text-muted); max-width: 34rem; }

.service-list { list-style: none; }
.service-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.6rem;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.15rem;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

.service-body { display: grid; gap: 2rem; }

.ask {
  position: relative;
  background: var(--panel-bg);
  color: var(--panel-text);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
}
.ask::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--gold);
  pointer-events: none;
}
.ask .label { margin-bottom: 1rem; }
.ask-list { list-style: none; }
.ask-list li {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--cream);
  padding-block: 0.55rem;
}
.ask-list li + li { border-top: 1px solid rgba(216, 188, 127, 0.16); }
.ask-list li::before { content: "“"; color: var(--gold-light); }
.ask-list li::after { content: "”"; color: var(--gold-light); }

@media (min-width: 60em) {
  .service { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* ---------- Products ---------- */
.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-top: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}
.product h3 { margin-bottom: 0.5rem; }
.product p { color: var(--text-muted); }
.product .text-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }

.tag {
  align-self: flex-start;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
  border: 1px dashed var(--gold);
  padding: 0.25rem 0.6rem;
  margin-bottom: 1.25rem;
}

/* ---------- Hello (our product) ---------- */
/* The Hello mark, in the site's gold so it sits with the diamonds and rules */
.hello-mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.85rem;
  color: var(--gold);
}

.hello-panel {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.hello-points { list-style: none; margin-bottom: 2rem; }
.hello-points li {
  position: relative;
  padding: 1.1rem 0 1.1rem 1.75rem;
}
.hello-points li:first-child { padding-top: 0; }
.hello-points li + li { border-top: 1px solid rgba(216, 188, 127, 0.16); }
.hello-points li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.75rem;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}
.hello-points li:first-child::before { top: 0.65rem; }
.hello-points h3 { font-size: 1.35rem; margin-bottom: 0.35rem; }
.hello-points p { margin: 0; }

.hello-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

.nowrap { white-space: nowrap; }

/* The illustrative call, in the style of the hero's "Your business, speaking" */
.call {
  margin: 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(184, 146, 74, 0.5);
}
.call .label { margin-bottom: 1.25rem; }
.call-list { list-style: none; }
.call-turn {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--cream);
  padding-block: 0.7rem;
}
.call-turn + .call-turn { border-top: 1px solid rgba(216, 188, 127, 0.16); }
.call-turn--caller { color: var(--gold-light); font-style: italic; }
.call-who {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

/* Links inside navy panels */
.panel .text-link { color: var(--gold-light); }

@media (min-width: 60em) {
  .hello-panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; }
  .call { padding: 0 0 0 3rem; border-top: 0; border-left: 1px solid rgba(184, 146, 74, 0.5); }
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 2.5rem 2rem;
}
.step {
  counter-increment: step;
  border-top: 1px solid var(--gold);
  padding-top: 1.5rem;
}
.step::before {
  content: counter(step, upper-roman);
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--label);
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.5rem; }
.step p { color: var(--text-muted); }

/* ---------- About ---------- */
.about-panel {
  display: grid;
  gap: 3rem;
  align-items: center;
}
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p:not(.label) { max-width: 36rem; }

.founders {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}
.founder-name {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold-light);
  margin: 0;
}
.founder .label { margin: 0; }

@media (min-width: 60em) {
  .about-panel { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4rem; }
  .founders { padding-left: 3rem; border-left: 1px solid rgba(184, 146, 74, 0.5); }
}

/* Lesvos photo: sits on top of the About panel; the gold inset frame runs unbroken across both */
.about-card { border-radius: var(--radius); overflow: hidden; }

.about-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 1765 / 752;
  background: var(--navy);
}
.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 60%;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: clamp(10px, 1.6vw, 16px) clamp(10px, 1.6vw, 16px) 0;
  border: 1px solid var(--gold);
  border-bottom: 0;
  pointer-events: none;
}
.about-card .panel { border-radius: 0; }
.about-card .panel::before { top: 0; border-top: 0; }

@media (max-width: 40em) {
  .about-photo { aspect-ratio: 16 / 10; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin-inline: auto;
}

.contact-details dl { margin: 1.5rem 0 0; }
.contact-details dl > div {
  padding-block: 1rem;
  border-top: 1px solid var(--rule-soft);
}
.contact-details dt {
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 0.3rem;
}
.contact-details dd { margin: 0; overflow-wrap: anywhere; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--heading);
  margin-bottom: 0.4rem;
}
.optional { font-weight: 300; color: var(--text-muted); }

.field input,
.field textarea {
  width: 100%;
  font: 300 1rem/1.5 var(--sans);
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus { border-color: var(--heading); }
.field input:focus-visible,
.field textarea:focus-visible { outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: #A3352B; }

.form-error {
  color: #A3352B;
  font-weight: 500;
  font-size: 0.92rem;
}
.form-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.contact-form .btn { width: 100%; }

@media (prefers-color-scheme: dark) {
  .field [aria-invalid="true"] { border-color: #F0A79E; }
  .form-error { color: #F0A79E; }
}

@media (min-width: 52em) {
  .contact-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  .contact-form .btn { width: auto; }
}

/* ---------- Footer: navy band with a thin gold line above it ---------- */
.site-footer {
  position: relative;
  margin-top: 7px;
  background: var(--navy);
  color: var(--panel-text);
  text-align: center;
  padding-block: 3.5rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -7px;
  height: 1px;
  background: var(--gold);
}
.footer-inner > * { margin: 0; }
.site-footer .wordmark { font-size: 1.3rem; margin-bottom: 0.5rem; }
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.5rem !important;
}
.footer-meta { font-size: 0.85rem; letter-spacing: 0.04em; color: #CFC7B8; }
.footer-meta + .footer-meta { margin-top: 0.35rem; }
.site-footer a { color: var(--gold-light); text-underline-offset: 0.25em; }

@media (prefers-color-scheme: dark) {
  .site-footer { background: #0E1828; }
}

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--header-h) - 12rem);
  display: grid;
  align-items: center;
  padding-block: clamp(2rem, 6vw, 4rem);
}
.notfound .panel { text-align: center; }
.notfound h1 { color: var(--cream); font-size: clamp(2.1rem, 1.4rem + 3vw, 3.25rem); }
.notfound p { max-width: 32rem; margin-inline: auto; }
.notfound-actions { margin-top: 2rem; }

/* ---------- Scroll reveal (JS adds .reveal-pending only to off-screen elements) ---------- */
.reveal-pending {
  opacity: 0;
  transform: translateY(14px);
}
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-pending { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .nav-toggle, .hero-actions, .contact-form { display: none; }
  .panel, .site-footer, .ask { background: none; color: #000; }
  .about-photo::after { display: none; }
  .panel::before, .ask::before, .site-footer::before { display: none; }
  .panel h2, .panel h3, .hero-title, .hero-wordmark, .founder-name, .voice-msg, .ask-list li,
  .call-turn, .hello-price, .panel .text-link { color: #000; }
}
