/* ==========================================================================
   Plengo Designs — plengodesigns.co.za
   Hand-written CSS. No framework, no build step.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:          #F7F5F2;
  --bg-alt:      #EFEBE5;
  --surface:     #FFFFFF;
  --ink:         #16181D;
  --ink-soft:    #3A3F4A;
  --muted:       #646B79;
  --line:        rgba(22, 24, 29, .13);
  --line-soft:   rgba(22, 24, 29, .07);
  --accent:      #B24A16;
  --accent-ink:  #FFFFFF;
  --accent-soft: #F6E7DC;
  --shadow-sm:   0 1px 2px rgba(22,24,29,.05), 0 4px 14px rgba(22,24,29,.05);
  --shadow-lg:   0 20px 50px rgba(22,24,29,.10);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;

  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 16px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #0C0E12;
    --bg-alt:      #121519;
    --surface:     #15181E;
    --ink:         #ECEEF2;
    --ink-soft:    #C3C8D2;
    --muted:       #949CAB;
    --line:        rgba(255, 255, 255, .14);
    --line-soft:   rgba(255, 255, 255, .07);
    --accent:      #E8823F;
    --accent-ink:  #14161A;
    --accent-soft: rgba(232, 130, 63, .14);
    --shadow-sm:   0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
    --shadow-lg:   0 20px 50px rgba(0,0,0,.5);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 1.05em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 0 0 8px 0; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 11vw, 132px); }
.section--alt { background: var(--bg-alt); }

.eyebrow {
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .9rem;
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  max-width: 20ch;
}
.section-head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 46rem; }
.section-sub { color: var(--muted); margin-top: 1rem; max-width: 56ch; }
.inline-link { color: var(--accent); text-decoration: none; font-weight: 500; white-space: nowrap; }
.inline-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .95rem; font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--bg); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 600; letter-spacing: -.01em;
}
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand-text { font-size: 1.02rem; }
.brand-dim { color: var(--muted); font-weight: 400; margin-left: .18em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  font-size: .93rem;
  color: var(--ink-soft);
  padding: 9px 13px;
  border-radius: 999px;
  transition: color .18s ease, background-color .18s ease;
}
.nav a:hover { color: var(--ink); background: var(--line-soft); }
.nav a.is-active { color: var(--ink); background: var(--line-soft); }
.nav .nav-cta {
  background: var(--accent); color: var(--accent-ink);
  margin-left: 8px; padding: 10px 18px; font-weight: 500;
}
.nav .nav-cta:hover { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  padding: 0; place-items: center;
}
.nav-toggle span {
  /* Positioned from the centre so the open state is a true X. Stacking them
     with margins made the offsets depend on the margin box, and the two bars
     stopped short of meeting. */
  position: absolute; left: 50%; top: 50%;
  width: 17px; height: 1.6px; margin: 0;
  background: var(--ink); border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span:nth-child(2) { transform: translate(-50%, -50%); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav {
    position: absolute; inset-inline: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .nav .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 104px) clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 620px; height: 620px; top: -280px; right: -180px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 6vw, 72px); align-items: center;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  letter-spacing: -.03em;
  margin: 0 0 1.1rem;
}
.display em { font-style: italic; color: var(--accent); }
.lede { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.12rem); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.9rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px);
  margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; }
.hero-stats span { font-size: .8rem; color: var(--muted); letter-spacing: .03em; }

.hero-visual { position: relative; min-height: 340px; }
.portrait, .portrait-slot {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.portrait { object-fit: cover; }
.portrait-slot {
  position: relative;
  display: grid; place-items: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, var(--surface)) 0%, var(--surface) 55%, var(--bg-alt) 100%);
  border: 1px solid var(--line);
}
.portrait-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000 20%, transparent 78%);
}
.portrait-hint {
  position: relative;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

.float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 15px;
  font-size: .82rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.float-card code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--accent); }
