:root {
  --color-navy: #14213d;
  --color-navy-2: #1f2f57;
  --color-orange: #f5821f;
  --color-orange-2: #ff9c40;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6f8;
  --color-text: #16181f;
  --color-text-muted: #545a6b;
  --color-border: #e4e6ec;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-lg: 28px;
  --radius-md: 14px;
  --container: 1120px;
  --font-khmer: "Khmer OS", "Noto Sans Khmer", "Leelawadee UI", var(--font-base);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html[lang="km"] { font-family: var(--font-khmer); }
body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

/* Cross-document page transitions (progressive enhancement, zero JS):
   opts every page that links this stylesheet into the browser's native
   view-transition on same-site navigation. Unsupported browsers simply
   ignore this unknown at-rule and navigate as normal - there is no
   fallback code to write. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: 260ms ease-out both page-transition-out;
}
::view-transition-new(root) {
  animation: 320ms ease-in both page-transition-in;
}
@keyframes page-transition-out {
  to { opacity: 0; transform: translateY(-6px); }
}
@keyframes page-transition-in {
  from { opacity: 0; transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* The universal 0.01ms override above still lets an `infinite` animation
     flicker rapidly forever instead of actually stopping - these specific,
     higher-specificity rules fully disable the continuously-looping ones. */
  .marquee__track, .hero .rotating-word::after {
    animation: none !important;
  }
  /* ::view-transition-* pseudo-elements live in a separate rendering
     overlay and aren't reliably reached by a plain `*` selector on the
     document - target them explicitly so reduced-motion visitors get an
     instant page swap instead of the slide/fade. */
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

/* Scroll-reveal (progressive enhancement): js/main.js only adds the
   "reveal" class to elements it can also observe into view via
   IntersectionObserver, so a no-JS visitor (or a browser without
   IntersectionObserver) never has this class added and everything stays
   at its default, fully visible state - this rule can never hide content
   permanently. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Header */
.site-header { border-bottom: 1px solid var(--color-border); position: sticky; top: 0; background: var(--color-bg); z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; flex-wrap: wrap; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__mark { font-size: 26px; font-weight: 800; color: var(--color-navy); }
.brand__dot { color: var(--color-orange); }
.brand__tag { font-size: 10px; letter-spacing: 0.12em; color: var(--color-text-muted); margin-top: 2px; }
.nav-toggle { display: flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--color-navy); display: block; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: flex; flex-direction: column; gap: 14px; flex-basis: 100%; padding: 16px 0 4px; margin-top: 8px; border-top: 1px solid var(--color-border); }
.site-nav a { font-weight: 600; color: var(--color-navy); padding: 10px 0; transition: color 0.15s ease; }
.site-nav a:hover { color: var(--color-orange); }
.site-nav a.lang-switch { color: var(--color-orange); }

/* Default (no JS, and 404.html which has no toggle button): the full nav is a
   visible, in-flow list under the header row - it never depends on JS to be
   reachable. Only when a toggle button precedes the nav (".nav-toggle ~
   .site-nav") AND an early inline <script> in <head> has already added "js"
   to <html> (see every page's <head>) does the nav default to collapsed -
   deciding this before first paint avoids a flash of the open nav that then
   snaps or animates shut once js/main.js runs at the end of the body. */
@media (max-width: 859px) {
  html.js .nav-toggle ~ .site-nav {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
    border-top-color: transparent;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.2s ease, padding 0.28s ease, margin 0.28s ease, border-color 0.28s ease;
  }
  html.js .nav-toggle ~ .site-nav.is-open {
    max-height: 480px;
    opacity: 1;
    padding-top: 16px;
    padding-bottom: 4px;
    margin-top: 8px;
    border-top-color: var(--color-border);
  }
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-direction: row; flex-basis: auto; position: static; padding: 0; border: 0; margin: 0; align-items: center; gap: 28px; background: transparent; max-height: none; opacity: 1; overflow: visible; }
}

/* Hero: a calmer, more premium treatment than the previous animated glow
   blobs - a static soft highlight and a very faint diagonal line texture
   for quiet depth, nothing moving or bright competing with the heading. */
