/* =====================================================
   Staff Lab — Stylesheet
   Path: /css/style.css
   Loaded by: /main/index.html and /main/booking-form.html
   ===================================================== */

:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --bg-3: #16161a;
  --ink: #ededed;
  --ink-dim: #a0a0a8;
  --ink-faint: #5a5a62;
  --steel: #c8ccd1;
  --steel-2: #8a8e95;
  --accent: #d4af6f;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ============ GRAIN OVERLAY ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.4;
  mix-blend-mode: overlay;
  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)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  backdrop-filter: blur(20px);
  background: rgba(10,10,12,0.6);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-brand img {
  width: 32px;
  height: 32px;
}

.nav-brand-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-brand-text em {
  font-style: italic;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  padding: 0.625rem 1.25rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  padding: 8rem 3rem 4rem;
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(circle, rgba(212,175,111,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.1s forwards;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 6.5vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.2s forwards;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--steel);
}

.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 32rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s 0.35s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s 0.5s forwards;
}

.btn-primary {
  padding: 1rem 1.75rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  border-radius: 2px;
  border: 1px solid var(--ink);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary svg {
  transition: transform 0.25s;
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  padding: 1rem 1.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: all 0.25s;
}

.btn-ghost:hover {
  border-color: var(--ink-dim);
  background: rgba(255,255,255,0.03);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s 0.4s forwards;
}

.hero-logo-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-frame img {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.5));
}

.hero-logo-frame::before,
.hero-logo-frame::after {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.spec-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}

.spec-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.spec-1 { top: 12%; left: -8%; }
.spec-2 { top: 38%; right: -12%; }
.spec-3 { bottom: 18%; left: -4%; }

/* ============ SECTION SHARED ============ */
section { padding: 7rem 3rem; position: relative; }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 5rem;
  align-items: end;
}

.section-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-title em {
  font-style: italic;
  color: var(--steel-2);
}

.section-lede {
  font-size: 1.05rem;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 36rem;
}

/* ============ SERVICES ============ */
.services {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.service {
  padding: 3rem 2rem;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}

.service:last-child { border-right: none; }

.service:hover {
  background: linear-gradient(180deg, rgba(212,175,111,0.04) 0%, transparent 100%);
}

.service-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 2rem;
  color: var(--accent);
}

.service h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.service h3 em { font-style: italic; }

.service-desc {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style: none;
  margin-top: 1.5rem;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--ink-dim);
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.service-list li::before {
  content: '+';
  color: var(--accent);
  font-family: var(--mono);
}

/* ============ HOW IT WORKS ============ */
.how {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  position: relative;
}

.how::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.step { position: relative; }

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.step h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ============ METRICS ============ */
.metrics {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 5rem 3rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.metric {
  padding: 1rem 2rem;
  border-left: 1px solid var(--line);
}
.metric:first-child { border-left: none; padding-left: 0; }

.metric-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 4vw, 3.75rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.metric-value em {
  font-style: italic;
  color: var(--accent);
}

.metric-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ============ USE CASES ============ */
.cases {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}

.case-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.case {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  transition: all 0.3s;
  cursor: default;
}

.case:hover {
  padding-left: 1.5rem;
  background: linear-gradient(90deg, rgba(212,175,111,0.04), transparent);
}

.case-id {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

.case-industry {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.case-industry em {
  font-style: italic;
  color: var(--steel-2);
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-faint);
  margin-top: 0.25rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-desc {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}

.case-result {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
  font-size: 1.25rem;
  text-align: right;
}

/* ============ CTA ============ */
.cta {
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 8rem 3rem;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,175,111,0.08) 0%, transparent 50%);
}

.cta-content { position: relative; z-index: 1; max-width: 48rem; margin: 0 auto; }

.cta h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.cta h2 em { font-style: italic; color: var(--accent); }

.cta p {
  color: var(--ink-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FOOTER ============ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-brand-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
}

.footer-brand-text em { font-style: italic; font-weight: 400; }

.footer-tagline {
  color: var(--ink-dim);
  font-size: 0.9rem;
  max-width: 24rem;
  line-height: 1.55;
}

.footer-col h5 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.625rem; }
.footer-col a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ink); }

.footer-base {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

/* ============ BOOKING FORM (used on booking-form.html) ============ */
.booking-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.booking-wrap h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.booking-wrap .lede {
  color: var(--ink-dim);
  margin-bottom: 2.5rem;
}

.booking-wrap label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 1.25rem 0 0.5rem;
}

.booking-wrap input,
.booking-wrap textarea,
.booking-wrap select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.booking-wrap input:focus,
.booking-wrap textarea:focus,
.booking-wrap select:focus {
  outline: none;
  border-color: var(--accent);
}

.booking-wrap textarea {
  min-height: 120px;
  resize: vertical;
}

.booking-wrap button {
  margin-top: 2rem;
  width: 100%;
  padding: 1rem 1.75rem;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.booking-wrap button:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
}

.booking-wrap button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.hp { position: absolute; left: -9999px; }

.msg {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
}

.msg.ok {
  background: rgba(212,175,111,0.1);
  color: var(--accent);
  border: 1px solid rgba(212,175,111,0.3);
}

.msg.err {
  background: rgba(220,53,69,0.1);
  color: #ff7a85;
  border: 1px solid rgba(220,53,69,0.3);
}

.field-error {
  color: #ff7a85;
  font-size: 0.8rem;
  margin-top: 0.4rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 2rem 4rem; }
  .hero-visual { order: -1; max-width: 280px; margin: 0 auto; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service { border-right: none; border-bottom: 1px solid var(--line); padding: 2.5rem 0; }
  .service:last-child { border-bottom: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .metric { border-left: none; padding-left: 0; }
  .case { grid-template-columns: 1fr; gap: 0.5rem; }
  .case-result { text-align: left; }
  section { padding: 5rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav { padding: 1.25rem 2rem; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; gap: 1rem; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
