/* ============================================================
   ERAM Real Estate — Design System v3
   Inspiration: Penta Real Estate (pentarealestate.com)
   Philosophy: editorial typography, values-led narrative,
               generous whitespace, photography as hero
   ============================================================ */

/* ---------- Reset & root ---------- */
*{box-sizing:border-box; margin:0; padding:0;}
ul, ol { list-style: none; }
html{scroll-behavior:smooth;}

/* CRITICAL — global horizontal-overflow lockdown.
   Prevents any rogue element from causing left/right swipe on mobile.
   Applies everywhere; sections that need horizontal scroll (filters)
   opt back in explicitly via their own rules. */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
img, video, iframe { max-width: 100%; height: auto; }
table { max-width: 100%; }

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,200;0,300;0,400;0,500;0,600;1,300;1,400&family=Schibsted+Grotesk:wght@300;400;500;600;700&display=swap');

:root{
  /* Typography */
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, serif;

  /* Palette — refined Penta-influenced */
  --ink: #0A0A0A;
  --ink-soft: #1A1A1A;
  --ink-mid: #2B2B2B;
  --paper: #FAF8F4;          /* lighter, more bright than before */
  --paper-warm: #F2EFE8;
  --paper-deep: #EBE7DD;
  --bone: #DDD8CB;
  --line: rgba(10,10,10,0.10);
  --line-soft: rgba(10,10,10,0.06);
  --line-white: rgba(255,255,255,0.14);
  --gray-1: #5C5C5C;
  --gray-2: #8A8884;
  --gray-3: #BAB7B0;

  /* Accent — used sparingly */
  --red: #D5252B;
  --red-deep: #A8181D;
}

body{
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a{color: inherit; text-decoration: none;}
img{max-width: 100%; display: block;}
button{font-family: inherit; cursor: pointer; border: none; background: none; color: inherit;}

.container{max-width: 1480px; margin: 0 auto; padding: 0 56px;}
.container-narrow{max-width: 1100px; margin: 0 auto; padding: 0 56px;}
.container-wide{max-width: 1680px; margin: 0 auto; padding: 0 56px;}

/* ============================================================
   TYPOGRAPHY — Penta-style editorial scale
   ============================================================ */
.eyebrow{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 28px;
  display: inline-block;
}
.eyebrow.on-dark{color: rgba(255,255,255,0.55);}
.eyebrow.accent{color: var(--red);}

/* Values-led section heading — the Penta signature */
.values-heading{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 18ch;
}
.values-heading.on-dark{color: white;}
.values-heading em{font-style: italic; color: var(--red);}

/* Display — for hero */
.display{
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(56px, 9vw, 168px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

/* Headings */
.heading-xl{font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.05; letter-spacing: -0.025em;}
.heading-lg{font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.1; letter-spacing: -0.02em;}
.heading-md{font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.18; letter-spacing: -0.015em;}
.heading-sm{font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1.3; letter-spacing: -0.005em;}

.lede{
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--gray-1);
  max-width: 70ch;
}
.lede.on-dark{color: rgba(255,255,255,0.7);}

p{font-size: 16px; line-height: 1.7; color: var(--ink-soft);}
p.large{font-size: 18px; line-height: 1.65;}

/* ============================================================
   LOGO mark
   ============================================================ */
.logo-img{
  display: inline-block;
  width: 210px; height: 84px;
  background: url('/assets/brand/eram-logo.png') no-repeat left center / contain;
  vertical-align: middle;
}
/* Footer logo — sized up further; logo is clickable via .foot-logo-link wrapper */
footer .logo-img{
  width: 220px; height: 92px;
  margin: 0 0 28px 0;     /* left-aligned to footer column edge, matching text below */
  display: block;
}
.mobile-nav .logo-img{margin-bottom: 32px;}

/* ============================================================
   TOPBAR — slim utility bar
   ============================================================ */
.topbar{
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  padding: 10px 0;
  letter-spacing: 0.02em;
}
.topbar .container{display:flex; justify-content: space-between; align-items: center;}
.topbar .left, .topbar .right{display:flex; align-items: center; gap: 28px;}
.topbar a{transition: color .2s ease;}
.topbar a:hover{color: white;}
.topbar .lang{display:flex; gap: 12px; align-items:center;}
.topbar .lang a{font-weight: 500; letter-spacing: 0.16em;}
.topbar .lang a.active{color: white;}
.topbar .signin{color: white; font-weight: 500; padding-left: 28px; border-left: 1px solid rgba(255,255,255,0.18);}

/* ============================================================
   MAIN NAV — slim, generous whitespace
   ============================================================ */
.nav{
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav .container{display:flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 32px;}
.nav .container > a[aria-label="ERAM Real Estate"]{display: inline-flex; align-items: center; flex-shrink: 0; line-height: 0;}
.nav-links{display:flex; gap: 36px; align-items: center;}
.nav-links > li{position: relative;}
.nav-links > li > a{
  display:inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all .2s ease;
}
.nav-links > li > a:hover, .nav-links > li.active > a{color: var(--red); border-bottom-color: var(--red);}
.nav-links .chev{width: 11px; height: 11px; opacity: 0.5; transition: transform .25s;}
.nav-links > li:hover .chev{transform: rotate(180deg); opacity: 1;}

.nav-cta{
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red);
  color: white;
  padding: 13px 22px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .2s ease;
}
.nav-cta:hover{background: var(--red-deep);}
.nav-cta::after{content: "→"; font-size: 14px;}

/* ============================================================
   MEGA MENU
   ============================================================ */
.mega{
  position: absolute; top: 100%; left: -32px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.08);
  padding: 40px;
  min-width: 680px;
  display: grid; grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all .3s ease;
}
.nav-links > li:hover .mega{opacity: 1; visibility: visible; transform: translateY(0);}
.mega-cols{display: grid; grid-template-columns: 1fr 1fr; gap: 36px;}
.mega-col h6{
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.mega-col ul{display: flex; flex-direction: column; gap: 10px;}
.mega-col a{
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: color .15s, transform .15s;
  display: inline-block;
}
.mega-col a:hover{color: var(--red); transform: translateX(2px);}
.mega-feature{
  background-size: cover; background-position: center;
  padding: 28px;
  color: white;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px;
  position: relative;
  text-decoration: none;
  overflow: hidden;
}
.mega-feature::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.70) 100%);
}
.mega-feature > *{position: relative; z-index: 1;}
.mega-feature .lbl{font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.75);}
.mega-feature .ttl{font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 1.05; letter-spacing: -0.015em; margin-bottom: 12px;}
.mega-feature .lnk{font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: white;}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.menu-toggle{
  display: none;
  width: 36px; height: 32px;
  background: none; border: none;
  flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
  cursor: pointer;
}
.menu-toggle span{width: 100%; height: 1px; background: var(--ink); transition: all .3s;}
.menu-toggle span:nth-child(2){width: 70%;}

