/* ==========================================================================
   ROOMA Hospitality — Design System
   1. Tokens · 2. Base · 3. Layout · 4. Buttons · 5. Header
   6. Chrome (progress / to-top) · 7. Hero · 8. Editorial blocks
   9. Dark section · 10. Process · 11. Solutions · 12. Projects
   13. Contact · 14. CTA / Footer · 15. Motion · 16. CMS pages · 17. Responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */
:root {
  /* Ink — deep, near-black blue-green. Darker and less saturated than a
     corporate navy, so the warm woods in the photography carry the colour. */
  --ink-900: #040d14;
  --ink-800: #071722;
  --ink-700: #0a1f2e;
  --ink-600: #123043;
  --ink-500: #2b4d63;
  --ink-300: #7b909f;

  /* Accent — champagne gold. Shares a colour temperature with the imagery,
     where the previous orange sat opposite the blue and fought it. */
  --gold-600: #a87a28;
  --gold-500: #c8912f;
  --gold-400: #d9a441;
  --gold-200: #e8c479;
  --gold-glow: rgba(217, 164, 65, .30);
  --gradient-brass: linear-gradient(104deg, #f2d69b 0%, #d9a441 46%, #a87a28 100%);
  --gradient-ink: linear-gradient(160deg, #0a1f2e 0%, #071722 62%, #040d14 100%);

  /* Paper — warm neutrals read richer than pure white */
  --paper: #faf7f2;
  --paper-2: #f2ede5;
  --paper-3: #e8e1d5;
  --white: #fff;

  /* Text */
  --text: #22303c;
  --text-soft: #5b6874;
  --text-mute: #8a959f;
  --text-on-dark: #e8eef4;
  --text-on-dark-soft: #a9bccd;

  /* Lines */
  --line: rgba(10, 31, 46, .14);
  --line-strong: rgba(10, 31, 46, .24);
  --line-dark: rgba(255, 255, 255, .16);

  /* Shadow — long and low-opacity reads as depth, not as a box */
  --shadow-sm: 0 2px 10px -4px rgba(7, 23, 34, .18);
  --shadow-md: 0 18px 40px -28px rgba(7, 23, 34, .55);
  --shadow-lg: 0 42px 90px -50px rgba(7, 23, 34, .72);
  --shadow-gold: 0 20px 46px -24px var(--gold-glow);

  /* Type */
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Playfair Display", Georgia, "Times New Roman", serif;

  /* Fluid scale */
  --fs-display: clamp(48px, 6.6vw, 104px);
  --fs-h1: clamp(42px, 5.6vw, 86px);
  --fs-h2: clamp(34px, 4.4vw, 68px);
  --fs-h3: clamp(20px, 1.6vw, 26px);
  --fs-lead: clamp(17px, 1.35vw, 20px);
  --fs-micro: 12px;

  /* Rhythm */
  --gutter: 48px;
  --maxw: 1240px;
  --section-y: clamp(80px, 9vw, 148px);
  --header-h: 88px;
  --header-h-sm: 68px;

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .5s;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; height: auto; }

/* <picture> only exists to offer WebP; it must not affect layout, so every
   existing `.parent img` rule keeps working unchanged. */
picture { display: contents; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}

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

::selection { background: var(--ink-700); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink-700);
  color: #fff;
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* Accent word — the serif italic is the one decorative move in the system */
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  background: var(--gradient-brass);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */
.container {
  width: min(var(--maxw), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding: var(--section-y) 0; position: relative; }
.section-sm { padding: clamp(56px, 6vw, 92px) 0; position: relative; }

/* Hairline that fades at both ends — softer than a full-width rule */
.section + .section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: clamp(28px, 4vw, 72px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head h2,
.display {
  margin: 14px 0 0;
  color: var(--ink-700);
  font-size: var(--fs-h2);
}
.section-head > p {
  max-width: 46ch;
  margin: 0 0 6px;
  color: var(--text-soft);
  font-size: var(--fs-lead);
}

/* Micro label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-600);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gradient-brass);
}

.dark-section .eyebrow { color: var(--gold-400); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn,
.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  background: var(--gold-500);
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out),
    box-shadow .4s var(--ease-out), transform .3s var(--ease-out);
}

/* Fill sweeps up from the bottom on hover */
.btn::before,
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
}
.btn:hover::before,
.nav-cta:hover::before { transform: none; }
.btn:hover,
.nav-cta:hover { box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }

/* Gold is the default fill; these stay as explicit aliases */
.nav-cta,
.btn-gold {
  background: var(--gold-500);
  border-color: var(--gold-500);
}

/* Ghost on dark backgrounds */
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
}
.btn-outline::before { background: #fff; }
.btn-outline:hover { color: var(--ink-700) !important; border-color: #fff; }

/* Solid ink, used on the gold CTA band */
.btn-dark {
  background: var(--ink-700);
  border-color: var(--ink-700);
}
.btn-dark::before { background: var(--ink-900); }
.btn-dark:hover { box-shadow: var(--shadow-lg); }

/* Text link with a sweeping underline */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.link-arrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-500);
  transition: width .35s var(--ease-out);
}
.link-arrow:hover::after { width: 44px; }

/* ==========================================================================
   5. HEADER + NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-h);
  color: #fff;
  transition: height .45s var(--ease-out), background-color .45s var(--ease-out),
    color .45s var(--ease-out), box-shadow .45s var(--ease-out),
    backdrop-filter .45s var(--ease-out), transform .45s var(--ease-out);
}

/* Hairline under the transparent state so the bar still has an edge */
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, .16);
  transition: background-color .45s var(--ease-out);
}

