:root{
    /* Background colours */
    --bg-main: #0b0f0c;
    --bg-elevated: #101512;
    --bg-hover: #16201a;

    /* Text colours */
    --text-primary: #f8f8f8;
    --text-secondary: #dddddd;
    --text-muted: #838487;

    /* Accent colours */
    --accent: #abe24c;
    --accent-hover: #c4f36a;
    --accent-soft: rgba(171, 226, 76, 0.15);

    /* UI colours */
    --ui-border-color: #272a2a;
}

@media (max-width: 1024px) {

}

.mobile-menu-toggle,
.mobile-menu {
  display: none;
}

@media (max-width: 900px) {

  footer{
  position: relative !important;

  bottom: auto !important;

  top: auto !important;

  margin-top: 80px !important;

  clear: both;
  }

  .work-layout,
  .work-left,
  .work-right,
  .project-list-wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    border: 0;
  }

  .work-left {
    width: 320px;
    max-width: 320px;
    min-width: 320px;

    padding: 0;
    margin: 120px auto 0 auto;

    position: relative;
    background-image: none;

    height: auto;
    min-height: unset;

    overflow: visible;

    left: 0;
    right: 0;
    transform: none;
  }

  .work-right {
    width: 320px;
    max-width: 320px;
    min-width: 320px;

    padding: 0;
    margin: 0 auto;

    position: relative;
    height: auto;
    overflow: visible;

    left: 0;
    right: 0;
    transform: none;
  }

  .project-list-wrapper {
    width: 320px;
    max-width: 320px;
    min-width: 320px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    left: 0;
    transform: none;
    box-sizing: border-box;
  }

  .work-console-header {
    width: 320px;
    max-width: 320px;
    margin: 0 auto 40px auto;
    padding: 0;
    box-sizing: border-box;
  }

  nav{
    display: none;
  }
  .nav-indicator{
    display: none;
  }

  .scroll-indicator {
  display: none;
  }
  
  .hero-title,
  h1 {
    font-size: 36px !important;
  }

  .hero-content {
    gap: 24px;
  }

  .hero {
  min-height: 78vh;
  background-image:   linear-gradient(
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.55)
  ),url('../assets/images/hero1mobile.png');
  background-size: 185%;
  background-position: top center;
  position: relative;
  overflow: hidden;

}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;

  z-index: 1;
  pointer-events: none;

}
  .hero-content {
    position: relative;
    gap: 42px;
    z-index: 2;
}

  .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 14px;
}

.hero-subtitle {
  margin-top: 30px;
  line-height: 1.8;
}

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

  .hero-meta{
    margin-top: 50px;
  }
  .work-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .section-title {
    font-size: 42px;
    line-height: 0.9;
  }

  .view-all {
    font-size: 14px;
  }

  
  .about-contact-container {
    grid-template-columns: 1fr;
    gap: 80px;
  }
.about-title,
.contact-title {
  font-size: 32px;
  line-height: 1;
}

.contact-links {
  gap: 20px;
}

