:root {
  --bg: #1b1f15;
  --bg-alt: #23281b;
  --ink: #f3ecdd;
  --muted: #a8a190;
  --line: rgba(243,236,221,0.12);
  --grad: linear-gradient(90deg, #c9a227, #8b5e34);
  --grad-2: linear-gradient(135deg, #5b6b3f, #c9a227);
  --radius: 18px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); }

.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  position: relative;
  padding-left: 26px;
}
.kicker::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--grad);
  transform: translateY(-50%);
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: #c9a227;
  color: #1b1f15;
  box-shadow: 0 8px 24px -8px rgba(201,162,39,0.5);
}
.btn-primary:hover { background: #d4ad2e; box-shadow: 0 12px 30px -8px rgba(201,162,39,0.7); }
.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { border-color: #c9a227; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,12,16,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
}
.logo span { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 11px 22px; font-size: 14px; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.5;
  padding: 4px 6px;
  border-radius: 8px;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.lang-option:hover { opacity: 0.85; background: rgba(246,243,236,0.06); }
.lang-option.is-active { opacity: 1; color: var(--ink); }
.flag-icon {
  width: 22px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(246,243,236,0.15);
}

/* Toggle this off (delete the class, or remove nav-hidden) whenever the blog is ready to go public */
.nav-hidden { display: none !important; }

/* Hero */
.hero {
  position: relative;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  z-index: 0;
}
.glow-1 { width: 500px; height: 500px; background: #c9a227; top: -150px; right: -100px; }
.glow-2 { width: 450px; height: 450px; background: #5b6b3f; bottom: -150px; left: -100px; opacity: 0.3; }
.hero-watermark {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Anton', sans-serif;
  font-size: clamp(120px, 22vw, 320px);
  color: rgba(246,243,236,0.035);
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 60px;
  gap: 20px;
}
.eyebrow-right { text-align: right; max-width: none; white-space: nowrap; }
.hero-title {
  font-size: clamp(42px, 8vw, 88px);
  line-height: 1.02;
  margin-bottom: 28px;
}
.hero-tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--ink);
  margin-bottom: 22px;
}
.hero-copy {
  max-width: 480px;
  font-size: 17px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Ticker */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 14px;
  white-space: nowrap;
  animation: scroll-left 30s linear infinite;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ticker-track .dot { color: #c9a227; margin-right: 0; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

/* Grids */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .approach-card {
  background: var(--bg);
  padding: 40px;
  position: relative;
  transition: background 0.25s ease;
}
.section-alt .approach-card { background: var(--bg-alt); }
.card:hover, .approach-card:hover { background: #262c1c; }
.card-num {
  font-family: 'Anton', sans-serif;
  font-size: 34px;
  color: var(--accent, #c9a227);
  display: block;
  margin-bottom: 14px;
}
.card h3, .approach-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  text-transform: none;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p, .approach-card p { margin: 0; font-size: 15px; }
.card::before, .approach-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent, #c9a227);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card:hover::before, .approach-card:hover::before { transform: scaleX(1); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-copy p { font-size: 17px; color: var(--ink); opacity: 0.85; margin-bottom: 20px; }
.stats {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 22px;
}
.stat:last-child { border-bottom: none; }
.stat-num {
  font-family: 'Anton', sans-serif;
  font-size: 44px;
  min-width: 70px;
}
.stat p { margin: 0; font-size: 14px; }

/* Quote */
.quote-section { padding: 90px 0; text-align: center; }
.quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 34px);
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--ink);
}
.quote-attr { color: var(--muted); font-size: 14px; }

/* Contact form */
.contact-form { max-width: 640px; }
.form-row { display: flex; gap: 20px; }
.form-row .field { flex: 1; }
.field { margin-bottom: 22px; }
.hidden-field { display: none; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
.section-alt input, .section-alt select, .section-alt textarea { background: var(--bg-alt); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #c9a227;
}
.form-success {
  display: none;
  margin-top: 16px;
  color: #8fa35c;
  font-size: 14px;
}
.form-success.show { display: block; }
.form-error {
  display: none;
  margin-top: 16px;
  color: #e0664f;
  font-size: 14px;
}
.form-error.show { display: block; }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 500;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-icon {
  font-family: 'Anton', sans-serif;
  font-size: 20px;
  color: #c9a227;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding-bottom: 24px; margin: 0; max-width: 760px; }
.faq-item.open .faq-a { max-height: 300px; }

/* Portfolio */
.portfolio-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
}
.portfolio .kicker { margin: 0; }
.portfolio .section-inner:first-child { text-align: center; margin-bottom: 40px; }

.logo-marquee {
  overflow: hidden;
  background: #f2ecdc;
  padding: 32px 0;
  margin-bottom: 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logo-track {
  display: inline-flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  animation: scroll-left 40s linear infinite;
}
.logo-track img {
  height: 44px;
  width: auto;
  opacity: 1;
  filter: none;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.logo-track img:hover {
  transform: scale(1.08);
}

/* Footer */
.footer { padding: 80px 0 30px; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
}
.footer-tag { font-style: italic; font-family: 'Fraunces', serif; margin-top: 10px; }
.footer h4 { font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; }
.footer-grid a, .footer-grid p { display: block; margin-bottom: 8px; font-size: 15px; color: var(--muted); }
.footer-grid a:hover { color: #c9a227; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }
.footer-fine { max-width: 480px; }

/* Responsive */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-top { flex-direction: column; gap: 10px; }
  .eyebrow-right { text-align: left; max-width: none; white-space: normal; }
  .form-row { flex-direction: column; gap: 0; }
  .lang-switch { margin-left: 10px; padding-left: 10px; }
  .lang-option span { display: none; }
}

/* Blog */
.page-hero {
  padding: 160px 0 60px;
  text-align: center;
}
.page-hero .kicker { justify-content: center; }
.page-hero .section-title { margin-bottom: 16px; }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 17px; }

.empty-state {
  text-align: center;
  padding: 60px 20px 100px;
  color: var(--muted);
  font-size: 16px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-date { font-size: 13px; color: #c9a227; text-transform: uppercase; letter-spacing: 1px; }
.post-card h3 { font-family: 'Space Grotesk', sans-serif; text-transform: none; font-size: 19px; font-weight: 600; }
.post-card p { font-size: 14px; margin: 0; flex: 1; }
.post-card .read-more { font-size: 14px; font-weight: 600; color: #c9a227; margin-top: 6px; }

/* Composer (write.html) */
.composer-note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 40px;
  font-size: 15px;
}
.composer-note p { margin: 0 0 10px; color: var(--ink); opacity: 0.85; }
.composer-note p:last-child { margin-bottom: 0; }
.composer-output { margin-top: 40px; }
.composer-output h3 { font-size: 18px; font-family: 'Space Grotesk', sans-serif; text-transform: none; font-weight: 600; margin-bottom: 12px; }
.composer-output textarea { font-family: monospace; font-size: 12.5px; min-height: 160px; }
.composer-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 24px 32px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .nav.open .nav-cta {
    display: inline-flex;
    position: absolute;
    top: calc(100% + 210px);
    left: 32px;
  }
}
