/* AGS Ventures — bronze / worn-stone marketing scaffold
   Locked palette (classical stone + bronze accent; not orange, not pure black):
   - Bronze (primary accent):        #8C6A3F
   - Worn stone / deep charcoal:     #2C2A26  (main background)
   - Stone light / warm ivory:       #E8E0D4  (primary text on dark)
   - Mid stone:                      #5C574E  (muted text, borders)
   - Bronze highlight:               #B0895A  (hover / soft glow)
   - Near-black stone:               #1A1917  (footer / deepest)
   - Soft parchment panels:          #F3EDE3  (light cards if used)
   Original look — not a Spartan Investors clone. */

:root {
  /* Locked pair */
  --bronze: #8C6A3F;
  --worn-stone: #2C2A26;

  /* Supporting */
  --stone-light: #E8E0D4;
  --mid-stone: #5C574E;
  --bronze-highlight: #B0895A;
  --near-black-stone: #1A1917;
  --parchment: #F3EDE3;

  /* Theme tokens */
  --bg: var(--worn-stone);
  --bg-elevated: #24221E;
  --bg-card: #333029;
  --bg-card-hover: #3D3932;
  --bg-deep: var(--near-black-stone);
  --bg-panel-light: var(--parchment);
  --border: var(--mid-stone);
  --border-subtle: #3F3C36;
  --text: var(--stone-light);
  --text-muted: #A39E94; /* warm stone between ivory and mid — readable muted */
  --text-dim: var(--mid-stone);
  --accent: var(--bronze);
  --accent-hover: var(--bronze-highlight);
  --accent-soft: rgba(140, 106, 63, 0.14);
  --accent-glow: rgba(176, 137, 90, 0.28);
  --on-accent: var(--parchment); /* text/icons on bronze buttons */
  --danger: #c97a6e;
  --success: #7a9e78;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-wordmark: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 4rem;
  --container: 68rem;
  --shadow-card: 0 1px 0 rgba(232, 224, 212, 0.04), 0 12px 40px rgba(26, 25, 23, 0.45);
  --focus: 0 0 0 3px var(--accent-glow);

  /* Continuous side pillars (logo-inspired double shafts) */
  --site-pillar-shaft: clamp(0.72rem, 1.05vw, 1.05rem);
  --site-pillar-gap: clamp(0.22rem, 0.35vw, 0.32rem);
  --site-pillar-w: calc(var(--site-pillar-shaft) * 2 + var(--site-pillar-gap));
  --site-pillar-inset: calc(var(--site-pillar-w) + 0.85rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--text);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

@media (min-width: 721px) {
  .container {
    width: min(100% - (2 * var(--site-pillar-inset)), var(--container));
  }
}

/* ——— Header / sticky nav ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(44, 42, 38, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  gap: 1rem;
}

@media (min-width: 721px) {
  .nav {
    width: min(100% - (2 * var(--site-pillar-inset)), var(--container));
  }
}

.nav-brand,
.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.1;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: min(52vw, 14rem);
}

.nav-brand .nav-logo {
  display: block;
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
}

.nav-brand:hover {
  color: var(--accent-hover);
}

.nav-brand:hover .nav-logo {
  opacity: 0.92;
}

.nav-brand:focus-visible {
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent) !important;
  font-weight: 650 !important;
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--on-accent) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 1px;
}

body.nav-open {
  overflow: hidden;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

button.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ——— Sections common ——— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.section-lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(5rem, 14vw, 8rem) 0 clamp(4.5rem, 10vw, 6rem);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(44, 42, 38, 0.92) 0%, rgba(44, 42, 38, 0.78) 42%, rgba(44, 42, 38, 0.52) 100%),
    linear-gradient(180deg, rgba(44, 42, 38, 0.35), rgba(44, 42, 38, 0.78));
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 44rem;
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-sub {
  margin: 0 0 1.85rem;
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* ——— Values ——— */
.values {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.values-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.value-card:hover {
  border-color: #4A463F;
  background: var(--bg-card-hover);
}

.value-num {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ——— Story ——— */
.story {
  border-bottom: 1px solid var(--border-subtle);
}

.story-grid {
  display: grid;
  gap: 0.5rem 3rem;
}

.story-body {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ——— Portfolio ——— */
.portfolio {
  border-bottom: 1px solid var(--border-subtle);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.project-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: #6B5638;
  background:
    linear-gradient(135deg, rgba(140, 106, 63, 0.10), transparent 40%),
    var(--bg-card);
}

.project-card-media {
  min-height: 100%;
  background: #37332d;
}

.project-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  object-position: center;
}

.project-card--featured .project-card-body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.project-card--soon {
  opacity: 0.85;
  border-style: dashed;
}

.project-tag {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}

.project-address {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.project-type {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.project-specs {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.project-specs li {
  margin-bottom: 0.25rem;
}

.project-angle {
  margin: 0 0 1.35rem;
  color: var(--text-muted);
  max-width: 40rem;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.project-detail-band {
  margin: 0 0 1rem;
}

.project-detail-media {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #37332d;
}

.project-detail-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(44, 42, 38, 0.44), transparent 55%, rgba(44, 42, 38, 0.28));
  pointer-events: none;
}

.project-detail-media img {
  display: block;
  width: 100%;
  height: clamp(12rem, 25vw, 18rem);
  object-fit: cover;
  object-position: center;
}

.project-detail-label {
  position: absolute;
  z-index: 1;
  left: 1.25rem;
  bottom: 1rem;
  margin: 0;
  color: var(--stone-light);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coming-soon {
  margin: 0;
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ——— Investors strip ——— */
.investors {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.investor-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.investor-points li {
  margin-bottom: 0.45rem;
}

/* ——— Contact / form ——— */
.contact {
  border-bottom: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

.contact-intro p {
  color: var(--text-muted);
}

.contact-note {
  font-size: 0.88rem;
  color: var(--text-dim) !important;
}

.investor-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 1.85rem);
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--accent);
}

.optional {
  font-weight: 400;
  color: var(--text-dim);
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-dim);
}

.form-row--check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
}

.form-row--check input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--accent);
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.form-status {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-status--ok {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.28);
}

.form-status--err {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.form-status--warn {
  background: var(--accent-soft);
  color: var(--accent-hover);
  border: 1px solid rgba(140, 106, 63, 0.40);
}

.form--sent {
  opacity: 0.85;
}

/* ——— Footer ——— */
.site-footer {
  padding: 2.25rem 0 2.5rem;
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-brand,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-brand .wordmark {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}

.footer-brand a,
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-brand a:hover,
.footer-links a:hover {
  color: var(--accent-hover);
}

.footer-sep {
  color: var(--text-dim);
}

.footer-legal {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}


/* ——— Continuous site pillars (logo-inspired bronze double shafts) ——— */
/* Fixed full-viewport left + right frame; content sits between via gutter inset.
   Capitals stay at the top of the viewport and plinths at the bottom while scrolling. */
.stone-pillars--site {
  position: fixed;
  inset: 0;
  z-index: 110;
  pointer-events: none;
  overflow: visible;
}

.stone-pillar {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--site-pillar-gap);
  width: var(--site-pillar-w);
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 1;
}

.stone-pillar--left {
  left: 0.45rem;
}

.stone-pillar--right {
  right: 0.45rem;
}

/* Shared capital / abacus (arched block spanning both shafts — logo mark) */
.stone-pillar::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -18%;
  right: -18%;
  height: 0.85rem;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      #C49A68 0%,
      #B0895A 28%,
      #8C6A3F 62%,
      #6a502f 100%
    );
  border-radius: 2px 2px 40% 40% / 2px 2px 70% 70%;
  box-shadow:
    0 1px 0 rgba(232, 224, 212, 0.18),
    inset 0 1px 0 rgba(243, 237, 227, 0.28),
    inset 0 -2px 4px rgba(26, 25, 23, 0.35);
}

/* Shared plinth / base */
.stone-pillar::after {
  content: "";
  position: absolute;
  bottom: 0.35rem;
  left: -22%;
  right: -22%;
  height: 0.7rem;
  z-index: 2;
  background:
    linear-gradient(
      180deg,
      #B0895A 0%,
      #8C6A3F 45%,
      #5c4529 100%
    );
  border-radius: 1px;
  box-shadow:
    0 -1px 0 rgba(232, 224, 212, 0.1),
    inset 0 1px 0 rgba(243, 237, 227, 0.15),
    inset 0 -1px 3px rgba(26, 25, 23, 0.4);
}

.stone-pillar__shaft {
  display: block;
  flex: 1 1 auto;
  width: var(--site-pillar-shaft);
  margin-top: 1rem;
  margin-bottom: 0.95rem;
  border-radius: 1px;
  background:
    /* Vertical fluting */
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 1px,
      rgba(26, 25, 23, 0.22) 1px,
      rgba(26, 25, 23, 0.22) 2px
    ),
    /* Cylindrical bronze shade (light outer edge, darker inward) */
    linear-gradient(
      90deg,
      rgba(232, 224, 212, 0.22) 0%,
      rgba(176, 137, 90, 0.55) 18%,
      rgba(140, 106, 63, 0.95) 48%,
      rgba(90, 70, 40, 0.95) 78%,
      rgba(44, 42, 38, 0.55) 100%
    ),
    linear-gradient(
      180deg,
      #A07848 0%,
      #8C6A3F 35%,
      #6F5332 70%,
      #5A4529 100%
    );
  box-shadow:
    inset 1px 0 0 rgba(232, 224, 212, 0.12),
    inset -2px 0 6px rgba(26, 25, 23, 0.35),
    0 0 18px rgba(26, 25, 23, 0.28);
}

/* Mirror shade on the right pair so outer edges read lighter (logo symmetry) */
.stone-pillar--right .stone-pillar__shaft {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 1px,
      rgba(26, 25, 23, 0.22) 1px,
      rgba(26, 25, 23, 0.22) 2px
    ),
    linear-gradient(
      90deg,
      rgba(44, 42, 38, 0.55) 0%,
      rgba(90, 70, 40, 0.95) 22%,
      rgba(140, 106, 63, 0.95) 52%,
      rgba(176, 137, 90, 0.55) 82%,
      rgba(232, 224, 212, 0.22) 100%
    ),
    linear-gradient(
      180deg,
      #A07848 0%,
      #8C6A3F 35%,
      #6F5332 70%,
      #5A4529 100%
    );
}

