/* ============================================================
   Kensington Law — styles.css
   Aesthetic: eclectic Kensington Market editorial
   Display: Libre Caslon Display  ·  Body: Hanken Grotesk
   Palette: warm cream paper, terracotta, teal, mustard, ink
   ============================================================ */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.04; font-weight: 400; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ---- Tokens ---- */
:root {
  --paper:   #f4ecdd;   /* warm cream */
  --paper-2: #efe4cf;   /* deeper cream panel */
  --ink:     #221b16;   /* near-black warm */
  --ink-2:   #3e342b;
  --terra:   #c0512f;   /* terracotta */
  --terra-d: #9c3e22;
  --teal:    #1f6b62;   /* deep teal */
  --teal-d:  #134a43;
  --mustard: #d99a2b;   /* mustard */
  --plum:    #6c2f3a;   /* aubergine accent */
  --line:    #d6c6a8;   /* hairline on paper */
  --line-2:  #c4b08b;

  --maxw: 1200px;
  --gut: clamp(1.1rem, 4vw, 3rem);
  --r: 4px;

  --display: "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;

  --shadow: 0 18px 44px -22px rgba(34,27,22,.55);
  --shadow-sm: 0 8px 22px -14px rgba(34,27,22,.45);
}

/* ---- Base ---- */
body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(217,154,43,.10), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(31,107,98,.10), transparent 46%),
    radial-gradient(circle at 50% 120%, rgba(192,81,47,.08), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
}
/* subtle paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }

/* ---- Type helpers ---- */
.display { font-family: var(--display); }
.eyebrow {
  font-family: var(--body); font-weight: 700;
  font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .55rem; color: var(--terra-d);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--terra); display: inline-block; }
.eyebrow.teal { color: var(--teal-d); }
.eyebrow.teal::before { background: var(--teal); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 56ch; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .92rem 1.5rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; letter-spacing: .01em;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
  border: 1.5px solid transparent;
}
.btn .arr { transition: transform .22s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--terra); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--terra-d); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--teal-d); transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1rem; }

/* ============================================================
   Header
   ============================================================ */
.topbar {
  background: var(--ink); color: var(--paper);
  font-size: .76rem; letter-spacing: .04em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .5rem; }
.topbar a:hover { color: var(--mustard); }
.topbar .tb-left { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.topbar .dot { color: var(--mustard); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--terra); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.25rem; line-height: 1;
  box-shadow: inset 0 0 0 2px rgba(244,236,221,.35);
  transform: rotate(-6deg);
}
.brand .bn { display: flex; flex-direction: column; line-height: 1; }
.brand .bn b { font-family: var(--display); font-size: 1.3rem; font-weight: 400; letter-spacing: .01em; }
.brand .bn span { font-size: .64rem; letter-spacing: .28em; text-transform: uppercase; color: var(--teal-d); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a.navlink { font-weight: 600; font-size: .95rem; position: relative; padding-block: 4px; }
.nav a.navlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--terra); transition: width .25s ease;
}
.nav a.navlink:hover::after, .nav a.navlink[aria-current="page"]::after { width: 100%; }
.nav a.navlink[aria-current="page"] { color: var(--terra-d); }
.nav .btn { padding: .62rem 1.1rem; font-size: .85rem; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }
.mobile-nav { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); position: relative; }
.hero .grid {
  display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(1.6rem, 4vw, 3.4rem);
  align-items: center;
}
.hero-kicker { margin-bottom: 1.3rem; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.7rem, 6.6vw, 5rem);
  letter-spacing: -.01em;
}
.hero h1 .swash { color: var(--terra); font-style: italic; }
.hero h1 .ul { position: relative; white-space: nowrap; }
.hero h1 .ul::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: .28em;
  background: var(--mustard); opacity: .55; z-index: -1; transform: skewX(-12deg);
}
.hero p.lede { margin-top: 1.5rem; }
.hero .actions { margin-top: 2rem; display: flex; gap: .85rem; flex-wrap: wrap; }
.hero .microtrust { margin-top: 1.9rem; display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-2); }
.hero .microtrust b { color: var(--terra-d); }

