:root {
  --bg: #0A0A0A;
  --surface: #111111;
  --border: #1F1F1F;
  --accent: #CDFF50;
  --text: #A3A3A3;
  --heading: #F7F7F7;
  --muted: #666666;
  --radius-card: 16px;
  --radius-control: 8px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.shell { width: min(100% - 40px, 1280px); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 8px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--bg);
  transition: top 160ms ease;
}

.skip-link:focus { top: 8px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  border-bottom: 1px solid rgba(205, 255, 80, 0.08);
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  color: var(--heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.wordmark span { width: 7px; height: 7px; margin: 3px 0 0 4px; background: var(--accent); }

.nav-link, .visit { color: var(--heading); font-size: 14px; font-weight: 600; }
.nav-link { padding: 9px 0; border-bottom: 1px solid transparent; }
.nav-link:hover { color: var(--accent); border-color: var(--accent); }

.hero {
  min-height: min(760px, 100dvh);
  padding: 144px 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  color: var(--heading);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero-copy { max-width: 700px; margin-bottom: 32px; font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  white-space: nowrap;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color 220ms var(--ease);
}

.button:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(205, 255, 80, 0.16); }
.button:active { transform: scale(0.98); }

.work { padding: 32px 0 120px; }
.project-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.project-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  transition: border-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.project-card:hover { border-color: rgba(205, 255, 80, 0.38); transform: translateY(-4px); box-shadow: 0 20px 55px rgba(205, 255, 80, 0.075); }

.project-image { display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--border); border-radius: 12px; background: #161616; }
.project-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; transition: transform 650ms var(--ease); }
.project-card:hover .project-image img { transform: scale(1.05); }

.project-info { min-height: 86px; padding: 18px 6px 4px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-info h2 { margin-bottom: 6px; color: var(--heading); font-size: 17px; font-weight: 600; line-height: 1.25; letter-spacing: -0.025em; }
.project-info p { margin-bottom: 0; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }

.visit { display: inline-flex; align-items: center; gap: 8px; padding-top: 1px; color: var(--text); transition: color 180ms ease; }
.visit span { position: relative; width: 10px; height: 10px; border: 1px solid currentColor; border-radius: 1px; }
.visit span::after { content: ""; position: absolute; width: 5px; height: 5px; top: -3px; right: -3px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; background: var(--surface); }
.visit:hover { color: var(--accent); }

.cta { padding: 0 0 120px; }
.cta-panel { padding: clamp(48px, 9vw, 96px) 20px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); text-align: center; }
.cta h2 { margin-bottom: 28px; color: var(--heading); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -0.05em; }

.footer { min-height: 104px; padding: 32px 0; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer > div { display: flex; align-items: center; gap: 18px; }
.footer a:hover { color: var(--accent); }
.services span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; margin: 0 12px 3px 0; background: var(--muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }

@media (min-width: 700px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (min-width: 1060px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  .shell { width: min(100% - 32px, 1280px); }
  .nav { height: 64px; }
  .hero { min-height: 700px; padding: 120px 8px 72px; }
  .hero-copy { max-width: 340px; line-height: 1.55; }
  .work { padding-bottom: 88px; }
  .project-info { min-height: 80px; }
  .cta { padding-bottom: 88px; }
  .cta-panel { padding-inline: 16px; }
  .footer { min-height: 96px; }
  .services { display: none !important; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
