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

:root {
  --navy: #0d1117;
  --charcoal: #161b22;
  --card: #1a2030;
  --blue: #4f9cf9;
  --blue-dim: rgba(79,156,249,0.12);
  --blue-border: rgba(79,156,249,0.25);
  --text: #e6edf3;
  --muted: #7d8590;
  --rule: rgba(255,255,255,0.07);
  --divider: rgba(79,156,249,0.22);
}

html {
  scroll-behavior: smooth;
  font-size: 17.5px;
}

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

/* GRID OVERLAY — scrolls with content, softer lines */
body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  border: 1px solid var(--blue-border);
  padding: 0.45rem 1.1rem;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-cta:hover { background: var(--blue-dim); }

.nav-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--blue); }

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2.5rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.35s forwards;
}

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

.hero-sub {
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.6s 0.5s forwards;
}

.hero-creds {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.45s forwards;
}

.hero-cred {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cred-role {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  min-width: 11.5rem;
}

.hero-cred-org {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
}

.hero-divider {
  width: 48px;
  height: 1px;
  background: var(--blue);
  margin: 2.5rem 0;
  opacity: 0;
  animation: fadeUp 0.6s 0.65s forwards;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--navy);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  display: inline-block;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--blue-border); color: var(--text); }

/* SECTIONS */
section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
  border-top: 1px solid var(--divider);
}

.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.85;
}

/* WHO IT'S FOR */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.client-card {
  background: var(--navy);
  padding: 2rem 1.5rem;
}

.client-icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.client-title {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.client-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

/* CASE STUDIES */
.cases {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 3rem;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.case {
  background: var(--navy);
  padding: 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.case:hover { background: var(--card); }
.case:hover .case-arrow { opacity: 1; transform: translateX(0); }

.case-domain {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.case-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.case-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

.case-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--rule);
  padding: 0.3rem 0.7rem;
  border-radius: 2px;
  white-space: nowrap;
  align-self: start;
}

.case-arrow {
  display: inline-block;
  color: var(--blue);
  font-size: 0.75rem;
  margin-left: 0.6rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}

/* WHAT YOU GET */
.services-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-row {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.service-num {
  font-size: 0.65rem;
  color: var(--blue);
  padding-top: 0.1rem;
  letter-spacing: 0.05em;
}

.service-content-title {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.service-content-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 3.5rem;
  margin-top: 3rem;
  align-items: start;
}

.about-copy .section-body {
  max-width: none;
  margin-bottom: 1.5rem;
}

.about-copy .section-body:last-child { margin-bottom: 0; }

.about-portrait {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
  filter: grayscale(0.1);
}

.about-aha {
  margin-top: 2.25rem;
  max-width: 240px;
}

.about-aha img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
  filter: grayscale(0.15);
}

.about-aha-caption {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* CTA BLOCK */
.cta-block {
  background: var(--card);
  border: 1px solid var(--blue-border);
  padding: 4rem 3rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(79,156,249,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block .section-title { margin-bottom: 1rem; }
.cta-block .section-body { margin-bottom: 2.5rem; }

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--rule);
  padding: 2rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

/* PROJECT DETAIL PAGES */
.project-detail {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2.5rem 5rem;
}

.back-link {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--blue); }

.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.project-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.project-meta .case-tag { align-self: auto; }

.project-meta-item {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  margin-bottom: 4rem;
  overflow: hidden;
  border-radius: 2px;
}

.project-video iframe,
.project-video video,
.project-video .video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background: radial-gradient(circle at center, var(--card) 0%, var(--charcoal) 100%);
}

.video-placeholder-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
  padding-left: 4px;
  background: var(--blue-dim);
}

.video-placeholder-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-body {
  max-width: 680px;
}

.project-body h2.project-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.project-body h2.project-section-title:first-child { margin-top: 0; }

.project-body p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.project-body p:last-child { margin-bottom: 0; }

.project-stack {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem 1.5rem;
  margin-top: 0.5rem;
}

.project-stack li {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}

.project-stack li::before {
  content: '—';
  color: var(--blue);
  flex-shrink: 0;
}

.project-external {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  border: 1px solid var(--blue-border);
  padding: 0.75rem 1.25rem;
  border-radius: 2px;
  transition: background 0.2s;
}
.project-external:hover { background: var(--blue-dim); }

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.project-nav-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
}
.project-nav-link:hover { opacity: 0.75; }
.project-nav-link.spacer { visibility: hidden; }

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

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-portrait-wrap { max-width: 340px; }
  .hero-cred-role { min-width: 0; }
  .project-detail { padding: 7rem 1.5rem 4rem; }
}

@media (max-width: 600px) {
  nav { padding: 1rem 1.5rem; }
  .hero, section { padding-left: 1.5rem; padding-right: 1.5rem; }
  .case { grid-template-columns: 1fr; }
  .case-tag { align-self: start; width: fit-content; }
  .cta-block { padding: 2.5rem 1.5rem; }
  footer { padding: 1.5rem; }
}
