@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Josefin+Sans:wght@400;500;600;700&display=swap");

/* WevDev — shared styles */
:root {
  --bg: #0b0c0e;
  --bg-elev: #131417;
  --bg-elev-2: #1a1c20;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --fg: #f4f2ee;
  --fg-dim: #a7a39b;
  --fg-faint: #6c6a64;
  --accent: #ff8a2b;
  --accent-dim: #ff6a1a;
  --accent-soft: rgba(255, 138, 43, 0.14);
  --grad: linear-gradient(135deg, #ffb347 0%, #ff6a1a 55%, #ff4d26 100%);
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --wrap: 1360px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-elev: #ecebe4;
  --bg-elev-2: #e0ddd3;
  --line: rgba(11,12,14,0.08);
  --line-strong: rgba(11,12,14,0.16);
  --fg: #14151a;
  --fg-dim: #5a5851;
  --fg-faint: #8a887f;
  --accent: #e0550a;
  --accent-dim: #b83f04;
  --accent-soft: rgba(224, 85, 10, 0.14);
  --grad: linear-gradient(135deg, #ffb347 0%, #ff6a1a 55%, #e0550a 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

/* ---------- NOISE + GRID BACKGROUND ---------- */
.noise::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- WRAPPER ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-links { display: flex; gap: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links a { color: var(--fg-dim); transition: color 0.2s var(--ease); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  text-transform: uppercase; color: #fff;
  background: var(--accent);
  padding: 10px 16px; border-radius: 100px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: var(--fg); color: var(--bg); }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg); transition: all 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.mobile-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; }
}

/* ---------- LOGO ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: "Josefin Sans", var(--sans);
  font-weight: 600; font-size: 40px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo-word {
  display: inline-block;
  font-family: "Josefin Sans", var(--sans);
  font-weight: 600;
  font-size: 40px;
  line-height: 46px;
  height: 46px;
  text-transform: lowercase;
  background: linear-gradient(180deg, var(--fg) 0%, var(--fg) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.logo-word::after { display: none; }
.logo-mark {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  filter: drop-shadow(0 0 18px rgba(255, 138, 43, 0.35));
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
/* Footer logo is bigger */
.footer .logo { font-size: 56px; gap: 18px; }
.footer .logo .logo-mark { width: 64px; height: 64px; }
.footer .logo .logo-word { font-size: 56px; height: 64px; line-height: 64px; }
.logo:hover .logo-mark { animation: spinScale 0.8s var(--ease); transform: scale(1.1); }
@keyframes spinScale {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); }
  100% { transform: rotate(360deg) scale(1.1); }
}
.logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.logo sup { font-family: var(--mono); font-size: 9px; color: var(--fg-dim); font-weight: 400; margin-left: 2px; }

/* ---------- TYPO ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-dim);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.display {
  font-family: "Jost", var(--sans);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-style: normal;
}
.display em { font-style: italic; color: var(--accent); font-weight: 500; font-family: var(--serif); }

.h2 {
  font-family: "Jost", var(--sans);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.h2 em { font-style: italic; color: var(--accent); font-family: var(--serif); font-weight: 500; }

.h3 {
  font-family: "Jost", var(--sans);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--fg); color: var(--bg); transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-arrow { width: 14px; height: 14px; transition: transform 0.3s var(--ease); }
.btn:hover .btn-arrow { transform: translate(3px, -3px); }

/* ---------- SECTIONS ---------- */
section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 72px; flex-wrap: wrap; }
.section-head > div:first-child { max-width: 720px; }
.section-head .eyebrow { margin-bottom: 20px; }

/* ---------- CARDS ---------- */
.card {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
.card:hover { border-color: var(--line-strong); }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
  margin-top: 80px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-dim); margin-bottom: 18px; }
