/* Hibb Co. site. Brand tokens come from the Hibb Co. logo (OneDrive: Hibb Co/Hibb Co Logo/HibbCO Logo.png):
   black #000, white #fff, blue #2BA1EA fading to deep blue #1D658D. */
:root {
  --ink: #000000;
  --ink-2: #0b0e12;
  --ink-3: #141920;
  --white: #ffffff;
  --paper: #f4f7fa;
  --blue: #2ba1ea;
  --blue-deep: #1d658d;
  --line: #e2e8ee;
  --line-dark: #222a33;
  --text: #0b0e12;
  --muted: #5a6672;
  --muted-dark: #9aa7b4;
  --display: 'Bodoni Moda', 'Didot', Georgia, serif;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  --radius: 16px;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.top.scrolled { border-color: var(--line); box-shadow: 0 6px 30px rgba(0,0,0,.05); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.top .logo img { height: 46px; width: auto; }
.top nav { display: flex; align-items: center; gap: 30px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .2s; }
.top nav a:hover, .top nav a.on { color: var(--ink); }
.top nav a.pill { color: var(--white); background: var(--ink); padding: 10px 18px; border-radius: 999px; }
.top nav a.pill:hover { background: var(--blue-deep); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 600 14px var(--body); }

/* Type */
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: 12.5px; font-weight: 700; color: var(--blue); margin: 0 0 16px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(48px, 8vw, 112px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); max-width: 20ch; }
h3 { font-size: clamp(24px, 2.2vw, 30px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 62ch; margin: 22px 0 0; }
.dark .lead, .dark p { color: var(--muted-dark); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }

/* Sections */
section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.dark { background: var(--ink-2); color: var(--white); }
.paper { background: var(--paper); }
.sec-head { margin-bottom: clamp(44px, 6vw, 72px); }

/* Buttons */
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; font-family: var(--body); transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.dark .btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.dark .btn.ghost:hover { border-color: var(--white); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* Hero */
.hero { min-height: 100vh; padding-top: 150px; display: flex; align-items: center; overflow: hidden; }
.hero .glow { position: absolute; width: 900px; height: 900px; right: -260px; top: -200px; background: radial-gradient(closest-side, rgba(43,161,234,.35), rgba(29,101,141,.12) 55%, transparent 75%); filter: blur(10px); pointer-events: none; }
.hero .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; }
.hero h1 .blue { background: linear-gradient(90deg, var(--blue), #7cc8f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.a2p { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; overflow: hidden; background: var(--white); box-shadow: 0 40px 120px rgba(0,0,0,.55); }
.a2p .art, .a2p .part { position: absolute; inset: 0; }
.a2p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a2p .art img { object-fit: contain; padding: 6%; }
.a2p .part { clip-path: inset(0 0 0 var(--cut, 100%)); }
.a2p .bar { position: absolute; top: 0; bottom: 0; left: var(--cut, 100%); width: 3px; background: var(--blue); box-shadow: 0 0 0 4px rgba(43,161,234,.25); }
.a2p .tag { position: absolute; bottom: 16px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; background: rgba(0,0,0,.7); color: var(--white); }
.a2p .tag.l { left: 16px; } .a2p .tag.r { right: 16px; background: var(--blue); }
.a2p-cap { color: var(--muted-dark); font-size: 13.5px; margin-top: 14px; text-align: center; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; gap: 0 28px; }
.stat { display: grid; grid-template-rows: subgrid; grid-row: span 2; border-top: 2px solid var(--ink); padding-top: 18px; }
.stat b { font-family: var(--display); font-size: clamp(40px, 4.6vw, 64px); font-weight: 600; line-height: 1; }
.stat span { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* Capabilities: 6 cards, cover and align via subgrid */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 24px; }
.cap { display: grid; grid-template-rows: subgrid; grid-row: span 3; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.cap:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(10,30,50,.10); border-color: transparent; }
.cap .num { font-family: var(--display); font-size: 15px; color: var(--blue); font-weight: 700; }
.cap h3 { font-size: 24px; margin-top: 10px; }
.cap p { margin: 12px 0 0; color: var(--muted); font-size: 15.5px; }

/* Process */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 44px; }
.steps::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-dark); }
.steps .fill { position: absolute; left: 11px; top: 8px; width: 2px; height: calc((100% - 16px) * var(--p, 0)); background: linear-gradient(var(--blue), var(--blue-deep)); }
.steps li { position: relative; padding: 0 0 46px; }
.steps li::before { content: ''; position: absolute; left: -41px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--line-dark); transition: background .4s, border-color .4s; }
.steps li.lit::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(43,161,234,.18); }
.steps .k { font-size: 12.5px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: var(--blue); }
.steps h3 { margin-top: 6px; }
.steps p { margin: 8px 0 0; font-size: 15.5px; }
.stick { position: sticky; top: 120px; }
.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stack figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--white); position: relative; }
.stack figure.wide { grid-column: span 2; }
.stack img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .8s var(--ease); }
.stack figure.wide img { aspect-ratio: 16 / 9; }
.stack figure:hover img { transform: scale(1.04); }
.stack figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.72); color: var(--white); }

