/* Automation pages use the portfolio's shared tokens, reset and base theme. */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5%;
  border-bottom: 1px solid var(--bd2);
  background: rgba(5, 13, 26, .88);
  backdrop-filter: blur(12px);
}
.wordmark { color: var(--w); font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.wordmark span { color: var(--accent); }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { padding: 8px 14px; border-radius: var(--radius-btn); color: var(--w3); font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: color var(--transition-fast), background var(--transition-fast); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }
.site-header nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.site-header nav .nav-cta { margin-left: 10px; border-color: var(--bd); color: var(--accent); }
.site-header nav .nav-cta:hover { background: var(--adim); }

.wrap { width: 90%; max-width: var(--container-width); margin-inline: auto; }
.hero { min-height: 88vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); align-items: center; gap: 3rem; padding: 140px 0 80px; }
.hero h1 { max-width: 760px; margin: 0 0 1.15rem; color: var(--w); font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 74px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--accent); }
.eyebrow, .mini-label, .index, .tag { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow, .mini-label { color: var(--accent); }
.lead { max-width: 620px; margin: 0; color: var(--w2); font-size: 16px; font-weight: 300; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 2rem; }
.hero-actions .btn-primary, .hero-actions .btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; }
.hero-aside { position: relative; border: 1px solid var(--bd); padding: 26px; background: linear-gradient(145deg, rgba(15,32,64,.92), rgba(5,13,26,.96)); }
.hero-aside::before { content: ""; position: absolute; top: -1px; left: 20px; width: 46px; height: 1px; background: var(--accent); }
.flow { display: grid; gap: 0; margin: 18px 0 0; padding: 0; list-style: none; }
.flow li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--bd2); color: var(--w); font-size: 14px; font-weight: 500; line-height: 1.5; }
.flow b { color: var(--accent); font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.flow small { display: block; margin-top: 4px; color: var(--w3); font-size: 12px; font-weight: 300; }

.section { padding: var(--space-2xl) 0; border-top: 1px solid var(--bd2); }
.section-heading { max-width: 700px; margin-bottom: 2.5rem; }
.section-heading h2, .case-intro h2, .cta-band h2 { margin: .8rem 0 1rem; color: var(--w); font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 42px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.section-heading p, .case-intro p, .cta-band p { margin: 0; color: var(--w2); font-size: 15px; font-weight: 300; line-height: 1.8; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.card, .feature-card { min-width: 0; padding: 26px 22px; border: 0; border-radius: var(--radius-sm); background: var(--navy2); transition: background var(--transition-med); }
.card:hover, .feature-card:hover { background: var(--navy3); }
.card h3, .feature-card h3, .featured h3 { margin: 1rem 0 .65rem; color: var(--w); font-family: var(--font-display); font-size: 17px; font-weight: 700; line-height: 1.35; }
.card p, .feature-card p, .featured p { margin: 0; color: var(--w2); font-size: 13px; font-weight: 300; line-height: 1.75; }
.index { color: var(--w3); font-size: 10px; }
.services .card { border-top: 1px solid var(--accent2); }
.trade-list { display: flex; flex-wrap: wrap; gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.trade-list span { padding: 12px 16px; background: var(--navy2); color: var(--w2); font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.trade-list span:first-child { color: var(--accent); }
.process .card { position: relative; padding-top: 54px; }
.process .card::before { counter-increment: step; content: "0" counter(step) " / STEP"; position: absolute; top: 22px; left: 22px; color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; }
.process { counter-reset: step; }
.process .index { display: none; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.feature-card { background: var(--navy2); }
.featured { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 2rem; border: 1px solid var(--bd); padding: clamp(26px, 5vw, 44px); background: var(--navy2); }
.featured .tag { display: inline-block; color: var(--accent); font-size: 10px; }
.featured h3 { margin-top: 1rem; font-size: clamp(22px, 3vw, 30px); }
.featured .muted { margin-bottom: 1.5rem; }
.disclosure { border: 1px solid var(--bd2); padding: 14px 16px; color: var(--w2); font-size: 13px; font-weight: 300; line-height: 1.75; }
.disclosure strong { color: var(--w); font-weight: 500; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--bd); padding: clamp(24px, 5vw, 40px); background: var(--navy2); }
.cta-band h2 { margin: .7rem 0 .6rem; font-size: clamp(25px, 3.5vw, 38px); }
.cta-band p { max-width: 620px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 24px 5%; border-top: 1px solid var(--bd2); background: var(--navy); color: var(--w3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; }
.site-footer p { margin: 0; }
.site-footer > a:last-child { color: var(--w3); text-decoration: none; text-transform: uppercase; }
.site-footer > a:last-child:hover { color: var(--accent); }

.text-link { display: inline-block; margin-top: 1rem; color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.text-link:hover { color: var(--w); }
.text-link:focus-visible, .breadcrumbs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.service-page { padding-top: 100px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 32px; color: var(--w3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.breadcrumbs a { color: var(--w3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--accent); }
.service-hero { max-width: 920px; padding: 36px 0 70px; }
.service-hero h1 { max-width: 800px; margin: .8rem 0 1.15rem; color: var(--w); font-family: var(--font-display); font-size: clamp(38px, 5.4vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.service-hero .lead { max-width: 760px; }
.service-location { margin: 22px 0 0; color: var(--w3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .035em; line-height: 1.7; }
.service-answer { max-width: 900px; margin-bottom: 72px; border: 1px solid var(--bd); border-left: 2px solid var(--accent); padding: clamp(22px, 4vw, 34px); background: var(--navy2); }
.service-answer h2, .service-related h2 { margin: .7rem 0 .8rem; color: var(--w); font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); line-height: 1.2; }
.service-answer p, .service-related p { max-width: 760px; margin: 0; color: var(--w2); font-size: 14px; font-weight: 300; line-height: 1.8; }
.service-section { padding: 54px 0; border-top: 1px solid var(--bd2); }
.service-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.service-steps article { min-width: 0; padding: 24px; background: var(--navy2); }
.service-steps h3 { margin: .9rem 0 .55rem; color: var(--w); font-family: var(--font-display); font-size: 16px; }
.service-steps p, .service-decisions li, .service-limit { color: var(--w2); font-size: 13px; font-weight: 300; line-height: 1.8; }
.service-steps p { margin: 0; }
.service-decisions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; margin: 0; padding: 0; border-top: 1px solid var(--bd2); list-style: none; }
.service-decisions li { position: relative; margin: 0; border-bottom: 1px solid var(--bd2); padding: 16px 0 16px 24px; }
.service-decisions li::before { position: absolute; left: 0; color: var(--accent); content: "→"; }
.service-limit { max-width: 860px; margin: 24px 0 0; color: var(--w3); }
.service-faq details { border-top: 1px solid var(--bd2); }
.service-faq details:last-child { border-bottom: 1px solid var(--bd2); }
.service-faq summary { padding: 18px 36px 18px 0; color: var(--w); font-family: var(--font-display); font-size: 15px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.service-faq summary::marker { color: var(--accent); }
.service-faq details p { max-width: 820px; margin: 0; padding: 0 0 20px; color: var(--w2); font-size: 13px; font-weight: 300; line-height: 1.8; }
.service-related { margin: 20px 0 70px; border: 1px solid var(--bd); padding: clamp(22px, 4vw, 34px); background: var(--navy2); }
.service-cta { margin-bottom: 54px; }

.case-hero { min-height: 76vh; padding-bottom: 60px; }
.case-layout { width: 90%; max-width: var(--cs-container-width); margin-inline: auto; }
.case-intro { max-width: var(--cs-body-width); padding: 50px 0 30px; border-top: 1px solid var(--bd2); }
.scenario-note { margin: 12px 0 0; color: var(--w3); font-family: var(--font-mono); font-size: 10px; letter-spacing: .035em; line-height: 1.7; }
.plumber-demo { display: grid; grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr); gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.demo-panel { min-width: 0; padding: clamp(20px, 3vw, 30px); background: var(--navy2); }
.demo-panel h3 { margin: 12px 0 7px; color: var(--w); font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.demo-panel > .muted { margin: 0 0 18px; color: var(--w3); font-size: 13px; line-height: 1.7; }
.scenario-choices { display: grid; gap: 0; border-top: 1px solid var(--bd2); }
.scenario-choice { width: 100%; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--bd2); border-left: 2px solid transparent; background: transparent; color: var(--w); text-align: left; cursor: pointer; font: 500 14px/1.4 var(--font-body); transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast); }
.scenario-choice span { display: block; margin-top: 4px; color: var(--w3); font-size: 11px; font-weight: 300; }
.scenario-choice:hover, .scenario-choice[aria-pressed="true"] { border-left-color: var(--accent); background: var(--adim); color: var(--accent); }
.scenario-choice:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-explainer { margin-top: 20px; border-left: 1px solid var(--accent2); padding: 0 0 0 14px; color: var(--w2); font-size: 12px; line-height: 1.75; }
.demo-explainer strong { color: var(--w); font-weight: 600; }
.demo-explainer p { margin: 5px 0 0; }
.notification-preview { min-height: 285px; border: 1px solid var(--bd); border-top: 1px solid var(--accent2); padding: clamp(18px, 3vw, 25px); background: linear-gradient(145deg, rgba(15,32,64,.74), rgba(5,13,26,.92)); }
.preview-tag { color: var(--accent); font-family: var(--font-mono); font-size: 10px; letter-spacing: .11em; }
.notification-preview h4 { margin: 10px 0 20px; color: var(--w); font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; line-height: 1.3; }
.preview-details { display: grid; grid-template-columns: minmax(82px, .3fr) minmax(0, 1fr); gap: 9px 14px; margin: 0; font-size: 12px; line-height: 1.55; }
.preview-details dt { color: var(--w3); }
.preview-details dd { margin: 0; color: var(--w); overflow-wrap: anywhere; }
.preview-next { margin: 17px 0 0; border-top: 1px solid var(--bd2); padding-top: 14px; color: var(--w2); font-size: 12px; line-height: 1.75; }
.preview-next strong { color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.demo-footnote { margin-top: 16px; }
.steps-list { display: grid; gap: 0; margin: 0; padding: 0; border-top: 1px solid var(--bd2); list-style: none; counter-reset: journey; }
.steps-list li { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--bd2); counter-increment: journey; }
.steps-list li::before { content: "0" counter(journey); padding-top: 3px; color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.steps-list strong { display: block; color: var(--w); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.steps-list span { display: block; margin-top: 4px; color: var(--w2); font-size: 13px; font-weight: 300; }
.details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.details-grid .card { background: var(--navy2); }
.details-grid .card h3 { font-size: 16px; }
.details-grid .card p { font-size: 13px; }
.evidence-heading { margin: 42px 0 22px; }
.evidence-heading h2 { font-size: clamp(23px, 3vw, 34px); }
.evidence-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.evidence-shot { min-width: 0; margin: 0; background: var(--navy2); }
.evidence-image-link { position: relative; display: grid; min-height: 280px; place-items: center; overflow: hidden; border-bottom: 1px solid var(--bd2); padding: 14px; background: #020810; }
.evidence-image-link img { display: block; width: auto; height: auto; max-width: 100%; max-height: 390px; object-fit: contain; }
.evidence-image-link::after { position: absolute; right: 12px; bottom: 12px; border: 1px solid var(--bd); padding: 6px 9px; background: rgba(2,8,16,.9); color: var(--accent); content: "OPEN FULL SIZE ↗"; font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; opacity: 0; transition: opacity var(--transition-fast); }
.evidence-image-link:hover::after, .evidence-image-link:focus-visible::after { opacity: 1; }
.evidence-image-link:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.evidence-shot figcaption { display: grid; gap: 7px; padding: 18px 20px 20px; }
.evidence-shot figcaption strong { color: var(--w); font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.evidence-shot figcaption > span:last-child { color: var(--w2); font-size: 12px; font-weight: 300; line-height: 1.7; }
.case-layout > .section { padding-block: 64px; }
.case-layout .disclosure { border: 1px solid var(--bd); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--navy2); color: var(--w2); }
.case-layout .disclosure strong { color: var(--w); }
.case-cta { margin-block: 18px 76px; }
.featured + .featured { margin-top: 18px; }
.leadops-hero { min-height: 74vh; }
.leadops-layout > .section { padding-block: 62px; }
.leadops-boundaries { margin-top: 28px; }
.leadops-visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--bd2); background: var(--bd2); }
.leadops-figure { min-width: 0; margin: 0; border: 1px solid var(--bd2); background: var(--navy2); }
.leadops-figure a { display: grid; min-height: 220px; place-items: center; overflow: hidden; padding: 12px; background: #020810; }
.leadops-figure a:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.leadops-figure img { display: block; width: 100%; height: auto; object-fit: contain; }
.leadops-figure figcaption { display: grid; gap: 7px; padding: 16px 18px 18px; color: var(--w2); font-size: 12px; font-weight: 300; line-height: 1.7; }
.leadops-evidence { max-width: 1040px; }
.leadops-evidence a { min-height: 0; }
.leadops-evidence img { max-width: 100%; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-aside { max-width: 680px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured { grid-template-columns: 1fr; }
  .service-steps { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 8px; min-height: 86px; padding: 12px 5%; }
  .site-header nav { width: 100%; display: grid; grid-template-columns: max-content max-content; justify-content: start; gap: 2px 4px; }
  .site-header nav a { padding: 7px 9px; font-size: 9px; }
  .site-header nav .nav-cta { grid-column: 1 / -1; justify-self: start; margin: 3px 0 0; }
  .wrap, .case-layout { width: 90%; }
  .hero { min-height: auto; padding: 138px 0 62px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.1; letter-spacing: -.02em; }
  .leadops-hero h1 { font-size: clamp(32px, 8.6vw, 40px); }
  .hero-aside { padding: 21px; }
  .section { padding-block: 64px; }
  .grid, .benefit-grid, .details-grid, .evidence-gallery { grid-template-columns: 1fr; }
  .trade-list span { padding: 11px 12px; font-size: 10px; }
  .featured { gap: 22px; padding: 23px; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 24px 5%; }
  .case-hero { padding-bottom: 46px; }
  .case-intro { padding-top: 36px; }
  .plumber-demo { grid-template-columns: 1fr; }
  .leadops-visual-grid { grid-template-columns: 1fr; }
  .service-page { padding-top: 128px; }
  .service-hero { padding: 22px 0 52px; }
  .service-decisions { grid-template-columns: 1fr; }
  .notification-preview { min-height: 0; }
  .steps-list li { grid-template-columns: 38px 1fr; gap: 10px; }
  .case-cta { margin-block: 10px 52px; }
}

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