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

:root {
  --black: #000000;
  --white: #ffffff;
  --teal: #3EFFC0;
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: "nitti", monospace;

  /* Grid columns — wide for stats/projects/logos, text for body copy + tagline */
  --col-wide: 1140px;
  --col-text: 920px;
  --margin-wide: max(2rem, calc(50vw - var(--col-wide) / 2));
  --margin-text: max(2rem, calc(50vw - var(--col-text) / 2));
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  opacity: 0;
  background-color: transparent;
  transition: opacity 0.5s ease, background-color 0.3s ease;
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.nav-logo {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-logo img {
  height: 2.2rem;
  width: auto;
  display: block;
  filter: brightness(0);
}

.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav ul a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 23px;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.nav ul a:hover,
.nav ul a.nav-active {
  color: var(--teal);
}

.nav-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  color: var(--black);
  margin-top: 30px;
  max-height: 100px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin-top 0.3s ease;
}

.nav-contact a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 700;
}
.nav-contact a:hover {
  color: var(--teal);
  text-decoration: none;
}

.nav-contact span:not(.nav-availability) {
  font-weight: 700;
}

.nav-availability {
  text-align: right;
  line-height: 1.4;
  margin-top: 0.1rem;
}

/* ── HERO ── */
/* Logo is baked into me_big_v2.png — no overlay needed, just position tagline. */
:root {
  --photo-w: 1165px;
  --photo-h: calc(1165px * 1036 / 1166);   /* ≈ 1034px */
  --photo-top: calc(2vh - 60px);
  --photo-left: calc(50vw - var(--photo-w) / 2 - 124px);
  /* tagline aligns to text column left edge (920px grid) */
  --tagline-top: calc(var(--photo-top) + var(--photo-h) * 0.62);
  --tagline-left: var(--margin-text);
}

.hero {
  position: relative;
  background: var(--white);
  height: calc(var(--photo-top) + var(--photo-h) - 200px);
  min-height: 520px;
  overflow: visible;
  z-index: 1;
  transform: translateY(-100%);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero.hero-revealed {
  transform: translateY(0);
}

.hero-photo {
  position: absolute;
  top: var(--photo-top);
  left: var(--photo-left);
  z-index: 1;
}

.hero-photo img {
  width: var(--photo-w);
  height: auto;
  display: block;
}

.hero-tagline {
  position: absolute;
  top: var(--tagline-top);
  left: var(--tagline-left);
  z-index: 3;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 23px;
  color: var(--white);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.hero-since {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  margin-top: 0.2rem;
  color: var(--teal);
}

/* ── ABOUT ── */
.about-tagline {
  display: none;
}

.about-tagline-since {
  font-size: 13px;
  color: var(--teal);
  margin-top: 0.2rem;
}

.about {
  position: relative;
  z-index: 0;
  background: var(--black);
  padding: 250px 0 0;
}

.about-text {
  max-width: var(--col-text);
  margin: 0 auto 85px;
}

.about-lead {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 39px;
  letter-spacing: 0.65pt;
  color: var(--teal);
  line-height: 1.3;
  margin-bottom: 2rem;
}

.about-sub {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 39px;
  letter-spacing: 0.65pt;
  color: var(--teal);
  line-height: 1.3;
}

.about-delta {
  font-size: 29px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 140px;
  color: var(--white);
  line-height: 0.85;
  text-align: center;
}

.stat-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  align-self: stretch;
  padding-right: 2rem;
}

.stat-line {
  flex: 1;
  height: 1px;
  background: var(--teal);
  display: block;
}

.stat-label {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--teal);
  text-transform: uppercase;
  white-space: nowrap;
}

.about-body {
  font-family: var(--font-body);
  font-size: 16pt;
  color: var(--white);
  line-height: 1.8;
  max-width: var(--col-text);
  margin: 72px auto 0;
}

/* ── PROJECTS ── */
.projects {
  position: relative;
  z-index: 0; /* trap hover overlay (z-index:2) below the fixed nav */
  background: var(--black);
  padding: 72px 0 8rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: 660px 660px;
  gap: 4rem 80px;
  justify-content: center;
}

.project-card {
  display: block;
  text-decoration: none;
  color: var(--white);
  cursor: pointer;
  position: relative;
}

.project-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 85/52;
  overflow: hidden;
  background: #1a1a1a;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
  display: block;
}

.project-card:hover .project-thumb img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 70px 30px;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 76.8px;
  color: var(--teal);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-align: left;
}


/* placeholder thumb when no image */
.project-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.1);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.project-meta {
  display: flex;
  align-items: center;
  padding: 1.1rem 0 0.8rem;
  gap: 5rem;
}

.project-meta-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.2);
  transition: background 0.3s;
}

.project-card:hover .project-meta-line {
  background: var(--teal);
}

.project-client {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.3s;
}

.project-card:hover .project-client {
  color: var(--teal);
}

.project-logo {
  height: 3.5rem;
  width: auto;
  max-width: 240px;
  filter: brightness(0) invert(1);
  display: block;
}

.project-category {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--white);
  text-transform: uppercase;
  text-align: right;
  transition: color 0.3s;
}

.project-card:hover .project-category {
  color: var(--teal);
}

/* TBA card */
.project-card.tba .project-thumb {
  background: var(--black);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tba-text {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--white);
  letter-spacing: 0.65pt;
  padding: 2rem 3rem;
  border-top: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  line-height: 1;
}

