/* ==========================================================
   T & S Incorporated
   One stylesheet, two themes.
   The theme is chosen by data-theme on <html> in index.html.
   ========================================================== */

/* ---------- 1. Theme tokens ---------- */

/* Paper & Ink (default) */
:root,
[data-theme="paper"] {
  --bg: #f6f4f0;
  --bg-alt: #efece6;
  --surface: transparent;
  --surface-border: transparent;
  --surface-top: transparent;

  --ink: #2b2b2d;
  --ink-2: #45433f;
  --muted: #5f5d5a;
  --label: #6b6762;
  --rule: #dcd7cf;
  --rule-2: #d3cdc3;

  --band: #2f2f31;
  --band-ink: #f2efe9;
  --band-muted: #bdb8af;
  --band-rule: #4a4a4d;

  --accent: #2b2b2d;
  --accent-ink: #f6f4f0;
  --accent-hover: #000000;
  --band-btn: #f2efe9;
  --band-btn-ink: #2f2f31;
  --band-btn-hover: #ffffff;

  --header-bg: rgba(246, 244, 240, 0.88);
  --focus: #2b2b2d;
  --band-focus: #f2efe9;

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display-weight: 500;
  --display-tracking: -0.005em;

  --radius-btn: 2px;
  --radius-card: 0px;

  color-scheme: light;
}

/* Charcoal & Brass */
[data-theme="charcoal"] {
  --bg: #1c1c1e;
  --bg-alt: #1c1c1e;
  --surface: #262628;
  --surface-border: #333336;
  --surface-top: #4a4a4e;

  --ink: #ece9e3;
  --ink-2: #c9c5bd;
  --muted: #b9b5ad;
  --label: #a5a19a;
  --rule: #2c2c2f;
  --rule-2: #333336;

  --band: #161618;
  --band-ink: #ece9e3;
  --band-muted: #a5a19a;
  --band-rule: #2c2c2f;

  --accent: #c7a86a;
  --accent-ink: #1c1c1e;
  --accent-hover: #d6ba80;
  --band-btn: #c7a86a;
  --band-btn-ink: #1c1c1e;
  --band-btn-hover: #d6ba80;

  --header-bg: rgba(28, 28, 30, 0.86);
  --focus: #c7a86a;
  --band-focus: #c7a86a;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --display-weight: 400;
  --display-tracking: -0.01em;

  --radius-btn: 999px;
  --radius-card: 16px;

  color-scheme: dark;
}

/* ---------- 2. Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s ease, color 0.4s ease;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: inherit; }

address { font-style: normal; }

ol, ul { margin: 0; padding: 0; list-style: none; }

dl, dd { margin: 0; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: var(--radius-btn);
}
.skip-link:focus { top: 12px; }

.anchor-top { position: absolute; top: 0; }

/* Logo variants: only the one for the active theme shows */
.logo-charcoal { display: none; }
[data-theme="charcoal"] .logo-paper { display: none; }
[data-theme="charcoal"] .logo-charcoal { display: block; }

/* ---------- 3. Layout ---------- */

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: max(24px, env(safe-area-inset-left)) max(24px, env(safe-area-inset-right));
}

@media (min-width: 600px) {
  .container { padding-inline: max(40px, env(safe-area-inset-left)) max(40px, env(safe-area-inset-right)); }
}

.section { padding-block: clamp(56px, 9vw, 120px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--label);
}

h2 { font-size: clamp(1.875rem, 1.4rem + 2vw, 2.875rem); }

/* ---------- 4. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-quiet {
  color: var(--ink);
  border-color: var(--rule-2);
  background: transparent;
}
.btn-quiet:hover { border-color: var(--ink); }

.btn-arrow { transition: transform 0.4s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

[data-theme="paper"] .btn-primary .btn-arrow { display: none; }

/* ---------- 5. Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}

[data-theme="paper"] .site-header { border-bottom-color: var(--rule); }
.site-header.is-scrolled { border-bottom-color: var(--rule-2); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

@media (min-width: 900px) {
  .header-inner { min-height: 76px; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  text-decoration: none;
}

.brand-mark { width: auto; height: 36px; }

.brand-name {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 599px) {
  .brand-name {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
  }
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] { color: var(--ink); }

.site-nav a[aria-current="true"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Menu button: phones only, and only when JavaScript runs */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius-btn);
  cursor: pointer;
}

