/* ==========================================================================
   Prime Elevation Ltd — design system
   Mobile-first. No framework, no build step.
   ========================================================================== */

/* ---- Fonts ------------------------------------------------------------- */
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/neuemachina/neuemachina-ultrabold.woff2') format('woff2'),
       url('../fonts/neuemachina/neuemachina-ultrabold.woff') format('woff');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/neuemachina/neuemachina-regular.woff2') format('woff2'),
       url('../fonts/neuemachina/neuemachina-regular.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Neue Machina';
  src: url('../fonts/neuemachina/neuemachina-light.woff2') format('woff2'),
       url('../fonts/neuemachina/neuemachina-light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT Walsheim';
  src: url('../fonts/walsheim/GTWalsheimPro-Regular.woff2') format('woff2'),
       url('../fonts/walsheim/GTWalsheimPro-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT Walsheim';
  src: url('../fonts/walsheim/GTWalsheimPro-Medium.woff2') format('woff2'),
       url('../fonts/walsheim/GTWalsheimPro-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GT Walsheim';
  src: url('../fonts/walsheim/GTWalsheimPro-Bold.woff2') format('woff2'),
       url('../fonts/walsheim/GTWalsheimPro-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --ink:        #2e2a2a;
  --ink-soft:   #6b6560;
  --cream:      #f3ebe4;
  --cream-2:    #ece5dc;
  --cream-deep: #e5dccf;
  --white:      #ffffff;
  --purple:     #4b2e83;
  --purple-2:   #2e1c53;
  --orange:     #e8632a;
  --gold:       #f2b134;
  --gradient-brand: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
  --gradient-dark:  linear-gradient(160deg, #241f1c 0%, #161311 60%, #0f0d0c 100%);
  --line:       rgba(46,42,42,0.12);
  --line-dark:  rgba(255,255,255,0.12);
  --shadow-soft: 0 20px 60px rgba(46,42,42,0.10);
  --shadow-lift: 0 30px 80px rgba(46,42,42,0.20);

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-display: 'Neue Machina', 'Arial Black', sans-serif;
  --font-body: 'GT Walsheim', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'Roboto Mono', 'SF Mono', Consolas, monospace;

  --container: 1240px;
  --radius: 18px;
  --radius-lg: 28px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 7rem);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; overscroll-behavior-x: none; }
body {
  margin: 0;
  max-width: 100vw;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
p { line-height: 1.7; color: var(--ink-soft); margin: 0 0 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2.5rem); }

/* Grid/flex items default to min-width:auto, which refuses to shrink below
   intrinsic content size — the classic cause of headline text overflowing
   its column on narrow viewports despite word-break rules. Reset broadly. */
.trust > *, .invest > *, .about-grid > *, .contact-grid > *,
.footer-grid > *, .steps-row > *, .services-list > *, .hero-copy, .hero-visual {
  min-width: 0;
}

/* ---- Type scale ----------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1em;
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--gradient-brand); border-radius: 2px;
}
h1 { font-size: clamp(1.9rem, 7vw, 3.8rem); }
.hero-copy h1 { text-transform: uppercase; letter-spacing: -0.015em; font-size: clamp(2.1rem, 6.2vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ink-soft); }

/* ---- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: transform 0.35s cubic-bezier(.22,1,.36,1), box-shadow 0.35s, background 0.35s, color .35s;
  white-space: nowrap;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.35s; }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 14px 30px rgba(46,42,42,0.22); }
.btn-primary:hover { background: #171414; box-shadow: 0 20px 40px rgba(46,42,42,0.3); }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #171414; }

.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--cream); }

.btn-accent { background: var(--gradient-brand); color: var(--white); box-shadow: 0 14px 30px rgba(232,99,42,0.3); }
.btn-accent:hover { box-shadow: 0 20px 40px rgba(232,99,42,0.4); }

.btn-text { background: transparent; color: var(--ink); padding: 0.95em 0.2em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.btn-text:hover { text-decoration-color: var(--ink); transform: none; }

.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }

.btn-outline-dark { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---- Preloader -------------------------------------------------------------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--gradient-dark);
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  width: clamp(72px, 14vw, 108px);
  animation: loaderFloat 2.6s ease-in-out infinite;
  filter: drop-shadow(0 12px 30px rgba(232,99,42,0.45));
  opacity: 0; transform: scale(0.6) rotate(-8deg);
  animation: loaderReveal 1s cubic-bezier(.22,1,.36,1) forwards, loaderFloat 2.6s ease-in-out 1s infinite;
}
@keyframes loaderReveal { to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes loaderFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.loader-word {
  font-family: var(--font-head); font-weight: 800; color: var(--white);
  font-size: clamp(1.1rem, 3vw, 1.5rem); margin-top: 1.4rem; letter-spacing: 0.02em;
  opacity: 0; transform: translateY(10px);
  animation: loaderTextIn 0.8s ease 0.9s forwards;
  text-align: center;
}
.loader-tag {
  font-family: var(--font-body); color: rgba(255,255,255,0.55);
  font-size: clamp(0.8rem, 1.8vw, 0.95rem); margin-top: 0.5rem; text-align: center;
  opacity: 0; transform: translateY(10px);
  animation: loaderTextIn 0.8s ease 1.15s forwards;
  max-width: 320px; letter-spacing: 0.02em;
}
@keyframes loaderTextIn { to { opacity: 1; transform: translateY(0); } }
.loader-bar {
  width: 160px; height: 3px; background: rgba(255,255,255,0.12); border-radius: 3px;
  margin-top: 2rem; overflow: hidden;
}
.loader-bar::after {
  content: ''; display: block; height: 100%; width: 40%; border-radius: 3px;
  background: var(--gradient-brand);
  animation: loaderBar 1.6s ease-in-out infinite;
}
@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---- Header / Nav ----------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  padding: 1.1rem 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.is-scrolled {
  background: rgba(20,18,26,0.86);
  backdrop-filter: blur(14px);
  padding: 0.7rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 40px; width: auto; }
.brand-plate { background: var(--white); border-radius: 10px; padding: 0.35rem 0.6rem; display: flex; align-items: center; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.brand-plate img { height: 34px; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--white); line-height: 1; }
.brand-word span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a {
  color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.94rem;
  position: relative; padding: 0.3rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gradient-brand); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--white); }

.nav-cta { display: none; }
.nav-toggle {
  display: flex; flex-direction: column; gap: 5px; width: 34px; height: 24px; justify-content: center;
  background: none; border: none; cursor: pointer; z-index: 501;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px; transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 490;
  background: var(--gradient-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav a { font-family: var(--font-head); font-size: 1.6rem; color: var(--white); font-weight: 800; }
.mobile-nav .btn { margin-top: 1rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* ---- Page header (non-home caption header, replaces hero on inner pages) --- */
.page-head {
  padding: clamp(7.5rem, 16vw, 10.5rem) 0 clamp(3rem, 6vw, 4rem);
  background: var(--cream);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: var(--gradient-brand); opacity: 0.10; filter: blur(90px);
  top: -220px; right: -160px; pointer-events: none;
}
.page-head .eyebrow { color: var(--orange); }
.page-head h1 { color: var(--ink); max-width: 780px; }
.page-head p { color: var(--ink-soft); max-width: 600px; font-size: 1.05rem; }
.page-head .crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.page-head .crumb span { color: var(--orange); }

/* ---- Hero (home only) — full-bleed photo with scrim ------------------------- */
.hero-photo {
  position: relative;
  color: var(--white);
  padding: clamp(9rem, 24vw, 12rem) 0 clamp(4.5rem, 10vw, 7rem);
  overflow: hidden;
  contain: paint;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
}
.hero-bg-wrap {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; contain: strict;
}
.hero-bg {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: center center;
  animation: heroKenBurns 22s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.5%, -2%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(20,17,15,0.35) 0%, rgba(20,17,15,0.45) 45%, rgba(15,13,12,0.88) 100%);
}
.hero-photo .container { position: relative; z-index: 2; width: 100%; }
.hero-copy .eyebrow { color: var(--gold); }
.hero-copy h1 { color: var(--white); font-weight: 600; }
.hero-copy h1 em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-family: var(--font-head); font-weight: 500; font-style: italic;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.45;
  color: var(--gold); max-width: 560px; margin-top: 0.3em;
}
.hero-copy p { color: rgba(255,255,255,0.72); max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.8rem; }
.hero-actions .btn-text { color: var(--white); text-decoration-color: rgba(255,255,255,0.4); }
.hero-actions .btn-text:hover { text-decoration-color: var(--white); }
.hero-stats { display: flex; gap: clamp(1.5rem, 4vw, 2.6rem); margin-top: 2.8rem; flex-wrap: wrap; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-stats div b { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; color: var(--white); }
.hero-stats div span { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ---- Section shell ---------------------------------------------------------- */
section { padding: var(--section-pad) 0; }
/* Faint blueprint-grid texture — ties section canvases to engineering/
   construction without competing with content (grid lines + corner
   crosshairs + two accent dots, tiled). */
.section-cream, .section-white, .page-head {
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22120%22%20height%3D%22120%22%3E%3Cpath%20d%3D%22M0%200H120M0%2040H120M0%2080H120M0%200V120M40%200V120M80%200V120%22%20stroke%3D%22%232e2a2a%22%20stroke-width%3D%221%22%20opacity%3D%220.05%22/%3E%3Cpath%20d%3D%22M40%2036V44M36%2040H44%22%20stroke%3D%22%232e2a2a%22%20stroke-width%3D%221%22%20opacity%3D%220.10%22/%3E%3Cpath%20d%3D%22M80%2076V84M76%2080H84%22%20stroke%3D%22%232e2a2a%22%20stroke-width%3D%221%22%20opacity%3D%220.10%22/%3E%3Ccircle%20cx%3D%220%22%20cy%3D%220%22%20r%3D%221.6%22%20fill%3D%22%23e8632a%22%20opacity%3D%220.14%22/%3E%3Ccircle%20cx%3D%2280%22%20cy%3D%2240%22%20r%3D%221.6%22%20fill%3D%22%23e8632a%22%20opacity%3D%220.14%22/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.section-cream { background-color: var(--cream); }
.section-white { background-color: var(--white); }
.section-dark { background: var(--gradient-dark); color: var(--white); }

/* Section-specific photo backdrops — a tinted scrim keeps existing text/card
   colors legible while the photo shows through as atmosphere, not a
   competing focal image. */
.bg-photo { background-size: cover; background-position: center; background-blend-mode: normal; }
.bg-photo-trust { background-image: linear-gradient(rgba(15,13,12,0.82), rgba(15,13,12,0.86)), url('../img/general/bg-trust.jpg'); color: var(--white); }
.bg-photo-services { background-image: linear-gradient(rgba(15,13,12,0.82), rgba(15,13,12,0.86)), url('../img/general/bg-services.jpg'); color: var(--white); }
.bg-photo-investment { background-image: linear-gradient(rgba(15,13,12,0.82), rgba(15,13,12,0.86)), url('../img/general/bg-investment.jpg'); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.6); }
.section-dark .eyebrow { color: var(--gold); }

.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.2rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---- Reveal-on-scroll -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---- Trust section ------------------------------------------------------------ */
.trust { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.trust-visual { position: relative; }
.trust-visual img, .trust-visual video { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
@media (min-width: 900px) { .trust-visual video { aspect-ratio: 2/3; } }
.trust-visual::after {
  content: ''; position: absolute; width: 70%; height: 70%; right: -8%; bottom: -8%; z-index: -1;
  background: var(--gradient-brand); opacity: 0.14; border-radius: var(--radius-lg); filter: blur(2px);
}
.trust-list { display: grid; gap: 1rem; margin: 1.8rem 0 2.2rem; }
.trust-list li { display: flex; gap: 0.8rem; align-items: flex-start; font-weight: 600; color: var(--ink); }
.trust-list svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--orange); margin-top: 0.1em; }

.bg-photo-trust h2, .bg-photo-services h2, .bg-photo-investment h2 { color: var(--white); }
.bg-photo-trust p, .bg-photo-services p, .bg-photo-investment p { color: rgba(255,255,255,0.75); }
.bg-photo-trust .trust-list li, .bg-photo-services .trust-list li, .bg-photo-investment .trust-list li { color: var(--white); }
.bg-photo-trust .eyebrow, .bg-photo-services .eyebrow, .bg-photo-investment .eyebrow { color: var(--gold); }
.bg-photo-services .lede { color: rgba(255,255,255,0.7); }

@media (min-width: 900px) {
  .trust { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---- Services grid -------------------------------------------------------------- */
.services-card {
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  max-width: 720px; margin: 0 auto; text-align: center;
}
.services-list { display: grid; gap: 0.9rem; grid-template-columns: 1fr; text-align: left; margin-bottom: 1.8rem; }
.services-list li { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; font-size: 0.98rem; color: var(--ink); }
.services-list-icon {
  width: 36px; height: 36px; border-radius: 10px; background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.services-list-icon svg { width: 18px; height: 18px; color: var(--white); }
.services-note { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.services-cta { text-align: center; margin-top: clamp(2rem, 5vw, 3rem); }

@media (min-width: 700px) { .services-list { grid-template-columns: repeat(2, 1fr); } }

/* ---- Process steps — compact, distinct from Services' boxed cards --------------- */
.steps-row { display: flex; flex-direction: column; gap: 2rem; max-width: 900px; margin: 0 auto; }
.step { text-align: center; max-width: 260px; margin-inline: auto; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; color: var(--orange);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.step p { font-size: 0.9rem; margin: 0; }
.step-line { display: none; }

@media (min-width: 900px) {
  .steps-row { flex-direction: row; align-items: flex-start; gap: 0; }
  .step { flex: 1; }
  .step-line { display: block; flex: 0 0 60px; height: 1.5px; background: var(--line); margin-top: 22px; }
}

/* ---- Investment split ---------------------------------------------------------------- */
.invest { display: grid; gap: clamp(2rem, 5vw, 3rem); align-items: center; }
.invest-gallery a { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.invest-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.6s cubic-bezier(.22,1,.36,1); }
.invest-gallery a:hover img { transform: scale(1.03); }
@media (min-width: 640px) { .invest-gallery img { aspect-ratio: 16/11; } }

@media (min-width: 960px) { .invest { grid-template-columns: 1.05fr 0.95fr; } }

/* ---- Projects CTA banner ---------------------------------------------------------------- */
.projects-banner {
  border-radius: var(--radius-lg);
  background: var(--gradient-dark);
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.6rem, 6vw, 4rem);
  text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.projects-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 20% 0%, rgba(242,177,52,0.18), transparent 60%),
              radial-gradient(500px 300px at 90% 100%, rgba(75,46,131,0.4), transparent 60%);
}
.projects-banner * { position: relative; }
.projects-banner h2 { color: var(--white); max-width: 640px; margin-inline: auto; }
.projects-banner p { color: rgba(255,255,255,0.6); max-width: 520px; margin-inline: auto 1.6rem; }
.projects-banner .btn { margin-top: 1.6rem; }

/* ---- Footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.65); padding: clamp(3rem, 7vw, 5rem) 0 1.6rem; }
.footer-grid { display: grid; gap: 2.4rem; }
.footer-brand .brand-word { color: var(--white); }
.footer-brand p { max-width: 320px; margin-top: 1rem; font-size: 0.92rem; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.footer-social a:hover { background: var(--gradient-brand); border-color: transparent; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 2.6rem; padding-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: space-between; font-size: 0.82rem; }

@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); } }

/* ---- Project grid (Projects page) -------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.4rem; }
.filter-btn {
  padding: 0.65em 1.3em; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.filter-btn.is-active, .filter-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.filter-count { opacity: 0.55; font-weight: 500; }

.project-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.project-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  aspect-ratio: 4/3; background: var(--cream-2);
}
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.22,1,.36,1); }
.play-badge { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.play-badge svg { width: 54px; height: 54px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.3)); }
.project-card:hover img { transform: scale(1.06); }
.project-card .tag {
  position: absolute; top: 1rem; left: 1rem; padding: 0.35em 0.9em; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: var(--ink);
}
.project-card .tag.ongoing { background: var(--gold); color: var(--ink); }
.project-card .tag.completed { background: var(--ink); color: var(--white); }
.project-card .tag.soon { background: var(--purple); color: var(--white); }
.project-card .caption {
  position: absolute; inset-inline: 0; bottom: 0; padding: 2.4rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: var(--white); font-weight: 700; font-size: 0.9rem;
}

@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Share button + menu --------------------------------------------------------------------- */
.card-share {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(20,18,26,0.55); color: var(--white); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.card-share:hover { background: var(--gradient-brand); transform: scale(1.08); }
.card-share svg { width: 17px; height: 17px; }

.lightbox-share {
  position: absolute; top: 1.4rem; right: 5.6rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s;
}
.lightbox-share:hover { background: rgba(255,255,255,0.2); }
.lightbox-share svg { width: 19px; height: 19px; }

.share-menu {
  position: fixed; z-index: 900; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 1.2rem; display: grid; gap: 0.6rem; min-width: 260px;
}
.share-menu-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; }
.share-menu a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.8em 1em; border-radius: 12px;
  background: var(--cream); font-weight: 600; font-size: 0.9rem; transition: background .2s;
}
.share-menu a:hover { background: var(--cream-2); }
.share-menu a svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }

/* ---- Lightbox ------------------------------------------------------------------------------ */
.lightbox {
  position: fixed; inset: 0; z-index: 800; background: rgba(10,9,13,0.94);
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img, .lightbox video { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow-lift); }
.lightbox-caption { color: rgba(255,255,255,0.8); text-align: center; margin-top: 1rem; font-weight: 600; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .25s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 1.4rem; right: 1.4rem; }
.lightbox-nav svg, .lightbox-close svg { width: 20px; height: 20px; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { display: none; } }

/* ---- About page ------------------------------------------------------------------------------- */
.about-grid { display: grid; gap: clamp(2.2rem, 5vw, 3.5rem); align-items: start; }
.about-media { position: sticky; top: 6rem; display: grid; gap: 1rem; grid-template-columns: 1.2fr 1fr; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-media a:first-child img { aspect-ratio: 3/4; object-fit: cover; }
.about-media a:nth-child(2) img { aspect-ratio: 1/1; object-fit: cover; }
.value-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin: 1.6rem 0; }
.value-chip { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; font-weight: 700; font-size: 0.92rem; display:flex; align-items:center; gap:0.6rem; }
.value-chip svg { width: 18px; height: 18px; color: var(--orange); flex-shrink: 0; }
.stat-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.4rem; margin-top: 2rem; }
.stat-row b { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; display:block; }
.stat-row span { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }

@media (min-width: 960px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; } }

/* ---- Team card ------------------------------------------------------------------------------------- */
.team-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; max-width: 700px; margin-inline: auto; }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); max-width: 320px; margin-inline: auto; }
.team-card img { aspect-ratio: 1/1; object-fit: cover; }
.team-card .info { padding: 1.3rem 1.4rem; }
.team-card h4 { font-family: var(--font-body); font-weight: 700; margin: 0 0 0.2em; }
.team-card span { color: var(--orange); font-size: 0.85rem; font-weight: 600; }

