/* Protech Partners - protech.partners
   Brand (house style guide, same as cards.protech.partners):
     Jonquil #FAD02C accent, Jet #313131 primary dark, Seasalt #FAFAFA
     primary light, Gray #7F7F7F signature grey (decorative only on light
     backgrounds - text grey is darker for contrast).
     Lexend Deca for display, Open Sans for body.
   Single theme on purpose: the brand is dark-led and does not flip. */

:root {
  --jonquil: #FAD02C;
  --jonquil-deep: #E9BE12;
  --jet: #313131;
  --jet-deep: #262626;
  --jet-soft: #3A3A3A;
  --seasalt: #FAFAFA;
  --white: #FFFFFF;
  --grey: #7F7F7F;
  --ink: #313131;
  --ink-muted: #5C5C5C;
  --on-dark-muted: #C9C9C9;
  --line: #E8E8E6;
  --display: "Lexend Deca", "Segoe UI", system-ui, sans-serif;
  --body: "Open Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 72rem;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%;
  background: var(--jet-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--seasalt); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--jonquil); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--jonquil); color: var(--jet);
  font-family: var(--display); font-weight: 600; padding: .6rem 1rem; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 1rem; }

.kicker {
  font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: .9rem;
  display: flex; align-items: center; gap: .75rem;
}
.kicker::before { content: ""; width: 2rem; height: 3px; background: var(--jonquil); border-radius: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: .9rem 1.5rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
  min-height: 3rem;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--jonquil); color: var(--jet); }
.btn-gold:hover { background: var(--jonquil-deep); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--jet); color: var(--white); }
.btn-dark:hover { background: var(--jet-deep); }
.btn-dark:focus-visible { outline-color: var(--jet); }
.btn[aria-busy="true"] { cursor: progress; opacity: .75; }
a, button { touch-action: manipulation; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--jet-deep);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
/* iOS Safari scrolls the page up under its own address bar, above top:0.
   Carry the bar's colour up there so no content shows above it. */
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh;
  background: var(--jet-deep); pointer-events: none;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.brand img { height: 2.4rem; width: auto; }
.nav nav { display: flex; align-items: center; gap: .35rem; }
.nav nav a {
  font-family: var(--display); font-size: .95rem; color: var(--on-dark-muted); text-decoration: none;
  padding: .55rem .85rem; border-radius: 8px; transition: color .15s, background-color .15s;
}
.nav nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav nav a.nav-cta { background: var(--jonquil); color: var(--jet); font-weight: 600; margin-left: .5rem; }
.nav nav a.nav-cta:hover { background: var(--jonquil-deep); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
    background: transparent; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; cursor: pointer;
  }
  .menu-bars, .menu-bars::before, .menu-bars::after {
    display: block; width: 1.15rem; height: 2px; background: var(--white); border-radius: 2px; position: relative;
    transition: transform .2s, background-color .2s;
  }
  .menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
  .menu-bars::before { top: -6px; }
  .menu-bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--jet-deep); padding: .5rem 1.25rem 1.25rem; gap: .25rem;
    border-bottom: 1px solid rgba(255,255,255,.08); display: none;
  }
  .nav nav.open { display: flex; }
  .nav nav a { padding: .85rem 1rem; font-size: 1.05rem; }
  .nav nav a.nav-cta { margin: .5rem 0 0; text-align: center; }
  .no-js .nav nav { display: flex; position: static; flex-direction: row; flex-wrap: wrap; padding: 0; background: none; border: 0; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(60rem 30rem at 85% 110%, rgba(250,208,44,.10), transparent 60%),
    linear-gradient(180deg, var(--jet-deep), var(--jet));
  padding: clamp(4.5rem, 12vh, 8.5rem) 0 clamp(4rem, 10vh, 7rem);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--jonquil);
}
.hero-inner { max-width: var(--wrap); }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--jonquil); display: flex; flex-wrap: wrap; gap: .4rem .9rem;
  margin-bottom: 1.6rem;
}
.eyebrow span { color: rgba(255,255,255,.35); }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem); font-weight: 700; letter-spacing: -.025em; max-width: 15ch;
}
.lede { margin-top: 1.5rem; font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--on-dark-muted); max-width: 40rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }
.congrats {
  margin-top: 3.5rem; font-family: var(--display); font-weight: 300; font-size: .8rem;
  letter-spacing: .5em; text-transform: uppercase; color: rgba(255,255,255,.5);
}

/* About */
.about { padding: clamp(4.5rem, 10vw, 7.5rem) 0; background: var(--seasalt); }
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 4rem; } }
.prose { display: grid; gap: 1.1rem; color: var(--ink-muted); max-width: 40rem; }
.prose p:first-child { font-size: 1.25rem; line-height: 1.5; color: var(--ink); font-family: var(--display); font-weight: 400; }

/* Services */
.services { padding: clamp(4.5rem, 10vw, 7.5rem) 0; background: var(--white); border-top: 1px solid var(--line); }
.cards { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; gap: 1.1rem;
  grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); }
  .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); }
  .card:last-child:nth-child(odd) { grid-column: auto; } }