.footer ul { list-style: none; display: grid; gap: 10px; font-size: 14px; color: var(--fg-dim); }
.footer ul a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 28px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-faint); flex-wrap: wrap; gap: 16px; }

  .footer-hero {
  font-family: "Jost", var(--sans);
  font-weight: 600;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  padding: 40px 0 60px;
  color: var(--fg);
  overflow: visible;
  position: relative;
}
.footer-hero em { font-style: italic; color: var(--accent); font-family: var(--serif); font-weight: 500; }
.fh-oneline { display: flex; align-items: center; gap: 0.3em; flex-wrap: wrap; }
.fh-word-wrap {
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  padding-bottom: 0.15em;
}
.fh-rotator {
  display: flex; flex-direction: column;
  animation: fh-rotate 10s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
.fh-rotator > span { height: 1.3em; display: inline-flex; align-items: center; white-space: nowrap; line-height: 1.3em; }
@keyframes fh-rotate {
  0%, 18% { transform: translateY(0); }
  22%, 43% { transform: translateY(-1.3em); }
  47%, 68% { transform: translateY(-2.6em); }
  72%, 93% { transform: translateY(-3.9em); }
  97%, 100% { transform: translateY(-5.2em); }
}
.fh-arrow { color: var(--fg); transition: transform 0.3s var(--ease); display: inline-block; }
.footer-hero:hover .fh-arrow { transform: translate(8px, -8px); }
.fh-sub {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: normal;
  flex-wrap: wrap; gap: 16px;
}
.fh-tag { color: var(--accent); }
.fh-cta {
  color: var(--fg); font-family: var(--mono); font-size: 13px;
  padding: 12px 20px; border: 1px solid var(--line-strong);
  border-radius: 100px; transition: all 0.3s var(--ease);
}
.fh-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* CTA block (used on about, services, etc.) */
.cta {
  position: relative;
  padding: 80px 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, color-mix(in oklch, var(--accent) 15%, transparent), transparent 50%),
              radial-gradient(circle at 70% 80%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.cta > *:not(.cta-bg) { position: relative; z-index: 1; }
@media (max-width: 640px) { .cta { padding: 56px 24px; } }

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { 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; }

/* ---------- CURSOR ---------- */
.cursor-dot {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease), width 0.2s var(--ease), height 0.2s var(--ease);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  width: 40px; height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.3s var(--ease), width 0.25s var(--ease), height 0.25s var(--ease), opacity 0.3s var(--ease);
  transform: translate(-50%, -50%);
  opacity: 0.5;
}
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

.hover-grow { cursor: none; }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; background: var(--bg-elev); }
.marquee-track { display: flex; gap: 72px; animation: marquee 40s linear infinite; white-space: nowrap; }
.marquee-track > * { flex-shrink: 0; font-family: var(--serif); font-size: 36px; font-style: italic; color: var(--fg-dim); display: inline-flex; align-items: center; gap: 72px; }
.marquee-track > *::after { content: "✦"; color: var(--accent); font-size: 20px; font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- PAGE HEADER (inner pages) ---------- */
.page-header { padding: 180px 0 80px; border-bottom: 1px solid var(--line); }
.page-header .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 32px; }
.page-header .crumb span { color: var(--accent); }
.page-header h1 { font-family: "Jost", var(--sans); font-size: clamp(56px, 10vw, 140px); line-height: 0.95; letter-spacing: -0.035em; font-weight: 600; }
.page-header h1 em { font-style: italic; color: var(--accent); font-family: var(--serif); font-weight: 500; }
.page-header .sub { margin-top: 32px; max-width: 640px; color: var(--fg-dim); font-size: 18px; line-height: 1.55; }

/* ---------- UTILS ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.divider-line {
  display: block; height: 1px; background: var(--line); margin: 40px 0;
}
.hide-sm { display: block; }
@media (max-width: 720px) { .hide-sm { display: none; } }

/* ---------- TWEAKS PANEL ---------- */
.tweaks {
  position: fixed; bottom: 20px; right: 20px; z-index: 999;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 240px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  font-family: var(--mono);
  display: none;
}
.tweaks.active { display: block; animation: slideUp 0.3s var(--ease); }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } }
.tweaks h6 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-dim); margin-bottom: 12px; }
.tweaks-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-size: 12px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.seg button { padding: 6px 12px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 100px; color: var(--fg-dim); transition: all 0.2s var(--ease); }
.seg button.on { background: var(--accent); color: #0b0c0e; }
