/* ═══════════════════════════════════════════════════════════════════
   areebacreates.com — Global Stylesheet
   Editorial design system. All pages share this file.
═══════════════════════════════════════════════════════════════════ */

/* ───────────────────── Reset & Variables ───────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

:root {
  /* Color palette */
  --cream: #F4EFE6;
  --paper: #FAF6EE;
  --ink: #0F1729;
  --ink-soft: #2A3142;
  --muted: #6B6558;
  --line: #D9D1C0;
  --line-soft: #E8E2D2;
  --blue: #1A56DB;
  --blue-deep: #0D3FA8;
  --blue-light: #6CA0FF;
  --teal: #0F6E56;
  --amber: #C2410C;

  /* Typography */
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max: 1400px;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--blue); color: #fff; }

/* ───────────────────── Grain Texture ───────────────────── */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.06 0 0 0 0 0.09 0 0 0 0 0.16 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.45;
}

/* ───────────────────── Custom Cursor ───────────────────── */
@media (hover: hover) {
  .cursor-dot {
    position: fixed; width: 8px; height: 8px; background: var(--blue);
    border-radius: 50%; pointer-events: none; z-index: 9999;
    transform: translate(-50%, -50%); transition: transform 0.15s ease, opacity 0.2s ease;
    mix-blend-mode: difference; opacity: 0;
  }
  .cursor-dot.active { opacity: 1; }
  .cursor-dot.hover { transform: translate(-50%, -50%) scale(4); }
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 40px; display: flex; justify-content: space-between; align-items: center;
  background: rgba(250,246,238,0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s;
}
.nav.dark {
  background: rgba(15,23,41,0.92); color: var(--paper);
}
.nav.scrolled { padding: 16px 40px; border-color: var(--line-soft); }
.nav.dark.scrolled { border-color: rgba(255,255,255,0.1); }

.nav-logo {
  font-family: var(--serif); font-weight: 500; font-size: 22px;
  letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 6px;
}
.nav-logo em { font-style: italic; font-weight: 400; }
.nav-logo .dot { color: var(--blue); }

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  letter-spacing: 0.02em; padding: 6px 0; position: relative;
  transition: opacity 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--blue); transform: scaleX(0);
  transition: transform 0.3s; transform-origin: right;
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-links a.active { color: var(--blue); }

.nav-cta {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid currentColor; padding: 10px 18px; border-radius: 999px;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav.dark .nav-cta:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.nav-toggle {
  display: none; width: 32px; height: 32px;
  background: none; border: none; padding: 0;
  flex-direction: column; justify-content: center; gap: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor; transition: transform 0.3s;
}
.nav-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav.scrolled { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; padding: 60px 40px;
    gap: 32px; align-items: flex-start;
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  .nav.dark .nav-links { background: var(--ink); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-family: var(--serif); font-size: 32px; font-weight: 300; }
  .nav-cta { font-size: 11px; padding: 8px 16px; }
}

/* ═══════════════════════════════════════════════════════════════════
   FOUNDATIONAL ELEMENTS
═══════════════════════════════════════════════════════════════════ */
section { position: relative; z-index: 2; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

.section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 48px;
}
.section-label::before {
  content: ''; width: 32px; height: 1px; background: currentColor;
}
.dark .section-label, .pillars .section-label, .magnet .section-label {
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section-label { margin-bottom: 32px; }
}

/* ───────────────────── Buttons ───────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em; padding: 16px 28px; border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  border: 1px solid transparent; cursor: pointer; text-transform: uppercase;
}
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn-dark:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.3); color: var(--paper); background: transparent; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-light-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-arrow { width: 18px; height: 18px; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ───────────────────── Page Header (used on inner pages) ───────────────────── */
.page-header {
  background: var(--ink); color: var(--paper);
  padding: 180px 0 120px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(26,86,219,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(15,110,86,0.10) 0%, transparent 40%);
  pointer-events: none;
}
.page-header-grid {
  position: absolute; inset: 0; opacity: 0.04; pointer-events: none;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 80px 80px;
}
.page-header .container { position: relative; z-index: 2; }
.page-breadcrumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.5; margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.page-breadcrumb::before {
  content: ''; width: 32px; height: 1px; background: currentColor;
}
.page-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(56px, 11vw, 144px); line-height: 0.92;
  letter-spacing: -0.04em; margin-bottom: 32px;
  font-variation-settings: "opsz" 144;
}
.page-title em { font-style: italic; font-weight: 400; }
.page-title .blue { color: var(--blue-light); }
.page-subtitle {
  font-family: var(--serif); font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 300; font-style: italic; line-height: 1.4;
  max-width: 720px; opacity: 0.85;
}

