/* =========================================================================
   PHIRI MEDIA — Design System (dark theme)
   Brand colours extracted directly from the Phiri Media mark, kept intact so
   they pop against the near-black canvas:
   Crimson #ED3E32 · Cobalt #0189CE · Teal #00BAAD · Marigold #FB9B22
   Surfaces run #121010 (page) → #1B1817 (cards) → #201C1D (contrast bands).
   Typography: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
   ========================================================================= */

:root {
  color-scheme: dark;

  /* Brand palette (unchanged — pulled straight from the Phiri Media mark) */
  --crimson: #ED3E32;
  --crimson-dark: #C72E24;
  --cobalt: #0189CE;
  --cobalt-dark: #04659C;
  --teal: #00BAAD;
  --teal-dark: #018679;
  --marigold: #FB9B22;
  --marigold-dark: #DE7E0B;

  /* Deepest neutral — used for the highest-contrast dark sections */
  --ink: #201C1D;
  /* Secondary text tone (light, for use on the dark UI) */
  --ink-soft: #CFC8BE;

  /* Neutrals — dark theme */
  --white: #FFFFFF;
  --paper: #121010;
  --sand: #1C1918;
  --line: #34302C;
  --muted: #9A928A;

  /* Semantic */
  --bg: var(--paper);
  --surface: #1B1817;
  --text: #F4EFE8;
  --text-muted: var(--muted);
  --brand-primary: var(--crimson);
  --brand-secondary: var(--cobalt);
  --focus-ring: var(--cobalt);
  --surface-2: #241F1B;   /* second panel tone */

  /* Type */
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  /* Rhythm */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
  --shadow-md: 0 14px 34px rgba(0,0,0,0.48);
  --shadow-lg: 0 26px 64px rgba(0,0,0,0.58);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h1, h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; }
p { color: var(--text-muted); }
p.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 108px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 12px; } .gap-md { gap: 20px; } .gap-lg { gap: 32px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--crimson); border-radius: 2px; }

.text-center { text-align: center; }
.muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px;
  font-weight: 700; font-size: 0.98rem; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--crimson); color: var(--white); box-shadow: 0 10px 24px rgba(237,62,50,0.28); }
.btn-primary:hover { background: var(--crimson-dark); box-shadow: 0 14px 30px rgba(237,62,50,0.34); }
.btn-secondary { background: rgba(255,255,255,0.10); color: var(--white); border-color: rgba(255,255,255,0.14); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-ghost-light { background: rgba(255,255,255,0.14); color: var(--white); border-color: rgba(255,255,255,0.5); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.24); }
.btn-whatsapp { background: #25D366; color: var(--white); }
.btn-whatsapp:hover { background: #1DA851; }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* ---------- Header / Nav — floating rounded bar ---------- */
.site-header {
  position: sticky; top: 12px; z-index: 100;
  width: min(1180px, calc(100% - 24px));
  margin: 12px auto 0;
  display: flex; align-items: center;
  padding: 8px 8px 8px 20px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.36);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 18px 44px rgba(0,0,0,0.5); background: color-mix(in srgb, var(--surface) 94%, transparent); }
.site-header .container { max-width: none; padding-inline: 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); position: relative; padding-block: 6px; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px;
  background: var(--marigold); transition: right .22s ease; border-radius: 3px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { right: 0; }
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 12px 22px; }
.nav-call { display: none; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); margin-inline: auto; border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed; inset: 80px 10px auto 10px; z-index: 90;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 12px 18px; gap: 2px; transform: translateY(-8px);
    border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.55);
    max-height: calc(100dvh - 100px); overflow-y: auto;
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(56px, 9vw, 108px); padding-bottom: clamp(56px, 9vw, 108px);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: clamp(280px, 40vw, 480px); object-fit: cover; }
.hero-media::before {
  content: ""; position: absolute; inset: -18px -18px auto auto; width: 160px; height: 160px;
  background: radial-gradient(circle at 30% 30%, var(--marigold), transparent 70%); opacity: .5; filter: blur(6px); z-index: -1;
}
.hero-stat-card {
  position: absolute; left: -18px; bottom: -22px; background: var(--surface);
  border-radius: var(--radius-md); padding: 16px 20px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px; max-width: 240px;
}
.hero-stat-card strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--crimson); }
.hero-stat-card span { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-stat-card { left: 10px; bottom: -16px; }
}