.about-contact-container::after {
  width: 100%;
  height: 1px;
  left: 0;
  top: 56%;
  transform: none;
}

  .footer-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  }

  .footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  }

  .footer-logo img {
    width: 140px;
  }

  .footer-tagline {
    margin-top: 18px;
    line-height: 1.6;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-right{
    position: relative;
  }

  /* =========================
     WORK PAGE MOBILE
  ========================= */


  .work-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    overflow: visible;
    align-items: center;
  }


  .work-divider,
  .work-layout::before,
  .work-layout::after {
    display: none;
  }

  .work-console-title,
  .case-study-title {
    font-size:  clamp(42px, 10vw, 72px);
    line-height: 0.92;

    word-break: break-word;
    overflow-wrap: break-word;

    max-width: 100%;
  }

  .work-console-header {
    width: 100%;

    overflow: visible;

    padding-top: 0;
    margin-top: 0;

    position: relative;
    z-index: 2;
  }

  .work-console-subtitle {
    max-width: 100%;

    overflow-wrap: break-word;
  }

  .work-console-subtitle,
  .case-study-subtitle {
    font-size: 15px;
    line-height: 1.7;
  }


  .project-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 18px;

    width: 320px;
    max-width: 320px;
    margin: 0 auto;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 15px 0 20px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    box-sizing: border-box;
    align-items: stretch;
  }

  .project-list::-webkit-scrollbar {
    display: none;
  }

  .project-list-wrapper {
    width: 320px;
    max-width: 320px;
    overflow: visible;
    margin: 0 auto;
  }

  .project-item {
    flex: 0 0 320px;
    width: 320px;
    max-width: 320px;
    min-width: 320px;

    margin: 0;

    scroll-snap-align: center;

    display: flex;
    flex-direction: column;

    background: var(--bg-main);
    border: 1px solid rgba(171, 226, 76, 0.14);

    overflow: hidden;
    position: relative;

    box-sizing: border-box;

    transition:
      transform 0.3s ease,
      border-color 0.3s ease;
  }

  .project-item:active {
    transform: scale(0.985);
  }

  .project-thumb {
    width: 100%;
  }

  .project-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .project-thumb {
    overflow: hidden;
  }

  .project-meta {
    padding: 22px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .project-index {
    font-size: 13px;
    opacity: 0.5;
  }

  .project-title,
  .project-meta h2 {
    font-size: 22px;
    line-height: 0.9;

    word-break: break-word;
  }

  .project-tech,
  .project-year {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .project-arrow {
    margin-top: 8px;
  }

  .project-slider-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 10px;
  }

  .project-slider-btn {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--bg-main);

    border: 1px solid rgba(171, 226, 76, 0.14);

    color: var(--accent);

    font-size: 22px;

    cursor: pointer;

    transition:
      transform 0.25s ease,
      border-color 0.25s ease,
      background 0.25s ease;
  }

  .project-slider-btn:hover {
    border-color: rgba(171, 226, 76, 0.45);

    transform: translateY(-2px);
  }

  #case-study-content {
    width: 100%;

  }

  .case-study-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 0;
    margin-top: 40px;
    position: relative;
    z-index: 2;
  }

  .case-gallery-wrapper {
    overflow-x: auto;
  }

  .case-gallery {
    display: flex;
    gap: 18px;
  }

  .gallery-image {
    min-width: 92%;
  }

.case-section {

  height: auto !important;

  min-height: unset !important;

  max-height: none !important;

  overflow: visible !important;

}

.case-section p {

  height: auto !important;

  max-height: none !important;

  overflow: visible !important;

}

  #case-study-content h2{
    font-size: 26px;
  }

.case-meta {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 22px 18px;

  width: 100%;

  padding-top: 18px;
  margin-top: 8px;

  border-top: 1px solid rgba(171, 226, 76, 0.08);
}

.case-meta > div {
  display: flex;
  flex-direction: column;

  justify-content: flex-start;

  min-height: 90px;

  padding: 0;

  border: none !important;

  position: relative;
}

.case-meta > div::before,
.case-meta > div::after {
  display: none !important;
  content: none !important;
}

.case-meta > div span {
  font-size: 10px;

  letter-spacing: 1px;

  color: var(--accent);

  margin-bottom: 12px;
}

.case-meta > div p,
.case-meta > div a {
  font-size: 9px;

  line-height: 1.4;

  word-break: break-word;
}

  .case-meta span{
    padding: 0;
  }
.case-meta-label {

  font-size: 10px;

  letter-spacing: 1px;

  margin-bottom: 8px;

}

.case-meta-value,

.case-meta-link {

  font-size: 9px;

  line-height: 1.35;

}
  /* =========================
   MOBILE MENU
========================= */

.mobile-menu-toggle {
  width: 46px;
  height: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  background: rgba(5, 8, 5, 0.95);
  border: 1px solid rgba(181, 255, 70, 0.08);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.mobile-menu-toggle span {
  width: 18px;
  height: 1px;

  background: var(--accent-color);

  transition: 0.3s ease;
}

/* X Animation */

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Overlay Menu */

.mobile-menu-toggle {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  background: #070a08;
  border: 1px solid rgba(171, 226, 76, 0.18);
  cursor: pointer;
  padding: 0;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.mobile-menu-toggle:hover {
  border-color: rgba(171, 226, 76, 0.45);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;

  background: var(--accent);

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}




.mobile-menu {
  position: fixed;
  top: 82px;
  left: 50%;
  right: auto;
  width: min(320px, calc(100vw - 48px));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #0d0d0d;
  border: 1px solid rgba(171, 226, 76, 0.12);
  border-bottom-left-radius: 25px;
  border-bottom-right-radius: 25px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 1000;
}

  .mobile-menu a {
    position: relative;

    color: var(--accent-color);

    font-size: 18px;
    letter-spacing: 3px;

    text-decoration: none;
    text-transform: uppercase;

    font-family: 'JetBrains Mono', monospace;

    opacity: 1;

    transition:
      opacity 0.25s ease,
      transform 0.25s ease,
      color 0.25s ease;
  }

.mobile-menu::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(171, 226, 76, 0.035) 0px,
      rgba(171, 226, 76, 0.035) 1px,
      transparent 1px,
      transparent 4px
    );

  opacity: 0.35;

  pointer-events: none;

  mix-blend-mode: screen;
}