/* Feature rows (companies) */
.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(40px, 6vw, 70px) 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature.flip .media { order: 2; }
.feature .media { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(10,30,50,.14); }
.feature .media img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform 1s var(--ease); }
.feature:hover .media img { transform: scale(1.03); }
.feature .kicker { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.feature h3 { font-size: clamp(30px, 3.4vw, 46px); margin-top: 8px; }
.feature p { color: var(--muted); margin: 14px 0 0; }
.feature .cta { margin-top: 26px; }
.also { margin-top: 30px; display: flex; align-items: center; gap: 22px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.also img { width: 160px; border-radius: 10px; }
.also p { margin: 0; color: var(--muted); font-size: 15.5px; }
.also b { color: var(--ink); }

/* Track record cards */
.track { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 26px; }
.tcard { display: grid; grid-template-rows: subgrid; grid-row: span 5; background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.tcard .media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--white); }
.tcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tcard .media img.contain { object-fit: contain; padding: 5%; }
.tcard:hover .media img { transform: scale(1.05); }
.tcard .k { margin: 24px 28px 6px; font-size: 12.5px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: var(--blue); }
.tcard h3 { margin: 0 28px; }
.tcard p { margin: 12px 28px 0; font-size: 15.5px; }
.tcard .go { margin: 22px 28px 28px; align-self: end; }
.linkbtn { background: none; border: 0; padding: 0; font: 700 15px var(--body); color: var(--blue); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.linkbtn:hover .arr { transform: translateX(4px); }
.linkbtn .arr { transition: transform .25s var(--ease); }

/* Consulting */
.svc { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 0 32px; }
.svc div { display: grid; grid-template-rows: subgrid; grid-row: span 2; border-top: 1px solid var(--line); padding: 24px 0 34px; }
.svc h3 { font-size: 21px; }
.svc p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; }
.clients { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; gap: 26px; margin-top: 50px; }
.client { display: grid; grid-template-rows: subgrid; grid-row: span 4; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); color: var(--white); }
.client .media { aspect-ratio: 1200 / 630; overflow: hidden; background: linear-gradient(135deg, var(--blue-deep), var(--ink)); display: grid; place-items: center; }
.client .media img { width: 100%; height: 100%; object-fit: cover; }
.client .media .ph { font-family: var(--display); font-size: clamp(26px, 3vw, 40px); color: var(--white); text-align: center; padding: 0 24px; }
.client .k { margin: 24px 28px 4px; font-size: 12.5px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; color: var(--blue); }
.client h3 { margin: 0 28px; color: var(--white); }
.client p { margin: 12px 28px 28px; color: var(--muted-dark); font-size: 15.5px; }

/* Founder strip */
.founder-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.founder .portrait { margin: 0; max-width: 460px; }
@media (max-width: 1000px) { .founder-in { grid-template-columns: 1fr; } }

/* Contact band */
.contact-band { text-align: center; overflow: hidden; }
.contact-band h2 { margin: 0 auto; max-width: 18ch; }
.contact-band .mail { display: inline-block; margin-top: 30px; font-family: var(--display); font-size: clamp(30px, 4.6vw, 62px); color: var(--white); text-decoration: none; background-image: linear-gradient(var(--blue), var(--blue)); background-size: 100% 3px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 6px; }
.contact-band .glow { position: absolute; left: 50%; top: 50%; width: 1100px; height: 700px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(43,161,234,.28), transparent 70%); pointer-events: none; }

/* Footer */
footer { background: var(--ink); color: var(--muted-dark); padding: 54px 0; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer .fl { display: flex; align-items: center; gap: 16px; }
footer .fl img { height: 40px; width: 40px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--muted-dark); }
footer a:hover { color: var(--white); }

