/* ============================================================
   TNT — layout.css
   Nav · hero · stat strip · sections · facility · footer
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.82);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-word { display: flex; flex-direction: column; line-height: 1.2; }
.nav-word strong {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
}
.nav-word em {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--silver-dim);
}

.nav-links {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--silver);
  padding: 6px 2px;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px; height: 38px;
  border: 1px solid var(--line-soft);
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--silver);
  transition: transform 0.35s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 99;
  background: rgba(8, 8, 8, 0.97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 10px var(--gutter) 26px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--silver);
  padding: 15px 0;
  border-bottom: 1px solid var(--line-soft);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--gold); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 110px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.55) brightness(0.72) contrast(1.05);
}

/* navy grade */
.hero-grade {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.78) 0%, rgba(8, 8, 8, 0.42) 50%, rgba(8, 8, 8, 0.78) 100%),
    linear-gradient(180deg, rgba(8, 8, 8, 0.75) 0%, rgba(8, 8, 8, 0.28) 45%, var(--navy-900) 97%);
}

/* blueprint grid + grain */
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(192, 198, 206, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 198, 206, 0.045) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 72px 72px, 72px 72px, 140px 140px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 88%, transparent 100%);
}

/* slow scan line */
.hero-scan {
  position: absolute;
  left: 0; right: 0; top: -12%;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.045) 46%, rgba(212, 175, 55, 0.11) 50%, rgba(212, 175, 55, 0.045) 54%, transparent);
  animation: scan 11s linear infinite;
  opacity: 0.8;
}
@keyframes scan {
  0%   { transform: translateY(-20vh); }
  100% { transform: translateY(130vh); }
}

/* corner ticks — scope frame */
.hero-frame { position: absolute; inset: 0; pointer-events: none; }
.hf-tick {
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid rgba(212, 175, 55, 0.5);
}
.hf-tick.tl { top: calc(var(--nav-h) + 18px); left: 26px;  border-right: 0; border-bottom: 0; }
.hf-tick.tr { top: calc(var(--nav-h) + 18px); right: 26px; border-left: 0;  border-bottom: 0; }
.hf-tick.bl { bottom: 74px; left: 26px;  border-right: 0; border-top: 0; }
.hf-tick.br { bottom: 74px; right: 26px; border-left: 0;  border-top: 0; }

.hero-content { max-width: var(--max-w); margin: 0 auto; width: 100%; text-align: center; }

.hero-title {
  font-size: clamp(2.3rem, 5.9vw, 5.3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.015em;
  margin: 26px auto;
  max-width: 14ch;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 0 0 44px rgba(212, 175, 55, 0.35);
}

.hero-tag {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.3vw, 2.05rem);
  letter-spacing: 0.24em;
  color: var(--gold);
  margin: -4px 0 20px;
  text-shadow: 0 0 26px rgba(212, 175, 55, 0.35);
}

.hero-sub {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  color: var(--silver);
  max-width: 52ch;
  margin: 0 auto 44px;
  font-weight: 400;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- STAT STRIP ---------- */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(90% 160% at 50% -40%, rgba(212, 175, 55, 0.05), transparent 60%),
    var(--navy-800);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 42px 26px;
  text-align: center;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; }
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-num i {
  font-style: normal;
  font-size: 0.5em;
  color: var(--silver-dim);
  margin: 0 2px;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 15.5px;
  letter-spacing: 0.3em;
  color: var(--silver-dim);
}

/* ---------- SECTIONS ---------- */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(90px, 11vw, 150px) var(--gutter) 0;
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: clamp(44px, 5.5vw, 68px);
}
.sec-idx {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--gold);
  letter-spacing: 0.2em;
}
.sec-head h2 {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.sec-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-soft), transparent);
  align-self: center;
}
.sec-tag {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.26em;
  color: var(--silver-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sec-tag-gold { color: var(--gold); }
.pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ---------- FACILITY ---------- */
.fac-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.fac-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--panel);
}
.fac-grid .fac-item { grid-column: span 6; aspect-ratio: 16 / 10; }

.fac-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.72) brightness(0.88) contrast(1.02);
  transition: filter 0.7s var(--ease-out), transform 1.4s var(--ease-out);
}
.fac-item:hover img {
  filter: saturate(0.9) brightness(1) contrast(1.04);
  transform: scale(1.035);
}
.fac-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 6, 6, 0.85) 100%);
  pointer-events: none;
}
.fac-item figcaption {
  position: absolute;
  left: 14px; bottom: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(6, 6, 6, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-soft);
  padding: 8px 14px;
}
.fac-link > a { display: block; cursor: pointer; }
.fac-link:hover figcaption {
  color: var(--gold);
  border-color: var(--gold-line);
}
.fac-item figcaption span {
  color: var(--gold);
  padding-right: 12px;
  border-right: 1px solid var(--gold-line);
}

