/* ==========================================================================
   GAK CONSTRUCTION — "MIDNIGHT OCEAN & RUSTIC IVORY" THEME
   --------------------------------------------------------------------------
   Full drop-in replacement for the old stylesheet.
   Every class name from your existing HTML is preserved, so you can simply
   swap the <link> and everything keeps working.

   PALETTE
   Midnight Navy  #071A3A   Ocean Blue    #234B78
   Steel Blue     #669BC5   Ice Blue      #B7D9EF
   Denim Blue     #6593BC   Silver        #D7DEE6
   Ivory Plaster  #E5E0D7   Sand Beige    #CFC7B8
   Stone Grey     #8C8A80   Ink           #0A1526

   TEXTURES (your two uploads — place them here)
   assets/img/textures/plaster.jpg   (ivory rustic plaster)
   assets/img/textures/denim.jpg     (washed denim twill)

   CONTENTS
   01. Design tokens
   02. Reset & base
   03. Layout primitives
   04. Textures, grain & gradient surfaces  (SVG noise, blueprint grid)
   05. Typography
   06. Buttons & 3D controls
   07. Header & navigation
   08. Hero (3D parallax layers)
   09. Sections, cards & 3D tilt UI
   10. Stats / counters
   11. Marquee strip
   12. Projects
   13. Testimonials
   14. Contact & forms
   15. CTA box
   16. Footer
   17. SVG icon system (no Font Awesome needed)
   18. Animations & reveal
   19. Responsive
   20. Accessibility & print
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENS
   ========================================================================== */
:root {
  /* ---- Core palette ---- */
  --navy-900: #071A3A;      /* Midnight Navy  */
  --navy-800: #0A2148;
  --navy-700: #102E5C;
  --ocean:    #234B78;      /* Ocean Blue     */
  --steel:    #669BC5;      /* Steel Blue     */
  --denim:    #6593BC;      /* Washed Denim   */
  --ice:      #B7D9EF;      /* Ice Blue       */
  --ice-50:   #DCEBF7;

  --ivory:    #E5E0D7;      /* Ivory Plaster  */
  --ivory-50: #F3F0E9;
  --sand:     #CFC7B8;      /* Sand Beige     */
  --stone:    #8C8A80;      /* Stone Grey     */
  --silver:   #D7DEE6;
  --ink:      #0A1526;

  /* ---- Semantic aliases (kept for your old class names) ---- */
  --primary:       var(--navy-900);
  --primary-dark:  #04101F;
  --primary-soft:  var(--ocean);
  --accent:        var(--steel);
  --accent-soft:   var(--ice);
  --text-main:     var(--ink);
  --text-muted:    #5C6A7A;
  --text-invert:   #F2F6FA;
  --text-invert-muted: #A9BCD0;

  /* ---- Surfaces ---- */
  --surface:        #FFFFFF;
  --surface-ivory:  var(--ivory-50);
  --surface-glass:  rgba(255, 255, 255, .58);
  --glass-bg:       rgba(255, 255, 255, .62);
  --glass-border:   rgba(35, 75, 120, .14);
  --glass-shadow:   0 22px 50px -18px rgba(7, 26, 58, .28),
                    0 6px 16px -8px rgba(7, 26, 58, .16);

  /* ---- Lines ---- */
  --line:        rgba(35, 75, 120, .14);
  --line-strong: rgba(35, 75, 120, .26);
  --line-dark:   rgba(183, 217, 239, .16);

  /* ---- Elevation (soft, layered, "3D") ---- */
  --e1: 0 1px 2px rgba(7, 26, 58, .06), 0 2px 6px rgba(7, 26, 58, .05);
  --e2: 0 4px 10px -2px rgba(7, 26, 58, .10), 0 12px 24px -12px rgba(7, 26, 58, .16);
  --e3: 0 10px 24px -8px rgba(7, 26, 58, .18), 0 30px 60px -30px rgba(7, 26, 58, .30);
  --e4: 0 18px 40px -12px rgba(7, 26, 58, .26), 0 50px 90px -40px rgba(7, 26, 58, .40);
  --inset-top: inset 0 1px 0 rgba(255, 255, 255, .9);

  /* ---- Gradients ---- */
  --grad-navy:  linear-gradient(145deg, #04101F 0%, var(--navy-900) 32%, var(--ocean) 78%, #2F5C8A 100%);
  --grad-ice:   linear-gradient(135deg, var(--ice-50) 0%, var(--ice) 45%, var(--denim) 100%);
  --grad-ivory: linear-gradient(160deg, var(--ivory-50) 0%, var(--ivory) 60%, #DBD4C8 100%);
  --grad-steel: linear-gradient(135deg, var(--steel) 0%, var(--denim) 100%);
  --btn-accent: linear-gradient(180deg, #E4F1FA 0%, var(--ice) 48%, var(--steel) 100%);
  --grad-sheen: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .55) 45%, transparent 62%);
  --grad-text:  linear-gradient(120deg, #FFFFFF 0%, var(--ice) 42%, var(--steel) 78%, #FFFFFF 100%);

  /* ---- Motion ---- */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);
  --transition: .35s var(--ease-out);
  --t-fast: .2s var(--ease-out);
  --t-slow: .7s var(--ease-out);

  /* ---- Radius / metrics ---- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;
  --site-width: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(64px, 8vw, 120px);
  --header-h: 84px;

  /* ---- Type ---- */
  --font-sans: "Inter", "Inter var", ui-sans-serif, system-ui, -apple-system,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui,
                  "Segoe UI", Roboto, Arial, sans-serif;
  --tracking-tight: -.035em;
  --tracking-wide: .16em;

  /* ---- Textures (swap paths if your folder differs) ---- */
  --tex-plaster: url("../img/textures/plaster.jpg");
  --tex-denim:   url("../img/textures/denim.jpg");

  /* ---- SVG grain (inline, never 404s) ---- */
  --svg-grain: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E");

  /* ---- SVG blueprint grid ---- */
  --svg-grid: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cpath d='M64 0H0v64' fill='none' stroke='%23234B78' stroke-opacity='.10' stroke-width='1'/%3E%3C/svg%3E");

  /* ---- SVG diagonal denim twill ---- */
  --svg-twill: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M-2 6 6-2M2 10 10 2' stroke='%23669BC5' stroke-opacity='.35' stroke-width='1'/%3E%3C/svg%3E");
}


/* ==========================================================================
   02. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  color: var(--text-main);
  background-color: var(--ivory-50);
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 1.05vw, 17px);
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

/* Paper-thin grain over the whole page = the "ridged paper" feel */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: var(--svg-grain);
  background-size: 180px 180px;
  opacity: .035;
  mix-blend-mode: multiply;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--navy-900); color: var(--ice); }

