/* --- CSS VARIABLES & BASE STYLES --- */
:root {
  --ink: #11100f;
  --paper: #f2eadc;
  --acid: #d7ff39;
  --red: #f14d32;
  --gold: #e9a854;
  --line: rgba(17, 16, 15, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- OVERLAYS & UTILITIES --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.site {
  overflow: hidden;
}

.kicker, .mono {
  font: 11px "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- NAVIGATION --- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 3vw;
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
}

/* Brand & Logo Hover Effect */
.brand {
  display: flex;
  align-items: center;
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05) rotate(-2deg);
}

/* Navigation Links Container */
.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Base Nav Link Hover Effect */
.navlinks a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s ease;
}

/* Sliding Underline Bar */
.navlinks a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.navlinks a:hover {
  color: var(--red);
}

.navlinks a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Contact Pill Button Style */
.navlinks a[href="#contact"] {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 3px 3px 0 var(--red);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.navlinks a[href="#contact"]::after {
  display: none;
}

.navlinks a[href="#contact"]:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--red);
}

/* Pulsing Status Dot Animation */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

/* Styling for the currently active nav link */
.navlinks a.active {
  color: var(--accent, #d7ff39); /* Uses your neon accent color */
  font-weight: 700;
  border-bottom: 2px solid var(--accent, #d7ff39);
  padding-bottom: 4px;
}

@keyframes pulse-dot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(241, 77, 50, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(241, 77, 50, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(241, 77, 50, 0);
  }
}

/* --- HERO SECTION (FULL BANNER) --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 6vw 20px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  color: var(--paper);
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-bg iframe,
.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  transform: translate(-50%, -50%) scale(1.2);
  border: 0;
  pointer-events: none;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg, 
    rgba(17, 16, 15, 0.45) 0%, 
    rgba(17, 16, 15, 0.25) 50%, 
    rgba(17, 16, 15, 0.65) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin-top: 20px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.hero-content .kicker {
  color: var(--acid);
}

.hero h1 {
  font: 800 clamp(54px, 8.5vw, 120px) / 0.85 'Syne', sans-serif;
  margin: 20px 0 16px;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-subheading {
  font: 700 clamp(18px, 2.5vw, 28px) / 1.1 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  margin: 0 0 20px 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
  text-shadow: 0 4px 20px rgba(241, 77, 50, 0.4);
}

.hero-copy {
  max-width: 440px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--paper);
}

.cta {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 14px 20px;
  background: var(--paper);
  color: var(--ink);
  font: 11px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 4px 4px 0 var(--red);
  transition: 0.25s transform, 0.25s background, 0.25s color;
}

.cta:hover {
  transform: translate(-4px, -4px);
  background: var(--red);
  color: var(--paper);
  box-shadow: 6px 6px 0 var(--paper);
}

/* --- SEAMLESS TICKER RIBBON --- */
.ticker-ribbon {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background: var(--acid);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  z-index: 10;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: scroll-left 30s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker-group span {
  font-family: "DM Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  padding-right: 28px;
}

.ticker-ribbon:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* --- GENERAL SECTIONS --- */
.section {
  padding: 86px 6vw;
  border-bottom: 1px solid var(--line);
}

.heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
}

.heading h2 {
  margin: 0;
  font: 800 clamp(38px, 5vw, 75px) / 0.85 'Syne', sans-serif;
  letter-spacing: -0.07em;
  text-transform: uppercase;
}

.count {
  font: 11px "DM Mono", monospace;
  padding-bottom: 5px;
}

/* --- INTRO SECTION --- */
.intro {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: center;
}

.intro-image {
  position: relative;
  width: 100%;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--red);
  overflow: hidden;
  background: var(--ink);
}

.intro-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.intro-image img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

.intro-card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 48px 52px;
  box-shadow: 10px 10px 0 var(--ink);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.intro-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 14px 14px 0 var(--red);
}

.intro-card .kicker {
  color: var(--red);
  font-size: 13px;
  margin-bottom: 18px;
}

.intro-card p {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 32px 0;
  color: var(--ink);
}

.intro-card .text-link {
  display: inline-block;
  font: 700 13px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.intro-card .text-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* --- PROJECT CARDS SECTION --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.card:nth-child(1) { grid-column: span 7; }
.card:nth-child(2) { grid-column: span 5; }
.card:nth-child(3) { grid-column: span 5; }
.card:nth-child(4) { grid-column: span 7; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  background: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 11px 11px 0 var(--red);
}

.card .cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
}

.card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .cover img {
  transform: scale(1.05);
}

.card-info {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  color: var(--ink);
}

