:root {
  color: #ece9df;
  background: #090c0d;
  font-family: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-synthesis: none;
  font-optical-sizing: auto;
  --graphite: #090c0d;
  --bone: #ece9df;
  --muted: rgba(236, 233, 223, .64);
  --line: rgba(236, 233, 223, .18);
  --cyan: #61e8ff;
  --amber: #ffb12b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--graphite); }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--graphite); }
button, a { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

.command-bar {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 20px;
  right: 20px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 8px 12px;
  color: var(--bone);
  background: rgba(9, 12, 13, .76);
  border: 1px solid rgba(236, 233, 223, .16);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; font-size: 14px; font-weight: 660; letter-spacing: .11em; }
.brand svg { width: 32px; height: 32px; color: var(--cyan); }
.system-status, .contact-link { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.system-status { color: var(--muted); }
.system-status i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.contact-link { justify-self: end; min-height: 44px; display: inline-flex; align-items: center; gap: 12px; text-underline-offset: 5px; }

.sequence-scroll { height: 520vh; position: relative; }
.sequence-sticky { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; background: #101415; }
.sequence-canvas, .sequence-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sequence-poster { display: block; transition: opacity .2s; }
.sequence-poster.is-hidden { opacity: 0; }
.sequence-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,7,8,.88) 0%, rgba(4,7,8,.48) 31%, transparent 60%), linear-gradient(0deg, rgba(4,7,8,.68), transparent 38%); pointer-events: none; }

.sequence-topline { position: absolute; top: 104px; left: 32px; right: 32px; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: rgba(236,233,223,.72); font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }

.chapter-copy {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 6vw, 96px);
  bottom: clamp(104px, 13vh, 138px);
  width: min(720px, 53vw);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.4, 0, 1, 1);
}
.chapter-copy > * {
  opacity: 0;
  transform: translateY(20px);
  clip-path: inset(0 0 100% 0);
  transition:
    opacity .38s cubic-bezier(.2, .7, .2, 1),
    transform .68s cubic-bezier(.16, 1, .3, 1),
    clip-path .68s cubic-bezier(.16, 1, .3, 1);
  transition-delay: 0s;
}
.chapter-copy.is-visible {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .28s ease-out;
}
.chapter-copy.is-visible > * {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}
.chapter-copy.is-visible > .chapter-kicker { transition-delay: 0s; }
.chapter-copy.is-visible > :is(h1, h2) { transition-delay: .06s; }
.chapter-copy.is-visible > .chapter-body { transition-delay: .14s; }
.chapter-copy.is-entering-forward > * { transform: translateY(24px); }
.chapter-copy.is-entering-backward > * { transform: translateY(-20px); }
.chapter-copy.is-exiting-forward,
.chapter-copy.is-exiting-backward { opacity: 0; }
.chapter-copy.is-exiting-forward > *,
.chapter-copy.is-exiting-backward > * {
  opacity: 0;
  clip-path: inset(0 0 0 0);
  transition-duration: .2s;
  transition-delay: 0s;
}
.chapter-copy.is-exiting-forward > * { transform: translateY(-12px); }
.chapter-copy.is-exiting-backward > * { transform: translateY(12px); }
.chapter-kicker { margin: 0 0 22px; color: var(--cyan); font: 12px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.chapter-copy h1, .chapter-copy h2 { margin: 0; max-width: 720px; font-size: clamp(48px, 5.1vw, 82px); line-height: .99; font-weight: 470; letter-spacing: -.042em; text-wrap: balance; }
.chapter-copy h2 { max-width: 650px; font-size: clamp(44px, 4.35vw, 70px); line-height: 1.01; letter-spacing: -.038em; }
.chapter-body { max-width: 490px; margin: 30px 0 0; color: rgba(236,233,223,.78); font-size: 17px; line-height: 1.55; letter-spacing: -.012em; }

.chapter-rail { position: absolute; z-index: 3; right: 32px; top: 50%; transform: translateY(-42%); display: grid; width: 172px; }
.chapter-rail button { min-height: 48px; padding: 0; color: rgba(236,233,223,.42); background: transparent; border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; font: 12px/1.15 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .035em; text-transform: uppercase; transition: color .25s, padding-left .25s, border-color .25s; }
.chapter-rail button span { display: inline-block; width: 35px; }
.chapter-rail button[aria-current] { color: var(--bone); padding-left: 10px; border-color: var(--cyan); }
.chapter-rail button[aria-current] span { color: var(--cyan); }

.scroll-cue { position: absolute; right: 32px; bottom: 32px; display: flex; align-items: center; gap: 10px; color: var(--muted); font: 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.scroll-cue span { width: 36px; height: 1px; background: var(--cyan); transform-origin: left; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scaleX(.35); opacity: .45; } }

.accessible-chapters { display: none; }

.reduced-motion .sequence-scroll { height: auto; }
.reduced-motion .sequence-sticky { position: relative; min-height: 76svh; }
.reduced-motion .sequence-canvas { display: none; }
.reduced-motion .sequence-poster { display: block; opacity: 1; }
.reduced-motion .chapter-copy, .reduced-motion .chapter-rail, .reduced-motion .scroll-cue { display: none; }
.reduced-motion .accessible-chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); }
.reduced-motion .accessible-chapters article { min-height: 230px; padding: 28px; background: var(--graphite); }
.reduced-motion .accessible-chapters span { color: var(--cyan); font: 12px/1 ui-monospace, monospace; }
.reduced-motion .accessible-chapters h2 { margin: 64px 0 12px; font-size: 24px; }
.reduced-motion .accessible-chapters p { color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 760px) {
  .command-bar { top: 10px; left: 10px; right: 10px; grid-template-columns: 1fr auto; }
  .system-status { display: none; }
  .brand { font-size: 13px; }
  .brand svg { width: 28px; height: 28px; }
  .contact-link { font-size: 12px; }
  .sequence-scroll { height: 390vh; }
  .sequence-sticky { min-height: 100svh; }
  .sequence-shade { background: linear-gradient(0deg, rgba(4,7,8,.9) 0%, rgba(4,7,8,.35) 48%, rgba(4,7,8,.05) 75%); }
  .sequence-topline { top: 88px; left: 18px; right: 18px; }
  .sequence-topline span:first-child { display: none; }
  .frame-readout { margin-left: auto; }
  .chapter-copy { left: 18px; right: 18px; bottom: 96px; width: auto; }
  .chapter-copy h1, .chapter-copy h2 { font-size: clamp(40px, 11vw, 54px); line-height: 1.01; letter-spacing: -.038em; }
  .chapter-body { max-width: 390px; margin-top: 22px; font-size: 16px; line-height: 1.5; }
  .chapter-rail { display: none; }
  .scroll-cue { left: 18px; right: auto; bottom: 28px; }
  .reduced-motion .accessible-chapters { grid-template-columns: 1fr; }
}

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