/* Focus ring that belongs to the palette */
:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ==========================================================================
   03. LAYOUT PRIMITIVES
   ========================================================================== */
.container {
  width: min(var(--site-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding: 0;
}

.section {
  position: relative;
  padding: var(--section-y) 0;
  isolation: isolate;
}

.section-muted { background: var(--ivory); }
.section-ivory {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #F6F3EC, #EDE8DF);
}
/* your ivory plaster photo, screened back so it reads as texture, not noise */
.section-ivory::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tex-plaster) center/cover no-repeat;
  opacity: .55;
  mix-blend-mode: multiply;
  filter: contrast(.92) brightness(1.08);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.section-dark {
  color: var(--text-invert);
  background: var(--grad-navy);
}

.grid-2, .grid-3, .services-list, .projects-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 30px);
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .services-list, .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.center-action { text-align: center; margin-top: clamp(30px, 4vw, 52px); }


/* ==========================================================================
   04. TEXTURES, GRAIN & GRADIENT SURFACES
   ========================================================================== */

/* Reusable grain overlay — add .grain to any block */
.grain { position: relative; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--svg-grain);
  background-size: 180px 180px;
  opacity: .14;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

/* Washed denim band (your image 1) */
.tex-denim { position: relative; isolation: isolate; }
.tex-denim::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tex-denim) center/cover no-repeat, var(--grad-ice);
  opacity: .22;
  mix-blend-mode: soft-light;
}

/* Ivory plaster band (your image 2) */
.tex-plaster { position: relative; isolation: isolate; }
.tex-plaster::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tex-plaster) center/cover no-repeat, var(--ivory);
  opacity: .6;
  mix-blend-mode: multiply;
}

/* Blueprint grid on dark surfaces */
.blueprint { position: relative; }
.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--svg-grid);
  background-size: 64px 64px;
  opacity: .5;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 15%, transparent 78%);
}

/* Atmospheric glow blobs — the "soft fade" of the gradient reference */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.aura span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  animation: drift 22s var(--ease-in-out) infinite alternate;
}
.aura span:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -12vw; background: radial-gradient(circle, rgba(102, 155, 197, .75), transparent 68%); }
.aura span:nth-child(2) { width: 38vw; height: 38vw; right: -6vw; top: 8vw; background: radial-gradient(circle, rgba(183, 217, 239, .55), transparent 70%); animation-delay: -7s; }
.aura span:nth-child(3) { width: 30vw; height: 30vw; left: 32vw; bottom: -14vw; background: radial-gradient(circle, rgba(35, 75, 120, .65), transparent 70%); animation-delay: -13s; }

.aura--light span:nth-child(1) { background: radial-gradient(circle, rgba(102, 155, 197, .38), transparent 68%); }
.aura--light span:nth-child(2) { background: radial-gradient(circle, rgba(229, 224, 215, .9), transparent 70%); }
.aura--light span:nth-child(3) { background: radial-gradient(circle, rgba(183, 217, 239, .5), transparent 70%); }

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3vw, -2vw, 0) scale(1.08); }
  100% { transform: translate3d(-2vw, 3vw, 0) scale(.96); }
}


/* ==========================================================================
   05. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font-display);
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.045em; }
h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 780; letter-spacing: var(--tracking-tight); }
h3 { font-size: clamp(19px, 1.8vw, 23px); font-weight: 720; letter-spacing: -.02em; }
h4 { font-size: 1rem; font-weight: 750; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.section-head {
  max-width: 740px;
  margin: 0 auto clamp(34px, 4.5vw, 58px);
  text-align: center;
}
.section-head h2 { margin: 0 0 16px; }

.section-lead {
  max-width: 660px;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
}

/* Eyebrow chip — glass pill with a tiny 3D bevel */
.eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 16px 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .62));
  box-shadow: var(--e1), var(--inset-top);
  color: var(--ocean);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--steel);
  box-shadow: 0 0 0 3px rgba(102, 155, 197, .22);
}
.section-dark .eyebrow {
  border-color: rgba(183, 217, 239, .38);
  background: rgba(183, 217, 239, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #EAF4FC;
  text-shadow: 0 1px 2px rgba(4, 16, 31, .5);
}
.section-dark .eyebrow::before { background: var(--ice); box-shadow: 0 0 0 3px rgba(183, 217, 239, .18); }

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
/* opt-in gradient text is only for short accent words */
.section-dark .text-gradient,
.text-gradient {
  background: linear-gradient(100deg, #FFFFFF 0%, #DDEBF7 46%, var(--ice) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.section-dark h2.text-gradient { -webkit-text-fill-color: transparent; }
.section-dark .section-lead, .section-dark p { color: var(--text-invert-muted); }

/* Gradient display text */
.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.text-ice { color: var(--ice); }
.text-ice-muted { color: var(--text-invert-muted); }

.page-hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(44px, 5vw, 64px);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(90% 120% at 50% -20%, rgba(183, 217, 239, .55), transparent 62%),
    linear-gradient(180deg, var(--ivory-50), #FBFAF6 65%, var(--ivory-50));
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--svg-grain);
  background-size: 180px 180px;
  opacity: .06;
  mix-blend-mode: multiply;
}
.page-title {
  max-width: 940px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 5.6vw, 64px);
  font-weight: 830;
  letter-spacing: -.05em;
}
.page-subtitle {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}
.page-hero-compact { padding: clamp(40px, 5vw, 64px) 0 clamp(30px, 4vw, 44px); }


/* ==========================================================================
   06. BUTTONS & 3D CONTROLS
   ========================================================================== */
.btn-glass, .btn-solid, .btn-primary, .btn-outline, .btn-accent, .btn-ghost-light {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .93rem;
  font-weight: 750;
  letter-spacing: .01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast),
              background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  will-change: transform;
}