/* ---------- SKYLINE PAGE BACKGROUND + BRANDMARK ---------- */
.skyline {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../img/dallas-skyline.jpg') center 62% / cover no-repeat;
  pointer-events: none;
}
.skyline::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--navy-900) 0%, rgba(10, 10, 10, 0.42) 16%, rgba(10, 10, 10, 0.52) 55%, rgba(6, 6, 6, 0.7) 100%);
}

.brandmark {
  padding: clamp(90px, 11vw, 150px) var(--gutter) 0;
}
.brandmark-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  border: 1px solid var(--gold-line);
  background: var(--navy-950);
  box-shadow: 0 34px 90px rgba(3, 7, 15, 0.55), 0 0 60px rgba(212, 175, 55, 0.06);
}
.brand-logo { min-height: 100%; }
.brand-logo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
}
.brand-contact {
  border-left: 1px solid var(--gold-line);
  padding: clamp(34px, 4.5vw, 62px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(212, 175, 55, 0.06), transparent 60%);
}
.bc-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}
.bc-label .tick {
  flex-shrink: 0;
  width: 30px; height: 1px;
  background: var(--gold);
}
.bc-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.bc-rows { display: flex; flex-direction: column; }
.bc-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.bc-row dt {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--silver-dim);
}
.bc-row dd {
  font-family: var(--font-body);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--white);
}
.bc-row dd a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 2px;
  transition: text-shadow 0.3s, border-color 0.3s;
}
.bc-row dd a:hover {
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.5);
  border-color: var(--gold);
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: clamp(90px, 11vw, 150px);
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(60% 120% at 50% 140%, rgba(212, 175, 55, 0.06), transparent 70%),
    var(--navy-950);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; }
.footer-brand p {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.1em;
  line-height: 1.75;
}
.footer-brand p span {
  font-weight: 500;
  color: var(--silver-dim);
  font-size: 13.5px;
  letter-spacing: 0.18em;
}
.footer-meta { text-align: right; }
.footer-mail {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-line);
  padding-bottom: 4px;
  margin-bottom: 14px;
  transition: text-shadow 0.3s, border-color 0.3s;
}
.footer-mail:hover { text-shadow: 0 0 18px rgba(212, 175, 55, 0.5); border-color: var(--gold); }
.footer-copy {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .fac-grid .fac-item { grid-column: span 12; aspect-ratio: 16 / 10; }
}

@media (max-width: 1150px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .brandmark-inner { grid-template-columns: 1fr; }
  .brand-logo img { height: auto; }
  .brand-contact { border-left: 0; border-top: 1px solid var(--gold-line); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .sec-head { flex-wrap: wrap; gap: 12px 18px; }
  .sec-rule { flex-basis: 100%; order: 4; }
  .hf-tick { display: none; }
}

@media (max-width: 620px) {
  .nav-word em { display: none; }
  .nav-word strong { font-size: 17px; }
  .mobile-menu a { font-size: 15px; padding: 13px 0; }
  .fac-grid .fac-item { grid-column: span 12; }
  .fac-item { aspect-ratio: auto; display: flex; flex-direction: column; }
  .fac-item img { height: auto; aspect-ratio: 16 / 10; }
  .fac-item::after { display: none; }
  .fac-item figcaption {
    position: static;
    font-size: 10px; letter-spacing: 0.1em;
    padding: 8px 10px; gap: 8px;
    white-space: nowrap; overflow: hidden;
    border: 0; border-top: 1px solid var(--line-soft);
    background: var(--navy-950);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 34px); padding-bottom: 52px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .eyebrow { flex-wrap: wrap; justify-content: flex-start; row-gap: 12px; letter-spacing: 0.1em; }
  .eyebrow-brand { gap: 14px; }
  .eyebrow-brand .eb-text { font-size: 1rem; white-space: normal; }
  .hero-title { font-size: clamp(1.8rem, 8.6vw, 2.3rem); }
  .hero-tag { font-size: 1.02rem; letter-spacing: 0.16em; margin-bottom: 14px; }
  .hero-sub { font-size: 1rem; margin-bottom: 30px; }
  .stat { padding: 15px 8px; }
  .stat-num { font-size: 1.3rem; }
  .stat-label { font-size: 9.5px; letter-spacing: 0.1em; margin-top: 6px; }
  .section { padding-top: 64px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2 { font-size: 1.4rem; }
  .sec-idx { font-size: 12px; }
  .sec-tag { font-size: 11px; letter-spacing: 0.16em; }
  .brandmark { padding-top: 64px; }
  .brand-contact { padding: 24px 18px; }
  .bc-label { font-size: 11px; }
  .bc-title { font-size: 1.35rem; margin-bottom: 16px; }
  .bc-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .bc-row dt { font-size: 11px; }
  .bc-row dd { font-size: 14px; }
  .bc-row dd a, .footer-mail { font-size: 12px; overflow-wrap: anywhere; }
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 40px var(--gutter); }
  .footer-brand p { font-size: 14px; }
  .footer-brand p span { font-size: 11px; }
  .footer-mail { font-size: 14px; }
  .footer-copy { font-size: 11.5px; }
  .footer-meta { text-align: left; }
}