.hero { background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px, transparent 1px, transparent 40px);
  pointer-events: none;
}
.hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(245,130,31,0.16), transparent 70%); pointer-events: none; }
.hero { min-height: 78vh; display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 1; padding: 96px 20px; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero-eyebrow { color: var(--color-orange-2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; }
.hero h1 { font-size: clamp(44px, 8vw, 92px); line-height: 1.05; font-weight: 800; margin: 18px 0; letter-spacing: -0.01em; }
/* Reserve room for 2 lines only below 550px - the width at which the
   h1's clamp'd font-size hits its 44px floor and stops shrinking with
   the viewport, so a long word is genuinely likely to wrap there as it
   types in/out. At 550px and up, font-size keeps scaling down with the
   viewport in tandem, so these short phrases reliably fit on one line -
   reserving a second (always-empty) line there just wastes visible
   space under the heading for no benefit. */
.hero .rotating-word { display: inline-block; min-height: 2.1em; color: var(--color-orange-2); }
@media (min-width: 550px) { .hero .rotating-word { min-height: 1.05em; } }
.hero .rotating-word::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: currentColor;
  animation: type-cursor-blink 0.9s steps(2, jump-none) infinite;
}
@keyframes type-cursor-blink { 50% { opacity: 0; } }
.hero p { font-size: clamp(17px, 1.4vw, 21px); color: rgba(255,255,255,0.85); max-width: 660px; }
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px; }
.hero-trust__label { color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.hero-trust__logos { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-trust__logos img { display: block; height: 26px; width: auto; background: #fff; border-radius: 8px; padding: 5px 10px; }

/* Page header (non-hero pages) */
.page-header { padding: 72px 20px 16px; max-width: var(--container); margin: 0 auto; text-align: center; }
.page-header .section-eyebrow { display: block; margin-bottom: 10px; }
.page-header h1 { color: var(--color-navy); font-size: clamp(40px, 6vw, 68px); line-height: 1.05; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.01em; }
.page-header p { color: var(--color-text-muted); font-size: clamp(16px, 1.2vw, 19px); max-width: 640px; margin: 0 auto; }

/* Buttons */
.btn { display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,33,61,0.12); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-primary { background: var(--color-orange); color: #fff; }
.btn-primary:hover { background: var(--color-orange-2); }
.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* Section shell */
.section { padding: 64px 20px; }
.section-alt { background: var(--color-bg-alt); }
.section-header { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow { color: var(--color-orange); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 14px; }
.section h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; color: var(--color-navy); margin: 10px 0 0; letter-spacing: -0.01em; }

/* Dark section variant - the site's dominant "bold statement" mode */
.section-dark { background: var(--color-navy); color: #fff; }
.section-dark .section-eyebrow { color: var(--color-orange-2); }
.section-dark .section-header h2 { color: #fff; }

/* Text marquee - a large scrolling statement band (distinct from the
   logo marquee below; same duplicate-and-scroll mechanism, reused). */
.marquee-text { overflow: hidden; padding: 28px 0; }
.marquee-text__track { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; width: max-content; max-width: 100%; }
.marquee-text__track.marquee-ready { flex-wrap: nowrap; max-width: none; white-space: nowrap; animation: marquee-scroll 26s linear infinite; }
.marquee-text__item { font-size: clamp(28px, 5vw, 56px); font-weight: 800; color: rgba(255,255,255,0.92); letter-spacing: -0.01em; }
.marquee-text__item em { color: var(--color-orange-2); font-style: normal; }
.marquee-text__dot { color: var(--color-orange); font-size: clamp(28px, 5vw, 56px); }

/* Zigzag rows - spacious, alternating icon/content layout for a small
   set of items where each one deserves its own breathing room, rather
   than a tiled grid or a dense list. */
.zigzag { display: flex; flex-direction: column; gap: 56px; max-width: var(--container); margin: 0 auto; }
.zigzag__row { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; scroll-margin-top: 90px; }
@media (min-width: 780px) {
  .zigzag__row { grid-template-columns: 1fr 1.3fr; gap: 48px; }
  .zigzag__row:nth-child(even) .zigzag__visual { order: 2; }
}
.zigzag__visual { position: relative; overflow: hidden; background: var(--color-bg-alt); border-radius: var(--radius-lg); min-height: 220px; display: flex; align-items: center; justify-content: center; }
.zigzag__visual::before { content: ""; position: absolute; top: -40px; right: -40px; width: 200px; height: 200px; border-radius: 50%; background: rgba(245,130,31,0.08); pointer-events: none; }
.zigzag__icon { position: relative; width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 100%); box-shadow: 0 14px 28px rgba(20,33,61,0.18); }
/* Real-screenshot mosaic: a small collage of real product screenshots
   filling the same visual box the plain icon circle uses elsewhere -
   for categories with several real screenshots, rather than one
   arbitrary image standing in for the whole system. */
.zigzag__mosaic { position: relative; width: 100%; height: 100%; min-height: 220px; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 8px; padding: 16px; }
.zigzag__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-md); background: #fff; box-shadow: 0 6px 16px rgba(20,33,61,0.12); }
.zigzag__mosaic--three img:last-child { grid-column: span 2; }
.zigzag__visual--single img { position: relative; width: 55%; height: auto; object-fit: contain; }
.zigzag__index { display: block; font-weight: 700; color: var(--color-orange); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; }
.zigzag__content h2 { color: var(--color-navy); font-size: clamp(26px, 3.5vw, 38px); line-height: 1.15; margin: 0 0 12px; }
.zigzag__content p { color: var(--color-text-muted); font-size: 17px; max-width: 480px; margin: 0; }
.zigzag__content .feature-list { max-width: 480px; }

/* Big rotating list - large, editorial text rows replacing small tiled
   cards for services/differentiator-style content. */
.big-list { display: flex; flex-direction: column; max-width: var(--container); margin: 0 auto; }
.big-list__item { display: flex; align-items: baseline; flex-wrap: wrap; gap: 16px 28px; padding: 28px 6px; border-top: 1px solid rgba(255,255,255,0.15); transition: padding-left 0.25s ease, background-color 0.25s ease; }
.big-list__item:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }
.big-list__item:hover { padding-left: 18px; background: rgba(255,255,255,0.04); }
.big-list__index { font-size: 15px; font-weight: 700; color: var(--color-orange-2); min-width: 36px; }
.big-list__title { font-size: clamp(24px, 4vw, 40px); font-weight: 700; color: #fff; line-height: 1.15; transition: color 0.2s ease; }
.big-list__item:hover .big-list__title { color: var(--color-orange-2); }
.big-list__desc { color: rgba(255,255,255,0.62); font-size: 15px; max-width: 380px; margin-left: auto; }

/* AI-Powered Future: a decorative AI-agent illustration (aria-hidden)
   sits beside the heading and list. Below 760px the image is dropped
   entirely and this is just a plain, fully-readable list. */
.ai-network { display: grid; gap: 40px; max-width: var(--container); margin: 0 auto; align-items: center; }
@media (min-width: 760px) { .ai-network { grid-template-columns: 1fr 1.15fr; } }
.ai-network__panel { display: none; }
@media (min-width: 760px) {
  .ai-network__panel { display: block; }
  .ai-network__panel img { width: 100%; height: auto; display: block; }
}
.ai-network__content .section-eyebrow { display: block; margin-bottom: 10px; }
.ai-network__content h2 { margin: 0 0 8px; }
.ai-list { display: flex; flex-direction: column; margin-top: 24px; }
.ai-list__item { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--color-border); }
.ai-list__item:last-child { border-bottom: 1px solid var(--color-border); }
.ai-list__index { flex-shrink: 0; font-weight: 800; font-size: 14px; letter-spacing: 0.05em; color: var(--color-orange); padding-top: 3px; }
.ai-list__title { font-size: 19px; font-weight: 700; color: var(--color-navy); line-height: 1.3; margin: 0 0 4px; }
.ai-list__desc { color: var(--color-text-muted); font-size: 15px; margin: 0; }

/* How We Work Gantt-style timeline: each row pairs its text with a
   decorative bar positioned along a shared track, echoing a project
   Gantt chart to show the phases overlapping in sequence (bar
   positions/widths are illustrative, not real scheduling data - no
   dates or durations are claimed). The track is hidden below 760px, so
   on mobile this is just a plain, fully-readable list of steps. Each
   bar animates in (scaleX 0->1) as its row scrolls into view - purely
   decorative and aria-hidden, so it never gates the row's real text. */
.gantt { display: flex; flex-direction: column; max-width: var(--container); margin: 0 auto; }
.gantt-row { display: grid; gap: 14px; padding: 24px 0; border-top: 1px solid var(--color-border); }
.gantt-row:last-child { border-bottom: 1px solid var(--color-border); }
@media (min-width: 760px) { .gantt-row { grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; } }
.gantt-row__index { display: block; color: var(--color-orange); font-weight: 800; font-size: 13px; letter-spacing: 0.05em; }
.gantt-row__title { color: var(--color-navy); font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; margin: 6px 0 0; }
.gantt-row__desc { color: var(--color-text-muted); font-size: 15px; margin-top: 8px; max-width: 420px; }
.gantt-row__track { display: none; }
@media (min-width: 760px) {
  .gantt-row__track { display: block; position: relative; height: 14px; background: var(--color-bg-alt); border-radius: 999px; overflow: hidden; }
  .gantt-row__bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--color-orange), var(--color-orange-2)); }
  .gantt-row__bar.is-anim-ready { transform: scaleX(0); transform-origin: left; transition: transform 0.7s ease; }
  .gantt-row.is-drawn .gantt-row__bar.is-anim-ready { transform: scaleX(1); }
}
/* Hardcoded for exactly the 5 rows this section has today - adding a 6th
   row needs a 6th rule here too, or its bar renders at zero width. */