/* Scrolled — frosted paper */
.site-header.is-stuck {
  height: var(--header-h-sm);
  background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  color: var(--ink-700);
  box-shadow: var(--shadow-md);
}
.site-header.is-stuck::after { background: var(--line); }

/* Hide on scroll-down, reveal on scroll-up */
.site-header.is-hidden { transform: translateY(-101%); }

/* Pages without a hero start on paper, so the bar is solid from the top */
.site-header.is-solid {
  background: var(--paper);
  color: var(--ink-700);
}
.site-header.is-solid::after { background: var(--line); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}

/* --- Brand ---------------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .04em;
  line-height: 1.15;
}
.brand span { display: block; }
.brand small {
  display: block;
  margin-top: 3px;
  color: currentColor;
  opacity: .58;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .24em;
}

.brand-mark {
  position: relative;
  flex: none;
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 50%;
  overflow: hidden;
  transition: transform .6s var(--ease-out);
}
.brand-mark::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  width: 32px;
  height: 16px;
  border-bottom: 6px solid var(--gold-500);
  transform: rotate(-18deg);
}
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.04); }

.site-header.is-stuck .brand small { opacity: .5; }

/* --- Links ---------------------------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: inherit;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .88;
  transition: opacity .25s;
}
.nav a:hover { opacity: 1; }

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--gradient-brass);
  transition: right .4s var(--ease-out);
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta).active::after { right: 0; }
.nav a.active { opacity: 1; }

.nav .nav-cta {
  min-height: 44px;
  padding: 0 22px;
  opacity: 1;
}

/* --- Burger --------------------------------------------------------------- */
.menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 50%;
  width: 17px;
  height: 1.5px;
  margin-left: -8.5px;
  background: currentColor;
  transition: transform .4s var(--ease-out), opacity .25s;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 21px; }
.menu-btn span:nth-child(3) { top: 26px; }

.is-menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.is-menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.is-menu-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ==========================================================================
   6. PAGE CHROME — scroll progress, back to top
   ========================================================================== */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 95;
  width: 100%;
  height: 2px;
  background: var(--gradient-brass);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  color: var(--ink-700);
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out),
    background-color .3s, color .3s;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink-700); color: #fff; border-color: var(--ink-700); }
.to-top svg { width: 15px; height: 15px; }

/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(94vh, 880px);
  padding-top: var(--header-h);
  background: var(--ink-800);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 116%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 1.8s var(--ease-out), opacity 1.2s ease;
  will-change: transform;
}
.hero.is-loaded .hero-bg { transform: scale(1); }

/* Two overlays: a directional wash for legibility, plus a vignette for depth */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  background: linear-gradient(100deg,
    rgba(3, 11, 17, .96) 0%,
    rgba(7, 23, 34, .86) 38%,
    rgba(7, 23, 34, .44) 66%,
    rgba(7, 23, 34, .10) 100%);
}
.hero::after {
  background:
    radial-gradient(120% 80% at 78% 22%, var(--gold-glow) 0%, transparent 58%),
    linear-gradient(to top, rgba(3, 11, 17, .80) 0%, transparent 46%);
  mix-blend-mode: normal;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 78%);
  padding: clamp(72px, 8vw, 130px) 0;
}

.hero-kicker {
  margin: 0 0 26px;
  color: var(--gold-400);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: var(--fs-display);
  letter-spacing: -.04em;
}

.hero .lead {
  max-width: 58ch;
  margin: 28px 0 0;
  color: var(--text-on-dark);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* Capability list. Rendered as flowing text with middot separators rather than
   pills: pill widths vary a lot here, so a wrapped row always looked ragged. */
.hero-tags {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  line-height: 2.1;
  /* when it does wrap on narrow screens, split the lines evenly */
  text-wrap: balance;
}
.hero-tags li {
  display: inline;
  white-space: nowrap;
}
.hero-tags li:not(:last-child)::after {
  content: "·";
  margin: 0 9px;
  color: var(--gold-400);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .62);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .55), transparent);
  animation: scroll-hint 2.4s var(--ease-in-out) infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: scaleY(.35); transform-origin: 50% 0; opacity: .4; }
  50%      { transform: scaleY(1);   transform-origin: 50% 0; opacity: 1; }
}