/* Primary — midnight navy with a lacquered 3D edge */
.btn-solid, .btn-primary, .btn-glass {
  color: #fff;
  background: linear-gradient(180deg, var(--navy-700), var(--navy-900) 62%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .16) inset,
    0 -2px 0 rgba(0, 0, 0, .28) inset,
    0 10px 20px -10px rgba(7, 26, 58, .7),
    0 2px 4px rgba(7, 26, 58, .25);
}
.btn-solid:hover, .btn-primary:hover, .btn-glass:hover {
  color: #fff;
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--ocean), var(--navy-700) 70%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .22) inset,
    0 -2px 0 rgba(0, 0, 0, .3) inset,
    0 18px 30px -12px rgba(7, 26, 58, .75),
    0 3px 8px rgba(7, 26, 58, .28);
}
.btn-solid:active, .btn-primary:active, .btn-glass:active {
  transform: translateY(1px);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, .3) inset,
    0 4px 10px -6px rgba(7, 26, 58, .6);
}

/* Outline — ivory glass */
.btn-outline {
  color: var(--navy-900);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 240, 233, .9));
  box-shadow: var(--e1), var(--inset-top);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  color: var(--navy-900);
  transform: translateY(-2px);
  border-color: var(--steel);
  background: #fff;
  box-shadow: 0 12px 24px -14px rgba(7, 26, 58, .45), var(--inset-top);
}

/* Ghost on dark */
.btn-ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  backdrop-filter: blur(12px);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .18); transform: translateY(-2px); }

/* Accent — ice/denim gradient */
.btn-accent {
  color: var(--navy-900);
  background: var(--btn-accent);
  box-shadow: 0 12px 24px -12px rgba(102, 155, 197, .85), var(--inset-top);
}
.btn-accent:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* Shine sweep on hover (adds the "polished glass" 3D cue) */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-sheen);
  transform: translateX(-130%);
  transition: transform .85s var(--ease-out);
}
.btn-shine:hover::after { transform: translateX(130%); }

/* Text link with animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: var(--ocean);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow svg, .link-arrow i { transition: transform var(--t-fast); }
.link-arrow:hover { color: var(--steel); gap: 13px; }
.link-arrow:hover svg, .link-arrow:hover i { transform: translateX(2px); }

.icon-circle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}


/* ==========================================================================
   07. HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0 max(var(--gutter), calc((100vw - var(--site-width)) / 2));
  border-bottom: 1px solid rgba(35, 75, 120, .12);
  background: rgba(247, 245, 240, .82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 10px 30px -22px rgba(7, 26, 58, .5);
  backdrop-filter: blur(18px) saturate(1.4);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.main-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--svg-grain);
  background-size: 180px 180px;
  opacity: .04;
  mix-blend-mode: multiply;
}
.main-header.is-scrolled {
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 14px 34px -24px rgba(7, 26, 58, .65);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: var(--header-h);
}

/* Logo */
.logo-name {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1;
}
.logo-name span { color: var(--steel); }
.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--grad-navy);
  box-shadow: 0 8px 18px -10px rgba(7, 26, 58, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: var(--ice);
}
.logo-mark svg { width: 20px; height: 20px; }

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}
.nav-link {
  position: relative;
  padding: 30px 0;
  color: #44566B;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .005em;
  transition: color var(--t-fast);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 22px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--navy-900); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.header-cta { white-space: nowrap; min-height: 46px; padding: 11px 20px; }

/* Hamburger */
.hamburger {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, var(--ivory-50));
  box-shadow: var(--e1), var(--inset-top);
  color: var(--navy-900);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.hamburger:hover { transform: translateY(-1px); box-shadow: var(--e2); }
.hamburger span {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease-out), opacity .2s;
}
.hamburger span + span { margin-top: 5px; }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   08. HERO — layered 3D parallax
   ========================================================================== */
.hero-wrapper {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 78vh, 820px);
  overflow: hidden;
  color: #fff;
  background-color: var(--navy-900);
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 1 — atmospheric gradient wash (the "grainy navy → ice" reference) */
.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: -3;
  background:
    radial-gradient(75% 90% at 12% 8%, rgba(102, 155, 197, .55), transparent 62%),
    radial-gradient(60% 80% at 88% 22%, rgba(183, 217, 239, .38), transparent 60%),
    radial-gradient(120% 120% at 50% 120%, #2F5C8A 0%, var(--ocean) 34%, var(--navy-900) 68%, #04101F 100%);
  animation: heroBreathe 26s var(--ease-in-out) infinite alternate;
}

/* 2 — denim twill + film grain for texture depth */
.hero-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--svg-grain), var(--svg-twill);
  background-size: 180px 180px, 8px 8px;
  opacity: .2;
  mix-blend-mode: overlay;
}

/* 3 — readability scrim */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(94deg, rgba(4, 16, 31, .92) 0%, rgba(7, 26, 58, .74) 42%, rgba(10, 34, 66, .26) 74%, rgba(10, 34, 66, .12) 100%),
    linear-gradient(0deg, rgba(4, 16, 31, .55), transparent 55%);
}

