/* ==========================================================================
   Jimothy Brisket — jimothybrisket.com
   One stylesheet. No framework. Unchanged since 1987.
   ========================================================================== */

:root {
  /* Paper palette (light) */
  --paper:        #f6f2ec;
  --paper-2:      #efe9e0;
  --card:         #fffdfa;
  --ink:          #17130f;
  --ink-2:        #4a4139;
  --ink-3:        #877b6e;
  --rule:         #ddd3c6;
  --rule-strong:  #c6b9a8;
  --ember:        #8f3413;
  --ember-soft:   #b4552c;
  --smoke:        #2b2521;

  --shadow-sm: 0 1px 2px rgba(23,19,15,.06), 0 4px 12px rgba(23,19,15,.04);
  --shadow-md: 0 2px 6px rgba(23,19,15,.07), 0 18px 40px rgba(23,19,15,.07);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1120px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 8.5rem);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #14110e;
    --paper-2:     #1b1714;
    --card:        #1e1a16;
    --ink:         #f2ece3;
    --ink-2:       #c3b8ab;
    --ink-3:       #8e8275;
    --rule:        #332c26;
    --rule-strong: #4a4038;
    --ember:       #d9743f;
    --ember-soft:  #e08c5c;
    --smoke:       #0e0c0a;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 2px 8px rgba(0,0,0,.4), 0 20px 48px rgba(0,0,0,.35);
  }
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ember); color: #fff; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }
.wrap-narrow { max-width: 780px; }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--rule); }

.eyebrow {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ember); font-weight: 500; margin: 0 0 1.25rem;
}

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: .75rem; }
.section-lede { color: var(--ink-2); font-size: 1.06rem; max-width: 58ch; margin: 0; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  padding: .95rem 1.85rem; border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: .82rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease;
}
.btn:hover { background: var(--ember); border-color: var(--ember); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: transparent; color: var(--ember); border-color: var(--ember); }
.btn-sm { padding: .6rem 1.15rem; font-size: .68rem; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-stuck { border-bottom-color: var(--rule); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid var(--rule-strong); border-radius: 50%;
  font-family: var(--serif); font-size: .82rem; letter-spacing: .06em; color: var(--ember);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--serif); font-size: 1.06rem; letter-spacing: -.01em; }
.brand-sub { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { text-decoration: none; font-size: .82rem; color: var(--ink-2); transition: color .2s ease; }
.nav a:hover { color: var(--ember); }
.nav .btn { color: var(--paper); }
.nav .btn:hover { color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 9px 8px; gap: 5px; flex-direction: column; justify-content: center;
}
.nav-toggle span { display: block; height: 1px; background: var(--ink); transition: transform .28s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(4rem, 12vw, 9rem) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 78% 8%, color-mix(in srgb, var(--ember) 12%, transparent), transparent 70%),
    radial-gradient(50% 40% at 8% 100%, color-mix(in srgb, var(--ember) 7%, transparent), transparent 70%);
}
.hero-inner { position: relative; max-width: 840px; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 5.3rem); margin-bottom: 1.6rem; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; color: var(--ember); }
.lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-2); max-width: 60ch; margin-bottom: 2.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.9rem; }
.hero-note { font-size: .82rem; color: var(--ink-3); margin: 0; }
.hero-rule { height: 1px; background: linear-gradient(90deg, transparent, var(--rule-strong), transparent); }

/* --- Clients -------------------------------------------------------------- */
.clients { padding-block: clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.clients-label {
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-3); text-align: center; margin-bottom: 1.5rem;
}
.clients-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.clients-list li {
  font-family: var(--serif); font-size: clamp(.9rem, 1.5vw, 1.05rem);
  letter-spacing: .04em; color: var(--ink-2); opacity: .72;
  transition: opacity .25s ease;
}
.clients-list li:hover { opacity: 1; }