/* Interior pages */
.page-hero { min-height: min(66vh, 620px); }
.page-hero .hero-content { padding: clamp(64px, 7vw, 104px) 0; }
.page-hero h1 { font-size: var(--fs-h1); }

/* ==========================================================================
   8. EDITORIAL BLOCKS — intro, split, photo, quote, stats
   ========================================================================== */
.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.split > .photo-stack { order: 2; }

/* Framed image with an offset brass plate behind it */
.photo-stack {
  position: relative;
  padding: 0 0 44px 44px;
}
.photo-stack::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 66%;
  height: 62%;
  background: var(--gradient-brass);
  opacity: .92;
}
.photo-stack img {
  position: relative;
  width: 100%;
  height: clamp(360px, 44vw, 560px);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.copy h2 {
  margin: 16px 0 26px;
  color: var(--ink-700);
  font-size: var(--fs-h2);
}
.copy p {
  color: var(--text-soft);
  font-size: 16.5px;
}

.quote {
  position: relative;
  margin-top: 34px;
  padding: 4px 0 4px 26px;
  border-left: 2px solid transparent;
  border-image: var(--gradient-brass) 1;
  color: var(--ink-700);
  font-family: var(--font-serif);
  font-size: clamp(21px, 2vw, 29px);
  font-style: italic;
  line-height: 1.32;
}

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(28px, 3vw, 42px) clamp(18px, 2vw, 32px);
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  color: var(--ink-700);
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat b i {
  font-style: normal;
  background: var(--gradient-brass);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 12px;
  color: var(--text-mute);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ==========================================================================
   9. DARK SECTION + FEATURE GRID
   ========================================================================== */
.dark-section {
  position: relative;
  background: var(--gradient-ink);
  color: var(--text-on-dark);
  overflow: hidden;
}
/* Soft brass bloom in the corner keeps large dark fields from going flat */
.dark-section::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 62%);
  opacity: .55;
  pointer-events: none;
}
.dark-section > .container { position: relative; z-index: 1; }
.dark-section .section-head h2 { color: #fff; }
.dark-section .section-head > p { color: var(--text-on-dark-soft); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.feature {
  position: relative;
  min-height: 250px;
  padding: clamp(26px, 2.6vw, 38px);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease-out);
}
/* Cursor-tracked spotlight (--mx / --my set in JS) */
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .09) 0%, transparent 62%);
  opacity: 0;
  transition: opacity .4s;
}
.feature:hover::before { opacity: 1; }
.feature::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--gradient-brass);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .55s var(--ease-out);
}
.feature:hover::after { transform: none; }
.feature:hover { transform: translateY(-4px); }

.feature .num {
  display: block;
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: .04em;
}
.feature h3 {
  margin: 22px 0 12px;
  color: #fff;
  font-size: var(--fs-h3);
  letter-spacing: -.02em;
}
.feature p {
  margin: 0;
  color: var(--text-on-dark-soft);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ==========================================================================
   10. PROCESS + PHILOSOPHY
   ========================================================================== */
.process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 34px 22px 30px 0;
  cursor: default;
}
/* Marker dot sits on the rule; the rule fills brass on hover */
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 30px;
  color: var(--gold-500);
  font-family: var(--font-serif);
  font-size: 26px;
  transition: transform .45s var(--ease-out);
}
.step::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--gold-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--gold-glow);
  transition: box-shadow .5s var(--ease-out);
}
.step:hover::after { box-shadow: 0 0 0 7px var(--gold-glow); }
.step:hover::before { transform: translateY(-3px); }
.step h3 {
  margin: 0 0 8px;
  color: var(--ink-700);
  font-size: 17px;
  letter-spacing: -.02em;
}
.step p {
  margin: 0;
  color: var(--text-mute);
  font-size: 13.5px;
  line-height: 1.55;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(36px, 4vw, 56px);
  border: 1px solid var(--line-dark);
}
.philosophy {
  position: relative;
  padding: clamp(30px, 3vw, 46px) clamp(20px, 2vw, 30px);
  border-right: 1px solid var(--line-dark);
  overflow: hidden;
  transition: background-color .45s var(--ease-out);
}
.philosophy:last-child { border-right: 0; }
.philosophy:hover { background: rgba(255, 255, 255, .05); }
.philosophy b {
  display: block;
  margin-bottom: 18px;
  color: var(--gold-400);
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1;
}
.philosophy h3 {
  margin: 0;
  color: #fff;
  font-size: 19px;
  letter-spacing: -.02em;
}