/* collage media */
.hero-media { position: relative; }
.hero-media .frame {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  transform: rotate(1.4deg);
}
.hero-media .frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-media .frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(34,27,22,.22));
  mix-blend-mode: multiply;
}
.hero-media .stamp {
  position: absolute; z-index: 3; bottom: -18px; left: -16px;
  background: var(--teal); color: var(--paper);
  border-radius: 50%; width: 116px; height: 116px;
  display: grid; place-content: center; text-align: center;
  font-family: var(--display); line-height: 1.05;
  box-shadow: var(--shadow-sm); transform: rotate(-9deg);
  border: 2px solid rgba(244,236,221,.4);
}
.hero-media .stamp b { font-size: 1.85rem; display: block; }
.hero-media .stamp span { font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--body); }
.hero-media .tag {
  position: absolute; z-index: 3; top: -16px; right: -10px;
  background: var(--mustard); color: var(--ink);
  font-weight: 700; font-size: .74rem; letter-spacing: .04em;
  padding: .5rem .85rem; border-radius: 999px; transform: rotate(5deg);
  box-shadow: var(--shadow-sm);
}

/* ---- Trust strip / marquee ---- */
.trust {
  background: var(--ink); color: var(--paper);
  border-block: 2px solid var(--terra);
  overflow: hidden;
}
.marq { display: flex; gap: 0; white-space: nowrap; }
.marq .track {
  display: flex; align-items: center; gap: 2.6rem; padding: .85rem 1.3rem;
  animation: scroll 34s linear infinite;
}
.marq .track span { font-family: var(--display); font-size: 1.18rem; display: inline-flex; align-items: center; gap: 2.6rem; }
.marq .track i { color: var(--mustard); font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marq .track { animation: none; } }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: clamp(3.2rem, 8vw, 6rem); position: relative; }
.section-head { max-width: 60ch; margin-bottom: 2.6rem; }
.section-head h2 { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: .8rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.sep { height: 1.5px; background: repeating-linear-gradient(90deg, var(--line-2) 0 10px, transparent 10px 18px); }

/* ---- Practice areas preview (cards) ---- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pa-card {
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 1.6rem 1.5rem 1.7rem; position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  overflow: hidden;
}
.pa-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--accent, var(--terra));
  transition: width .25s ease;
}
.pa-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.pa-card:hover::before { width: 8px; }
.pa-card .num { font-family: var(--display); font-size: .95rem; color: var(--accent, var(--terra)); }
.pa-card h3 { font-family: var(--display); font-size: 1.55rem; margin: .35rem 0 .55rem; }
.pa-card p { font-size: .92rem; color: var(--ink-2); }
.pa-card .price { margin-top: 1rem; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--teal-d); }
.pa-card .pop {
  position: absolute; top: 1.1rem; right: 1.1rem; font-size: .62rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 700; color: var(--ink);
  background: var(--mustard); padding: .25rem .55rem; border-radius: 999px;
}
.pa-card .go { margin-top: 1.1rem; font-weight: 700; font-size: .85rem; color: var(--terra-d); display: inline-flex; gap: .4rem; }

/* ---- About + space ---- */
.about .grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.about-media .chip {
  position: absolute; bottom: -22px; right: -10px;
  background: var(--paper); border: 1.5px solid var(--ink);
  border-radius: 8px; padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); max-width: 230px;
}
.about-media .chip b { font-family: var(--display); font-size: 2.1rem; display: block; color: var(--terra); line-height: 1; }
.about-media .chip span { font-size: .78rem; color: var(--ink-2); }
.about-copy h2 { font-family: var(--display); font-size: clamp(2rem, 4.6vw, 3rem); margin: .7rem 0 1.1rem; }
.about-copy p { color: var(--ink-2); margin-bottom: 1rem; }
.about-copy .sign { margin-top: 1.6rem; font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--teal-d); }
.about-copy .sign small { display: block; font-family: var(--body); font-style: normal; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); margin-top: .3rem; }

