/* ==========================================================================
   Emporium UAE LLC — Design Tokens (from Brand Design System v1.0)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  /* colors */
  --em-gold:        #B8952A;
  --em-gold-light:  #E4C97E;
  --em-gold-sand:   #C9A96E;
  --em-dark-brown:  #2C1E0F;
  --em-mid-brown:   #38291A;
  --em-black:       #000000;
  --em-cream:       #F7F3ED;
  --em-sand:        #F0ECE4;
  --em-text-primary:#2C1E0F;
  --em-text-body:   #5A4225;
  --em-text-muted:  #7A6040;
  --em-text-faint:  #A89070;
  --em-border:      #E0D4BE;
  --em-border-dark: rgba(201,169,110,.2);
  --em-ash:         #6D6D6D;
  --em-smoke:       #9A9A9A;
  --em-ink:         #181818;
  /* deepened gold — same hue as --em-gold, scaled for 4.5:1+ contrast on cream (WCAG AA) */
  --em-gold-deep:   #80681D;

  /* type */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Montserrat', 'Inter', ui-sans-serif, sans-serif;

  --text-hero:       clamp(64px, 12vw, 200px);
  --text-display:    clamp(48px, 8vw, 88px);
  --text-heading-lg: clamp(36px, 6vw, 72px);
  --text-heading:    clamp(26px, 4.5vw, 48px);
  --text-subheading: clamp(19px, 2.6vw, 28px);

  --leading-hero: .86;
  --leading-display: 1.0;
  --leading-heading: 1.16;
  --leading-body: 1.5;
  --leading-relaxed: 1.75;

  /* spacing */
  --sp-4:4px; --sp-8:8px; --sp-12:12px; --sp-16:16px; --sp-24:24px;
  --sp-28:28px; --sp-40:40px; --sp-48:48px; --sp-64:64px;
  --sp-80:80px; --sp-120:120px; --sp-152:152px;

  /* layout */
  --page-max: 1440px;
  --page-content: 1140px;
  --section-pad-v: clamp(64px, 9vw, 152px);
  --section-pad-h: clamp(24px, 5vw, 64px);

  /* radius: only two values exist in this system */
  --radius-none: 0px;
  --radius-pill: 75px;

  /* motion */
  --ease-glide: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-micro: 150ms;
  --duration-short: 400ms;
  --duration-standard: 700ms;
  --duration-long: 1250ms;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  line-height: var(--leading-body);
  color: var(--em-text-body);
  background: var(--em-cream);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
}

img { max-width: 100%; display: block; border-radius: var(--radius-none); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
ul { list-style: none; }

::selection { background: var(--em-gold); color: var(--em-dark-brown); }

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

em, i { font-style: italic; }

.wrap {
  max-width: var(--page-content);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
}

section {
  padding: var(--section-pad-v) 0;
  position: relative;
  overflow: hidden;
}

.surface-dark {
  background: var(--em-dark-brown);
  color: var(--em-cream);
}
.surface-light {
  background: var(--em-cream);
  color: var(--em-text-body);
}
.surface-sand {
  background: var(--em-sand);
  color: var(--em-text-body);
}
.surface-black {
  background: var(--em-black);
  color: var(--em-cream);
}

/* ==========================================================================
   Typography primitives
   ========================================================================== */

.eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  /* gold-deep, not gold: 11px gold-on-cream is 2.6:1, well under WCAG AA 4.5:1 */
  color: var(--em-gold-deep);
  display: inline-block;
  margin-bottom: var(--sp-16);
}

.surface-dark .eyebrow,
.surface-black .eyebrow { color: var(--em-gold-sand); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--em-text-primary);
}

.surface-dark h1, .surface-dark h2, .surface-dark h3,
.surface-black h1, .surface-black h2, .surface-black h3 {
  color: var(--em-cream);
}

/* base .gold assumes a light surface; gold-deep keeps contrast at 4.5:1+ even at heading size */
.gold { color: var(--em-gold-deep); font-style: italic; font-weight: 300; }
.surface-dark .gold, .surface-black .gold { color: var(--em-gold-sand); }

