/* ================================================================
   Kmeria AI — clean, dark, two typefaces.
   Fraunces for headings, Archivo for everything else.
   ================================================================ */

:root {
  --ink: #0b0c10;
  --ink-2: #12141b;
  --hairline: rgba(236, 231, 221, 0.12);
  --hairline-soft: rgba(236, 231, 221, 0.07);
  --bone: #ece7dd;
  --muted: #9a958a;
  --gold: #f2b544;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--ink); }

/* ---------------- header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: linear-gradient(rgba(11, 12, 16, 0.85), rgba(11, 12, 16, 0));
}

.wordmark {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
}

.site-nav { display: flex; gap: 1.8rem; }

.site-nav a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.site-nav a:hover { color: var(--bone); }

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

#field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 20% 100%, rgba(11, 12, 16, 0.92) 0%, rgba(11, 12, 16, 0.35) 45%, rgba(11, 12, 16, 0) 70%),
    linear-gradient(rgba(11, 12, 16, 0.25), rgba(11, 12, 16, 0.05) 30%, rgba(11, 12, 16, 0.65) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) clamp(4rem, 10vh, 7rem);
  max-width: 60rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.9rem, 7.8vw, 5.8rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.hero-title .line { display: block; }

.hero-sub {
  margin-top: 1.5rem;
  max-width: 38rem;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.22s ease, color 0.22s ease,
    border-color 0.22s ease, opacity 0.22s ease;
}

.btn-solid {
  background: var(--gold);
  color: var(--ink);
  border: 1px solid var(--gold);
}
.btn-solid:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover { border-color: var(--bone); }

/* ---------------- sections ---------------- */

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------------- about ---------------- */

.about {
  padding: clamp(5rem, 12vh, 8rem) var(--pad);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.about-head { max-width: 46rem; }

.about-lede {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  color: var(--muted);
}

.about-figure {
  margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  max-width: 56rem;
  position: relative;
}

.about-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: grayscale(1) contrast(1.12) brightness(0.92);
}

/* subtle warm tint so the photo sits inside the palette */
.about-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 6px;
  background: var(--gold);
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
}

.card-title {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.65rem;
  margin-bottom: 0.8rem;
}

.card-body {
  font-size: 1.1rem;
  color: var(--muted);
}

/* ---------------- contact ---------------- */

.contact {
  padding: clamp(5rem, 13vh, 9rem) var(--pad);
  text-align: center;
}

.contact-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-lede {
  margin-top: 1.2rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.15rem;
}

.contact-email {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.3rem;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact-email:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ---------------- footer ---------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--pad);
  border-top: 1px solid var(--hairline-soft);
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.site-footer a:hover { color: var(--bone); }

/* ---------------- reveal animations ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------- responsive ---------------- */

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