.mobile-nav{
  position: fixed; top: 0; right: 0;
  width: 100%; max-width: 460px; height: 100vh;
  background: var(--paper);
  padding: 36px 40px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 1000;
  overflow-y: auto;
}
.mobile-nav.open{transform: translateX(0);}
.mobile-nav-close{position: absolute; top: 28px; right: 32px; font-size: 36px; font-weight: 300; line-height: 1; color: var(--ink);}
.mobile-nav details{border-bottom: 1px solid var(--line); padding: 18px 0;}
.mobile-nav summary{font-family: var(--serif); font-size: 22px; font-weight: 300; cursor: pointer; list-style: none; display:flex; justify-content:space-between;}
.mobile-nav summary::after{content: "+"; font-size: 24px; transition: transform .25s;}
.mobile-nav details[open] summary::after{transform: rotate(45deg);}
.mobile-nav details ul{list-style: none; padding: 16px 0 0; margin: 0;}
.mobile-nav details li{padding: 10px 0;}
.mobile-nav details li a{font-size: 15px; color: var(--gray-1);}
.mobile-nav > a{display: block; padding: 18px 0; font-family: var(--serif); font-size: 22px; font-weight: 300; border-bottom: 1px solid var(--line);}

.mobile-lang{
  display:flex; gap: 24px;
  padding: 16px 0; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mobile-lang a{font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--gray-1);}
.mobile-lang a.active{color: var(--red);}

.mobile-portal-cta{
  display: block !important;
  margin-top: 28px;
  padding: 18px 22px !important;
  background: var(--red);
  color: white !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  text-align: center;
  border-bottom: none !important;
}
.mobile-portal-cta:hover{background: var(--red-deep);}

/* ============================================================
   HERO — Penta-style massive editorial
   ============================================================ */
