:root{
  /* Neutral, premium palette (BigSkyBuild-inspired) */
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel2: #fbfaf7;

  --text: #0b1220;
  --muted: rgba(11,18,32,.72);
  --line: rgba(11,18,32,.12);

  /* Brand accents */
  --brand: #c58b3a;     /* warm bronze */
  --brand2:#1b4d6b;     /* deep blue */

  /* Layout */
  --radius: 16px;
  --max: 1120px;

  /* Header sizing (fixed topbar + header) */
  --topbar-h: 40px;
  --header-h: 72px;

  /* Effects */
  --shadow: 0 14px 34px rgba(11,18,32,.10);
  --drop-border: rgba(11,18,32,.14);
  --drop-shadow: 0 18px 44px rgba(11,18,32,.18);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  padding-top: calc(var(--topbar-h) + var(--header-h));
}

a{color:inherit;text-decoration:none}
a:hover{opacity:.94}
img{max-width:100%;display:block}

h1,h2,h3{
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  letter-spacing: .2px;
}

.container{max-width:var(--max);margin:0 auto;padding:0 20px}

body{
  /* header is fixed; we’ll set --header-offset via JS so content never hides */
  padding-top: var(--header-offset, 0px);
}

/* Header (fixed) */
.header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  border-bottom: 1px solid var(--line);
  background: #fff;          /* SOLID header */
  backdrop-filter: none;
}

.header .inner{
  /* 2-row grid:
     Row 1: brand + nav
     Row 2: CTA aligned under nav */
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 10px;
  align-items: center;
  padding: 10px 0;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Base logo rule (header override below sets final sizing) */
.brand-logo{
  width: 260px;
  height: 44px;
  display: block;
  object-fit: cover;               /* trims whitespace so it looks bigger */
  object-position: 44% 50%;
  clip-path: inset(0 0 0 6%);
  border-radius: 8px;
  filter: none;
}

/* Phone: keep logo, just smaller */
@media (max-width: 520px){
  .brand-logo{
    width: min(70vw, 260px);
    height: 38px;
    object-fit: cover;
    object-position: 44% 50%;
    clip-path: inset(0 0 0 6%);
  }
}

.brand{ grid-column: 1; grid-row: 1; }

.navtoggle{
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: none; /* desktop hidden */
}

#primaryNav.nav{
  grid-column: 2 / 4;
  grid-row: 1;
  justify-self: end;
}

#primaryNav.nav,
#primaryNav.nav a,
#primaryNav .navbtn{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: .15px;
  font-size: 14px;
}

.cta{
  grid-column: 2 / 4;
  grid-row: 2;
  justify-self: end;
}

/* Mobile */
@media (max-width: 920px){
  .header .inner{
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
  }

  .brand{ grid-column: 1; grid-row: 1; }

  .navtoggle{
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
  }

  #primaryNav.nav{
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: stretch;
  }

  .cta{
    grid-column: 1 / 3;
    grid-row: 3;
    justify-self: stretch;
    display: none;
  }

  .header.menu-open .cta{ display: flex; }
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:800;
  letter-spacing:.3px;
  min-width:0;
}

/* Logo container (legacy / unused with brand-logo, kept intact) */
.brand-mark{
  width: 108px;
  height: 64px;
  border-radius: 18px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
  background:
    radial-gradient(140px 80px at 28% 22%, rgba(255,255,255,.20), rgba(0,0,0,.90) 58%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(0,0,0,.22));
  border: 1px solid rgba(255,255,255,.20);
  box-shadow:
    0 12px 24px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.18);
}
.brand-mark::before{
  content:"";
  position:absolute;
  inset: 6px;
  border-radius: 14px;
  border: 1px solid rgba(220,230,240,.55);
  pointer-events:none;
  opacity:.95;
}
.brand-mark img{
  width: 86%;
  height: 86%;
  object-fit: contain;
}
.brand span{
  display:block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.nav{
  display:flex;
  gap: 12px;
  align-items:center;
  flex-wrap:wrap;
  color: var(--muted);
}
.nav a{padding:8px 10px;border-radius:10px}
.nav a[aria-current="page"]{
  background: rgba(197,139,58,.14);
  color: var(--text);
}

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

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:12px;
  border: 1px solid rgba(11,18,32,.16);
  background: rgba(255,255,255,.72);
  color: var(--text);
  transition: transform .12s ease, background .12s ease, opacity .12s ease, border-color .12s ease;
}

/* Default primary button (keep the nicer look) */
.btn.primary{
  border-color: rgba(197,139,58,.50);
  background: linear-gradient(135deg, rgba(197,139,58,.22), rgba(27,77,107,.10));
  color: var(--text);
}

