/* ==========================================================================
   Design styles for this client's site.
   Used by index.html, privacy.html and 404.html.
   This is one of the three design files (with index.html and motion.js);
   during design reviews only these change.
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400..600&family=Manrope:wght@400;600;700&display=swap");

/* --- Design starts here: "Ink & Brass" (design A) ------------------------
   Palette: Charcoal #15181B · Ink #20262B · Brass #C8A35A · Forest #2E5B4E
            Paper #EEE9DF · Stone #A9A49A                                    */
:root {
  --charcoal: #15181B;
  --ink: #20262B;
  --line: #2C3338;
  --field: #868C92;
  --brass: #C8A35A;
  --brass-hi: #D9B873;
  --forest: #2E5B4E;
  --paper: #EEE9DF;
  --stone: #A9A49A;
  --error: #FF9E92;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--brass-hi); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; }
/* Bodoni Moda: use its sturdier small-size shapes at every size, so the thin
   strokes stay readable on the dark background */
h1, h2, .wm-text, .wm-mono, .rv blockquote p, .q-call, .q-form-h, .ft-name {
  font-optical-sizing: none;
  font-variation-settings: "opsz" 18;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--brass); color: var(--charcoal); padding: 10px 16px; font-weight: 700;
  transition: transform 200ms var(--ease);
}
.skip:focus { transform: translateY(72px); color: var(--charcoal); }

.kick {
  font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 1.1rem; font-weight: 600;
}

/* --- Header (sticky, so tap-to-call is always visible) ------------------ */
.hd {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px var(--pad);
  background: rgba(21, 24, 27, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .hd { background: rgba(21, 24, 27, .82); backdrop-filter: blur(10px); }
}
.wm { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.wm:hover { color: var(--paper); }
.wm-mono {
  width: 42px; height: 42px; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  transition: background-color 250ms ease, color 250ms ease;
}
.wm:hover .wm-mono { background: var(--brass); color: var(--charcoal); }
.wm-text { font-family: var(--serif); font-size: 1.35rem; line-height: 1; display: flex; flex-direction: column; }
.wm-text small {
  font-family: var(--sans); font-size: .6rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--stone); margin-top: 6px; white-space: nowrap;
}
@media (max-width: 400px) {
  .hd { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .wm { gap: 10px; min-width: 0; }
  .wm-mono { width: 38px; height: 38px; font-size: 1.35rem; }
  .wm-text { font-size: 1.25rem; }
  .wm-text small { letter-spacing: .12em; }
  .hd-call { padding: 0 10px; gap: 6px; font-size: .9rem; }
  .hero-years { gap: 10px; font-size: .72rem; letter-spacing: .1em; }
  .hero-years::before { width: 24px; }
}
@media (max-width: 379px) {
  .hd-call svg { display: none; }
}
.nav { display: none; }
.hd-call {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--brass); color: var(--brass);
  text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}
.hd-call:hover { background: var(--brass); color: var(--charcoal); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--brass); color: var(--charcoal);
  font-weight: 700; text-decoration: none; letter-spacing: .02em;
  border: 1px solid var(--brass);
  transition: transform 200ms var(--ease), background-color 200ms ease;
}
.btn:hover { background: var(--brass-hi); color: var(--charcoal); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border-color: var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--charcoal); }