.rule {
  height: 1px;
  width: 48px;
  background: var(--em-gold);
  transform-origin: left;
  margin: var(--sp-24) 0;
}

.rule.in-view { animation: drawRule 1200ms var(--ease-glide) forwards; }

@keyframes drawRule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.lede {
  font-size: 18px;
  line-height: var(--leading-body);
  color: var(--em-text-muted);
  max-width: 640px;
}
/* smoke, not ash: ash-on-dark-brown is 3.1:1, under WCAG AA 4.5:1 for this text size */
.surface-dark .lede, .surface-black .lede { color: var(--em-smoke); }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-standard) var(--ease-glide),
              transform var(--duration-standard) var(--ease-glide);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* clip-mask headline reveal */
.clip-line { overflow: hidden; display: block; }
.clip-line > span {
  display: block;
  transform: translateY(110%);
  transition: transform 900ms var(--ease-glide);
}
.clip-line.in-view > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .monogram-watermark { animation: none; }
}

/* ==========================================================================
   Custom cursor
   ========================================================================== */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--em-gold);
  transition: width var(--duration-micro) var(--ease-glide),
              height var(--duration-micro) var(--ease-glide),
              background var(--duration-micro) var(--ease-glide);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1.5px solid var(--em-gold);
  transition: width 200ms var(--ease-glide), height 200ms var(--ease-glide),
              border-color 200ms var(--ease-glide);
}
.cursor-dot.on-light { background: var(--em-text-primary); }
.cursor-ring.on-light { border-color: rgba(44,30,15,.3); }
.cursor-dot.hovering { width: 10px; height: 10px; }
.cursor-ring.hovering { width: 52px; height: 52px; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ==========================================================================
   EM monogram watermark
   ========================================================================== */

.monogram-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 300;
  color: var(--em-gold-sand);
  opacity: .07;
  line-height: 1;
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  animation: monoFloat 14s ease-in-out infinite;
  white-space: nowrap;
}
.monogram-watermark b { font-weight: 500; }
.monogram-watermark i { font-style: italic; font-weight: 300; }

@keyframes monoFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* ==========================================================================
   Buttons & pills
   ========================================================================== */

.btn {
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--duration-long) var(--ease-glide),
              border-color var(--duration-long) var(--ease-glide),
              color var(--duration-long) var(--ease-glide);
  background: transparent;
}

.btn-ghost-dark { border-color: rgba(255,255,255,.3); color: var(--em-cream); }
.btn-ghost-dark:hover { background: var(--em-gold); border-color: var(--em-gold); color: var(--em-dark-brown); }

.btn-ghost-light { border-color: var(--em-text-primary); color: var(--em-text-primary); }
.btn-ghost-light:hover { background: var(--em-gold); border-color: var(--em-gold); color: var(--em-dark-brown); }

.btn-filled { background: var(--em-gold); border-color: var(--em-gold); color: var(--em-dark-brown); font-weight: 600; }
.btn-filled:hover { background: var(--em-gold-light); border-color: var(--em-gold-light); }

.pill-tag {
  background: rgba(184,149,42,.06);
  border: 1px solid rgba(184,149,42,.35);
  color: var(--em-gold-deep);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 9px 20px;
  display: inline-block;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 84px;
  z-index: 200;
  display: flex;
  align-items: center;
  transition: background var(--duration-short) ease, backdrop-filter var(--duration-short) ease,
              box-shadow var(--duration-short) ease;
}

.nav.on-dark { background: transparent; }
.nav.scrolled.on-dark { background: rgba(44,30,15,.85); backdrop-filter: blur(12px); }
.nav.scrolled.on-light { background: rgba(247,243,237,.92); backdrop-filter: blur(12px); }

.nav-inner {
  width: 100%;
  max-width: var(--page-content);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
}

.nav-mono {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--em-gold-sand);
}
.nav-mono b { font-weight: 500; }
.nav-mono i { font-weight: 300; font-style: italic; }