/* Optional photo layer */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background: var(--hero-image, none) center/cover no-repeat;
  opacity: .45;
  mix-blend-mode: luminosity;
  transform: scale(1.04);
  animation: heroZoom 30s var(--ease-in-out) infinite alternate;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(28px, 4vw, 66px);
  width: min(var(--site-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
  padding: clamp(46px, 5.4vw, 76px) 0 clamp(54px, 6vw, 88px);
}
.hero-copy { min-width: 0; }

/* ---- 3D photo frame (right column) ---- */
.hero-visual {
  position: relative;
  perspective: 1400px;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
}

.hero-frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  transform: rotateY(-10deg) rotateX(4deg) translateZ(0);
  border: 1px solid rgba(183, 217, 239, .38);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, .95),
    0 18px 40px -22px rgba(0, 0, 0, .8),
    inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform 1s var(--ease-out), box-shadow 1s var(--ease-out);
  animation: frameIn 1.3s var(--ease-out) both .25s;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 58, .05), rgba(7, 26, 58, .42));
  pointer-events: none;
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 3 / 3.85;
  object-fit: cover;
  filter: saturate(.86) contrast(1.06);
}
.hero-visual:hover .hero-frame {
  transform: rotateY(-2deg) rotateX(1deg) translateZ(0) translateY(-6px);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 1), 0 24px 50px -24px rgba(0, 0, 0, .9);
}

/* offset line frame behind the photo — the "3D extruded" edge */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 26px -22px -22px 26px;
  border: 1px solid rgba(183, 217, 239, .32);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(183, 217, 239, .12), rgba(102, 155, 197, .04));
  backdrop-filter: blur(2px);
  animation: frameIn 1.3s var(--ease-out) both .45s;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 60px -46px -46px 60px;
  border: 1px solid rgba(183, 217, 239, .14);
  border-radius: 4px;
  z-index: -1;
}

/* caption card floating over the frame */
.hero-frame-tag {
  position: absolute;
  left: -22px;
  bottom: 30px;
  z-index: 3;
  padding: 14px 18px;
  border: 1px solid rgba(183, 217, 239, .3);
  border-radius: 12px;
  background: rgba(7, 26, 58, .78);
  box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px);
  animation: floatY 6s var(--ease-in-out) infinite alternate;
}
.hero-frame-tag strong { display: block; color: #fff; font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.hero-frame-tag span { color: var(--ice); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

@keyframes frameIn {
  from { opacity: 0; transform: rotateY(-10deg) rotateX(4deg) translateY(26px) scale(.97); }
  to   { opacity: 1; transform: rotateY(-10deg) rotateX(4deg) translateY(0) scale(1); }
}

.hero-top-badge { margin-bottom: 26px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ice);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--ice), transparent);
}

.hero-title {
  max-width: 19ch;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.9vw, 70px);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ice) 0%, #FFFFFF 38%, var(--steel) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-bottom-right {
  max-width: 560px;
  margin: 24px 0 0;
}
.hero-bottom-right p {
  margin: 0 0 22px;
  color: rgba(233, 242, 249, .88);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.75;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-actions .btn-glass {
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  backdrop-filter: blur(12px);
}
.hero-actions .btn-glass:hover { background: rgba(255, 255, 255, .2); }
.hero-actions .btn-solid, .hero-actions .btn-primary, .hero-actions .btn-accent {
  color: var(--navy-900);
  background: linear-gradient(180deg, #D9E9F5, var(--ice) 55%, var(--steel));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 -2px 0 rgba(7, 26, 58, .22) inset,
              0 16px 32px -16px rgba(183, 217, 239, .9);
}
.hero-actions .btn-solid:hover, .hero-actions .btn-primary:hover, .hero-actions .btn-accent:hover {
  color: var(--navy-900);
  filter: brightness(1.06);
  background: linear-gradient(180deg, #EAF4FB, #CFE5F4 55%, var(--steel));
}

/* Floating metric chips (3D glass cards inside the hero) */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: clamp(24px, 3vw, 34px);
}
.hero-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(14px);
  transition: transform var(--transition), background var(--transition);
}
.hero-chip:hover { transform: translateY(-4px) rotateX(4deg); background: rgba(255, 255, 255, .16); }
.hero-chip strong { color: #fff; font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-chip span { color: var(--ice); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.hero-scroll-note {
  position: absolute;
  bottom: 26px;
  left: max(var(--gutter), calc((100vw - var(--site-width)) / 2));
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(233, 242, 249, .72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-scroll-note span {
  display: block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--ice), transparent);
}

.inner-hero { min-height: clamp(380px, 46vh, 480px); }
.inner-hero .hero-content { grid-template-columns: 1fr; padding: clamp(56px, 6vw, 88px) 0; }
.inner-hero .hero-title { font-size: clamp(36px, 5.4vw, 64px); max-width: 18ch; }
.inner-hero .hero-bottom-right { margin-left: 0; }

@keyframes heroBreathe {
  0%   { transform: scale(1.02) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, 1%, 0); }
}
@keyframes heroZoom {
  0%   { transform: scale(1.04) translateY(0); }
  100% { transform: scale(1.12) translateY(-1.5%); }
}


/* ==========================================================================
   09. SECTIONS, CARDS & 3D TILT UI
   ========================================================================== */
.feature-card, .service-card, .mv-card, .project-card, .review-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(250, 249, 245, .92));
  box-shadow: var(--e1), var(--inset-top);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out),
              border-color .5s var(--ease-out);
  transform-style: preserve-3d;
}

/* Top-edge light line = subtle bevel */
.feature-card::before, .service-card::before, .mv-card::before,
.project-card::before, .review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 155, 197, .85), transparent);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  z-index: 2;
}

.feature-card, .service-card, .mv-card { padding: clamp(24px, 2.6vw, 34px); }

.feature-card:hover, .service-card:hover, .mv-card:hover,
.project-card:hover, .review-card:hover {
  transform: translateY(-8px);
  border-color: rgba(102, 155, 197, .5);
  box-shadow: var(--e4), var(--inset-top);
}
.feature-card:hover::before, .service-card:hover::before, .mv-card:hover::before,
.project-card:hover::before, .review-card:hover::before { opacity: 1; }