/* ==========================================================================
   11. SOLUTIONS
   ========================================================================== */
.solution-list {
  display: grid;
  gap: 20px;
}
.solution {
  display: grid;
  grid-template-columns: minmax(220px, .34fr) 1fr;
  min-height: 300px;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out),
    border-color .4s;
}
.solution:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.solution figure,
.solution > a { position: relative; margin: 0; overflow: hidden; }
.solution img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.solution:hover img { transform: scale(1.06); }

.solution-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 46px);
}
.solution h2 {
  margin: 0 0 14px;
  color: var(--ink-700);
  font-size: clamp(23px, 2.1vw, 30px);
}
.solution p {
  color: var(--text-soft);
  font-size: 15.5px;
}
.solution strong {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .06em;
  line-height: 1.85;
}

/* ==========================================================================
   12. PROJECTS
   ========================================================================== */
.project-feature {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  background: var(--gradient-ink);
  color: #fff;
  overflow: hidden;
}
.project-feature > img,
.project-feature figure { margin: 0; overflow: hidden; }
.project-feature img {
  width: 100%;
  height: clamp(400px, 46vw, 660px);
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.project-feature:hover img { transform: scale(1.04); }

.project-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(34px, 4vw, 66px);
}
.project-copy h2 {
  margin: 10px 0 16px;
  font-size: clamp(28px, 2.9vw, 44px);
  color: #fff;
}
.project-copy p { color: var(--text-on-dark-soft); font-size: 15.5px; }
.project-copy .btn { align-self: flex-start; margin-top: 20px; }

.project-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
}
.project-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 11, 17, .93) 6%, rgba(3, 11, 17, .30) 46%, transparent 74%);
  transition: opacity .5s;
}
.project-card:hover img { transform: scale(1.05); }
.project-card > div {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: clamp(24px, 2.6vw, 38px);
  color: #fff;
  transform: translateY(14px);
  transition: transform .55s var(--ease-out);
}
.project-card:hover > div { transform: none; }
.project-card h3 { margin: 0 0 10px; font-size: clamp(21px, 2vw, 27px); color: #fff; }
.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 14.5px;
  opacity: 0;
  transition: opacity .5s var(--ease-out) .05s;
}
.project-card:hover p { opacity: 1; }

/* Callout panel */
.notice {
  position: relative;
  padding: clamp(30px, 3.4vw, 52px);
  padding-left: clamp(34px, 3.6vw, 58px);
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.notice::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gradient-brass);
}
.notice h2 {
  margin: 0 0 14px;
  color: var(--ink-700);
  font-size: clamp(24px, 2.2vw, 32px);
}
.notice p { color: var(--text-soft); margin-bottom: 0; }
.notice strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-700);
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -.01em;
}

/* ==========================================================================
   13. PROCESS CHAIN — infinite marquee
   ========================================================================== */
.chain {
  position: relative;
  padding: 22px 0;
  background: var(--ink-700);
  color: #fff;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.chain-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.chain:hover .chain-track { animation-play-state: paused; }
.chain-track > span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chain-track em {
  font-style: normal;
  color: var(--gold-400);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   14. CONTACT + FORMS
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.contact-info {
  position: relative;
  padding: clamp(30px, 3.2vw, 48px);
  background: var(--gradient-ink);
  color: var(--text-on-dark);
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-glow), transparent 62%);
  pointer-events: none;
}
.contact-info > * { position: relative; }
.contact-info h2 {
  margin: 16px 0 22px;
  color: #fff;
  font-size: clamp(26px, 2.4vw, 36px);
}
.contact-info p { color: var(--text-on-dark-soft); font-size: 15px; }
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  padding-bottom: 3px;
  color: #fff;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  transition: border-color .3s, color .3s;
}
.contact-info a:hover { color: var(--gold-400); border-color: var(--gold-400); }
.contact-divider {
  height: 1px;
  margin: 26px 0;
  background: var(--line-dark);
}

/* --- Fields --------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 9px; }
.field.full { grid-column: 1 / -1; }

.field label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-700);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.field label em {
  color: var(--gold-600);
  font-style: normal;
}
.field-hint {
  color: var(--text-mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: none;
}

.field input[type="text"],
.field input:not([type]),
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field select[multiple],
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font-size: 15px;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-mute); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.field textarea { min-height: 150px; resize: vertical; }

/* Native single select gets a chevron; multiple keeps its own list box */
.field select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  cursor: pointer;
}
.field select[multiple] {
  padding: 8px;
  min-height: 148px;
}
.field select[multiple] option {
  padding: 8px 10px;
  border-radius: 2px;
}
.field select[multiple] option:checked {
  background: var(--ink-700) linear-gradient(0deg, var(--ink-700) 0%, var(--ink-700) 100%);
  color: #fff;
}