.nav-wordmark {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  transition: color var(--duration-short) ease;
}
.nav.on-dark .nav-wordmark { color: var(--em-cream); }
.nav.on-light .nav-wordmark { color: var(--em-text-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--duration-micro) ease;
}
.nav.on-dark .nav-link { color: var(--em-cream); }
.nav.on-light .nav-link { color: var(--em-text-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--em-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-glide);
}
.nav-link:hover { color: var(--em-gold); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 11px;
  padding: 11px 24px;
}

.nav-burger {
  display: none;
  width: 28px; height: 18px;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
}
/* invisible 44x44 hit area (keeps the 28x18 bar geometry the X-animation relies on) */
.nav-burger::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}
.nav-burger span {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: currentColor;
  transition: transform var(--duration-short) var(--ease-glide), opacity var(--duration-short) ease;
}
.nav.on-dark .nav-burger { color: var(--em-cream); }
.nav.on-light .nav-burger { color: var(--em-text-primary); }
.nav-burger span:nth-child(1) { top: 2px; }
.nav-burger span:nth-child(2) { bottom: 2px; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 84px; left: 0; right: 0; bottom: 0;
    /* explicit height: the scrolled nav's backdrop-filter becomes the containing
       block for this fixed menu, which collapses a top+bottom stretch to 0.
       dvh also tracks mobile browser-chrome resizing. */
    height: calc(100dvh - 84px);
    overflow-y: auto;
    background: var(--em-dark-brown); flex-direction: column; justify-content: center;
    gap: var(--sp-40); transform: translateX(100%); transition: transform var(--duration-long) var(--ease-glide);
  }
  .nav-links.open { transform: translateX(0); }
  /* padding lifts the tap target from ~24px to ~40px tall (links sit in a gap:40 column, no overlap) */
  .nav-links .nav-link { color: var(--em-cream) !important; font-size: 16px; padding: 8px 16px; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 84px;
  position: relative;
  background: var(--em-dark-brown);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* warm colour grade per brand photography direction: pull highlights to amber, avoid cool/blue casts */
  filter: sepia(.3) saturate(1.15) brightness(.4) hue-rotate(-6deg);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  /* required overlay per brand imagery rule: gradient, never a flat tint — strong throughout so text reads over a busy skyline */
  background:
    radial-gradient(60% 55% at 78% 18%, rgba(228,201,126,.1), transparent 60%),
    linear-gradient(180deg, rgba(20,13,6,.72) 0%, rgba(28,19,9,.7) 45%, rgba(44,30,15,.9) 100%);
}

.hero-monogram {
  font-size: min(48vw, 640px);
  right: -6%;
  bottom: -12%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--page-content);
  margin: 0 auto;
  padding: 0 var(--section-pad-h);
  width: 100%;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--em-gold-sand);
  margin-bottom: var(--sp-24);
  opacity: 0;
  animation: fadeUp var(--duration-short) var(--ease-glide) 500ms forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: -0.02em;
  color: var(--em-cream);
}

.hero-sub {
  margin-top: var(--sp-40);
  max-width: 560px;
  font-size: 18px;
  line-height: var(--leading-body);
  color: var(--em-ash);
  opacity: 0;
  animation: fadeUp var(--duration-short) var(--ease-glide) 1300ms forwards;
}

.hero-actions {
  margin-top: var(--sp-48);
  display: flex;
  gap: var(--sp-16);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp var(--duration-short) var(--ease-glide) 1500ms forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  left: var(--section-pad-h);
  bottom: 108px;
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  color: var(--em-text-faint);
  opacity: 0;
  animation: fadeUp var(--duration-short) var(--ease-glide) 1800ms forwards;
  z-index: 1;
}
.hero-scroll span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-scroll svg { animation: spin 9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* stat bar overlapping hero base */
.stat-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(201,169,110,.18);
  margin-top: clamp(56px, 8vw, 96px);
}
.stat-bar-inner {
  max-width: var(--page-content);
  margin: 0 auto;
  padding: var(--sp-40) var(--section-pad-h);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  border-right: 1px solid rgba(201,169,110,.14);
  padding-right: var(--sp-24);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  color: var(--em-gold);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-lbl {
  margin-top: var(--sp-8);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--em-smoke);
}