.gantt-row:nth-child(1) .gantt-row__bar { left: 0%; width: 24%; }
.gantt-row:nth-child(2) .gantt-row__bar { left: 16%; width: 20%; }
.gantt-row:nth-child(3) .gantt-row__bar { left: 28%; width: 40%; }
.gantt-row:nth-child(4) .gantt-row__bar { left: 60%; width: 22%; }
.gantt-row:nth-child(5) .gantt-row__bar { left: 74%; width: 26%; }

/* Statement / pull-quote - a single oversized value statement, minimal
   layout, meant as a calm "manifesto" beat between busier sections. */
.statement { max-width: 900px; margin: 0 auto; text-align: center; }
.statement p { font-size: clamp(26px, 4vw, 44px); font-weight: 700; line-height: 1.3; color: var(--color-navy); margin: 0; letter-spacing: -0.01em; }
.statement p em { color: var(--color-orange); font-style: normal; }

/* Logo marquee */
.marquee { overflow: hidden; position: relative; max-width: var(--container); margin: 0 auto; padding: 8px 0; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--color-bg-alt), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--color-bg-alt), transparent); }
.marquee__track { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; width: max-content; max-width: 100%; }
.marquee__track.marquee-ready { flex-wrap: nowrap; max-width: none; animation: marquee-scroll 32s linear infinite; }
.marquee__item { display: flex; align-items: center; justify-content: center; height: 40px; flex-shrink: 0; }
.marquee__item img { max-height: 32px; width: auto; filter: grayscale(1) opacity(0.55); transition: filter 0.2s ease; }
.marquee__item:hover img { filter: grayscale(0) opacity(1); }
.marquee__item--text { font-weight: 700; color: var(--color-text-muted); white-space: nowrap; transition: color 0.2s ease; }
.marquee__item--text:hover { color: var(--color-navy); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.card-link { color: var(--color-orange); font-weight: 700; transition: color 0.15s ease; }
.card-link:hover { color: var(--color-orange-2); }

.feature-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; gap: 10px; color: var(--color-text); }
.feature-list li::before { content: "\2713"; color: var(--color-orange); font-weight: 800; }

