/* GLOBAL-HILL — DESIGN SYSTEM ============================================
   A holding of SteelHorn Holdings
   ====================================================================== */

:root {
  --void: #050505;
  --obsidian: #0b0b0c;
  --char: #131315;
  --steel: #1c1c1f;
  --bone: #e9e3d5;
  --bone-dim: #b8b1a3;
  --ash: #6f6c66;
  --silver: #c9c8c4;
  --silver-bright: #efeeea;
  --blood: #8a0c1a;
  --blood-deep: #5a0610;
  --ember: #c0162a;
  --line: rgba(201, 200, 196, 0.14);
  --line-strong: rgba(201, 200, 196, 0.32);

  --display: 'Cinzel', 'Trajan Pro', serif;
  --editorial: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --ui: 'Manrope', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1480px;
  --pad: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ui);
  background: var(--void);
  color: var(--bone);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blood); color: var(--silver-bright); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* GRAIN + ATMOSPHERE OVERLAYS */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.88  0 0 0 0 0.83  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none; z-index: 999; mix-blend-mode: overlay; opacity: 0.55;
}
body::after {
  content: ''; position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(138,12,26,0.04) 0%, transparent 30%, transparent 70%, rgba(138,12,26,0.05) 100%);
  pointer-events: none; z-index: 998;
}

/* CLASSIFIED BAR */
.classified-bar {
  background: var(--blood-deep); color: var(--silver-bright);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.32em;
  text-transform: uppercase;
  padding: 7px var(--pad);
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.4);
  position: relative; z-index: 50;
}
.classified-bar span { display: inline-flex; align-items: center; gap: 12px; }
.classified-bar .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--silver-bright);
  box-shadow: 0 0 10px var(--silver-bright);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.classified-bar .ticker { overflow: hidden; flex: 1; margin: 0 30px; max-width: 600px; opacity: .85; }
.classified-bar .ticker-track { display: inline-block; white-space: nowrap; animation: scroll 40s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 900px) { .classified-bar .ticker { display: none; } }
@media (max-width: 540px) {
  .classified-bar { font-size: 9px; letter-spacing: 0.22em; padding: 6px 14px; }
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,5,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { height: 46px; width: 46px; border-radius: 50%; border: 1px solid var(--line-strong); }
.nav-brand .lockup { display: flex; flex-direction: column; line-height: 1; }
.nav-brand .lockup .top {
  font-family: var(--display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.18em; color: var(--silver-bright);
}
.nav-brand .lockup .bottom {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.42em;
  color: var(--ash); margin-top: 6px; text-transform: uppercase;
}
.nav-menu { display: flex; align-items: center; gap: 38px; list-style: none; }
.nav-menu a {
  font-family: var(--ui); font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-dim); transition: color .3s; position: relative;
}
.nav-menu a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 1px; background: var(--ember);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--silver-bright); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--ui); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--silver-bright);
  padding: 12px 22px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(138,12,26,0.0) 0%, rgba(138,12,26,0.18) 100%);
  transition: all .3s; position: relative; overflow: hidden;
}
.nav-cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--blood);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.65,0,.35,1); z-index: -1;
}
.nav-cta:hover { border-color: var(--ember); }
.nav-cta:hover::before { transform: scaleY(1); }
.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; padding: 10px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { width: 26px; height: 1px; background: var(--silver-bright); transition: all .3s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .nav.open .mobile-drawer { transform: translateX(0); }
}
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 90vw); background: var(--obsidian);
  border-left: 1px solid var(--line-strong);
  transform: translateX(105%);
  transition: transform .5s cubic-bezier(.7,0,.3,1);
  padding: 100px 40px 40px;
  z-index: 90; display: flex; flex-direction: column; gap: 22px;
}
.mobile-drawer a {
  font-family: var(--display); font-size: 16px; letter-spacing: 0.16em;
  color: var(--bone); padding: 14px 0; border-bottom: 1px solid var(--line);
}
.mobile-drawer .nav-cta { display: inline-block; margin-top: 20px; }

/* SECTIONS */
section { position: relative; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section-pad { padding: clamp(80px, 12vh, 160px) 0; }
.section-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 60px; margin-bottom: 80px; padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 780px) {
  .section-head { flex-direction: column; gap: 30px; margin-bottom: 50px; }
}
.section-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.4em;
  color: var(--ember); flex-shrink: 0; padding-top: 12px;
}
.section-title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 5vw, 72px); line-height: 1;
  color: var(--silver-bright); flex: 1; max-width: 900px;
}
.section-title em { font-family: var(--editorial); font-style: italic; color: var(--ember); font-weight: 400; }

/* BUTTONS */
.btn {
  font-family: var(--ui); font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  padding: 18px 32px; transition: all .35s cubic-bezier(.65,0,.35,1);
  cursor: pointer; display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--line-strong); position: relative; overflow: hidden;
}
.btn-primary { background: var(--blood); color: var(--silver-bright); border-color: var(--blood); }
.btn-primary:hover {
  background: var(--ember); border-color: var(--ember);
  transform: translateY(-2px); box-shadow: 0 12px 30px rgba(138,12,26,0.3);
}
.btn-ghost { color: var(--silver-bright); background: transparent; }
.btn-ghost:hover { border-color: var(--silver-bright); background: rgba(255,255,255,0.04); }
.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width .3s; }
.btn .arrow::after {
  content: ''; position: absolute; right: 0; top: -3px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .arrow { width: 26px; }

/* FORM */
.field { margin-bottom: 26px; position: relative; }
.field label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ash);
  display: block; margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--line-strong); color: var(--bone);
  font-family: var(--ui); font-size: 15px; padding: 12px 0; transition: border-color .3s;
}
.field select {
  color: var(--bone); appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23c9c8c4'><path d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat; background-position: right 4px center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ember); }
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; gap: 0; } }

/* FOOTER */
footer { background: var(--obsidian); border-top: 1px solid var(--line); padding: 70px var(--pad) 30px; position: relative; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-brand img {
  height: 80px; width: 80px; margin-bottom: 24px;
  border: 1px solid var(--line-strong); border-radius: 50%;
}
.footer-brand p {
  font-family: var(--editorial); font-style: italic; font-size: 16px;
  color: var(--bone-dim); max-width: 380px; line-height: 1.55; margin-bottom: 22px;
}
.holding-stamp {
  display: inline-flex; align-items: center; gap: 12px;
  border: 1px solid var(--line-strong); padding: 10px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--silver);
}
.holding-stamp::before { content: ''; width: 18px; height: 1px; background: var(--ember); }
.holding-stamp strong { color: var(--silver-bright); font-weight: 500; letter-spacing: 0.12em; }
.footer-col h4 {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--ember); margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-family: var(--ui); font-size: 13.5px; color: var(--bone-dim); transition: color .25s;
}
.footer-col a:hover { color: var(--ember); }
.footer-bottom {
  max-width: var(--maxw); margin: 0 auto; padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ash); flex-wrap: wrap;
}
.footer-bottom span { color: var(--silver); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