/* Soft corner glow that appears on hover */
.feature-card::after, .service-card::after, .mv-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80%;
  height: 95%;
  border-radius: 50%;
  background: radial-gradient(circle at var(--mx, 70%) var(--my, 15%),
              rgba(183, 217, 239, .6), transparent 66%);
  opacity: 0;
  transition: opacity .55s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.feature-card:hover::after, .service-card:hover::after, .mv-card:hover::after { opacity: 1; }

/* ---- True 3D tilt (CSS only, pure hover) ---- */
.card-3d { perspective: 1000px; }
.card-3d > * { transform: translateZ(0); }
.card-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(-6deg) translateY(-10px) scale(1.015);
}
.card-3d:hover .feature-icon,
.card-3d:hover .service-icon { transform: translateZ(38px) rotateX(-6deg) rotateY(6deg); }

/* ---- Icons: extruded 3D tile ---- */
.feature-icon, .service-icon, .contact-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border: 1px solid rgba(183, 217, 239, .6);
  border-radius: 15px;
  background: linear-gradient(160deg, #EAF2F9, #D6E6F3 55%, #C3D8EA);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .95) inset,
    0 -3px 0 rgba(35, 75, 120, .12) inset,
    0 10px 18px -10px rgba(35, 75, 120, .55),
    0 2px 4px rgba(35, 75, 120, .12);
  color: var(--navy-900);
  font-size: 22px;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), background .5s;
}
.feature-icon svg, .service-icon svg, .contact-icon svg { width: 24px; height: 24px; stroke: var(--ocean); }
.feature-card:hover .feature-icon, .service-card:hover .service-icon {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  border-color: rgba(102, 155, 197, .5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 18px 28px -14px rgba(7, 26, 58, .85);
  color: var(--ice);
}
.feature-card:hover .feature-icon svg, .service-card:hover .service-icon svg { stroke: var(--ice); }

.feature-card h3, .service-card h3, .mv-card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
}
.feature-card p, .service-card p, .mv-card p {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.72;
}

/* Numbered badge for cards */
.card-index {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 1;
  color: rgba(35, 75, 120, .18);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  transition: color .5s var(--ease-out);
}
.feature-card:hover .card-index, .service-card:hover .card-index { color: rgba(102, 155, 197, .38); }

/* 3D framed image block (great for "about" / two-col media) */
.image-stack { position: relative; }
.image-stack img {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--e4);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform .8s var(--ease-out), box-shadow .8s var(--ease-out);
}
.image-stack:hover img {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateY(-6px);
  box-shadow: 0 30px 70px -24px rgba(7, 26, 58, .55);
}
.image-stack::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid rgba(102, 155, 197, .45);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(183, 217, 239, .35), rgba(229, 224, 215, .5));
}
.image-stack .frame-tag {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
  background: rgba(7, 26, 58, .72);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .2);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.two-col p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.78; margin-bottom: 1.15rem; }
.two-col h2 { margin-bottom: 1.1rem; }

/* Service card with media */
.service-image {
  height: 190px;
  margin: calc(clamp(24px, 2.6vw, 34px) * -1) calc(clamp(24px, 2.6vw, 34px) * -1) 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8EEF4, #D3E1EC);
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), filter .8s;
  filter: saturate(.92) contrast(1.03);
}
.service-card:hover .service-image img { transform: scale(1.06); filter: saturate(1.05) contrast(1.05); }

/* Generic placeholders */
.image-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 220px;
  color: var(--steel);
  background:
    var(--svg-twill),
    linear-gradient(135deg, #E9F0F6, #CFDEEA);
  background-size: 8px 8px, cover;
  font-size: 40px;
}
.detail-placeholder { min-height: 440px; border-radius: var(--r-lg); }

.empty-state {
  grid-column: 1 / -1;
  padding: 54px 26px;
  border: 1px dashed rgba(102, 155, 197, .55);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #FBFBF8, #F1F5F8);
  text-align: center;
}
.empty-state h2, .empty-state h3 { margin-top: 0; }
.empty-state p { color: var(--text-muted); }


/* ==========================================================================
   10. STATS
   ========================================================================== */
.stats-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, #fff, #F4F2EC);
  box-shadow: var(--e3), var(--inset-top);
  text-align: center;
}
/* inner hairline grid between cells */
.stats-wrapper .stat-item {
  position: relative;
  padding: clamp(24px, 3.4vw, 42px) clamp(12px, 2vw, 24px);
  border-radius: calc(var(--r-xl) - 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(248, 247, 242, .7));
  transition: background var(--transition), transform var(--transition);
}
.stat-item + .stat-item::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 22%;
  height: 56%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong), transparent);
}
.stats-wrapper .stat-item:hover {
  background: linear-gradient(180deg, #fff, #EDF4FA);
  transform: translateY(-2px);
}
.stat-item h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1;
  background: linear-gradient(160deg, var(--navy-900), var(--ocean) 55%, var(--steel));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.stat-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Dark variant */
.section-dark .stats-wrapper {
  border-color: var(--line-dark);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.section-dark .stats-wrapper .stat-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
}
.section-dark .stats-wrapper .stat-item:hover { background: rgba(183, 217, 239, .12); }
.section-dark .stat-item + .stat-item::before { background: linear-gradient(180deg, transparent, var(--line-dark), transparent); }
.section-dark .stat-item h3 {
  background: linear-gradient(160deg, #fff, var(--ice) 60%, var(--steel));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-dark .stat-item p { color: var(--text-invert-muted); }


/* ==========================================================================
   11. MARQUEE STRIP
   ========================================================================== */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, #F5F3ED, #EAF1F7 50%, #F5F3ED);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 54px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ocean);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .75;
}
.marquee-track span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
}
@keyframes marquee { to { transform: translateX(-50%); } }


/* ==========================================================================
   12. PROJECTS
   ========================================================================== */
.projects-grid { align-items: stretch; }
.project-card { display: flex; flex-direction: column; }

.project-image {
  position: relative;
  display: block;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, #E8EEF4, #D3E1EC);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) contrast(1.02);
  transition: transform .9s var(--ease-out), filter .6s;
}
.project-card:hover .project-image img { transform: scale(1.07); filter: saturate(1.08) contrast(1.05); }
/* gradient veil for legibility of overlay tags */
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 26, 58, .55));
  opacity: .9;
  pointer-events: none;
}