/* FIX: ONLY the hero instance should be white text (so it reads on the photo) */
.home-hero .actions .btn.primary{
  color: #fff;
  border-color: rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(27,77,107,.92), rgba(197,139,58,.72));
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
}

.btn.ghost{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.24);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn:hover{transform: translateY(-1px)}
.btn:active{transform:none}

/* Home hero (photo-first) */
.home-hero{
  position: relative;
  min-height: calc(86vh - (var(--topbar-h) + var(--header-h)));
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#000;
}
.home-hero-media{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.05) contrast(1.05);
}
.home-hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.52), rgba(0,0,0,.64)),
    radial-gradient(900px 500px at 20% 15%, rgba(197,139,58,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 20%, rgba(27,77,107,.16), transparent 55%);
}
.home-hero-inner{
  position:relative;
  z-index: 2;
  max-width: 860px;
  padding: 58px 0;
  color:#fff;
}
.kicker{
  color: rgba(255,255,255,.85);
  font-weight: 800;
  letter-spacing:.38px;
  text-transform: uppercase;
  font-size: 12px;
}
.home-hero h1{
  margin: 10px 0 12px;
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1.03;
  max-width: 20ch;
}
.lead{
  color: rgba(255,255,255,.82);
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 62ch;
}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.highlights{
  margin-top: 22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.highlight{
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  border-radius: 16px;
  padding: 14px;
  backdrop-filter: blur(10px);
}
.h-title{font-weight: 900;letter-spacing:.2px;margin-bottom: 4px;}
.h-text{color: rgba(255,255,255,.78);font-size: 13px;}

/* Sections */
.section{padding: 44px 0}
.section-quiet{background: var(--panel2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);}

.rule{
  width: 72px;
  height: 2px;
  background: linear-gradient(90deg, rgba(197,139,58,.95), rgba(27,77,107,.65));
  border-radius: 99px;
  margin: 12px 0 14px;
}

.section h2{margin:0 0 6px;font-size: 30px}
.section p{margin:0;color: var(--muted);max-width: 78ch}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px
}
.tile{
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(11,18,32,.06);
}
.tile h3{margin:0 0 8px;font-size: 18px}
.tile p{margin:0;color: var(--muted);font-size: 14px}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.split2{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
}

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.media{overflow:hidden;}
.media img{
  width:100%;
  height: 280px;
  object-fit: cover;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.media .body{padding: 18px}
.tag{
  color: var(--brand);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .4px;
}
.media h3{margin: 8px 0 10px}
.media p{margin:0;color: var(--muted)}
.media .foot{padding: 0 18px 18px}

.media-card{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(11,18,32,.10);
}
.media-card img{width:100%;height: 360px;object-fit: cover;}
.content .actions{margin-top: 14px;}

/* =========================================================
   About section button group → tidy grid (ONLY inside split2 content)
   ========================================================= */
.section .split2 .content .actions{
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}
.section .split2 .content .actions .btn{
  width: 100%;
  justify-content: center;
  padding: 10px 12px;
}
@media (max-width: 920px){
  .section .split2 .content .actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px){
  .section .split2 .content .actions{
    grid-template-columns: 1fr;
  }
}

/* Band */
.cta-band{
  display:flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  border: 1px solid rgba(11,18,32,.14);
  background:
    linear-gradient(135deg, rgba(197,139,58,.10), rgba(27,77,107,.06)),
    var(--panel);
  box-shadow: 0 16px 40px rgba(11,18,32,.10);
  padding: 20px;
}
.cta-copy h2{margin: 0 0 8px; font-size: 28px}
.cta-copy p{margin:0}
.cta-actions{display:flex;gap:10px;flex-wrap:wrap}

/* =========================
   FOOTER FIX (no HTML changes)
   - stops the huge logo.png from blowing up
   - makes footer look clean + balanced
   ========================= */

.footer{
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer .inner{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
}

/* Footer brand row */
.footer .brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .2px;
}

/* CRITICAL: constrain logo.png so it can’t explode the layout */
.footer .brand img{
  width: auto !important;
  height: 42px !important;     /* adjust 38–48 if you want */
  max-width: 190px !important;
  object-fit: contain !important;
  display: block;
}

/* Tidy the small lines */
.footer small{
  display:block;
  margin-top: 8px;
  color: rgba(11,18,32,.72);
  line-height: 1.45;
}

/* Make the notice feel intentional (less “floating pill”) */
.footer .notice{
  border: 1px solid rgba(11,18,32,.12);
  background: rgba(197,139,58,.06);
  border-radius: 16px;
  padding: 14px 16px;
  color: rgba(11,18,32,.82);
  max-width: 520px;
  margin-left: auto; /* keeps it tucked to the right on desktop */
}

/* Mobile: stack + center cleanly */
@media (max-width: 920px){
  .footer .inner{
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
  }

  .footer .notice{
    margin-left: 0;
    max-width: 100%;
  }

  .footer .brand img{
    height: 38px !important;
    max-width: 170px !important;
  }
}

/* ===== FOOTER: hard clamp any logo/image so it can’t blow up ===== */
.footer img{
  height: 54px !important;     /* change to taste: 42–64 */
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
  display: block !important;
}

/* If the footer image is inside a link or any wrapper, clamp that too */
.footer a img,
.footer .inner img,
.footer .container img{
  height: 54px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
}


/* Dropdown nav */
.navdrop{ position: relative; }
.navbtn{
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
}
.navbtn:hover{ opacity: .92; }
.navbtn:focus{ outline: 2px solid rgba(197,139,58,.35); outline-offset: 2px; }

.navmenu{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--drop-border);
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,246,244,.92));
  backdrop-filter: blur(14px);
  box-shadow: var(--drop-shadow);
  display: none;
  z-index: 200;
}
.navmenu::after{
  content:"";
  position:absolute;
  top: -7px;
  left: 18px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: rgba(250,252,255,.95);
  border-left: 1px solid rgba(11,18,32,.10);
  border-top: 1px solid rgba(11,18,32,.10);
}
.navmenu a{
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  color: var(--text);
}
.navmenu a:hover{ background: rgba(197,139,58,.12); }
.navdrop.open .navmenu{ display: block; }
.navdrop.open .navbtn{ background: rgba(197,139,58,.14); color: var(--text); }