@media (max-width: 720px) {
  .stat-bar-inner { grid-template-columns: 1fr; gap: var(--sp-24); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(201,169,110,.14); padding-bottom: var(--sp-24); }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ==========================================================================
   Section heading block
   ========================================================================== */

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp-64);
  position: relative;
  z-index: 1;
}
.section-head h2 {
  font-size: var(--text-heading-lg);
  line-height: var(--leading-heading);
}

/* ==========================================================================
   Solutions grid ("What We Do")
   ========================================================================== */

.solutions-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-24);
}

.solution-tile {
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-24);
  color: var(--em-cream);
  will-change: transform;
  transition: transform 500ms var(--ease-glide);
}

.solution-tile::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(44,30,15,.88) 100%);
  transition: background 500ms var(--ease-glide);
}

.solution-tile:hover::after,
.solution-tile:focus-within::after {
  background: linear-gradient(180deg, transparent 55%, rgba(44,30,15,.8) 100%);
}

/* tech HUD corner brackets — reveal on hover, gold, 0px radius, no box-shadow */
.solution-tile::before {
  content: '';
  position: absolute; inset: 16px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--em-gold) 0 16px, transparent 16px) top left,
    linear-gradient(180deg, var(--em-gold) 0 16px, transparent 16px) top left,
    linear-gradient(-90deg, var(--em-gold) 0 16px, transparent 16px) top right,
    linear-gradient(180deg, var(--em-gold) 0 16px, transparent 16px) top right,
    linear-gradient(90deg, var(--em-gold) 0 16px, transparent 16px) bottom left,
    linear-gradient(0deg, var(--em-gold) 0 16px, transparent 16px) bottom left,
    linear-gradient(-90deg, var(--em-gold) 0 16px, transparent 16px) bottom right,
    linear-gradient(0deg, var(--em-gold) 0 16px, transparent 16px) bottom right;
  background-repeat: no-repeat;
  background-size: 24px 1.5px, 1.5px 24px, 24px 1.5px, 1.5px 24px, 24px 1.5px, 1.5px 24px, 24px 1.5px, 1.5px 24px;
  opacity: 0;
  transition: opacity 400ms var(--ease-glide);
}

.solution-tile:hover::before,
.solution-tile:focus-within::before {
  opacity: 1;
}

.solution-tile-art {
  position: absolute; inset: 0;
  overflow: hidden;
}

/* diagonal light sweep across the image — cinematic reveal, triggers once per hover */
.solution-tile-art::before {
  content: '';
  position: absolute; inset: -20% -60%;
  z-index: 1;
  background: linear-gradient(115deg, transparent 42%, rgba(228,201,126,.22) 50%, transparent 58%);
  transform: translateX(-100%);
  transition: transform 900ms var(--ease-glide);
  pointer-events: none;
}

.solution-tile:hover .solution-tile-art::before {
  transform: translateX(100%);
}

