/* ============================================================
   IPC LYDON — Elegant Multi-Page Site
   Palette: deep navy · brushed gold · warm ivory
   Type:    Playfair Display (display serif) · Inter (UI / body)
   ============================================================ */

:root {
  /* ---- Official IPC Lydon brand palette (sampled from logo) ---- */
  --navy-900: #00003c;   /* deepest — gradient/footer */
  --navy-800: #000054;   /* brand navy — primary dark surfaces */
  --navy-700: #0d1873;   /* mid navy — gradients/hover */
  --navy-600: #1b2a8e;

  --ink: #10152b;
  --stone-700: #333a52;
  --stone-600: #4d5468;
  --stone-500: #6c7488;

  --ivory: #f6f7fa;
  --cream: #eceef4;
  --line: #dde1ea;
  --white: #ffffff;

  --gold: #eaa92a;       /* brand gold */
  --gold-light: #f4c463;
  --gold-dark: #9c6c0b;  /* legible gold for small text on light */
  --gold-soft: rgba(234, 169, 42, 0.16);

  --maxw: 1180px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 6px 24px rgba(0, 0, 50, 0.07);
  --shadow-md: 0 22px 50px rgba(0, 0, 50, 0.13);
  --shadow-lg: 0 36px 80px rgba(0, 0, 45, 0.20);

  --ff-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--ff-body); color: var(--ink);
  background: var(--ivory); line-height: 1.7; overflow-x: hidden;
  font-size: 17px; -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--ff-display); font-weight: 500; line-height: 1.1;
  margin: 0; letter-spacing: 0.005em;
}

.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--gold); color: var(--navy-900); padding: .65rem 1.1rem;
  font-weight: 600; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  z-index: 200; transition: width .1s linear;
}

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--ff-body); text-transform: uppercase; letter-spacing: .28em;
  font-size: .72rem; font-weight: 600; color: var(--gold-dark); margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.on-dark { color: var(--gold-light); }

.lead { color: var(--stone-600); font-size: 1.12rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--ff-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: all .35s var(--ease); position: relative;
}
.btn svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--gold); color: var(--navy-900); }
.btn-primary:hover { background: var(--navy-900); color: var(--gold-light); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-900); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.btn-block { width: 100%; }

.text-link {
  font-family: var(--ff-body); font-weight: 600; font-size: .82rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy-800); display: inline-flex; align-items: center; gap: .6rem;
  padding-bottom: 4px; border-bottom: 1px solid var(--gold); transition: gap .3s var(--ease), color .3s;
}
.text-link svg { width: 14px; height: 14px; }
.text-link:hover { gap: 1rem; color: var(--gold-dark); }
.text-link.on-dark { color: var(--white); }
.text-link.on-dark:hover { color: var(--gold-light); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 150; padding: 1.4rem 0;
  transition: padding .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  padding: .7rem 0; background: rgba(0, 0, 44, .94);
  backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(234,169,42,.18);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: .8rem; color: var(--white); }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-logo { height: 44px; width: auto; transition: height .4s var(--ease); }
.site-header.scrolled .brand-logo { height: 38px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 1.2rem; }
.brand-text { font-family: var(--ff-display); font-size: 1.4rem; font-weight: 600; line-height: 1; color: var(--white); display: flex; flex-direction: column; }
.brand-text strong { font-weight: 600; color: var(--gold); }
.brand-text em {
  font-family: var(--ff-body); font-style: normal; font-size: .54rem; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 4px;
}

