/* ==========================================================================
   The Daly Creative — design system
   Hybrid "Overprint & Punctuation" + "Gradient Energy" (2026 revamp)
   Palette sampled from the brand reference board; all text pairings ≥ 4.5:1
   except where marked display-only. See docs/ for the full plan.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* master sunset palette */
  --purple-deep: #755095;
  --purple-mid: #A57ACC;
  --lilac: #BF94E3;
  --peach: #FFDEBF;
  --marigold: #FFA61E;
  --orange: #F97E14;
  --cerise: #E0369B;        /* display text / shapes only — 3.85 on cream */
  --cerise-deep: #C42280;   /* text-safe cerise — 5.40 on white */
  --teal: #14B8A6;
  --cream: #FFF8EF;
  --ink: #2A1E3F;
  --ink-soft: #5C5470;

  /* AI flavour */
  --ai-bg: #F5F7FE;
  --ai-ink: #0D0D12;
  --ai-grey: #555C6B;
  --ai-blue: #2450F0;
  --ai-yellow: #FFD21E;
  --ai-green: #0B7A55;

  /* Cyber flavour */
  --cy-plum: #46204F;
  --cy-plum-mid: #6B3178;
  --cy-lilac: #D9B8EC;

  /* Training flavour */
  --tr-mist: #EDF7F2;
  --tr-green: #0B6B52;
  --tr-blue: #1D5FA8;
  --tr-ink: #12312B;

  --font-display: 'Baloo 2', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  --step-0: clamp(0.95rem, 0.9rem + 0.2vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.6vw, 2.7rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.8vw, 3.9rem);

  --wrap: 1160px;
  --r-card: 20px;
  --r-pill: 999px;
  --shadow-soft: 0 18px 44px -22px rgba(42, 30, 63, 0.35);
  --gutter: clamp(20px, 4vw, 32px);
}

/* ---------- base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
p  { max-width: 65ch; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-deep); }
a:hover { color: var(--cerise); }
::selection { background: var(--marigold); color: var(--ink); }

:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 2.5px; border-radius: 4px; }
.flav-cyber :focus-visible, .on-dark :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--cream); font-weight: 700;
  padding: 12px 20px; border-radius: 0 0 12px 12px; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--cream); }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 30, 63, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 2.1rem;
  line-height: 1; color: var(--ink); text-decoration: none; letter-spacing: -0.03em;
}
.logo .stop { color: var(--orange); }
.logo:hover { color: var(--ink); }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  display: inline-block; padding: 10px 14px; border-radius: var(--r-pill);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.site-nav a:hover { background: var(--peach); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: var(--cream); }
/* hamburger → X button */
.nav-toggle {
  display: none; align-items: center; justify-content: center; gap: 5px;
  flex-direction: column; width: 48px; height: 48px; padding: 0;
  background: transparent; border: 2px solid var(--ink); border-radius: 14px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-only { display: none; }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }

  /* backdrop-filter would make the header a containing block for the fixed
     panel below, collapsing it to the header's height — solid bg instead */
  .site-header { backdrop-filter: none; background: var(--cream); }

  .site-nav {
    position: fixed; inset: 69px 0 0 0; z-index: 99;
    background: var(--cream); padding: 8px var(--gutter) 32px; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; }

  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid rgba(42, 30, 63, 0.1); }

  /* big tappable rows with a chevron affordance */
  .site-nav li > a:not(.btn) {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
    padding: 20px 4px; border-radius: 0; min-height: 60px;
  }
  .site-nav li > a:not(.btn)::after {
    content: "→"; font-family: var(--font-body); font-size: 1.15rem; color: var(--orange);
    transform: translateX(-4px); transition: transform 0.2s ease;
  }
  .site-nav li > a:not(.btn):hover { background: transparent; color: var(--purple-deep); }
  .site-nav li > a:not(.btn):hover::after { transform: translateX(0); }
  .site-nav a[aria-current="page"] {
    background: transparent; color: var(--purple-deep);
    box-shadow: inset 4px 0 0 var(--marigold); padding-left: 16px;
  }

  /* CTA gets its own full-width row, no divider */
  .site-nav li:has(> .btn) { border-bottom: none; padding-top: 22px; }
  .site-nav .btn { display: block; width: 100%; font-size: 1.05rem; padding: 17px 24px; }

  /* contact block at the foot of the panel */
  .mobile-only { display: block; }
  .nav-contact { margin-top: 28px; padding-top: 22px; border-top: 2px solid rgba(42, 30, 63, 0.12); }
  .nav-contact p { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
  .nav-contact a { display: block; font-weight: 600; padding: 7px 0; text-decoration: none; }
  .nav-contact .nav-socials { display: flex; gap: 18px; margin-top: 12px; }
  .nav-contact .nav-socials a { font-size: 0.92rem; }
}