/* gradient fallback shown while the photo loads (or if it fails) — kept as background-color, not layered on top */
.tile-1 .solution-tile-art { background: radial-gradient(120% 100% at 20% 0%, #4a3520, #2c1e0f 55%), linear-gradient(200deg, #38291a, #1c1309); }
.tile-2 .solution-tile-art { background: radial-gradient(120% 100% at 80% 10%, #6d5424, #2c1e0f 55%), linear-gradient(160deg, #38291a, #17100a); }
.tile-3 .solution-tile-art { background: radial-gradient(120% 100% at 10% 90%, #8a6a2e, #2c1e0f 60%), linear-gradient(200deg, #2c1e0f, #17100a); }
.tile-4 .solution-tile-art { background: radial-gradient(120% 100% at 85% 90%, #5a4225, #2c1e0f 55%), linear-gradient(160deg, #38291a, #1c1309); }

.solution-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* warm colour grade per brand photography direction, unifies stock placeholders with the palette */
  filter: sepia(.32) saturate(1.3) brightness(.66) hue-rotate(-6deg);
  transform: scale(1.04);
  transition: transform 1250ms var(--ease-glide);
}

.solution-tile:hover .solution-tile-art img { transform: scale(1.1); }

.tile-content { position: relative; z-index: 3; transition: transform 500ms var(--ease-glide); }
.tile-n {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 300;
  color: var(--em-gold-sand);
  opacity: .5;
  line-height: 1;
  margin-bottom: var(--sp-12);
}
.tile-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--em-gold);
  margin-bottom: var(--sp-8);
  display: flex;
  align-items: center;
  gap: 8px;
}
/* signal-bar indicator, not a dot — 0px radius keeps it within the two-value system */
.tile-tag::before {
  content: '';
  width: 3px;
  height: 9px;
  background: var(--em-gold);
  animation: signalPulse 1.8s ease-in-out infinite;
}
@keyframes signalPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.tile-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  color: var(--em-cream);
  margin-bottom: var(--sp-8);
}
.tile-body {
  font-size: 13px;
  line-height: var(--leading-relaxed);
  color: rgba(247,243,237,.72);
  max-width: 26ch;
}

@media (max-width: 980px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-tile { aspect-ratio: 4/3; }
}

/* ==========================================================================
   Principle grid
   ========================================================================== */

.principle-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(201,169,110,.14);
  border-left: 1px solid rgba(201,169,110,.14);
}

.principle-item {
  padding: var(--sp-40) var(--sp-28);
  border-right: 1px solid rgba(201,169,110,.14);
  border-bottom: 1px solid rgba(201,169,110,.14);
}

.p-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  color: var(--em-gold);
  opacity: .28;
  line-height: 1;
  margin-bottom: var(--sp-12);
}
.p-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--em-gold);
  margin-bottom: var(--sp-12);
}
.p-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--em-cream);
  margin-bottom: var(--sp-12);
  line-height: 1.3;
}
.p-body {
  font-size: 14px;
  line-height: var(--leading-relaxed);
  color: var(--em-smoke);
}

@media (max-width: 860px) {
  .principle-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   About / markets section
   ========================================================================== */

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--sp-64);
  align-items: start;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--text-subheading);
  line-height: 1.45;
  color: var(--em-text-primary);
  border-left: 1px solid var(--em-gold);
  padding-left: var(--sp-24);
}

.pull-attr {
  margin-top: var(--sp-24);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--em-text-muted);
}
.pull-attr b { color: var(--em-gold); font-style: normal; font-weight: 600; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-8);
  margin-top: var(--sp-24);
}

.markets-copy p + p { margin-top: var(--sp-16); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-24);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  font-size: 15px;
  color: var(--em-ash);
}
.contact-line svg { flex-shrink: 0; }

.contact-note {
  margin-top: var(--sp-16);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--em-gold-sand);
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-24);
  margin-bottom: var(--sp-24);
}

.form-group { display: flex; flex-direction: column; gap: var(--sp-8); }

.form-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--em-gold-sand);
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201,169,110,.25);
  border-radius: 0;
  padding: 12px 0;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--em-cream);
  outline: none;
  width: 100%;
  transition: border-color 800ms var(--ease-glide);
}
.form-input::placeholder { color: rgba(247,243,237,.35); }
.form-input:focus { border-bottom-color: var(--em-gold); }

textarea.form-input { resize: none; line-height: 1.6; }

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-16);
  flex-wrap: wrap;
  margin-top: var(--sp-16);
}

.form-privacy {
  font-size: 12px;
  color: var(--em-text-faint);
  max-width: 300px;
  line-height: 1.6;
}

.form-status {
  margin-top: var(--sp-16);
  font-size: 13px;
  color: var(--em-gold-light);
  font-style: italic;
  font-family: var(--font-display);
  min-height: 20px;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* 16px min prevents iOS Safari from auto-zooming the page on input focus */
  .form-input { font-size: 16px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: var(--sp-64) 0 var(--sp-40);
  border-top: 1px solid var(--em-border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-40);
  flex-wrap: wrap;
  padding-bottom: var(--sp-40);
  border-bottom: 1px solid var(--em-border);
}

.footer-mark { display: flex; align-items: center; gap: var(--sp-12); }
.footer-mono {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--em-gold-sand);
  line-height: 1;
}
.footer-mono b { font-weight: 500; }
.footer-mono i { font-weight: 300; font-style: italic; }
.footer-wordmark {
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--em-text-primary);
}