/* Home page Projects Portfolio preview: a plain, fully-visible responsive
   grid by default (every card and its description always readable, no
   interaction required) - the ideal treatment for touch devices and
   narrow screens, where a real :hover doesn't exist. Only on wide
   screens with genuine mouse/trackpad hover does it become a fanned,
   overlapping card deck: each card starts slightly rotated and
   overlapping its neighbor, and straightens + comes to the front on
   hover or keyboard focus. Every device that gets the fanned-deck
   treatment (gated on `hover: hover`) inherently supports either mouse
   hover or keyboard focus, so the deck's description reveal is never
   the only way to reach that text - the same content is already fully
   visible by default in the grid mode devices without that capability
   get instead. */
.portfolio-deck__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: var(--container); margin: 0 auto; }
@media (min-width: 600px) { .portfolio-deck__list { grid-template-columns: repeat(3, 1fr); } }
.portfolio-deck__card { display: block; text-align: center; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; background: #fff; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.portfolio-deck__card:hover, .portfolio-deck__card:focus-visible { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(20,33,61,0.1); border-color: var(--color-orange); }
.portfolio-deck__icon { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--color-bg-alt); margin: 0 auto; }
.portfolio-deck__icon img { width: 100%; height: 100%; object-fit: cover; }
.portfolio-deck__title { display: block; color: var(--color-navy); font-size: 16px; font-weight: 700; margin-top: 12px; }
.portfolio-deck__desc { display: block; color: var(--color-text-muted); font-size: 13px; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .portfolio-deck__list { display: flex; justify-content: center; align-items: flex-start; grid-template-columns: none; padding: 30px 0 50px; }
  .portfolio-deck__card { flex: 0 0 190px; margin-left: -55px; text-align: left; padding: 22px 20px; position: relative; }
  .portfolio-deck__card:first-child { margin-left: 0; }
  .portfolio-deck__icon { margin: 0; }
  .portfolio-deck__card:nth-child(1) { transform: rotate(-8deg); }
  .portfolio-deck__card:nth-child(2) { transform: rotate(-4.5deg); }
  .portfolio-deck__card:nth-child(3) { transform: rotate(-1deg); }
  .portfolio-deck__card:nth-child(4) { transform: rotate(2.5deg); }
  .portfolio-deck__card:nth-child(5) { transform: rotate(6deg); }
  .portfolio-deck__card:nth-child(6) { transform: rotate(9.5deg); }
  .portfolio-deck__card:hover, .portfolio-deck__card:focus-visible { transform: translateY(-24px) rotate(0deg) scale(1.08); z-index: 10; box-shadow: 0 24px 48px rgba(20,33,61,0.22); }
  /* Taken out of normal flow entirely (position:absolute, floating below
     the card) rather than grown via max-height, so revealing it on hover
     can never change the card's own layout height - which would otherwise
     grow the whole flex row and reflow page content below it, the same
     class of bug already fixed once this session on a different section. */
  .portfolio-deck__desc { position: absolute; top: 100%; left: 0; right: 0; margin-top: 10px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px 12px; box-shadow: 0 12px 28px rgba(20,33,61,0.16); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .portfolio-deck__card:hover .portfolio-deck__desc, .portfolio-deck__card:focus-visible .portfolio-deck__desc { opacity: 1; transition-delay: 0.05s; }
}

/* Clients */
.client-region { max-width: var(--container); margin: 0 auto 36px; }
.client-region h2, .client-region h3 { color: var(--color-navy); font-size: 1.15rem; margin: 0; }
.client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0 0; }
@media (min-width: 600px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
.client-logo { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px; text-align: center; font-weight: 700; color: var(--color-navy); background: #fff; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; display: flex; align-items: center; justify-content: center; min-height: 64px; }
.client-logo:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20,33,61,0.08); border-color: var(--color-orange); }
.client-logo img { max-height: 40px; max-width: 100%; width: auto; object-fit: contain; }

