/* Taylor Berlin — shared styles */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy: #0E1A2B;
  --navy-2: #14253A;
  --navy-3: #1B304A;
  --cream: #F4EFE3;
  --cream-2: #EDE6D5;
  --cream-soft: #FAF7EF;
  --gold: #C9A961;
  --gold-soft: #B89548;
  --ink: #0E1A2B;
  --rule: rgba(244, 239, 227, 0.16);
  --rule-strong: rgba(244, 239, 227, 0.32);
  --rule-ink: rgba(14, 26, 43, 0.14);
  --rule-ink-strong: rgba(14, 26, 43, 0.28);
  --muted: rgba(244, 239, 227, 0.62);
  --muted-ink: rgba(14, 26, 43, 0.62);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --maxw: 1400px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* Type primitives */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.005em; }
.italic { font-style: italic; }
.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; }
.display {
  font-family: var(--serif);
  font-size: clamp(48px, 8.4vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.018em;
}
.h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.lede {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  font-weight: 300;
  max-width: 56ch;
}
p { margin: 0 0 1em; }

/* Layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 80px) 0; }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--rule-strong); margin: 0; }
.rule-ink { border: 0; border-top: 1px solid var(--rule-ink); margin: 0; }

.surface-cream { background: var(--cream); color: var(--ink); }
.surface-cream .muted { color: var(--muted-ink); }
.surface-cream .rule { border-top-color: var(--rule-ink); }
.surface-cream .rule-strong { border-top-color: var(--rule-ink-strong); }

/* Header / nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  height: 46px;
  flex: 0 0 auto;
}
.brand__mark img { height: 100%; width: auto; display: block; }
.brand__words {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid var(--rule-strong);
  align-self: stretch;
  justify-content: center;
}
.surface-cream .brand__words { border-left-color: var(--rule-ink-strong); }
.brand__name {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.005em;
  line-height: 1;
}
.brand__tagline {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
/* Header brand: tagline reserved for the footer; header just runs mark + wordmark */
.nav .brand__tagline { display: none; }
.nav .brand__words { border-left: 0; padding-left: 0; }
.surface-cream .brand__tagline { color: var(--muted-ink); }
@media (max-width: 600px) {
  .brand__words { padding-left: 12px; }
  .brand__name { font-size: 20px; }
  .brand__mark { height: 38px; }
  .brand__tagline { display: none; }
}
/* Lock nav + footer to dark surface tokens regardless of body surface class */
.nav, .footer { color: var(--cream); }
.nav .brand__name, .footer .brand__name { color: var(--cream); }
.nav .brand__tagline, .footer .brand__tagline { color: var(--muted); }
.nav .nav__links a, .nav__phone { color: var(--cream); }

/* RICS regulator badge */
.rics-logo-pic { display: inline-block; line-height: 0; flex-shrink: 0; }
.rics-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: none; /* override global img { max-width: 100% } so flex parents can't squash this wide logo */
}
.rics-nav .rics-logo { height: 30px; }
.rics-footer .rics-logo { height: 64px; }
.rics-logo--dark { display: none; }
.rics-logo--light { display: block; }
body.surface-cream .rics-logo--dark { display: block; }
body.surface-cream .rics-logo--light { display: none; }
/* In nav and footer the bg stays dark even on cream surface, so always show light there */
.nav .rics-logo--dark, .footer .rics-logo--dark { display: none !important; }
.nav .rics-logo--light, .footer .rics-logo--light { display: block !important; }

.footer__rics {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap; /* let the small caption drop below the logo on narrow screens */
}
@media (max-width: 480px) {
  /* Scale the wide RICS logo down on phones so it sits cleanly in the column */
  .rics-footer .rics-logo { height: 48px; }
}
.nav__phone { white-space: nowrap; }
.nav .btn--gold { white-space: nowrap; }
@media (max-width: 1180px) {
  .rics-nav { display: none; }
}
@media (max-width: 1080px) {
  .nav__phone { display: none; }
}
.rics-badge {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 6px;
}
.nav__links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__links a {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--cream);
  opacity: 0.78;
  transition: opacity .2s ease;
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.active { opacity: 1; }
.nav__links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold);
}
.nav__phone {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--cream);
  color: var(--cream);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn:hover { background: var(--cream); color: var(--navy); }