.mobile-menu.active {

  box-shadow:

    0 0 0 1px rgba(171,226,76,0.08),

    0 12px 30px rgba(0,0,0,0.55),

    0 0 25px rgba(171,226,76,0.04);

}

.mobile-menu a {
  opacity: 0;
  transform: translateY(8px);
}

.mobile-menu.active a {
  opacity: 1;
  transform: translateY(0);
}

  .mobile-menu a::before {
    content: "> ";

    color: var(--accent);

    opacity: 0.7;
  }

  .mobile-menu a:hover {
    opacity: 1;
    transform: translateX(6px);
  }

  .mobile-menu::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        to bottom,
        transparent,
        rgba(171, 226, 76, 0.03),
        transparent
      );

    background-size: 100% 180px;

    animation: terminalScan 6s linear infinite;

    pointer-events: none;
  }

  @keyframes terminalScan {
    from {
      background-position: 0 -180px;
    }

    to {
      background-position: 0 180px;
    }
  }

  .mobile-menu-cursor {
    position: absolute;

    bottom: 18px;
    right: 24px;

    color: var(--accent);

    animation: blink 1s steps(1) infinite;
  }

  @keyframes blink {
    50% {
      opacity: 0;
    }
  }

  .mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

.mobile-menu.active a:nth-child(1) {
  transition-delay: 0.05s;
}

.mobile-menu.active a:nth-child(2) {
  transition-delay: 0.1s;
}

.mobile-menu.active a:nth-child(3) {
  transition-delay: 0.15s;
}

.mobile-menu.active a:nth-child(4) {
  transition-delay: 0.2s;
}
.mobile-menu-label {
  color: rgba(171, 226, 76, 0.55);

  font-size: 10px;
  letter-spacing: 3px;

  margin-bottom: 3px;

  font-family: 'JetBrains Mono', monospace;
}

  /* =========================
     CONTACT PAGE MOBILE
  ========================= */

.contact-console {
  min-height: auto;
  padding: 0;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 0;

  width: 320px;
  max-width: 320px;

  margin: 0 auto;
}

.contact-left,
.contact-right {
  width: 320px;
  max-width: 320px;
  min-width: 320px;

  position: relative;

  left: 0;
  right: 0;
  transform: none;

  margin: 0 auto;

  height: auto;
  min-height: unset;

  overflow: visible;
}

.contact-left {
  padding-top: 120px;
  padding-bottom: 40px;
}

.contact-right {
  padding-top: 0;
  padding-bottom: 80px;
  padding-left: 0;
}

.contact-title {
  font-size: clamp(42px, 10vw, 72px);
  line-height: 0.92;
}

.contact-intro {
  font-size: 15px;
  line-height: 1.8;
}

.contact-stats {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stat-item {
  width: 100%;
}

.contact-layout::before,
.contact-layout::after {
  display: none;
}

.console-panel {
  width: 320px;
  max-width: 320px;
  padding: 28px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.form-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.form-group {
  width: 100%;
}

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

.tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.tag-grid button {
  width: 100%;
  min-width: 0;
  font-size: 14px;
  padding: 14px 10px;
}

.transmit-btn {
  width: 100%;
}


  /* =========================
     ABOUT PAGE MOBILE
  ========================= */


.about{
  padding: 0;
}
.about {
  min-height: auto;
}

.about-left {
  position: relative;
  top: auto;
  height: auto;
  min-height: unset;

  padding-top: 120px;
  padding-bottom: 40px;

  background-image: none;
}

.about-right {
  position: relative;
  top: auto;
  height: auto;
  min-height: unset;

  padding-top: 0;
  padding-bottom: 80px;
}
.about-layout {
  display: flex;
  flex-direction: column;
  gap: 0;

  width: 320px;
  max-width: 320px;

  margin: 0 auto;
}

.about-left,
.about-right {
  width: 320px;
  max-width: 320px;
  min-width: 320px;

  position: relative;

  left: 0;
  right: 0;
  transform: none;

  margin: 0 auto;

  height: auto;
  min-height: unset;

  overflow: visible;
}



.about-title {
  font-size: clamp(42px, 10vw, 72px);
  line-height: 0.92;
}

.about-description {
  font-size: 15px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-feature {
  width: 100%;
}

.about-console-label {
  margin-bottom: 24px;
}
.about-grid,
.about-layout::before,
.about-layout::after,
.about-divider {
  display: none;
}

.project-slider-controls {
  display: none;
}

.project-slider-btn{
  display: none;
}


}

@media (max-width: 480px) {

}