/* ===== DBL SITE — SHARED STYLES ===== */
/* v1 — April 2026 */

/* -------- RESET -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* -------- FONTS -------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Libre+Franklin:wght@300;400;500;600;700&family=Quicksand:wght@300;400;500;600;700&display=swap');

/* -------- TOKENS -------- */
:root {
  /* Colors — dark theme echoing the contract letterhead (misty mountain / fog) */
  --bg: #0f1417;
  --bg-elev: #161c21;
  --bg-card: #1a2127;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.15);
  --fg: #e8ecef;
  --fg-mute: #9ba5ad;
  --fg-dim: #6b7680;
  --accent: #c89b5a;       /* warm brass — picks up the letterhead feel */
  --accent-bright: #e0b174;
  --accent-deep: #8f6d3f;
  --rust: #c65d2e;          /* Jacob's shirt tone, plays well with woodsy brand */

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Libre Franklin', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Quicksand', 'Libre Franklin', sans-serif;

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;
  --space-8: 9rem;

  /* Widths */
  --max-width: 1320px;
  --reading-width: 68ch;

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-med: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 600ms cubic-bezier(0.19, 1, 0.22, 1);
}

/* -------- BASE -------- */
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-variation-settings: 'opsz' 144; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-variation-settings: 'opsz' 72; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }

p { color: var(--fg-mute); max-width: var(--reading-width); }
p.lead { font-size: 1.125rem; color: var(--fg); }

/* Utility eyebrow label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

/* -------- CONTAINER -------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* -------- TOP BAR / NAV -------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 20, 23, 0.78);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  gap: var(--space-3);
  padding-block: 0.625rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-display);
  color: var(--fg);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.1;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 1;
  text-transform: uppercase;
}
.brand-tag {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}

/* Hero logo plate (kept in CSS for backward-compat but not used on home anymore) */
.hero-logo {
  display: block;
  width: clamp(88px, 14vw, 128px);
  height: auto;
  margin-bottom: var(--space-3);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

/* Footer brand logo */
.footer-brand-logo {
  display: block;
  width: 168px;
  height: 168px;
  margin-bottom: var(--space-2);
  border: 1px solid var(--border-strong);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.nav a {
  font-family: var(--font-brand);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--fg-mute);
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--t-fast);
}
.nav a:hover, .nav a.active { color: var(--fg); }
.nav a.nav-skyscout {
  color: var(--accent);
  border: 1px solid var(--accent-deep);
  padding: 0.5rem 0.875rem;
  transition: all var(--t-fast);
}
.nav a.nav-skyscout:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav-toggle { display: none; }

@media (max-width: 820px) {
  .topbar-inner {
    min-height: 76px;
    padding-block: 0.5rem;
  }
  .brand-mark {
    width: 52px;
    height: 52px;
  }
  .brand-name {
    font-size: 1.125rem;
  }
  .brand-tag {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border-strong);
    background: transparent;
    flex-shrink: 0;
    z-index: 102;
    position: relative;
  }
  .nav-toggle svg { width: 20px; height: 20px; stroke: var(--fg); }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    z-index: 101;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    width: 100%;
  }
  .nav a:last-child { border-bottom: none; }
  .nav a.nav-skyscout {
    margin-top: 0.5rem;
    text-align: center;
    border: 1px solid var(--accent-deep);
    padding: 0.75rem 0.875rem;
  }
}

/* Hide the wordmark text on very small screens - logo mark speaks for itself */
@media (max-width: 480px) {
  .brand-text { display: none; }
}

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(1.15) contrast(1.03);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,20,23,0.55) 0%, rgba(15,20,23,0.65) 50%, rgba(15,20,23,0.98) 100%),
    linear-gradient(90deg, rgba(15,20,23,0.65) 0%, transparent 55%);
}
.hero-content {
  padding: var(--space-6) 0 var(--space-5);
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.875rem);
  font-weight: 350;
  margin-bottom: var(--space-3);
  max-width: 22ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-bright);
  font-weight: 300;
}
.hero-tag {
  font-family: var(--font-brand);
  font-style: italic;
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
  font-weight: 400;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.5);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-meta span::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--accent);
  display: inline-block;
}

/* Inner hero (non-home pages) */
.page-hero {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 80px; height: 1px;
  background: var(--accent);
}
.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 350;
  margin-bottom: var(--space-2);
}
.page-hero p { font-size: 1.0625rem; max-width: 62ch; }