.navtoggle{
  display:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,.78);
  color: var(--text);
  padding:10px 12px;
  border-radius: 12px;
  font: inherit;
  cursor:pointer;
}

/* Responsive */
@media (max-width: 920px){
  :root{ --topbar-h: 0px; --header-h: 64px; }
  body{ padding-top: var(--header-h); }
  .topbar{ display:none; }
  .header{ top: 0; }

  .navtoggle{ display:inline-flex; }

  .nav{
    display:none;
    width:100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
  }
  .header.menu-open .nav{ display:flex; }

  .cta{
    width:100%;
    display:none;
    gap: 10px;
    margin-top: 10px;
  }
  .header.menu-open .cta{ display:flex; }
  .cta .btn{ flex: 1; }

  .navdrop{ position: static; }
  .navmenu{
    position: static;
    display:none;
    min-width: 0;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(245,246,244,.88));
    border: 1px solid var(--line);
    box-shadow: none;
    margin-top: 6px;
  }
  .navmenu::after{ display:none; }
  .navdrop.open .navmenu{ display:block; }

  .home-hero{ min-height: calc(78vh - var(--header-h)); }
  .highlights{ grid-template-columns: 1fr; }
  .grid3{ grid-template-columns: 1fr; }
  .split, .split2{ grid-template-columns: 1fr; }
  .media-card img{ height: 260px; }
  .footer .inner{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction: column; align-items: flex-start; }
}

/* FULLSCREEN LANDING SLIDESHOW (keep behavior) */
.landing{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  overflow: hidden;
}
.landing-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.2s ease, transform 7s ease;
}
.landing-slide.active{ opacity: 1; transform: scale(1); }
.landing-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.12), rgba(0,0,0,.25));
  pointer-events: none;
}
.landing-skip{
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .35px;
  color: #fff;
  background: linear-gradient(135deg,
    rgba(31,111,235,.92) 0%,
    rgba(47,134,201,.92) 45%,
    rgba(95,214,210,.92) 100%
  );
  box-shadow:
    0 10px 24px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.landing-skip:hover{ opacity: .92; transform: translateY(-1px); }
.landing-skip:active{ transform:none; }

body.landing-lock{ height: 100vh; overflow: hidden; }

.landing-center-mark{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 8vh 8vw;
}
.landing-center-mark img{
  width: min(76vw, 980px);
  height: auto;
  opacity: .92;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.55));
}
@media (max-width: 640px){
  .landing-center-mark{ padding: 10vh 8vw; }
  .landing-center-mark img{ width: min(86vw, 520px); }
}

/* =========================================================
   HEADER OVERRIDE — single sleek row (brand | nav | CTAs)
   ========================================================= */

body{ padding-top: var(--header-offset, 0px) !important; }

