/* ============================================================
   UXENTRIC STUDIO v2 — Beige / Amber / Bold-Black Direction
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Black&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Tokens ─────────────────────────────────────────── */
:root {
  --cream:     #f3ece0;          /* page bg — warm light beige */
  --cream-2:   #ebe3d3;          /* deeper beige panel */
  --cream-3:   #e0d5bf;          /* divider beige */
  --paper:     #faf6ec;          /* lighter card */

  --ink:       #15120e;          /* near-black warm */
  --ink-2:     #4a423a;          /* secondary text */
  --ink-3:     #807668;          /* muted */
  --line:      #d8cdb5;          /* warm border */

  --amber:     #f0b54a;          /* primary accent — warm yellow */
  --amber-2:   #e09a2e;          /* deeper amber */
  --forest:    #2f4a2b;          /* secondary accent — deep green */
  --rust:      #b04a2a;          /* tertiary accent — terracotta */

  --r-sm:      4px;
  --r-md:      8px;
  --r-lg:      18px;
  --r-xl:      28px;

  --font-display: 'Archivo', 'Archivo Black', 'Helvetica Neue', sans-serif;
  --fw-display: 900;
  --font-body:    'Archivo', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --max:       1320px;
  --nav-h:     76px;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ─── Containers ─────────────────────────────────────── */
.container {
  max-width: var(--max); margin: 0 auto; padding: 0 32px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ─── Nav ────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 24px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  font-size: 1.35rem; letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink); white-space: nowrap;
}
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--amber);
  font-family: var(--font-display); font-weight: var(--fw-display);
  font-size: 0.9rem;
  letter-spacing: 0; padding-top: 1px;
}

.nav-links {
  display: flex; gap: 6px; list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 9px 16px; border-radius: var(--r-sm);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--cream-2); color: var(--ink); }
.nav-links a.active { background: var(--cream-2); color: var(--ink); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 20px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm);
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta::after {
  content: ''; width: 14px; height: 14px;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; height: 20px; justify-content: center;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 20px 24px 28px; z-index: 99;
  flex-direction: column; gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink);
  padding: 14px 8px; border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile .nav-cta { margin-top: 14px; justify-content: center; }

/* ─── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-display);
  line-height: 0.94; letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display-xl {
  font-size: clamp(2.8rem, 6.7vw, 6.2rem);
  line-height: 0.92; letter-spacing: -0.025em;
}
.display-lg {
  font-size: clamp(2.3rem, 5.7vw, 4.75rem);
  line-height: 0.94; letter-spacing: -0.02em;
}
.display-md {
  font-size: clamp(1.8rem, 3.7vw, 2.8rem);
  line-height: 0.96; letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow.amber { color: var(--amber-2); }

.body-lg { font-size: 1.05rem; color: var(--ink-2); line-height: 1.65; }
.body { font-size: 0.96rem; color: var(--ink-2); line-height: 1.65; }
.body-sm { font-size: 0.85rem; color: var(--ink-3); line-height: 1.6; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--ink-3); text-transform: uppercase;
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 16px 24px;
  border-radius: var(--r-sm);
  transition: background 0.2s, transform 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary::after {
  content: ''; width: 14px; height: 14px;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
}
.btn-primary:hover { background: #000; transform: translateY(-1px); }

.btn-outline {
  background: transparent; border-color: var(--ink); color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-amber {
  background: var(--amber); color: var(--ink);
}
.btn-amber::after {
  content: ''; width: 14px; height: 14px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
}
.btn-amber:hover { background: var(--amber-2); transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink); padding: 16px 0;
}
.btn-ghost::after {
  content: ''; width: 14px; height: 14px;
  background: var(--ink);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5'><path d='M7 17l10-10M9 7h8v8'/></svg>") center/contain no-repeat;
}
.btn-ghost:hover { color: var(--amber-2); }

/* ─── Image slots (default styling) ──────────────────── */
image-slot {
  background: var(--cream-2);
  display: block;
  position: relative;
  overflow: hidden;
}

/* ─── Scroll reveal ──────────────────────────────────── */
.reveal { opacity: 1; transform: none; }
.js-reveal .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal .reveal.visible { opacity: 1; transform: none; }
.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; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: var(--cream);
  padding: 80px 0 32px; margin-top: 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid #2a241d;
}
.footer-grid h4 {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li { font-size: 0.88rem; color: var(--cream-2); }
.footer-grid li a {
  font-size: 0.88rem; color: var(--cream-2); transition: color 0.15s;
}
.footer-grid li a:hover { color: var(--amber); }
.footer-tag {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: 1.45rem;
  line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--paper);
  margin-bottom: 16px;
}
.footer-tag .amber { color: var(--amber); }
.footer-blurb { font-size: 0.88rem; color: var(--ink-3); max-width: 32ch; line-height: 1.5; }
.footer-meta {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem; color: var(--ink-3);
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Responsive base ────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ─── Before / after slider (portfolio card 05) ─────── */
.ba { position: relative; overflow: hidden; --x: 50%; background: var(--cream-2); }
.ba img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba .ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); pointer-events: none; z-index: 2; }
.ba-line::after { content: "\21C6"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.ba-tag { position: absolute; bottom: 16px; z-index: 2; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 8px; padding: 8px 14px; font: 800 0.9rem/1 var(--font-body); letter-spacing: 0.08em; pointer-events: none; }
.ba-tag.b { left: 16px; }
.ba-tag.a { right: 16px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; }
.ba input:focus-visible ~ .ba-line::after { outline: 3px solid var(--amber); outline-offset: 3px; }
