/* ═══════════════════════════════════════════════════════════
   COFIWCH DDYFFRYN TYWI — Colours from the Valley
   v4 — Photo-derived palette
   ═══════════════════════════════════════════════════════════ */
:root {
  --red: #A5231D;
  --red-deep: #7A1A14;
  --red-light: #C43B34;
  --valley: #2B5035;
  --valley-deep: #1A3321;
  --valley-light: #3D6A4A;
  --valley-pale: #5A8A68;
  --mist: #94AAB8;
  --mist-light: #B8CBD6;
  --mist-pale: #D5E0E8;
  --sky: #7BA0B8;
  --earth: #7A5A3A;
  --earth-light: #A07A55;
  --stone: #8A8578;
  --silt: #5A6258;
  --slate: #4A5055;
  --slate-deep: #2A2E32;
  --slate-dark: #1A1E22;
  --cream: #F4F1EB;
  --parchment: #E8E3D8;
  --chalk: #FAFAF7;
  --ink: #1C2024;
  --glass: rgba(26, 30, 28, 0.5);
  --glass-edge: rgba(165, 35, 29, 0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif; color: var(--ink);
  background: var(--cream); line-height: 1.65; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { transition: all 0.25s; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.15; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
@media(min-width:960px) { .container { padding: 0 2rem; } }

/* ═══ NAV ═══ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; background: transparent; transition: all 0.4s; }
.nav.scrolled { background: rgba(26,30,28,0.96); backdrop-filter: blur(16px); box-shadow: 0 2px 20px rgba(0,0,0,0.2); border-bottom: 1px solid rgba(165,35,29,0.1); }
.nav-logo { height: 56px; border-radius: 4px; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-name { color: rgba(255,255,255,0.85); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
@media (max-width: 420px) { .nav-name { display: none; } }
.nav-links { display: none; gap: 0.2rem; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.7rem; font-weight: 600; padding: 0.4rem 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 3px; }
.nav-links a:hover { color: white; background: rgba(255,255,255,0.06); }
.nav-links a.cta { background: var(--red); color: white; padding: 0.4rem 1rem; margin-left: 0.5rem; }
.nav-links a.cta:hover { background: var(--red-light); }
.nav-ham { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-ham span { width: 22px; height: 1.5px; background: white; border-radius: 1px; transition: all 0.3s; }
@media(min-width:960px) { .nav { padding: 0 2.5rem; height: 78px; } .nav-links { display: flex; } .nav-ham { display: none; } }
.mob-menu { display:none; position:fixed; inset:0; z-index:999; background:rgba(26,30,28,0.97); backdrop-filter:blur(24px); flex-direction:column; align-items:center; justify-content:center; gap:0.4rem; }
.mob-menu.open { display:flex; }
.mob-menu a { color:rgba(255,255,255,0.7); text-decoration:none; font-family:'Space Grotesk',sans-serif; font-size:1.5rem; font-weight:500; padding:0.5rem 2rem; }
.mob-menu a:hover { color:var(--red-light); }
.mob-close { position:absolute; top:1.25rem; right:1.5rem; background:none; border:none; color:white; font-size:1.8rem; cursor:pointer; }

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; justify-content: center; text-align: center; overflow: hidden; }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: center 35%; filter: brightness(1.1) saturate(1.25) contrast(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,30,28,0.15) 0%, rgba(26,30,28,0.08) 20%, rgba(26,30,28,0.3) 50%, rgba(26,30,28,0.75) 75%, rgba(26,30,28,0.95) 90%, var(--cream) 100%); }
.hero-overlay::after { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 750px; padding: 2rem 1.25rem 6rem; }
.hero-badge { display: inline-block; margin-bottom: 2rem; animation: rise 1s 0.2s both; }
.hero-badge img { height: 130px; border-radius: 8px; filter: drop-shadow(0 4px 24px rgba(0,0,0,0.5)); }
.hero h1 { font-size: clamp(3.2rem, 8.5vw, 7rem); font-weight: 700; color: white; line-height: 0.92; letter-spacing: -0.015em; animation: rise 1s 0.45s both; text-shadow: 0 2px 8px rgba(0,0,0,0.6), 0 4px 32px rgba(0,0,0,0.4); }
.hero h1 .sub { display: block; font-weight: 500; font-size: 0.34em; color: rgba(255,255,255,0.7); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 0.6em; text-shadow: 0 1px 6px rgba(0,0,0,0.5); }
.hero-rule { width: 64px; height: 3px; margin: 2rem auto; background: var(--red); border: none; animation: rise 1s 0.65s both; box-shadow: 0 0 12px rgba(165,35,29,0.5); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.8); max-width: 520px; margin: 0 auto 2.5rem; font-weight: 400; line-height: 1.9; animation: rise 1s 0.8s both; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.hero-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; animation: rise 1s 1s both; }
.hero-scroll { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; animation: drift 2.5s ease-in-out infinite; }
.scroll-dot { width: 18px; height: 30px; border: 1.5px solid rgba(165,35,29,0.4); border-radius: 10px; position: relative; }
.scroll-dot::after { content: ''; width: 3px; height: 6px; background: var(--red); border-radius: 2px; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); animation: pulse 1.8s ease-in-out infinite; }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2.2rem; font-size: 0.78rem; font-weight: 700; text-decoration: none; border-radius: 3px; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; border: 2px solid transparent; font-family: 'Inter', sans-serif; }
.btn-red { background: var(--red); color: white; border-color: var(--red); box-shadow: 0 4px 16px rgba(165,35,29,0.35); }
.btn-red:hover { background: var(--red-light); border-color: var(--red-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(165,35,29,0.4); }
.btn-ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: white; color: white; background: rgba(255,255,255,0.12); }
.btn-valley { background: var(--valley); color: white; border-color: var(--valley); }
.btn-valley:hover { background: var(--valley-light); border-color: var(--valley-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--slate); border-color: rgba(0,0,0,0.12); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.65rem; }

/* ═══ STATS ═══ */
.stats { display: grid; grid-template-columns: repeat(2,1fr); background: #F0F0EE; border-bottom: 1px solid rgba(0,0,0,0.06); }
.s-cell { padding: 2rem 1rem; text-align: center; border-right: 1px solid rgba(0,0,0,0.06); transition: background 0.3s; }
.s-cell:last-child { border-right: none; }
.s-cell:hover { background: rgba(255,255,255,0.02); }
.s-val { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--red-light); line-height: 1; margin-bottom: 0.25rem; }
.s-lbl { font-size: 0.6rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; }
@media(min-width:640px) { .stats { grid-template-columns: repeat(4,1fr); } .s-val { font-size: 3.2rem; } }

/* ═══ SECTIONS ═══ */
.sec { padding: 4rem 0; }
.sec-lg { padding: 5rem 0; }
@media(min-width:960px) { .sec { padding: 6rem 0; } .sec-lg { padding: 8rem 0; } }
.sec-dark { background: var(--chalk); color: var(--ink); }
.sec-slate { background: #F0F0EE; color: var(--ink); }
.sec-light { background: white; }
.sec-parch { background: var(--parchment); }
.sec-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.25em; font-weight: 700; margin-bottom: 0.75rem; }
.sec-dark .sec-label, .sec-slate .sec-label { color: var(--red); }
.sec-light .sec-label, .sec-parch .sec-label { color: var(--red); }
.sec-title { font-size: clamp(1.8rem,4vw,2.8rem); margin-bottom: 1rem; }
.sec-dark .sec-title, .sec-slate .sec-title { color: var(--ink); }
.sec-lead { font-size: 0.95rem; font-weight: 300; line-height: 1.85; max-width: 600px; margin-bottom: 2.5rem; }
.sec-dark .sec-lead, .sec-slate .sec-lead { color: var(--stone); }
.sec-light .sec-lead, .sec-parch .sec-lead { color: var(--stone); }
.sec-rule { height: 1px; border: none; margin: 0; background: linear-gradient(90deg, transparent, rgba(165,35,29,0.15), transparent); }

/* ═══ PHOTO BREAK ═══ */
.photo-break { position: relative; height: 35vh; min-height: 250px; background-size: cover; background-position: center; background-attachment: scroll; }
.photo-break::before { content: ''; position: absolute; inset: 0; background: inherit; background-size: inherit; background-position: inherit; background-attachment: inherit; filter: brightness(1.1) saturate(1.25) contrast(1.05); z-index: 0; }
.photo-break .overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--cream) 0%, rgba(244,241,235,0) 15%, rgba(244,241,235,0) 85%, var(--cream) 100%); }
.photo-break--dark .overlay { background: linear-gradient(180deg, var(--chalk) 0%, rgba(250,250,247,0) 15%, rgba(250,250,247,0) 85%, var(--chalk) 100%); }
.photo-break--parch .overlay { background: linear-gradient(180deg, var(--cream) 0%, rgba(244,241,235,0) 15%, rgba(244,241,235,0) 85%, var(--parchment) 100%); }
.photo-break--topchalk .overlay { background: linear-gradient(180deg, var(--chalk) 0%, rgba(250,250,247,0) 15%, rgba(244,241,235,0) 85%, var(--cream) 100%); }
@media(min-width:960px) { .photo-break { height: 45vh; background-attachment: fixed; } .photo-break::before { background-attachment: fixed; } }

