/* ============================================================
   H b&s Digital — global stylesheet
   Brand tokens are locked per handoff. Do not restyle colours/type.
   ============================================================ */

:root{
  --bg: #0a0912;
  --bg-elevated: #14122256;
  --panel: #14122540;
  --text: #f2f0f8;
  --text-muted: #9b95b3;
  --line: #2b2740;
  --violet: #5b3bd6;
  --purple: #9440cc;
  --pink: #e0447f;
  --orange: #e0703a;
  --grad: linear-gradient(90deg, var(--violet) 0%, var(--purple) 35%, var(--pink) 66%, var(--orange) 100%);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle fixed background glow, echoes the brand wallpaper */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 15% 8%, rgba(91,59,214,0.16), transparent 60%),
    radial-gradient(500px 380px at 85% 30%, rgba(224,68,127,0.10), transparent 60%),
    radial-gradient(700px 500px at 50% 95%, rgba(148,64,204,0.08), transparent 60%);
}

a { color: inherit; text-decoration: none; }

img{ max-width: 100%; display: block; }

.wrap{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Skip link for keyboard / screen-reader users */
.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--text);
  color: #100b1c;
  padding: 10px 16px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus{ left: 12px; top: 12px; }

/* ---------- NAV ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,9,18,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
/* Logo lockup: 3-line centered stack — "H b&s" / dot / tracked "DIGITAL"
   (matches HBS_Digital master artwork). Everything scales from the
   .brand font-size, so header/footer just set that one value. */
.brand{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  line-height: 1;
  font-size: 32px;        /* header lockup scale */
  user-select: none;
}
.brand .mark{
  font-family: var(--serif);
  font-size: 1em;
  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .dot{
  width: 0.16em; height: 0.16em;
  border-radius: 50%;
  background: var(--grad);
  display: block;
}
.brand .sub{
  font-size: 0.31em;
  line-height: 1;
  letter-spacing: 0.4em;
  padding-left: 0.4em;    /* balance the trailing tracking so it optically centers */
  color: var(--text-muted);
}

.navlinks{
  display: flex;
  align-items: center;
  gap: 36px;
}
.navlinks a.navlink{
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
  transition: color .2s ease;
}
.navlinks a.navlink:hover{ color: var(--text); }
.navlinks a.navlink[aria-current="page"]{ color: var(--text); }
.navlinks a.navlink[aria-current="page"]::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-2px;
  height: 2px;
  background: var(--grad);
}
/* The CTA inside the links group is for the mobile menu only. */
.navlinks .cta-btn{ display: none; }