/* ---- Testimonial feature ---- */
.testi { position: relative; }
.testi-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.4rem; align-items: stretch; }
.testi-aside { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.testi-aside img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; }
.testi-aside figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(34,27,22,.78));
  color: var(--paper); font-family: var(--display); font-size: 1.1rem; font-style: italic;
}
.testi .panel {
  background: var(--teal); color: var(--paper); border-radius: 12px;
  padding: clamp(2.2rem, 5vw, 3.6rem); position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.testi .panel::before {
  content: "\201C"; position: absolute; top: -.3em; left: .2em;
  font-family: var(--display); font-size: 14rem; color: rgba(244,236,221,.14); line-height: 1;
}
.testi blockquote { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.22; position: relative; max-width: 30ch; }
.testi .stars { color: var(--mustard); margin-bottom: 1.1rem; letter-spacing: .2em; }
.testi .who { margin-top: 1.7rem; font-size: .9rem; }
.testi .who b { display: block; font-size: 1.05rem; }
.testi .who span { color: rgba(244,236,221,.75); }

/* ---- Insights teaser ---- */
.insights-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.3rem; }
.ins-card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.ins-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.ins-card .body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; height: 100%; }
.ins-card .meta { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-d); font-weight: 700; margin-bottom: .6rem; display: flex; gap: .6rem; }
.ins-card .meta .typ { color: var(--terra-d); }
.ins-card h3 { font-family: var(--display); font-size: 1.4rem; margin-bottom: .55rem; }
.ins-card p { font-size: .9rem; color: var(--ink-2); margin-bottom: 1rem; }
.ins-card .go { margin-top: auto; font-weight: 700; font-size: .82rem; color: var(--terra-d); }

/* ---- CTA band ---- */
.ctaband { position: relative; }
.ctaband .panel {
  background: var(--ink); color: var(--paper); border-radius: 12px; overflow: hidden;
  padding: clamp(2.4rem, 6vw, 4.4rem); position: relative;
  display: grid; grid-template-columns: 1.3fr auto; gap: 2rem; align-items: center;
  box-shadow: var(--shadow);
}
.ctaband .panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(circle at 88% 20%, rgba(192,81,47,.4), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(31,107,98,.5), transparent 45%);
}
.ctaband h2 { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.3rem); position: relative; }
.ctaband h2 em { color: var(--mustard); font-style: italic; }
.ctaband p { color: rgba(244,236,221,.78); margin-top: .9rem; position: relative; max-width: 46ch; }
.ctaband .actions { position: relative; display: flex; flex-direction: column; gap: .8rem; }
.btn-mustard { background: var(--mustard); color: var(--ink); }
.btn-mustard:hover { background: #c8881f; transform: translateY(-2px); }
.btn-outline-light { border-color: rgba(244,236,221,.5); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); }

/* ============================================================
   Services page
   ============================================================ */
.page-hero { padding-top: clamp(2.6rem,6vw,4rem); padding-bottom: clamp(1.4rem,4vw,2.4rem); }
.page-hero h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 4.6rem); margin: 1rem 0 1rem; }
.page-hero h1 em { color: var(--terra); font-style: italic; }
.page-hero .lede { font-size: clamp(1.05rem,1.7vw,1.25rem); }
.crumbs { font-size: .78rem; letter-spacing: .06em; color: var(--ink-2); }
.crumbs a:hover { color: var(--terra-d); }
.crumbs .sep { display: inline; background: none; color: var(--line-2); padding-inline: .4rem; }

.svc-list { display: grid; gap: 1.3rem; }
.svc {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.5rem;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.8rem; align-items: start;
  position: relative; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.svc:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-3px); }
.svc .idx {
  font-family: var(--display); font-size: 1.7rem; color: var(--paper);
  background: var(--accent, var(--terra)); width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; transform: rotate(-5deg);
}
.svc h3 { font-family: var(--display); font-size: 1.7rem; margin-bottom: .25rem; }
.svc .tagline { font-style: italic; color: var(--teal-d); font-family: var(--display); font-size: 1.05rem; margin-bottom: .7rem; }
.svc p { color: var(--ink-2); margin-bottom: 1rem; max-width: 62ch; }
.svc .includes { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc .includes li {
  font-size: .78rem; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
  padding: .35rem .7rem; border-radius: 999px;
}
.svc .right { text-align: right; min-width: 140px; }
.svc .right .price { font-weight: 700; color: var(--terra-d); font-size: .85rem; margin-bottom: .8rem; display: block; max-width: 150px; margin-left: auto; }
.svc .pop { position: absolute; top: -10px; left: 1.8rem; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink); background: var(--mustard); padding: .25rem .6rem; border-radius: 999px; }