/* ── CONTACT ── */
.contact {
  background: var(--black);
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.contact-photo {
  flex: 0 0 480px;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.contact-photo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%);
  display: block;
}

.contact-box {
  flex: 1;
  background: var(--teal);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.contact-headline {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 39px;
  letter-spacing: 0.65pt;
  color: var(--black);
  line-height: 1.3;
}

.chl { display: block; }

.contact-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
}

.contact-info a {
  color: var(--black);
  text-decoration: none;
}

.contact-separator {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--black);
  vertical-align: middle;
}

/* ── CLIENTS ── */
.clients {
  background: var(--black);
  padding: 6rem var(--margin-wide);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3.5rem 2rem;
  align-items: center;
  justify-items: center;
}

.clients-grid img {
  height: 2.8rem;
  width: auto;
  max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.clients-last-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.clients-last-row img {
  height: 2.8rem;
  width: auto;
  max-width: 100%;
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* ── CONTACT availability ── */
.contact-availability {
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--black);
  text-transform: uppercase;
  line-height: 1.6;
  margin-top: 0.5rem;
}

/* ── FOOTER ── */
.footer {
  background: var(--white);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-logo-link {
  text-decoration: none;
}

.footer-logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--black);
  display: block;
}

.footer-logo-delta {
  color: var(--black);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--black);
  text-transform: uppercase;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.footer-right ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.footer-right ul a {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 23px;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-right ul a:hover {
  color: var(--teal);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--black);
}

.footer-contact span:not(.footer-availability) {
  font-weight: 700;
}

.footer-contact a {
  color: var(--black);
  text-decoration: underline;
  font-weight: 700;
}
.footer-contact a:hover {
  color: var(--teal);
  text-decoration: none;
}

.footer-availability {
  text-align: right;
  line-height: 1.4;
  margin-top: 0.1rem;
  font-weight: 400;
}

/* ── FIXED NAV (on scroll) ── */
.nav.is-fixed {
  background-color: rgba(255, 255, 255, 1);
}

.nav.is-fixed.is-out {
  background-color: rgba(255, 255, 255, 0) !important;
}

.nav.is-fixed .nav-logo {
  visibility: visible;
  opacity: 1;
}

.nav.is-fixed.is-out .nav-logo {
  opacity: 0;
}

.nav.is-compact .nav-contact {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin-top: 0;
}

/* ── GLITCH ── */
#hero-img { opacity: 0; }

@keyframes heroGlitch {
  0%   { opacity: 0; transform: translateX(0);    filter: none;                                       clip-path: none; }
  12%  { opacity: 1; transform: translateX(-7px); filter: brightness(2) saturate(0) blur(6px);        clip-path: none; }
  25%  { opacity: 1; transform: translateX(5px);  filter: brightness(0.5) blur(4px);                  clip-path: inset(18% 0 72% 0); }
  37%  { opacity: 1; transform: translateX(-4px); filter: brightness(1.6) hue-rotate(40deg) blur(3px);clip-path: inset(60% 0 26% 0); }
  50%  { opacity: 1; transform: translateX(3px);  filter: blur(7px);                                  clip-path: inset(5% 0 88% 0); }
  62%  { opacity: 1; transform: translateX(-2px); filter: brightness(2.5) blur(2px);                  clip-path: none; }
  75%, 100% { opacity: 1; transform: translateX(0); filter: none; clip-path: none; }
}

#hero-img.glitch-play {
  animation: heroGlitch 0.6s step-end forwards;
}

/* Stat reveal animation */
.stat {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stat.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1500px) {
  .stats {
    padding: 0 40px;
  }

  .projects-grid {
    grid-template-columns: 570px 570px;
    gap: 3rem 50px;
  }
}

@media (max-width: 1280px) {

  .stat-num {
    font-size: 100px;
  }

  .stat-line {
    display: none;
  }

  .projects {
    padding: 72px 40px 8rem;
  }

  .projects-grid {
    grid-template-columns: 920px;
    gap: 2rem 0;
  }
}

@media (max-width: 1024px) {
  :root {
    --photo-w: 800px;
    --photo-h: calc(800px * 1036 / 1166);
    --photo-left: calc(50vw - var(--photo-w) / 2 - 74px);
  }

  .about {
    padding-top: 200px;
  }

  .hero-tagline {
    display: none;
  }

  .about-tagline {
    display: block;
    max-width: 920px;
    margin: 0 auto 3rem;
    padding: 0 40px;
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 23px;
    color: var(--white);
    line-height: 1.5;
  }

  .about-text {
    padding: 0 40px;
  }

  .about-body {
    padding: 0 40px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 920px;
    margin: 0 auto;
  }

  .stat-num {
    font-size: 140px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-photo {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --photo-w: 480px;
    --photo-h: calc(480px * 1036 / 1166);
    --photo-left: calc(50vw - var(--photo-w) / 2 - 54px);
  }

  .hero {
    min-height: 300px;
  }

  .about {
    padding-top: 120px;
  }

  .nav {
    display: none;
  }

  .about-lead,
  .about-sub {
    font-size: 25px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .stat-num {
    font-size: 120px;
  }

  .contact {
    flex-direction: column;
  }

  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-right ul {
    display: none;
  }
}

@media (max-width: 580px) {
  :root {
    --photo-w: 432px;
    --photo-h: calc(432px * 1036 / 1166);
  }

  .about {
    padding-top: 80px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    margin-bottom: 30px;
  }

  .contact-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .contact-separator {
    display: none;
  }

  .footer-contact {
    display: none;
  }
}