/* Upload control rendered by the CMS: strip its Bootstrap grid */
.field-upload .row,
.field-upload [class^="col-lg-"] { margin: 0; padding: 0; }
.field-upload .fileupload-buttonbar { display: flex; flex-wrap: wrap; gap: 10px; }
.field-upload .progress {
  height: 6px;
  margin-top: 12px;
  background: var(--paper-3);
  overflow: hidden;
}
.field-upload .progress-bar { height: 100%; background: var(--gradient-brass); }

/* The CMS ships these buttons with class="btn", which is the site's gold
   primary. Neutralise it so they read as the secondary controls they are. */
.field-upload .btn,
.field-upload .fileinput-button,
.field-upload .fileinput-unused,
.field-upload .fileinput-delete {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink-700) !important;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .3s, color .3s;
}
.field-upload .btn::before { display: none; }
.field-upload .btn:hover { border-color: var(--gold-500); color: var(--gold-600) !important; }
.field-upload .fileinput-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.field-upload .files_row_preview img { max-width: 140px; margin-top: 12px; }
.field-upload .finecms-file-ts { margin-top: 10px; color: var(--text-mute); font-size: 12.5px; }

/* Upload control inherited from the CMS form plugin */
.field .fileinput-button,
.field .fileinput-unused,
.field .fileinput-delete {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s, color .3s, background-color .3s;
}
.field .fileinput-button:hover,
.field .fileinput-unused:hover,
.field .fileinput-delete:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
}
.field .fileinput-button input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.finecms-file-ts { color: var(--text-mute); font-size: 12.5px; }
.files_row_preview img { max-width: 120px; margin-top: 10px; }

.form-intro {
  margin: -8px 0 26px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold-500);
  background: var(--paper-2);
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.form-intro a {
  color: var(--ink-700);
  font-weight: 620;
  border-bottom: 1px solid var(--gold-500);
}
.form-intro a:hover { color: var(--gold-600); }

.field-captcha {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.field-captcha input { flex: 1; min-width: 0; }
.field-captcha img {
  height: 52px;
  border: 1px solid var(--line-strong);
  background: var(--white);
}

.field .btn { align-self: flex-start; }

.field-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.form-note {
  color: var(--text-mute);
  font-size: 13px;
}
[role="status"]:not(:empty) {
  margin-top: 14px;
  padding: 12px 16px;
  border-left: 2px solid var(--gold-500);
  background: var(--paper-2);
  color: var(--ink-700);
  font-size: 14px;
}

/* ==========================================================================
   15. CTA BAND + FOOTER
   ========================================================================== */
.cta-band {
  position: relative;
  background: var(--gradient-brass);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 140% at 12% 0%, rgba(255, 255, 255, .3), transparent 58%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(44px, 5vw, 74px) 0;
}
.cta-inner h2 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(28px, 3.6vw, 52px);
  color: #fff;
}

.site-footer {
  padding: clamp(56px, 7vw, 92px) 0 26px;
  background: var(--ink-900);
  color: var(--text-on-dark-soft);
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .75fr .95fr 1.2fr;
  gap: clamp(30px, 4vw, 56px);
}
.site-footer .brand {
  display: flex;
  margin-bottom: 20px;
  color: #fff;
}
.site-footer h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-footer a:not(.brand) {
  display: inline-block;
  margin: 7px 0;
  color: var(--text-on-dark-soft);
  transition: color .3s, transform .3s var(--ease-out);
}
.site-footer a:not(.brand):hover { color: var(--gold-400); }
.site-footer .footer-links a:hover { transform: translateX(4px); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.site-footer p { color: var(--text-on-dark-soft); }

.copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-mute);
  font-size: 12.5px;
}

/* ==========================================================================
   16. MOTION
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition:
    opacity .8s var(--ease-out) var(--reveal-delay, 0ms),
    transform .8s var(--ease-out) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Masked line-by-line heading reveal */
.line-mask {
  display: block;
  overflow: hidden;
  /* Leave room for ascenders/descenders, then pull the box back so the
     visual rhythm of the heading is unchanged. */
  padding: .06em 0 .18em;
  margin: -.06em 0 -.18em;
}
.line-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform .95s var(--ease-out) var(--line-delay, 0ms);
}
.is-visible .line-mask > span,
.line-mask.is-visible > span { transform: none; }

/* Image wipe */
[data-img-reveal] { position: relative; overflow: hidden; }
[data-img-reveal]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: 100% 50%;
  transition: transform 1.1s var(--ease-out);
}
[data-img-reveal].is-visible::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .line-mask > span { transform: none !important; }
  [data-img-reveal]::after { display: none; }
  .hero-bg { transform: none !important; }
}