/* Decorative dot-cluster echoing the logo mark */
.blob-field { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .16; }

/* ---------- Sections on tinted / dark backgrounds ---------- */
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--white); }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink p { color: rgba(255,255,255,0.72); }
.gradient-brand { background: linear-gradient(120deg, var(--crimson) 0%, var(--marigold) 45%, var(--cobalt) 100%); color: var(--white); }
.gradient-brand h2, .gradient-brand h3 { color: var(--white); }
.gradient-brand p { color: rgba(255,255,255,0.88); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Service card */
.service-card { display: flex; flex-direction: column; gap: 16px; }
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--white); flex-shrink: 0;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: 0.95rem; margin: 0; }
.service-card .tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-size: 0.74rem; font-weight: 700; padding: 5px 11px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.07); color: var(--ink-soft);
}
.service-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.88rem; color: var(--crimson); }
.service-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.service-card:hover .service-link svg { transform: translateX(3px); }

/* icon bg color helpers */
.bg-crimson { background: var(--crimson); } .bg-cobalt { background: var(--cobalt); }
.bg-teal { background: var(--teal); } .bg-marigold { background: var(--marigold); } .bg-ink { background: var(--ink); }

/* Process steps */
.process-step { position: relative; padding-left: 0; }
.process-num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.18); display: block; margin-bottom: 6px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { font-size: 0.92rem; margin: 0; }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.4rem); color: var(--marigold); }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
@media (max-width: 720px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Portfolio ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn {
  padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--line);
  font-weight: 700; font-size: 0.86rem; color: var(--ink-soft); background: var(--surface);
  transition: all .18s ease;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.is-active { background: var(--crimson); color: var(--white); border-color: var(--crimson); }

.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .portfolio-grid { grid-template-columns: 1fr; } }

.portfolio-item { border-radius: var(--radius-md); overflow: hidden; position: relative; background: var(--ink); box-shadow: var(--shadow-sm); }
.portfolio-item .thumb-wrap { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-item:hover img { transform: scale(1.07); }
.portfolio-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: linear-gradient(180deg, transparent 40%, rgba(20,17,17,0.92) 100%);
  opacity: 0; transition: opacity .25s ease;
}
.portfolio-item:hover .portfolio-overlay, .portfolio-item:focus-within .portfolio-overlay { opacity: 1; }
.portfolio-overlay .cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marigold); }
.portfolio-overlay h3 { color: var(--white); font-size: 1.05rem; margin-top: 4px; }
.portfolio-overlay p { color: rgba(255,255,255,0.78); font-size: 0.86rem; margin-top: 6px; }
.portfolio-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius-md); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 700; font-size: 0.88rem; }
.field .req { color: var(--crimson); }
.field input, .field select, .field textarea {
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.98rem; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(1,137,206,0.14);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: -6px; }

.alert { padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.94rem; margin-bottom: 24px; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: rgba(0,186,173,0.12); color: #4FD6C7; border: 1px solid rgba(0,186,173,0.35); }
.alert-error { background: rgba(237,62,50,0.12); color: #F5867C; border: 1px solid rgba(237,62,50,0.38); }

/* ---------- Contact info blocks ---------- */
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--line); }
.contact-card .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.contact-card h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-card a, .contact-card p { font-size: 0.92rem; }
.map-embed { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  width: min(1180px, calc(100% - 24px));
  margin: clamp(16px, 3vw, 28px) auto clamp(20px, 4vw, 40px);
  background: var(--surface-2); color: rgba(255,255,255,0.72);
  border: 1px solid var(--line); border-top: 3px solid var(--crimson);
  border-radius: 20px; padding: clamp(40px, 6vw, 60px) clamp(24px, 5vw, 56px) 30px;
}
.site-footer .container { max-width: none; padding-inline: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 8.75rem; height: auto; margin-bottom: 0.875rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.68); transition: color .15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 6px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--crimson); border-color: var(--crimson); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--white); padding: 14px 18px; border-radius: var(--radius-pill);
  box-shadow: 0 12px 30px rgba(37,211,102,0.4); font-weight: 700; font-size: 0.9rem;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.whatsapp-float .wa-label { display: none; }
@media (min-width: 640px) { .whatsapp-float .wa-label { display: inline; } }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(1.75rem); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Misc ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover; }
.check-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.96rem; color: var(--ink-soft); }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }

