/* Lawver Plumbing & Remodeling: shared styles for every page */
:root {
  color-scheme: light dark;
  /* Warm craft palette: linen, sandstone, heritage forest, brushed brass */
  --bg: #f9f7f2;          /* warm alabaster / linen */
  --surface: #fffdf9;     /* card white, warmed */
  --ink: #1f2421;         /* deep charcoal headings */
  --ink-2: #2e3430;
  --muted: #525854;       /* warm slate body copy */
  --line: #dfdbd2;        /* warm stone hairline */
  --line-strong: #1f2421;
  --band: #efece6;        /* sandstone / putty surface */
  --band-line: #dfdbd2;
  --accent: #b87333;      /* brushed brass, used sparingly */
  --accent-ink: #8a5424;  /* darker brass for small text (passes contrast) */
  --btn: #1b322c;         /* deep heritage forest */
  --btn-hover: #24413a;
  --btn-ink: #f9f7f2;
  --badge: #8a5424;       /* brass badge behind white text on photos */
  --hero-bg: #f9f7f2;
  --r: 8px;
  --r-hero: 12px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.125rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; font-optical-sizing: auto; margin: 0; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.375rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; max-width: 60ch; text-wrap: pretty; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); }
.icon { width: 18px; height: 18px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font: 500 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 17px 24px; border-radius: var(--r); border: 1px solid var(--btn);
  background: var(--btn); color: #fff;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--surface); }
.arrow-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; padding-bottom: 4px; border-bottom: 1px solid var(--ink); transition: gap .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.arrow-link:hover { gap: 14px; color: var(--accent-ink); border-color: var(--accent); }
.arrow-link .icon { width: 16px; height: 16px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 40px; height: 76px; }
.logo-slot { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; min-width: 0; }
/* Replace .logo-mark + .logo-text with <img src="images/logo.svg" alt="Lawver Plumbing & Remodeling" height="40"> */
.logo-mark { width: 40px; height: 40px; border-radius: var(--r); background: var(--btn); color: #fff; display: grid; place-items: center; font: 500 1.125rem/1 var(--display); letter-spacing: -.02em; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font: 600 1.0625rem/1.1 var(--display); letter-spacing: -.015em; }
.logo-text span { font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; text-decoration: none; font-size: .9375rem; font-weight: 500; color: var(--muted); padding: 27px 0; transition: color .18s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.head-call { padding: 12px 18px; font-size: .9375rem; }
.nav-row { display: none; }
@media (max-width: 1000px) {
  .head-row .nav { display: none; }
  .head-row { height: 64px; }
  .nav-row { display: block; border-top: 1px solid var(--line); }
  .nav-row .nav { justify-content: space-between; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .nav-row .nav::-webkit-scrollbar { display: none; }
  .nav-row .nav a { padding: 13px 0; white-space: nowrap; font-size: .875rem; }
}
@media (max-width: 560px) { .head-call { display: none; } }

/* Hero */
.hero { background: var(--hero-bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); min-height: clamp(500px, calc(100vh - 76px - 116px), 660px); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 4.5vw, 72px) clamp(32px, 5vw, 80px) clamp(40px, 4.5vw, 72px) 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--accent-ink); }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.hero h1 { margin-top: 22px; font-size: clamp(2.5rem, 4.2vw, 3.75rem); }
.hero .lede { margin-top: 24px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }

.hero-frame { position: relative; margin: clamp(24px, 3vw, 40px) 0 0; background: var(--surface); overflow: hidden; min-height: 0; border-radius: var(--r-hero); box-shadow: 0 1px 2px rgba(24, 32, 38, .06), 0 24px 48px -28px rgba(24, 32, 38, .35); }
/* Drop a high-res kitchen photo here (ideally 2400px wide or larger) */
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Spec bar */
.spec { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; margin: 0 auto; padding-top: clamp(36px, 4vw, 52px); padding-bottom: clamp(44px, 5vw, 64px); }
.spec dt { font-size: .875rem; color: var(--muted); }
.spec dd { margin: 6px 0 0; font: 500 1.375rem/1.2 var(--display); letter-spacing: -.015em; color: var(--ink); }
.spec-wrap { background: var(--hero-bg); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-right: 0; }
  .hero-frame { aspect-ratio: 4 / 3; margin: 0; }
  .spec { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .spec dd { font-size: 1.1875rem; }
}
@media (max-width: 480px) { .hero-actions .btn { width: 100%; justify-content: center; } }

/* Load moment: hero only */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .6s var(--ease) both; }
  .d1 { animation-delay: .05s; } .d2 { animation-delay: .11s; } .d3 { animation-delay: .17s; } .d4 { animation-delay: .23s; }
  .reveal { animation: reveal .9s var(--ease) both .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes reveal { from { opacity: 0; transform: scale(1.02); } }
}

/* Sections */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 72px); align-items: end; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.section-head .lede { justify-self: start; }
.section-head.with-link { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) auto; }
@media (max-width: 860px) { .section-head, .section-head.with-link { grid-template-columns: 1fr; } }