[data-theme="charcoal"] .menu-toggle { border-radius: 50%; }

.menu-toggle path { transition: transform 0.4s ease; transform-origin: 10px 10px; }
.menu-toggle[aria-expanded="true"] .menu-line-1 { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-line-2 { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 599px) {
  .js .menu-toggle { display: inline-flex; }

  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px max(24px, env(safe-area-inset-left)) 16px;
  }

  .js .site-nav li + li { border-top: 1px solid var(--rule); }

  .js .site-nav a {
    display: flex;
    min-height: 56px;
    font-family: var(--font-display);
    font-size: 1.375rem;
    color: var(--ink);
  }

  .js .site-nav a[aria-current="true"] { text-decoration: none; }

  /* Without JavaScript the links simply sit in the header */
  .site-nav ul { gap: 16px; }
  .site-nav a { font-size: 0.8125rem; }
}

/* ---------- 6. Hero ---------- */

.hero { padding-block: clamp(48px, 8vw, 112px) clamp(56px, 9vw, 120px); }

.hero-copy { display: flex; flex-direction: column; gap: 22px; }

.hero h1 { font-size: clamp(2.375rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.08; }

.lede {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 36ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* Paper: centred, editorial */
[data-theme="paper"] .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}

[data-theme="paper"] .hero-logo { width: clamp(150px, 20vw, 210px); }

[data-theme="paper"] .hero-copy { align-items: center; }

[data-theme="paper"] .hero-copy::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--rule-2);
  margin-bottom: 6px;
}

[data-theme="paper"] .hero h1 { max-width: 15ch; }
[data-theme="paper"] .hero-actions { justify-content: center; }

/* Charcoal: logo in a lit panel, copy beside it on wide screens */
[data-theme="charcoal"] .hero {
  background: linear-gradient(180deg, var(--bg) 0%, #222224 100%);
}

[data-theme="charcoal"] .hero-inner {
  display: grid;
  grid-template-areas: "visual" "copy";
  gap: 32px;
}

[data-theme="charcoal"] .hero-copy { grid-area: copy; }

/* The logo panel sits on top of the dimmed skyline */
[data-theme="charcoal"] .hero-logo {
  grid-area: visual;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 70vw, 340px);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 22, 24, 0.2) 0%, rgba(22, 22, 24, 0.72) 100%);
  border: 1px solid var(--surface-border);
  border-top-color: var(--surface-top);
}

[data-theme="charcoal"] .hero-logo img { width: clamp(160px, 42vw, 230px); }

[data-theme="charcoal"] .hero-photo {
  grid-area: visual;
  align-self: stretch;
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}

[data-theme="charcoal"] .hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
  filter: saturate(0.35) brightness(0.5) contrast(1.05);
}

@media (min-width: 900px) {
  [data-theme="charcoal"] .hero-inner {
    grid-template-areas: "copy visual";
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(40px, 6vw, 88px);
  }
  [data-theme="charcoal"] .hero-logo { min-height: 480px; align-self: stretch; }
}

/* Paper: the skyline is a soft band that fades up into the page */
[data-theme="paper"] .hero { padding-bottom: 0; }

[data-theme="paper"] .hero-photo {
  width: 100%;
  margin: 24px 0 0;
  height: clamp(200px, 36vw, 440px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 45%);
}

[data-theme="paper"] .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
  filter: saturate(0.5) sepia(0.12) contrast(0.95) brightness(1.04);
}

/* Short landscape phones: keep the headline in view */
@media (max-height: 520px) and (orientation: landscape) {
  [data-theme="paper"] .hero-logo { width: 110px; }
  [data-theme="paper"] .hero-photo { height: 200px; }
  [data-theme="charcoal"] .hero-logo { min-height: 220px; }
  [data-theme="charcoal"] .hero-logo img { width: 130px; }
}