/* ==========================================================================
   17. CMS CONTENT PAGES
   Class names (ep-* / el-*) come from the CMS templates and are kept so any
   stray CMS-generated markup inherits the same design language.
   ========================================================================== */

/* Interior pages have no hero, so push content clear of the fixed header */
.content-page { padding-top: calc(var(--header-h) + 8px); }

/* --- Page banner ---------------------------------------------------------- */
.content-banner {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(34px, 4vw, 52px);
  background: var(--gradient-ink);
  color: #fff;
  overflow: hidden;
}
.content-banner::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 60vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--gold-glow), transparent 62%);
  pointer-events: none;
}
.content-banner > .container { position: relative; }
.content-banner h1 {
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 60px);
}
.content-banner .lead {
  max-width: 62ch;
  margin: 16px 0 0;
  color: var(--text-on-dark-soft);
  font-size: var(--fs-lead);
}

/* --- Breadcrumb ----------------------------------------------------------- */
.ep-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ep-breadcrumb a { color: rgba(255, 255, 255, .78); transition: color .3s; }
.ep-breadcrumb a:hover { color: var(--gold-400); }
.ep-bc-sep { opacity: .45; }

/* Breadcrumb outside a dark banner */
.ep-breadcrumb.is-light { color: var(--text-mute); }
.ep-breadcrumb.is-light a { color: var(--text-soft); }
.ep-breadcrumb.is-light a:hover { color: var(--gold-600); }

/* --- Two-column shell ----------------------------------------------------- */
.ep-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: clamp(28px, 3.5vw, 56px);
  align-items: start;
}
.ep-row > .ep-col-main,
.ep-row > .ep-col-side { min-width: 0; }
.ep-mt-8 { margin-top: 32px; }
.ep-mb-16 { margin-bottom: 16px; }
.ep-flex-grow { flex: 1; min-width: 0; }

/* --- Card ----------------------------------------------------------------- */
.el-card {
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out);
}
.el-card + .el-card { margin-top: 24px; }
.el-card.is-always-shadow { box-shadow: var(--shadow-md); }

.el-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px clamp(20px, 2.4vw, 34px);
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.el-card__header::before {
  content: "";
  width: 22px;
  height: 1px;
  order: -1;
  background: var(--gradient-brass);
}
.el-card__body { padding: clamp(20px, 2.4vw, 34px); }

/* --- List item ------------------------------------------------------------ */
.ep-list-item {
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.ep-list-item:first-child { padding-top: 0; }
.ep-list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.ep-list-item--flush { padding: 0; border-bottom: 0; }

.ep-thumb {
  flex: none;
  width: 190px;
  height: 126px;
  object-fit: cover;
  background: var(--paper-2);
  transition: transform .7s var(--ease-out);
}
.ep-list-item:hover .ep-thumb { transform: scale(1.03); }
.ep-thumb--sm { width: 78px; height: 58px; }

.ep-article-title {
  margin: 0 0 10px;
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 620;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.ep-article-title a {
  background-image: linear-gradient(var(--gold-500), var(--gold-500));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  color: var(--ink-700);
  transition: background-size .45s var(--ease-out), color .3s;
}
.ep-article-title a:hover { background-size: 100% 1px; }

.ep-list-desc {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-list-desc--tight { margin-bottom: 12px; }

.ep-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  color: var(--text-mute);
  font-size: 12.5px;
}
.ep-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ep-meta i { opacity: .7; font-size: 12px; }

.ep-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink-600);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .04em;
  transition: background-color .3s, color .3s, border-color .3s;
}
.ep-badge:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: #fff;
}
.ep-badge.is-plain { background: var(--paper-2); border-color: transparent; }

/* --- Sidebar -------------------------------------------------------------- */
.ep-col-side .el-card { position: sticky; top: calc(var(--header-h) + 20px); }
.ep-side-hit-row {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
}
.ep-side-hit-row:first-child { padding-top: 0; }
.ep-side-hit-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ep-side-hit-title {
  display: block;
  color: var(--ink-700);
  font-size: 14.5px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -.01em;
  transition: color .3s;
}
.ep-side-hit-row:hover .ep-side-hit-title { color: var(--gold-600); }
.ep-side-hit-desc {
  margin-top: 5px;
  color: var(--text-mute);
  font-size: 12.5px;
  line-height: 1.5;
}
.ep-cat-title-link { color: var(--ink-700); }

/* --- Article body --------------------------------------------------------- */
.ep-show-card-body { padding: clamp(26px, 3.4vw, 56px); }
.ep-show-title {
  margin: 0 0 20px;
  color: var(--ink-700);
  font-size: clamp(28px, 3.4vw, 46px);
  letter-spacing: -.035em;
}
.ep-show-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 13px;
}
.ep-show-meta span { display: inline-flex; align-items: center; gap: 7px; }

