/* ============== TOKENS ============== */
:root {
  --bg: #0A0D14;
  --surface: #111827;
  --surface-2: #161e2e;
  --gold: #C9A84C;
  --gold-light: #E8D5A3;
  --text: #F5F0E8;
  --muted: #8A8FA0;
  --border: rgba(201, 168, 76, 0.2);
  --border-strong: rgba(201, 168, 76, 0.45);
  --shadow-gold: 0 10px 40px -10px rgba(201, 168, 76, 0.25);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ============== TYPOGRAPHY ============== */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 0; color: var(--text); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.accent { color: var(--gold); font-style: italic; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-primary {
  background: var(--gold);
  color: #0A0D14;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ============== HEADER ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 13, 20, 0.75);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10, 13, 20, 0.92); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 78px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  border-radius: 6px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand-sub { font-size: 0.65rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.primary-nav ul {
  display: flex; gap: 38px;
  list-style: none; margin: 0; padding: 0;
}
.primary-nav a {
  font-size: 0.92rem;
  color: var(--text);
  opacity: 0.85;
  position: relative;
  padding: 6px 0;
  transition: color .2s, opacity .2s;
}
.primary-nav a:hover { color: var(--gold); opacity: 1; }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .25s ease;
}
.primary-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 78px 0 auto 0;
  background: rgba(10, 13, 20, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.mobile-drawer.open { max-height: 80vh; }
.mobile-drawer nav { display: flex; flex-direction: column; padding: 24px var(--pad); gap: 4px; }
.mobile-drawer a {
  padding: 14px 8px;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer a.btn { margin-top: 14px; border-bottom: 1px solid var(--gold); }

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201, 168, 76, 0.10), transparent 50%),
    radial-gradient(ellipse at 85% 90%, rgba(201, 168, 76, 0.06), transparent 55%),
    linear-gradient(180deg, #0A0D14 0%, #0d1220 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: 1080px; }
.hero-title { margin-bottom: 28px; }
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 40px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 80px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: clamp(28px, 6vw, 80px);
  padding-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.hero-meta > div { display: flex; flex-direction: column; gap: 4px; }
.meta-num { font-family: var(--serif); font-size: 2rem; color: var(--gold); line-height: 1; }
.meta-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); }

/* ============== SECTIONS ============== */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #0A0D14 0%, #0c1019 50%, #0A0D14 100%); }
.section-alt::before, .section-alt::after {
  content: ''; position: absolute; left: 50%; transform: translateX(-50%);
  width: 80%; max-width: 1000px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }

.section-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
  margin-bottom: 18px;
}
.section-title { margin-bottom: 18px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* ============== ABOUT ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-copy p { font-size: 1.05rem; color: #d8d2c4; }
.divider {
  width: 60px; height: 2px; background: var(--gold);
  margin: 32px 0;
}
.about-quote {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.4;
  border-left: 2px solid var(--gold);
  padding-left: 22px;
}
.stat-stack { display: flex; flex-direction: column; gap: 18px; }
.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 30px;
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.04), transparent);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.stat-num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.95rem; font-weight: 500; color: var(--text); margin-top: 4px; }
.stat-desc { font-size: 0.9rem; color: var(--muted); }

/* ============== CAPABILITIES ============== */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.capability-card {
  position: relative;
  padding: 36px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform .3s, border-color .3s, box-shadow .3s, background .3s;
}
.capability-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.06), var(--surface) 60%);
}
.cap-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--gold);
  margin-bottom: 22px;
}
.cap-icon svg { width: 22px; height: 22px; }
.capability-card h3 { margin-bottom: 10px; }
.capability-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ============== PORTFOLIO ============== */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.brand-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.brand-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 30px 60px -25px rgba(201, 168, 76, 0.3); }
.brand-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background:
    linear-gradient(135deg, #1a2235, #0d1220);
}
.brand-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.brand-card:hover .brand-media img { transform: scale(1.05); }
.brand-media-logo {
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(201, 168, 76, 0.10), transparent 65%),
    linear-gradient(135deg, #161e2e, #0a0d14);
  padding: 36px;
}
.brand-media-logo img.media-logo {
  width: auto;
  height: auto;
  max-width: 60%;
  max-height: 72%;
  object-fit: contain;
  transition: transform .5s ease;
}
.brand-card:hover .brand-media-logo img.media-logo { transform: scale(1.06); }
.media-logo-invert { filter: invert(1) brightness(1.05); }
.media-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 22px;
  background: linear-gradient(0deg, rgba(10,13,20,0.95), transparent);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.brand-card:hover .media-overlay { opacity: 1; transform: translateY(0); }

.brand-body { padding: 32px 30px; display: flex; flex-direction: column; flex: 1; }
.brand-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 16px; }
.brand-logo {
  max-height: 48px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.brand-logo-invert { filter: invert(1) brightness(1.05); }
.brand-logo-square {
  max-height: 56px;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
}
.brand-title { font-size: 1.8rem; margin-bottom: 10px; }
.brand-index { font-family: var(--serif); color: var(--gold); font-size: 1rem; letter-spacing: 0.1em; }
.brand-desc { color: var(--muted); margin-bottom: 22px; }
.brand-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.brand-tags span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold-light);
}
.brand-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, gap .25s;
}
.brand-link svg { width: 16px; height: 16px; }
.brand-link:hover { border-bottom-color: var(--gold); gap: 14px; }
.portfolio-foot { text-align: center; margin-top: 56px; color: var(--muted); }
.portfolio-foot a { color: var(--gold); }

/* ============== CONTACT ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field:nth-child(3), .field:nth-child(4), .contact-form > button, .form-status { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color .25s, box-shadow .25s, background .25s;
  font-family: inherit;
  width: 100%;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
  background: var(--surface-2);
}
.contact-form > button { justify-self: start; margin-top: 8px; }
.form-status { font-size: 0.9rem; color: var(--gold); min-height: 1.2em; margin: 0; }

.contact-info {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: linear-gradient(160deg, rgba(201, 168, 76, 0.05), transparent);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.info-block { display: flex; flex-direction: column; gap: 6px; }
.info-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted); }
.info-value { color: var(--text); font-size: 1.05rem; }
a.info-value:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 4px; }
.social {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  transition: color .25s, border-color .25s, transform .25s;
}
.social svg { width: 16px; height: 16px; }
.social:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.info-foot { padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.info-foot p { margin: 0; }

/* ============== FOOTER ============== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #07090f;
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-tag { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-h { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 6px; }
.footer-col a { font-size: 0.95rem; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============== REVEAL ANIMATIONS ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .primary-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .about-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .field:nth-child(3), .field:nth-child(4) { grid-column: auto; }
}
@media (max-width: 600px) {
  .capability-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero { min-height: auto; padding: 60px 0 80px; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .meta-num { font-size: 1.5rem; }
}
@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-meta { gap: 18px; }
}