@media (max-width: 768px) {
  .page-header { padding: 120px 0 70px; }
}

/* ───────────────────── Marquee ───────────────────── */
.marquee {
  background: var(--ink); color: var(--paper);
  padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow: hidden; white-space: nowrap;
}
.marquee-track {
  display: inline-flex; gap: 60px; animation: scroll 40s linear infinite;
  font-family: var(--serif); font-size: 28px; font-weight: 400;
  font-style: italic; letter-spacing: -0.02em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee-track span::after {
  content: '✦'; font-style: normal; color: var(--blue);
  font-size: 18px; opacity: 0.7;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink); color: var(--paper); padding: 100px 0 40px;
  position: relative; z-index: 2;
}
.footer-cta {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 60px; max-width: 900px;
}
.footer-cta em { font-weight: 500; color: var(--blue-light); }
.footer-cta-row {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 100px;
}
.footer-divider {
  height: 1px; background: rgba(255,255,255,0.1); margin-bottom: 60px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 36px; letter-spacing: -0.02em; margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6);
  max-width: 320px; margin-bottom: 24px;
}
.footer-roles {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
}
.footer-col-title {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14px; color: rgba(255,255,255,0.8);
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  padding-top: 40px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.05em;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--blue-light); }

@media (max-width: 768px) {
  .footer { padding: 70px 0 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* ───────────────────── Reveal Animation ───────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s, transform 0.9s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════
   COMMON CONTENT BLOCKS — used across pages
═══════════════════════════════════════════════════════════════════ */

/* Two-column content blocks */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 80px;
  padding: 100px 0; align-items: start;
}
.split.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 24px;
}
.split-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px); line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.split-title em { font-style: italic; color: var(--blue); }
.split-body {
  font-size: 17px; line-height: 1.7; color: var(--ink-soft);
}
.split-body p + p { margin-top: 16px; }
.split-body strong { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 32px; padding: 60px 0; }
}

/* Section heading (large display) */
.section-display {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(40px, 6vw, 88px); line-height: 0.95;
  letter-spacing: -0.03em; margin-bottom: 60px;
}
.section-display em { font-weight: 500; font-style: italic; }

/* Stat numbers */
.stat-num {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(56px, 7vw, 96px); line-height: 1;
  letter-spacing: -0.03em; color: var(--blue);
  display: block; margin-bottom: 12px;
  font-variation-settings: "opsz" 144;
}
.stat-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--muted);
}

/* Numbered list rows */
.thing-row {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 60px;
  padding: 80px 0; border-top: 1px solid var(--line);
  align-items: start;
}
.thing-row:last-child { border-bottom: 1px solid var(--line); }
.thing-num {
  font-family: var(--serif); font-size: 96px; font-weight: 300;
  font-style: italic; line-height: 1; color: var(--blue);
  font-variation-settings: "opsz" 144;
}
.thing-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px); line-height: 1.15;
  letter-spacing: -0.02em;
}
.thing-title em { font-style: italic; color: var(--blue); }
.thing-body { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }
.thing-body p + p { margin-top: 16px; }
.thing-body strong { font-weight: 500; color: var(--ink); }

@media (max-width: 900px) {
  .thing-row { grid-template-columns: 1fr; gap: 24px; padding: 50px 0; }
  .thing-num { font-size: 60px; }
}