.card {
  background: var(--seasalt); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
}
.ico {
  width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 10px; background: var(--jonquil);
  fill: none; stroke: var(--jet); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-muted); font-size: .98rem; line-height: 1.6; }

/* For manufacturers */
.makers { padding: clamp(4.5rem, 10vw, 7.5rem) 0; background: var(--jet-deep); color: var(--white); }
.makers .kicker { color: var(--on-dark-muted); }
.makers-lede { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 40rem; margin-top: 1.25rem; }
.platforms { list-style: none; margin: 2.75rem 0 0; padding: 0; display: grid; gap: 1px;
  grid-template-columns: 1fr;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; }
.platforms li { background: var(--jet); padding: 1.75rem 1.5rem 1.9rem; }
.platforms h3 { font-size: 1.3rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.platforms h3::before { content: ""; width: .6rem; height: .6rem; border-radius: 2px; background: var(--jonquil); }
.platforms p { color: var(--on-dark-muted); font-size: .98rem; line-height: 1.6; }
@media (min-width: 600px) { .platforms { grid-template-columns: repeat(2, 1fr); }
  .platforms li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .platforms { grid-template-columns: repeat(5, 1fr); }
  .platforms li:last-child:nth-child(odd) { grid-column: auto; } }
.makers-how { margin-top: 2.75rem; display: grid; gap: 1rem; justify-items: start; }
.makers-how h3 { font-size: 1.3rem; }
.makers-how .btn { margin-top: .75rem; }
.makers-how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.makers-how li { position: relative; padding-left: 1.75rem; color: #E6E6E6; }
.makers-how li::before { content: ""; position: absolute; left: 0; top: .8em; width: .9rem; height: 2px; background: var(--jonquil); }

/* Certifications */
.certs { padding: 3.5rem 0 4rem; background: var(--seasalt); border-top: 1px solid var(--line); }
.certs-title { font-size: .85rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-muted); text-align: center; margin-bottom: 2rem; }
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 1.5rem 2rem; }
.badges img { width: auto; height: 4rem; max-width: 7.5rem; object-fit: contain; }
.badges .wide img { height: 2.9rem; max-width: 14rem; }
.badges .more { display: flex; flex-direction: column; align-items: center; font-family: var(--display); line-height: 1.2; }
.badges .more strong { font-weight: 600; font-size: 1.15rem; }
.badges .more span { font-size: .85rem; color: var(--ink-muted); }

/* Team */
.team { padding: clamp(4.5rem, 10vw, 7.5rem) 0; background: var(--jet); color: var(--white); }
.team .kicker { color: var(--on-dark-muted); }
.team-intro { color: var(--on-dark-muted); max-width: 44rem; margin-top: 1.25rem; font-size: 1.08rem; }
.people { list-style: none; margin: 3.25rem 0 0; padding: 0; display: grid; gap: 2.5rem;
  grid-template-columns: 1fr; text-align: center; }
@media (min-width: 600px) { .people { grid-template-columns: repeat(3, 1fr); } }
.people img {
  width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 4px var(--jet), 0 0 0 7px var(--jonquil);
  background: var(--jet-deep);
}
.people h3 { font-size: 1.25rem; }
.people p { color: var(--on-dark-muted); font-family: var(--display); font-size: .85rem; letter-spacing: .14em;
  text-transform: uppercase; margin-top: .3rem; }

/* Contact */
.contact { padding: clamp(4.5rem, 10vw, 7rem) 0; background: var(--jonquil); color: var(--jet); }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .kicker { color: var(--jet); }
.contact .kicker::before, .contact .kicker::after { background: var(--jet); }
.contact .kicker::after { content: ""; width: 2rem; height: 3px; border-radius: 2px; }
.contact h2 { max-width: 20ch; }
.reveal { margin-top: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.ts { min-height: 65px; }
@media (max-width: 359px) { .ts { min-height: 140px; } }
.ts.ts-test { min-height: 0; }
.no-js .reveal { display: none; }
.reveal-msg { font-weight: 600; min-height: 1.5em; }
.reveal-msg.err { color: #7A1E12; }
.details { margin: 2rem 0 0; display: grid; gap: 1rem; width: 100%; max-width: 30rem; }
.details div { background: var(--jet); color: var(--white); border-radius: var(--radius); padding: 1.1rem 1.4rem;
  display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.details dt { font-family: var(--display); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.details dd { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; }
.details a { color: var(--jonquil); text-decoration: none; overflow-wrap: anywhere; }
.details a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.foot { background: var(--jet-deep); color: var(--on-dark-muted); padding: 3.25rem 0 3rem; font-size: .92rem; }
.foot-inner { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 860px) { .foot-inner { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot-brand img { height: 2.6rem; width: auto; }
.tag { margin-top: 1rem; font-family: var(--display); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase;
  color: #9A9A9A; line-height: 1.9; }
.tag b { color: var(--white); font-weight: 400; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.legal { line-height: 1.8; }

/* 404 */
.page-404 { min-height: 100vh; display: flex; align-items: center; }
.logo-404 { height: 3rem; width: auto; margin-bottom: 3rem; }