/* ---------- buttons ----------
   Every variant is contrast-measured against the surface it sits on.
   Solid fills: ink-on-marigold 7.9 · white-on-purple 6.3 · white-on-plum 13.3
   · white-on-cerise-deep 5.4 · cream-on-ink 14.7. Plain cerise #E0369B is
   4.06 (large text only) so buttons use the deeper --cerise-deep instead. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  line-height: 1.2; letter-spacing: 0.005em;
  text-decoration: none; text-align: center; cursor: pointer;
  padding: 15px 30px; border-radius: var(--r-pill); border: none;
  min-height: 48px; position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* trailing arrow that eases out on hover — used by any variant via .btn-arrow */
.btn-arrow::after {
  content: "→"; font-size: 1.05em; line-height: 1;
  transition: transform 0.18s ease;
}
.btn:hover.btn-arrow::after, .btn-arrow:hover::after { transform: translateX(4px); }

/* 1 · primary — solid marigold, ink text, warm lift */
.btn-primary {
  background: var(--marigold); color: var(--ink);
  box-shadow: 0 10px 24px -12px rgba(249, 126, 20, 0.85);
}
.btn-primary:hover { background: #FFB63F; color: var(--ink); box-shadow: 0 14px 28px -12px rgba(249, 126, 20, 0.95); }

/* 2 · ink — maximum contrast, for quiet surfaces that need a hard stop */
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: #3A2B54; color: var(--cream); }

/* 3 · purple + 4 · cerise — coloured solids for variety within the palette */
.btn-purple { background: var(--purple-deep); color: #fff; box-shadow: 0 10px 24px -14px rgba(117, 80, 149, 0.9); }
.btn-purple:hover { background: #855EA8; color: #fff; }
.btn-cerise { background: var(--cerise-deep); color: #fff; box-shadow: 0 10px 24px -14px rgba(196, 34, 128, 0.9); }
.btn-cerise:hover { background: #D42A8C; color: #fff; }

/* 5 · outline — 2px keyline, fills with ink on hover */
.btn-outline, .btn-secondary {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-outline:hover, .btn-secondary:hover { background: var(--ink); color: var(--cream); }

/* 6 · ghost — text-weight action, underline grows from the left */
.btn-ghost {
  background: transparent; color: var(--purple-deep); padding: 12px 6px;
  min-height: 44px; border-radius: 6px;
}
.btn-ghost::before {
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.22s ease;
}
.btn-ghost:hover { color: var(--cerise-deep); transform: none; }
.btn-ghost:hover::before { transform: scaleX(1); }

/* 7 · on-dark — for plum CTA bands and the cyber flavour */
.btn-on-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85); }
.btn-on-dark:hover { background: #fff; color: var(--cy-plum); }
.btn-ghost-light { background: transparent; color: var(--cy-lilac); padding: 12px 6px; min-height: 44px; }
.btn-ghost-light:hover { color: #fff; transform: none; }

/* 8 · flavour buttons — inherit each service world's look */
.btn-ai {
  background: var(--ai-blue); color: #fff; border-radius: 12px;
  border: 2px solid var(--ai-ink); box-shadow: 4px 4px 0 var(--ai-ink);
}
.btn-ai:hover { background: #1B41D8; color: #fff; box-shadow: 6px 6px 0 var(--ai-ink); }
.btn-ai-alt {
  background: var(--ai-yellow); color: var(--ai-ink); border-radius: 12px;
  border: 2px solid var(--ai-ink); box-shadow: 4px 4px 0 var(--ai-ink);
}
.btn-ai-alt:hover { background: #FFDD4D; color: var(--ai-ink); box-shadow: 6px 6px 0 var(--ai-ink); }
.btn-train { background: var(--tr-green); color: #fff; box-shadow: 0 10px 24px -14px rgba(11, 107, 82, 0.9); }
.btn-train:hover { background: #0E8264; color: #fff; }

/* sizes */
.btn-sm { padding: 10px 20px; font-size: 0.9rem; min-height: 40px; }
.btn-lg { padding: 19px 38px; font-size: 1.1rem; min-height: 56px; }
.btn-block { display: flex; width: 100%; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--orange); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 10vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 .accent-a { color: var(--purple-deep); }
.hero h1 .accent-b { color: var(--cerise); }
.hero h1 .stop { color: var(--orange); }
.hero .lede { margin-top: 18px; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.55; }
.hero .btn-row { margin-top: 30px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35;
  pointer-events: none; z-index: 0;
}
.hero-grid > * { position: relative; z-index: 1; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
}

/* overprint compositions (decorative, aria-hidden) */
.op-art { position: relative; min-height: 300px; }
.op { position: absolute; mix-blend-mode: multiply; opacity: 0.88; }
.op-circle { border-radius: 50%; }
.op-bubble-l { border-radius: 48% 48% 48% 6%/ 52% 52% 52% 6%; }
.op-bubble-r { border-radius: 48% 48% 6% 48%/ 52% 52% 6% 52%; }
.op-punct {
  font-family: var(--font-display); font-weight: 800; line-height: 0.75;
  color: var(--purple-deep);
}

/* ---------- cards ---------- */
.card {
  background: #fff; border-radius: var(--r-card); padding: clamp(20px, 3vw, 30px);
  box-shadow: inset 0 0 0 1px rgba(42, 30, 63, 0.08);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }
.card-link { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* pillar cards (home) — accent bar per service world */
.pillar { position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; }
.pillar-brand::before { background: linear-gradient(180deg, var(--marigold), var(--cerise)); }
.pillar-ai::before { background: var(--ai-blue); }
.pillar-cyber::before { background: var(--cy-plum); }
.pillar-train::before { background: var(--tr-green); }
/* block, not inline — an inline span ignores width/height and lets the
   absolutely-positioned circles bleed over the heading below it */
.icon-cluster { display: block; position: relative; width: 56px; height: 38px; margin-bottom: 16px; }
.icon-cluster i { position: absolute; top: 0; width: 34px; height: 34px; border-radius: 50%; mix-blend-mode: multiply; opacity: 0.9; }

/* project cards — a defined edge and lift, so pale screenshots (framers,
   dora health) don't dissolve into a light section background */
.project-card, .project-mini {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  box-shadow:
    inset 0 0 0 1px rgba(42, 30, 63, 0.12),
    0 2px 4px rgba(42, 30, 63, 0.05),
    0 14px 30px -16px rgba(42, 30, 63, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.project-card:hover, .project-mini:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 0 1px rgba(117, 80, 149, 0.4),
    0 20px 42px -16px rgba(42, 30, 63, 0.34);
}
.project-card img, .project-mini img {
  aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%;
  background: #EFEAF5;
  border-bottom: 1px solid rgba(42, 30, 63, 0.14); /* separates white screenshots from white card */
}
.project-card .project-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.project-card .project-body .card-link { margin-top: auto; padding-top: 12px; }

/* compact card for the long-tail lists */
.project-mini .project-body { padding: 16px 18px; }
.project-mini h3 { font-size: 1.05rem; }
.project-mini p { font-size: 0.88rem; margin-top: 4px; }

/* sub-heading inside a category, for grouping like work by type */
.subhead {
  display: flex; align-items: center; gap: 14px; margin: 40px 0 18px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft);
}
.subhead::after { content: ""; flex: 1; height: 1px; background: rgba(42, 30, 63, 0.14); }
.subhead:first-of-type { margin-top: 0; }

/* featured case study — device breakdown */
.case-study { background: var(--cy-plum); color: #fff; border-radius: var(--r-card); overflow: hidden; }
.case-study .case-head { padding: clamp(26px, 4vw, 44px); }
.case-study h2, .case-study h3 { color: #fff; }
.case-study .case-head p { color: var(--cy-lilac); }
.case-study .kicker { color: var(--cy-lilac); }
.case-study .kicker::before { background: var(--marigold); }
/* --- wall-mounted TV frame: the lobby board's real-world context --- */
.tv-mount { padding: 0 clamp(26px, 4vw, 44px) clamp(24px, 3vw, 34px); }
.tv-frame {
  position: relative; border-radius: 16px; padding: clamp(10px, 1.2vw, 16px);
  background: linear-gradient(180deg, #34323A 0%, #1B1A1F 55%, #121116 100%);
  box-shadow:
    0 50px 80px -34px rgba(0, 0, 0, 0.75),   /* cast onto the wall */
    0 8px 0 -2px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.tv-screen { position: relative; border-radius: 5px; overflow: hidden; background: #000; }
.tv-screen img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
/* screen glare */
.tv-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(104deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.03) 34%, rgba(255, 255, 255, 0) 56%);
}
.tv-led {
  position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: #56E08B; box-shadow: 0 0 9px #56E08B;
}
.tv-caption {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 16px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--marigold); text-align: center;
}
.tv-caption::before, .tv-caption::after { content: ""; width: 26px; height: 2px; background: rgba(255, 255, 255, 0.28); }

/* --- vertical carousel (admin panel tabs) --- */
.carousel { display: flex; flex-direction: column; height: 100%; }
.carousel-viewport {
  position: relative; border-radius: 10px; overflow: hidden; background: #0E0A12;
  aspect-ratio: 16 / 10;
  overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none;
}
.carousel-viewport::-webkit-scrollbar { display: none; }
.carousel-track { list-style: none; margin: 0; padding: 0; }
/* aspect-ratio, not height:100% — the track is auto-height, so a percentage
   height is circular and leaves the next slide peeking in */
.carousel-slide { position: relative; aspect-ratio: 16 / 10; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.carousel-slide .slide-tag {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(18, 10, 24, 0.86); color: #fff; padding: 5px 11px; border-radius: var(--r-pill);
  backdrop-filter: blur(4px);
}
.carousel-ui { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.carousel-ui button {
  flex: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 0.95rem; line-height: 1;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  transition: background 0.15s ease;
}
.carousel-ui button:hover { background: rgba(255, 255, 255, 0.26); }
.carousel-status { font-size: 0.78rem; font-weight: 600; color: var(--cy-lilac); flex: 1; text-align: center; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.carousel-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); transition: background 0.2s ease, transform 0.2s ease; }
.carousel-dots i.on { background: var(--marigold); transform: scale(1.4); }

.device-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 18px; padding: 0 clamp(26px, 4vw, 44px) clamp(26px, 4vw, 44px); align-items: start; }
.device {
  background: rgba(255, 255, 255, 0.07); border-radius: 16px; padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  display: flex; flex-direction: column;
}
.device img { border-radius: 8px; width: 100%; background: #1D0E24; }
.device .device-label {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--marigold);
}
.device h3 { font-size: 1.05rem; margin-top: 6px; }
.device p { font-size: 0.86rem; color: var(--cy-lilac); margin-top: 5px; }
/* each device frame hints at its real-world aspect */
.device-tv img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top; }
.device-tablet img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.device-phone img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
@media (max-width: 980px) { .device-grid { grid-template-columns: 1fr 1fr; } .device-admin { grid-column: 1 / -1; } }
@media (max-width: 700px) { .device-grid { grid-template-columns: 1fr; } .device-admin { grid-column: auto; } }

/* work page category nav */
.cat-nav { position: sticky; top: 69px; z-index: 90; background: rgba(255, 248, 239, 0.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(42, 30, 63, 0.09); overflow-x: auto; }
.cat-nav ul { display: flex; gap: 4px; list-style: none; padding-block: 10px; }
.cat-nav a { display: inline-block; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 0.88rem; color: var(--ink); padding: 8px 14px; border-radius: var(--r-pill); }
.cat-nav a:hover { background: var(--peach); color: var(--ink); }
.cat-nav a.active { background: var(--ink); color: var(--cream); }
@media (max-width: 820px) { .cat-nav { top: 69px; backdrop-filter: none; background: var(--cream); } }

/* count chip beside category headings */
.count-chip {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 700;
  background: var(--peach); color: #7A4400; padding: 3px 12px; border-radius: var(--r-pill);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
  background: var(--peach); color: #7A4400; padding: 4px 12px; border-radius: var(--r-pill);
}

/* testimonial + stat */
.quote-card { position: relative; padding-top: 44px; }
.quote-card::before {
  content: "\201C"; position: absolute; top: 6px; left: 18px;
  font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 1;
  color: var(--cerise); opacity: 0.85;
}
.quote-card figcaption { margin-top: 14px; font-weight: 700; font-size: 0.9rem; }
.quote-card figcaption span { display: block; font-weight: 500; color: var(--ink-soft); }
.stat { text-align: center; }
.stat strong { font-family: var(--font-display); font-size: var(--step-3); color: var(--purple-deep); display: block; line-height: 1; }
.stat span { color: var(--ink-soft); font-size: 0.9rem; }

/* process steps */
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem;
  color: var(--orange); line-height: 1; display: block; margin-bottom: 8px;
}

/* about timeline */
.timeline { list-style: none; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: linear-gradient(180deg, var(--marigold), var(--cerise), var(--purple-deep)); }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -28px; top: 6px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--cream); border: 4px solid var(--purple-deep);
}
.timeline .when { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cerise); }
.timeline h3 { margin-top: 4px; }
.timeline .where { font-weight: 600; color: var(--purple-deep); font-size: 0.95rem; }
.timeline p { margin-top: 6px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- flavoured service sections ---------- */
.flav-ai { background: var(--ai-bg); color: var(--ai-ink); }
.flav-ai .kicker { color: var(--ai-grey); }
.flav-ai .kicker::before { background: var(--ai-yellow); }
.flav-ai h2 { color: var(--ai-blue); }
.flav-ai .section-head p { color: var(--ai-grey); }
.flav-ai .card { border-radius: 14px; border: 2px solid var(--ai-ink); box-shadow: 5px 5px 0 var(--ai-ink); }
.flav-ai .card h3 { color: var(--ai-ink); }
.flav-ai .card p, .flav-ai .card li { color: var(--ai-grey); }
.flav-ai .card-link { color: var(--ai-green); }
.flav-ai .pill-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--ai-yellow); color: var(--ai-ink);
  border: 1.5px solid var(--ai-ink); border-radius: var(--r-pill);
  padding: 3px 11px; margin-bottom: 12px;
}
.flav-ai .check-list li::before { color: var(--ai-green); }

.flav-cyber { background: var(--cy-plum); color: #fff; }
.flav-cyber .kicker { color: var(--cy-lilac); }
.flav-cyber .kicker::before { background: var(--cerise); }
.flav-cyber h2, .flav-cyber h3 { color: #fff; }
.flav-cyber .section-head p { color: var(--cy-lilac); }
.flav-cyber .card { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.flav-cyber .card p, .flav-cyber .card li { color: var(--cy-lilac); }
.flav-cyber .card.solid { background: #fff; box-shadow: none; }
.flav-cyber .card.solid h3 { color: var(--cy-plum); }
.flav-cyber .card.solid p, .flav-cyber .card.solid li { color: #5A3D63; }
.flav-cyber .stat strong { color: var(--marigold); }
.flav-cyber .stat span { color: var(--cy-lilac); }
.flav-cyber a { color: var(--cy-lilac); }
.flav-cyber .check-list li::before { color: var(--marigold); }

.flav-train { background: linear-gradient(135deg, #DFF2E9 0%, var(--tr-mist) 45%, #DFEAF6 100%); color: var(--tr-ink); }
.flav-train .kicker { color: #3C554D; }
.flav-train .kicker::before { background: var(--tr-green); }
.flav-train h2 { color: var(--tr-green); }
.flav-train .section-head p { color: #3C554D; }
.flav-train .card { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(18, 49, 43, 0.12); }
.flav-train .card h3 { color: var(--tr-ink); }
.flav-train .card p, .flav-train .card li { color: #41584F; }
.flav-train .card-link { color: var(--tr-blue); }
.flav-train .check-list li::before { color: var(--tr-green); }

.check-list { list-style: none; margin-top: 12px; font-size: 0.92rem; }
.check-list li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--orange); }

/* services sticky subnav */
.subnav {
  position: sticky; top: 68px; z-index: 90;
  background: rgba(255, 248, 239, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 30, 63, 0.08);
  overflow-x: auto;
}
.subnav ul { display: flex; gap: 4px; list-style: none; padding-block: 10px; }
.subnav a {
  display: inline-block; white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 0.88rem;
  color: var(--ink); padding: 8px 14px; border-radius: var(--r-pill);
}
.subnav a:hover { background: var(--peach); }
.subnav a.active { background: var(--ink); color: var(--cream); }

/* wavy divider between flavours */
.divider { display: block; width: 100%; height: clamp(40px, 6vw, 72px); }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; background: var(--cy-plum); color: #fff; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--cy-lilac); margin-top: 12px; }
.cta-band .btn-row { margin-top: 26px; }
.cta-band .op { mix-blend-mode: screen; opacity: 0.5; }

.site-footer { background: var(--ink); color: #CFC7DE; padding-block: 56px 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.site-footer .logo { color: var(--cream); font-size: 1.6rem; }
.site-footer h4 { color: var(--cream); font-size: 0.95rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #CFC7DE; text-decoration: none; }
.site-footer a:hover { color: var(--marigold); }
.footer-blurb { margin-top: 12px; max-width: 34ch; }
.footer-legal {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 0.85rem;
}
.footer-dots { display: flex; gap: 6px; margin-top: 16px; }
.footer-dots i { width: 14px; height: 14px; border-radius: 50%; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-field label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 16px; border-radius: 14px; border: 2px solid rgba(42, 30, 63, 0.25);
  background: #fff;
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: 2.5px solid var(--purple-deep); outline-offset: 1px; border-color: var(--purple-deep);
}
.form-field .field-error { color: #B3261E; font-size: 0.85rem; font-weight: 600; margin-top: 5px; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); }

/* flip loader — adapted from css-loaders.com/flipping (Temani Afif), recoloured */
.loader {
  width: 20px; aspect-ratio: 1; display: inline-block; vertical-align: -3px; margin-right: 10px;
  animation: flip-rotate 2s infinite linear, flip-color 1s infinite steps(1) alternate;
}
@keyframes flip-rotate { 0% { transform: perspective(120px) rotateX(0deg); } 100% { transform: perspective(120px) rotateX(360deg); } }
@keyframes flip-color { 0% { background: var(--marigold); } 50% { background: var(--cerise); } }

/* ---------- blog prose ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote {
  border-left: 5px solid var(--marigold); background: #fff;
  padding: 18px 24px; border-radius: 0 16px 16px 0;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--purple-deep);
}
.prose strong { color: var(--ink); }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: 0.9rem; font-weight: 600; }
.post-tag { background: var(--peach); color: #7A4400; padding: 3px 12px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 700; }

/* ---------- reveals & motion ---------- */
/* Reveal animations only arm when JS is running (html.reveal-armed) — content
   stays visible for no-JS visitors and non-IntersectionObserver browsers. */
@media (prefers-reduced-motion: no-preference) {
  html.reveal-armed .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
  html.reveal-armed .reveal.in { opacity: 1; transform: none; }
}
@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; }
  .loader { display: none; }
}

/* ---------- button colour guard ----------
   Scoped link rules like `.site-footer a` and `.flav-cyber a` are (0,2,0) and
   would otherwise beat a single `.btn-primary` class, repainting button labels
   in the surrounding link colour — e.g. lilac-on-marigold at 1.1:1. These
   two-class selectors match that specificity and, sitting last, win the tie. */
.btn.btn-primary, .btn.btn-ai-alt { color: var(--ink); }
.btn.btn-ink { color: var(--cream); }
.btn.btn-purple, .btn.btn-cerise, .btn.btn-ai, .btn.btn-train, .btn.btn-on-dark { color: #fff; }
.btn.btn-outline, .btn.btn-secondary { color: var(--ink); }
.btn.btn-outline:hover, .btn.btn-secondary:hover { color: var(--cream); }
.btn.btn-on-dark:hover { color: var(--cy-plum); }
.btn.btn-ghost { color: var(--purple-deep); }
.btn.btn-ghost:hover { color: var(--cerise-deep); }
.btn.btn-ghost-light { color: var(--cy-lilac); }
.btn.btn-ghost-light:hover { color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  [data-stack] { grid-template-columns: 1fr !important; }
}
@media (max-width: 700px) {
  .hero .btn-row .btn { flex: 1 1 auto; }
  .op-art { min-height: 220px; }

  /* ---- compact portfolio on mobile ----
     Two-up thumbnails instead of one, so every visual survives but the page
     stops being a marathon. Opt-in via .grid-compact; other single-column
     grids (pricing, values, process) keep their full-width stacking. */
  .grid-2.grid-compact, .grid-3.grid-compact { grid-template-columns: 1fr 1fr; gap: 12px; }
  .grid-compact .project-body { padding: 12px 13px 14px; }
  .grid-compact .kicker { font-size: 0.6rem; margin-bottom: 4px; gap: 6px; }
  .grid-compact .kicker::before { width: 14px; }
  .grid-compact h3 { font-size: 0.95rem; line-height: 1.2; }
  .grid-compact p {
    font-size: 0.78rem; line-height: 1.42; margin-top: 5px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .grid-compact .tag-row { gap: 4px; margin-top: 8px; }
  .grid-compact .tag { font-size: 0.6rem; padding: 2px 8px; }
  .grid-compact .card-link { font-size: 0.78rem; padding-top: 9px; }
  .grid-compact .project-card img, .grid-compact .project-mini img { aspect-ratio: 4 / 3; }

  /* tighter rhythm between sections */
  .section { padding-block: clamp(34px, 7vw, 52px); }
  .section-head { margin-bottom: 20px; }
  .count-chip { font-size: 0.7rem; padding: 2px 9px; }

  /* the two phone views are very tall at 9:16 — crop shorter, keep them legible */
  .device-phone img { aspect-ratio: 4 / 5; }
  .device-grid { gap: 12px; }
  .device { padding: 12px; }
  .device p { font-size: 0.82rem; }
  .tv-mount { padding-inline: 16px; }

  /* logo wall: more per row, less scroll */
  .logo-wall { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)) !important; gap: 12px !important; }
  .logo-wall img { max-height: 38px !important; }
}