/* Learn-more dialogs */
dialog.more { border: 0; padding: 0; width: min(880px, 94vw); max-height: 90vh; border-radius: 22px; background: var(--white); color: var(--text); box-shadow: 0 50px 140px rgba(0,0,0,.45); overflow: hidden; }
dialog.more[open] { animation: pop .45s var(--ease); }
dialog.more::backdrop { background: rgba(5,10,16,.72); backdrop-filter: blur(6px); animation: fade .3s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
dialog.more .scroll { max-height: 90vh; overflow-y: auto; }
dialog.more .hero-img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; background: var(--paper); }
dialog.more .hero-img.contain { object-fit: contain; padding: 4%; }
dialog.more .body { padding: 34px clamp(24px, 5vw, 48px) 40px; }
dialog.more h3 { font-size: clamp(30px, 3.6vw, 42px); }
dialog.more p { color: var(--muted); margin: 14px 0 0; }
dialog.more ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
dialog.more li { margin: 6px 0; }
dialog.more .cta { margin-top: 28px; }
dialog.more .x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 22px; cursor: pointer; z-index: 2; }
dialog.more .gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
dialog.more .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--paper); }

/* About page */
.about-hero { padding-top: 170px; }
.about-hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 6vw, 90px); align-items: start; }
.about-hero .portrait { max-width: 400px; }
.about-hero .bio p { font-size: 18.5px; color: var(--muted); margin: 0 0 18px; }
.quick { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.quick li { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.quick li span:first-child { color: var(--muted); }
.quick li span:last-child { font-weight: 700; text-align: right; }
.awards { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: 22px; }
.award { display: grid; grid-template-rows: subgrid; grid-row: span 3; background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 26px; }
.award .y { font-family: var(--display); font-size: 34px; color: var(--blue); font-weight: 600; line-height: 1; }
.award b { color: var(--white); font-size: 17px; margin-top: 12px; display: block; }
.award span { color: var(--muted-dark); font-size: 14.5px; margin-top: 6px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 170px 1fr 300px; gap: clamp(20px, 3vw, 44px); padding: 38px 0; border-top: 1px solid var(--line); align-items: start; }
.tl li.nofig > div { grid-column: span 2; }
.portrait { margin: 0 0 26px; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #eaf5fd, #ffffff 60%); box-shadow: 0 30px 80px rgba(10,30,50,.14); }
.portrait img { width: 100%; height: auto; }
.tl .when { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--blue-deep); }
.tl .role { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.tl h3 { margin-top: 6px; }
.tl p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }
.tl figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper); }
.tl figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tl figure img.contain { object-fit: contain; padding: 6%; background: var(--white); }
.patent-card { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 34px clamp(24px, 4vw, 44px); border-radius: 20px; background: linear-gradient(135deg, var(--blue-deep), var(--ink)); color: var(--white); }
.patent-card .num { font-family: var(--display); font-size: clamp(30px, 3.6vw, 46px); }
.patent-card p { margin: 6px 0 0; color: #cfe3f2; }

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-l.in { opacity: 1; transform: none; }
.rv-r { opacity: 0; transform: translateX(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv-r.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv, .rv-l, .rv-r { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .hero .wrap, .process, .feature, .about-hero .wrap { grid-template-columns: 1fr; }
  .feature.flip .media { order: 0; }
  .stick { position: static; }
  .caps, .awards { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto; row-gap: 30px; }
  .tl li { grid-template-columns: 1fr; }
  .tl figure { max-width: 520px; }
}
@media (max-width: 760px) {
  .top nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: flex-start; gap: 0; padding: 10px var(--gutter) 20px; border-bottom: 1px solid var(--line); }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 0; font-size: 16px; }
  .top nav a.pill { margin-top: 8px; padding: 12px 20px; }
  .menu-btn { display: block; }
  .top .logo img { height: 38px; }
  .caps, .awards, .svc, .track, .clients, .stats { grid-template-columns: 1fr; }
  .stats { grid-template-rows: none; }
  .stat, .cap, .award, .svc div, .tcard, .client { grid-row: auto; grid-template-rows: none; display: block; }
  .tcard .go, .client p { display: block; }
  .also { flex-direction: column; align-items: flex-start; }
  .patent-card { grid-template-columns: 1fr; }
  dialog.more .gallery { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 130px; }
}