/* ═══ IMAGE GALLERY (cable ploughing) ═══ */
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.5rem 0; }
.img-grid img { border-radius: 6px; width: 100%; height: 200px; object-fit: cover; }
@media(min-width:640px) { .img-grid--4 { grid-template-columns: repeat(4,1fr); } .img-grid img { height: 180px; } }

/* ═══ MANIFESTO ═══ */
.manifesto { max-width: 780px; margin: 0 auto; }

/* Full manifesto section */
.manifesto-full { background: white; position: relative; overflow: hidden; padding: 5rem 0; }
.manifesto-full::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at 30% 20%, rgba(165,35,29,0.06) 0%, transparent 60%); pointer-events: none; }
.manifesto-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 2; padding: 0 1.25rem; }
.manifesto-welsh { font-family: 'Space Grotesk', sans-serif; font-style: normal; font-size: clamp(0.82rem, 2vw, 0.95rem); color: var(--red); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.5rem; text-align: center; font-weight: 600; }
.manifesto-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; color: var(--ink); text-align: center; line-height: 1.15; margin-bottom: 3rem; }
.manifesto-divider { width: 48px; height: 2px; background: var(--red); margin: 0 auto 3rem; opacity: 0.6; }
.mf-heading { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 1.25rem; margin-top: 2.5rem; }
.mf-heading:first-of-type { margin-top: 0; }
.mf-para { font-size: 0.95rem; line-height: 1.9; color: var(--silt); margin-bottom: 1rem; }
.mf-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.mf-list li { padding: 1rem 0 1rem 1.5rem; border-left: 2px solid rgba(165,35,29,0.3); margin-bottom: 0.75rem; }
.mf-list li strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-style: normal; color: var(--red); margin-bottom: 0.35rem; }
.mf-list li span { font-size: 0.88rem; line-height: 1.75; color: var(--silt); }
.mf-closing { font-family: 'Space Grotesk', sans-serif; font-style: italic; font-size: clamp(1.1rem, 2.5vw, 1.4rem); color: var(--slate); text-align: center; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,0.08); line-height: 1.7; }
.mf-closing .welsh-quote { display: block; font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--red); margin-top: 1rem; font-style: italic; }
.mf-closing .welsh-trans { display: block; font-family: 'Inter', sans-serif; font-style: normal; font-size: 0.7rem; color: var(--stone); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.5rem; }
@media(min-width:960px) { .manifesto-full { padding: 7rem 0; } .mf-para { font-size: 1rem; } }
.m-block { border-left: 3px solid var(--red); padding-left: 2rem; margin-bottom: 2.5rem; }
.m-block p { font-family: 'Space Grotesk', sans-serif; font-style: italic; font-size: 1.35rem; line-height: 1.7; color: var(--silt); }
.sec-dark .m-block p { color: var(--silt); }
.m-block cite { display: block; margin-top: 0.75rem; font-family: 'Inter', sans-serif; font-style: normal; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; color: var(--red); }
.sec-dark .m-block cite { color: var(--mist); }
@media(min-width:960px) { .m-block p { font-size: 1.55rem; } .m-block { padding-left: 2.5rem; } }