.card-info span {
  display: block;
  font: 700 11px "DM Mono", monospace;
  color: var(--red);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-info strong {
  font: 700 20px 'Syne', sans-serif;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.card-info .arrow {
  font-size: 20px;
  color: var(--ink);
  transition: transform 0.3s ease, color 0.3s ease;
}

.card:hover .card-info .arrow {
  color: var(--red);
  transform: translate(3px, -3px);
}

/* --- DISCIPLINES LIST --- */
.disciplines {
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
}

.discipline {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  transition: 0.2s padding, 0.2s background;
  background-size: 0 100%;
  background-repeat: no-repeat;
  background-image: linear-gradient(var(--acid), var(--acid));
}

.discipline:last-child {
  border: 0;
}

.discipline:hover {
  background-size: 100% 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.discipline b {
  font: 800 clamp(32px, 5vw, 68px) / 1 'Syne', sans-serif;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.discipline span {
  font: 11px "DM Mono", monospace;
  text-transform: uppercase;
}

/* --- ABOUT SECTION --- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
  background: #191715;
  color: var(--paper);
}

.about h2 {
  font: 800 clamp(42px, 6vw, 86px) / 0.84 'Syne', sans-serif;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin: 0;
}

.about p {
  font-size: clamp(19px, 2.1vw, 30px);
  line-height: 1.16;
  margin: 0;
}

.about .mono {
  color: var(--acid);
  margin-top: 34px;
  display: block;
}

/* --- CONTACT & FOOTER --- */
.contact {
  background: var(--red);
  padding: 68px 6vw 28px;
  color: var(--ink);
}

.contact h2 {
  max-width: 850px;
  margin: 20px 0 0;
  font: 800 clamp(46px, 7vw, 105px) / 0.82 'Syne', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.09em;
  color: var(--ink);
}

.email-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}

.contact a.email-link {
  display: inline-block;
  font: 600 clamp(20px, 3vw, 37px) 'Syne', sans-serif;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.contact a.email-link:hover {
  opacity: 0.75;
}

.copy-email-btn {
  font: 700 11px "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.copy-email-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.copy-email-btn.copied {
  background: var(--ink);
  color: var(--acid);
  box-shadow: 4px 4px 0 var(--paper);
}

.socials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.socials a {
  font: 11px "DM Mono", monospace;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.socials a:hover {
  opacity: 0.75;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding-top: 60px;
  font: 11px "DM Mono", monospace;
  text-transform: uppercase;
  color: var(--ink);
}


/* --- RESPONSIVE MEDIA QUERIES --- */

/* DEFAULT (Desktop) - Hide Hamburger Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #11100f;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* TABLET & MOBILE BREAKPOINT */
@media (max-width: 900px) {
  .nav {
    padding: 15px 5vw;
  }

  .menu-toggle {
    display: flex; /* Show Hamburger Button */
  }

    .heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .count {
    padding-bottom: 0;
  }

  /* HERO CONTAINER OVERALL PADDING & HEIGHT */
  .hero {
    padding: 28px 5vw 68px 5vw !important; /* Extra bottom padding leaves room above ticker ribbon */
    min-height: auto !important;
  }

  /* RESPONSIVE HERO TITLE (SCALED DOWN FOR MOBILE) */
  .hero h1 {
    font-size: clamp(28px, 8.5vw, 48px) !important;
    line-height: 0.95 !important;
    white-space: normal !important;
    margin: 12px 0 !important;
    letter-spacing: -0.04em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .hero-subheading {
    font-size: clamp(14px, 4vw, 20px) !important;
    margin-bottom: 12px !important;
  }

  .hero-copy {
    font-size: 15px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
    margin-bottom: 0 !important; /* Clears extra bottom margin */
  }

  /* BALANCED CTA BUTTON SPACING */
  .cta {
    display: inline-flex !important;
    width: auto !important;
    max-width: max-content !important;
    padding: 10px 16px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }

  /* MOBILE SLIDE-OUT NAV MENU */
  .navlinks {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #f2eadc;
    border-left: 2px solid var(--accent, #ff6b00);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 32px 24px;
    gap: 12px;
    transition: right 0.3s ease-in-out;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
  }

  .navlinks.active {
    right: 0; /* Slide in from right */
  }

  .navlinks a {
    color: #11100f !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(17, 16, 15, 0.1);
  }

  .navlinks a:hover {
    color: var(--accent, #ff6b00) !important;
  }

  /* CONTACT BUTTON (MOBILE MENU) */
  .navlinks a[href="#contact"] {
    background-color: #ff6b00 !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    margin-top: 10px !important;
    border-radius: 4px !important;
  }

  /* HAMBURGER ANIMATION TO X */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }

  /* SECTION & GRID LAYOUT ADJUSTMENTS */
  .section {
    padding: 60px 5vw;
  }
  .project-grid {
    display: block;
  }
  .card {
    min-height: 360px;
    margin-bottom: 18px;
  }
  .card:nth-child(n) {
    grid-column: auto;
  }
  .disciplines {
    padding: 0 5vw;
  }
  .discipline {
    grid-template-columns: 38px 1fr auto;
    gap: 12px;
  }
  .discipline b {
    font-size: clamp(27px, 8vw, 49px);
  }
  .discipline:nth-child(3) b {
    font-size: clamp(22px, 6.5vw, 38px) !important;
  }
  .discipline span:nth-child(2) {
    display: none;
  }
  .intro, .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .contact {
    padding: 56px 5vw 22px;
  }
  .footer {
    padding-top: 40px;
    flex-direction: column;
    gap: 10px;
  }
}