/* ================================================
   ANOTHER LEVEL AGENCY — Shared Stylesheet
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* --- Variables --- */
:root {
  --bg:        #07060A;
  --surface:   #0E0C10;
  --elevated:  #15131A;
  --hover:     #1C1A22;

  --gold:        #C4A46A;
  --gold-bright: #D4B47A;
  --gold-dim:    rgba(196, 164, 106, 0.10);
  --gold-border: rgba(196, 164, 106, 0.22);

  --cream:       #EDE7DC;
  --cream-dim:   rgba(237, 231, 220, 0.55);
  --muted:       #7A7068;
  --faint:       #332E2A;

  --border:        rgba(237, 231, 220, 0.07);
  --border-accent: rgba(196, 164, 106, 0.18);

  --nav-height: 80px;

  --font-display: 'Cormorant Garant', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.5s ease;
}
body.loaded { opacity: 1; }

/* Grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
  opacity: 0.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }
ul { list-style: none; }

/* --- Layout --- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 48px; }
.section { padding: 100px 0; }
.section--sm { padding: 60px 0; }
.section--lg { padding: 140px 0; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 200;
  transition: background 0.5s ease, border-color 0.5s ease;
}
.nav.scrolled {
  background: rgba(7, 6, 10, 0.90);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.nav__logo img {
  height: 28px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
}
.nav__links a {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease-expo);
}
.nav__links a:hover,
.nav__links a.active { color: var(--cream); }
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 0.6rem 1.5rem;
  transition: background 0.3s ease, transform 0.25s ease;
}
.nav__cta:hover { background: var(--gold-bright); transform: translateY(-1px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--cream);
  transition: all 0.35s ease;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 199;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 48px;
  gap: 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
  line-height: 1.1;
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav__cta {
  margin-top: 1rem;
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--gold);
  padding: 0.875rem 2rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 50%, rgba(196, 164, 106, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.page-header__eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  max-width: 750px;
  margin-bottom: 1.5rem;
}
.page-header__title em {
  font-style: italic;
  color: var(--gold);
}
.page-header__sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.75;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.0625rem 2.125rem;
  transition: all 0.35s var(--ease-expo);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn--primary { background: var(--gold); color: var(--bg); }
.btn--primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border-accent);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}
.btn__arrow {
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: width 0.35s ease;
  flex-shrink: 0;
}
.btn__arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3.5px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 28px; }

/* --- Section Labels --- */
.section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

/* --- Marquee --- */
.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.125rem 0;
  background: var(--surface);
}
.marquee-track {
  display: flex;
  gap: 2.5rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.marquee-item::after {
  content: '◆';
  color: var(--gold);
  font-size: 0.45rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Stats --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}
.stat-item {
  padding: 2.75rem 2.25rem;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.stat-item:last-child { border-right: none; }
.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.7s var(--ease-expo);
}
.stat-item:hover::after { width: 100%; }
.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 500;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-item__number .gold { color: var(--gold); }
.stat-item__label {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --- Service Cards --- */
.service-card {
  padding: 2.75rem 2.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-expo);
}
.service-card:hover { border-color: var(--border-accent); background: var(--elevated); }
.service-card:hover::before { transform: scaleX(1); }
.service-card__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--faint);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.service-card__icon {
  width: 44px; height: 44px;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.service-card__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: gap 0.3s ease;
}
.service-card:hover .service-card__link { gap: 1rem; }

/* --- Portfolio Cards --- */
.portfolio-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.portfolio-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-expo);
}
.portfolio-card:hover .portfolio-card__bg { transform: scale(1.04); }
.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,6,10,0.97) 35%, rgba(7,6,10,0.2) 75%, transparent 100%);
  transition: opacity 0.4s ease;
}
.portfolio-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 2rem 1.75rem;
}
.portfolio-card__tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.portfolio-card__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.125rem;
}
.portfolio-card__metrics {
  display: flex;
  gap: 1.75rem;
  transform: translateY(6px);
  opacity: 0;
  transition: all 0.45s var(--ease-expo);
}
.portfolio-card:hover .portfolio-card__metrics { opacity: 1; transform: translateY(0); }
.pm__val {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}
.pm__lbl {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 0.2rem;
}

/* --- Testimonials --- */
.testimonial-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
}
.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: 1rem; left: 1.75rem;
  line-height: 1;
  pointer-events: none;
}
.testimonial-card__body {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
  margin-bottom: 1.75rem;
  position: relative;
}
.testimonial-card__author { font-size: 0.875rem; font-weight: 500; color: var(--cream-dim); }
.testimonial-card__role {
  font-size: 0.75rem;
  color: var(--gold);
  margin-top: 0.3rem;
  letter-spacing: 0.06em;
}

/* --- CTA Section --- */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(196, 164, 106, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.cta-section__title em { font-style: italic; color: var(--gold); }
.cta-section__sub {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}
.cta-section__btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --- Process Steps --- */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-step:first-child { border-top: 1px solid var(--border); }
.process-step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--faint);
  line-height: 1;
  transition: color 0.4s ease;
}
.process-step:hover .process-step__num { color: var(--gold); }
.process-step__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.process-step__desc { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* --- Footer --- */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 70px 0 36px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer__brand { margin-bottom: 1.25rem; }
.footer__brand img { height: 32px; width: auto; display: block; opacity: 0.9; }
.footer__tagline { font-size: 0.875rem; color: var(--muted); line-height: 1.7; max-width: 220px; }
.footer__col-title { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links a { font-size: 0.875rem; color: var(--muted); transition: color 0.3s ease; }
.footer__links a:hover { color: var(--cream); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy { font-size: 0.75rem; color: var(--faint); }
.footer__social { display: flex; gap: 1.25rem; }
.footer__social a { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.3s ease; }
.footer__social a:hover { color: var(--gold); }

/* --- Divider Line --- */
.divider { width: 100%; height: 1px; background: var(--border); }

/* --- Form Styles --- */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.625rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  padding: 0.875rem 1.125rem;
  outline: none;
  transition: border-color 0.3s ease;
  appearance: none;
  border-radius: 0;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--gold); }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--faint); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7068' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.125rem center; }
.form-select option { background: var(--elevated); }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--cream);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  gap: 1rem;
}
.faq-toggle:hover { color: var(--gold); }
.faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  position: relative;
  color: var(--gold);
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.faq-icon::before { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.faq-icon::after { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.faq-item.open .faq-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-body {
  display: none;
  padding-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 680px;
}
.faq-item.open .faq-body { display: block; }

/* --- Tag Pills --- */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.75rem;
  background: var(--gold-dim);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .container--narrow { padding: 0 28px; }
  .nav__inner { padding: 0 28px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .section { padding: 80px 0; }
  .section--lg { padding: 100px 0; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .container { padding: 0 20px; }
  .container--narrow { padding: 0 20px; }
  .nav__inner { padding: 0 20px; }
  .mobile-nav { padding: 0 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .section--lg { padding: 80px 0; }
  .cta-section { padding: 80px 0; }
  .page-header { padding: calc(var(--nav-height) + 50px) 0 50px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-top: 1px solid var(--border); }
  .stat-item:first-child { border-top: none; }
  .process-step { grid-template-columns: 1fr; gap: 0.75rem; }
  .process-step__num { font-size: 2rem; }
}