/* ═══ GLASSMORPHISM CALCULATOR ═══ */
.calc-sec { position: relative; padding: 3rem 0 5rem; overflow: hidden; background: #F0F0EE; }
.calc-sec::before { content: ''; position: absolute; top: -20%; left: 30%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(165,35,29,0.08), transparent 70%); pointer-events: none; }
.calc-card { position: relative; z-index: 1; background: white; border: 1px solid rgba(0,0,0,0.08); border-radius: 14px; padding: 2rem 1.5rem; max-width: 560px; margin: 0 auto; box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.calc-head { text-align: center; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid rgba(165,35,29,0.1); }
.calc-head h2 { font-size: 1.5rem; color: var(--ink); margin-bottom: 0.4rem; }
.calc-head p { font-size: 0.78rem; color: var(--stone); }
.calc-grp { margin-bottom: 1.25rem; }
.calc-lbl { display: block; font-size: 0.65rem; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.calc-in { width: 100%; padding: 0.8rem 1rem; background: #F8F8F7; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 5px; color: var(--ink); font-family: 'Inter', sans-serif; font-size: 0.92rem; font-weight: 500; outline: none; transition: all 0.25s; appearance: none; -webkit-appearance: none; }
.calc-in:hover { border-color: rgba(165,35,29,0.25); }
.calc-in:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(165,35,29,0.1); background: rgba(255,255,255,0.06); }
.calc-in::placeholder { color: rgba(0,0,0,0.3); }
select.calc-in { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A5231D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
select.calc-in option { background: white; color: var(--ink); }
.calc-go { width: 100%; padding: 0.9rem; background: var(--red); color: white; border: none; border-radius: 5px; font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; cursor: pointer; transition: all 0.3s; margin-top: 0.5rem; }
.calc-go:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(165,35,29,0.3); }
.calc-res { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(165,35,29,0.1); display: none; }
.calc-res.show { display: block; animation: rise 0.5s ease both; }
.res-big { font-family: 'Space Grotesk', sans-serif; font-size: 2.8rem; font-weight: 700; color: var(--red-light); text-align: center; line-height: 1; margin-bottom: 0.3rem; }
.res-lbl { text-align: center; font-size: 0.68rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 1.25rem; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.res-item { background: #F8F8F7; border-radius: 6px; padding: 0.85rem; text-align: center; border: 1px solid rgba(0,0,0,0.06); }
.res-item .v { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.res-item .l { font-size: 0.58rem; color: var(--stone); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.15rem; }
.calc-disc { margin-top: 1.25rem; font-size: 0.7rem; color: var(--stone); line-height: 1.6; text-align: center; font-style: italic; }
@media(min-width:960px) { .calc-sec { padding: 5rem 0 7rem; } .calc-card { padding: 2.5rem; } }

/* ═══ CARDS ═══ */
.g { display: grid; gap: 1rem; }
@media(min-width:640px) { .g2 { grid-template-columns: repeat(2,1fr); } }
@media(min-width:960px) { .g3 { grid-template-columns: repeat(3,1fr); } }
.gc { background: white; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 1.75rem; transition: all 0.35s; position: relative; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.gc::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(165,35,29,0.2), transparent); opacity: 0; transition: opacity 0.35s; }
.gc:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); transform: translateY(-3px); }
.gc:hover::after { opacity: 1; }
.gc-bar { width: 22px; height: 2.5px; border-radius: 1px; margin-bottom: 1.1rem; }
.gc-bar.br { background: var(--red); }
.gc-bar.bv { background: var(--valley-pale); }
.gc-bar.be { background: var(--earth); }
.gc-bar.bm { background: var(--mist); }
.gc h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.gc p { font-size: 0.83rem; color: var(--silt); line-height: 1.75; }
a.gc { text-decoration: none; cursor: pointer; }
a.gc:hover h3 { color: var(--mist-light); }
.lc { background: white; border-radius: 8px; padding: 1.75rem; border: 1px solid rgba(0,0,0,0.05); transition: all 0.3s; display: block; text-decoration: none; color: var(--ink); }
.lc:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.06); border-color: rgba(165,35,29,0.1); }
.lc h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.lc p { font-size: 0.83rem; color: var(--stone); line-height: 1.7; }