/* -------- SECTIONS -------- */
.section {
  padding-block: var(--space-4);
  position: relative;
}
.section-tight { padding-block: var(--space-3); }
.section-elev { background: var(--bg-elev); }

.section-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  max-width: 62ch;
}
.section-header.center { margin-inline: auto; text-align: center; }

/* Two-column intro layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
.two-col-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.two-col-img figure,
.two-col-img > img {
  margin: 0;
  display: block;
}
.two-col-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.02);
  transition: filter var(--t-slow);
}
.two-col-img img:hover { filter: grayscale(0) contrast(1); }
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  transition: all var(--t-fast);
  cursor: pointer;
}
.btn:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn-accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-bright);
  color: var(--bg);
  border-color: var(--accent-bright);
}
.btn-ghost {
  border: 1px solid var(--border-strong);
  background: transparent;
}
.btn svg { width: 16px; height: 16px; }

/* Inline link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: all var(--t-fast);
}
.link-arrow:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
}
.link-arrow::after {
  content: '→';
  transition: transform var(--t-fast);
}
.link-arrow:hover::after { transform: translateX(3px); }

/* -------- PROJECT CARDS -------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
@media (max-width: 820px) {
  .projects-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}
.project-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.project-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.project-card:hover .project-card-img img {
  transform: scale(1.04);
}
.project-card-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
}
.project-card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.01em;
}
.project-card p {
  font-size: 0.9375rem;
  color: var(--fg-mute);
}

/* -------- SKY SCOUT BLOCK -------- */
.skyscout-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(200,155,90,0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-elev), var(--bg-card));
}
.skyscout-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-5);
}
.skyscout-inner .eyebrow {
  color: var(--accent-bright);
}
.skyscout-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-2);
  font-weight: 350;
}
.skyscout-graphic {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  transition: transform var(--t-med), border-color var(--t-fast);
}
.skyscout-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.skyscout-graphic:hover {
  border-color: var(--accent);
}
.skyscout-graphic:hover img {
  transform: scale(1.04);
}
@media (max-width: 820px) {
  .skyscout-inner { grid-template-columns: 1fr; padding: var(--space-3); }
}

/* -------- SERVICES -------- */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.service-row {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: none !important;
}
.service-row:hover,
.service-row *:hover {
  /* Explicitly no hover effect. These rows are content, not interactive. */
  cursor: default;
}
.service-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.service-desc {
  font-family: var(--font-body);
  color: var(--fg-mute);
  font-size: 0.9375rem;
  line-height: 1.6;
}
@media (max-width: 820px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 0.375rem;
    padding: var(--space-2) 0;
  }
}

/* -------- TESTIMONIALS -------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.quote {
  border-left: 1px solid var(--accent-deep);
  padding: 0.5rem 0 0.5rem var(--space-3);
}
.quote-text {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: var(--space-2);
  font-weight: 350;
}
.quote-attrib {
  font-size: 0.8125rem;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  .quotes { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* -------- PARTNERS -------- */
.partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-3) 0;
}
.partners span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-style: italic;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
}

/* -------- WORK IN PROGRESS (Home) -------- */
.wip-feature {
  max-width: 1040px;
  margin: 0 auto;
}
.wip-hero {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: block;
}
.wip-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.wip-caption {
  margin-top: var(--space-2);
  max-width: 72ch;
}
.wip-caption p {
  color: var(--fg-mute);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* -------- TEAM -------- */
.team-hero {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: var(--space-5);
}
.team-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }

.team-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.team-member { display: flex; flex-direction: column; gap: var(--space-2); }
.team-member-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-card);
  max-width: 240px;
}
.team-member-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.team-member:hover .team-member-img img { transform: scale(1.03); }
.team-member h3 { font-size: 1.5rem; }
.team-member-role {
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
@media (max-width: 820px) {
  .team-duo { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* -------- PROCESS COLLAGE (Services page) -------- */
.collage {
  margin-top: var(--space-4);
}
.collage img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
}
.collage-caption {
  display: block;
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.concept-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.concept-tile {
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/10;
  background: var(--bg-card);
}
.concept-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
  filter: brightness(0.92);
}
.concept-tile:hover img {
  transform: scale(1.03);
  filter: brightness(1);
}
@media (max-width: 820px) {
  .concept-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .concept-grid { grid-template-columns: 1fr; }
}

.equip-grid {
  margin-top: var(--space-4);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2);
}
.equip-tile {
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3/2;
  background: var(--bg-card);
}
.equip-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.equip-tile:hover img { transform: scale(1.05); }
@media (max-width: 820px) {
  .equip-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------- PAST WORK -------- */
.past-work-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.past-work-wrap img {
  width: 100%;
  border: 1px solid var(--border);
}
@media (max-width: 820px) {
  .past-work-wrap { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* -------- DRAWING BOARD / PLACEHOLDERS -------- */
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.placeholder-card {
  aspect-ratio: 4/3;
  border: 1px dashed var(--border-strong);
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-3);
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0, transparent 18px,
      rgba(255,255,255,0.015) 18px, rgba(255,255,255,0.015) 19px
    );
}
.placeholder-card span {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--fg-dim);
  font-size: 1rem;
}
.placeholder-card small {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
@media (max-width: 820px) {
  .placeholder-grid { grid-template-columns: 1fr; }
}

/* -------- CLIENT PORTAL SECTION -------- */
.portal-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 900px) {
  .portal-wrap { grid-template-columns: 1fr; gap: var(--space-4); }
}

.portal-mock {
  border: 1px solid var(--border-strong);
  background: #0d1115;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.04) inset;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  max-width: 420px;
  margin-inline: auto;
}
.portal-bar {
  background: #1a2127;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--fg-mute);
}
.portal-bar-dots { display: flex; gap: 0.35rem; }
.portal-bar-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #2a3238;
}
.portal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #141a1f, #0f1417);
}
.portal-header-logo {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #1a2127, #0f1417);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.625rem;
  line-height: 1.1;
  color: var(--accent);
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.03em;
}
.portal-header-title {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.portal-header-title strong {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--fg);
}
.portal-header-title small {
  font-size: 0.6875rem;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}
.portal-body {
  padding: 0.875rem;
}
.portal-section-label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--fg-mute);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.portal-section-label::before {
  content: '⚙';
  color: var(--fg-dim);
}
.portal-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #141a1f;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 0.5rem;
}
.portal-card-icon {
  width: 36px; height: 36px;
  background: #1d252c;
  border: 1px solid rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.portal-card-body { flex: 1; min-width: 0; }
.portal-card-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.125rem;
}
.portal-card-meta {
  font-size: 0.6875rem;
  color: var(--fg-mute);
  line-height: 1.4;
}
.portal-card-meta .num-green { color: #7cc67c; }
.portal-card-arrow {
  color: var(--fg-dim);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: var(--space-3);
}
.field label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.field input,
.field textarea {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 0.875rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color var(--t-fast);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-info {
  border-left: 1px solid var(--border);
  padding-left: var(--space-4);
}
.contact-info-block { margin-bottom: var(--space-4); }
.contact-info-block h4 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
  font-weight: 500;
}
.contact-info-block p,
.contact-info-block a {
  font-size: 1rem;
  color: var(--fg);
  line-height: 1.6;
}
.contact-info-block a:hover { color: var(--accent-bright); }

/* -------- FOOTER -------- */
.site-footer {
  padding: var(--space-4) 0 var(--space-3);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.625rem; }
.footer-grid a { color: var(--fg-mute); font-size: 0.9375rem; transition: color var(--t-fast); }
.footer-grid a:hover { color: var(--fg); }
.footer-about { font-family: var(--font-display); font-style: italic; font-size: 1.125rem; line-height: 1.5; color: var(--fg-mute); max-width: 36ch; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--fg-dim);
  gap: var(--space-3);
  flex-wrap: wrap;
}
.social {
  display: flex;
  gap: var(--space-2);
}
.social a {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border-strong);
  color: var(--fg-mute);
  transition: all var(--t-fast);
}
.social a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.social svg { width: 16px; height: 16px; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .footer-grid > div:first-child { grid-column: 1 / -1; margin-bottom: var(--space-3); }
}

/* -------- REVEAL ON SCROLL -------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms cubic-bezier(0.19, 1, 0.22, 1), transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -------- LOGO IMG -------- */
.logo-img {
  height: 38px;
  width: auto;
}

/* -------- SUCCESS STATE -------- */
.form-success {
  padding: var(--space-3);
  border: 1px solid var(--accent);
  background: rgba(200,155,90,0.06);
  color: var(--fg);
}
.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-bright);
  margin-bottom: 0.5rem;
}