.faq-item { border-bottom: 1px solid var(--line); padding-block: 20px; }
.faq-item summary { cursor: pointer; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--crimson); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: 0.94rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white);
  padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

.page-hero {
  padding-top: clamp(48px, 8vw, 84px); padding-bottom: clamp(40px, 6vw, 64px);
  background: var(--sand); position: relative; overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--crimson); }

/* =========================================================================
   PHIRI MEDIA — panel design language (one-pager)
   Rounded surface panels floating on the near-black page, each with a brand
   gradient wedge in a corner. Organic blob-masked photos with a colour echo
   behind them, floating "spec" cards, split display headlines with the key
   word in crimson, a crimson rule beside body copy, circle+label affordances,
   dotted-grid texture, and work-thumbnail strips.
   ========================================================================= */

html { scroll-padding-top: 6.5rem; }
section[id] { scroll-margin-top: 6.5rem; }

.nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after { right: 0; }
.btn svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ---- page rhythm: stacked panels (home only; .panel is home-only) ---- */
main > .panel:first-child { margin-top: clamp(0.875rem, 2vw, 1.25rem); }
.panel + .panel { margin-top: clamp(0.875rem, 2vw, 1.375rem); }
.panel {
  position: relative;
  width: min(73.75rem, calc(100% - 1.5rem));
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 2.6vw, 2.125rem);
  box-shadow: 0 1.75rem 4.25rem rgba(0,0,0,0.42);
  padding: clamp(1.875rem, 5.5vw, 3.875rem) clamp(1.375rem, 5vw, 3.75rem);
  overflow: hidden;
}
.panel > * { position: relative; z-index: 1; }
.panel--2 { background: var(--surface-2); }
.panel--loud {
  background: linear-gradient(125deg, var(--crimson) 0%, #F2662C 50%, var(--marigold) 100%);
  border-color: transparent;
}

/* brand gradient wedge — corner accent (clipped by panel radius) */
.wedge {
  position: absolute; z-index: 0; pointer-events: none;
  width: 12.5rem; height: 12.5rem; border-radius: 3.625rem;
  background: linear-gradient(135deg, var(--crimson), var(--marigold));
  transform: rotate(22deg); opacity: 0.8;
}
.wedge--tr { top: -7.25rem; right: -6.875rem; }
.wedge--bl { bottom: -7.5rem; left: -6.75rem; opacity: 0.5; }

/* dotted-grid texture */
.dots {
  position: absolute; z-index: 0; width: 7.25rem; height: 9.25rem;
  pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(var(--muted) 0.09rem, transparent 0.1rem);
  background-size: 0.9375rem 0.9375rem;
}

/* ---- typography helpers ---- */
.h-split {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.035em; line-height: 0.92; color: var(--text);
  font-size: clamp(2rem, 4.8vw, 3.6rem);
}
.h-split .hl { color: var(--crimson); }
.lede-bar {
  position: relative; padding-left: 1.25rem;
  color: var(--ink-soft); font-size: clamp(1rem, 1.4vw, 1.14rem); max-width: 54ch;
}
.lede-bar::before {
  content: ""; position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem;
  width: 0.25rem; border-radius: 0.25rem; background: var(--crimson);
}
.sect-head { max-width: 45rem; margin-bottom: clamp(1.75rem, 4.5vw, 3.25rem); }
.sect-head .h-split { margin-bottom: 0.875rem; }
.sect-head--center { margin-inline: auto; text-align: center; }
.sect-head--center .eyebrow { justify-content: center; }
.sect-head--center .lede-bar { padding-left: 0; max-width: 58ch; margin-inline: auto; }
.sect-head--center .lede-bar::before { display: none; }

/* ---- blob visual + echo + dot + spec card ---- */
.blob-visual { position: relative; padding: 7% 8% 10% 5%; }
.blob-visual::before {
  content: ""; position: absolute; inset: 0;
  background: var(--crimson); opacity: 0.24;
  border-radius: 54% 46% 41% 59% / 57% 42% 58% 43%;
  transform: translate(-6%, 6%) rotate(-6deg);
  filter: blur(0.25rem);
}
.blob-shot {
  position: relative; z-index: 1; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 54% 46% 41% 59% / 57% 42% 58% 43%;
  box-shadow: 0 1.75rem 3.5rem rgba(0,0,0,0.5);
}
.blob-shot img, .blob-shot picture { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.blob-dot {
  position: absolute; z-index: 2; top: 11%; left: 1%;
  width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--marigold);
  box-shadow: 0 0.375rem 1.125rem rgba(251,155,34,0.5);
}
.spec-card {
  position: absolute; z-index: 3;
  background: var(--text); color: var(--paper);
  border-left: 0.25rem solid var(--crimson); border-radius: 0.75rem;
  padding: 0.8rem 1.25rem 0.8rem 1rem; box-shadow: 0 1.125rem 2.5rem rgba(0,0,0,0.45);
}
.spec-card strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--crimson); line-height: 1; }
.spec-card span { display: block; font-size: 0.82rem; font-weight: 600; color: #4a4441; margin-top: 0.1875rem; }

/* ---- circle + label affordance ---- */
.circ-link { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 700; font-size: 0.9rem; color: var(--ink-soft); }
.circ-link .circ {
  width: 2.625rem; height: 2.625rem; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--text); flex-shrink: 0;
  transition: border-color .16s ease, color .16s ease, transform .16s ease;
}
.circ-link:hover .circ { border-color: var(--crimson); color: var(--crimson); transform: translateY(0.125rem); }
.circ-link svg { width: 1rem; height: 1rem; }