.main-nav { display: flex; align-items: center; gap: .2rem; }
.main-nav a {
  position: relative; color: rgba(255,255,255,.82); font-weight: 500; font-size: .9rem;
  letter-spacing: .02em; white-space: nowrap; padding: .5rem .95rem; transition: color .25s;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .15rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:not(.nav-cta):hover { color: var(--white); }
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active:not(.nav-cta)::after { transform: scaleX(1); }
.main-nav a.active:not(.nav-cta) { color: var(--white); }
.main-nav .nav-cta {
  margin-left: .8rem; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius);
  padding: .6rem 1.3rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; transition: all .3s var(--ease);
}
.main-nav .nav-cta:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; background: none; border: 0; cursor: pointer; padding: 8px; z-index: 160; }
.nav-toggle span { width: 26px; height: 2px; background: var(--white); transition: transform .35s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(130% 120% at 75% 15%, var(--navy-700), var(--navy-900) 72%);
  overflow: hidden; color: var(--white);
}
.hero-canvas, .hero-video, .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,44,.94) 0%, rgba(0,0,44,.6) 55%, rgba(0,0,44,.35) 100%),
              linear-gradient(0deg, rgba(0,0,44,.85), transparent 50%);
}
.hero-content { position: relative; z-index: 2; padding: 8rem 0 5rem; max-width: 800px; }
.hero-eyebrow { color: var(--gold-light); }
.hero-title { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 400; line-height: 1.04; margin: 0 0 1.6rem; }
.hero-title em { font-style: italic; color: var(--gold-light); font-weight: 400; }
.hero-divider { width: 64px; height: 1px; background: var(--gold); margin: 0 0 1.6rem; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.8); max-width: 600px; margin: 0 0 2.6rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .6rem; color: rgba(255,255,255,.55); font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; }
.scroll-cue span { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 14px; background: var(--gold); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-14px); } 100% { transform: translateY(46px); } }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative; color: var(--white); padding: 11rem 0 4.5rem;
  background: radial-gradient(120% 140% at 80% 0%, var(--navy-700), var(--navy-900) 70%);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 46px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
/* Page hero with real photography */
.page-hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,44,.94) 0%, rgba(0,0,44,.78) 55%, rgba(0,0,60,.55) 100%);
}
.breadcrumb { font-size: .78rem; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb span { color: var(--gold-light); }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 400; max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--gold-light); }
.page-hero p { color: rgba(255,255,255,.78); max-width: 56ch; margin: 1.2rem 0 0; font-size: 1.1rem; }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section.tint { background: var(--cream); }
.section.dark { background: var(--navy-800); color: var(--white); }
.section-head { max-width: 640px; margin: 0 auto clamp(2.8rem, 5vw, 4rem); text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 400; color: var(--navy-800); }
.section.dark .section-head h2 { color: var(--white); }
.section-head .lead { margin: 1rem 0 0; }
.section-no { font-family: var(--ff-body); font-size: .76rem; letter-spacing: .3em; color: var(--gold-dark); font-weight: 600; }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.narrow-left { grid-template-columns: 0.85fr 1.15fr; }
.prose h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 400; color: var(--navy-800); margin-bottom: 1.2rem; }
.prose p { color: var(--stone-600); margin: 0 0 1.2rem; }
.section.dark .prose h2 { color: var(--white); }
.section.dark .prose p { color: rgba(255,255,255,.78); }

.feature-list { display: grid; gap: 1rem; margin: 1.6rem 0 2.2rem; }
.feature-list li { position: relative; padding-left: 2rem; color: var(--stone-600); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 11px; height: 11px;
  border: 1px solid var(--gold); transform: rotate(45deg);
}
.section.dark .feature-list li { color: rgba(255,255,255,.82); }