.float-card--a { top: 8%; left: -8%; display: flex; align-items: center; gap: 8px; animation: bob 6s ease-in-out infinite; }
.float-card--b { bottom: 10%; right: -6%; animation: bob 7s ease-in-out .8s infinite; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2FA36B; box-shadow: 0 0 0 4px rgba(47,163,107,.16); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Copy first on a phone. Leading with the portrait pushed the headline
     below the fold — and while the portrait is still a placeholder, the
     first screen was an empty box. */
  .hero-visual { justify-self: center; width: min(340px, 100%); max-width: none; }
  .float-card--a { left: auto; right: -4%; }
  .float-card--b { right: auto; left: -4%; }
}
@media (max-width: 520px) {
  .float-card { display: none; }
  .hero-visual { width: 100%; }
  /* A 4:5 crop at full width is most of a phone screen on its own. */
  .portrait, .portrait-slot { aspect-ratio: 5 / 4; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--bg-alt);
  overflow: hidden;
  padding-block: 14px;
}
.marquee-track {
  display: flex; align-items: center; gap: 22px;
  width: max-content;
  animation: slide 38s linear infinite;
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: .6rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 64px); align-items: start;
}
.lead-para {
  font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5; color: var(--ink);
}
.about-body p { color: var(--ink-soft); }
.about-body p.lead-para { color: var(--ink); }

