@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-800-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/barlow-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/barlow-800-normal.woff2') format('woff2');
}

:root {
  --charcoal: #212327;
  --charcoal-2: #2a2d32;
  --charcoal-3: #34383e;
  --blue: #2f90b0;
  --blue-light: #4db3d4;
  --white: #ffffff;
  --grey: #9aa0a6;
  --grey-light: #e8eaed;
  --bg: #f5f6f7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  transition: top .15s;
}
.skip-link:focus { top: 0; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}
body {
  font-family: "Barlow", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  color: var(--charcoal);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3 { line-height: 1.2; }
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  background: #1a1c1f;
  color: var(--grey);
  font-size: 0.82rem;
  padding: 7px 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: flex-end;
}
.topbar span strong { color: var(--grey-light); font-weight: 600; }
.topbar a { color: var(--blue-light); }

/* ---------- Header / nav ---------- */
header {
  background: var(--charcoal);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; display: block; }
nav ul { list-style: none; display: flex; gap: 4px; flex-wrap: wrap; }
nav a {
  color: var(--grey-light);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
nav a:hover { color: var(--white); background: var(--charcoal-3); }
nav a.cta {
  background: var(--blue);
  color: var(--white);
  margin-left: 8px;
}
nav a.cta:hover { background: var(--blue-light); }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(115deg, rgba(33,35,39,0.97) 0%, rgba(33,35,39,0.88) 55%, rgba(47,144,176,0.35) 100%),
    var(--charcoal);
  color: var(--white);
  padding: 96px 0 104px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -60px; top: -40px;
  width: 480px; height: 600px;
  background: repeating-linear-gradient(115deg, rgba(47,144,176,0.16) 0 22px, transparent 22px 64px);
  transform: skewX(-8deg);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.kicker {
  color: var(--blue-light);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 800;
  font-style: italic;
  max-width: 720px;
  margin-bottom: 20px;
}
.hero h1 .slash { color: var(--blue); font-style: normal; }
.hero p.lede {
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--grey-light);
  margin-bottom: 34px;
}
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-light); }
.btn-ghost {
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.45);
  margin-left: 12px;
}
.btn-ghost:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* ---------- Hero one-line diagram ---------- */
.hero-figure {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  max-width: 38%;
  pointer-events: none;
}
@media (min-width: 961px) {
  .hero::after { display: none; }
}
@media (max-width: 960px) {
  .hero-figure { display: none; }
}
.ol-line { stroke: rgba(232,234,237,0.35); stroke-width: 1.6; fill: none; }
.ol-bus { stroke: #4db3d4; stroke-width: 5; stroke-linecap: round; }
.ol-sym { stroke: rgba(232,234,237,0.6); stroke-width: 1.8; fill: none; }
.ol-breaker { stroke: #4db3d4; stroke-width: 1.8; fill: #212327; }
.ol-load { fill: rgba(232,234,237,0.6); }
.ol-node { fill: #4db3d4; animation: node-pulse 3s ease-in-out infinite; }
.ol-node.n2 { animation-delay: 1s; }
.ol-node.n3 { animation-delay: 2s; }
@keyframes node-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
.ol-flow {
  stroke: #4db3d4;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 6 130;
  animation: flow 4.5s linear infinite;
}
.ol-flow.f2 { animation-delay: 1.1s; }
.ol-flow.f3 { animation-delay: 2.2s; }
.ol-flow.f4 { animation-delay: 3.3s; }
.ol-flow.f5 { animation-delay: 1.7s; }
.ol-flow.f6 { animation-delay: 2.8s; }
@keyframes flow {
  to { stroke-dashoffset: -136; }
}

/* ---------- Wave divider ---------- */
.wave-divider { line-height: 0; overflow: hidden; }
.wave-divider svg { width: 100%; height: 40px; display: block; }
.wave-divider path, .wave-divider use { fill: none; stroke-width: 1.5; }
.w-a { stroke: rgba(47,144,176,0.45); }
.w-b { stroke: rgba(77,179,212,0.3); }
.w-c { stroke: rgba(33,35,39,0.12); }
.wave-move { animation: wave-slide 9s linear infinite; }
@keyframes wave-slide {
  to { transform: translateX(-300px); }
}

/* ---------- Phasor diagram ---------- */
.phasor { width: 118px; height: 118px; flex-shrink: 0; }
.ph-ring { fill: none; stroke: rgba(232,234,237,0.25); stroke-width: 1; }
.ph-axis { stroke: rgba(232,234,237,0.15); stroke-width: 1; }
.ph-rot {
  transform-origin: 70px 70px;
  transform-box: view-box;
  animation: phasor-spin 14s linear infinite;
}
.ph-a { stroke: #4db3d4; stroke-width: 3; stroke-linecap: round; }
.ph-b { stroke: #e8eaed; stroke-width: 2.5; stroke-linecap: round; opacity: 0.85; }
.ph-c { stroke: #9aa0a6; stroke-width: 2.5; stroke-linecap: round; }
.ph-dot-a { fill: #4db3d4; }
.ph-dot-b { fill: #e8eaed; }
.ph-dot-c { fill: #9aa0a6; }
@keyframes phasor-spin {
  to { transform: rotate(-360deg); }
}

/* ---------- Section scaffolding ---------- */
section { padding: 76px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head .kicker { color: var(--blue); }
.section-head h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.section-head p { color: #5f6368; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.card {
  background: var(--white);
  border-radius: 6px;
  padding: 28px 26px;
  border-top: 3px solid var(--blue);
  box-shadow: 0 1px 4px rgba(33,35,39,0.08);
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(33,35,39,0.14);
}
.card .slashes {
  color: var(--blue);
  font-weight: 800;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
}
.card h3 { font-size: 1.08rem; margin: 8px 0 10px; }
.card p { font-size: 0.93rem; color: #5f6368; }
.card .more {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- About ---------- */
.about { background: var(--charcoal); color: var(--grey-light); }
.about .section-head h2 { color: var(--white); }
.about .section-head p { color: var(--grey); }
.about-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-cols p { margin-bottom: 16px; color: var(--grey-light); }
.principles { list-style: none; display: grid; gap: 14px; }
.principles li {
  background: var(--charcoal-2);
  border-left: 3px solid var(--blue);
  padding: 14px 18px;
  border-radius: 0 5px 5px 0;
  font-size: 0.95rem;
}
.principles li strong { color: var(--white); display: block; margin-bottom: 2px; }

/* ---------- Stats strip ---------- */
.strip {
  background: var(--blue);
  color: var(--white);
  padding: 34px 0;
}
.strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 60px;
  justify-content: center;
  text-align: center;
}
.strip .stat b { display: block; font-size: 1.7rem; font-weight: 800; font-style: italic; }
.strip .stat span { font-size: 0.88rem; opacity: 0.92; }

/* ---------- Training ---------- */
.training { background: var(--white); }
.training .card {
  border: 1px solid #e4e6e8;
  border-top: 3px solid var(--blue);
}
.toolkit {
  background: var(--charcoal);
  color: var(--grey-light);
  border-radius: 6px;
  padding: 30px 34px;
  margin-bottom: 26px;
}
.toolkit-row {
  display: flex;
  align-items: center;
  gap: 34px;
}
.toolkit-text h3 {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.toolkit-text h3::before { content: "// "; color: var(--blue); font-style: italic; }
.toolkit-text p { font-size: 0.95rem; }
.toolkit-text strong { color: var(--white); }
.toolkit .btn { flex-shrink: 0; white-space: nowrap; }
.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 26px;
}
.shot-grid.single { grid-template-columns: 1fr; }
.screenshot-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--charcoal-3);
  background: #1a1c1f;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.screenshot-frame .chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: #1a1c1f;
  border-bottom: 1px solid var(--charcoal-3);
}
.screenshot-frame .chrome i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--charcoal-3);
}
.screenshot-frame .chrome i:first-child { background: var(--blue); }
.screenshot-frame .chrome span {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--grey);
  font-family: Consolas, monospace;
}
.screenshot-frame img, .screenshot-frame video { display: block; width: 100%; height: auto; }
.portrait-wrap { max-width: 500px; margin: 0 auto; }
.shot-caption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #b3b8bd;
  text-align: center;
}
@media (max-width: 820px) {
  .shot-grid { grid-template-columns: 1fr; }
  .toolkit-row { flex-direction: column; align-items: flex-start; gap: 18px; }
}
.schedule {
  background: var(--bg);
  border: 1px solid #e4e6e8;
  border-radius: 6px;
  padding: 30px 34px 12px;
}
.schedule-head { margin-bottom: 14px; }
.schedule-head h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.schedule-head h3::before { content: "// "; color: var(--blue); font-style: italic; }
.schedule-head p { font-size: 0.95rem; color: #5f6368; max-width: 720px; }
.course-row {
  display: grid;
  grid-template-columns: 225px 1fr;
  gap: 6px 28px;
  padding: 16px 0;
  border-top: 1px solid #e4e6e8;
}
.course-row .dates {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 3px;
}
.course-row h3 { font-size: 1.02rem; margin-bottom: 3px; }
.course-row p { font-size: 0.92rem; color: #5f6368; }
.custom-note { margin-top: 24px; color: #5f6368; max-width: 840px; }
.training-cta { margin-top: 36px; text-align: center; }
.btn-outline {
  color: var(--charcoal);
  border: 1.5px solid #c3c7cb;
  margin-left: 12px;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.contact-card {
  background: var(--white);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 1px 4px rgba(33,35,39,0.08);
  text-align: center;
}
.contact-card .icon {
  width: 46px; height: 46px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(47,144,176,0.12);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { font-size: 0.93rem; color: #5f6368; }

/* ---------- Footer ---------- */
footer {
  background: #1a1c1f;
  color: var(--grey);
  padding: 34px 0;
  font-size: 0.85rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
footer img { height: 34px; opacity: 0.9; }

/* ---------- Service detail pages ---------- */
.page-hero {
  background:
    linear-gradient(115deg, rgba(33,35,39,0.97) 0%, rgba(33,35,39,0.9) 60%, rgba(47,144,176,0.3) 100%),
    var(--charcoal);
  color: var(--white);
  padding: 58px 0 62px;
}
.page-hero .breadcrumb {
  display: inline-block;
  color: var(--blue-light);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
}
.service-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}
.service-body article p { margin-bottom: 18px; font-size: 1.02rem; }
.deliverables {
  background: var(--white);
  border-top: 3px solid var(--blue);
  border-radius: 6px;
  padding: 26px;
  box-shadow: 0 1px 4px rgba(33,35,39,0.08);
}
.deliverables h2 { font-size: 1.05rem; margin-bottom: 14px; }
.deliverables ul { list-style: none; }
.deliverables li {
  padding: 8px 0 8px 26px;
  position: relative;
  font-size: 0.93rem;
  color: #3c4043;
  border-bottom: 1px solid #eceef0;
}
.deliverables li:last-child { border-bottom: none; }
.deliverables li::before {
  content: "//";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
  font-style: italic;
}
.related { margin-top: 40px; }
.related h2 { font-size: 1.05rem; margin-bottom: 14px; }
.chip {
  display: inline-block;
  background: var(--white);
  border: 1px solid #d7dadd;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  margin: 0 8px 8px 0;
  transition: border-color .15s, color .15s;
}
.chip:hover { border-color: var(--blue); }
.cta-band {
  background: var(--charcoal);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
}
.cta-band h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; }
.cta-band p { color: var(--grey-light); margin-bottom: 24px; }

/* ---------- Scroll reveal ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
html.js .reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .ol-flow, .ol-node, .ph-rot, .wave-move { animation: none; }
}

@media (max-width: 820px) {
  .about-cols, .service-body, .course-row { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
  .nav { flex-direction: column; gap: 10px; }
  .hero { padding: 64px 0 72px; }
  .btn-ghost, .btn-outline { margin-left: 0; margin-top: 10px; }
  .toolkit { flex-direction: column; align-items: flex-start; gap: 18px; }
}
