/* =========================================================
   AronDigital — Shared Styles (Dark Editorial Redesign)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  --bg:          #0f1a2e;
  --bg-alt:      #162747;
  --fg:          #f5ead9;
  --fg-soft:     #c9b9a0;
  --muted:       #7d8ba6;
  --line:        #253759;
  --accent:      #e56a2c;
  --accent-ink:  #ffffff;
  --card:        #1a2a47;

  --f-serif: 'Instrument Serif', Georgia, serif;
  --f-sans:  'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 1360px;
  --pad:  clamp(20px, 4vw, 64px);
  --r:    999px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
em { font-style: italic; font-family: var(--f-serif); font-weight: 400; }
img { max-width: 100%; display: block; }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14,27,46,1);
  border-bottom: 1px solid rgba(200,120,42,0.18);
  transition: background .3s ease, backdrop-filter .3s ease;
}
.nav--scrolled {
  background: rgba(14,27,46,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__inner {
  height: 72px;
  display: flex; align-items: center;
}

/* ─── Color Block Logo Zone ──────────────────────────────── */
.nav__logo-block {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  height: 100%; flex-shrink: 0;
  background: #e2dcd0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 28px) 100%, 0 100%);
  padding-left: 22px;
  padding-right: 52px;
  text-decoration: none;
  transition: opacity .3s ease;
}
.nav--scrolled .nav__logo-block { opacity: 0.92; }
.nav__mark {
  height: 68px; width: 68px;
  display: block; object-fit: contain;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.nav__logo-block:hover .nav__mark { transform: scale(1.04); }
.nav__logo-accent {
  position: absolute; top: 0; bottom: 0; right: 0; width: 28px;
  pointer-events: none;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 1px),
    #c8782a calc(50% - 1px),
    #c8782a calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.nav__gap { width: 20px; flex-shrink: 0; }
.nav__wordmark {
  font-family: 'Jost', sans-serif;
  font-weight: 500; font-size: 19px; letter-spacing: 0.03em;
  color: #fff; line-height: 1; flex-shrink: 0;
  text-decoration: none;
}
.nav__wordmark span { color: #c8782a; font-weight: 400; }
.nav__spacer { flex: 1; }
.nav__links {
  list-style: none; display: flex; align-items: center; gap: 2px;
  margin-right: 24px;
}
.nav__links a {
  display: block;
  padding: 8px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color .2s ease; border-radius: 6px;
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 20px; border-radius: 999px;
  background: #e8e2d4; color: #0e1b2e;
  font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
  transition: filter .2s, transform .2s;
  flex-shrink: 0; margin-right: 24px;
}
.nav__cta:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav__cta .cta-arrow { font-size: 11px; opacity: 0.7; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; margin-right: 16px; background: none; border: none; cursor: pointer;
}
.nav__burger span {
  width: 20px; height: 1.5px; background: rgba(255,255,255,0.7); display: block; border-radius: 999px;
  transition: transform .3s ease, opacity .2s ease;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Mobile Drawer ──────────────────────────────────────── */
.nav__mobile {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  border-top: 1px solid rgba(200,120,42,0.12);
}
.nav__mobile.open { max-height: 320px; }
.nav__mobile-inner {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 24px 24px;
}
.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-family: 'Jost', sans-serif;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color .2s;
}
.nav__mobile a:last-of-type { border-bottom: none; }
.nav__mobile a:hover { color: #fff; }
.nav__mobile-cta {
  display: block; margin-top: 16px; text-align: center;
  padding: 12px 20px; border-radius: 999px;
  background: #e8e2d4; color: #0e1b2e !important;
  font-family: 'Jost', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.05em;
  border-bottom: none !important;
}

/* ─── Keyframes ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(229,106,44,.55); }
  70%  { box-shadow: 0 0 0 10px rgba(229,106,44,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,106,44,0); }
}
@keyframes rise {
  from { transform: translateY(110%); }
  to   { transform: translateY(0); }
}
@keyframes marq { to { transform: translateX(-50%); } }
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: .3; }
}

/* ─── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Pulse dot ──────────────────────────────────────────── */
.pulse {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
  animation: pulse-ring 2s infinite;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r);
  font-size: 15px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px) !important; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-2px); }
.btn--ghost  { border-color: var(--line); color: var(--fg); }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* ─── Section Generic ────────────────────────────────────── */
.section {
  padding: clamp(80px, 12vw, 140px) var(--pad);
}
.section-inner {
  max-width: var(--maxw); margin: 0 auto;
}
.section--dark  { background: var(--fg); color: var(--bg); }
.section--alt   { background: var(--bg-alt); }
.section--card  { background: var(--card); }

.section__kicker {
  display: inline-block;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
  margin-bottom: 28px; min-width: 160px;
}
.section--dark .section__kicker { border-color: rgba(15,26,46,.15); }

.section__title {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(42px, 6vw, 80px); line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 24px;
  text-wrap: balance;
}
.section--dark .section__title,
.section--dark .section__title em { color: var(--bg); }

.section__sub {
  font-size: clamp(16px, 1.3vw, 19px); color: var(--fg-soft);
  max-width: 640px; text-wrap: pretty;
}
.section--dark .section__sub { color: rgba(15,26,46,.6); }
.section__head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}

/* ── Split body ───────────────────────────────────────────── */
.footer-split {
  display: flex;
  min-height: 400px;
  position: relative;
}

/* Left panel — cream with diagonal right edge */
.footer__left {
  background: #f0e4d0;
  flex-shrink: 0;
  width: 38%;
  padding: clamp(44px, 5vw, 64px) clamp(36px, 5vw, 72px);
  padding-right: clamp(60px, 8vw, 120px);
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
  position: relative; z-index: 1;
}
.footer__mark { width: 160px; height: auto; display: block; }
.footer__tagline {
  font-family: var(--f-serif); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1;
  letter-spacing: -0.02em; color: #1a0f05;
}
.footer__tagline em { color: var(--accent); }

/* Right panel — dark */
.footer__right {
  flex: 1;
  background: var(--bg);
  padding: clamp(36px, 4vw, 48px) clamp(36px, 5vw, 64px);
  padding-left: clamp(48px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 32px;
}
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__col-label {
  display: block; font-family: var(--f-mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14px; color: var(--fg-soft); transition: color .2s; }
.footer__col a:hover { color: var(--fg); }
.footer__col li { font-size: 14px; color: var(--fg-soft); }

/* Bottom bar */
.footer__legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
  font-family: var(--f-mono); letter-spacing: .05em; text-transform: uppercase;
}
.footer__socials { display: flex; gap: 24px; }
.footer__socials a { color: var(--muted); transition: color .2s; }
.footer__socials a:hover { color: var(--fg); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 840px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .footer-split { grid-template-columns: 1fr; }
  .footer__right { border-left: none; border-top: 1px solid var(--line); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__legal { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 500px) {
  .footer__cols { grid-template-columns: 1fr; }
}