@media (min-width: 640px) and (max-height: 520px) and (orientation: landscape) {
  [data-theme="charcoal"] .hero-inner {
    grid-template-areas: "copy visual";
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }
}

/* ---------- 7. About ---------- */

[data-theme="paper"] .about { border-top: 1px solid var(--rule); }
[data-theme="charcoal"] .about { border-top: 1px solid var(--rule); }

.about-grid { display: grid; gap: 28px; }

.about-head { display: flex; flex-direction: column; gap: 18px; }

.about-body { display: flex; flex-direction: column; gap: 20px; max-width: 62ch; }

.about-body p { font-size: 1rem; line-height: 1.75; color: var(--ink-2); }

.stat { display: flex; align-items: baseline; gap: 18px; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 3rem + 2vw, 4.5rem);
  line-height: 1;
  font-weight: var(--display-weight);
}

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

[data-theme="paper"] .stat {
  padding-block: 22px;
  border-block: 1px solid var(--rule);
}

[data-theme="charcoal"] .stat {
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-top-color: var(--surface-top);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
}

.about-photo {
  margin: 10px 0 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% 65%;
}

[data-theme="paper"] .about-photo img { filter: saturate(0.7) contrast(0.97); }

[data-theme="charcoal"] .about-photo {
  border-radius: var(--radius-card);
  border: 1px solid var(--surface-border);
}
[data-theme="charcoal"] .about-photo img { filter: saturate(0.6) brightness(0.8); }

/* ---------- 8. Services ---------- */

.services { counter-reset: service; }

[data-theme="paper"] .services { background: var(--bg-alt); }
[data-theme="charcoal"] .services { border-top: 1px solid var(--rule); }

.services-top { margin-bottom: clamp(24px, 4vw, 48px); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* The keys photo only appears where there is room for it */
.services-photo { display: none; margin: 0; }

@media (min-width: 720px) {
  .services-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .services-photo {
    display: block;
    flex-shrink: 0;
    width: clamp(220px, 26vw, 320px);
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .services-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
  }
  [data-theme="paper"] .services-photo img { filter: saturate(0.55) sepia(0.1); }
  [data-theme="charcoal"] .services-photo {
    border-radius: var(--radius-card);
    border: 1px solid var(--surface-border);
  }
  [data-theme="charcoal"] .services-photo img { filter: saturate(0.5) brightness(0.8); }
}

.services-list { display: grid; }

.service {
  counter-increment: service;
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 6px;
}

.service::before {
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  line-height: 1.3;
}

.service h3 { font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); line-height: 1.2; }
.service p { font-size: 0.9375rem; line-height: 1.6; color: var(--muted); }

/* Paper: roman numerals, ruled list */
[data-theme="paper"] .service {
  padding-block: 24px;
  border-bottom: 1px solid var(--rule-2);
}
[data-theme="paper"] .service::before {
  content: counter(service, lower-roman);
  font-style: italic;
  font-size: 1.375rem;
  color: var(--label);
}
[data-theme="paper"] .service h3 { font-weight: 600; }

@media (min-width: 720px) {
  [data-theme="paper"] .services-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(40px, 6vw, 88px);
  }
  [data-theme="paper"] .service { padding-block: 32px; }
  [data-theme="paper"] .service:nth-child(-n + 2) { border-top: 1px solid var(--rule-2); }
}

@media (max-width: 719px) {
  [data-theme="paper"] .service:first-child { border-top: 1px solid var(--rule-2); }
}

/* Charcoal: cards with one bright top edge */
[data-theme="charcoal"] .services-list { gap: 12px; }

[data-theme="charcoal"] .service {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 10px;
  padding: 24px;
  border-radius: var(--radius-card);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-top-color: var(--surface-top);
  transition: border-color 0.4s ease, transform 0.4s ease;
}

[data-theme="charcoal"] .service::before {
  content: counter(service, decimal-leading-zero);
  grid-row: auto;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--label);
}

[data-theme="charcoal"] .service h3 { font-weight: 500; }