.btn--gold { border-color: var(--gold); color: var(--navy); background: var(--gold); }
.btn--gold:hover { background: transparent; color: var(--gold); }
.btn--ink { border-color: var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--cream); }
.btn--ghost { border-color: var(--rule-strong); }
.btn .arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
}
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transform-origin: top right;
}

/* Image placeholder — striped */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(244,239,227,0.05) 0px,
      rgba(244,239,227,0.05) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--navy-2);
  border: 1px solid var(--rule-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph--ink {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(14,26,43,0.06) 0px,
      rgba(14,26,43,0.06) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--cream-2);
  border: 1px solid var(--rule-ink-strong);
}
.ph__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 8px 16px;
  background: rgba(14,26,43,0.6);
  border: 1px solid var(--rule);
}
.ph--ink .ph__label {
  color: var(--muted-ink);
  background: rgba(244,239,227,0.7);
  border-color: var(--rule-ink);
}

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 72px);
  align-items: baseline;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section-head__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.section-head__title { display: flex; align-items: end; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; align-items: start; gap: 16px; }
}

/* Footer */
.footer {
  background: var(--navy);
  color: var(--cream);
  border-top: 1px solid var(--rule);
  padding: 80px var(--pad) 32px;
}
.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { opacity: 0.72; font-size: 14px; }
.footer ul a:hover { opacity: 1; }
.footer__legal {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Reusable: numbered list */
.numlist { list-style: none; padding: 0; margin: 0; }
.numlist li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.numlist li:last-child { border-bottom: 1px solid var(--rule); }
.numlist__num { font-family: var(--mono); font-size: 11px; color: var(--gold); padding-top: 4px; letter-spacing: 0.18em; }
.surface-cream .numlist li { border-top-color: var(--rule-ink); }
.surface-cream .numlist li:last-child { border-bottom-color: var(--rule-ink); }

/* Mobile nav */
.nav__toggle { display: none; }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream);
  }
  .nav__toggle[aria-expanded="true"] { color: var(--gold); }
  .nav__links.open {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    border-bottom: 1px solid var(--rule);
    border-top: 1px solid var(--rule);
    padding: 8px 0;
    z-index: 60;
  }
  .nav__links.open a {
    padding: 14px var(--pad);
    width: 100%;
    box-sizing: border-box;
    border-bottom: 1px solid var(--rule);
    opacity: 1;
    color: #F4EFE3 !important;
  }
  .nav__links.open a.btn { color: #F4EFE3 !important; border-color: rgba(244, 239, 227, 0.32) !important; background: transparent !important; }
  .nav__links.open a.btn--gold { color: #0E1A2B !important; background: var(--gold) !important; border-color: var(--gold) !important; }
  .nav__links.open a:last-child {
    border-bottom: 0;
    margin: 8px var(--pad) 0;
    width: auto;
  }
  .nav { position: relative; }
}

/* Utility */
.hide-mobile { }
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stack-8 > * + * { margin-top: 8px; }
.stack-12 > * + * { margin-top: 12px; }
.stack-16 > * + * { margin-top: 16px; }
.stack-24 > * + * { margin-top: 24px; }
.stack-32 > * + * { margin-top: 32px; }

/* Reveal on load — subtle */
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
.rise-4 { animation-delay: .36s; }

/* ============ Illustration system (shared across pages) ============ */
  /* Illustration system */
  .illus {
    position: relative;
    background: var(--navy-2);
    border: 1px solid var(--rule-strong);
    overflow: hidden;
    color: var(--cream);
    display: block;
  }
  .illus--ink {
    background: var(--cream-2);
    border-color: var(--rule-ink-strong);
    color: var(--ink);
  }
  .illus-svg { width: 100%; height: 100%; display: block; }
  .illus-lines {
    fill: none;
    stroke: currentColor;
    stroke-width: 0.6;
    stroke-linejoin: miter;
    stroke-linecap: square;
    vector-effect: non-scaling-stroke;
  }
  .illus-plate-marks {
    fill: currentColor;
    font-family: var(--mono);
    font-size: 4.5px;
    letter-spacing: 0.18em;
    display: none;
  }
  .illus-tick { stroke: currentColor; stroke-width: 0.3; }
  .illus-cover-type text { fill: currentColor; }
  .illus-cover-mono {
    font-family: var(--serif);
    font-size: 36px;
    letter-spacing: -0.01em;
    font-style: italic;
  }
  .illus-cover-eyebrow {
    font-family: var(--mono);
    font-size: 4px;
    letter-spacing: 0.3em;
  }
  .illus-monogram-type text { fill: currentColor; }
  .illus-mono-letter {
    font-family: var(--serif);
    font-style: italic;
    font-size: 76px;
    letter-spacing: -0.02em;
  }
  .illus-mono-amp {
    font-family: var(--serif);
    font-style: italic;
    font-size: 56px;
    fill: var(--gold);
  }
  .illus-mono-words {
    font-family: var(--mono);
    font-size: 6px;
    letter-spacing: 0.5em;
  }
  .illus-mono-eyebrow, .illus-mono-foot {
    font-family: var(--mono);
    font-size: 4px;
    letter-spacing: 0.32em;
  }
  .illus-stacked-word {
    font-family: var(--serif);
    font-size: 78px;
    letter-spacing: -0.02em;
    fill: currentColor;
  }
  .illus-crest-letter {
    font-family: var(--serif);
    font-style: italic;
    font-size: 30px;
    fill: currentColor;
  }
  .illus-banner-text {
    font-family: var(--mono);
    font-size: 5px;
    letter-spacing: 0.4em;
    fill: currentColor;
  }
  .illus-star {
    fill: currentColor;
    stroke: none;
  }
  .illus-seal-arc {
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.45em;
    fill: currentColor;
  }
  .illus-seal-letter {
    font-family: var(--serif);
    font-style: italic;
    font-size: 56px;
    letter-spacing: -0.03em;
    fill: currentColor;
  }
  .illus-seal-foot {
    font-family: var(--mono);
    font-size: 5px;
    letter-spacing: 0.4em;
    fill: currentColor;
  }
  .illus-datestone-name {
    font-family: var(--serif);
    font-size: 30px;
    letter-spacing: 0.04em;
    fill: currentColor;
  }
  .illus-datestone-date {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    letter-spacing: 0.05em;
    fill: var(--gold-soft);
  }
  .illus-shop-sign text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 7px;
    fill: currentColor;
  }
  .illus-floor-num {
    font-family: var(--mono);
    font-size: 3.5px;
    letter-spacing: 0.18em;
    fill: currentColor;
    opacity: 0.6;
  }
  .illus-unit-label {
    font-family: var(--mono);
    font-size: 4px;
    letter-spacing: 0.2em;
    fill: currentColor;
  }

  /* Voice: etched (default) — thin lines */
  [data-illus-style="etched"] .illus-lines { stroke-width: 0.55; opacity: 0.92; }

  /* Voice: inked — heavier weight */
  [data-illus-style="inked"] .illus-lines { stroke-width: 1.1; }
  [data-illus-style="inked"] .illus-lines > g[stroke-width] { stroke-width: 0.6; }

  /* Voice: plate — thin lines + technical annotations */
  [data-illus-style="plate"] .illus-lines { stroke-width: 0.45; opacity: 0.85; }
  [data-illus-style="plate"] .illus-plate-marks { display: block; }
  [data-illus-style="plate"] .illus { background: var(--navy); }
  [data-illus-style="plate"] .illus--ink { background: var(--cream-soft); }

  .illus__label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    font-family: var(--mono);
    font-size: 10px;
    padding: 6px 12px;
    background: rgba(14,26,43,0.7);
    border: 1px solid var(--rule);
    color: var(--cream);
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .illus--ink .illus__label {
    background: rgba(244,239,227,0.75);
    border-color: var(--rule-ink);
    color: var(--ink);
  }
  [data-illus-style="plate"] .illus__label { display: none; }
