/* ═══════════════════════════════════════════════
   BUILDING NINE — style.css  (Industrial Edition)
   ═══════════════════════════════════════════════ */

:root {
  --bone:        #EDE8DE;
  --bone-mid:    #D6D0C4;
  --bone-dark:   #A8A098;
  --black:       #0D0B09;
  --black-soft:  #1E1B17;

  --gold:        #A87E22;
  --gold-bright: #C9A247;
  --gold-light:  rgba(168, 126, 34, 0.12);

  --lilac:       #6B5F82;

  --nav-h: 76px;

  --font-display: 'Bebas Neue', sans-serif;
  --font-ui:      'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --stripe-size: 38px;
  --stripe-angle: -48deg;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--bone);
  color: var(--black);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────
   NAV — bone + black stripes, debossed text
───────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  overflow: hidden;
  transition: box-shadow 0.4s ease;
}

.nav-stripe-bg {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    var(--stripe-angle),
    var(--bone) 0px,
    var(--bone) calc(var(--stripe-size) * 0.52),
    var(--black) calc(var(--stripe-size) * 0.52),
    var(--black) var(--stripe-size)
  );
  box-shadow:
    inset 0 -2px 0 rgba(0,0,0,0.3),
    inset 0  1px 0 rgba(255,255,255,0.06);
}

.nav-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  background: linear-gradient(
    to right,
    rgba(13,11,9,0.2) 0%,
    transparent 12%,
    transparent 88%,
    rgba(13,11,9,0.2) 100%
  );
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: rgba(13,11,9,0.42);
  text-shadow:
    0  1px 1px rgba(255,255,255,0.6),
    0 -1px 1px rgba(0,0,0,0.7);
  transition: text-shadow 0.3s;
}
.nav-logo span { margin-left: 0.45em; }
.nav-logo:hover {
  text-shadow:
    0  2px 3px rgba(255,255,255,0.7),
    0 -1px 2px rgba(0,0,0,0.85);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
}

.nav-link {
  position: relative;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(13,11,9,0.38);
  text-shadow:
    0  1px 1px rgba(255,255,255,0.55),
    0 -1px 1px rgba(0,0,0,0.65);
  transition: text-shadow 0.25s, color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1px;
  background: rgba(13,11,9,0.4);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: rgba(13,11,9,0.65);
  text-shadow:
    0  1px 2px rgba(255,255,255,0.7),
    0 -1px 1px rgba(0,0,0,0.8);
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 4rem;
  padding-right: 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 55%, rgba(107,95,130,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 18% 35%, rgba(168,126,34,0.05) 0%, transparent 50%),
    var(--bone);
}

/* Blueprint grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,11,9,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,11,9,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-bg-glow { display: none; }

.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(.22,.68,0,1.2) 0.25s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(6rem, 12vw, 13rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 3rem;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(.22,.68,0,1.2) 0.4s forwards;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--bone-dark);
  max-width: 380px;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(.22,.68,0,1.2) 0.55s forwards;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone);
  background: var(--black);
  padding: 1.1rem 2.75rem;
  border: 2px solid var(--black);
  transition: background 0.3s, color 0.3s;
  opacity: 0;
  animation: slideUp 0.9s cubic-bezier(.22,.68,0,1.2) 0.7s forwards;
}
.btn-primary:hover {
  background: transparent;
  color: var(--black);
}

.hero-deco {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  animation: fadeIn 1.5s ease 1s forwards;
  flex-shrink: 0;
}

.deco-rule {
  width: 2px;
  height: 220px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold) 35%,
    var(--gold) 65%,
    transparent
  );
  opacity: 0.55;
}

.deco-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 9vw, 10rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
  color: rgba(13,11,9,0.06);
  user-select: none;
  pointer-events: none;
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}

/* ─────────────────────────────────────────
   SECTION LABEL (shared)
───────────────────────────────────────── */

.section-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5.5rem;
}

.label-text {
  font-family: var(--font-ui);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

.section-label::after {
  content: '';
  display: block;
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, rgba(13,11,9,0.15), transparent);
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */

.about {
  padding: 10rem 4rem;
  border-top: 2px solid rgba(13,11,9,0.08);
  position: relative;
  background: var(--bone);
}

/* Gold structural rail */
.about::before {
  content: '';
  position: absolute;
  left: 1.75rem;
  top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--gold) 20%,
    var(--gold) 80%,
    transparent
  );
  opacity: 0.45;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 7rem;
  align-items: start;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.04em;
  color: var(--black);
}