.footer-links {
  display: flex;
  gap: var(--sp-28);
  flex-wrap: wrap;
}
.footer-link {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--em-text-muted);
  transition: color var(--duration-micro) ease;
}
.footer-link:hover { color: var(--em-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-16);
  flex-wrap: wrap;
  padding-top: var(--sp-24);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--em-text-faint);
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   ABOUT — cinematic three-act scroll  (Effect: about-cinematic)
   Rebuild of the About section: a 300vh scroll-space with a 100vh sticky
   panel, three text "moments" layered over a full-bleed image. Pinning is
   pure CSS position:sticky; GSAP (effects/about-cinematic.js) drives the
   image/overlay/panel tweens and toggles data-state on the moments.
   All colours, eases and radii use existing brand tokens.
   ========================================================================== */

/* Outer scroll-space + ScrollTrigger trigger.
   overflow:visible is REQUIRED here — the global `section { overflow:hidden }`
   rule (used to clip the monogram watermarks elsewhere) would otherwise make
   this section the sticky panel's scroll container and break position:sticky. */
.about-cine {
  position: relative;
  height: 300vh;
  overflow: visible;
  background: var(--em-dark-brown);
}

/* The pinned 100vh panel (carries id="about" + data-theme="dark") */
.about-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--em-dark-brown);
}

/* Layer 1 — media (full-bleed, no frame, border-radius:0).
   width:100% since the media is now a self-animating <video> (no pan).
   If reverting to a still image with the pan re-enabled, restore 106%. */
.about-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.about-img,
.about-media > video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  will-change: transform, opacity;
}

/* Layer 2 — static gradient overlay (image is the environment, text sits on it) */
.about-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(44, 30, 15, 0.15) 0%,
    rgba(44, 30, 15, 0.45) 50%,
    rgba(44, 30, 15, 0.85) 100%
  );
}
/* Act 3 — deepening overlay (GSAP fades opacity 0 -> 1 across 66%–85%) */
.about-overlay-deep {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: rgba(13, 8, 4, 0.5);
}

/* Layer 3 — shared base for all text moments.
   Directional flow, top->bottom: M1 top-left, M2 mid-right, M3 bottom-centre.
   Each reveals once (data-state active) as scroll crosses its threshold and
   STAYS — the three occupy distinct regions so they coexist over the video. */
.about-moment {
  position: absolute;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 0 clamp(24px, 6vw, 96px);
  pointer-events: none;
  margin: 0;
}

/* Moment 1 — grouped eyebrow + pull quote, top-left. Rises in as one unit;
   eyebrow leads the quote by a hair (staggered transition-delay). */
.about-quote {
  top: clamp(80px, 15vh, 160px);
  max-width: 640px;
  text-align: left;
}
.about-quote-eyebrow {
  margin: 0 0 var(--sp-16);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--em-gold);
  opacity: 0;
  transform: translateY(24px);
  /* exit (-> hidden): crisp, and the eyebrow leaves LAST (reversed stagger) */
  transition: opacity 0.4s ease-in 0.08s, transform 0.4s ease-in 0.08s;
}
.about-quote-text {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(24px, 4vw, 48px);
  line-height: 1.2;
  color: var(--em-cream);
  opacity: 0;
  transform: translateY(24px);
  /* exit (-> hidden): crisp, and the quote leaves FIRST (reversed stagger) */
  transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}
/* entry (-> active): slower glide, eyebrow leads the quote by a hair */
.about-quote[data-state="active"] .about-quote-eyebrow {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.7s var(--ease-glide) 0.05s, transform 0.7s var(--ease-glide) 0.05s;
}
.about-quote[data-state="active"] .about-quote-text {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.7s var(--ease-glide) 0.13s, transform 0.7s var(--ease-glide) 0.13s;
}
.about-quote .gold { color: var(--em-gold); font-style: italic; }

/* Moment 2 — How We Operate. Right-aligned, offset to the right edge;
   slides in from the right as a counterbalance to Moment 1. */
