/* ==========================================================================
   NEA TECH STUDIO — design tokens
   ========================================================================== */

:root {
  --bg: #111810;
  --bg-raised: #161f15;
  --bg-panel: #19231a;
  --line: rgba(250, 249, 246, 0.10);
  --line-strong: rgba(250, 249, 246, 0.18);

  --text: #FAF9F6;
  --text-muted: #A9B2A5;
  --text-faint: #737F70;

  --accent: #CD8E32;
  --accent-soft: rgba(205, 142, 50, 0.14);
  --accent-line: rgba(205, 142, 50, 0.4);

  --font-sans: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* background grid texture */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(250, 249, 246, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250, 249, 246, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

.idx {
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--accent);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-solid {
  background: var(--accent);
  color: #14190f;
  border-color: var(--accent);
}
.btn-solid:hover { background: #e0a04c; border-color: #e0a04c; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 24, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand { display: flex; align-items: center; }
.brand-mark { height: 26px; width: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: auto;
  margin-left: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.nav-desktop a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-desktop a:hover { color: var(--text); border-color: var(--accent-line); }
.nav-desktop .idx { color: var(--accent); }

.nav-cta { margin-left: 0; }

.menu-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  margin-left: 12px;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11.5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 32px 28px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 15px;
}
.nav-mobile a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  display: flex;
  gap: 10px;
}
.mobile-cta { margin-top: 20px; justify-content: center; }

.site-header.is-open .nav-mobile { display: flex; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 76px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(1.05);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,24,16,0.88) 0%, rgba(17,24,16,0.72) 38%, rgba(17,24,16,0.94) 100%),
    linear-gradient(90deg, rgba(17,24,16,0.55) 0%, rgba(17,24,16,0.2) 50%, rgba(17,24,16,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero-logo {
  height: 180px;
  width: auto;
  margin-bottom: 32px;
}

.hero-tag {
  font-size: clamp(12px, 4.6vw, 30px);
  max-width: 30em;
  color: var(--text);
}

.hero-sub {
  margin-top: 24px;
  max-width: 46em;
  color: var(--text-muted);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.hero-scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Sub-page Hero (e.g. Common Ground)
   ========================================================================== */

.page-hero {
  position: relative;
  padding: 168px 0 88px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 32px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.breadcrumb:hover { color: var(--accent); border-color: var(--accent-line); }
.page-hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  color: var(--text);
  margin-top: 16px;
}
.hero-credentials {
  font-family: var(--font-mono);
  font-size: 0.4em;
  letter-spacing: 0.04em;
  color: var(--accent);
  vertical-align: middle;
  margin-left: 4px;
}
.page-hero .hero-sub { margin-top: 20px; max-width: 60ch; }
.hero-media-portrait img { object-position: 50% 22%; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */

.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 720px; margin-bottom: 56px; }
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}
.section-sub {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 56ch;
}

/* ==========================================================================
   Studio / Intro
   ========================================================================== */

.studio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.studio-copy p {
  color: var(--text-muted);
  font-size: 17px;
  margin-bottom: 20px;
  max-width: 56ch;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.tag-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
}

.field-notes {
  margin-top: 96px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.field-notes-track {
  display: flex;
  gap: 20px;
  padding: 0 32px;
  width: max-content;
}
.field-notes figure {
  width: 240px;
  flex: none;
}
.field-notes img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  filter: grayscale(60%) sepia(8%) contrast(1.02);
}
.field-notes figure.duotone img { filter: grayscale(100%) contrast(1.15) brightness(0.9); }
.field-notes figcaption {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ==========================================================================
   Services
   ========================================================================== */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--bg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s var(--ease);
}
.card:hover { background: var(--bg-raised); }
.card-wide { grid-column: span 2; }

.card-media {
  margin: -32px -32px 24px;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); filter: grayscale(0%) contrast(1.05); }

.card-body { display: flex; flex-direction: column; flex: 1; }
.card-body > .idx { margin-bottom: 10px; font-size: 13px; }
.card-body h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.card-body p { color: var(--text-muted); font-size: 15px; }

.card-link {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
}

.card-founder .card-media img { object-position: 50% 32%; }
.card-founder .card-body { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px 32px; }
.card-founder .idx { width: 100%; }
.card-founder h3 { width: 100%; }
.card-founder p:not(.idx) { flex: 1 1 320px; }
.card-founder .card-link { width: 100%; margin-top: 4px; }

.award-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px;
  max-width: 280px;
}
.award-badge img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: grayscale(20%);
}
.award-badge span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Stats bar
   ========================================================================== */