/* -------- PHOTO CREDITS -------- */
.photo-credit {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 0.35rem;
  font-weight: 400;
  opacity: 0.75;
}

/* -------- ANNE KIRK CREDIT (inside footer Contact column) -------- */
.contact-credit {
  margin-top: var(--space-2);
  padding-top: var(--space-1);
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.01em;
  line-height: 1.5;
}
.contact-credit a {
  color: var(--fg-mute);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.contact-credit a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-deep);
}

/* -------- CTA SPLIT (Home) -------- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.cta-half h2 {
  margin-bottom: var(--space-2);
}
.cta-social {
  padding-left: var(--space-4);
  border-left: 1px solid var(--border);
}
.cta-social-h {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: var(--space-1);
}
.cta-social-sub {
  color: var(--fg-mute);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: var(--space-3);
}
.cta-fb {
  max-width: 380px;
}

@media (max-width: 820px) {
  .cta-split {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .cta-social {
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
  }
}

/* ========================================================
   v2.4 — PHYSICS promotion + CTA padding fix
======================================================== */

/* -------- PHYSICS NAV LINK (matches Sky Scout button style) -------- */
.nav a.nav-physics {
  color: #6fb3e0;
  border: 1px solid #3a7fbd;
  padding: 0.5rem 0.875rem;
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
}
.nav a.nav-physics:hover {
  background: #4f9fd4;
  color: var(--bg);
  border-color: #4f9fd4;
}
@media (max-width: 820px) {
  .nav a.nav-physics {
    margin-top: 0.5rem;
    text-align: center;
    padding: 0.75rem 0.875rem;
  }
}

/* -------- PHYSICS FOOTER BLOCK (Sky Scout style) -------- */
.physics-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, rgba(79,159,212,0.10), transparent 50%),
    linear-gradient(180deg, var(--bg-elev), var(--bg-card));
  margin-bottom: var(--space-4);
}
.physics-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4);
}
.physics-inner .eyebrow {
  color: #6fb3e0;
}
.physics-h {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-2);
  color: var(--fg);
  font-weight: 350;
}
.physics-copy {
  color: var(--fg-mute);
}
.physics-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 0.75rem;
  max-width: 62ch;
}
.physics-lead strong {
  color: #6fb3e0;
  font-weight: 600;
}
.physics-status {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: var(--space-2);
}
.physics-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-2);
}
.physics-cta {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: linear-gradient(90deg, #3a7fbd 0%, #4f9fd4 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.physics-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,159,212,0.3);
}
.physics-fb {
  font-size: 0.8125rem;
  color: var(--fg-mute);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.physics-fb:hover {
  color: #6fb3e0;
  border-bottom-color: rgba(111,179,224,0.4);
}
.physics-graphic {
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  transition: transform var(--t-med), border-color var(--t-fast);
  background: #fff;
}
.physics-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms cubic-bezier(0.19, 1, 0.22, 1);
}
.physics-graphic:hover {
  border-color: #4f9fd4;
}
.physics-graphic:hover img {
  transform: scale(1.04);
}

@media (max-width: 820px) {
  .physics-inner {
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }
  .physics-graphic {
    max-width: 220px;
    margin: 0 auto;
  }
  .physics-links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* -------- CTA SECTION — REDUCE VERTICAL PADDING -------- */
.section.section-cta {
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}
@media (max-width: 820px) {
  .section.section-cta {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }
}

/* -------- FEATURED PROJECTS — TIGHTER PADDING & GAP -------- */
.section.section-featured {
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.section.section-featured .section-header {
  margin-bottom: var(--space-3);
}
.section.section-featured .projects-grid {
  gap: var(--space-2);
}
@media (max-width: 820px) {
  .section.section-featured {
    padding-top: var(--space-3);
    padding-bottom: var(--space-3);
  }
  .section.section-featured .projects-grid {
    gap: var(--space-3);
  }
}

/* -------- FOOTER HR (between PHYSICS block and footer grid) -------- */
.footer-hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: var(--space-4) 0;
}

/* -------- About — Our Story image (capped height, not stretched) -------- */
.story-img-cell {
  display: block;
}
.story-img-cell img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
@media (max-width: 820px) {
  .story-img-cell img {
    max-height: 380px;
  }
}

/* -------- About — "The Studio" paragraphs override reading-width to full container -------- */
.studio-full-width p {
  max-width: none;
}