/* ---- work thumbnail strip — marquee, flows right, clipped inside the panel ---- */
.thumb-strip {
  position: relative; display: block; width: 100%;
  border: 1px solid var(--line); border-radius: 1rem;
  overflow: hidden;                       /* keeps the moving row inside its own box */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.thumb-track {
  display: flex; width: max-content; gap: 0.75rem;
  will-change: transform;
}
.thumb-track figure {
  margin: 0; flex: none;
  width: clamp(8.5rem, 24vw, 12rem);
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem; overflow: hidden;
}
.thumb-track img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-cta {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--text); color: var(--paper);
  font-size: 0.76rem; font-weight: 800; white-space: nowrap;
  padding: 0.55rem 1rem; border-radius: 999px;
  box-shadow: 0 0.625rem 1.5rem rgba(0,0,0,0.45);
  pointer-events: none;
}
.thumb-cta svg { width: 0.95rem; height: 0.95rem; }
.thumb-strip:hover .thumb-cta { background: var(--crimson); color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .thumb-track { animation: thumb-marquee 36s linear infinite; }
  .thumb-strip:hover .thumb-track { animation-play-state: paused; }
}
@keyframes thumb-marquee {
  from { transform: translateX(calc(-50% - 0.375rem)); }
  to   { transform: translateX(0); }
}

/* =================== HERO =================== */
.hero { padding-left: clamp(3.5rem, 8vw, 6.25rem); }
.hero-rail {
  position: absolute; left: clamp(0.6rem, 1.6vw, 1.4rem); top: 46%; transform: translateY(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero-rail .ico {
  width: 2.375rem; height: 2.375rem; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface-2);
  display: grid; place-items: center; color: var(--muted);
  transition: color .16s ease, border-color .16s ease, transform .16s ease;
}
.hero-rail .ico:hover { color: var(--crimson); border-color: var(--crimson); transform: translateY(-0.125rem); }
.hero-rail .ico svg { width: 1rem; height: 1rem; }

.hero-body { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.625rem, 4vw, 3.25rem); align-items: stretch; }
.hero-left  { display: flex; flex-direction: column; justify-content: space-between; gap: 1.625rem; min-width: 0; }
.hero-right { display: flex; flex-direction: column; justify-content: space-between; gap: clamp(1.5rem, 3vw, 2.375rem); min-width: 0; }
.hero-copy { position: relative; min-width: 0; }
.hero-copy .dots { right: -0.375rem; top: 2.5rem; z-index: -1; }
.hero-left > .blob-visual { align-self: stretch; }
.hero .spec-card { top: 3%; right: -3%; }
.hero-title { margin: 0.25rem 0 1.25rem; font-size: clamp(2.6rem, 6.4vw, 5rem); }
.hero-title .l { display: block; }
.hero-cta {
  margin-top: 1.625rem; display: inline-flex; align-items: center; gap: 0.625rem;
  background: var(--crimson); color: #fff; font-weight: 700; font-size: 1rem;
  padding: 0.9rem 1.9rem; border-radius: 0.75rem; border: 0;
  box-shadow: 0 0.875rem 1.875rem rgba(237,62,50,0.32);
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.hero-cta:hover { background: var(--crimson-dark); transform: translateY(-0.125rem); box-shadow: 0 1.125rem 2.375rem rgba(237,62,50,0.42); }
.hero-cta:active { transform: translateY(0); }
.hero-cta svg { width: 1.15em; height: 1.15em; }

/* =================== WORK =================== */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.875rem; }
#work .portfolio-item { border-radius: 1.125rem; border: 1px solid var(--line); }
#work .portfolio-item .thumb-wrap { aspect-ratio: 4 / 3; }
#work .portfolio-item:hover { border-color: var(--crimson); }
@media (hover: none) {
  .portfolio-overlay { opacity: 1; background: linear-gradient(180deg, transparent 42%, rgba(12,10,10,0.92) 100%); }
}
.work-foot { display: flex; justify-content: center; }