/* --- Hero: full-bleed photo behind the text ----------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px);
  display: flex; align-items: flex-end;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 72% center;
  animation: hero-bg 900ms var(--ease) both;
}
.hero::before { /* scrim: keeps the text readable on any photo */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21,24,27,.30) 0%, rgba(21,24,27,.80) 45%, rgba(21,24,27,.95) 100%);
}
.hero::after { /* brass inset frame */
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 1px solid rgba(200, 163, 90, .7);
  animation: fade-in 700ms 300ms ease both;
}
.hero-tag {
  position: absolute; top: 24px; right: 24px;
  font-size: .72rem; color: var(--paper); background: rgba(21, 24, 27, .85); padding: 6px 10px;
}
.hero-in { position: relative; padding: 220px 32px 56px; max-width: 820px; }
.hero h1 { margin-bottom: .35em; }
.lede { color: #CFC9BE; font-size: 1.08rem; max-width: 34em; margin: 0 0 1.8rem; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-anim { animation: rise 600ms var(--ease) both; }
.hero-anim:nth-child(1) { animation-delay: 100ms; }
.hero-anim:nth-child(2) { animation-delay: 180ms; }
.hero-anim:nth-child(3) { animation-delay: 280ms; }
.hero-anim:nth-child(4) { animation-delay: 380ms; }
.hero-anim:nth-child(5) { animation-delay: 480ms; }
.hero-years {
  display: flex; align-items: center; gap: 12px; margin: 28px 0 0;
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
}
.hero-years::before { content: ""; width: 40px; height: 1px; background: var(--brass); }
.hero-years span {
  font-family: var(--serif); font-optical-sizing: none; font-variation-settings: "opsz" 18;
  font-weight: 600; font-size: 1.6rem; letter-spacing: 0; color: var(--brass); text-transform: none;
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-bg { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }

/* --- Sections ----------------------------------------------------------- */
.sec { padding: 72px var(--pad); }
.sec-head { margin-bottom: 36px; }
.sec-intro { color: var(--stone); margin: 0; max-width: 32em; }

/* Services */
.svc { background: var(--ink); }
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  position: relative; background: var(--ink); padding: 28px 24px;
  transition: background-color 250ms ease, opacity 500ms ease, transform 500ms ease;
}
.card::before { /* brass line draws in on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform 350ms var(--ease);
}
.card:hover { background: #252C32; }
.card:hover::before { transform: scaleX(1); }
.ic {
  width: 76px; height: 76px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brass); color: var(--brass);
  transition: background-color 250ms ease, color 250ms ease;
}
.ic svg { width: 50px; height: 50px; transition: transform 300ms var(--ease); }
.card:hover .ic { background: var(--brass); color: var(--charcoal); }
.card:hover .ic svg { transform: scale(1.06) rotate(-4deg); }
.card p { margin: 0; color: var(--stone); }

/* Before / after */
.ba-slider {
  position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink);
  user-select: none;
}
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 300ms ease; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-slider.is-swapping .ba-img { opacity: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--brass); pointer-events: none;
  display: flex; align-items: center; justify-content: center;
}
.ba-handle span {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--charcoal); border: 2px solid var(--brass);
  display: block; position: relative;
}
.ba-handle span::before, .ba-handle span::after { /* arrows */
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border: solid var(--brass); border-width: 0 0 2px 2px;
}
.ba-handle span::before { left: 10px; transform: rotate(45deg); }
.ba-handle span::after { right: 10px; transform: rotate(-135deg); }
.ba-slider.is-hinting .ba-handle span { animation: nudge 1200ms var(--ease) 2; }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-8px); } 60% { transform: translateX(8px); } }

.ba-range { display: none; }
.js .ba-range {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; z-index: 2;
}
.js .ba-range:focus-visible + .ba-handle span { outline: 2px solid var(--paper); outline-offset: 3px; }
.ba-lb {
  position: absolute; bottom: 12px; z-index: 1; pointer-events: none;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--charcoal); color: var(--paper); padding: 6px 10px;
}
.ba-lb-before { left: 12px; }
.ba-lb-after { right: 12px; }
.ba-cap { margin: 14px 0 0; font-size: .9rem; }
.muted { color: var(--stone); }
.ba-thumbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.ba-thumb {
  font: inherit; color: var(--stone); background: none; border: 0; padding: 0;
  text-align: left; cursor: pointer;
}
.ba-thumb img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  outline: 1px solid var(--line); outline-offset: 0;
  transition: transform 250ms var(--ease), outline-color 200ms ease;
}
.ba-thumb span { display: block; font-size: .8rem; padding-top: 8px; }
.ba-thumb:hover img { transform: translateY(-3px); }
.ba-thumb[aria-pressed="true"] img { outline: 2px solid var(--brass); outline-offset: 3px; }
.ba-thumb[aria-pressed="true"] span { color: var(--paper); }

/* Reviews: each review paired with its job */
.rvw { background: var(--ink); }
.rv-list { display: grid; gap: 22px; }
.rv { margin: 0; background: var(--charcoal); display: grid; }
.rv-img { position: relative; overflow: hidden; }
.rv-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 600ms var(--ease); }
.rv:hover .rv-img img { transform: scale(1.03); }
.rv-lbl {
  position: absolute; left: 10px; bottom: 10px;
  font-size: .7rem; background: var(--charcoal); color: var(--paper); padding: 4px 8px;
}
.rv-txt { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; }
.tag {
  display: inline-block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  background: var(--charcoal); color: var(--brass); padding: 5px 10px; border: 1px solid var(--brass);
}
.rv blockquote { margin: 16px 0; }
.rv blockquote p { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.35; }
.rv blockquote p { text-indent: -.42em; } /* hang the opening quote mark */
.qm { color: var(--brass); font-weight: 600; }
.rv figcaption { display: flex; flex-direction: column; font-size: .9rem; color: var(--stone); }
.rv figcaption strong { color: var(--brass); font-weight: 600; letter-spacing: .06em; }
.rv-note { font-size: .9rem; color: var(--stone); margin: 4px 0 0; }