.project-info {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 26px;
}
.project-info h3 { margin: 10px 0 10px; font-size: clamp(19px, 1.6vw, 22px); }
.project-info p { margin: 4px 0; color: var(--text-muted); font-size: .92rem; }
.project-date { font-size: .82rem !important; letter-spacing: .02em; }
.project-info i { margin-right: 7px; color: var(--steel); }

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 6px 12px;
  border: 1px solid rgba(102, 155, 197, .45);
  border-radius: 7px;
  background: linear-gradient(180deg, #EFF6FC, #DCEAF6);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 10px -6px rgba(35, 75, 120, .5);
  color: var(--ocean);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.project-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel);
}

/* Project detail page */
.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.project-detail-image {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--e3);
}
.project-description { padding-top: 24px; color: #40505F; white-space: normal; }
.project-detail-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #fff, #F5F7F9);
  box-shadow: var(--e2), var(--inset-top);
}
.project-detail-sidebar h2 { margin-top: 0; font-size: 22px; }
.project-detail-sidebar p {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.project-detail-sidebar p strong {
  color: var(--stone);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.project-detail-sidebar .btn-solid, .project-detail-sidebar .btn-primary {
  width: 100%;
  margin-top: 22px;
  text-align: center;
}


/* ==========================================================================
   13. TESTIMONIALS
   ========================================================================== */
.review-card { padding: clamp(24px, 2.6vw, 32px); }
.review-stars {
  color: var(--steel);
  font-size: 17px;
  letter-spacing: 3px;
  line-height: 1;
}
.review-quote {
  margin: 16px 0 24px;
  color: #41505E;
  font-size: .99rem;
  line-height: 1.75;
}
.review-quote::before {
  content: "\201C";
  display: block;
  margin-bottom: -14px;
  color: rgba(102, 155, 197, .5);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}
.review-author { display: flex; align-items: center; gap: 13px; }
.review-author img, .review-avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(102, 155, 197, .5), 0 8px 16px -10px rgba(7, 26, 58, .6);
}
.review-avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #E3EEF7, #C7DCEC);
  color: var(--ocean);
  font-weight: 900;
}
.review-author strong, .review-author span { display: block; line-height: 1.35; }
.review-author strong { color: var(--navy-900); font-size: .95rem; }
.review-author span { color: var(--text-muted); font-size: .82rem; }


/* ==========================================================================
   14. CONTACT & FORMS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}
.contact-info, .contact-form-box {
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--r-lg);
}

/* Dark info panel with denim texture + grain */
.contact-info {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-navy);
  box-shadow: var(--e4);
}
.contact-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-denim) center/cover no-repeat;
  opacity: .26;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.contact-info::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--svg-grain);
  background-size: 180px 180px;
  opacity: .12;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.contact-info > * { position: relative; z-index: 1; }
.contact-info h2, .contact-info h3, .contact-info h4 { color: #fff; }
.contact-info .eyebrow, .cta-box .eyebrow {
  border-color: rgba(183, 217, 239, .38);
  background: rgba(183, 217, 239, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #EAF4FC;
}
.contact-info p { color: var(--text-invert-muted); }

.contact-item { display: flex; gap: 15px; align-items: flex-start; margin: 24px 0; }
.contact-item .contact-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  margin: 0;
  border: 1px solid rgba(183, 217, 239, .32);
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 20px -12px rgba(0, 0, 0, .8);
  color: var(--ice);
  border-radius: 13px;
}
.contact-item .contact-icon svg { stroke: var(--ice); }
.contact-item h4 { margin: 0 0 3px; font-size: .98rem; letter-spacing: -.01em; }
.contact-item p, .contact-item a { margin: 0; color: #D5E3EF; font-size: .94rem; }
.contact-item a:hover { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

/* Form panel */
.contact-form-box {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #FBFAF7);
  box-shadow: var(--e3), var(--inset-top);
}
.contact-form-box h3 { margin-top: 0; margin-bottom: 20px; font-size: clamp(20px, 2vw, 25px); }

.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 17px; }
.form-group label {
  color: #33465A;
  font-size: .84rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid rgba(35, 75, 120, .2);
  border-radius: 11px;
  outline: none;
  background: linear-gradient(180deg, #fff, #FBFCFD);
  box-shadow: inset 0 1px 2px rgba(7, 26, 58, .06);
  color: var(--text-main);
  font-size: .95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.form-group textarea { min-height: 138px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #94A3B0; }
.form-group input:hover, .form-group textarea:hover, .form-group select:hover { border-color: rgba(102, 155, 197, .55); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--steel);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 155, 197, .16), inset 0 1px 2px rgba(7, 26, 58, .04);
}

/* Messages */
.alert, .flash {
  padding: 14px 17px;
  margin: 18px auto;
  border-radius: 12px;
  font-size: .92rem;
  box-shadow: var(--e1), var(--inset-top);
}
.alert p:last-child { margin-bottom: 0; }
.alert-success, .flash-success {
  border: 1px solid rgba(46, 132, 92, .32);
  background: linear-gradient(180deg, #F2FBF4, #E7F6EC);
  color: #14603C;
}
.alert-error, .flash-error {
  border: 1px solid rgba(176, 42, 42, .32);
  background: linear-gradient(180deg, #FFF5F5, #FDE9E9);
  color: #8C2020;
}

/* Pagination */
.pagination { display: flex; justify-content: center; margin-top: 44px; }
.pagination nav, .pagination nav > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #fff, #F7F7F3);
  box-shadow: var(--e1), var(--inset-top);
  color: var(--ocean);
  font-size: .88rem;
  font-weight: 700;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.pagination a:hover { transform: translateY(-2px); background: var(--grad-navy); color: #fff; border-color: transparent; }
.pagination [aria-current="page"] span {
  border-color: transparent;
  background: var(--grad-navy);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgba(7, 26, 58, .8);
}
.pagination [aria-disabled="true"] span { color: #A7B2BC; background: #F4F5F3; box-shadow: none; }


/* ==========================================================================
   15. CTA BOX
   ========================================================================== */
.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 78px) clamp(24px, 4vw, 64px);
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(102, 155, 197, .55), transparent 60%),
    radial-gradient(80% 120% at 92% 100%, rgba(183, 217, 239, .28), transparent 62%),
    var(--grad-navy);
  box-shadow: var(--e4);
  text-align: center;
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tex-denim) center/cover no-repeat;
  opacity: .24;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--svg-grain);
  background-size: 180px 180px;
  opacity: .13;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 840;
  letter-spacing: -.045em;
}
.cta-box p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: var(--text-invert-muted);
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
}

/* CTA on light section (alternative) */
.cta-box--ivory {
  color: var(--text-main);
  background:
    radial-gradient(90% 130% at 10% 0%, rgba(183, 217, 239, .7), transparent 58%),
    var(--grad-ivory);
  box-shadow: var(--e3);
}
.cta-box--ivory h2 { color: var(--navy-900); }
.cta-box--ivory p { color: var(--text-muted); }
.cta-box--ivory::before { opacity: .3; mix-blend-mode: multiply; }
.cta-box--ivory::after { opacity: .06; mix-blend-mode: multiply; }


/* ==========================================================================
   16. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  isolation: isolate;
  margin-top: 0;
  padding: clamp(52px, 6vw, 80px) max(var(--gutter), calc((100vw - var(--site-width)) / 2)) 0;
  color: #C9D7E3;
  background:
    radial-gradient(70% 90% at 8% 0%, rgba(35, 75, 120, .55), transparent 60%),
    linear-gradient(180deg, #061530 0%, #04101F 100%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--svg-grain), var(--svg-grid);
  background-size: 180px 180px, 64px 64px;
  opacity: .1;
  mix-blend-mode: overlay;
  mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(100% 80% at 50% 0%, #000, transparent 80%);
}
/* top hairline glow */
.site-footer::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(183, 217, 239, .6), transparent);
}