/* ---------- Editorial image plate ---------- */
.plate {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); box-shadow: var(--shadow-lg);
}
.plate::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(120deg, rgba(234,169,42,.10) 0 1px, transparent 1px 40px),
                    repeating-linear-gradient(60deg, rgba(234,169,42,.06) 0 1px, transparent 1px 40px);
}
.plate-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 7%; padding: 16%; opacity: .55; }
.plate-bars span { flex: 1; background: linear-gradient(var(--gold), transparent); animation: bars 3.4s var(--ease) infinite alternate; }
.plate-bars span:nth-child(1) { height: 50%; }
.plate-bars span:nth-child(2) { height: 78%; animation-delay: .4s; }
.plate-bars span:nth-child(3) { height: 38%; animation-delay: .8s; }
.plate-bars span:nth-child(4) { height: 66%; animation-delay: 1.2s; }
@keyframes bars { to { transform: scaleY(1.16); opacity: .85; } }
.plate-badge {
  position: absolute; bottom: 1.4rem; right: 1.4rem; background: var(--white); color: var(--navy-800);
  padding: 1rem 1.3rem; text-align: center; box-shadow: var(--shadow-md); border-radius: var(--radius);
  z-index: 2;
}
/* Plate with real photography */
.plate > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate.has-photo::before { content: none; }
.plate.has-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(0,0,44,.5), transparent 40%);
}
.plate-badge strong { display: block; font-family: var(--ff-display); font-size: 1.5rem; }
.plate-badge em { font-style: normal; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--navy-900); color: var(--white); padding: clamp(3rem,6vw,4.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1rem; position: relative; }
.stat:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(234,169,42,.3); }
.stat-num, .stat-suffix { font-family: var(--ff-display); font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 400; color: var(--gold-light); line-height: 1; }
.stat-label { display: block; margin-top: .7rem; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.4rem 2rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover, .card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
.card-no { font-family: var(--ff-body); font-size: .72rem; letter-spacing: .25em; color: var(--gold-dark); font-weight: 600; }
.card-icon { width: 48px; height: 48px; color: var(--navy-700); margin: 1.2rem 0 1.1rem; transition: color .35s, transform .4s var(--ease); }
.card-icon svg { width: 100%; height: 100%; }
.card-icon svg path:not([fill="none"]), .card-icon svg circle:not([fill="none"]) { fill: currentColor; }
.card:hover .card-icon { color: var(--gold-dark); transform: translateY(-2px); }
.card h3 { font-size: 1.5rem; font-weight: 500; color: var(--navy-800); margin-bottom: .6rem; }
.card > p { color: var(--stone-500); font-size: .98rem; margin: 0 0 1.3rem; }
.card-list { display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: auto; }
.card-list li { position: relative; padding-left: 1.3rem; font-size: .9rem; color: var(--stone-600); }
.card-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--gold); border-radius: 50%; }

/* ============================================================
   MARKETS / TAGS
   ============================================================ */
.markets-tags { display: flex; flex-wrap: wrap; gap: .65rem; }
.markets-tags span {
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: .55rem 1.1rem;
  font-size: .88rem; color: rgba(255,255,255,.88); transition: all .3s var(--ease);
}
.markets-tags span:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }

/* ============================================================
   SAFETY FEATURES + CERTS
   ============================================================ */
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.4rem 2rem; transition: transform .35s var(--ease), box-shadow .35s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.feature-ic { width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); margin-bottom: 1.3rem; }
.feature-ic svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.3rem; font-weight: 500; color: var(--navy-800); margin-bottom: .5rem; }
.feature-card p { color: var(--stone-500); margin: 0; font-size: .96rem; }

/* Certification / affiliation logo cards */
.certs-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 1rem; }
.cert-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.5rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; min-width: 130px;
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.cert-card img { height: 62px; width: auto; max-width: 190px; object-fit: contain; }
.cert-card.wide img { height: 120px; max-width: 260px; }
.cert-card figcaption { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--stone-500); text-align: center; }

/* Client logo grid */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .9rem; }
.client-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; padding: 1rem 1.1rem; min-height: 90px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.client-card img { max-height: 52px; width: auto; max-width: 100%; object-fit: contain;
  filter: grayscale(1); opacity: .8; transition: filter .35s, opacity .35s; }
.client-card:hover img { filter: none; opacity: 1; }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.photo-strip figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); aspect-ratio: 4/3; position: relative; }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo-strip figure:hover img { transform: scale(1.05); }

/* Map figure */
.map-figure { margin: 0; }
.map-figure img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); background: var(--white); }