@media (hover: hover) {
  [data-theme="charcoal"] .service:hover { border-color: #3f3f43; border-top-color: #5a5a5f; }
}

@media (min-width: 640px) {
  [data-theme="charcoal"] .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  [data-theme="charcoal"] .service { padding: 28px; min-height: 200px; }
}

@media (min-width: 1100px) {
  [data-theme="charcoal"] .services-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  [data-theme="charcoal"] .service { min-height: 260px; align-content: start; }
}

/* ---------- 9. Contact ---------- */

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--band);
  color: var(--band-ink);
  --focus: var(--band-focus);
}

/* A faint texture, not a picture */
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--band) 100%);
}

.contact-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 35%;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.13;
}

@media (min-width: 900px) {
  .contact-bg {
    left: 35%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
    mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  }
  .contact-bg img { opacity: 0.2; }
}

.contact .eyebrow { color: var(--band-muted); }

.contact-grid { display: grid; gap: 36px; }

.contact-head { display: flex; flex-direction: column; gap: 18px; }

.contact-names { font-size: 1.0625rem; color: var(--band-muted); }

.contact-details { display: flex; flex-direction: column; gap: 24px; }

.details { display: flex; flex-direction: column; }

.detail {
  display: grid;
  gap: 6px;
  padding-block: 18px;
  border-top: 1px solid var(--band-rule);
}

.detail dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--band-muted);
}

.detail dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 1.0625rem;
  line-height: 1.55;
}

.detail address { width: 100%; }

.detail-link {
  color: var(--band-ink);
  text-decoration: underline;
  text-decoration-color: var(--band-rule);
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
  padding-block: 6px;
  transition: text-decoration-color 0.3s ease;
}
.detail-link:hover { text-decoration-color: currentColor; }

.copy-btn {
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid var(--band-rule);
  border-radius: var(--radius-btn);
  color: var(--band-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.copy-btn:hover { color: var(--band-ink); border-color: var(--band-muted); }

.copy-status { font-size: 0.8125rem; color: var(--band-muted); }

.map-link {
  font-size: 0.875rem;
  color: var(--band-muted);
  text-underline-offset: 4px;
  padding-block: 8px;
}
.map-link:hover { color: var(--band-ink); }

.contact .btn-primary { background: var(--band-btn); color: var(--band-btn-ink); }
.contact .btn-primary:hover { background: var(--band-btn-hover); }

.btn-block { width: 100%; min-height: 52px; }

[data-theme="charcoal"] .details {
  border-radius: var(--radius-card);
  background: #222224;
  border: 1px solid var(--surface-border);
  border-top-color: var(--surface-top);
  overflow: hidden;
}
[data-theme="charcoal"] .detail { padding: 18px 20px; border-top-color: var(--surface-border); }
[data-theme="charcoal"] .detail:first-child { border-top: 0; }

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
  .btn-block { width: auto; align-self: flex-start; padding-inline: 36px; }
}

/* ---------- 10. Footer ---------- */

.site-footer {
  background: var(--band);
  color: var(--band-muted);
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid var(--band-rule);
  font-size: 0.8125rem;
}

.footer-mark { width: auto; height: 30px; }

/* ---------- 11. Theme preview switch ---------- */

.theme-switch {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(127, 127, 127, 0.35);
  background: #2b2b2d;
  color: #f6f4f0;
  font-size: 0.8125rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

[data-theme="charcoal"] .theme-switch { background: #f2efe9; color: #1c1c1e; }

.theme-switch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(90deg, #f6f4f0 50%, #1c1c1e 50%);
  border: 1px solid #c7a86a;
}

/* ---------- 12. Reveal motion ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 13. Print ---------- */

@media print {
  .site-header, .theme-switch, .menu-toggle, .copy-btn, .hero-actions, .btn-block, .skip-link { display: none !important; }
  body, .contact, .site-footer, .services, .hero { background: #fff !important; color: #000 !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .detail-link, .map-link, .contact-names, .eyebrow, .detail dt { color: #000 !important; }
  .footer-mark, .hero-photo, .about-photo, .services-photo, .contact-bg { display: none !important; }
}