/* ═══ CONTACTS ═══ */
.cc { background: white; border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; padding: 1.5rem; transition: all 0.3s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.cc:hover { border-color: rgba(165,35,29,0.15); background: rgba(255,255,255,0.05); }
.cc h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.15rem; }
.cc .role { font-size: 0.73rem; color: var(--stone); margin-bottom: 0.75rem; line-height: 1.5; }
.cc .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.cc .tags a { display: inline-block; padding: 0.2rem 0.5rem; font-size: 0.6rem; font-weight: 600; background: rgba(165,35,29,0.1); color: var(--red-light); border-radius: 3px; text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; transition: background 0.2s; }
.cc .tags a:hover { background: rgba(165,35,29,0.2); }

/* ═══ VOICE PILLS ═══ */
.vp-wrap { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.vp { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; background: white; border-radius: 100px; text-decoration: none; color: var(--ink); border: 1px solid rgba(0,0,0,0.06); font-size: 0.82rem; font-weight: 500; transition: all 0.25s; }
.vp:hover { border-color: var(--red); box-shadow: 0 3px 12px rgba(0,0,0,0.05); transform: translateY(-1px); }
.vp .d { width: 7px; height: 7px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ═══ ACTION BANNER ═══ */
.action { background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%); padding: 4rem 0; text-align: center; position: relative; overflow: hidden; }
.action::before { content: ''; position: absolute; inset: 0; opacity: 0.04; background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000'%3E%3Cpath d='M0 0h1v1H0zM20 20h1v1h-1z'/%3E%3C/g%3E%3C/svg%3E"); }
.action .container { position: relative; z-index: 1; max-width: 680px; }
.action h2 { font-size: clamp(2rem,4.5vw,3.2rem); color: white; margin-bottom: 1rem; line-height: 1.1; }
.action p { color: rgba(255,255,255,0.72); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.action .btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
@media(min-width:960px) { .action { padding: 5.5rem 0; } }

/* ═══ PAGE HEADERS ═══ */
.ph { padding: 5rem 0 2.5rem; background: var(--slate-deep); position: relative; overflow: hidden; }
.ph::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 50%, rgba(43,80,53,0.2), transparent 60%); }
.ph .container { position: relative; z-index: 1; }
.ph .bc { font-size: 0.63rem; color: rgba(255,255,255,0.22); margin-bottom: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ph .bc a { color: var(--red-light); text-decoration: none; }
.ph h2 { font-size: clamp(1.8rem,3.5vw,2.6rem); color: white; margin-bottom: 0.5rem; }
.ph p { color: rgba(244,241,235,0.38); font-size: 0.92rem; max-width: 600px; font-weight: 300; line-height: 1.8; }

/* ═══ SIDEBAR LAYOUT ═══ */
.ws { display: grid; gap: 2.5rem; }
@media(min-width:960px) { .ws { grid-template-columns: 1fr 290px; gap: 3.5rem; } }
.prose h2 { font-size: 1.5rem; color: var(--ink); margin: 2rem 0 0.75rem; }
.prose h3 { font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 700; color: var(--ink); margin: 1.2rem 0 0.4rem; }
.prose p { margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.85; color: var(--silt); }
.prose strong { color: var(--ink); }
.prose ul { margin: 0.6rem 0 1.25rem 1.2rem; }
.prose li { margin-bottom: 0.3rem; font-size: 0.86rem; color: var(--silt); line-height: 1.7; }
.prose a { color: var(--red); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(165,35,29,0.2); }
.prose a:hover { border-color: var(--red); }
.sb { background: #F0F0EE; color: var(--ink); border-radius: 8px; padding: 1.5rem; margin-bottom: 1.25rem; }
.sb h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.sb p { font-size: 0.82rem; color: var(--silt); line-height: 1.6; margin-bottom: 0.75rem; }
.sb a.lk { display: block; padding: 0.25rem 0; color: var(--red); text-decoration: none; font-size: 0.82rem; font-weight: 500; transition: color 0.2s; }
.sb a.lk:hover { color: var(--red-deep); }

/* ═══ MAP PAGE ═══ */
.map-wrap { padding-top: 78px; }
.map-container { height: calc(100vh - 72px); min-height: 500px; border-top: 1px solid rgba(0,0,0,0.1); }
.map-container #map { height: 100%; width: 100%; }
.map-info { padding: 2.5rem 0; }
.map-info h3 { font-size: 1.1rem; color: var(--ink); margin: 1.5rem 0 0.5rem; }
.map-info p { font-size: 0.88rem; color: var(--silt); line-height: 1.8; margin-bottom: 0.75rem; }
.map-key { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; align-items: center; margin: 1rem 0; }
.map-key .swatch { width: 40px; height: 4px; border-radius: 2px; }
.map-key .desc { font-size: 0.78rem; color: var(--silt); }

/* ═══ FOOTER ═══ */
footer { background: var(--ink); padding: 4rem 0 1.5rem; }
.fg { display: grid; gap: 2rem; }
@media(min-width:640px) { .fg { grid-template-columns: 1fr 1fr; } }
@media(min-width:960px) { .fg { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }
.fb h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; color: var(--mist-light); font-weight: 700; margin-bottom: 0.5rem; }
.fb p { font-size: 0.8rem; color: rgba(255,255,255,0.22); line-height: 1.7; margin-bottom: 0.75rem; }
.fb a.em { color: var(--red-light); text-decoration: none; font-weight: 600; font-size: 0.82rem; }
.fc h4 { font-size: 0.58rem; color: rgba(255,255,255,0.18); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; margin-bottom: 0.6rem; }
.fc a { display: block; padding: 0.2rem 0; color: rgba(255,255,255,0.25); text-decoration: none; font-size: 0.8rem; transition: color 0.2s; }
.fc a:hover { color: var(--red-light); }
.socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.socials a { width: 32px; height: 32px; border-radius: 5px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; transition: all 0.25s; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials a:hover svg { stroke: white; }
.socials svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.3); fill: none; stroke-width: 1.5; }
.fbot { border-top: 1px solid rgba(255,255,255,0.03); margin-top: 2.5rem; padding-top: 1rem; text-align: center; font-size: 0.65rem; color: rgba(255,255,255,0.12); }

/* ═══ ANIMATIONS ═══ */
@keyframes rise { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes drift { 0%,100% { transform:translateX(-50%) translateY(0); } 50% { transform:translateX(-50%) translateY(5px); } }
@keyframes pulse { 0%,100% { opacity:1; transform:translateX(-50%) translateY(0); } 50% { opacity:0.2; transform:translateX(-50%) translateY(7px); } }
.rv { opacity:0; transform:translateY(20px); transition: opacity 0.65s cubic-bezier(.23,1,.32,1), transform 0.65s cubic-bezier(.23,1,.32,1); }

/* Global image vibrancy boost */
img[src*="images/"] { filter: brightness(1.05) saturate(1.15); }
img.nav-logo { filter: none; }
.rv.vis { opacity:1; transform:translateY(0); }
