/* ============================================================
   OBSIDIAN GROUP — styles.css  ·  v3
   Single-page. Animated hero. Editorial sections.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* palette — refined obsidian */
  --ink:        #050505;
  --ink-2:      #0A0A0A;
  --ink-3:      #111111;
  --bone:       #F4F2EC;
  --bone-dim:   rgba(244, 242, 236, 0.72);
  --mute:       rgba(244, 242, 236, 0.50);
  --faint:      rgba(244, 242, 236, 0.28);
  --line:       rgba(244, 242, 236, 0.10);
  --hair:       rgba(244, 242, 236, 0.06);
  --signal:     #E8C39A;

  /* type */
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* spacing */
  --pad-x: clamp(20px, 5vw, 96px);
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

html, body {
  background: var(--ink);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  position: relative;
  overflow-x: hidden;
}

/* film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

img { display: block; max-width: 100%; }

/* ============================================================
   NAV — sticky top, blurs the content behind it
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(5, 5, 5, 0.55);
  border-bottom: 1px solid transparent;
  transition: background 280ms ease, border-color 280ms ease;
}

.nav.scrolled {
  background: rgba(5, 5, 5, 0.85);
  border-bottom-color: var(--hair);
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
}

.nav .brand img {
  width: 24px;
  height: 24px;
  opacity: 0.95;
}

.nav ul {
  display: flex;
  gap: clamp(20px, 3.5vw, 48px);
  list-style: none;
}

.nav ul a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding: 8px 0;
  position: relative;
  transition: color 240ms ease;
}

.nav ul a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--signal);
  transition: right 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.nav ul a:hover { color: var(--bone); }
.nav ul a:hover::after { right: 0; }

/* ============================================================
   HERO — full viewport, canvas background, centered logo
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero canvas#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  filter: grayscale(100%) contrast(115%);
  opacity: 0.85;
}

/* radial mask — falls off at edges, brightens behind content */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 55% 50% at 50% 48%, rgba(0,0,0,0.55), transparent 75%),
    linear-gradient(to bottom, transparent 0%, transparent 65%, var(--ink) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  animation: heroIn 1400ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 200ms;
}

.hero-content .mark {
  width: clamp(170px, 22vw, 280px);
  filter: drop-shadow(0 0 32px rgba(232, 195, 154, 0.04));
}

.hero-content .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 4px;
}

.hero-content .tag .pulse {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #6FCF8A;
  margin-right: 12px;
  vertical-align: 1px;
  animation: pulse 2.4s ease-out infinite;
}

/* scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: heroIn 1000ms ease forwards;
  animation-delay: 1600ms;
}

.scroll-cue .line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--bone-dim));
  animation: scrollLine 2.4s ease-in-out infinite;
}

/* ============================================================
   SECTIONS — about / how we work / contact
   ============================================================ */

section {
  position: relative;
  padding: clamp(80px, 14vh, 160px) var(--pad-x);
  max-width: 1400px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 24px;
}

.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--faint);
  white-space: nowrap;
}

.section-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--bone);
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-grid .lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--bone);
  max-width: 24ch;
}

.about-grid .body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.7;
  color: var(--bone-dim);
  max-width: 56ch;
}

.about-grid .body p + p { margin-top: 18px; }

/* About — supporting stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(64px, 9vh, 96px);
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}

.stats .stat .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 12px;
}

.stats .stat .v {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.4;
  color: var(--bone);
  letter-spacing: -0.01em;
  max-width: 24ch;
}

/* How we work — single column, prose-forward */

#how-we-work .prose {
  max-width: 720px;
  font-family: var(--sans);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--bone-dim);
  letter-spacing: -0.012em;
}

#how-we-work .prose strong {
  color: var(--bone);
  font-weight: 500;
}

#how-we-work .prose p + p { margin-top: 24px; }

#how-we-work .principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin-top: clamp(56px, 8vh, 80px);
  padding-top: 40px;
  border-top: 1px solid var(--hair);
}

#how-we-work .principles .p .num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--faint);
  margin-bottom: 14px;
}

#how-we-work .principles .p .name {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--bone);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

#how-we-work .principles .p .desc {
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 14px);
  color: var(--mute);
  line-height: 1.5;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.contact-grid .info .lead {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.4;
  color: var(--bone);
  letter-spacing: -0.015em;
  margin-bottom: 32px;
  max-width: 24ch;
}

.contact-grid .info .channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-grid .info .channels .ch {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-grid .info .channels .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.contact-grid .info .channels .v {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--bone);
  letter-spacing: -0.005em;
  transition: color 220ms ease;
}

.contact-grid .info .channels a:hover .v { color: var(--signal); }

/* Form */

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form .field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.form input,
.form textarea {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--bone);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  outline: none;
  transition: border-color 240ms ease;
  resize: none;
}

.form input::placeholder,
.form textarea::placeholder {
  color: var(--faint);
}

.form input:focus,
.form textarea:focus {
  border-bottom-color: var(--signal);
}

.form textarea {
  min-height: 100px;
  font-family: var(--sans);
}

.form button {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bone);
  border: none;
  padding: 14px 28px;
  margin-top: 16px;
  cursor: pointer;
  transition: background 240ms ease, transform 240ms ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.form button:hover {
  background: var(--signal);
  transform: translateX(2px);
}

.form button .arrow {
  display: inline-block;
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.form button:hover .arrow {
  transform: translateX(4px);
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  border-top: 1px solid var(--hair);
  padding: 32px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  max-width: 1400px;
  margin: 0 auto;
}

footer .group {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

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

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(111, 207, 138, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(111, 207, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 207, 138, 0); }
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; }
  50%      { transform: scaleY(0.3); transform-origin: bottom; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 860px) {
  :root { --nav-h: 56px; }

  .nav { padding: 0 20px; }
  .nav .brand { font-size: 11px; gap: 8px; }
  .nav .brand img { width: 20px; height: 20px; }
  .nav ul { gap: 20px; }
  .nav ul a { font-size: 10px; letter-spacing: 0.14em; }

  .hero-content { gap: 22px; }
  .hero-content .tag { font-size: 10px; letter-spacing: 0.28em; }

  .scroll-cue { bottom: 28px; }

  .section-head { flex-direction: column; gap: 12px; align-items: flex-start; }
  .section-head h2 { font-size: 28px; }

  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }

  .stats { grid-template-columns: 1fr; gap: 24px; }
  #how-we-work .principles { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (max-width: 540px) {
  .hero-content .mark { width: 180px; }
  .form button { width: 100%; justify-content: center; }
}