/* FAQ */
.faq { display: grid; gap: .8rem; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 8px;
  padding: .35rem 1.3rem; transition: border-color .2s;
}
.faq details[open] { border-color: var(--terra); }
.faq summary {
  list-style: none; cursor: pointer; font-family: var(--display); font-size: 1.2rem;
  padding: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--terra); font-size: 1.5rem; transition: transform .25s; flex: none; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding-bottom: 1.1rem; max-width: 64ch; }

/* areas served */
.served-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.served {
  border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem;
  background: var(--paper); transition: background .2s, transform .2s;
}
.served:hover { background: var(--paper-2); transform: translateY(-3px); }
.served h4 { font-family: var(--display); font-size: 1.25rem; margin-bottom: .35rem; color: var(--teal-d); }
.served p { font-size: .85rem; color: var(--ink-2); }

/* ============================================================
   Contact page
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.8rem, 4vw, 3rem); align-items: start; }
.form-card {
  background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 6px;
  padding: .8rem .9rem; font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--terra); box-shadow: 0 0 0 3px rgba(192,81,47,.15); outline: none; }
.form-note { font-size: .76rem; color: var(--ink-2); margin-top: .8rem; }
.form-card .btn { width: 100%; justify-content: center; }

.info-card { background: var(--ink); color: var(--paper); border-radius: 12px; padding: clamp(1.6rem,4vw,2.2rem); box-shadow: var(--shadow); }
.info-card h3 { font-family: var(--display); font-size: 1.6rem; margin-bottom: 1.2rem; }
.info-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid rgba(244,236,221,.14); }
.info-list li:last-child { border-bottom: none; }
.info-list .ic { color: var(--mustard); flex: none; margin-top: 2px; }
.info-list b { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244,236,221,.65); margin-bottom: .2rem; }
.info-list a:hover { color: var(--mustard); }
.hours { margin-top: 1.4rem; }
.hours-row { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .9rem; border-bottom: 1px dashed rgba(244,236,221,.18); }
.hours-row.closed span:last-child { color: var(--terra); }

.map-ph {
  margin-top: 1.6rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2);
  height: 320px; position: relative; background: var(--paper-2);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 38px 38px; display: grid; place-items: center; text-align: center;
}
.map-ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, transparent 30%, rgba(34,27,22,.06)); }
.map-pin {
  background: var(--terra); color: var(--paper); border-radius: 50% 50% 50% 0;
  width: 44px; height: 44px; transform: rotate(-45deg); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); margin-bottom: 1rem;
}
.map-pin span { transform: rotate(45deg); font-size: 1.2rem; }
.map-ph .lbl { position: relative; }
.map-ph .lbl b { font-family: var(--display); font-size: 1.2rem; display: block; }
.map-ph .lbl span { font-size: .82rem; color: var(--ink-2); }

/* ============================================================
   Blog page
   ============================================================ */