/* =================== SERVICES =================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.svc-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.125rem;
  box-shadow: 0 0.625rem 1.625rem rgba(0,0,0,0.32);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.svc-card:hover { border-color: var(--crimson); transform: translateY(-0.25rem); box-shadow: 0 1rem 2.125rem rgba(0,0,0,0.42); }
.svc-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.svc-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-card:hover .svc-card__img img { transform: scale(1.05); }
.svc-card__body { padding: 1.25rem 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.5625rem; flex: 1 1 auto; }
.svc-card__body h3 { font-size: 1.15rem; }
.svc-card__body p { font-size: 0.93rem; margin: 0; flex: 1 1 auto; color: var(--text-muted); }
.svc-card__link { margin-top: 0.25rem; display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 700; font-size: 0.85rem; color: var(--crimson); }
.svc-card__link svg { width: 0.9375rem; height: 0.9375rem; transition: transform .2s ease; }
.svc-card:hover .svc-card__link svg { transform: translateX(0.1875rem); }

/* =================== STUDIO =================== */
.studio-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(1.75rem, 5vw, 3.75rem); align-items: center; }
.studio-grid .blob-visual { align-self: center; }
.studio-grid .blob-shot { aspect-ratio: 5 / 4; }
.studio-grid .spec-card { bottom: 6%; right: -2%; top: auto; }
.kit-list { display: flex; flex-direction: column; gap: 0.625rem; margin: 1.25rem 0 1.5rem; }
.kit-list li { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.96rem; color: var(--ink-soft); }
.kit-list svg { width: 1.1875rem; height: 1.1875rem; flex-shrink: 0; color: var(--teal); margin-top: 0.125rem; }

/* =================== PROCESS =================== */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.step { position: relative; padding: 1.625rem 1.375rem 1.75rem; background: var(--surface); border: 1px solid var(--line); margin: -1px; }
.step::before { content: ""; position: absolute; top: 0; left: 1.375rem; width: 1.5rem; height: 0.1875rem; background: var(--crimson); }
.step b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--marigold); margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.375rem; }
.step p { font-size: 0.9rem; margin: 0; color: var(--text-muted); }

