/* ===========================================================
   Vital Signs Midlands — design tokens
   Ink   #211E1F   Orange #F27022   Paper #FFFFFF
   Steel #6B6866   Hairline(dark) #3A3536  Hairline(light) #E4E1DD
=========================================================== */

:root{
  --ink:      #211E1F;
  --ink-soft: #322D2E;
  --orange:   #F27022;
  --orange-dim: #C9591A;
  --paper:    #FFFFFF;
  --steel:    #6B6866;
  --line-dark:  #3A3536;
  --line-light: #E4E1DD;

  --display: 'Space Grotesk', sans-serif;
  --body:    'Inter', sans-serif;

  --max: 1180px;
  --pad: clamp(24px, 6vw, 72px);
}

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

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
h1,h2,h3{ font-family:var(--display); margin:0; }
p{ margin:0; }
ol,ul{ list-style:none; margin:0; padding:0; }
img{ max-width:100%; display:block; }
svg{ fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

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

/* ---------- readout ticker ---------- */
.readout{
  background:var(--ink);
  color:var(--orange);
  overflow:hidden;
  white-space:nowrap;
  border-bottom:1px solid var(--line-dark);
}
.readout__track{
  display:inline-flex;
  width:max-content;
  align-items:center;
  gap:14px;
  padding:7px 0;
  font-family:var(--display);
  font-size:11px;
  font-weight:600;
  letter-spacing:.22em;
  animation:ticker 70s linear infinite;
}
.readout .dot{ width:4px; height:4px; border-radius:50%; background:var(--orange); opacity:.6; flex:none; }
@keyframes ticker{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  padding:16px var(--pad);
  background:rgba(33,30,31,.92);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--line-dark);
}
.nav__brand{
  display:flex; align-items:center; gap:10px;
  font-family:var(--display); color:var(--paper);
  font-size:15px; letter-spacing:.03em;
}
.nav__brand img{ border-radius:50%; }
.nav__brand em{ font-style:normal; color:var(--orange); }
.nav__links{ display:flex; align-items:center; gap:28px; }
.nav__links > a{
  color:var(--paper); opacity:.75; font-size:14px; font-weight:500;
  transition:opacity .2s;
}
.nav__links > a:hover{ opacity:1; }
.nav__cta{
  opacity:1 !important;
  border:1px solid var(--orange);
  color:var(--orange) !important;
  padding:8px 16px; border-radius:2px;
  transition:background .2s, color .2s;
}
.nav__cta:hover{ background:var(--orange); color:var(--ink) !important; }

/* services dropdown */
.nav__item{ position:relative; }
.nav__link{
  display:flex; align-items:center; gap:5px;
  color:var(--paper); opacity:.75; font-size:14px; font-weight:500;
  transition:opacity .2s; cursor:pointer;
}
.nav__item:hover .nav__link,
.nav__item:focus-within .nav__link{ opacity:1; }
.nav__chevron{ width:13px; height:13px; transition:transform .2s; }
.nav__item:hover .nav__chevron,
.nav__item:focus-within .nav__chevron{ transform:rotate(180deg); }