/* ---- Services page list ------------------------------------------------------------------------------- */
.service-row {
  display: grid; gap: 1.4rem; padding: clamp(1.8rem, 4vw, 2.6rem) 0; border-bottom: 1px solid var(--line);
  align-items: center;
}
.service-row:first-child { padding-top: 0; }
.service-row .num { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--orange); }
@media (min-width: 760px) { .service-row { grid-template-columns: 60px 1fr 1.4fr; } }

/* ---- Contact page ------------------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3rem); }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.contact-info li { display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-info li:last-child { border-bottom: none; }
.contact-info .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--cream-2); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.contact-info .ic svg { width: 20px; height: 20px; color: var(--orange); }
.contact-info b { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 0.2em; }
.form-row { display: grid; gap: 1rem; margin-bottom: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label { font-size: 0.85rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; padding: 0.85em 1em; border-radius: 12px; border: 1px solid var(--line);
  background: var(--cream); color: var(--ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.8rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

/* ---- Maria chat widget (sitewide, injected by main.js) ---------------------------------------------------- */
.maria-launcher {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 700;
  width: 62px; height: 62px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  box-shadow: var(--shadow-lift); overflow: visible;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s cubic-bezier(.22,1,.36,1);
}
.maria-launcher:hover { transform: scale(1.06); }
.maria-launcher img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,0.85); }
.maria-dot { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: #33cc6a; border: 2px solid var(--white); }

.maria-panel {
  position: fixed; right: 1.4rem; bottom: 5.6rem; z-index: 700;
  width: min(360px, calc(100vw - 2.4rem)); max-height: min(560px, calc(100vh - 8rem));
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.98);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.maria-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.maria-head { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem; background: var(--gradient-dark); color: var(--white); }
.maria-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.maria-head b { display: block; font-family: var(--font-body); font-size: 0.95rem; }
.maria-head span { font-size: 0.72rem; color: rgba(255,255,255,0.55); }
.maria-close { margin-left: auto; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.5rem; }
.maria-close:hover { color: var(--white); }
.maria-body { padding: 1rem 1.1rem; overflow-y: auto; flex: 1; background: var(--cream); display: flex; flex-direction: column; gap: 0.6rem; }
.maria-msg { background: var(--white); border-radius: 14px 14px 14px 4px; padding: 0.8em 1em; font-size: 0.88rem; line-height: 1.5; color: var(--ink); box-shadow: 0 4px 14px rgba(20,18,26,0.06); max-width: 88%; align-self: flex-start; }
.maria-msg-user { background: var(--ink); color: var(--white); border-radius: 14px 14px 4px 14px; align-self: flex-end; }
.maria-typing { display: flex; gap: 4px; align-items: center; padding: 0.9em 1em; }
.maria-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); opacity: 0.4; animation: mariaTyping 1.2s ease-in-out infinite; }
.maria-typing span:nth-child(2) { animation-delay: 0.15s; }
.maria-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes mariaTyping { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.maria-form { padding: 0.9rem 1.1rem 1.1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; border-top: 1px solid var(--line); align-items: end; }
.maria-form textarea { grid-column: 1; font: inherit; padding: 0.7em 0.9em; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); font-size: 0.88rem; resize: none; }
.maria-form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.maria-form .btn { grid-column: 2; font-size: 0.88rem; padding: 0.8em 1.2em; }
.maria-note { grid-column: 1 / -1; font-size: 0.76rem; margin: 0; min-height: 1em; }
.maria-note a { color: var(--orange); font-weight: 600; }

@media (max-width: 480px) {
  .maria-launcher { right: 1rem; bottom: 1rem; width: 56px; height: 56px; }
  .maria-launcher img { width: 48px; height: 48px; }
  .maria-panel {
    left: 50%; right: auto; bottom: 4.8rem;
    transform: translateX(-50%) translateY(16px) scale(0.98);
    width: calc(100vw - 2rem);
  }
  .maria-panel.is-open { transform: translateX(-50%) translateY(0) scale(1); }
}

/* ---- Utility ------------------------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.skip-link {
  position: absolute; top: 0; left: 0; z-index: 2000;
  width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  background: var(--ink); color: var(--white); padding: 0.8em 1.2em;
}
.skip-link:focus {
  width: auto; height: auto; overflow: visible; white-space: normal;
  clip: auto; clip-path: none;
  top: 1rem; left: 1rem;
}