/* --- Stats ---------------------------------------------------------------- */
.stats { background: var(--smoke); color: #ece3d8; padding-block: clamp(3rem, 6vw, 4.5rem); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(236,227,216,.14); }
.stat { background: var(--smoke); padding: 1.75rem clamp(1rem, 2vw, 2rem); text-align: center; }
.stat-num {
  display: block; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: #e8853f; line-height: 1; margin-bottom: .6rem; font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .76rem; letter-spacing: .05em; color: rgba(236,227,216,.62); }

/* --- Cards ---------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--rule-strong); }
.card-num {
  font-family: var(--serif); font-size: .8rem; letter-spacing: .18em;
  color: var(--ember); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.5rem; margin-bottom: .85rem; }
.card p { color: var(--ink-2); font-size: .96rem; }
.card-list { border-top: 1px solid var(--rule); padding-top: 1.1rem; margin-top: 1.4rem; }
.card-list li {
  font-size: .82rem; color: var(--ink-3); padding-left: 1.1rem; position: relative; margin-bottom: .45rem;
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 1px; background: var(--ember);
}

/* --- Method --------------------------------------------------------------- */
.method { border-top: 1px solid var(--rule); }
.method li {
  display: grid; grid-template-columns: 150px 1fr 130px; gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start; padding-block: clamp(1.75rem, 3.5vw, 2.6rem);
  border-bottom: 1px solid var(--rule);
  transition: background .3s ease;
}
.method li:hover { background: color-mix(in srgb, var(--ember) 4%, transparent); }
.method-step {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember); padding-top: .5rem;
}
.method-body h3 { font-size: 1.55rem; margin-bottom: .6rem; }
.method-body p { color: var(--ink-2); margin: 0; max-width: 56ch; font-size: .98rem; }
.method-time {
  font-family: var(--serif); font-size: .95rem; color: var(--ink-3);
  text-align: right; padding-top: .45rem; font-variant-numeric: tabular-nums;
}

/* --- Case study ----------------------------------------------------------- */
.case {
  display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 3.25rem); margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.case-body p { color: var(--ink-2); font-size: .99rem; }
.case-body p:last-child { margin-bottom: 0; }
.case-body strong { color: var(--ink); font-weight: 600; }
.case-metrics { border-left: 1px solid var(--rule); padding-left: clamp(1.25rem, 3vw, 2.25rem); }
.case-metrics-label {
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 1.25rem;
}
.case-metrics dl { margin: 0; }
.case-metrics div { padding-block: .8rem; border-bottom: 1px solid var(--rule); }
.case-metrics div:last-child { border-bottom: 0; }
.case-metrics dt { font-size: .78rem; color: var(--ink-3); margin-bottom: .15rem; }
.case-metrics dd { margin: 0; font-family: var(--serif); font-size: 1.12rem; }

/* --- Quotes --------------------------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.quote { margin: 0; padding: clamp(1.5rem, 3vw, 2rem); border-top: 2px solid var(--ember); background: var(--card); border-radius: var(--radius); }
.quote blockquote {
  margin: 0 0 1.1rem; font-family: var(--serif); font-size: 1.14rem;
  line-height: 1.42; font-style: italic; color: var(--ink);
}
.quote blockquote::before { content: "\201C"; }
.quote blockquote::after  { content: "\201D"; }
.quote figcaption { font-size: .76rem; letter-spacing: .04em; color: var(--ink-3); }

/* --- Principal ------------------------------------------------------------ */
.principal { display: grid; grid-template-columns: 340px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.portrait-frame {
  aspect-ratio: 3 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.25rem; text-align: center; padding: 2rem;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 9px, color-mix(in srgb, var(--rule) 55%, transparent) 9px, color-mix(in srgb, var(--rule) 55%, transparent) 10px),
    var(--card);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.portrait-initials {
  font-family: var(--serif); font-size: 3.4rem; color: var(--ember);
  border: 1px solid var(--rule-strong); border-radius: 50%;
  width: 118px; height: 118px; display: grid; place-items: center;
  background: var(--card);
}
.portrait-caption { font-size: .72rem; letter-spacing: .05em; color: var(--ink-3); max-width: 22ch; line-height: 1.5; }
.principal-body h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 1rem; }
.principal-lede { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-style: italic; margin-bottom: 1.5rem; }
.principal-body p { color: var(--ink-2); font-size: .99rem; }
.credentials { border-top: 1px solid var(--rule); margin-top: 2rem; padding-top: .5rem; }
.credentials li {
  display: flex; gap: 1.25rem; padding-block: .8rem;
  border-bottom: 1px solid var(--rule); font-size: .92rem; color: var(--ink-2);
}
.credentials li span {
  font-family: var(--serif); color: var(--ember); flex: none; width: 3.5rem;
  font-variant-numeric: tabular-nums;
}

/* --- FAQ ------------------------------------------------------------------ */
.faq { border-top: 1px solid var(--rule); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.35rem 0; font-family: var(--serif); font-size: 1.18rem; line-height: 1.35;
  transition: color .2s ease;
}
.faq-q:hover { color: var(--ember); }
.faq-icon { position: relative; width: 13px; height: 13px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--ember); transition: transform .3s ease;
}
.faq-icon::before { top: 6px; left: 0; width: 13px; height: 1px; }
.faq-icon::after  { left: 6px; top: 0; height: 13px; width: 1px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); }
.faq-a { overflow: hidden; height: 0; transition: height .32s cubic-bezier(.4,0,.2,1); }
.faq-a p { color: var(--ink-2); font-size: .98rem; max-width: 62ch; padding-bottom: 1.4rem; margin: 0; }