.certs { text-align: center; margin-top: clamp(3rem,5vw,4rem); padding-top: 3rem; border-top: 1px solid var(--line); }
.certs-label { text-transform: uppercase; letter-spacing: .28em; font-size: .72rem; font-weight: 600; color: var(--stone-500); margin: 0 0 1.6rem; }
.certs-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.certs-list li { font-family: var(--ff-display); font-size: 1.3rem; color: var(--navy-700); padding: .7rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); transition: all .3s var(--ease); }
.certs-list li:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ============================================================
   PROJECT GALLERY
   ============================================================ */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.8rem; }
.filter-btn {
  font-family: var(--ff-body); font-size: .8rem; letter-spacing: .08em; font-weight: 500;
  padding: .6rem 1.3rem; border: 1px solid var(--line); background: transparent; color: var(--stone-600);
  border-radius: 50px; cursor: pointer; transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--navy-800); }
.filter-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.project {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .4s, filter .4s;
}
.project::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(125deg, rgba(234,169,42,.12) 0 1px, transparent 1px 42px);
  opacity: .8; transition: opacity .4s;
}
.project::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,44,.92) 0%, rgba(0,0,44,.15) 60%, rgba(0,0,44,.4) 100%);
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.project-meta { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.6rem; color: var(--white); }
.project-cat { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.project-meta h3 { font-size: 1.3rem; font-weight: 500; margin: .4rem 0 .2rem; }
.project-loc { font-size: .82rem; color: rgba(255,255,255,.7); }
.project-view {
  position: absolute; top: 1.3rem; right: 1.3rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); display: grid; place-items: center; color: var(--white);
  opacity: 0; transform: scale(.8); transition: all .4s var(--ease);
}
.project:hover .project-view { opacity: 1; transform: scale(1); background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.project-view svg { width: 18px; height: 18px; }
.project.hide { display: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 250; display: none; place-items: center; padding: 1.5rem;
  background: rgba(0,0,30,.86); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; }
.lightbox-card {
  background: var(--white); max-width: 640px; width: 100%; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); transform: translateY(16px); opacity: 0; transition: transform .4s var(--ease), opacity .4s;
}
.lightbox.open .lightbox-card { transform: none; opacity: 1; }
.lightbox-visual { height: 240px; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); position: relative; }
.lightbox-visual::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(125deg, rgba(234,169,42,.14) 0 1px, transparent 1px 44px); }
.lightbox-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lightbox-body { padding: 2rem 2.2rem 2.4rem; }
.lightbox-body .project-cat { color: var(--gold-dark); }
.lightbox-body h3 { font-size: 1.8rem; font-weight: 500; color: var(--navy-800); margin: .4rem 0 .3rem; }
.lightbox-loc { color: var(--stone-500); font-size: .9rem; margin-bottom: 1.2rem; }
.lightbox-body p { color: var(--stone-600); margin: 0; }
.lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: var(--white); font-size: 1.4rem; cursor: pointer; z-index: 3; transition: background .3s; }
.lightbox-close:hover { background: var(--gold); color: var(--navy-900); }

/* ============================================================
   CTA BANNER + QUOTE
   ============================================================ */
.cta { background: var(--navy-900); color: var(--white); text-align: center; padding: clamp(4rem,8vw,6.5rem) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(234,169,42,.05) 0 1px, transparent 1px 50px); }
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2rem,4.5vw,3.2rem); font-weight: 400; margin-bottom: 1rem; }
.cta h2 em { font-style: italic; color: var(--gold-light); }
.cta p { color: rgba(255,255,255,.78); max-width: 50ch; margin: 0 auto 2.2rem; }

.quote { text-align: center; max-width: 860px; margin: 0 auto; }
.quote blockquote { font-family: var(--ff-display); font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 400; font-style: italic; line-height: 1.4; color: var(--navy-800); margin: 0; }
.section.dark .quote blockquote { color: var(--white); }
.quote-mark { font-family: var(--ff-display); font-size: 4rem; color: var(--gold); line-height: .5; }
.quote cite { display: block; margin-top: 1.6rem; font-style: normal; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }

/* ============================================================
   LOCATIONS
   ============================================================ */
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.location { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.2rem 2rem; transition: transform .35s var(--ease), box-shadow .35s; }
.location:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.location-tag { font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; color: var(--gold-dark); font-weight: 600; }
.location h3 { font-size: 1.4rem; font-weight: 500; color: var(--navy-800); margin: .6rem 0 .8rem; }
.location address { font-style: normal; color: var(--stone-500); line-height: 1.7; }
.location .text-link { margin-top: 1.2rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem,5vw,4.5rem); align-items: start; }
.contact-list { display: grid; gap: 1.2rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: 1.1rem; }
.contact-ic { width: 46px; height: 46px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold-dark); flex: none; }
.contact-ic svg { width: 20px; height: 20px; }
.contact-list a { font-weight: 600; color: var(--navy-800); transition: color .25s; }
.contact-list a:hover { color: var(--gold-dark); }
.contact-list .muted { color: var(--stone-500); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem,3vw,2.8rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--stone-700); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--ff-body); font-size: 1rem; color: var(--ink); background: var(--ivory); transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px var(--gold-soft); }
.field textarea { resize: vertical; }
/* ---------- Survey: 1-5 rating scale ---------- */
.survey-q { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.survey-q:last-of-type { border-bottom: 0; }
.survey-q > legend, .survey-q > .q-text {
  font-weight: 600; font-size: .96rem; color: var(--navy-800); margin-bottom: .9rem; display: block; padding: 0;
}
.survey-q .q-num { color: var(--gold-dark); font-size: .78rem; letter-spacing: .18em; display: block; margin-bottom: .3rem; }
.rating { display: flex; gap: .5rem; flex-wrap: wrap; }
.rating input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating label {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  font-family: var(--ff-display); font-size: 1.15rem; color: var(--stone-600);
  transition: all .22s var(--ease); margin: 0;
}
.rating label:hover { border-color: var(--gold); color: var(--navy-800); transform: translateY(-2px); }
.rating input:checked + label { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.rating input:focus-visible + label { box-shadow: 0 0 0 3px var(--gold-soft); }
.rating-key { display: flex; justify-content: space-between; margin-top: .5rem; font-size: .72rem; color: var(--stone-500); max-width: 280px; }

.survey-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow-sm); }
.survey-form fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: .45rem; font-size: .93rem; color: var(--stone-600); cursor: pointer; }
.choice input { accent-color: var(--gold-dark); width: 17px; height: 17px; }

/* Honeypot — off-screen rather than display:none, which some bots skip */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile widget */
.turnstile-box { margin: 0 0 1.2rem; min-height: 65px; }
.turnstile-box:empty { min-height: 0; margin: 0; }