.banner-cta { background: var(--color-orange); color: #fff; border-radius: var(--radius-lg); padding: 56px 32px; text-align: center; margin: 12px auto 0; max-width: var(--container); }
.banner-cta h2, .banner-cta h3 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.banner-cta .btn-primary { background: var(--color-navy); margin-top: 20px; }

/* Testimonials (structure ready; section is commented out in the pages
   until real client quotes are provided - see the HTML comment there) */
.testimonial-grid { display: grid; gap: 24px; grid-template-columns: 1fr; max-width: var(--container); margin: 0 auto; }
@media (min-width: 700px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
.testimonial-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 28px; }
.testimonial-card__quote { font-size: 1.05rem; color: var(--color-text); font-style: italic; margin: 0 0 16px; }
.testimonial-card__quote::before { content: "\201C"; color: var(--color-orange); font-size: 1.4em; margin-right: 2px; }
.testimonial-card__author { font-weight: 700; color: var(--color-navy); }
.testimonial-card__role { display: block; color: var(--color-text-muted); font-size: 0.9rem; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 700; color: var(--color-navy); }
.form-field input, .form-field textarea { padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); font: inherit; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--color-orange); box-shadow: 0 0 0 3px rgba(245,130,31,0.15); outline: none; }
.contact-grid { display: grid; gap: 40px; max-width: var(--container); margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 820px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-details { display: grid; gap: 14px; align-content: start; }
.contact-details h2, .contact-details h3 { color: var(--color-navy); margin: 0 0 4px; font-size: 1rem; }

/* Footer */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,0.85); padding: 56px 20px 24px; margin-top: 40px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; max-width: var(--container); margin: 0 auto; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-grid .brand__mark { color: #fff; }
.footer-grid h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.footer-grid a { display: block; padding: 4px 0; color: rgba(255,255,255,0.75); transition: color 0.15s ease; }
.footer-grid a:hover { color: #fff; }
.footer-copy { text-align: center; color: rgba(255,255,255,0.5); margin-top: 40px; font-size: 13px; }

/* 404 */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; gap: 12px; }

/* Small phones: tighter padding, full-width stacked CTAs for easier tapping */
@media (max-width: 380px) {
  .hero-inner { padding: 48px 16px; }
  .section, .page-header { padding-left: 16px; padding-right: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .banner-cta { padding: 20px; }
}