.cta-btn{
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.cta-btn:hover{ border-color: var(--purple); }
.cta-btn.solid{
  background: var(--grad);
  border: none;
  color: #100b1c;
  font-weight: 600;
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 42px; height: 40px;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after{
  content:"";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--text);
  transform: translate(-50%,-50%);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ transform: translate(-50%,-8px); }
.nav-toggle span::after{ transform: translate(-50%,6px); }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translate(-50%,-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translate(-50%,-50%) rotate(-45deg); }

/* ---------- SECTIONS / TYPE ---------- */
main{ min-height: 60vh; }

section{ padding: 100px 0; }
section.tight{ padding: 70px 0; }

h1,h2,h3{ font-family: var(--serif); font-weight: 400; margin: 0; }

.eyebrow-line{
  width: 46px; height: 2px;
  background: var(--grad);
  margin-bottom: 22px;
}

.page-head{ padding-top: 70px; padding-bottom: 10px; }
.page-head h1{ font-size: 40px; }

/* ---------- HOME ---------- */
.hero{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 70px;
}
.hero h1{
  font-size: 52px;
  line-height: 1.18;
  max-width: 620px;
}
.hero p.lede{
  margin-top: 26px;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
}
.hero .actions{
  margin-top: 38px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.link-inline{
  display: inline-block;
  font-size: 15px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.link-inline:hover{ color: var(--text); border-color: var(--purple); }

.hero-orb{
  position: relative;
  height: 360px;
}
.hero-orb .glow{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(224,68,127,0.35), rgba(91,59,214,0.25) 45%, transparent 70%);
  filter: blur(6px);
  animation: pulse 7s ease-in-out infinite;
}
.hero-orb .ring{
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  transform: translate(-50%,-50%);
  border: 1px solid var(--line);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-orb .ring2{
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%,-50%);
  border: 1px solid rgba(148,64,204,0.25);
  border-radius: 50%;
  animation: spin 60s linear infinite reverse;
}
@keyframes pulse{
  0%,100%{ transform: scale(1); opacity: .95; }
  50%{ transform: scale(1.05); opacity: 1; }
}
@keyframes spin{
  from{ transform: translate(-50%,-50%) rotate(0); }
  to{ transform: translate(-50%,-50%) rotate(360deg); }
}

.capability-strip{
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--text-muted);
  font-size: 14px;
}
.capability-strip span.dot{
  display:inline-block; width:4px; height:4px; border-radius:50%;
  background: var(--grad); margin-right: 10px; transform: translateY(-2px);
}

.home-intro{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 90px 0;
  border-top: 1px solid var(--line);
}
.home-intro h2{ font-size: 32px; line-height: 1.3; }
.home-intro .col p{ color: var(--text-muted); font-size: 16px; }
.home-intro .col p + p{ margin-top: 14px; }

/* Home services preview */
.home-services{
  padding: 20px 0 100px;
  border-top: 1px solid var(--line);
}
.home-services .section-label{
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 40px;
}
.service-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.service-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover{ border-color: var(--purple); transform: translateY(-3px); }
.service-card h3{
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}
.service-card p{ color: var(--text-muted); font-size: 14.5px; margin: 0; }
.home-cta{
  margin-top: 46px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------- ABOUT ---------- */
.about-grid{
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 70px;
  padding: 40px 0 100px;
}
.about-grid p{ color: var(--text-muted); font-size: 17px; }
.about-grid p + p{ margin-top: 16px; }

.how-list{ border-top: 1px solid var(--line); }
.how-item{
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.how-item h3{
  font-size: 17px;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.how-item p{ color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ---------- SERVICES ---------- */
.services-list{ border-top: 1px solid var(--line); padding-bottom: 100px; }
.service-row{
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}
.service-row h2{
  font-size: 25px;
  color: var(--text);
}
.service-row p{
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  align-self: center;
}

/* ---------- CONTACT ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 40px 0 110px;
}
.contact-info p{ color: var(--text-muted); font-size: 16px; max-width: 380px; }
.contact-detail{ margin-top: 34px; }
.contact-detail .label{ font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.contact-detail .value{ font-size: 16px; }
.contact-detail .value a:hover{ color: var(--text); }
.contact-detail + .contact-detail{ margin-top: 22px; }

form{ display: flex; flex-direction: column; gap: 18px; }
.field label{
  display:block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px;
}
.field input, .field textarea{
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 10px 2px;
  outline: none;
  transition: border-color .2s ease;
}
.field input:focus, .field textarea:focus{ border-color: var(--purple); }
.field textarea{ resize: vertical; min-height: 90px; }
/* honeypot — hidden from real users, catches bots */
.hp-field{ position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.submit-btn{
  align-self: flex-start;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: #100b1c;
  background: var(--grad);
  border: none;
  padding: 14px 28px;
  border-radius: 3px;
  cursor: pointer;
}
.submit-btn:disabled{ opacity: .6; cursor: default; }
.form-note{ font-size: 13.5px; color: var(--text-muted); margin-top: 14px; display:none; }
.form-note.show{ display:block; }
.form-note.error{ color: var(--pink); }

/* ---------- FOOTER ---------- */
footer{
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
footer .wrap{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .brand{ font-size: 22px; }
footer .foot-links{ display: flex; gap: 22px; font-size: 14px; color: var(--text-muted); }
footer .foot-links a:hover{ color: var(--text); }
footer .copy{ font-size: 13px; color: var(--text-muted); }

/* ---------- FOCUS ---------- */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-orb .glow, .hero-orb .ring, .hero-orb .ring2{ animation: none; }
  .service-card{ transition: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px){
  .hero{ grid-template-columns: 1fr; }
  .hero-orb{ height: 220px; order: -1; }
  .hero h1{ font-size: 38px; }
  .home-intro{ grid-template-columns: 1fr; gap: 30px; }
  .service-cards{ grid-template-columns: 1fr; }
  .about-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .service-row{ grid-template-columns: 1fr; gap: 10px; }
  .wrap{ padding: 0 20px; }

  /* mobile nav */
  .nav-toggle{ display: block; }
  .nav-cta-desktop{ display: none; }
  .navlinks{
    position: fixed;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10,9,18,0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px;
    transform: translateY(-140%);
    transition: transform .25s ease;
    z-index: 40;
  }
  .navlinks.open{ transform: translateY(0); }
  .navlinks a.navlink{
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }
  .navlinks a.navlink[aria-current="page"]::after{ display: none; }
  .navlinks .cta-btn{ display: block; margin-top: 16px; text-align: center; }
}