.about-operate {
  top: 44%;
  text-align: right;
}
.about-operate-inner {
  max-width: 560px;
  margin-left: auto;               /* push the block to the right edge */
  opacity: 0;
  transform: translateX(64px);
  /* exit (-> hidden): crisp slide back out to the right */
  transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}
/* entry (-> active): slower glide in from the right */
.about-operate[data-state="active"] .about-operate-inner {
  opacity: 1; transform: translateX(0);
  transition: opacity 0.8s var(--ease-glide), transform 0.8s var(--ease-glide);
}
.about-eyebrow {
  margin: 0 0 var(--sp-16);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--em-gold);
}
.about-operate-body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.36;
  color: var(--em-text-faint);     /* #A89070 — body on dark */
}

/* Moment 3 — closing. Centred, lower third; fades up last after a pause. */
.about-closing {
  bottom: 12vh;
  top: auto;
  left: 0;
  right: 0;
  width: auto;
  margin: 0 auto;
  max-width: 580px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.3;
  color: var(--em-gold-sand);      /* #C9A96E */
  opacity: 0;
  transform: translateY(20px);
  /* exit (-> hidden): crisp fade DOWN, no delay (delay only applies to entry) */
  transition: opacity 0.4s ease-in, transform 0.4s ease-in;
}
/* entry (-> active): slow fade up after a deliberate 0.35s pause */
.about-closing[data-state="active"] {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.9s var(--ease-glide) 0.35s, transform 0.9s var(--ease-glide) 0.35s;
}
.about-closing .gold { color: var(--em-gold); font-style: italic; }

/* ---- Static fallback: reduced-motion (desktop) AND all mobile ------------
   No pin, no pan, no scrub — the image becomes a banner and the three
   moments stack vertically, all fully visible and readable. */
.about-cine.is-static,
.about-cine.is-static .about-sticky {
  height: auto;
}
.about-cine.is-static .about-sticky {
  position: static;
  overflow: visible;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 96px);
}
.about-cine.is-static .about-media { position: relative; height: 52vh; }
.about-cine.is-static .about-img { width: 100%; }
.about-cine.is-static .about-overlay-deep { display: none; }
.about-cine.is-static .about-moment {
  position: static;
  transform: none !important;
  opacity: 1 !important;
  max-width: 640px;
  margin: clamp(40px, 8vw, 80px) 0 0;
  padding: 0;
}
/* reveal the animated children in the static / reduced-motion layout */
.about-cine.is-static .about-quote-eyebrow,
.about-cine.is-static .about-quote-text,
.about-cine.is-static .about-operate-inner,
.about-cine.is-static .about-operate-body { opacity: 1 !important; transform: none !important; }
/* preserve horizontal intent: M1 left, M2 right, M3 centre */
.about-cine.is-static .about-operate { text-align: right; }
.about-cine.is-static .about-operate-inner { margin-left: auto; }
.about-cine.is-static .about-closing { text-align: center; margin: clamp(40px, 8vw, 80px) auto 0; }

@media (max-width: 768px) {
  /* Mobile always uses the static stacked treatment */
  .about-cine, .about-cine .about-sticky { height: auto; }
  .about-cine .about-sticky {
    position: static;
    overflow: visible;
    padding: clamp(56px, 12vw, 96px) clamp(24px, 6vw, 40px);
  }
  .about-cine .about-media { position: relative; height: 46vh; }
  .about-cine .about-img { width: 100%; }
  .about-cine .about-overlay-deep { display: none; }
  .about-cine .about-moment {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    max-width: none;
    margin: clamp(32px, 8vw, 56px) 0 0;
    padding: 0;
  }
  .about-cine .about-quote-eyebrow,
  .about-cine .about-quote-text,
  .about-cine .about-operate-inner,
  .about-cine .about-operate-body { opacity: 1 !important; transform: none !important; }
  .about-cine .about-operate { text-align: right; }
  .about-cine .about-operate-inner { margin-left: auto; }
  .about-cine .about-closing { text-align: center; margin-left: auto; margin-right: auto; }
}