.form-note { margin: 1rem 0 0; font-size: .92rem; font-weight: 600; min-height: 1.2em; }
.form-note.ok { color: #2f7d4f; }
.form-note.err { color: #c0392b; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.map-embed { margin-top: clamp(3rem,6vw,5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* ============================================================
   VALUES (about)
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.value { display: flex; gap: 1.3rem; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: transform .35s var(--ease), box-shadow .35s; }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-no { font-family: var(--ff-display); font-size: 2rem; color: var(--gold); line-height: 1; flex: none; }
.value h3 { font-size: 1.25rem; font-weight: 500; color: var(--navy-800); margin-bottom: .4rem; }
.value p { color: var(--stone-500); margin: 0; font-size: .96rem; }

/* ============================================================
   PILLARS (Engagement · Complexity · Grit)
   ============================================================ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 3.4vw, 3.2rem); }
.pillar { position: relative; padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.16); }
.pillar-num { font-family: var(--ff-body); font-size: .76rem; letter-spacing: .34em; font-weight: 600; color: var(--gold-light); }
.pillar-word { font-family: var(--ff-display); font-size: clamp(2.1rem, 3.8vw, 3.1rem); font-weight: 400; color: var(--white); line-height: 1.04; margin: .55rem 0 0; }
.pillar-rule { display: block; width: 46px; height: 2px; background: var(--gold); margin: 1.1rem 0; transition: width .6s var(--ease); }
.pillar:hover .pillar-rule { width: 96px; }
.pillar-tag { font-family: var(--ff-display); font-style: italic; font-size: 1.22rem; color: var(--gold-light); margin: 0 0 .7rem; }
.pillar-desc { color: rgba(255,255,255,.74); margin: 0; font-size: .98rem; }
/* Light-background variant (if placed on a .tint/plain section) */
.section:not(.dark) .pillar { border-top-color: var(--line); }
.section:not(.dark) .pillar-word { color: var(--navy-800); }
.section:not(.dark) .pillar-num, .section:not(.dark) .pillar-tag { color: var(--gold-dark); }
.section:not(.dark) .pillar-desc { color: var(--stone-600); }

.hero-pillars { margin: 2.3rem 0 0; font-family: var(--ff-body); text-transform: uppercase; letter-spacing: .3em; font-size: .8rem; font-weight: 600; color: var(--gold-light); }
.hero-pillars span { color: rgba(255,255,255,.35); margin: 0 .55rem; }

.footer-pillars { font-family: var(--ff-body); text-transform: uppercase; letter-spacing: .24em; font-size: .72rem; font-weight: 600; color: var(--gold-light); margin: .5rem 0 0; }
.footer-pillars span { color: rgba(255,255,255,.32); margin: 0 .4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.66); padding: clamp(3.5rem,6vw,5rem) 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand-text { font-size: 1.6rem; flex-direction: row; margin-bottom: 1.1rem; }
.footer-brand p { margin: 0 0 1rem; font-size: .94rem; max-width: 38ch; }
.footer-tag { font-family: var(--ff-display); font-style: italic; font-size: 1.2rem; color: var(--gold-light); }
.footer-col h4 { font-family: var(--ff-body); text-transform: uppercase; letter-spacing: .18em; font-size: .74rem; color: var(--white); margin-bottom: 1.1rem; font-weight: 600; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a, .footer-col p { font-size: .92rem; margin: 0; transition: color .25s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.5rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom p { margin: 0; }

/* ============================================================
   ASK IPC LYDON — AI assistant widget
   ============================================================ */
.ask-fab {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 145;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.4rem; border: 0; border-radius: 50px; cursor: pointer;
  background: var(--gold); color: var(--navy-900);
  font-family: var(--ff-body); font-weight: 600; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,44,.28);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.ask-fab:hover { transform: translateY(-3px); background: var(--gold-light); box-shadow: 0 16px 40px rgba(0,0,44,.34); }
.ask-fab svg { width: 18px; height: 18px; }
.ask-fab.hidden { opacity: 0; pointer-events: none; transform: scale(.9); }

.ask-panel {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 146;
  width: min(400px, calc(100vw - 2rem)); height: min(600px, calc(100vh - 3.2rem));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,44,.35);
  opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.ask-panel.open { opacity: 1; transform: none; pointer-events: auto; }

.ask-head {
  background: var(--navy-800); color: var(--white); padding: 1.1rem 1.2rem;
  display: flex; align-items: center; gap: .8rem; flex: none;
}
.ask-head-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ade80; flex: none;
  box-shadow: 0 0 0 3px rgba(74,222,128,.2); }
.ask-head h3 { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 500; margin: 0; flex: 1; }
.ask-head p { margin: .15rem 0 0; font-size: .72rem; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.ask-close { background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.5rem; line-height: 1;
  cursor: pointer; padding: 0 .2rem; transition: color .2s; }
.ask-close:hover { color: var(--white); }

.ask-log { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .9rem;
  background: var(--ivory); scroll-behavior: smooth; }
.ask-msg { max-width: 85%; padding: .8rem 1rem; border-radius: 12px; font-size: .93rem; line-height: 1.6; white-space: pre-wrap; }
.ask-msg.bot { background: var(--white); border: 1px solid var(--line); color: var(--stone-700); align-self: flex-start; border-bottom-left-radius: 3px; }
.ask-msg.user { background: var(--navy-800); color: var(--white); align-self: flex-end; border-bottom-right-radius: 3px; }
.ask-msg.err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; align-self: flex-start; }

.ask-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.ask-chip {
  font-family: var(--ff-body); font-size: .78rem; padding: .45rem .8rem; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 50px; color: var(--stone-600);
  transition: all .25s var(--ease); text-align: left;
}
.ask-chip:hover { border-color: var(--gold); color: var(--navy-800); }

.ask-typing { display: flex; gap: 4px; align-self: flex-start; padding: .9rem 1rem; }
.ask-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dark); opacity: .4;
  animation: askDot 1.2s infinite; }
.ask-typing span:nth-child(2) { animation-delay: .18s; }
.ask-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes askDot { 0%,60%,100% { opacity:.25; transform: translateY(0); } 30% { opacity:1; transform: translateY(-4px); } }

.ask-form { display: flex; gap: .5rem; padding: .9rem; background: var(--white); border-top: 1px solid var(--line); flex: none; }
.ask-form input {
  flex: 1; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 50px;
  font-family: var(--ff-body); font-size: .93rem; background: var(--ivory); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.ask-form input:focus { outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px var(--gold-soft); }
.ask-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--gold); color: var(--navy-900); display: grid; place-items: center; transition: background .25s, transform .25s; }
.ask-send:hover:not(:disabled) { background: var(--gold-light); transform: scale(1.05); }
.ask-send:disabled { opacity: .45; cursor: not-allowed; }
.ask-send svg { width: 18px; height: 18px; }