.stats-bar {
  position: relative;
  z-index: 1;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 56px 32px;
  border-left: 1px solid var(--line);
  text-align: center;
}
.stats-grid .stat:first-child { border-left: none; }
.stat-num {
  font-family: var(--font-sans);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  color: var(--accent);
}
.stat-num span { font-size: 0.5em; margin-left: 2px; color: var(--text-muted); font-family: var(--font-mono); }
.stat-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 20ch;
  margin-inline: auto;
}

/* ==========================================================================
   Common Ground
   ========================================================================== */

.cg-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.cg-media {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.cg-media img:first-child { width: 100%; display: block; filter: contrast(1.05); }
.cg-media-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 110px;
  height: 74px;
  object-fit: cover;
  border: 2px solid var(--bg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border-radius: var(--radius);
}

.cg-steps { display: flex; flex-direction: column; gap: 0; }
.cg-steps li {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.cg-steps li:last-child { border-bottom: 1px solid var(--line); }
.cg-steps .idx { font-size: 14px; padding-top: 4px; }
.cg-steps h3 { font-size: 18px; margin-bottom: 8px; }
.cg-steps p { color: var(--text-muted); font-size: 15px; max-width: 46ch; }

.cg-intro { max-width: 60ch; color: var(--text-muted); font-size: 17px; margin-bottom: 48px; }
.cg-cta { margin-top: 48px; }

.cta-band { text-align: center; border-bottom: none; }
.cta-band h2 { margin-bottom: 32px; }
.kicker-center { justify-content: center; }

/* ==========================================================================
   Bio (About page)
   ========================================================================== */

.bio-list { display: flex; flex-direction: column; }
.bio-row {
  display: flex;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  align-items: flex-start;
}
.bio-row:last-child { border-bottom: 1px solid var(--line); }

.bio-marks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 240px;
  flex-shrink: 0;
}
.org-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 15px;
  transition: color 0.2s, border-color 0.2s;
}
.org-tag:hover { color: var(--accent); border-color: var(--accent-line); }

.org-stamp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.org-stamp-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  border-radius: 8px;
  padding: 14px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.org-stamp-plate img { height: 32px; width: auto; max-width: 168px; object-fit: contain; display: block; }
.org-stamp.plain .org-stamp-plate { background: none; box-shadow: none; padding: 2px 0; }
.org-stamp.plain .org-stamp-plate img { height: 40px; }
.org-stamp-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bio-row p { color: var(--text-muted); font-size: 16px; max-width: 62ch; }

/* ==========================================================================
   Press & Talks (About page)
   ========================================================================== */

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.press-card {
  background: var(--bg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s var(--ease);
}
.press-card:hover { background: var(--bg-raised); }
.press-card .idx { font-size: 12px; }
.press-card h3 { font-size: 17px; margin-top: 6px; }
.press-card p { color: var(--text-muted); font-size: 14px; }
.press-card-source {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.03em;
}
.press-note {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { border-bottom: none; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.contact-meta {
  margin-top: 40px;
  display: flex;
  gap: 48px;
}
.contact-meta dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.contact-meta dd {
  margin: 0;
  font-size: 16px;
}
.contact-meta a { border-bottom: 1px solid var(--line-strong); }
.contact-meta a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.field input, .field textarea {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  resize: vertical;
  transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .btn { align-self: flex-start; }
.form-note {
  font-size: 12.5px;
  color: var(--text-faint);
  margin-top: -8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 56px 0 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}
.footer-nav { display: flex; gap: 24px; font-size: 14px; }
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent); }
.footer-legal {
  width: 100%;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .studio-grid { grid-template-columns: 1fr; gap: 40px; }
  .cg-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; }
  .press-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stats-grid .stat:first-child, .stats-grid .stat:nth-child(2) { border-top: none; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-desktop, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 88px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .card-wide { grid-column: span 1; }
  .card-media { margin: -32px -32px 20px; }
  .card-founder .card-body { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none !important; border-top: 1px solid var(--line) !important; }
  .stats-grid .stat:first-child { border-top: none !important; }
  .hero-logo { height: 180px; }
  .field-notes-track { padding: 0 20px; }
  .bio-row { flex-direction: column; gap: 16px; }
  .bio-marks { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .press-grid { grid-template-columns: 1fr; }
}
