@font-face {
  font-family: 'PP Cirka';
  src: url('../public/fonts/PPCirka-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Cirka';
  src: url('../public/fonts/PPCirka-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('../public/fonts/NeueHaasGroteskText-55Roman.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Neue Haas Grotesk Text';
  src: url('../public/fonts/NeueHaasGroteskText-65Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Theme tokens ---
   Every Tailwind color below (ink / cream / gold / muted) is generated from
   these variables, so bg-ink, text-cream, border-cream/15, etc. all flip
   automatically when data-theme changes. No markup edits needed per theme. */
:root {
  --color-ink: 10 9 8;
  --color-cream: 236 228 208;
  --color-gold: 201 162 74;
  --color-muted: 154 144 128;
  --color-accent: 107 58 122;
}
:root[data-theme="light"] {
  --color-ink: 250 248 243;
  --color-cream: 26 22 18;
  --color-gold: 150 108 34;
  --color-muted: 112 101 88;
  --color-accent: 107 58 122;
}

html { background: rgb(var(--color-ink)); }
body {
  background-color: rgb(var(--color-ink));
  font-family: 'Neue Haas Grotesk Text', Arial, sans-serif;
  transition: background-color .4s ease;
}

.bg-glow {
  background:
    radial-gradient(60% 45% at 50% 18%, rgb(var(--color-gold) / 0.16) 0%, rgb(var(--color-gold) / 0) 70%),
    radial-gradient(45% 35% at 82% 8%, rgb(var(--color-accent) / 0.18) 0%, rgb(var(--color-accent) / 0) 70%);
}

.bg-grid {
  background-image:
    linear-gradient(rgb(var(--color-cream) / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--color-cream) / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 50% 0%, black 0%, transparent 75%);
}

.hero-fade-mask {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 22%, black 78%, transparent 100%);
}

/* --- Nav --- */
#site-header {
  background-color: rgb(var(--color-ink) / 0);
  border-bottom: 1px solid rgb(var(--color-cream) / 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color .5s ease, border-color .5s ease, backdrop-filter .5s ease;
}
#site-header.scrolled {
  background-color: rgb(var(--color-ink) / 0.72);
  border-bottom: 1px solid rgb(var(--color-cream) / 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-link { position: relative; padding-bottom: 3px; }
.nav-link .underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  color: rgb(var(--color-gold));
  transform: scaleX(0);
  transform-origin: left;
}

.btn-dashed {
  border: 1px dashed rgb(var(--color-cream) / 0.4);
  transition: border-color .25s ease, background-color .25s ease;
}
.btn-dashed:hover {
  border-color: rgb(var(--color-gold) / 0.8);
  background-color: rgb(var(--color-cream) / 0.04);
}

.theme-toggle-btn {
  border: 1px solid rgb(var(--color-cream) / 0.15);
  transition: border-color .25s ease, background-color .25s ease;
}
.theme-toggle-btn:hover {
  border-color: rgb(var(--color-gold) / 0.6);
  background-color: rgb(var(--color-cream) / 0.04);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background-image: linear-gradient(rgb(var(--color-cream) / 0.35) 60%, transparent 0%);
  background-size: 1px 8px;
  background-repeat: repeat-y;
}

.hamburger-line { transform-origin: center; transition: none; }

/* --- Hero type reveal --- */
.word-mask { display: inline-block; overflow: hidden; vertical-align: top; }
.word { display: inline-block; will-change: transform; }

/* --- CTA arrow --- */
.btn-arrow { display: inline-block; transition: transform .3s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* --- Marquee --- */
.marquee-track { display: flex; width: max-content; }

/* --- Scroll cue --- */
.scroll-cue-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgb(var(--color-cream) / 0.5), rgb(var(--color-cream) / 0));
}

/* --- About section --- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}
.icon-big { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; font-size: 44px; }
.icon-small { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; font-size: 26px; }
.icon-metal {
  background: linear-gradient(160deg, #f4ecd3 0%, #c9a24a 45%, #7c5e22 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));
}
.about-cell { transition: background-color 0.35s ease; }
.about-cell:hover { background-color: rgb(var(--color-cream) / 0.03); }

/* --- Investors section --- */
.investor-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.85rem;
  overflow: hidden;
  border: 1px solid rgb(var(--color-cream) / 0.1);
  transition: transform 0.5s ease;
}
@media (min-width: 640px) {
  .investor-card-media { aspect-ratio: 3 / 4; }
}
.investor-card:hover .investor-card-media { transform: translateY(-6px); }
.investor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.1) contrast(1.05);
}
.investor-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgb(var(--color-ink) / 0.88) 0%,
    rgb(var(--color-ink) / 0.15) 45%,
    rgb(var(--color-ink) / 0.3) 100%
  );
}
.investor-card-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  right: 1.25rem;
  font-family: 'PP Cirka', Georgia, serif;
  font-size: 1.05rem;
  color: rgb(var(--color-cream));
  letter-spacing: 0.01em;
}
.investor-card-copy {
  margin-top: 1rem;
  font-size: 14px;
  line-height: 1.65;
  color: rgb(var(--color-muted));
}

/* --- Services / pricing --- */
.price-card {
  transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured:hover { border-color: rgb(var(--color-gold) / 0.55); }
.price-card:not(.featured):hover { background-color: rgb(var(--color-cream) / 0.03); }

/* --- Request form --- */
.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgb(var(--color-cream) / 0.2);
  width: 100%;
  padding: 0.4rem 0 0.7rem;
  color: rgb(var(--color-cream));
  font-size: 14px;
  font-family: 'Neue Haas Grotesk Text', Arial, sans-serif;
  transition: border-color 0.25s ease;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgb(var(--color-muted)); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-bottom-color: rgb(var(--color-gold) / 0.8);
}
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid { border-bottom-color: #e2867a; }
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.5rem;
}
.form-select option { color: #1a1814; }
.form-textarea { resize: vertical; min-height: 90px; }
.form-status { color: rgb(var(--color-muted)); min-height: 1.2em; }
.form-status.error { color: #e2867a; }
