/* ============================================================
   AGFR.Tech — single-screen editorial hero
   Style: Travertine / Cream · Cormorant Garamond + Jost · bronze accent
   ============================================================ */

:root {
  --ink:        #201C16;
  --ink-soft:   #5b5346;
  --cream:      #FAF6EE;
  --cream-80:   rgba(250, 246, 238, 0.82);
  --line:       rgba(32, 28, 22, 0.14);
  --bronze:     #9A6A33;
  --bronze-2:   #B98A4A;
  --on-photo:   #FBF6EC;

  --frame:      26px;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #0e0c0a;
  overflow: hidden;
}

/* ---------- Stage ---------- */
.stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  z-index: 0;
}

/* Cinematic tone: warm wash + readability gradients */
.stage::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(20,16,12,0.50) 0%, rgba(20,16,12,0.20) 38%, rgba(20,16,12,0.0) 62%),
    linear-gradient(180deg, rgba(20,16,12,0.42) 0%, rgba(20,16,12,0.0) 22%, rgba(20,16,12,0.0) 70%, rgba(20,16,12,0.45) 100%);
  pointer-events: none;
}

/* Gallery frame */
.frame {
  position: absolute;
  inset: var(--frame);
  z-index: 3;
  border: 1px solid rgba(251, 246, 236, 0.45);
  pointer-events: none;
}

/* Content shell */
.shell {
  position: absolute;
  inset: var(--frame);
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(20px, 3.4vw, 46px);
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  text-decoration: none;
  color: var(--on-photo);
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 14px rgba(0,0,0,0.35);
}
.wordmark .tld { color: var(--bronze-2); letter-spacing: 0.12em; }

.topnav { display: flex; align-items: center; gap: 30px; }
.topnav a {
  color: rgba(251, 246, 236, 0.86);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
  transition: color .25s var(--ease);
}
.topnav a:hover { color: #fff; }
.topnav .enter {
  padding: 9px 20px;
  border: 1px solid rgba(251, 246, 236, 0.55);
  border-radius: 999px;
  letter-spacing: 0.16em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.topnav .enter:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

/* ---------- Card ---------- */
.middle { display: flex; align-items: center; justify-content: center; flex: 1; padding: 28px 0; }

.card {
  width: min(560px, 100%);
  background: rgba(253, 252, 250, 0.92);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 40px 90px -40px rgba(20,16,12,0.7);
  padding: clamp(30px, 3.2vw, 44px);
  position: relative;
}

.kicker {
  font-size: 0.74rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 500;
  margin: 6px 0 20px;
}
.title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 20px;
}
.title .l1, .title .l2 { display: block; }
.title .l1 { white-space: nowrap; }
.title em { font-style: italic; color: var(--bronze); }
.subtitle {
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 42ch;
}

.cta-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: "Jost", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 14px 30px -14px rgba(20,16,12,0.8);
}
.btn-primary:hover { transform: translateY(-2px); background: #2c261d; }
.btn-primary .arr { transition: transform .25s var(--ease); }
.btn-primary:hover .arr { transform: translateX(4px); }
.link-quiet {
  color: var(--bronze);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color .2s var(--ease);
}
.link-quiet:hover { color: var(--ink); }

/* Brand lockup row (AGFR · .tech) */
.lockup {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
}
.lockup .agfr {
  font-family: "Jost", sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  color: var(--ink);
}
.lockup .rule { display: none; }
.lockup .tld {
  font-family: "Jost", sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--bronze);
}

/* ---------- Bottom meta ---------- */
.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(251, 246, 236, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.meta a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.meta a:hover { color: #fff; }
.meta .credit { opacity: 0.7; letter-spacing: 0.14em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  :root { --frame: 16px; }
  .topnav { gap: 16px; }
  .topnav .navlink { display: none; }
  .bg { object-position: center 32%; }
}
@media (max-width: 560px) {
  body { overflow-y: auto; }
  .stage { height: auto; min-height: 100svh; }
  .bg, .frame { position: absolute; }
  .shell {
    position: static;
    inset: auto;
    min-height: 100svh;
    padding: 30px 22px;
    gap: 28px;
  }
  .middle { padding: 8px 0; }
  .card { width: 100%; }
  .title .l1 { white-space: normal; }
  .wordmark { font-size: 1rem; letter-spacing: 0.2em; }
  .meta .credit { display: none; }
  .lockup .agfr, .lockup .tld { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