.about-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 92px;
}
.side-title { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.tick-list li {
  position: relative; padding-left: 26px; padding-block: 7px;
  font-size: .93rem; color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}
.tick-list li:last-child { border-bottom: 0; }
.tick-list li::before {
  content: ""; position: absolute; left: 4px; top: 16px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--accent);
}
.side-cta { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.side-cta p { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .35rem; }
.side-cta a { color: var(--accent); text-decoration: none; font-weight: 500; word-break: break-word; }
.side-cta a:hover { text-decoration: underline; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card-num {
  font-family: var(--serif); font-size: .85rem; color: var(--accent);
  letter-spacing: .08em; display: block; margin-bottom: .9rem;
}
.card h3 { font-size: 1.16rem; margin-bottom: .6rem; }
.card > p { color: var(--muted); font-size: .94rem; }
.card ul { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); }
.card ul li {
  position: relative; padding-left: 18px; font-size: .88rem; color: var(--ink-soft); padding-block: 3px;
}
.card ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* ---------- Projects ---------- */
.projects { display: grid; gap: clamp(32px, 5vw, 64px); }
.project {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(24px, 4vw, 52px); align-items: center;
}
.project--reverse .project-media { order: 2; }

.project-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media--hungu { background: linear-gradient(140deg, #1B2430 0%, #2B3A4A 45%, var(--accent) 260%); }
.project-media--zonke { background: linear-gradient(140deg, #2A1B30 0%, #46284A 50%, var(--accent) 240%); }
.media-lines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.10) 0 1px, transparent 1px 13px);
  mask-image: linear-gradient(105deg, #000 10%, transparent 85%);
  -webkit-mask-image: linear-gradient(105deg, #000 10%, transparent 85%);
}
.project-media--hair  { background: linear-gradient(140deg, #2B1A20 0%, #5A2D3C 50%, var(--accent) 250%); }
.media-weave {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.12) 0 2px, transparent 2px 15px);
  mask-image: linear-gradient(200deg, #000 12%, transparent 88%);
  -webkit-mask-image: linear-gradient(200deg, #000 12%, transparent 88%);
}
.media-orbs {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 24% 32%, rgba(255,255,255,.22) 0 10px, transparent 11px),
    radial-gradient(circle at 68% 58%, rgba(255,255,255,.16) 0 22px, transparent 23px),
    radial-gradient(circle at 46% 78%, rgba(255,255,255,.12) 0 15px, transparent 16px);
}
.media-tag {
  position: relative;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
  backdrop-filter: blur(6px);
}
.project-kicker { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; font-weight: 600; }
.project-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.project-body h3 a { text-decoration: none; }
.project-body h3 a:hover { color: var(--accent); }
.arrow { font-size: .7em; margin-left: .3em; color: var(--accent); }
.project-body > p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.2rem; }
.tags li {
  font-size: .8rem; color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px;
  background: var(--surface);
}

@media (max-width: 820px) {
  .project, .project--reverse { grid-template-columns: 1fr; }
  .project--reverse .project-media { order: 0; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.steps li { background: var(--bg-alt); padding: clamp(24px, 3vw, 34px); }
.step-num {
  font-family: var(--serif); font-size: 1.6rem; color: var(--accent);
  display: block; margin-bottom: .8rem; letter-spacing: -.02em;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.steps p { color: var(--muted); font-size: .91rem; margin: 0; }

/* ---------- Contact ---------- */
.section--contact { border-top: 1px solid var(--line-soft); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.contact-details { margin-top: 2.2rem; display: grid; gap: 1.1rem; }
.contact-details dt {
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .2rem;
}
.contact-details dd { margin: 0; font-size: .97rem; }
.contact-details a { color: var(--accent); text-decoration: none; word-break: break-word; }
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 1.05rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 500;
  margin-bottom: .4rem; color: var(--ink-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .95rem;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C0392B; }
.error { color: #C0392B; font-size: .8rem; margin: .35rem 0 0; min-height: 0; }
.field.has-error .error { min-height: 1.2em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin: .9rem 0 0; font-size: .89rem; min-height: 1.3em; }
.form-status.is-ok { color: #1F7A4D; }
.form-status.is-error { color: #C0392B; }
.form-note { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--accent); }

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 60px);
  padding-bottom: calc(clamp(40px, 6vw, 60px) + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start;
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; max-width: 40ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.footer-nav a { text-decoration: none; font-size: .9rem; color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; margin: 1.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Service pages — /services/ and /services/<slug>/
   ========================================================================== */

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(36px, 6vw, 64px) clamp(44px, 7vw, 76px);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; z-index: 0;
  width: 560px; height: 560px; top: -300px; right: -160px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
}
.page-hero > .shell { position: relative; z-index: 1; }
.page-title { max-width: 18ch; margin-bottom: 1.1rem; }
.page-hero .lede { max-width: 58ch; }
.page-hero .hero-actions { margin-top: 1.8rem; }

/* ---------- Breadcrumbs ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: .82rem; color: var(--muted);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span[aria-hidden] { opacity: .45; }
.crumbs [aria-current] { color: var(--ink); }

/* ---------- Linked cards on the services index ---------- */
.card--link {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.card--link p { flex: 1; }
.card-more {
  margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .88rem; font-weight: 500; color: var(--accent);
}
.card--link:hover .card-more span { display: inline-block; transform: translateX(3px); transition: transform .18s ease; }

/* A service card on the homepage links through to its page. */
.card-link {
  display: inline-block; margin-top: 1.1rem;
  font-size: .88rem; font-weight: 500; color: var(--accent);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }
.card-link span { display: inline-block; transition: transform .18s ease; }
.card:hover .card-link span { transform: translateX(3px); }

/* ---------- Steps on a light section ---------- */
.steps--plain li { background: var(--surface); }

/* ---------- Deliverables ---------- */
.deliverables {
  margin-top: clamp(32px, 5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 34px);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}
.deliverables h3 {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 600; margin-bottom: 1rem;
}

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  max-width: 860px;
}
.faq-item + .faq-item { border-top: 1px solid var(--line-soft); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: clamp(16px, 2.4vw, 22px) clamp(48px, 6vw, 60px) clamp(16px, 2.4vw, 22px) clamp(18px, 2.6vw, 26px);
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  transition: color .18s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: "+";
  position: absolute; right: clamp(18px, 2.6vw, 26px); top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; line-height: 1; color: var(--accent);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 clamp(48px, 6vw, 60px) clamp(18px, 2.6vw, 24px) clamp(18px, 2.6vw, 26px);
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- Closing call to action ---------- */
.cta-band { border-top: 1px solid var(--line-soft); }
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(20px, 4vw, 44px);
}
.cta-inner .title { max-width: 16ch; margin-bottom: .6rem; }
.cta-inner .section-sub { margin-top: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Previous / next service ---------- */
.pager { border-top: 1px solid var(--line); background: var(--bg-alt); }
.pager-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.pager-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: clamp(22px, 3vw, 30px) 0;
  text-decoration: none;
  transition: color .18s ease;
}
.pager-link span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager-link strong { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; letter-spacing: -.01em; }
.pager-link:hover strong { color: var(--accent); }
.pager-link--next { text-align: right; align-items: flex-end; }

@media (max-width: 640px) {
  .pager-inner { grid-template-columns: 1fr; }
  .pager-link--next { text-align: left; align-items: flex-start; border-top: 1px solid var(--line); }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1; }
}

/* ==========================================================================
   Transport gallery + video viewer (transportation-logistics service page)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.gallery-item {
  position: relative;
  padding: 0; margin: 0; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  cursor: zoom-in;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.video-card {
  position: relative;
  padding: 0; margin: 0; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
  cursor: pointer;
  display: block;
  max-height: 420px;
}
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-card video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.video-play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center;
  font-size: 1.1rem;
  pointer-events: none;
  transition: transform .18s ease, background-color .18s ease;
}
.video-card:hover .video-play { transform: scale(1.08); background: var(--accent); }
.video-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff; font-size: .82rem; text-align: left;
  pointer-events: none;
}
.video-card.is-playing .video-play,
.video-card.is-playing .video-caption { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 9, 11, .92);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top, 20px) 20px calc(env(safe-area-inset-bottom, 20px) + 10px);
}
.lightbox[hidden] { display: none; }
.lightbox-stage { max-width: min(92vw, 1100px); max-height: 78vh; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img { max-width: 100%; max-height: 78vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-caption { color: #EDEEF2; font-size: .88rem; margin: 16px 0 0; text-align: center; max-width: 60ch; }

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 50%;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .18s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.18); }
.lightbox-close { top: calc(env(safe-area-inset-top, 0px) + 16px); right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .video-card { max-height: 320px; }
}

/* ---------- Inline call/WhatsApp band (service hero) ---------- */
.contact-band {
  margin: 1.6rem 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: inline-block;
  font-size: .92rem;
  line-height: 1.7;
}
.contact-band-area {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.contact-band-numbers a { color: var(--accent); text-decoration: none; font-weight: 500; }
.contact-band-numbers a:hover { text-decoration: underline; }

/* ---------- Service page hero with a flyer carousel (opt-in) ---------- */
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

/* One slot; every flyer is stacked on top of it and cross-faded by
   main.js toggling .is-active. Sized like the site's other hero images. */
.hero-flyer-carousel {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 700 / 1050;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg-alt);
}
.flyer-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.flyer-slide.is-active { opacity: 1; pointer-events: auto; }
.flyer-slide img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
.flyer-dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex; justify-content: center; gap: 8px;
  z-index: 2;
}
.flyer-dot {
  width: 8px; height: 8px; padding: 0; margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.flyer-dot.is-active { background: #fff; transform: scale(1.15); }
.flyer-dot:hover { background: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .hero-flyer-carousel { justify-self: center; order: -1; max-width: 300px; }
}

/* ---------- Website Development: shipped projects showcase ---------- */
.project-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.project-card-thumb { display: block; aspect-ratio: 900 / 562; overflow: hidden; background: var(--bg-alt); }
.project-card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.project-card:hover .project-card-thumb img { transform: scale(1.04); }
.project-card-body { padding: clamp(18px, 2.4vw, 24px); flex: 1; display: flex; flex-direction: column; }
.project-card-body h3 { font-size: 1.05rem; margin-bottom: .6rem; }
.project-card-body h3 a { text-decoration: none; }
.project-card-body h3 a:hover { color: var(--accent); }
.project-card-body > p { color: var(--muted); font-size: .9rem; flex: 1; }
.project-card-links {
  margin: 1rem 0 0; padding-top: .9rem;
  border-top: 1px solid var(--line-soft);
  font-size: .85rem;
}
.project-card-links a { color: var(--accent); text-decoration: none; font-weight: 500; }
.project-card-links a:hover { text-decoration: underline; }

/* ---------- Homepage hero portrait carousel ---------- */
.hero-portrait-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}

/* ---------- Training materials carousel (Data Engineering page) ---------- */
.materials-carousel {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 842 / 595;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--bg-alt);
}
.materials-carousel .flyer-slide { cursor: pointer; }
.material-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
  color: #fff; font-size: .88rem; font-weight: 500;
  pointer-events: none;
}

/* ---------- Capacity-building context + capstone (Data Engineering page) --- */
.capacity-copy { max-width: 74ch; }
.capacity-copy p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.capacity-copy p + p { margin-top: 1.1em; }

.capstone-body { max-width: 74ch; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; margin-bottom: 1.6rem; }
.capstone-tools {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 24px; max-width: 900px; margin-bottom: 1.8rem;
}
.capstone-tools li { font-size: .93rem; color: var(--ink-soft); padding-left: 16px; position: relative; }
.capstone-tools li::before { content: "\2014"; position: absolute; left: 0; color: var(--accent); }
.capstone-tools li strong { color: var(--ink); font-weight: 600; }
.capstone-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none; font-weight: 500; font-size: .97rem;
}
.capstone-link a:hover { text-decoration: underline; }