.about-title em {
  display: block;
  font-family: var(--font-ui);
  font-style: italic;
  font-weight: 300;
  color: var(--lilac);
}

.about-right p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.02em;
  color: rgba(13,11,9,0.6);
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 3.5rem;
  margin-top: 4.5rem;
  padding-top: 3rem;
  border-top: 2px solid rgba(13,11,9,0.08);
}

.stat { display: flex; flex-direction: column; gap: 0.5rem; }

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold);
}

.stat-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dark);
}

/* ─────────────────────────────────────────
   CONTACT — flipped to black background
───────────────────────────────────────── */

.contact {
  padding: 10rem 4rem;
  border-top: 2px solid rgba(13,11,9,0.08);
  position: relative;
  background: var(--black);
  overflow: hidden;
}

/* Ghost stripe texture on dark bg */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    var(--stripe-angle),
    transparent 0px,
    transparent calc(var(--stripe-size) * 0.88),
    rgba(255,255,255,0.016) calc(var(--stripe-size) * 0.88),
    rgba(255,255,255,0.016) var(--stripe-size)
  );
  pointer-events: none;
}

.contact-glow {
  position: absolute;
  top: -180px; left: -100px;
  width: 580px; height: 580px;
  background: radial-gradient(ellipse, rgba(168,126,34,0.07) 0%, transparent 65%);
  pointer-events: none;
}

/* Override label for dark bg */
.contact .label-text { color: var(--gold-bright); }
.contact .section-label::after {
  background: linear-gradient(to right, rgba(255,255,255,0.15), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 7rem;
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 5.8rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0.04em;
  color: var(--bone);
  margin-bottom: 3rem;
}

.contact-title em {
  display: block;
  font-family: var(--font-ui);
  font-style: italic;
  font-weight: 300;
  color: #9E90B8; /* lightened lilac for dark bg */
}

.contact-sub {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  line-height: 2.3;
  letter-spacing: 0.06em;
  color: var(--bone-dark);
  margin-bottom: 2rem;
}

.contact-sub a {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,162,71,0.3);
  transition: border-color 0.3s;
}
.contact-sub a:hover { border-color: var(--gold-bright); }

.contact-line {
  width: 48px; height: 2px;
  background: var(--gold);
  opacity: 0.5;
  margin-top: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.8rem; }

.form-group label {
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid rgba(168,126,34,0.4);
  color: var(--bone);
  padding: 1.05rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  outline: none;
  resize: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(214,208,196,0.2);
  font-weight: 200;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(201,162,71,0.4);
  border-bottom-color: var(--gold-bright);
  background: rgba(201,162,71,0.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--black);
  background: var(--gold-bright);
  border: 2px solid var(--gold-bright);
  padding: 1.05rem 2.5rem;
  transition: background 0.3s, color 0.3s, gap 0.3s;
}
.btn-submit:hover {
  background: transparent;
  color: var(--gold-bright);
  gap: 1.5rem;
}
.btn-arrow { font-size: 0.9rem; transition: transform 0.3s; }
.btn-submit:hover .btn-arrow { transform: translateX(4px); }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

.footer {
  padding: 2.75rem 4rem;
  background: var(--bone-mid);
  border-top: 2px solid rgba(13,11,9,0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(13,11,9,0.28);
}

.footer-dot {
  width: 4px; height: 4px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.footer-spacer { flex: 1; }

.footer-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(13,11,9,0.1);
}

/* ─────────────────────────────────────────
   ANIMATIONS & REVEAL
───────────────────────────────────────── */

@keyframes slideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  0.85s cubic-bezier(.22,.68,0,1.1),
    transform 0.85s cubic-bezier(.22,.68,0,1.1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  .nav-inner  { padding: 0 1.5rem; }
  .nav-links  { gap: 1.75rem; }
  .hero {
    padding: 0 1.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
  .hero-deco { display: none; }
  .about, .contact { padding: 7rem 1.5rem; }
  .about::before { left: 0.75rem; }
  .about-stats { flex-wrap: wrap; gap: 2rem; }
  .footer { padding: 2rem 1.5rem; }
}