.ask-foot { padding: 0 .9rem .7rem; background: var(--white); font-size: .68rem; color: var(--stone-500); text-align: center; flex: none; }

@media (max-width: 680px) {
  .ask-fab { padding: .8rem 1.1rem; font-size: .74rem; }
  .ask-panel { width: calc(100vw - 1.6rem); height: min(560px, calc(100vh - 2rem)); right: .8rem; bottom: .8rem; }
}

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 5.7rem; right: 1.6rem; z-index: 140; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--navy-800); color: var(--gold-light); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .4s var(--ease); box-shadow: var(--shadow-md); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--navy-900); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.cards-grid > *:nth-child(2), .feature-cards > *:nth-child(2), .locations-grid > *:nth-child(2), .gallery-grid > *:nth-child(3n+2), .values-grid > *:nth-child(2), .pillars > *:nth-child(2) { transition-delay: .12s; }
.cards-grid > *:nth-child(3), .feature-cards > *:nth-child(3), .locations-grid > *:nth-child(3), .gallery-grid > *:nth-child(3n+3), .pillars > *:nth-child(3) { transition-delay: .24s; }
.cards-grid > *:nth-child(5) { transition-delay: .1s; }
.cards-grid > *:nth-child(6) { transition-delay: .2s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .split, .split.narrow-left, .contact-grid { grid-template-columns: 1fr; }
  .plate { max-width: 440px; margin-inline: auto; }
  .cards-grid, .feature-cards, .gallery-grid, .locations-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: .2rem; background: var(--navy-800); padding: 6rem 1.6rem 2rem;
    transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -24px 0 70px rgba(0,0,0,.45);
  }
  .main-nav.open { transform: translateX(0); }
  .brand-logo, .site-header.scrolled .brand-logo { height: 36px; }
  .main-nav a { padding: 1rem; font-size: 1.05rem; }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .main-nav .nav-cta { margin: .8rem 0 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(2)::after { display: none; }
  .cards-grid, .feature-cards, .gallery-grid, .locations-grid, .values-grid, .pillars, .photo-strip { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