/* One-row header grid on desktop */
.header .inner{
  display: grid !important;
  grid-template-columns: auto 1fr auto !important;
  grid-template-rows: auto !important;
  column-gap: 18px !important;
  row-gap: 0 !important;
  align-items: center !important;
  padding: 12px 0 !important;
}

/* Brand */
.header .brand{
  grid-column: 1;
  grid-row: 1;
  gap: 10px !important;
  min-width: 0;
}

/* FIX: bigger logo on desktop (and "cover" trims whitespace so it looks bigger) */
.header .brand-logo{
  height: 64px !important;
  width: clamp(280px, 28vw, 420px) !important;
  object-fit: cover !important;
  object-position: 44% 42% !important;
  clip-path: inset(0 0 0 6%) !important;
  border-radius: 8px !important;
  filter: none !important;
}

/* Center nav, no wrapping */
#primaryNav.nav{
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: flex !important;
  align-items: center;
  gap: 12px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
}

/* Right-aligned CTAs */
.header .cta{
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
}

/* Prevent awkward wrapping in buttons/links */
#primaryNav.nav a,
#primaryNav .navbtn,
.header .cta .btn{
  white-space: nowrap;
}

/* Hide hamburger on desktop */
.header .navtoggle{
  display: none !important;
}

/* Mobile: stacked menu (keep behavior) */
@media (max-width: 920px){
  .header .inner{
    grid-template-columns: 1fr auto !important;
    grid-template-rows: auto auto auto !important;
    row-gap: 10px !important;
  }

  .header .navtoggle{
    display: inline-flex !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  #primaryNav.nav{
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    flex-wrap: wrap !important;
  }

  .header .cta{
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    flex-wrap: wrap !important;
  }

  .header .brand-logo{
    height: 50px !important;
    width: min(78vw, 360px) !important;
    object-fit: cover !important;
    object-position: 44% 42% !important;
    clip-path: inset(0 0 0 6%) !important;
  }
}

/* Hero height should respect real header height (not old vars) */
.home-hero{
  min-height: calc(86vh - var(--header-offset, 0px)) !important;
}
@media (max-width: 920px){
  .home-hero{
    min-height: calc(78vh - var(--header-offset, 0px)) !important;
  }
}
/* Featured work: 3-up grid */
.featured-grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-grid .media img{
  height: 220px;          /* smaller than the default 280 */
  object-fit: cover;
}

.featured-grid .media .body{ padding: 16px; }
.featured-grid .media .foot{ padding: 0 16px 16px; }

.featured-grid .media h3{
  margin: 8px 0 10px;
  font-size: 18px;
}