/* Browns Plumbing Service extensions */
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border:1px solid currentColor;font-size:18px;font-weight:800;letter-spacing:-.05em;color:var(--cyan)}
.brand b{display:block;font-size:8px;font-weight:560;letter-spacing:.18em;color:var(--muted);margin-top:2px}
.intro-panel,.projects,.statement,.contact{padding:clamp(84px,10vw,150px) clamp(24px,6vw,96px);border-top:1px solid var(--line)}
.eyebrow{margin:0 0 32px;color:var(--cyan);font:12px/1.35 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.1em;text-transform:uppercase}
.intro-grid,.section-heading,.contact-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);gap:clamp(40px,8vw,140px);align-items:start}
.intro-grid h2,.section-heading h2,.contact h2,.statement h2{margin:0;font-size:clamp(40px,5.1vw,78px);line-height:1.02;font-weight:470;letter-spacing:-.045em;text-wrap:balance}
.intro-grid>p,.section-heading>p,.contact-grid p{margin:8px 0 0;color:var(--muted);font-size:17px;line-height:1.65;max-width:580px}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:clamp(64px,9vw,120px);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.service-grid article{min-height:250px;padding:28px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.service-grid span{color:var(--cyan);font:12px/1 ui-monospace,monospace}.service-grid h3{margin:76px 0 14px;font-size:22px;font-weight:520;letter-spacing:-.02em}.service-grid p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.section-heading{align-items:end;margin-bottom:54px}.section-heading>p{justify-self:end}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.project-card{margin:0}.project-card--wide{grid-column:span 2}.photo-slot{aspect-ratio:4/3;display:flex;align-items:flex-end;padding:24px;background:linear-gradient(135deg,#1b2123,#0d1011);border:1px solid var(--line);position:relative;overflow:hidden}.project-card--wide .photo-slot{aspect-ratio:2/1}.photo-slot::before{content:"PHOTO " attr(data-photo);position:absolute;top:20px;right:20px;color:rgba(236,233,223,.28);font:11px/1 ui-monospace,monospace;letter-spacing:.08em}.photo-slot span{font:12px/1 ui-monospace,monospace;text-transform:uppercase;color:var(--muted)}figcaption{display:flex;justify-content:space-between;gap:20px;padding:16px 2px 28px;font-size:13px}figcaption b{font-weight:520}figcaption span{color:var(--muted)}
.statement{min-height:70vh;display:flex;flex-direction:column;justify-content:center}.statement h2{max-width:1050px}
.contact{background:#0d1112}.contact-grid h2{max-width:720px}.cta{display:inline-flex;align-items:center;justify-content:space-between;gap:36px;margin-top:34px;padding:18px 22px;min-width:min(100%,430px);border:1px solid rgba(236,233,223,.35);text-decoration:none;text-transform:uppercase;font:12px/1 ui-monospace,monospace;letter-spacing:.05em;transition:background .25s,color .25s}.cta:hover{background:var(--bone);color:var(--graphite)}.contact-note{font-size:12px!important;font-family:ui-monospace,monospace!important;text-transform:uppercase;letter-spacing:.04em}
footer{display:flex;justify-content:space-between;gap:30px;padding:24px clamp(24px,6vw,96px);border-top:1px solid var(--line);color:var(--muted);font:11px/1.3 ui-monospace,monospace;text-transform:uppercase;letter-spacing:.06em}
@media(max-width:760px){.intro-grid,.section-heading,.contact-grid{grid-template-columns:1fr;gap:24px}.service-grid{grid-template-columns:1fr}.project-grid{grid-template-columns:1fr}.project-card--wide{grid-column:auto}.project-card--wide .photo-slot{aspect-ratio:4/3}.section-heading>p{justify-self:start}.statement{min-height:55vh}footer{flex-direction:column}}

/* Real Browns project photography */
.hero-media{position:absolute;inset:0;overflow:hidden;background:#070909}
.hero-layer{--hero-shift:0%;--hero-scale:1.06;position:absolute;inset:-3%;width:106%;height:106%;object-fit:cover;opacity:0;transform:translate3d(0,var(--hero-shift),0) scale(var(--hero-scale));filter:saturate(.88) contrast(1.04);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .15s linear;will-change:opacity,transform}
.hero-layer.is-active{opacity:1}
.photo-slot{padding:0;background:#111}
.photo-slot::before{display:none}
.photo-slot img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.16,1,.3,1),filter .5s ease;filter:saturate(.9)}
.project-card:hover .photo-slot img{transform:scale(1.025);filter:saturate(1)}
@media(max-width:760px){.hero-layer{object-position:center center}.hero-layer:nth-child(2){object-position:55% center}.hero-layer:nth-child(3){object-position:58% center}.hero-layer:nth-child(4){object-position:45% center}.hero-layer:nth-child(5){object-position:center 40%}}

/* Header business name + phone CTA */
.brand-text{
  white-space:nowrap;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",sans-serif;
  font-size:clamp(17px,1.45vw,23px);
  font-weight:720;
  letter-spacing:-.035em;
  text-transform:none;
}
.call-link{
  padding:0 14px;
  text-decoration:none;
  border:1px solid rgba(97,232,255,.34);
  background:rgba(97,232,255,.06);
  color:var(--bone);
}
.call-link:hover{background:var(--cyan);color:#071012;border-color:var(--cyan)}
.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
.contact-actions .cta{margin-top:0;min-width:0}
.cta-primary{background:var(--cyan);border-color:var(--cyan);color:#071012;font-weight:700}
.cta-primary:hover{background:var(--bone);border-color:var(--bone)}
.mobile-call{display:none}

@media(max-width:760px){
  .command-bar{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:8px 10px}
  .brand-text{font-size:16px;letter-spacing:-.035em;max-width:calc(100vw - 160px);overflow:hidden;text-overflow:ellipsis}
  .call-link{font-size:0;padding:0 12px;min-height:42px;text-decoration:none}
  .call-link::before{content:"CALL NOW";font-size:11px;font-weight:750;letter-spacing:.04em}
  .call-link span{display:none}
  .mobile-call{
    display:flex;position:fixed;z-index:30;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));
    min-height:58px;padding:10px 16px;align-items:center;justify-content:space-between;gap:16px;
    background:var(--cyan);color:#071012;text-decoration:none;border:1px solid rgba(255,255,255,.28);
    box-shadow:0 14px 36px rgba(0,0,0,.38);backdrop-filter:blur(14px)
  }
  .mobile-call span{font:10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
  .mobile-call strong{font-size:17px;letter-spacing:-.02em}
  footer{padding-bottom:96px}
}


/* Final Browns header + phone CTA overrides */
.brand.brand-text{
  display:inline-flex;
  align-items:center;
  width:max-content;
  white-space:nowrap;
  text-decoration:none;
  text-transform:none;
  font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue",sans-serif;
  font-size:clamp(20px,1.65vw,27px);
  line-height:1;
  font-weight:780;
  letter-spacing:-.05em;
}
.call-link{
  justify-self:end;
  min-height:46px;
  padding:0 17px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  color:#071012;
  background:var(--cyan);
  border:1px solid var(--cyan);
  text-decoration:none;
  border-radius:2px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  text-transform:uppercase;
}
.call-link strong{font-size:12px;line-height:1;letter-spacing:.035em}
.call-link .phone-symbol{font-size:16px;line-height:1}
.call-link:hover{background:var(--bone);border-color:var(--bone);color:#071012}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.hero-call,.hero-quote{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;text-decoration:none;text-transform:uppercase;font:700 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em}
.hero-call{background:var(--cyan);border:1px solid var(--cyan);color:#071012}
.hero-quote{border:1px solid rgba(236,233,223,.5);color:var(--bone);background:rgba(9,12,13,.28)}
.hero-call:hover,.hero-quote:hover{background:var(--bone);border-color:var(--bone);color:#071012}
.contact-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
.contact-actions .cta{margin-top:0;min-width:0}
.cta-primary{background:var(--cyan);border-color:var(--cyan);color:#071012;font-weight:750}
.mobile-call{display:none}
@media(max-width:760px){
  .command-bar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 9px}
  .brand.brand-text{font-size:15px;letter-spacing:-.045em;max-width:none;overflow:visible;text-overflow:clip}
  .call-link{min-height:42px;padding:0 11px}
  .call-link strong{font-size:0}
  .call-link strong::after{content:"CALL";font-size:11px;letter-spacing:.05em}
  .hero-actions{margin-top:22px}
  .hero-call,.hero-quote{min-height:44px;padding:0 14px;font-size:10px}
  .mobile-call{display:flex;position:fixed;z-index:50;left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));min-height:58px;padding:10px 16px;align-items:center;justify-content:space-between;gap:14px;background:var(--cyan);color:#071012;text-decoration:none;border:1px solid rgba(255,255,255,.35);box-shadow:0 14px 38px rgba(0,0,0,.48)}
  .mobile-call span{font:10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
  .mobile-call strong{font-size:16px;letter-spacing:-.02em}
  footer{padding-bottom:96px}
}


/* Transparent Browns logo header */
.brand.brand-logo{
  display:flex;
  align-items:center;
  width:auto;
  min-width:0;
  text-decoration:none;
}
.brand.brand-logo img{
  display:block;
  width:clamp(190px,17vw,290px);
  height:52px;
  object-fit:contain;
  object-position:left center;
  background:transparent;
}
@media(max-width:760px){
  .brand.brand-logo img{
    width:175px;
    height:42px;
  }
}
@media(max-width:430px){
  .brand.brand-logo img{
    width:150px;
    height:38px;
  }
}