.hero{
  position: relative;
  background: var(--ink);
  color: white;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding-bottom: 80px;
}
.hero-img{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
  opacity: 0.55;
}
.hero-img::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.85) 100%);
}
.hero-content{
  position: relative; z-index: 2;
  width: 100%;
  padding: 0;
}
.hero-eyebrow{
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 36px;
}
.hero h1{
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(56px, 9vw, 168px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 40px;
  color: white;
}
.hero-sub{
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 56ch;
  margin-bottom: 48px;
  font-weight: 300;
}
.hero-actions{display:flex; gap: 12px; flex-wrap: wrap;}

/* Hero anchor list — small ticker of named flagship projects on the right */
.hero-anchors{
  position: absolute; right: 56px; bottom: 80px;
  z-index: 2;
  display: flex; flex-direction: column; gap: 14px;
  text-align: right;
  max-width: 280px;
}
.hero-anchors a{
  font-family: var(--serif); font-size: 17px; font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
  border-bottom: 1px solid transparent;
  transition: all .2s;
  display: inline-block; align-self: flex-end;
}
.hero-anchors a:hover{color: white; border-bottom-color: var(--red);}
.hero-anchors small{display: block; font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-top: 2px;}

/* Buttons */
.btn{
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 16px 28px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.45);
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover{background: white; color: var(--ink); border-color: white;}
.btn .arrow{width: 14px; height: 14px; transition: transform .3s;}
.btn:hover .arrow{transform: translateX(4px);}
.btn.dark{color: var(--ink); border-color: var(--ink);}
.btn.dark:hover{background: var(--ink); color: white;}
.btn.solid{background: var(--ink); color: white; border-color: var(--ink);}
.btn.solid:hover{background: transparent; color: var(--ink);}

.btn-portal{
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  padding: 16px 28px;
  background: var(--red); color: white;
  border: 1px solid var(--red);
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all .25s ease;
}
.btn-portal:hover{background: var(--red-deep); border-color: var(--red-deep);}
.btn-portal .arrow{width: 14px; height: 14px; transition: transform .3s;}
.btn-portal:hover .arrow{transform: translateX(4px);}

.link-arrow{
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: all .2s;
}
.link-arrow:hover{color: var(--red); border-bottom-color: var(--red);}
.link-arrow .arrow{width: 12px; height: 12px;}

/* ============================================================
   SECTION SHELL — values-led pattern
   The hallmark Penta structure. Each section has:
   - eyebrow
   - values-led heading on the left
   - body content on the right
   ============================================================ */
.values-section{
  padding: 160px 0;
  background: var(--paper);
  position: relative;
}
.values-section.dark{background: var(--ink); color: white;}
.values-section.warm{background: var(--paper-warm);}
.values-grid{
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: start;
}
.values-grid .left .eyebrow{margin-bottom: 28px;}
.values-grid .right{padding-top: 30px;}
.values-grid .right p{font-size: 17px; line-height: 1.7; margin-bottom: 22px; max-width: 56ch;}
.values-grid.center{grid-template-columns: 1fr; text-align: center;}
.values-grid.center .values-heading{margin: 0 auto;}

/* Hand-drawn divider — used between sections (SVG inline) */
.divider-art{
  display: flex; justify-content: center;
  padding: 60px 0 0;
}
.divider-art svg{
  width: 240px; height: auto;
  color: var(--ink);
}
.values-section.dark .divider-art svg{color: rgba(255,255,255,0.4);}

/* ============================================================
   STATS STRIP — Penta-style 4-column
   ============================================================ */
.stats{
  background: var(--ink);
  color: white;
  padding: 100px 0;
  border-top: 1px solid var(--line-white);
}
.stats .container{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item{
  padding: 0 36px;
  border-right: 1px solid var(--line-white);
}
.stat-item:first-child{padding-left: 0;}
.stat-item:last-child{border-right: none; padding-right: 0;}
.stat-val{
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1.02; letter-spacing: -0.025em;
  margin-bottom: 18px;
  color: white;
  overflow-wrap: break-word;
}
.stat-lbl{
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  max-width: 30ch;
  font-weight: 400;
}

/* ============================================================
   PROJECT CARDS — Penta-style triple-image
   ============================================================ */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
}
.projects-grid.cols-3{grid-template-columns: repeat(3, 1fr); gap: 40px;}
.project{
  display: block;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  position: relative;
}
.project-images{
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 480px;
  margin-bottom: 28px;
  overflow: hidden;
}
.project-images .img-main{
  grid-row: span 2;
  background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.project-images .img-sec{
  background-size: cover; background-position: center;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.project:hover .img-main, .project:hover .img-sec{transform: scale(1.04);}

.projects-grid.cols-3 .project-images{
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  height: 320px;
}
.projects-grid.cols-3 .project-images .img-sec{display: none;}

.project-meta-row{
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 16px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--gray-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-loc{font-weight: 600;}
.project-name{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
}
.project-units{font-size: 15px; color: var(--gray-1); line-height: 1.5;}

.project-status-tag{
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  margin-right: 6px;
}
.project-status-tag.concept{color: #8C7CC8;}
.project-status-tag.planning{color: #B8902F;}
.project-status-tag.construction{color: var(--red);}
.project-status-tag.completed{color: #2D6F40;}
.project-status-tag.onsale{color: var(--ink); background: var(--bone); border-color: transparent;}

/* ============================================================
   PARTNERS / ADVISORS — Penta architect testimonial pattern
   ============================================================ */
.partners-quotes{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px 80px;
  margin-top: 60px;
}
.partner-quote{
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
}
.partner-quote img, .partner-quote .avatar{
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--paper-deep);
  object-fit: cover;
}
.partner-quote .avatar{
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 30px; font-weight: 300;
  color: var(--gray-1);
}
.partner-quote .name{
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  line-height: 1.15;
  margin-bottom: 4px;
}
.partner-quote .firm{
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 16px;
}
.partner-quote .text{
  font-size: 15px; line-height: 1.65; color: var(--ink-soft);
}

/* ============================================================
   GROUP AFFILIATES — Kelmendi Holdings disclosure
   Monochrome by default, full colour on hover.
   Each card lists the role + governance line.
   ============================================================ */
.affiliates{
  padding: 100px 0;
  background: var(--paper);
}
.affiliates-intro{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  margin-bottom: 64px;
}
.affiliates-intro h2{
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.affiliates-intro p{
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-1);
  margin-bottom: 16px;
}
.affiliates-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.affiliate-card{
  background: white;
  border: 1px solid var(--line);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}
.affiliate-card:hover{
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.affiliate-logo{
  width: 100%;
  height: 64px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.affiliate-logo img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity .3s ease;
}
/* Mono and colour versions sit on top of each other; opacity swap on hover */
.affiliate-logo img.mono{
  position: relative;
  z-index: 1;
}
.affiliate-logo img.colour{
  position: absolute;
  inset: 0;
  margin: auto;
  opacity: 0;
  z-index: 2;
}
.affiliate-card:hover .affiliate-logo img.mono   { opacity: 0; }
.affiliate-card:hover .affiliate-logo img.colour { opacity: 1; }

.affiliate-name{
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}
.affiliate-role{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.affiliate-desc{
  font-size: 13px;
  color: var(--gray-1);
  line-height: 1.55;
  flex-grow: 1;
}

.affiliates-disclosure{
  padding: 40px 48px;
  background: white;
  border-left: 3px solid var(--red);
  margin-top: 16px;
}
.affiliates-disclosure h4{
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
}
.affiliates-disclosure p{
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-1);
}
.affiliates-disclosure a{
  color: var(--red);
  border-bottom: 1px solid var(--red);
}

@media (max-width: 1100px){
  .affiliates-intro{grid-template-columns: 1fr; gap: 32px;}
  .affiliates-grid{grid-template-columns: repeat(3, 1fr);}
}
@media (max-width: 760px){
  /* Horizontal scroll-snap carousel on mobile.
     One card per screen, with a small peek of the next card to invite swipe. */
  .affiliates-grid{
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    gap: 14px;
    padding: 4px 24px 20px;
    margin-left: -24px;
    margin-right: -24px;
    scrollbar-width: none;
  }
  .affiliates-grid::-webkit-scrollbar{display: none;}
  .affiliate-card{
    flex: 0 0 82%;
    scroll-snap-align: start;
    padding: 28px 22px;
  }
  .affiliate-logo{height: 56px;}
  .affiliates-disclosure{padding: 28px 24px;}
}

/* On touch devices, hover never triggers — show colour by default
   so mobile users see the actual brand colours */
@media (hover: none){
  .affiliate-logo img.mono   { opacity: 0; }
  .affiliate-logo img.colour { opacity: 1; }
}

/* ============================================================
   MOBILE CAROUSEL UTILITY
   Apply class="mobile-carousel" to any grid container.
   On mobile (≤760px), the grid becomes a horizontal scroll-snap
   carousel with one card per screen and a small peek of the next.
   On desktop, the existing grid layout is preserved.
   ============================================================ */
@media (max-width: 760px){
  .mobile-carousel{
    display: flex !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    gap: 14px !important;
    padding: 4px 24px 20px !important;
    margin-left: -24px;
    margin-right: -24px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-carousel::-webkit-scrollbar{display: none;}
  .mobile-carousel > *{
    flex: 0 0 82% !important;
    scroll-snap-align: start;
    min-width: 0;
  }
}

/* ============================================================
   WIDER PARTNER NETWORK — categorical cards
   Same carousel treatment on mobile as the affiliates grid above
   ============================================================ */
.partners-cat-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.partner-cat-card{
  padding: 32px;
  border: 1px solid var(--line);
  background: white;
}
.partner-cat-card h4{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.partner-cat-card p{
  font-size: 14px;
  color: var(--gray-1);
  line-height: 1.65;
}
@media (max-width: 1100px){
  .partners-cat-grid{grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 760px){
  .partners-cat-grid{
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 24px;
    gap: 14px;
    padding: 4px 24px 20px;
    margin-left: -24px;
    margin-right: -24px;
    scrollbar-width: none;
  }
  .partners-cat-grid::-webkit-scrollbar{display: none;}
  .partner-cat-card{
    flex: 0 0 82%;
    scroll-snap-align: start;
    padding: 28px 22px;
  }
}

/* Logo marquee */
.logo-marquee{
  background: var(--paper-warm);
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  width: 100%; max-width: 100vw;
}
.logo-marquee-track{
  display: flex;
  gap: 80px;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.logo-marquee-item{
  font-family: var(--serif);
  font-size: 22px; font-weight: 400;
  color: var(--gray-1);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.logo-marquee-item::after{content: "·"; margin-left: 80px; color: var(--gray-3);}
@keyframes marquee{
  from{transform: translateX(0);}
  to{transform: translateX(-50%);}
}

/* ============================================================
   ESG TABS — Penta-style three-tab
   ============================================================ */
.esg-tabs{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  margin-top: 60px;
}
.esg-tab-list{display: flex; flex-direction: column; gap: 0;}
.esg-tab-list button{
  text-align: left;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  color: var(--gray-2);
  transition: color .2s;
  letter-spacing: -0.015em;
}
.esg-tab-list button.active{color: var(--ink);}
.esg-tab-list button:hover{color: var(--ink);}
.esg-tab-list button:first-child{border-top: 1px solid var(--line);}
.esg-tab-content{padding-top: 8px;}
.esg-tab-content .panel{display: none;}
.esg-tab-content .panel.active{display: block; animation: fadeIn .4s ease;}
.esg-tab-content p{font-size: 17px; line-height: 1.7; margin-bottom: 20px;}
@keyframes fadeIn{from{opacity:0; transform: translateY(8px);}to{opacity:1; transform: translateY(0);}}

/* ============================================================
   NEWS GRID — Penta-style horizontal text list
   ============================================================ */
.news-list{
  margin-top: 60px;
  border-top: 1px solid var(--line);
}
.news-item{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .25s;
}
.news-item:hover{padding-left: 16px;}
.news-item .cat{
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.news-item h3{
  font-family: var(--serif);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 60ch;
}
.news-item .date{
  font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray-2);
  white-space: nowrap;
}

/* ============================================================
   CONTACT BAND — Penta-style multi-column
   ============================================================ */
.contact-band{
  background: var(--ink);
  color: white;
  padding: 140px 0;
}
.contact-band .heading-xl{color: white; margin-bottom: 40px;}
.contact-info{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 60px;
  border-top: 1px solid var(--line-white);
  padding-top: 60px;
}
.contact-info h5{
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.contact-info p{color: rgba(255,255,255,0.85); line-height: 1.7; margin-bottom: 12px;}
.contact-info a{color: white; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color .2s;}
.contact-info a:hover{border-bottom-color: white;}

/* Newsletter signup */
.newsletter{
  background: var(--paper-warm);
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.newsletter-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.newsletter form{display: grid; gap: 16px;}
.newsletter input[type="text"],
.newsletter input[type="email"],
.newsletter select{
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
  font-family: var(--sans); font-size: 15px;
}
.newsletter .check-row{display:flex; gap: 12px; font-size: 13px; color: var(--gray-1); line-height: 1.6; margin-top: 6px;}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero{
  padding: 100px 0 120px;
  background: var(--paper);
}
.page-hero .crumb{
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 40px;
}
.page-hero .crumb a{color: var(--gray-2); transition: color .2s;}
.page-hero .crumb a:hover{color: var(--ink);}
.page-hero h1{
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 40px;
  max-width: 16ch;
}
.page-hero .lede{
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--gray-1);
  max-width: 70ch;
}

/* ============================================================
   CONTENT BODY (legal pages, ESG, careers)
   ============================================================ */
.content-section{padding: 100px 0; background: var(--paper);}
.content-body{
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.content-body h2{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}
.content-body h3{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 32px 0 14px;
  color: var(--ink);
}
.content-body p{margin-bottom: 18px; max-width: 70ch; line-height: 1.75;}
.content-body ul{margin: 18px 0 18px 22px; max-width: 70ch; list-style: disc;}
.content-body ol{margin: 18px 0 18px 22px; max-width: 70ch; list-style: decimal;}
.content-body li{margin-bottom: 8px;}
.content-body a{color: var(--red); border-bottom: 1px solid var(--red);}
.content-body a:hover{color: var(--red-deep);}

.translation-banner{
  background: rgba(213, 37, 43, 0.06);
  border-left: 3px solid var(--red);
  padding: 18px 22px;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.translation-banner:empty{display: none;}

.pipeline-notice{
  background: var(--paper-warm);
  border-left: 3px solid var(--red);
  padding: 28px 32px;
  margin-bottom: 60px;
  font-size: 15px;
  color: var(--gray-1);
  line-height: 1.7;
  max-width: 80ch;
}
.pipeline-notice strong{color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px;}

/* ============================================================
   PROJECT PAGE INDIVIDUAL
   ============================================================ */
.spec-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 80px;
}
.spec-item .lbl{
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-2);
}
.spec-item .val{
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 2.8vw, 44px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin-top: 10px;
  color: var(--ink);
}

/* ============================================================
   CALCULATOR — refined
   ============================================================ */
.calc{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: white;
  margin-top: 32px;
}
.calc-form{padding: 48px;}
.calc-result{padding: 48px; background: var(--ink); color: white;}
.calc label{
  display: block; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 10px;
}
.calc select, .calc input[type="number"]{
  width: 100%; padding: 14px;
  font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line); background: white;
  margin-bottom: 28px;
}
.calc input[type="range"]{width: 100%; margin-bottom: 8px;}
.calc-quick{display:flex; gap: 8px; flex-wrap: wrap;}
.calc-quick button{
  padding: 8px 14px; font-size: 12px;
  border: 1px solid var(--line); background: white;
  transition: all .15s;
  font-weight: 500; letter-spacing: 0.04em;
}
.calc-quick button:hover, .calc-quick button.active{
  background: var(--ink); color: white; border-color: var(--ink);
}
.calc-result-big .val{
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1;
  color: white;
}
.calc-result-grid{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  font-size: 14px;
  margin-top: 36px;
}
.calc-result-grid .row .k{
  color: rgba(255,255,255,0.55);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 4px;
}
.calc-result-grid .row .v{color: white;}
.calc-disclaimer{
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line-white);
  font-size: 11px; line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

/* ============================================================
   FORMS — global form styling
   ============================================================ */
.form-grid{display: grid; gap: 20px;}
.form-grid .row-2{display: grid; grid-template-columns: 1fr 1fr; gap: 20px;}
.form-grid label{
  display: block; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gray-1);
  margin-bottom: 10px;
}
.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="tel"],
.form-grid input[type="number"],
.form-grid select,
.form-grid textarea{
  width: 100%; padding: 14px;
  font-family: var(--sans); font-size: 15px;
  border: 1px solid var(--line); background: white;
}
.form-grid textarea{resize: vertical; min-height: 120px;}
.form-grid .check-row{display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--gray-1); line-height: 1.6; margin-top: 4px;}
.form-grid .check-row input{margin-top: 4px;}

/* ============================================================
   FOOTER
   ============================================================ */
footer{
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 100px 0 40px;
}
.foot-grid{
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}
.foot-brand p{color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.65; margin: 0 0 32px; max-width: 36ch;}
.foot-logo-link{display: block; width: max-content; border: none; transition: opacity .2s ease; margin: 0 0 28px 0;}
.foot-logo-link:hover{opacity: 0.85;}
.foot-logo-link .logo-img{margin: 0;}
.foot-contact{font-size: 13px; line-height: 1.7;}
.foot-contact .row{margin-bottom: 18px;}
.foot-contact strong{display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 8px; font-weight: 500;}
.foot-contact a{color: white;}
.foot-meta-row{margin-top: 14px; font-size: 11px; color: rgba(255,255,255,0.4); letter-spacing: 0.04em;}
.foot-social{display: flex; gap: 12px; margin-top: 28px;}
.foot-social a{
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18);
  transition: all .2s;
}
.foot-social a:hover{background: white; border-color: white;}
.foot-social a:hover svg{fill: var(--ink);}
.foot-social svg{width: 14px; height: 14px; fill: rgba(255,255,255,0.7);}

.foot-col h5{
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 22px;
}
.foot-col a{
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  padding: 6px 0;
  transition: color .2s;
}
.foot-col a:hover{color: white;}

.foot-bottom{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  align-items: center;
}
.foot-bottom > div:first-child{white-space: normal; word-break: normal;}
.foot-bottom .legal{
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  justify-content: center;
}
.foot-bottom a{color: rgba(255,255,255,0.7); transition: color .2s;}
.foot-bottom a:hover{color: white;}
.foot-developed{white-space: normal;}
.foot-developed a{color: white; border-bottom: 1px solid rgba(255,255,255,0.3);}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{opacity: 0; transform: translateY(24px); transition: all .8s cubic-bezier(.2,.6,.2,1);}
.reveal.in{opacity: 1; transform: translateY(0);}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1100px){
  .container, .container-narrow, .container-wide{padding: 0 32px;}
  .nav-links{gap: 24px;}
  .hero-anchors{display: none;}
  .foot-grid{grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;}
  .foot-grid .foot-brand{grid-column: 1 / -1; margin-bottom: 16px;}
}
@media (max-width: 900px){
  .nav-links{display: none;}
  .nav-cta{display: none;}
  .menu-toggle{display: flex;}
  .values-section{padding: 100px 0;}
  .values-grid{grid-template-columns: 1fr; gap: 40px;}
  .stats .container{grid-template-columns: 1fr 1fr;}
  .stat-item{padding: 24px 16px; border-right: none; border-bottom: 1px solid var(--line-white);}
  .stat-item:nth-child(odd){padding-left: 0;}
  .stat-item:nth-child(even){padding-right: 0;}
  .stat-item:last-child, .stat-item:nth-last-child(2){border-bottom: none;}
  .projects-grid, .projects-grid.cols-3{grid-template-columns: 1fr; gap: 60px;}
  .project-images{height: 360px;}
  .partners-quotes{grid-template-columns: 1fr;}
  .esg-tabs{grid-template-columns: 1fr; gap: 32px;}
  .esg-tab-list button{font-size: 24px;}
  .calc{grid-template-columns: 1fr;}
  .contact-info{grid-template-columns: 1fr;}
  .newsletter-grid{grid-template-columns: 1fr; gap: 40px;}
  .foot-grid{grid-template-columns: 1fr 1fr; gap: 40px;}
  .foot-grid .foot-brand{grid-column: 1 / -1; margin-bottom: 16px;}
  .foot-bottom{grid-template-columns: 1fr; text-align: center; gap: 18px;}
  .foot-bottom .legal{justify-content: center;}
  .form-grid .row-2{grid-template-columns: 1fr;}
  .news-item{grid-template-columns: 1fr; gap: 8px;}
  .news-item .date{order: -1;}
  .spec-grid{grid-template-columns: 1fr 1fr; gap: 24px;}
}
@media (max-width: 600px){
  .container, .container-narrow, .container-wide{padding: 0 24px;}
  .hero{min-height: 80vh; padding-bottom: 60px;}
  .values-section{padding: 80px 0;}
  .stats .container{grid-template-columns: 1fr;}
  .stat-item:nth-child(odd){padding-right: 0;}
  .stat-item:nth-child(even){padding-left: 0;}
  .stat-item{padding: 22px 0; border-bottom: 1px solid var(--line-white);}
  .stat-item:last-child{border-bottom: none;}
  .project-images{height: 280px;}
  .foot-grid{grid-template-columns: 1fr;}
  .spec-grid{grid-template-columns: 1fr; gap: 16px; padding: 32px 0;}
  .calc-form, .calc-result{padding: 32px 24px;}
  .calc-result-grid{grid-template-columns: 1fr;}
}

/* Print */
@media print{
  .nav, footer, .mobile-nav, .topbar, .foot-social{display: none !important;}
  body{background: white; color: black;}
  a{color: black; text-decoration: underline;}
}

/* ============================================================
   ANNOUNCEMENT BAR — slim, dismissible, configurable via app.js
   Sits above the newsletter strip and footer when ERAM_ANNOUNCEMENT.enabled.
   Paper palette + red accent dot for subtle attention.
   ============================================================ */
.eram-announcement{
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 13px;
  color: var(--ink);
}
.eram-ann-inner{
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.eram-ann-dot{
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.eram-ann-msg{
  flex: 1;
  min-width: 200px;
  line-height: 1.5;
  letter-spacing: 0.005em;
}
.eram-ann-cta{
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: opacity .2s;
}
.eram-ann-cta:hover{opacity: 0.75;}
.eram-ann-close{
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-2);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.eram-ann-close:hover{background: rgba(11,15,25,0.06); color: var(--ink);}
.eram-ann-close:focus-visible{outline: 2px solid var(--red); outline-offset: 2px;}

/* ============================================================
   NEWSLETTER STRIP — sitewide, sits above the footer
   Paper background, two-column on desktop, stacks on mobile.
   ============================================================ */
.eram-newsletter-strip{
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 48px 0;
}
.eram-ns-inner{
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.eram-ns-copy{display: flex; flex-direction: column; gap: 10px;}
.eram-ns-eyebrow{
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.eram-ns-title{
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.eram-ns-sub{
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-1);
  max-width: 50ch;
}
.eram-ns-form{display: flex; flex-direction: column; gap: 14px;}
.eram-ns-row{
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 10px;
}
.eram-ns-row input{
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: white;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.eram-ns-row input:focus{outline: none; border-color: var(--red);}
.eram-ns-row button{
  padding: 13px 24px;
  background: var(--ink);
  color: white;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.eram-ns-row button:hover{background: var(--red);}
.eram-ns-row button:disabled{background: var(--gray-2); cursor: not-allowed;}
.eram-ns-consent{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--gray-1);
  cursor: pointer;
}
.eram-ns-consent input[type="checkbox"]{margin-top: 3px; accent-color: var(--red); flex-shrink: 0;}
.eram-ns-status:not(:empty){
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 2px;
}
.eram-ns-status.success{background: rgba(34, 139, 34, 0.08); color: #1a5d1a;}
.eram-ns-status.error  {background: rgba(200, 16, 46, 0.08); color: var(--red);}

@media (max-width: 760px){
  .eram-newsletter-strip{padding: 36px 0;}
  .eram-ns-inner{grid-template-columns: 1fr; gap: 24px;}
  .eram-ns-title{font-size: 22px;}
  .eram-ns-row{grid-template-columns: 1fr; gap: 10px;}
  .eram-ann-cta{order: 3; flex-basis: 100%;}
}

/* ============================================================
   INSIGHTS — POST PAGE
   ============================================================ */
.insight-post-page main { padding-top: 0; }

/* Hero image — bounded to 1200px max with a colored bleed background on wide screens */
.insight-hero {
  width: 100%;
  margin: 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.insight-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.insight-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.insight-article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}

.insight-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-1);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.insight-back {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--red);
  padding-bottom: 1px;
}
.insight-cat-pill {
  display: inline-block;
  padding: 4px 11px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  border-radius: 2px;
}
.insight-date,
.insight-read-time {
  font-size: 12px;
  color: var(--gray-2);
}

.insight-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: var(--ink);
}

.insight-subtitle {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--gray-1);
  margin: 0 0 32px;
}

.insight-byline {
  font-size: 13px;
  color: var(--gray-1);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.insight-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}
.insight-body p { margin: 0 0 1.4em; }
.insight-body h1, .insight-body h2, .insight-body h3, .insight-body h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 2em 0 0.6em;
}
.insight-body h1 { font-size: 32px; }
.insight-body h2 { font-size: 26px; }
.insight-body h3 { font-size: 21px; font-weight: 500; }
.insight-body h4 { font-size: 17px; font-weight: 600; font-family: var(--sans); }
.insight-body a { color: var(--red); border-bottom: 1px solid var(--red); text-decoration: none; }
.insight-body a:hover { background: var(--red-soft, rgba(200, 16, 46, 0.08)); }
.insight-body strong { font-weight: 600; }
.insight-body em { font-style: italic; }
.insight-body code {
  background: var(--paper);
  padding: 2px 6px;
  font-family: monospace;
  font-size: 0.9em;
  border-radius: 2px;
}
.insight-body pre {
  background: var(--paper);
  padding: 18px 22px;
  overflow-x: auto;
  margin: 1.8em 0;
  font-size: 14px;
}
.insight-body pre code { background: none; padding: 0; }
.insight-body blockquote {
  border-left: 3px solid var(--red);
  padding-left: 24px;
  margin: 1.8em 0;
  font-style: italic;
  color: var(--gray-1);
  font-size: 19px;
  line-height: 1.6;
}
.insight-body ul, .insight-body ol { margin: 0 0 1.4em; padding-left: 28px; }
.insight-body li { margin-bottom: 0.5em; }
.insight-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em 0;
  border: 1px solid var(--line);
}
/* Figures with captions (from rich-text editor) */
.insight-body figure.insight-figure {
  margin: 2.4em 0;
  text-align: center;
}
.insight-body figure.insight-figure img {
  margin: 0 auto 0.8em;
  border: 1px solid var(--line);
}
.insight-body figure.insight-figure figcaption {
  font-size: 14px;
  color: var(--gray-2);
  font-style: italic;
  line-height: 1.5;
  max-width: 90%;
  margin: 0 auto;
}
.insight-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
}
/* Text-align support from editor */
.insight-body [style*="text-align: center"] { text-align: center; }
.insight-body [style*="text-align: right"]  { text-align: right; }
.insight-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 14px;
}
.insight-body th, .insight-body td {
  padding: 11px 14px;
  border: 1px solid var(--line);
  text-align: left;
}
.insight-body th {
  background: var(--paper);
  font-weight: 600;
}

.insight-tags {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.insight-tags-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-right: 4px;
}
.insight-tag {
  display: inline-block;
  padding: 5px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--gray-1);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.insight-tag-link:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft, #FFE8EB);
}

.insight-share {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.insight-share-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-1);
  margin-right: 8px;
}
.insight-share a {
  display: inline-block;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.insight-share a:hover {
  color: var(--red);
  border-color: var(--red);
  background: white;
}

/* Related posts */
.insight-related {
  padding: 64px 0 80px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.insight-related h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.insight-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* ============================================================
   INSIGHTS — LISTING PAGE
   ============================================================ */
.insights-listing-page main { padding-top: 0; }

.insights-hero {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--line);
}
.insights-h1 {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.insights-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-1);
  max-width: 60ch;
  margin: 0;
}

.insights-filters {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.insights-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.insights-chip {
  display: inline-block;
  padding: 8px 18px;
  background: white;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.insights-chip:hover {
  border-color: var(--red);
  color: var(--red);
}
.insights-chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.insights-grid-section { padding: 56px 0 80px; }
.insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}

.insight-card {
  display: block;
  background: white;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.insight-card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
}
.insight-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}
.insight-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.insight-card-body { padding: 22px 22px 24px; }
.insight-card-pill { margin-bottom: 12px; }
.insight-card-body h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.insight-card-body p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-1);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insight-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-2);
  letter-spacing: 0.04em;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.insight-card-date {
  font-size: 11px;
  color: var(--gray-2);
}

.insights-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-1);
}

.insights-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
.insights-page-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--line);
}
.insights-page-link:hover { border-color: var(--red); color: var(--red); }
.insights-page-link.disabled { color: var(--gray-3); pointer-events: none; }
.insights-page-current {
  font-size: 12px;
  color: var(--gray-1);
}

/* Responsive */
@media (max-width: 760px) {
  .insight-title { font-size: 32px; }
  .insight-subtitle { font-size: 18px; }
  .insight-body { font-size: 16px; }
  .insight-article-container { padding: 32px 20px 60px; }
  .insights-h1 { font-size: 40px; }
  .insights-grid { grid-template-columns: 1fr; }
}