/* --- Enquiry form --------------------------------------------------------- */
.enquire { background: var(--smoke); color: #ece3d8; padding-block: var(--section-y); }
.enquire .eyebrow { color: #e8853f; }
.enquire h2 { color: #f7f1e8; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.enquire .section-lede { color: rgba(236,227,216,.66); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.35rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(236,227,216,.6); }
.field input, .field select, .field textarea {
  background: rgba(236,227,216,.05); color: #f4eee5;
  border: 1px solid rgba(236,227,216,.2); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: .95rem; width: 100%;
  transition: border-color .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(236,227,216,.34); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #e8853f; background: rgba(236,227,216,.09);
}
.field select option { background: #1b1714; color: #f4eee5; }
.field.is-invalid input, .field.is-invalid select { border-color: #d9603c; }

.field-check { flex-direction: row; align-items: center; gap: .75rem; }
.field-check input { width: 17px; height: 17px; flex: none; accent-color: #e8853f; padding: 0; }
.field-check label { text-transform: none; letter-spacing: .01em; font-size: .88rem; color: rgba(236,227,216,.75); }

/* Honeypot — off-screen rather than display:none, which some bots detect. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: .5rem; }
.form .btn { background: #e8853f; border-color: #e8853f; color: #1a1512; }
.form .btn:hover { background: #f4a05c; border-color: #f4a05c; color: #1a1512; }
.form-note { font-size: .78rem; color: rgba(236,227,216,.5); margin: 0; }
.form-result {
  grid-column: 1 / -1; margin: .5rem 0 0; padding: 1.15rem 1.35rem;
  border-left: 2px solid #e8853f; background: rgba(236,227,216,.06);
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: #f4eee5;
}
.form-result.is-error { border-left-color: #d9603c; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-tag { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; color: var(--ink); margin: 0; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2rem; }
.footer-cols h4 {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 1rem; font-weight: 500;
}
.footer-cols a, .footer-cols p {
  display: block; font-size: .9rem; color: var(--ink-2); text-decoration: none;
  margin-bottom: .5rem; line-height: 1.7;
}
.footer-cols a:hover { color: var(--ember); }
.footer-legal {
  border-top: 1px solid var(--rule); padding-block: 1.75rem 2.25rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.footer-legal p { font-size: .76rem; color: var(--ink-3); margin: 0; }
.disclaimer { max-width: 62ch; }

/* --- Reveal animation ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .case { grid-template-columns: 1fr; }
  .case-metrics { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 1.5rem; }
  .principal { grid-template-columns: 1fr; }
  .portrait-frame { max-width: 300px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: .5rem var(--gap) 1.5rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: .9rem 0; font-size: .98rem; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 1rem; border-bottom: 1px solid var(--ink); }
  .nav .btn:hover { border-bottom-color: var(--ember); }

  .method li { grid-template-columns: 1fr; gap: .5rem; }
  .method-step { padding-top: 0; }
  .method-time { text-align: left; padding-top: .25rem; }
  .form { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .clients-list { gap: 1rem 1.75rem; }
}

/* --- Motion & print ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .form, .hero-actions { display: none; }
  body { background: #fff; color: #000; }
  .reveal { opacity: 1; transform: none; }
}
