/* The Reflect Co — quiet luxury, B2B manufacturer */

:root {
  --ink: #ffffff;           /* white text on dark background */
  --ink-deep: #f4f4f4;
  --ink-soft: rgba(255,255,255,0.86);
  --muted: #8aa0b8;          /* muted slate-blue for secondary text */
  --line: rgba(255,255,255,0.14);
  --cream: #0d2945;          /* deep navy background (mood-board swatch) */
  --cream-deep: #081e35;
  --paper: #0d2945;
  --accent: #a04d20;         /* burnt sienna — primary accent */
  --accent-deep: #7e3a16;
  --accent-2: #3d4426;       /* deep olive (Filson) */
  --accent-2-deep: #2c3018;
  --shadow: 0 10px 40px rgba(26, 26, 26, 0.08);
  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--sans);
}
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 60ch; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(72px, 10vw, 140px) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.divider { height: 1px; background: rgba(255, 255, 255, 0.1); border: 0; margin: 0; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 41, 69, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: #ffffff;
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1) brightness(2);    /* white monogram on dark header */
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.92rem; color: rgba(255,255,255,0.78); transition: color .2s; }
.nav-links a:hover { color: #ffffff; }
.nav-links a.btn-primary { color: #0d2945; }
.nav-links a.btn-primary:hover { color: #ffffff; }
.nav-links a.btn-ghost, .nav-links a.btn-ghost:hover { color: #ffffff; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: #ffffff; color: #0d2945; }
.btn-primary:hover { background: var(--accent); color: #ffffff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { padding: 18px 32px; font-size: 0.96rem; letter-spacing: 0.08em; }
.hero-link {
  display: inline-block;
  margin-left: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.hero-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
@media (max-width: 560px) {
  .hero-link { display: block; margin: 16px 0 0; }
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;                       /* larger tap target */
  margin: -12px;                       /* keep visual size */
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span { width: 22px; height: 1.5px; background: #ffffff; display: block; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    /* Fix: was #fff (white bg + white text = invisible links). Match site navy. */
    background: rgba(8, 30, 53, 0.98);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }
  .nav.open .nav-links a, .nav.open .nav-links .btn {
    padding: 18px 24px;                /* 44px+ tap target */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    text-align: left;
    justify-content: flex-start;
    color: #ffffff;                    /* white text on navy */
    background: transparent;
  }
  .nav.open .nav-links a:last-child, .nav.open .nav-links .btn:last-child { border-bottom: 0; }
  /* Sign In button in mobile menu — keep it visible and distinct */
  .nav.open .nav-links .btn-primary {
    margin: 12px 24px 4px;
    background: #ffffff;
    color: #0d2945;
    text-align: center;
    justify-content: center;
    border-radius: 2px;
  }
  .nav.open .nav-links .btn-primary:hover {
    background: var(--accent);
    color: #ffffff;
  }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}

/* Landing hero (with ghosted logo watermark) */
.landing-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(80px, 12vw, 140px) 0;
}
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/reflect-logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: clamp(420px, 80vh, 880px) auto;
  opacity: 0.05;
  pointer-events: none;
  filter: grayscale(1);
}
.landing-hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}
.landing-hero .brand-mark {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.landing-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  margin: 0 auto 24px;
  max-width: 16ch;
}
.landing-hero h1 .accent {
  font-style: italic;
  color: #a04d20;
}
.landing-hero .lede {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.landing-hero .meta-line {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}

/* Tab cards (4 entry points) */
.tabs {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--paper);
}
.tabs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .tabs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 560px) { .tabs-grid { grid-template-columns: 1fr; } }
.tab-card {
  display: flex;
  flex-direction: column;
  padding: 40px 32px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  min-height: 280px;
}
.tab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.tab-card .num {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}
.tab-card h3 {
  font-size: 1.45rem;
  margin: 0 0 12px;
}
.tab-card p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0 0 auto;
  line-height: 1.5;
}
.tab-card .more {
  margin-top: 22px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  font-weight: 500;
}
.tab-card .more::after { content: ' →'; transition: transform .2s ease; display: inline-block; }
.tab-card:hover .more::after { transform: translateX(4px); }
.tab-card.dark {
  background: linear-gradient(135deg, var(--ink), #2d2d44);
  color: #fff;
  border-color: var(--ink);
}
.tab-card.dark .num { color: #c7e6f5; }
.tab-card.dark p { color: rgba(255,255,255,0.78); }
.tab-card.dark .more { color: #fff; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero h1 { margin-top: 18px; margin-bottom: 22px; }
.hero h1 .accent {
  font-style: italic;
  color: #a04d20;          /* burnt sienna — matches LipTX italic tagline */
}
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(135deg, var(--cream-deep) 0%, var(--cream) 60%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(25, 144, 198, 0.22);
}
.hero-visual img {
  width: 38%;
  opacity: 0.92;
}

/* About / value props */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}
.stat .num { font-family: var(--serif); font-size: 2.4rem; color: var(--ink); display: block; line-height: 1; }
.stat .lbl { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-top: 10px; display: block; }
.about-card {
  background: linear-gradient(135deg, var(--ink), #2d2d44);
  color: #fff;
  padding: 56px 44px;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.about-card .eyebrow { color: rgba(255, 255, 255, 0.7); }
.about-card h3 { color: #fff; margin: 14px 0 18px; font-size: 1.8rem; }
.about-card p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.about-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

/* Brands */
.brands { background: rgba(255, 255, 255, 0.02); }
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 780px) { .brand-grid { grid-template-columns: 1fr; } }
.brand-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 56px 44px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.brand-card.dark { background: linear-gradient(135deg, var(--ink), #2d2d44); color: #fff; border-color: var(--ink); }
.brand-card.dark p, .brand-card.dark .brand-features li { color: rgba(255, 255, 255, 0.78); }
.brand-card.dark .eyebrow { color: rgba(255, 255, 255, 0.6); }
.brand-card.dark .btn-primary { background: #fff; color: #0d2945; }
.brand-card.dark .btn-primary:hover { background: rgba(255, 255, 255, 0.88); color: #0d2945; }

.brand-card.warm { background: linear-gradient(135deg, #fef4e8, #f5e4d0); color: var(--ink); border-color: rgba(26, 26, 46, 0.12); }
.brand-card.warm .tagline { color: #a04d20; }
.brand-card.warm .eyebrow { color: #a04d20; }
.brand-card.warm .brand-features { border-top-color: rgba(26, 26, 46, 0.12); }
.brand-card .name {
  font-family: var(--serif);
  font-size: 2.6rem;
  letter-spacing: 0.04em;
  margin: 18px 0 6px;
}
.brand-card .tagline {
  font-style: italic;
  font-family: var(--serif);
  color: var(--accent);
  margin-bottom: 24px;
  font-size: 1.1rem;
}
.brand-card.dark .tagline { color: #c7e6f5; }
.brand-features {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.brand-card.dark .brand-features { border-top-color: rgba(255, 255, 255, 0.12); }
.brand-features li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-features li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Partners / capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
}
.cap .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 16px;
}
.cap h3 { font-size: 1.25rem; margin-bottom: 12px; }
.cap p { font-size: 0.96rem; margin: 0; }

/* Portal CTA */
.portal {
  background: linear-gradient(135deg, var(--ink), var(--ink-deep));
  color: #fff;
  text-align: center;
}
.portal h2 { color: #fff; margin: 18px 0 18px; max-width: 720px; margin-left: auto; margin-right: auto; }
.portal p { color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 auto 36px; }
.portal .eyebrow { color: rgba(255, 255, 255, 0.6); }

/* Breadcrumbs (inner pages) */
.breadcrumbs {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
.breadcrumbs a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.breadcrumbs a:hover { color: #ffffff; border-bottom-color: rgba(255,255,255,0.4); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumbs [aria-current="page"] { color: #ffffff; }

/* Page hero (interior pages) */
.page-hero {
  background: var(--cream);
  padding: clamp(96px, 12vw, 140px) 0 clamp(56px, 8vw, 80px);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 800px; margin-top: 16px; }
.page-hero .lede { margin-top: 22px; }

/* Content blocks */
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 1rem; }
.prose h2 { margin-top: 56px; margin-bottom: 18px; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* Forms */
.form { display: grid; gap: 20px; max-width: 560px; margin-top: 32px; }
.form .field { display: flex; flex-direction: column; gap: 8px; }
.form label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.form input, .form textarea, .form select {
  font: inherit;
  /* iOS Safari auto-zooms inputs whose computed font-size is under 16px.
     Set 16px explicitly so mobile keyboards don't trigger the zoom. */
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transition: border-color .2s;
  /* iOS: remove the default rounded/shaded input chrome */
  -webkit-appearance: none;
          appearance: none;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,0.4); }
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.86rem; color: var(--muted); margin-top: 8px; }

/* Contact details block */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 36px;
  border-radius: 2px;
}
.contact-card h3 { font-size: 1.3rem; margin-bottom: 18px; }
.contact-card dl { margin: 0; }
.contact-card dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 6px 0 0; color: var(--ink); }

/* Footer */
.site-footer {
  background: #081e35;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 40px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: #fff; margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { width: 36px; height: 36px; filter: brightness(0) invert(1); opacity: 0.9; margin-bottom: 18px; }
.footer-brand p { color: rgba(255, 255, 255, 0.62); max-width: 36ch; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
}
.footer-bottom a:hover { color: #fff; }

/* Utilities */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }

/* =========================================================
   Bare landing — Aesop / Filson / Caldera Lab direction
   ========================================================= */

body.landing {
  background: linear-gradient(180deg, #000000 0%, #0a2240 50%, #15385d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;                  /* iOS Safari: shrinks with browser chrome */
  display: flex;
  flex-direction: column;
  /* iPhone notch / home indicator safe-area padding */
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
body.landing main { flex: 1; display: flex; }
/* Landing hero: also swap vh -> dvh for iOS */
.landing-hero { min-height: 88vh; min-height: 88dvh; }

.site-header.bare {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
}
.site-header.bare .nav { height: 80px; }
.site-header.bare .brand img {
  width: 36px;
  height: 36px;
  opacity: 0.92;
  filter: invert(1) brightness(2);    /* white monogram on dark bg */
}
.site-header.bare .brand span { display: none; }
.signin-btn {
  font-size: 0.78rem !important;
  padding: 12px 20px !important;
  letter-spacing: 0.12em !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #0d2945 !important;
}
.signin-btn:hover { background: var(--accent) !important; color: #ffffff !important; }

.landing-bare {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}
.landing-bare .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.brand-mark-lg {
  font-family: var(--sans);
  font-size: clamp(0.78rem, 0.95vw, 0.9rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
}
h1.display {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.quiet-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.quiet-nav a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color .2s ease, color .2s ease;
}
.quiet-nav a:hover {
  border-bottom-color: var(--ink);
  color: var(--accent);
}
.quiet-nav span { color: var(--muted); opacity: 0.5; }

.est-mark {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer.bare {
  background: transparent;
  color: var(--muted);
  padding: 32px 0;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.footer-bare {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bare a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.footer-bare a:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Chat widget (floating customer-service assistant) */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(26, 26, 46, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.chat-fab:hover { transform: translateY(-2px); background: var(--accent); }
.chat-fab.hidden { display: none; }

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 101;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 48px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(26, 26, 46, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, var(--ink), #2d2d44);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-header .title {
  font-family: var(--serif);
  font-size: 1.1rem;
}
.chat-header .sub {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.chat-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 6px;
  line-height: 1;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--cream);
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}
.chat-msg.bot {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-msg.user {
  background: var(--ink);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.chat-msg.typing {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  align-self: flex-start;
  font-style: italic;
}
.chat-input {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chat-input input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  outline: none;
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink);
  background: transparent;
}
.chat-input button {
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.chat-input button:hover { background: var(--accent); }
.chat-notice {
  padding: 10px 14px;
  background: #fff8e1;
  border-bottom: 1px solid #f4d77a;
  color: #856404;
  font-size: 0.78rem;
  text-align: center;
}