/* Quote */
.q { display: grid; gap: 40px; }
.q-call {
  display: inline-block; margin: 28px 0 12px;
  font-family: var(--serif); font-size: 2rem; text-decoration: none;
}
.q-areas { color: var(--stone); margin: 0; }
.q-areas span { display: block; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.q-form { background: var(--ink); padding: 26px 22px; border-top: 2px solid var(--brass); }
.q-form-h { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; margin-bottom: 1rem; }

/* The Silkline form, restyled */
.sl-field label { font-weight: 600; font-size: .9rem; color: var(--paper); }
.sl-optional { color: var(--stone); opacity: 1; }
.sl-field input, .sl-field textarea {
  background: var(--charcoal); color: var(--paper);
  border: 1px solid var(--field); border-radius: 0;
  padding: 12px 14px; min-height: 48px;
  transition: border-color 200ms ease;
}
.sl-field textarea { min-height: 120px; resize: vertical; }
.sl-field input:hover, .sl-field textarea:hover { border-color: var(--stone); }
.sl-field input:focus, .sl-field textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); }
.sl-field [aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.sl-error { color: var(--error); }
.sl-status { color: var(--paper); }
.sl-privacy { color: var(--stone); opacity: 1; }
.q-form button[type="submit"] {
  width: 100%; min-height: 54px; border: 0; cursor: pointer;
  background: var(--brass); color: var(--charcoal);
  font: inherit; font-weight: 700; letter-spacing: .04em;
  transition: background-color 200ms ease, transform 200ms var(--ease);
}
.q-form button[type="submit"]:hover { background: var(--brass-hi); transform: translateY(-2px); }
.demo-note {
  font-size: .85rem; color: var(--paper); border: 1px dashed var(--stone);
  padding: 10px 12px; margin: 4px 0 14px;
}

/* Footer */
.ft { padding: 32px var(--pad); border-top: 1px solid var(--line); font-size: .9rem; color: var(--stone); }
.ft p { margin: 0 0 6px; }
.ft-row { display: flex; flex-direction: column; gap: 4px; }
.ft-small { margin-top: 18px; font-size: .82rem; }
.ft-name { font-family: var(--serif); font-size: 1.3rem; color: var(--paper); }
.ft-concept { color: var(--brass); font-weight: 600; }

/* Privacy + 404 pages (no design classes there) */
body > p:first-child a { text-decoration: none; }
body > p:first-child ~ main h2 { font-size: 1.6rem; margin-top: 1.8em; }

/* --- Larger screens ----------------------------------------------------- */
@media (min-width: 720px) {
  :root { --pad: 48px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ba-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ft-row { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 1024px) {
  :root { --pad: 72px; }
  .hd { padding: 16px var(--pad); }
  .nav { display: flex; gap: 28px; }
  .nav a {
    position: relative; color: var(--paper); text-decoration: none; font-size: .92rem; padding: 6px 0;
  }
  .nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--brass); transform: scaleX(0); transition: transform 250ms var(--ease);
  }
  .nav a:hover { color: var(--paper); }
  .nav a:hover::after { transform: scaleX(1); }
  .hero { min-height: 760px; }
  .hero::before {
    background: linear-gradient(90deg, rgba(21,24,27,.94) 0%, rgba(21,24,27,.82) 40%, rgba(21,24,27,.25) 75%, rgba(21,24,27,.10) 100%);
  }
  .hero::after { inset: 24px; }
  .hero-bg { object-position: center; }
  .hero-tag { top: 48px; right: 56px; }
  .hero-in { padding: 160px 96px 112px; }
  .sec { padding: 120px var(--pad); display: grid; grid-template-columns: 3fr 8fr; gap: 64px; }
  .sec-head { margin: 0; }
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { padding: 34px 30px; }
  .ic { width: 92px; height: 92px; margin-bottom: 24px; }
  .ic svg { width: 64px; height: 64px; }
  .rvw { display: block; }
  .rvw .sec-head { max-width: 720px; margin-bottom: 48px; }
  .rv-list { gap: 28px; }
  .rv { grid-template-columns: 5fr 6fr; }
  .rv:nth-child(even) { grid-template-columns: 6fr 5fr; }
  .rv:nth-child(even) .rv-img { order: 2; }
  .rv-img img { height: 100%; min-height: 320px; aspect-ratio: auto; }
  .rv-txt { padding: 44px 48px; justify-content: center; }
  .rv blockquote p { font-size: 1.9rem; line-height: 1.25; }
  .q { grid-template-columns: 5fr 6fr; gap: 80px; }
  .q-form { padding: 36px; }
}

/* --- Scroll reveal (works with assets/motion.js) --------------------------
   Add data-reveal to any element that should fade/slide in.
   Elements are only hidden once motion.js has added the "js" class,
   so content stays visible if JavaScript doesn't run.
   Use it for sections BELOW the fold only: motion.js loads deferred, so
   revealing above-the-fold content could flash. Animate the hero with
   CSS @keyframes instead (no JS needed). */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* sticky header */
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