/* Rich text from the editor */
.neirong {
  padding: 30px 0;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.85;
}
.neirong > *:first-child { margin-top: 0; }
.neirong h2,
.neirong h3,
.neirong h4 { margin: 1.8em 0 .7em; color: var(--ink-700); letter-spacing: -.025em; }
.neirong h2 { font-size: clamp(24px, 2.2vw, 32px); }
.neirong h3 { font-size: clamp(20px, 1.8vw, 25px); }
.neirong p { margin: 0 0 1.15em; }
.neirong a { color: var(--gold-600); text-decoration: underline; text-underline-offset: 3px; }
.neirong img { margin: 26px auto; box-shadow: var(--shadow-md); }
.neirong ul,
.neirong ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.neirong li { margin-bottom: .5em; }
.neirong blockquote {
  margin: 28px 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--gold-500);
  color: var(--ink-700);
  font-family: var(--font-serif);
  font-size: 21px;
  font-style: italic;
}
.neirong table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 15px;
}
.neirong th,
.neirong td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.neirong th { background: var(--paper-2); color: var(--ink-700); font-weight: 650; }
.neirong hr { margin: 32px 0; border: 0; border-top: 1px solid var(--line); }

.ep-show-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.ep-show-prevnext-wrap {
  display: grid;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fc-show-prev-next {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
}
.fc-show-prev-next strong {
  margin-right: 8px;
  color: var(--text-mute);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.fc-show-prev-next a { color: var(--ink-700); transition: color .3s; }
.fc-show-prev-next a:hover { color: var(--gold-600); }

/* --- Related grid --------------------------------------------------------- */
.ep-show-related { padding-top: 34px; }
.ep-show-related-title {
  margin-bottom: 22px;
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ep-show-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.ep-show-related-col { min-width: 0; }
.ep-related-card {
  height: 100%;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.ep-related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ep-related-cover { display: block; overflow: hidden; }
.ep-related-cover img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.ep-related-card:hover .ep-related-cover img { transform: scale(1.06); }
.ep-related-card .el-card__body { padding: 18px; }
.ep-related-title {
  display: block;
  color: var(--ink-700);
  font-size: 15.5px;
  font-weight: 620;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.ep-related-card:hover .ep-related-title { color: var(--gold-600); }
.ep-related-desc {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}
.ep-related-date { margin-top: 10px; color: var(--text-mute); font-size: 12px; }

/* --- Search filters ------------------------------------------------------- */
.ep-search-filters { margin-bottom: 8px; }
.ep-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}
.ep-search-row--center { align-items: center; }
.ep-search-label {
  flex: none;
  width: 90px;
  color: var(--text-mute);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ep-search-field { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-search-divider { height: 1px; background: var(--line); }
.ep-search-keyword-wrap { flex: 1; min-width: 220px; }
.el-input__wrapper { display: block; }
.el-input__inner {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-size: 15px;
  transition: border-color .3s, box-shadow .3s;
}
.el-input__inner:focus {
  outline: 0;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

/* --- Small buttons / links ------------------------------------------------ */
.el-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-700);
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.el-button:hover { border-color: var(--ink-700); transform: translateY(-1px); }
.el-button--small { min-height: 34px; padding: 0 14px; font-size: 12px; }
.el-button--primary {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: #fff;
}
.el-button--primary:hover { background: var(--gold-500); border-color: var(--gold-500); }
.el-button.is-plain { background: var(--paper-2); }

.el-link { color: var(--ink-700); transition: color .3s; }
.el-link--primary:hover { color: var(--gold-600); }

/* --- Pagination ----------------------------------------------------------- */
.xrpagination { margin-top: 34px; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pagination li a,
.pagination li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-700);
  font-size: 13.5px;
  font-weight: 620;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.pagination li a:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: #fff;
  transform: translateY(-2px);
}
.pagination li.active a,
.pagination li.active > span {
  background: var(--gradient-brass);
  border-color: transparent;
  color: #fff;
}

/* --- Standalone message / 404 pages --------------------------------------- */
.ep-auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 24px;
  background: var(--gradient-ink);
}
.ep-auth-card {
  width: min(520px, 100%);
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  text-align: center;
  color: var(--text-on-dark);
}
.ep-auth-card .el-card__body { padding: clamp(34px, 5vw, 56px); }
.ep-404-visual {
  background: var(--gradient-brass);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-serif);
  font-size: clamp(80px, 14vw, 150px);
  line-height: 1;
}
.ep-404-msg { margin: 12px 0 28px; color: var(--text-on-dark-soft); }
.ep-msg-icon-box { font-size: 46px; }
.ep-msg-icon--ok { color: var(--gold-400); }
.ep-msg-icon--err { color: #e2645c; }
.ep-msg-title {
  margin: 18px 0 24px;
  color: #fff;
  font-size: clamp(20px, 2.4vw, 28px);
}
.ep-msg-actions a { color: var(--gold-400); }
.ep-auth-card .el-button--primary { border-color: var(--gold-500); background: var(--gold-500); }

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .ep-row { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  :root { --gutter: 28px; }

  /* --- Mobile navigation: full-screen ink overlay --- */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 89;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 48px;
    /* Near-black, with the same corner bloom the dark sections use, so the
       overlay reads as part of the ink palette rather than a blue panel. */
    background:
      radial-gradient(120% 70% at 100% 0%, rgba(217, 164, 65, .17) 0%, transparent 55%),
      linear-gradient(165deg, #071722 0%, #04101a 58%, #02080d 100%);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    /* Opacity is composited on the GPU. A clip-path circle reveal had to
       re-rasterise the whole viewport every frame, which stuttered on open. */
    transition: opacity .3s var(--ease-out), visibility 0s linear .3s;
    overflow-y: auto;
  }
  .is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s var(--ease-out), visibility 0s;
  }

  .nav a {
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid var(--line-dark);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    text-transform: none;
    opacity: 0;
    transform: translateY(18px);
  }
  .is-menu-open .nav a {
    opacity: 1;
    transform: none;
    transition: opacity .38s var(--ease-out) var(--nav-delay, 0ms),
                transform .38s var(--ease-out) var(--nav-delay, 0ms);
  }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav .nav-cta {
    justify-content: center;
    margin-top: 26px;
    border: 0;
    min-height: 54px;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: .14em;
  }

  .menu-btn { display: block; z-index: 91; }

  /* The nav overlay is position:fixed inside the header. An element with a
     backdrop-filter or a transform becomes the containing block for its fixed
     descendants, which clipped the overlay to the header's own 68px box as
     soon as `.is-stuck` applied. Neither may be active while the menu is open. */
  .is-menu-open .site-header {
    color: #fff;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    transition: color .3s var(--ease-out);
  }
  .is-menu-open .site-header::after { background: transparent; }

  /* The overlay is a positioned sibling of the brand, so it paints over it.
     Lift the lockup back above the overlay while the menu is open. */
  .is-menu-open .brand {
    position: relative;
    z-index: 91;
    color: #fff;
  }

  /* --- Layout collapse --- */
  .hero-content { width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy:nth-child(2n) { border-right: 0; }
  .philosophy:nth-child(-n+2) { border-bottom: 1px solid var(--line-dark); }
  .solution { grid-template-columns: 180px 1fr; }
  .project-feature { grid-template-columns: 1fr; }
  .project-feature img { height: 380px; }
  .ep-row { grid-template-columns: 1fr; }
  .ep-col-side .el-card { position: static; }
  .ep-show-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
    --header-h: 68px;
    --header-h-sm: 60px;
  }

  /* Keep the header bar tight: the lockup keeps the name, drops the tagline */
  .brand { font-size: 14px; }
  .brand small { display: none; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-mark::before { left: 4px; top: 10px; width: 28px; height: 14px; border-bottom-width: 5px; }

  .section-head { grid-template-columns: 1fr; align-items: start; }
  .section-head > p { margin-top: 4px; }

  .hero { min-height: auto; }
  .hero-content { padding: 96px 0 84px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); }
  .hero-scroll { display: none; }
  .page-hero { min-height: auto; }

  .intro-grid,
  .split,
  .contact-grid { grid-template-columns: 1fr; }
  .split > .photo-stack { order: 0; }
  .photo-stack { padding: 0 0 26px 26px; }
  .photo-stack img { height: 330px; }

  .feature-grid,
  .form-grid,
  .project-cards { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }

  .process { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy { border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .philosophy:last-child { border-bottom: 0; }

  .solution { grid-template-columns: 1fr; }
  .solution img { min-height: 0; height: 230px; }
  .project-card,
  .project-card img { min-height: 340px; }
  .project-feature img { height: 300px; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .copyright { justify-content: center; text-align: center; }

  /* Content pages */
  .ep-list-item { flex-direction: column; gap: 14px; }
  .ep-thumb { width: 100%; height: 190px; }
  .mobile-hidden { display: none; }
  .ep-show-related-grid { grid-template-columns: 1fr; }
  .ep-search-label { width: 100%; }
  .stats-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* ==========================================================================
   19. PRINT
   ========================================================================== */
@media print {
  .site-header, .to-top, .scroll-progress, .cta-band, .chain, .hero-scroll { display: none !important; }
  body { background: #fff; color: #000; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