/* Thin bronze edge line against charcoal */
.stone-pillar--left {
  filter: drop-shadow(1px 0 0 rgba(140, 106, 63, 0.12));
}

.stone-pillar--right {
  filter: drop-shadow(-1px 0 0 rgba(140, 106, 63, 0.12));
}

/* Mid widths: slightly thinner so content breathes */
@media (min-width: 721px) and (max-width: 960px) {
  :root {
    --site-pillar-shaft: 0.62rem;
    --site-pillar-gap: 0.18rem;
    --site-pillar-inset: calc(var(--site-pillar-w) + 0.55rem);
  }

  .stone-pillar--left {
    left: 0.28rem;
  }

  .stone-pillar--right {
    right: 0.28rem;
  }
}

/* ——— Nav dropdown (Projects) ——— */
.nav-item--dropdown {
  position: relative;
}

/* Desktop: fill header height so the pointer never leaves the trigger
   before reaching the menu (avoids a dead band under the label). */
@media (min-width: 721px) {
  .nav-links {
    align-self: stretch;
    height: var(--header-h);
  }

  .nav-item--dropdown {
    display: flex;
    align-items: center;
    align-self: stretch;
  }

  .nav-dropdown {
    /* Slight overlap into the trigger row + top padding = continuous hover */
    top: calc(100% - 0.35rem);
  }
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-item--dropdown.is-active .nav-dropdown-toggle,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-caret {
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.75;
}

.nav-dropdown {
  position: absolute;
  /* Flush to trigger; visual offset via padding so hover never crosses a dead gap */
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 11.5rem;
  margin: 0;
  padding: 0.55rem 0 0.4rem;
  list-style: none;
  background: var(--bg-elevated);
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 120;
}

/* Invisible hover bridge above the menu panel (covers any residual gap under the nav row) */
.nav-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.nav-item--dropdown:hover > .nav-dropdown,
.nav-item--dropdown:focus-within > .nav-dropdown,
.nav-item--dropdown.is-open > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

/* ——— Interior page hero ——— */
.page-hero {
  padding: clamp(3rem, 8vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.page-hero-lede {
  margin: 0;
  max-width: 40rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

.section-more {
  margin: 2rem 0 0;
  font-weight: 600;
}

.section-more a {
  text-decoration: none;
  color: var(--accent-hover);
}

.section-more a:hover {
  color: var(--text);
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  color: var(--accent-hover);
}

.project-breadcrumb {
  margin: 0 0 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.project-breadcrumb a {
  text-decoration: none;
}

.project-facts-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.project-facts h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-facts h3:first-child {
  margin-top: 0;
}

.project-facts p {
  margin: 0;
  color: var(--text-muted);
}

.project-card-media--aside img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.project-actions--stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.project-actions--stack .btn {
  width: 100%;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: clamp(12rem, 28vw, 18rem);
  object-fit: cover;
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item--wide img {
  height: clamp(14rem, 36vw, 24rem);
}

.gallery-item figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* Docs list */
.docs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 36rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.docs-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
}

.docs-item:last-child {
  border-bottom: none;
}

.docs-label {
  font-weight: 600;
}

.docs-item--soon {
  opacity: 0.92;
}

.docs-item--soon .docs-label {
  color: var(--text-muted);
}

.docs-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.docs-link:hover .docs-label,
.docs-link:focus-visible .docs-label {
  color: var(--accent-hover);
}

.docs-meta {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.85rem 0 0;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.investors--cta {
  border-top: 1px solid var(--border-subtle);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid .value-card:last-child {
    grid-column: 1 / -1;
  }

  .project-facts-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--wide {
    grid-column: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 720px) {
  /* Stone pillars: hide on narrow screens — avoid crowding */
  .stone-pillars {
    display: none;
  }

  /* backdrop-filter on .site-header creates a containing block for
     position:fixed children — menu was clipped to ~header height (one row). */
  .site-header {
    overflow: visible;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(44, 42, 38, 0.98);
  }

  .nav-brand .nav-logo {
    height: 36px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.25rem 2rem;
    background: rgba(44, 42, 38, 0.97);
    border-top: 1px solid var(--border-subtle);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    max-height: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links a,
  .nav-dropdown-toggle {
    display: flex;
    width: 100%;
    padding: 0.95rem 0.25rem;
    font-size: 1.05rem;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    max-height: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 0 0.5rem 0.75rem;
    display: none;
  }

  .nav-item--dropdown {
    overflow: visible;
  }

  .nav-dropdown::before {
    display: none;
  }

  .nav-item--dropdown.is-open > .nav-dropdown,
  .nav-item--dropdown:focus-within > .nav-dropdown {
    display: block;
    transform: none;
  }

  .nav-item--dropdown:hover > .nav-dropdown {
    display: none;
  }

  .nav-item--dropdown.is-open:hover > .nav-dropdown,
  .nav-item--dropdown.is-open > .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    padding: 0.65rem 0.25rem;
    font-size: 0.98rem;
  }

  .nav-cta {
    margin-top: 0.75rem;
    justify-content: center;
  }

  .project-card--featured {
    grid-template-columns: 1fr;
  }

  .project-card-media img {
    height: clamp(14rem, 52vw, 22rem);
    min-height: 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .values-grid .value-card:last-child {
    grid-column: auto;
  }

}

@media (max-width: 420px) {

  .hero-actions .btn,
  .project-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.footer-disclaimer {
  margin: 0.75rem auto 0;
  max-width: 60rem;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--text-dim);
}
.investor-snapshot h3 { margin-bottom: 0.5rem; }