.nav__dropdown{
  position:absolute; top:100%; left:50%; transform:translate(-50%,4px);
  min-width:200px; margin-top:14px; padding:8px;
  background:var(--ink-soft); border:1px solid var(--line-dark); border-radius:4px;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown{
  opacity:1; visibility:visible; pointer-events:auto; transform:translate(-50%,0);
}
.nav__dropdown li a{
  display:block; padding:10px 14px; border-radius:3px;
  color:var(--paper); opacity:.8; font-size:13.5px; white-space:nowrap;
  transition:background .15s, opacity .15s;
}
.nav__dropdown li a:hover{ background:rgba(242,112,34,.12); opacity:1; color:var(--orange); }

@media (max-width:720px){
  .nav__links > a:not(.nav__cta),
  .nav__item{ display:none; }
}

/* ---------- hero ---------- */
.hero{
  background:var(--ink);
  color:var(--paper);
  min-height:88vh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center;
  padding:64px var(--pad) 48px;
  position:relative;
  gap:28px;
}
.hero__mark{
  animation:rise .7s ease both;
}
.hero__logo{ width:clamp(140px,18vw,210px); height:auto; border-radius:50%; }

.hero__tagline{
  font-size:clamp(34px, 5.6vw, 64px);
  line-height:1.08;
  font-weight:600;
  letter-spacing:-.01em;
  animation:rise .7s ease .1s both;
}
.pulse-word{ position:relative; color:var(--orange); display:inline-block; }
.pulse-underline{
  position:absolute; left:0; bottom:-6px; width:100%; height:14px;
  overflow:visible;
}
.pulse-underline polyline{
  stroke:var(--orange); stroke-width:3;
  stroke-dasharray:700; stroke-dashoffset:700;
  animation:draw 1.4s .9s ease-out forwards;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }

.hero__sub{
  max-width:520px; color:#C9C5C3; font-size:17px; line-height:1.6;
  animation:rise .7s ease .18s both;
}
.hero__actions{
  display:flex; flex-wrap:wrap; gap:14px; justify-content:center;
  animation:rise .7s ease .26s both;
}
.hero__url{
  font-family:var(--display); font-size:13px; letter-spacing:.08em;
  color:var(--steel); text-transform:uppercase;
  animation:rise .7s ease .32s both;
}
.hero__url:hover{ color:var(--orange); }

@keyframes rise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:translateY(0); } }

.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  width:34px; height:34px; border:1px solid var(--line-dark); border-radius:50%;
  display:flex; align-items:center; justify-content:center; color:var(--steel);
  animation:bob 2.2s ease-in-out infinite;
}
.scroll-cue svg{ width:16px; height:16px; }
@keyframes bob{ 0%,100%{ transform:translate(-50%,0); } 50%{ transform:translate(-50%,6px); } }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 22px; font-weight:600; font-size:15px;
  border-radius:2px; border:1px solid transparent;
  transition:transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn:hover{ transform:translateY(-2px); }