.featured {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  background: var(--ink); color: var(--paper); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow);
}
.featured .img { position: relative; min-height: 320px; }
.featured .img img { width: 100%; height: 100%; object-fit: cover; }
.featured .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent, rgba(34,27,22,.35)); }
.featured .body { padding: clamp(1.8rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.featured .tagrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; display: flex; gap: .8rem; }
.featured .tagrow .typ { color: var(--mustard); }
.featured .tagrow .dot { color: var(--terra); }
.featured h2 { font-family: var(--display); font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.featured p { color: rgba(244,236,221,.8); margin-bottom: 1.6rem; max-width: 52ch; }

.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 2.2rem; }
.bcard {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.6rem 1.5rem 1.7rem; display: flex; flex-direction: column;
  position: relative; transition: transform .25s, box-shadow .25s;
}
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bcard .typ {
  align-self: flex-start; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; padding: .25rem .6rem; border-radius: 999px; margin-bottom: 1rem;
}
.bcard .typ.guide { background: var(--teal); color: var(--paper); }
.bcard .typ.blog { background: var(--mustard); color: var(--ink); }
.bcard h3 { font-family: var(--display); font-size: 1.45rem; margin-bottom: .6rem; line-height: 1.12; }
.bcard p { font-size: .88rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.bcard .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .76rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: .9rem; }
.bcard .foot .go { color: var(--terra-d); font-weight: 700; }

.news-cta { margin-top: 2.6rem; }
.news-card {
  background: var(--paper-2); border: 1.5px dashed var(--line-2); border-radius: 12px;
  padding: clamp(1.8rem, 4vw, 2.6rem); text-align: center;
}
.news-card h3 { font-family: var(--display); font-size: clamp(1.6rem,3.4vw,2.3rem); margin-bottom: .6rem; }
.news-card p { color: var(--ink-2); margin-bottom: 1.4rem; }
.news-form { display: flex; gap: .7rem; max-width: 440px; margin-inline: auto; }
.news-form input { flex: 1; background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 999px; padding: .8rem 1.2rem; }
.news-form input:focus { border-color: var(--terra); outline: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--ink); color: var(--paper); margin-top: clamp(3rem,8vw,6rem); position: relative; }
.site-footer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--terra) 0 25%, var(--mustard) 25% 50%, var(--teal) 50% 75%, var(--plum) 75% 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-block: clamp(2.6rem,6vw,4rem); }
.footer-grid .brand .mark { box-shadow: inset 0 0 0 2px rgba(244,236,221,.35); }
.footer-grid .brand .bn b { color: var(--paper); }
.footer-grid .brand .bn span { color: var(--mustard); }
.fcol h4 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mustard); margin-bottom: 1rem; }
.fcol ul li { margin-bottom: .6rem; }
.fcol a, .fcol p { color: rgba(244,236,221,.78); font-size: .92rem; }
.fcol a:hover { color: var(--paper); }
.foot-about { color: rgba(244,236,221,.7); font-size: .9rem; margin: 1rem 0 1.2rem; max-width: 34ch; }
.foot-nap { font-size: .9rem; color: rgba(244,236,221,.85); }
.foot-nap b { color: var(--paper); }
.footer-bottom { border-top: 1px solid rgba(244,236,221,.14); padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: rgba(244,236,221,.6); }
.footer-bottom .demo { color: var(--mustard); }
.footer-bottom a:hover { color: var(--paper); }

/* ---- reveal animation ---- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---- page-load stagger for hero ---- */
.hero [data-stag] { opacity: 0; transform: translateY(16px); animation: rise .7s ease forwards; }
.hero [data-stag="1"] { animation-delay: .05s; }
.hero [data-stag="2"] { animation-delay: .15s; }
.hero [data-stag="3"] { animation-delay: .25s; }
.hero [data-stag="4"] { animation-delay: .35s; }
.hero [data-stag="5"] { animation-delay: .45s; }
.hero-media { opacity: 0; transform: translateY(16px) rotate(0); animation: rise .8s ease .2s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero [data-stag], .hero-media { animation: none; opacity: 1; transform: none; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin-inline: auto; }
  .about .grid { grid-template-columns: 1fr; }
  .about-media { max-width: 520px; }
  .testi-row { grid-template-columns: 1fr; }
  .testi-aside { min-height: 220px; }
  .ctaband .panel { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .featured { grid-template-columns: 1fr; }
  .featured .img { min-height: 240px; }
  .areas-grid, .insights-grid, .blog-grid, .served-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .burger { display: flex; }
  .topbar .tb-left { gap: .9rem; }
  .topbar .tb-right { display: none; }
  .mobile-nav.open { display: block; background: var(--paper-2); border-bottom: 1.5px solid var(--line); }
  .mobile-nav.open ul { padding: 1rem var(--gut) 1.4rem; display: grid; gap: .3rem; }
  .mobile-nav.open a { display: block; padding: .7rem 0; font-family: var(--display); font-size: 1.3rem; border-bottom: 1px solid var(--line); }
  .mobile-nav.open .btn { margin-top: .8rem; justify-content: center; }
  .svc { grid-template-columns: 48px 1fr; }
  .svc .right { grid-column: 1 / -1; text-align: left; margin-top: .6rem; }
  .svc .right .price { margin-left: 0; }
}
@media (max-width: 560px) {
  .areas-grid, .insights-grid, .blog-grid, .served-grid, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-media .stamp { width: 92px; height: 92px; }
  .hero-media .stamp b { font-size: 1.4rem; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; justify-content: center; }
}
@media (max-width: 360px) {
  :root { --gut: 1.05rem; }
  .hero h1 { font-size: 2.45rem; }
}