/* =================== CONTACT =================== */
.panel--loud .eyebrow { color: #fff; }
.panel--loud .eyebrow::before { background: rgba(255,255,255,0.85); }
.panel--loud .h-split { color: #fff; }
.panel--loud .h-split .hl { color: #1B0705; }
.contact-in { text-align: center; max-width: 40rem; margin-inline: auto; }
.contact-in .lede-bar { padding-left: 0; margin: 1rem auto 0; max-width: 46ch; color: rgba(255,255,255,0.92); }
.contact-in .lede-bar::before { display: none; }
.contact-cta {
  margin-top: 1.625rem; display: inline-flex; align-items: center; gap: 0.625rem;
  background: #1B0705; color: #fff; font-weight: 700; font-size: 1rem;
  padding: 0.9rem 1.9rem; border-radius: 0.75rem;
  transition: transform .16s ease, box-shadow .16s ease;
}
.contact-cta:hover { transform: translateY(-0.125rem); box-shadow: 0 1rem 2rem rgba(0,0,0,0.3); }
.contact-cta svg { width: 1.15em; height: 1.15em; }
.contact-lines {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem 1.75rem;
  margin-top: 1.375rem; font-weight: 700; font-size: 0.96rem; color: #fff;
}
.contact-lines a { border-bottom: 2px solid rgba(255,255,255,0.5); padding-bottom: 1px; }
.contact-lines a:hover { border-color: #fff; }
.contact-lines span { color: rgba(255,255,255,0.85); }

/* =================== MOTION — calm decorative drift ================== */
@media (prefers-reduced-motion: no-preference) {
  .blob-dot { animation: mk-bob 4.5s ease-in-out infinite; }
  .blob-visual::before { animation: mk-echo 13s ease-in-out infinite; }
  .wedge { animation: mk-wedge 26s ease-in-out infinite alternate; }
}
@keyframes mk-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.4rem); }
}
@keyframes mk-echo {
  0%, 100% { transform: translate(-6%, 6%) rotate(-6deg) scale(1); }
  50% { transform: translate(-3.5%, 8%) rotate(-3.5deg) scale(1.045); }
}
@keyframes mk-wedge {
  from { transform: rotate(20deg) scale(1); }
  to   { transform: rotate(26deg) scale(1.06); }
}

/* =================== responsive =================== */
@media (max-width: 61.25em) {   /* 980px */
  .hero { padding-left: clamp(1.375rem, 5vw, 3.75rem); }
  .hero-rail { display: none; }
  .hero-body { display: flex; flex-direction: column; gap: clamp(1.625rem, 5vw, 2.5rem); }
  .hero-left, .hero-right { display: contents; }
  .hero-copy    { order: 1; }
  .hero .blob-visual { order: 2; align-self: center; max-width: 26rem; margin-inline: auto; padding: 7% 9%; }
  .thumb-strip  { order: 3; }
  .hero .circ-link { order: 4; align-self: center; }
  .hero-copy .dots { display: none; }
  .hero .spec-card { right: 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .studio-grid .blob-visual { max-width: 30rem; margin-inline: auto; }
}
@media (max-width: 56.25em) {   /* 900px */
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 51.25em) {   /* 820px */
  .steps4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 38.75em) {   /* 620px */
  .work-grid { grid-template-columns: 1fr; }
}
@media (max-width: 35em) {      /* 560px */
  .svc-grid { grid-template-columns: 1fr; }
  .thumb-track figure { width: clamp(7.5rem, 44vw, 9.5rem); }
  .hero-title { font-size: clamp(2.3rem, 10.5vw, 3.1rem); }
  .studio-grid .spec-card { right: 0; }
  .spec-card { padding: 0.7rem 1rem 0.7rem 0.85rem; }
}
@media (max-width: 28.75em) {   /* 460px */
  .steps4 { grid-template-columns: 1fr; }
}

/* =========================================================================
   STATUS PAGES — 404, 503 (server down) and offline fallback
   Self-contained panel card in the site's design language. These pages also
   ship a tiny inline <style> so they stay readable even if this file can't
   be fetched (which is exactly what happens during an outage).
   ========================================================================= */
.statuspage {
  min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: var(--paper);
}
.statuspage__card {
  position: relative; overflow: hidden;
  width: min(38rem, 100%);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: clamp(1.25rem, 2.6vw, 2rem);
  box-shadow: 0 1.75rem 4.25rem rgba(0,0,0,0.42);
  padding: clamp(2rem, 6vw, 3.75rem);
  text-align: center;
}
.statuspage__card > * { position: relative; z-index: 1; }
.statuspage__wedge {
  position: absolute; z-index: 0; pointer-events: none;
  top: -7rem; right: -6.5rem; width: 12rem; height: 12rem;
  border-radius: 3.5rem;
  background: linear-gradient(135deg, var(--crimson), var(--marigold));
  transform: rotate(22deg); opacity: 0.85;
}
.statuspage__logo { width: 3rem; height: auto; margin: 0 auto 1.5rem; }
.statuspage__code {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(3.25rem, 13vw, 5.5rem); color: var(--crimson);
  margin: 0;
}
.statuspage__title {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin: 0.6rem 0 0.75rem; color: var(--text);
}
.statuspage__text {
  color: var(--ink-soft); font-size: 1rem;
  max-width: 40ch; margin: 0 auto 1.75rem;
}
.statuspage__actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center;
}
.statuspage__links {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap;
  gap: 0.35rem 1.25rem; justify-content: center; font-size: 0.85rem;
}
.statuspage__links a { color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 1px; }
.statuspage__links a:hover { color: var(--text); border-color: var(--crimson); }
@media (prefers-reduced-motion: no-preference) {
  .statuspage__wedge { animation: mk-wedge 26s ease-in-out infinite alternate; }
}