.footer-wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: clamp(26px, 3vw, 44px);
  padding-bottom: clamp(34px, 4vw, 52px);
}
.footer-col { min-width: 0; }
.footer-logo {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.05em;
}
.footer-logo span { color: var(--steel); }
.footer-col h3, .footer-col h4 {
  margin: 0 0 18px;
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-col p { color: #A9BCCD; font-size: .91rem; overflow-wrap: anywhere; }
.footer-col i { margin-right: 7px; color: var(--steel); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col li a {
  display: inline-block;
  color: #B8C9D9;
  font-size: .91rem;
  transition: color var(--t-fast), transform var(--t-fast);
}
.footer-col li a:hover { color: var(--ice); transform: translateX(3px); }

.footer-social { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.footer-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(183, 217, 239, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  color: #fff;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.footer-social a:hover {
  transform: translateY(-3px);
  border-color: var(--steel);
  background: var(--grad-steel);
  color: var(--navy-900);
}

.footer-bottom {
  padding: 20px 0 26px;
  border-top: 1px solid rgba(183, 217, 239, .16);
  color: #8FA3B5;
  text-align: center;
  font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--ice); }


/* ==========================================================================
   17. SVG ICON SYSTEM (no Font Awesome dependency)
   Usage: <i class="icon icon-mail" aria-hidden="true"></i>
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  vertical-align: -.125em;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.icon-arrow-right { -webkit-mask-image: var(--ic-arrow); mask-image: var(--ic-arrow); }
.icon-phone { -webkit-mask-image: var(--ic-phone); mask-image: var(--ic-phone); }
.icon-mail { -webkit-mask-image: var(--ic-mail); mask-image: var(--ic-mail); }
.icon-pin { -webkit-mask-image: var(--ic-pin); mask-image: var(--ic-pin); }
.icon-check { -webkit-mask-image: var(--ic-check); mask-image: var(--ic-check); }
.icon-star { -webkit-mask-image: var(--ic-star); mask-image: var(--ic-star); }
.icon-clock { -webkit-mask-image: var(--ic-clock); mask-image: var(--ic-clock); }

:root {
  --ic-arrow: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --ic-phone: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 3h3l1.5 4-2 1.4a13 13 0 0 0 6 6L16.5 12l4 1.5v3a2.5 2.5 0 0 1-2.7 2.5A16.5 16.5 0 0 1 3.1 5.7 2.5 2.5 0 0 1 5.6 3z'/%3E%3C/svg%3E");
  --ic-mail: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E");
  --ic-pin: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 1 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E");
  --ic-check: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E");
  --ic-star: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='m12 2.5 2.9 6.1 6.6.9-4.8 4.6 1.2 6.6L12 17.6 6.1 20.7l1.2-6.6L2.5 9.5l6.6-.9z'/%3E%3C/svg%3E");
  --ic-clock: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.3l3.4 2'/%3E%3C/svg%3E");
}

/* Tick list */
.tick-list { list-style: none; display: grid; gap: 11px; margin: 18px 0 0; }
.tick-list li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.6;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background-color: var(--steel);
  -webkit-mask-image: var(--ic-check);
  mask-image: var(--ic-check);
  -webkit-mask-size: 14px 14px;
  mask-size: 14px 14px;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
.section-dark .tick-list li { color: var(--text-invert-muted); }
.section-dark .tick-list li::before { background-color: var(--ice); }


/* ==========================================================================
   18. ANIMATIONS & REVEAL
   ========================================================================== */

/* JS-driven reveal (add .visible via IntersectionObserver) */
.animate-up {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .animate-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .animate-up.visible { opacity: 1; transform: translateY(0); }
}

/* Modern scroll-driven reveal — works with no JS in Chrome/Edge 115+ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal-auto {
      animation: revealUp linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 26%;
    }
  }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Entrance for hero copy */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual, .hero-kicker, .hero-title, .hero-bottom-right, .hero-chips, .hero-scroll-note {
    animation: riseIn 1s var(--ease-out) both;
  }
  .hero-visual { animation: riseIn 1.1s var(--ease-out) both .1s; }
  .hero-kicker { animation-delay: .05s; }
  .hero-title { animation-delay: .15s; }
  .hero-bottom-right { animation-delay: .3s; }
  .hero-chips { animation-delay: .42s; }
  .hero-scroll-note { animation-delay: .6s; }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Ambient float for decorative SVGs */
.float-slow { animation: floatY 7s var(--ease-in-out) infinite alternate; }
.float-fast { animation: floatY 4.5s var(--ease-in-out) infinite alternate; }
@keyframes floatY {
  from { transform: translateY(-8px); }
  to   { transform: translateY(8px); }
}

/* Slow rotate for contour/orbit SVGs */
.spin-slow { animation: spin 34s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulsing ring accent */
.pulse-ring { position: relative; }
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(102, 155, 197, .6);
  border-radius: inherit;
  animation: pulseRing 2.8s var(--ease-out) infinite;
}
@keyframes pulseRing {
  0%   { opacity: .8; transform: scale(.96); }
  70%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}


/* ==========================================================================
   19. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .header-inner { gap: 16px; }
  .main-nav { gap: 18px; }
  .header-cta { padding: 10px 15px; min-height: 44px; }
  .footer-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .services-list, .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-detail-layout { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .two-col, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .image-stack::before { inset: 14px -12px -12px 14px; }
  .stats-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item:nth-child(3)::before, .stat-item:nth-child(odd)::before { display: none; }
  .project-detail-layout { grid-template-columns: 1fr; }
  .project-detail-sidebar { position: static; }
  .hero-bottom-right { margin-left: 0; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; }

  /* Mobile header */
  .main-header { padding: 0 var(--gutter); }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    min-height: var(--header-h);
  }
  .logo-name { grid-column: 1; grid-row: 1; }
  .hamburger { display: grid; grid-column: 2; grid-row: 1; }
  .header-cta { display: none; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 16px;
    border-top: 1px solid var(--line);
  }
  .main-nav.active { display: flex; animation: riseIn .4s var(--ease-out) both; }
  .nav-link { padding: 14px 4px; border-bottom: 1px solid rgba(35, 75, 120, .1); }
  .nav-link::after { display: none; }

  /* Hero */
  .hero-wrapper { min-height: 600px; }
  .hero-content { padding: 76px 0 96px; }
  .hero-title { font-size: clamp(38px, 11vw, 58px); max-width: 100%; }
  .hero-bottom-right { margin-top: 26px; }
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(4, 16, 31, .86), rgba(7, 26, 58, .72) 55%, rgba(7, 26, 58, .9)),
      linear-gradient(0deg, rgba(4, 16, 31, .5), transparent);
  }
  .hero-chips { gap: 9px; }
  .hero-chip { padding: 11px 15px; flex: 1 1 calc(50% - 5px); }
  .hero-chip:nth-child(3) { flex: 1 1 100%; }
  .hero-chip strong { font-size: 1.1rem; }
  .hero-scroll-note { display: none; }

  /* Grids */
  .grid-3, .services-list, .projects-grid, .footer-wrapper { grid-template-columns: 1fr; }
  .project-image { height: 230px; }

  /* Section spacing */
  .section-y, .section { padding: clamp(52px, 11vw, 76px) 0; }
  .section-head { margin-bottom: 32px; }

  /* Cards: disable 3D tilt on touch */
  .card-3d:hover,
  .feature-card:hover, .service-card:hover, .mv-card:hover,
  .project-card:hover, .review-card:hover { transform: none; }
  .feature-card:active, .service-card:active { transform: scale(.995); }

  .image-stack img { transform: none; }
  .image-stack::before { inset: 12px -10px -10px 12px; }

  .footer-wrapper { gap: 26px; }
  .site-footer { padding: 46px var(--gutter) 0; }
  .contact-form-box, .contact-info { padding: 24px; }
  .detail-placeholder { min-height: 300px; }
  .desktop-break { display: none; }
  .cta-box { border-radius: var(--r-lg); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions a { width: 100%; }
  .hero-title { font-size: 37px; }
  .eyebrow { font-size: .68rem; padding: 6px 13px; letter-spacing: .12em; }
  .stats-wrapper { gap: 2px; }
  .stat-item h3 { font-size: 30px; }
  .stat-item p { font-size: .74rem; letter-spacing: .04em; }
  .project-info { padding: 19px; }
  .pagination a, .pagination span { min-width: 38px; min-height: 38px; padding: 6px 10px; }
}


/* ==========================================================================
   20. ACCESSIBILITY & PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .animate-up { opacity: 1 !important; transform: none !important; }
}

/* Respect higher contrast */
@media (prefers-contrast: more) {
  :root {
    --text-muted: #3E4C5B;
    --line: rgba(7, 26, 58, .34);
    --line-strong: rgba(7, 26, 58, .5);
  }
  .feature-card, .service-card, .mv-card, .project-card, .review-card { border-width: 2px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }

@media print {
  body { background: #fff; color: #000; }
  body::before, .aura, .marquee, .main-header, .site-footer, .hero-scroll-note { display: none !important; }
  .hero-wrapper { color: #000; background: none !important; min-height: auto; }
  .feature-card, .service-card, .project-card, .review-card, .stats-wrapper { box-shadow: none; border: 1px solid #ccc; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}