@media (max-width: 980px){
  .featured-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .featured-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   FEATURED WORK — make the 3-up cards smaller + tighter,
   and keep them mobile-safe.
   Paste at END of styles.css
   ========================================================= */

.featured-grid{
  /* Keep it from feeling “too wide” on large screens */
  max-width: 1040px;
  margin: 18px auto 0;
  display: grid;
  gap: 12px;

  /* Slightly narrower columns so the cards don’t feel huge */
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Reduce the “big media card” feel */
.featured-grid .card.media{
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(11,18,32,.06);
}

.featured-grid .media img{
  height: 170px;                 /* was feeling like a hero card */
  object-fit: cover;
}

.featured-grid .media .body{
  padding: 14px;                 /* tighter */
}

.featured-grid .media .foot{
  padding: 0 14px 14px;
}

.featured-grid .media h3{
  font-size: 17px;
  margin: 6px 0 8px;
}

.featured-grid .media p{
  font-size: 13px;
}

/* Buttons smaller so they don’t dominate */
.featured-grid .btn{
  padding: 8px 12px;
  border-radius: 12px;
}

/* Responsive: go 2-up earlier so it never crowds */
@media (max-width: 1020px){
  .featured-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 720px;
  }
}
@media (max-width: 640px){
  .featured-grid{
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .featured-grid .media img{
    height: 180px; /* a touch taller on single-column */
  }
}

/* ===== Page Templates (tpl-1..tpl-4) ===== */
.tpl { padding: 44px 0; }
.tpl .lede { font-size: 1.05rem; opacity: 0.92; max-width: 65ch; }
.tpl-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* Template 1: banner */
.tpl-hero{
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.22)), var(--hero-img) center/cover no-repeat;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
}
.tpl-hero-inner{ padding: 22px; max-width: 920px; color:#fff; }

/* Template 2: split */
.tpl-split{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: stretch; }
.tpl-split.is-reverse{ grid-template-columns: 1fr 1.1fr; }
.tpl-split.is-reverse .tpl-media{ order:2; }
.tpl-media img{ width:100%; height:100%; object-fit: cover; border-radius: 18px; display:block; }
.tpl-copy{ background: rgba(255,255,255,.04); border: 1px solid rgba(11,18,32,.08); border-radius: 18px; padding: 18px; }

/* Template 3: grid */
.tpl-head{ margin-bottom: 14px; }
.tpl-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.tpl-grid img{ width:100%; height: 220px; object-fit: cover; border-radius: 16px; display:block; }

/* Template 4: feature */
.tpl-feature{ border-radius: 18px; overflow:hidden; border: 1px solid rgba(11,18,32,.08); background: rgba(255,255,255,.03); }
.tpl-feature img{ width:100%; height: 360px; object-fit: cover; display:block; }
.tpl-feature-copy{ padding: 18px; }
.tpl-panel{ margin-top: 14px; border-radius: 18px; padding: 18px; border: 1px solid rgba(11,18,32,.08); background: rgba(255,255,255,.03); }

@media (max-width: 900px){
  .tpl-split, .tpl-split.is-reverse{ grid-template-columns: 1fr; }
  .tpl-grid{ grid-template-columns: 1fr; }
  .tpl-grid img{ height: 240px; }
  .tpl-feature img{ height: 260px; }
}

/* ===== Mobile nav: force hamburger + collapsible panel (wins over header overrides) ===== */
@media (max-width: 920px){
  #primaryNav.nav{
    display: none !important;
    width: 100% !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px !important;
    margin-top: 10px !important;
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(12px) !important;
  }
  .header.menu-open #primaryNav.nav{ display: flex !important; }

  .header .cta{
    display: none !important;
    width: 100% !important;
    gap: 10px !important;
    margin-top: 10px !important;
    flex-wrap: wrap !important;
  }
  .header.menu-open .cta{ display: flex !important; }

  .header .cta .btn{
    flex: 1 1 180px !important;
    justify-content: center !important;
  }

  .navdrop{ position: static !important; }
  .navmenu{
    position: static !important;
    min-width: 0 !important;
    box-shadow: none !important;
    margin-top: 6px !important;
  }
}

/* Contact: map + form */
.media-map{ padding: 0 !important; overflow: hidden; }
.map-embed{
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

.hp-field{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

.contact-form .form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-form .field{ display:grid; gap: 6px; }
.contact-form .field-full{ grid-column: 1 / -1; }

.contact-form label{
  font-size: 13px;
  color: rgba(11,18,32,.72);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.92);
  font: inherit;
  color: var(--text);
}

.contact-form textarea{
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline: 2px solid rgba(197,139,58,.35);
  outline-offset: 2px;
}

.fineprint{
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(11,18,32,.65);
}

@media (max-width: 920px){
  .contact-form .form-grid{ grid-template-columns: 1fr; }
  .map-embed{ min-height: 260px; }
}
/* ===== Contact page polish ===== */

/* Make the map actually fill the left card */
.media-map{
  padding: 0 !important;
  overflow: hidden;
  min-height: 320px;
}
.map-embed{
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* Ensure the split columns feel balanced */
.split{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}
@media (max-width: 920px){
  .split{ grid-template-columns: 1fr; }
  .media-map, .map-embed{ min-height: 260px; }
}

/* Contact “band” spacing */
.cta-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 18px;
}
.cta-band h1, .cta-band h2{ margin:0; }
.cta-copy p{ margin: 0; opacity: .85; }

/* Form styling */
.contact-form{
  margin-top: 10px;
}
.contact-form .form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-form .field{
  display:grid;
  gap: 6px;
}
.contact-form .field-full{
  grid-column: 1 / -1;
}
@media (max-width: 720px){
  .contact-form .form-grid{ grid-template-columns: 1fr; }
}

.contact-form label{
  font-size: 13px;
  font-weight: 700;
  color: rgba(11,18,32,.72);
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,18,32,.14);
  background: rgba(255,255,255,.92);
  color: var(--text);
  font: inherit;
}

.contact-form textarea{
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline: 2px solid rgba(197,139,58,.35);
  outline-offset: 2px;
}

/* Button alignment */
.contact-form .actions{
  display:flex;
  justify-content:flex-start;
  gap: 10px;
  margin-top: 12px;
}

/* Fineprint */
.fineprint{
  margin: 10px 0 0;
  font-size: 12.5px;
  color: rgba(11,18,32,.65);
}

/* Honeypot: final single rule */
.hp-field{
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hp-field input{
  pointer-events: none !important;
}