/* Specialties */
.specialties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.specialty { padding: clamp(28px, 3vw, 40px) clamp(20px, 2.6vw, 40px) 8px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.specialty:first-child { border-left: 0; padding-left: 0; }
.specialty .icon { width: 28px; height: 28px; color: var(--accent); stroke-width: 1.5; }
.specialty h3 { margin-top: 28px; }
.specialty p { margin-top: 12px; color: var(--muted); }
.specialty ul { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.specialty li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.specialty.feature { background: var(--band); border-radius: var(--r); margin: 0; padding: clamp(28px, 3vw, 40px) clamp(20px, 2.6vw, 40px) 32px; border-left: 0; }
.specialty.feature ul, .specialty.feature li { border-color: var(--band-line); }
.trades { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; list-style: none; padding: 0; border: 0 !important; }
.trades li { border: 1px solid var(--band-line) !important; background: var(--surface); padding: 6px 12px; border-radius: 6px; font-size: .875rem; }
@media (max-width: 900px) {
  .specialties { grid-template-columns: 1fr; }
  .specialty { border-left: 0; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 32px; }
  .specialty.feature { padding: 32px 20px; margin: 24px 0 0; }
}

/* Featured work */
.work { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pairs { list-style: none; margin: 0; padding: clamp(28px, 3vw, 40px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.pairs > li { padding: 0; }
.pair-frame { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.pair-frame figure { position: relative; margin: 0; background: var(--bg); }
.pair-frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.pair-frame figure:first-child img { filter: saturate(.7) contrast(.96); }
.tag { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.94); color: var(--ink); padding: 6px 10px; font-size: .75rem; font-weight: 600; letter-spacing: .01em; border-radius: 6px; }
.pair-frame figure:last-child .tag { background: var(--btn); color: #fff; }
.pair-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.pair-meta h3 { font-size: 1.125rem; }
.pair-meta span { font-size: .875rem; color: var(--muted); text-align: right; }
.work-foot { display: flex; flex-wrap: wrap; gap: 16px 40px; padding-top: 32px; }
@media (max-width: 1000px) { .pairs { grid-template-columns: 1fr 1fr; } .pairs > li:nth-child(3) { display: none; } }
@media (max-width: 640px) { .pairs { grid-template-columns: 1fr; } .pairs > li { padding: 0; } .pairs > li:nth-child(3) { display: block; } }

/* CTA banner */
.cta { background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); }
.cta-copy { padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 88px) 0; border-right: 1px solid var(--band-line); }
.cta-copy .lede { margin-top: 18px; color: var(--ink-2); opacity: .8; }
.cta-lines { display: grid; align-content: center; }
.cta-line { display: grid; grid-template-columns: 120px 1fr; align-items: baseline; gap: 16px; padding: 24px 0 24px clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--band-line); text-decoration: none; }
.cta-line:last-child { border-bottom: 0; }
.cta-line small { font-size: .875rem; color: var(--ink-2); opacity: .75; }
.cta-line b { font: 500 clamp(1.75rem, 3.6vw, 3rem)/1.05 var(--display); letter-spacing: -.03em; transition: color .18s var(--ease); white-space: nowrap; }
.cta-line.sm b { font-size: clamp(1.125rem, 1.8vw, 1.375rem); letter-spacing: -.01em; }
a.cta-line:hover b { color: var(--accent-ink); }
@media (max-width: 860px) {
  .cta-grid { grid-template-columns: 1fr; }
  .cta-copy { border-right: 0; border-bottom: 1px solid var(--band-line); padding-right: 0; }
  .cta-line { padding-left: 0; grid-template-columns: 1fr; gap: 6px; }
}

/* Footer */
footer { padding: 40px 0 48px; font-size: .875rem; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

.callbar { display: none; }
@media (max-width: 640px) {
  .callbar { display: flex; justify-content: center; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; }
  footer { padding-bottom: 104px; }
}

/* ---------- Inner page hero (Approach, Before & After, Gallery, About, Contact) ---------- */
.page-hero { background: var(--hero-bg); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); }
.page-hero h1 { margin-top: 22px; font-size: clamp(2.375rem, 4vw, 3.5rem); }
.page-hero .lede { margin-top: 22px; max-width: 32em; }
.page-hero .hero-actions { margin-top: 36px; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* iPad device frame */
.device { margin: 0; }
.ipad {
  position: relative; background: #1c2226; border-radius: 28px; padding: clamp(12px, 1.6vw, 20px);
  box-shadow: 0 1px 2px rgba(24, 32, 38, .1), 0 32px 64px -32px rgba(24, 32, 38, .55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.ipad::before { content: ""; position: absolute; top: 50%; left: 6px; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: #3a4349; }
.ipad .screen { position: relative; aspect-ratio: 4 / 3; background: #fff; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.ipad .screen img { width: 100%; height: 100%; object-fit: cover; }
.ipad .screen img.placeholder { width: auto; height: 78%; object-fit: contain; image-rendering: auto; }
.device figcaption { margin-top: 16px; font-size: .875rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.device figcaption::before { content: ""; width: 24px; height: 1px; background: var(--accent); }

/* Timeline */
.process { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-intro { position: sticky; top: 112px; }
.process-intro .lede { margin-top: 18px; }
.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 24px; padding-bottom: 40px; counter-increment: step; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero); grid-row: span 3;
  width: 56px; height: 56px; border-radius: var(--r); display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font: 500 1rem/1 var(--display); font-variant-numeric: tabular-nums; position: relative; z-index: 1;
}
.step::after { content: ""; position: absolute; left: 27.5px; top: 56px; bottom: 0; width: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { padding-top: 14px; }
.step p { margin-top: 8px; color: var(--muted); }
.step.key::before { background: var(--btn); border-color: var(--btn); color: #fff; }
.step-note { justify-self: start; margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; font-weight: 500; color: var(--accent-ink); background: var(--band); padding: 8px 12px; border-radius: 6px; }
.step-note .icon { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process-intro { position: static; }
  .step { grid-template-columns: 44px minmax(0, 1fr); gap: 0 16px; }
  .step::before { width: 44px; height: 44px; font-size: .9375rem; }
  .step::after { left: 21.5px; top: 44px; }
  .step h3 { padding-top: 9px; font-size: 1.1875rem; }
}

/* Design review showcase */
.showcase { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 11fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.showcase .lede { margin-top: 18px; }
.points { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.points .icon { width: 22px; height: 22px; color: var(--accent); stroke-width: 1.6; margin-top: 2px; }
.points b { display: block; font-weight: 600; }
.points span { color: var(--muted); font-size: .9375rem; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: 1fr; } }

/* Clean job site */
.care { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 4vw, 48px); }
.care-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 4vw, 72px); align-items: end; }
.care-head .lede { margin-top: 0; }
@media (max-width: 860px) { .care-head { grid-template-columns: 1fr; } }
.care .lede { margin-top: 18px; }
.care-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.care-list li { background: var(--band); border-radius: var(--r); padding: clamp(24px, 2.6vw, 36px); }
.care-list .icon { width: 24px; height: 24px; color: var(--accent-ink); stroke-width: 1.6; }
.care-list h3 { font-size: 1.25rem; margin-top: 24px; }
.care-list p { margin-top: 8px; font-size: 1rem; color: var(--ink-2); opacity: .8; }
@media (max-width: 640px) { .care-list { grid-template-columns: 1fr; } }

@media (max-width: 420px) {
  .nav-row .nav { gap: 0; }
  .nav-row .nav a { font-size: .8125rem; letter-spacing: -.005em; }
}

/* Simple inner-page hero */
.page-hero-simple { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 72px); }
.page-hero-simple .lede { max-width: 40em; }
.page-hero-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; }

/* ---------- Before & After page ---------- */
.ba-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) clamp(20px, 2.4vw, 32px); }
.ba-card { margin: 0; }
.ba-frame { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--line); }
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .25s var(--ease); }
.ba-frame .b { opacity: 0; filter: saturate(.75); }
.ba-card[data-show="before"] .b { opacity: 1; }
.ba-card[data-show="before"] .a { opacity: 0; }
.toggle { position: absolute; left: 12px; bottom: 12px; display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r); background: rgba(255,255,255,.95); box-shadow: 0 1px 2px rgba(24,32,38,.12); }
.toggle button { font: 500 .875rem/1 var(--body); border: 0; background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 6px; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.toggle button[aria-pressed="true"] { background: var(--btn); color: #fff; }
.ba-card figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ba-card figcaption h3 { font-size: 1.125rem; }
.ba-card figcaption p { font-size: .875rem; color: var(--muted); text-align: right; }
@media (max-width: 960px) { .ba-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ba-grid { grid-template-columns: 1fr; } }

/* ---------- Gallery page ---------- */
.filters { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.filters button { white-space: nowrap; font: 500 .9375rem/1 var(--body); color: var(--muted); background: transparent; border: 0; padding: 11px 16px; border-radius: 6px; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease); }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--btn); color: #fff; }
.grid { list-style: none; margin: 0; padding: 0; columns: 4 240px; column-gap: 16px; }
.grid li { break-inside: avoid; margin-bottom: 16px; }
.grid li[hidden] { display: none; }
.tile { display: block; width: 100%; padding: 0; border: 0; background: var(--line); cursor: zoom-in; border-radius: var(--r); overflow: hidden; }
.tile img { width: 100%; transition: transform .3s var(--ease); }
.tile:hover img { transform: scale(1.03); }
@media (max-width: 560px) { .filters button { padding: 10px 12px; font-size: .875rem; } .grid { columns: 2; column-gap: 10px; } .grid li { margin-bottom: 10px; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(16, 24, 22, .88); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--r); }
.lb-bar { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.lb-bar button { font: 500 .9375rem/1 var(--body); padding: 12px 18px; border-radius: var(--r); border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.lb-bar button:hover { background: rgba(255,255,255,.18); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: lb .2s var(--ease); }
  @keyframes lb { from { opacity: 0; transform: scale(.98); } }
}

/* ---------- About page ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.story-photo { margin: 0; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-hero); }
.story-copy > p { margin-top: 18px; color: var(--muted); font-size: 1.125rem; line-height: 1.65; }
.story-copy > p:first-of-type { margin-top: 24px; }
.license { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.license b { font: 500 1.375rem/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.015em; }
.license span { color: var(--muted); font-size: .9375rem; }
.van { margin-top: 32px; }
.van img { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } .story-photo { max-width: 480px; } }
.brand-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.brand-rows a { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .18s var(--ease); }
.brand-rows a:hover { border-color: var(--accent); }
.brand-rows b { font: 500 1.1875rem/1.2 var(--display); letter-spacing: -.015em; }
.brand-rows span { font-size: .875rem; color: var(--muted); }
@media (max-width: 960px) { .brand-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-lines { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-hero); padding: 8px clamp(20px, 3vw, 36px); }
.contact-lines .cta-line { padding-left: 0; border-color: var(--line); grid-template-columns: 112px minmax(0, 1fr); }
.contact-lines .cta-line small { color: var(--muted); opacity: 1; }
.contact-lines .cta-line b { white-space: normal; overflow-wrap: anywhere; }
.contact-lines .cta-line.sm b { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.contact-aside h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.contact-aside p { margin-top: 12px; color: var(--muted); }
.contact-aside .arrow-link { margin-top: 24px; }
.contact-aside dl { margin: 32px 0 0; border-top: 1px solid var(--line); }
.contact-aside dl div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-aside dt { font-size: .875rem; color: var(--muted); }
.contact-aside dd { margin: 4px 0 0; font-weight: 500; }
.contact-aside dd a { color: var(--accent-ink); text-decoration: none; }
.contact-aside dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-lines .cta-line { grid-template-columns: 1fr; gap: 6px; } }

/* Tighter rhythm right after an inner-page hero */
.page-hero + .section { padding-top: clamp(40px, 5vw, 64px); }
/* Keep low-resolution photos near their real size */
.page-hero .story-photo { justify-self: end; width: 100%; max-width: 440px; }
@media (max-width: 900px) { .page-hero .story-photo { justify-self: start; } }

/* Smooth scrolling for same-page links; instant for people who turn motion off */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Land anchored sections below the sticky header instead of underneath it */
[id] { scroll-margin-top: 96px; }
@media (max-width: 1000px) { [id] { scroll-margin-top: 124px; } }

/* About: main photo caption and award section */
.story-photo figcaption { margin-top: 14px; font-size: .875rem; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.story-photo figcaption::before { content: ""; width: 24px; height: 1px; background: var(--accent); flex: none; }
.page-hero .story-photo { max-width: 500px; }
.award { background: var(--band); border-top: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.award-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.award-photo { margin: 0; }
.award-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; border-radius: var(--r-hero); box-shadow: 0 24px 48px -28px rgba(24, 32, 38, .45); }
.award-photo figcaption { margin-top: 14px; font-size: .875rem; color: var(--ink-2); opacity: .75; }
.award-copy h2 { margin-top: 20px; }
.award-copy .lede { margin-top: 18px; color: var(--ink-2); opacity: .85; }
.award-facts { margin: 32px 0 0; border-top: 1px solid var(--band-line); }
.award-facts div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--band-line); }
.award-facts dt { font-size: .875rem; color: var(--ink-2); opacity: .7; }
.award-facts dd { margin: 0; font-weight: 500; }
.award-note { margin-top: 24px; color: var(--ink-2); opacity: .85; }
.award-copy .arrow-link { margin-top: 24px; }
@media (max-width: 900px) { .award-grid { grid-template-columns: 1fr; } .award-photo { max-width: 480px; } }
@media (max-width: 480px) { .award-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Home hero photo: favor the range and backsplash side of the frame */
.hero-frame img { object-position: 72% 50%; }


/* =====================================================================
   Warm craft refinements
   ===================================================================== */

/* Buttons and header CTA: forest with linen text */
.btn { color: var(--btn-ink); }
.logo-mark { color: var(--btn-ink); font-family: var(--display); font-weight: 500; }
.logo-text b { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }

/* Brass accents: eyebrow rules, active nav, link hover */
.nav a[aria-current="page"]::after { background: var(--accent); }
.nav a:hover { color: var(--ink); }
.arrow-link:hover { color: var(--accent-ink); border-color: var(--accent); }
.kicker { color: var(--accent-ink); letter-spacing: .01em; }
.kicker::before { background: var(--accent); }
h1 { font-weight: 500; letter-spacing: -.025em; }

/* Trust strip: stone hairlines top and bottom, serif values, brass labels */
.spec-wrap { background: var(--bg); }
.spec { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: clamp(24px, 3vw, 36px); padding-bottom: clamp(24px, 3vw, 36px); margin-bottom: clamp(32px, 4vw, 56px); }
.spec dt { color: var(--accent-ink); font-size: .8125rem; font-weight: 500; letter-spacing: .01em; }
.spec dd { font-family: var(--display); font-weight: 500; font-size: 1.5rem; letter-spacing: -.015em; }
@media (max-width: 900px) { .spec dd { font-size: 1.25rem; } }

/* Service cards: bordered, warm hover lift; turnkey card in sandstone with a brass top rule */
.specialties { gap: clamp(16px, 2vw, 24px); }
.specialty, .specialty:first-child {
  padding: clamp(28px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.specialty:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60, 45, 25, .04), 0 18px 36px -22px rgba(60, 45, 25, .28); }
.specialty.feature { background: var(--band); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: clamp(28px, 3vw, 40px); margin: 0; }
.specialty.feature ul, .specialty.feature li { border-color: var(--line); }
.specialty .icon { color: var(--accent); }
.trades li { border-color: var(--line) !important; background: var(--surface); }
@media (max-width: 900px) {
  .specialty, .specialty:first-child { padding: 28px 24px; border-bottom: 1px solid var(--line); }
  .specialty.feature { padding: 28px 24px; margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .specialty:hover { transform: none; } }

/* Featured work (home): framed pairs and crisp pill badges */
.work { background: var(--bg); border-color: var(--line); }
.pair-frame { padding: 8px; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-hero); }
.pair-frame figure { border-radius: 6px; overflow: hidden; }
.pair-frame figure:first-child img { filter: saturate(.75) sepia(.06); }
.tag { border-radius: 999px; padding: 6px 12px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; backdrop-filter: blur(4px); }
.pair-frame figure:first-child .tag { background: rgba(31, 36, 33, .72); color: #f9f7f2; }
.pair-frame figure:last-child .tag { background: var(--badge); color: #fffdf9; }

/* Before & After page: framed cards, pill toggle */
.ba-frame { border: 8px solid var(--surface); outline: 1px solid var(--line); border-radius: var(--r-hero); background: var(--band); }
.toggle { border-radius: 999px; padding: 4px; background: rgba(31, 36, 33, .55); backdrop-filter: blur(6px); box-shadow: none; }
.toggle button { border-radius: 999px; color: rgba(249, 247, 242, .85); font-weight: 600; }
.toggle button[aria-pressed="true"] { background: var(--badge); color: #fffdf9; }
.toggle button[data-v="before"][aria-pressed="true"] { background: rgba(249, 247, 242, .95); color: var(--ink); }

/* Gallery filters and tiles */
.filters { background: var(--surface); border-color: var(--line); }
.tile { background: var(--band); }

/* Approach: realistic iPad bezel on a faint architectural grid */
.device { position: relative; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-hero);
  background-color: var(--surface);
  background-image:
    linear-gradient(to right, rgba(184, 115, 51, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 115, 51, .09) 1px, transparent 1px);
  background-size: 28px 28px; background-position: -1px -1px; }
.ipad {
  background: linear-gradient(145deg, #3a3f43 0%, #1d2124 45%, #2b3034 100%);
  border-radius: 30px; padding: clamp(10px, 1.3vw, 16px);
  box-shadow:
    0 0 0 1px #9c9a94,                     /* brushed metal edge */
    0 0 0 2.5px #d9d6cf,
    inset 0 1px 0 rgba(255,255,255,.12),
    0 2px 4px rgba(40, 30, 20, .12),
    0 30px 60px -30px rgba(40, 30, 20, .55);
}
.ipad::before { background: #4a5054; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.ipad .screen { border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.device figcaption { padding-left: 2px; }
.step::before { border-color: var(--line); }
.step.key::before { background: var(--btn); color: var(--btn-ink); }

/* Warm bands */
.cta, .award { background: var(--band); border-color: var(--line); }
.cta-line { border-color: var(--line); }
.cta-copy { border-color: var(--line); }
.care-list li { background: var(--band); border: 1px solid var(--line); }
.step-note { background: var(--band); color: var(--accent-ink); }
.contact-lines { background: var(--surface); }


/* =====================================================================
   Dark mode: warm charcoal, walnut, and brass.
   Follows the device setting unless the visitor picks one with the toggle.
   ===================================================================== */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #151916; --surface: #1c211e; --band: #222823; --band-line: #333a35; --line: #333a35;
    --ink: #eee9df; --ink-2: #d9d3c7; --muted: #aaa79e; --line-strong: #eee9df;
    --accent: #cf9259; --accent-ink: #dca772;
    --btn: #2f5a4e; --btn-hover: #376a5c; --btn-ink: #f6f2ea; --hero-bg: #151916;
  }
}
:root[data-theme="dark"] {
  --bg: #151916; --surface: #1c211e; --band: #222823; --band-line: #333a35; --line: #333a35;
  --ink: #eee9df; --ink-2: #d9d3c7; --muted: #aaa79e; --line-strong: #eee9df;
  --accent: #cf9259; --accent-ink: #dca772;
  --btn: #2f5a4e; --btn-hover: #376a5c; --btn-ink: #f6f2ea; --hero-bg: #151916;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* Dark-mode touch-ups that tokens alone don't cover */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ipad .screen { background: #f4f1ea; }
  :root:not([data-theme="light"]) .specialty:hover { box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .7); }
  :root:not([data-theme="light"]) .hero-frame,
  :root:not([data-theme="light"]) .award-photo img { box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8); }
  :root:not([data-theme="light"]) .device { background-image: linear-gradient(to right, rgba(207, 146, 89, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(207, 146, 89, .08) 1px, transparent 1px); }
}
:root[data-theme="dark"] .ipad .screen { background: #f4f1ea; }
:root[data-theme="dark"] .specialty:hover { box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .hero-frame,
:root[data-theme="dark"] .award-photo img { box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .device { background-image: linear-gradient(to right, rgba(207, 146, 89, .08) 1px, transparent 1px), linear-gradient(to bottom, rgba(207, 146, 89, .08) 1px, transparent 1px); }

/* Sun / moon toggle */
.theme-toggle {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  transition: border-color .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: transform .35s var(--ease), opacity .2s var(--ease); }
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.theme-toggle .i-moon { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
}
@media (prefers-reduced-motion: reduce) { .theme-toggle svg { transition: opacity .15s linear; } }
.head-row { gap: clamp(16px, 3vw, 40px); }
.head-actions { display: flex; align-items: center; gap: 10px; }


/* ---------- Mobile: sticky call bar appears only after the page's own call button scrolls away ---------- */
@media (max-width: 640px) {
  .callbar { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none;
    transition: transform .28s var(--ease), opacity .2s var(--ease); }
  .callbar.show { transform: none; opacity: 1; pointer-events: auto; }
}
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .callbar { transition: opacity .15s linear; transform: none; } }

/* ---------- Home hero on phones and small tablets: photo right under the headline, short intro ---------- */
.lede-short { display: none; }
@media (max-width: 900px) {
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy .kicker { order: 1; margin-top: clamp(28px, 6vw, 48px); }
  .hero-copy h1 { order: 2; }
  .hero-frame { order: 3; margin-top: 24px; }
  .hero-copy .lede { order: 4; }
  .hero-copy .hero-actions { order: 5; margin-top: 24px; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  .lede-full { display: none; }
  .lede-short { display: block; margin-top: 20px; }
  .hero h1 { font-size: clamp(2.125rem, 9vw, 2.625rem); }
}

/* =====================================================================
   Phone pass: tighter rhythm, calmer type, fewer competing links
   ===================================================================== */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .page-hero + .section { padding-top: 28px; }
  .page-hero-simple { padding-top: 32px; padding-bottom: 28px; }
  .page-hero-grid { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .page-hero h1 { font-size: clamp(2rem, 8.4vw, 2.5rem); margin-top: 16px; }
  .page-hero .lede { margin-top: 14px; }
  h2 { font-size: clamp(1.75rem, 7.4vw, 2.125rem); }
  .lede { font-size: 1.0625rem; line-height: 1.55; }
  .section-head { gap: 12px; padding-bottom: 20px; margin-bottom: 0; }
  .section-head .lede { margin-top: 0; }

  /* Home hero: one clear action */
  .hero-copy .hero-actions .arrow-link { display: none; }
  .hero-copy .hero-actions { margin-bottom: 0; }
  .hero-copy .kicker { margin-top: 24px; }
  .hero-frame { margin-top: 20px; }

  /* Trust strip: compact 2x2, service area gets its own line */
  .spec { gap: 18px 16px; padding-top: 22px; padding-bottom: 22px; margin-top: 28px; margin-bottom: 0; }
  .spec > div:nth-child(3) { grid-column: 1 / -1; order: 4; }
  .spec > div:nth-child(4) { order: 3; }
  .spec dt { font-size: .8125rem; }
  .spec dd { font-size: 1.1875rem; margin-top: 4px; }

  /* Cards and lists */
  .specialties { margin-top: 24px; gap: 14px; }
  .specialty, .specialty:first-child, .specialty.feature { padding: 24px 20px; }
  .specialty h3 { margin-top: 18px; }
  .specialty ul { margin-top: 18px; }
  .pairs { padding-top: 24px; gap: 28px; }
  .work-foot { padding-top: 24px; }

  /* Consultation banner */
  .cta-copy { padding: 44px 0 24px; }
  .cta-line { padding: 16px 0; }
  .cta-line b { font-size: 1.75rem; }
  .cta-line.sm b { font-size: 1.125rem; }

  /* Approach */
  .process { gap: 24px; }
  .step { padding-bottom: 28px; }
  .showcase-grid, .care, .story-grid, .award-grid, .contact-grid { gap: 28px; }
  .points li { padding: 14px 0; }
  .care-list li { padding: 22px 20px; }
  .device { padding: 16px; }

  /* About */
  .license { margin-top: 20px; padding-top: 18px; }
  .van { margin-top: 20px; }
  .story-copy > p:first-of-type { margin-top: 0; }
  .award-facts { margin-top: 22px; }
  .brand-rows a { padding: 16px; }

  /* Before & after page */
  .ba-grid { gap: 28px; }

  footer { padding-top: 28px; }
  .foot { gap: 16px; }
}
@media (max-width: 640px) {
  .section-head.with-link .arrow-link { display: none; }
  .specialty p { font-size: 1rem; }
  .specialty li { font-size: .9375rem; padding: 10px 0; }
  .pairs > li:nth-child(3) { display: none; }
  .pair-meta { margin-top: 14px; }
  .foot nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 24px; }
}
@media (max-width: 640px) {
  .page-hero .hero-actions .arrow-link { display: none; }
  .page-hero .hero-actions { margin-top: 24px; }
  .showcase .device { display: none; }
  .step p { font-size: 1rem; }
  .step-note { font-size: .8125rem; }
  .points span, .care-list p { font-size: .9375rem; }
}
@media (max-width: 640px) {
  .ba-frame { aspect-ratio: 1 / 1; }
}
/* Trade tags: keep their own padding (the phone list rule above must not apply to them) */
.specialty .trades li { padding: 7px 12px; font-size: .875rem; line-height: 1.2; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .specialty .trades { gap: 8px; } }

/* Brands grid: 12 makers in tidy rows */
.brand-rows { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .brand-rows { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .brand-rows { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 520px) {
  .brand-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .brand-rows a { padding: 14px; gap: 4px; }
  .brand-rows b { font-size: 1.0625rem; }
  .brand-rows span { font-size: .8125rem; }
}

/* =====================================================================
   Project galleries: index cards and project pages
   ===================================================================== */
.project-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.project-grid li[hidden] { display: none; }
.project-card { display: block; text-decoration: none; color: inherit; border-radius: var(--r-hero); }
.project-cover { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-hero); background: var(--band); border: 1px solid var(--line); }
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.project-card:hover .project-cover img { transform: scale(1.035); }
.project-meta { display: grid; gap: 4px; padding: 14px 2px 0; }
.project-cat { font-size: .8125rem; font-weight: 500; color: var(--accent-ink); }
.project-meta b { font-family: var(--display); font-weight: 500; font-size: 1.3125rem; letter-spacing: -.015em; line-height: 1.2; }
.project-count { font-size: .875rem; color: var(--muted); }
.badge-award { position: absolute; left: 12px; top: 12px; background: var(--badge); color: #fffdf9; font-size: .75rem; font-weight: 600; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; }
.project-filters { margin-top: 28px; flex-wrap: wrap; }
.work .project-grid { padding-top: clamp(28px, 3vw, 40px); }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-grid.featured > li:nth-child(3) { display: none; }
  .project-meta b { font-size: 1.1875rem; }
  .project-filters { display: flex; overflow-x: auto; flex-wrap: nowrap; max-width: 100%; scrollbar-width: none; }
  .project-filters::-webkit-scrollbar { display: none; }
}

/* Project page */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .9375rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.back-link .icon { width: 16px; height: 16px; transform: rotate(180deg); }
.back-link:hover { color: var(--accent-ink); }
.project-head .kicker { display: flex; }
.project-blurb { margin: 22px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); max-width: 44em; }
.project-blurb p { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); }
.project-award { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: .9375rem; color: var(--accent-ink); }
.project-award .icon { width: 18px; height: 18px; }
.project-award a { color: inherit; }
.project-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); }
.project-pager a { display: grid; gap: 4px; text-decoration: none; padding: 16px 0; }
.project-pager a:last-child { text-align: right; }
.project-pager small { font-size: .8125rem; color: var(--muted); }
.project-pager b { font-family: var(--display); font-weight: 500; font-size: 1.125rem; }
.project-pager a:hover b { color: var(--accent-ink); }
@media (max-width: 640px) {
  .project-blurb p { font-size: 1.0625rem; }
  .project-pager b { font-size: 1rem; }
}

/* Four service cards on wide screens */
@media (min-width: 1101px) { .specialties { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 901px) and (max-width: 1100px) { .specialties { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Projects index on phones: two compact columns (home "Recent projects" stays one column) */
@media (max-width: 640px) {
  #projects.project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  #projects .project-cover { aspect-ratio: 1 / 1; border-radius: var(--r); }
  #projects .project-meta { padding-top: 10px; gap: 2px; }
  #projects .project-meta b { font-size: 1rem; line-height: 1.25; }
  #projects .project-cat { font-size: .75rem; }
  #projects .project-count { font-size: .8125rem; }
  #projects .badge-award { left: 8px; top: 8px; padding: 4px 9px; font-size: .6875rem; }
}

/* SketchUp render on the iPad: show the whole wide drawing on a white screen */
.ipad .screen img.fit { width: 100%; height: 100%; object-fit: contain; padding: 4%; background: #fff; }
.ipad .screen:has(img.fit) { background: #fff; }
.device figcaption a { color: var(--accent-ink); }
.device figcaption { display: block; line-height: 1.5; }
.device figcaption::before { display: inline-block; vertical-align: middle; margin-right: 10px; }
.device figcaption a { white-space: nowrap; }

/* Approach hero: real photo of SketchUp on an iPad */
.device-photo { margin: 0; }
.device-photo img { width: 100%; border-radius: var(--r-hero); box-shadow: 0 1px 2px rgba(40, 30, 20, .08), 0 28px 56px -30px rgba(40, 30, 20, .5); }
.device-photo figcaption { margin-top: 16px; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.device-photo figcaption::before { content: ""; display: inline-block; vertical-align: middle; width: 24px; height: 1px; margin-right: 10px; background: var(--accent); }
.device-photo figcaption a { color: var(--accent-ink); white-space: nowrap; }

/* Logo: drawn in code so it follows light and dark mode */
.logo-slot { flex: none; }
.logo-svg { display: block; height: 58px; width: auto; color: var(--ink); overflow: visible; }
.logo-svg .logo-accent { stroke: var(--accent); }
@media (max-width: 1000px) { .logo-svg { height: 42px; } }
@media (max-width: 380px) { .logo-svg { height: 38px; } }