.btn .icon{ width:17px; height:17px; fill:currentColor; stroke:none; }
.btn--solid{ background:var(--orange); color:var(--ink); }
.btn--solid:hover{ background:#ff7e30; }
.btn--outline{ border-color:#55504F; color:var(--paper); }
.btn--outline:hover{ border-color:var(--paper); }
.btn--small{ padding:10px 18px; font-size:14px; }

/* ---------- section shell ---------- */
.section-head{ max-width:640px; margin:0 auto 52px; padding:0 var(--pad); text-align:center; }
.eyebrow{
  display:block; font-family:var(--display); font-size:12px; font-weight:600;
  letter-spacing:.2em; text-transform:uppercase; color:var(--orange); margin-bottom:12px;
}
.eyebrow--dark{ color:var(--ink); }
.section-head h2{ font-size:clamp(26px,3.4vw,38px); line-height:1.2; }
.section-head--light h2, .section-head--light .eyebrow{ color:var(--paper); }
.section-head--light .eyebrow{ color:var(--orange); }

/* ---------- services ---------- */
.services{ padding:96px var(--pad) 88px; max-width:var(--max); margin:0 auto; }
.services__list{
  display:flex; flex-direction:column; gap:1px;
  background:var(--line-light); border:1px solid var(--line-light); border-radius:2px;
  overflow:hidden;
}

.service-panel{
  display:flex; gap:32px; align-items:flex-start;
  background:var(--paper); padding:44px 40px; scroll-margin-top:90px;
}
.service-panel__icon{
  flex:none; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:#FBEEE5; color:var(--orange);
}
.service-panel__icon svg{ width:28px; height:28px; }
.service-panel__body h3{ font-size:22px; margin-bottom:10px; }
.service-panel__body > p{ color:var(--steel); font-size:15.5px; line-height:1.6; max-width:56ch; }

/* process strip inside Commercial Signage panel */
.process{
  display:flex; align-items:center; gap:6px; margin-top:28px; flex-wrap:wrap;
}
.process__step{
  display:flex; align-items:center; gap:10px;
  color:var(--ink); font-family:var(--display); font-size:14px; font-weight:600; letter-spacing:.03em;
}
.process__step svg{ width:24px; height:24px; color:var(--orange); flex:none; }
.process__connector{ width:34px; height:12px; color:var(--line-light); flex:none; }
.process__connector svg{ width:100%; height:100%; stroke-width:2; }

@media (max-width:640px){
  .service-panel{ flex-direction:column; padding:34px 26px; gap:20px; }
  .process{ gap:10px; }
  .process__connector{ width:22px; }
}

/* ---------- pulse divider ---------- */
.pulse-divider{ background:var(--paper); line-height:0; }
.pulse-divider svg{ width:100%; height:32px; stroke:var(--ink); stroke-width:2; }

/* ---------- portfolio ---------- */
.portfolio{ padding:96px var(--pad) 100px; max-width:var(--max); margin:0 auto; }

.portfolio__grid{
  display:grid; grid-template-columns:repeat(5,1fr); gap:12px;
}
.portfolio__grid a{
  position:relative; display:block; aspect-ratio:1/1; overflow:hidden;
  background:var(--line-light); border-radius:2px;
}
.portfolio__grid img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .5s ease, filter .5s ease;
}
.portfolio__grid a:hover img{ transform:scale(1.06); }
.portfolio__grid a::after{
  content:''; position:absolute; inset:0;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
}

.portfolio__carousel-wrap{ margin-top:14px; }
.portfolio__carousel{
  display:flex; gap:12px; overflow-x:auto; padding-bottom:10px;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin; scrollbar-color:var(--line-light) transparent;
}
.portfolio__carousel a{
  flex:0 0 auto; width:min(66vw,320px); aspect-ratio:4/3;
  scroll-snap-align:start; overflow:hidden; border-radius:2px; background:var(--line-light);
}
.portfolio__carousel img{ width:100%; height:100%; object-fit:cover; }

.portfolio__empty{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:16px;
  padding:52px var(--pad); border:1px dashed var(--line-light); border-radius:2px; color:var(--steel);
}
.portfolio__empty svg{ width:44px; height:44px; color:var(--orange); }
.portfolio__empty p{ font-size:15px; line-height:1.6; max-width:34ch; }

@media (max-width:960px){ .portfolio__grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:600px){ .portfolio__grid{ grid-template-columns:repeat(2,1fr); } }

/* ---------- contact ---------- */
.contact{ background:var(--orange); color:var(--ink); padding:96px var(--pad); }
.contact__inner{ max-width:var(--max); margin:0 auto; text-align:center; }
.contact h2{ font-size:clamp(28px,4vw,44px); margin:14px 0 16px; }
.contact p{ max-width:44ch; margin:0 auto; color:#4A2A10; font-size:16px; line-height:1.6; }

.contact__grid{
  margin-top:48px; display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:rgba(33,30,31,.18); border:1px solid rgba(33,30,31,.18); max-width:820px; margin-inline:auto;
}
.contact__item{
  background:var(--orange); padding:26px 18px; display:flex; align-items:center; gap:12px; justify-content:center;
  transition:background .2s;
}
.contact__item:hover{ background:#e2661c; }
.contact__item .icon{ width:20px; height:20px; flex:none; }
.contact__item div{ display:flex; flex-direction:column; text-align:left; font-size:14px; }
.contact__label{ font-family:var(--display); font-size:11px; letter-spacing:.14em; text-transform:uppercase; opacity:.7; }

@media (max-width:680px){ .contact__grid{ grid-template-columns:1fr; } }

/* ---------- footer ---------- */
.footer{
  background:var(--ink); color:var(--steel);
  display:flex; flex-direction:column; align-items:center; gap:14px;
  padding:40px var(--pad); text-align:center; font-size:13px;
}
.footer img{ border-radius:50%; }
