/* ==========================================================================
   CCXXVI DESIGN STUDIO — Merged Style System
   Design tokens:
   -- Color:  bg #0b0c0a / surface #15160f / line #2a2c22
              ink #f3f3ee / muted #9a9c8d / volt #d9e600 / rust #ff5a2b
   -- Type:   display "Archivo Black", head "Archivo", body "Bahnschrift" / "Inter", mono "JetBrains Mono"
   -- Motif:  spec-sheet tags + registration crosshairs
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Archivo:wght@400;500;600;700&family=Noto+Sans+TC:wght@200;300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* Load Local Font - Bahnschrift */
@font-face {
  font-family: 'Bahnschrift';
  src: url('font/bahnschrift.ttf') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* CSS Variables */
:root {
  --bg: #0b0c09;
  --surface: #15160f;
  --surface-2: #1b1d14;
  --line: #2b2d22;
  --ink: #f3f3ee;
  --muted: #9a9c8d;
  --muted-dim: #6c6e60;
  --volt: #d9e600;
  --volt-dim: #aab300;
  --rust: #ff5a2b;

  --display: "Archivo Black", "Bahnschrift", "Noto Sans TC", sans-serif;
  --head: "Archivo", "Bahnschrift", "Noto Sans TC", sans-serif;
  --body: "Bahnschrift", "Inter", "Noto Sans TC", sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", monospace;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-height: 80px;
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background-color: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-dim);
}

/* Selection */
::selection {
  background-color: var(--volt);
  color: var(--bg);
}

/* Layout shell wrapper */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding: 120px 0;
  position: relative;
  border-bottom: 1px solid var(--line);
}

/* eyebrow / spec-tag — the signature CIS elements */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--volt);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--volt);
  display: inline-block;
}

.spec-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
  text-transform: uppercase;
}

/* registration crosshair corners, echoing sketch desks */
.crossed {
  position: relative;
}

.crossed::before,
.crossed::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 2;
  pointer-events: none;
  opacity: .85;
}

.crossed::before {
  top: -1px;
  left: -1px;
  border-top: 1.5px solid var(--volt);
  border-left: 1.5px solid var(--volt);
}

.crossed::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1.5px solid var(--volt);
  border-right: 1.5px solid var(--volt);
}

/* reveal-on-scroll animation utility */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: linear-gradient(to bottom, rgba(11, 12, 9, 0.85), rgba(11, 12, 9, 0));
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s, padding .3s var(--ease);
}

.nav.is-scrolled,
.nav.nav-solid {
  background: rgba(11, 12, 9, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo img {
  height: 22px;
  width: auto;
}

.nav__logo span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
  display: none;
}

@media (min-width: 560px) {
  .nav__logo span {
    display: inline;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav__links a {
  position: relative;
  color: var(--muted);
  padding: 6px 0;
  transition: color .25s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--ink);
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--volt);
  transition: right .25s var(--ease);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  right: 0;
}

.nav__cta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}

.nav__cta:hover {
  color: var(--ink);
}

.nav__cta::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--volt);
  transition: right .25s var(--ease);
}

.nav__cta:hover::after {
  right: 0;
}

@media (max-width: 719px) {
  .nav__cta {
    margin-right: 20px;
    font-size: 11px;
  }
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .25s var(--ease), opacity .25s;
}

.nav__burger.active span:nth-child(1) {
  transform: translateY(3.25px) rotate(45deg);
  background-color: var(--volt);
}

.nav__burger.active span:nth-child(2) {
  opacity: 0;
}

.nav__burger.active span:nth-child(3) {
  transform: translateY(-3.25px) rotate(-45deg);
  background-color: var(--volt);
}

@media (max-width: 719px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--surface);
    border-left: 1px solid var(--line);
    padding: 90px 28px 40px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 150;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 14px;
  }
  
  .nav__links.active {
    transform: translateX(0);
  }
  
  .nav__links a {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  
  .nav__burger {
    display: flex;
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
#home {
  height: 100vh;
  min-height: 560px;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url('img/ccxxvi_home.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 9, 0.15) 0%, rgba(11, 12, 9, 0) 35%, rgba(11, 12, 9, 0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-title-container {
  max-width: 960px;
  margin: 0 auto;
}

.hero-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* Align the text stack to the right edge of the logo */
  width: fit-content;
  margin: 0 auto;
}

.hero-logo {
  width: clamp(280px, 62vw, 540px); /* Enlarged logo */
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
}

.hero-brand-text {
  text-align: right; /* Right align both lines */
  margin-bottom: 2.5rem;
}

.hero-brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-subtitle-sub {
  font-family: var(--mono);
  font-size: clamp(11px, 1.5vw, 13px); /* Smaller size (小小的) */
  color: var(--muted);
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.hero-cta {
  align-self: flex-end;
}

.hero-subtitle {
  color: var(--volt);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-subtitle::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--volt);
  display: inline-block;
}

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(38px, 6.5vw, 68px);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.text-group {
  display: inline-block;
  white-space: nowrap;
}

.hero-tagline {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.btn-accent {
  display: inline-block;
  padding: 12px 28px;
  border: 1px solid var(--volt);
  color: var(--volt);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-accent:hover {
  background-color: var(--volt);
  color: var(--bg);
}

.hero__bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 0 var(--gutter) 40px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__bar .col:last-child {
  text-align: right;
}

.hero__bar strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

@media (max-width: 719px) {
  .hero-content {
    padding-bottom: 0;
  }
  .hero__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 28px;
  }
  .hero__bar .col:last-child {
    text-align: left;
  }
}

/* ==========================================================================
   About Section
   ========================================================================== */
#about {
  background-color: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 72px;
  }
}

.about-info {
  display: flex;
  flex-direction: column;
}

.section__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 18px 0 24px;
}

.about-philosophy {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about-body {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 46ch;
}

.about-body:last-of-type {
  margin-bottom: 0;
}

.about-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}

.about-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.about-image-wrapper:hover .about-image {
  transform: scale(1.025);
}

.about__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(11, 12, 9, 0.8);
  padding: 6px 10px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about__stats .stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 36px);
  color: var(--volt);
  line-height: 1;
}

.about__stats .stat span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

/* ==========================================================================
   Services Section (3 cards layout)
   ========================================================================== */
.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section__lead {
  max-width: 34ch;
  color: var(--muted);
  font-size: 15px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (min-width: 860px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  background: var(--bg);
  display: block;
  width: 100%;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  height: auto;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.3s;
}

.service-card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.service-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background-color: var(--volt);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  font-family: var(--mono);
}

.service-card__num {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--volt);
  background: rgba(11, 12, 9, 0.55);
  padding: 3px 7px;
}

.service-image-link {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  display: block;
}

.service-image-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 12, 9, 0) 30%, rgba(11, 12, 9, 0.9) 100%);
  z-index: 1;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s;
  filter: saturate(.85) brightness(.85);
}

.service-card:hover .service-image {
  transform: scale(1.06);
  filter: saturate(1) brightness(.7);
}

.service-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 24px 26px;
}

.service-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 25px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.service-desc {
  display: none; /* In downloads overlay card layout, paragraph text inside card is hidden, using badges and kickers instead */
}

.service-card__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border-top: 1px solid rgba(243, 243, 238, 0.25);
  padding-top: 12px;
  width: 100%;
}

.service-btn svg {
  transition: transform .25s var(--ease);
  flex-shrink: 0;
  fill: currentColor;
}

.service-card:hover .service-btn svg {
  transform: translateX(4px);
}

.service-card__count {
  margin-left: auto;
  color: var(--muted);
}

/* ==========================================================================
   Services Standalone Page & alternating feed layout
   ========================================================================== */
.services-page #projects {
  padding-top: 140px;
}

#projects {
  background-color: var(--bg);
}

.projects-header {
  margin-bottom: 56px;
}

/* Filter tabs for Services Archive page */
.filter-tabs-wrapper {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  margin-top: 40px;
}

.filter-tabs {
  display: flex;
  list-style: none;
  gap: 40px;
}

.filter-tab {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 12px 0;
  position: relative;
  transition: all 0.25s ease;
}

.filter-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--volt);
  transition: all 0.25s ease;
}

.filter-tab:hover {
  color: var(--ink);
}

.filter-tab.active {
  color: var(--volt);
}

.filter-tab.active::after {
  width: 100%;
}

@media (max-width: 767px) {
  .filter-tabs {
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* 2-Column Grid Feed */
.feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 120px;
}

@media (min-width: 600px) {
  .feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.feed__item {
  display: block;
  position: relative;
  border: 1.5px solid var(--line);
  padding: 12px;
  background-color: var(--surface);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color 0.3s ease, transform 0.3s ease;
}

.feed__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hiding class for dynamic filter */
.feed__item.hidden {
  display: none;
}

.feed__item:hover {
  border-color: var(--volt);
  transform: translateY(-4px);
}

.feed__media {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
}

.feed__media img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s var(--ease);
}

.feed__media-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--ink);
  background-color: rgba(11, 12, 9, 0.85);
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 2px;
  z-index: 3;
  text-transform: uppercase;
  pointer-events: none;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.feed__item:hover .feed__media-tag {
  border-color: var(--volt);
  color: var(--volt);
}

.feed__item:hover .feed__media img {
  transform: scale(1.025);
}

.feed__text {
  display: none; /* Hide descriptions as requested */
}

.feed__sub b {
  color: var(--volt-dim);
  font-weight: 400;
}

/* ==========================================================================
   Connection Section (Form & Contact)
   ========================================================================== */
#connection {
  background-color: var(--surface);
}

.connection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 860px) {
  .connection-grid {
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
  }
}

.connection-info {
  display: flex;
  flex-direction: column;
}

.connection-text {
  font-size: clamp(16px, 2.2vw, 24px);
  line-height: 1.5;
  margin-bottom: 2.5rem;
  color: var(--ink);
  border-left: 2px solid var(--volt);
  padding-left: 24px;
}

.connection-email-wrapper {
  margin-top: auto;
}

.connection-email-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
  font-family: var(--mono);
}

.connection-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--volt);
  border-bottom: 1px solid var(--volt);
  padding-bottom: 6px;
}

.connection-email-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
  transform: translateX(4px);
}

/* Connection Form styling */
.connection-form-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  padding: 12px 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.25s ease;
  outline: none;
}

.form-input::placeholder {
  color: var(--muted-dim);
}

.form-input:focus {
  border-bottom-color: var(--volt);
}

.form-label {
  position: absolute;
  top: 12px;
  left: 0;
  font-size: 0.85rem;
  color: var(--muted-dim);
  pointer-events: none;
  transition: all 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  font-size: 0.7rem;
  color: var(--volt);
  letter-spacing: 0.15em;
}

.form-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--volt);
  transition: width 0.25s ease;
}

.form-input:focus ~ .form-bar {
  width: 100%;
}

.submit-btn {
  align-self: flex-start;
  margin-top: 15px;
}

.form-status {
  margin-top: 20px;
  font-size: 0.85rem;
  font-family: var(--mono);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

.form-status.success {
  opacity: 1;
  transform: translateY(0);
  color: var(--volt);
}

.form-status.error {
  opacity: 1;
  transform: translateY(0);
  color: var(--rust);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background-color: var(--bg);
}

.footer__top {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 64px;
}

@media (min-width: 860px) {
  .footer__top {
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
  }
}

.footer__title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1;
  margin-bottom: 18px;
}

.footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--volt);
  border-bottom: 1px solid var(--volt);
  padding-bottom: 6px;
}

.footer__cta svg {
  transition: transform .25s var(--ease);
  fill: currentColor;
}

.footer__cta:hover svg {
  transform: translateX(4px);
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

@media (min-width: 860px) {
  .footer__meta {
    align-items: flex-end;
  }
}

.footer__meta a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  transition: color 0.25s;
}

.footer__meta a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted-dim);
  text-transform: uppercase;
}

.footer__bottom .nav__logo img {
  height: 16px;
}

/* ==========================================================================
   Lightbox / Modal View (themed volt)
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 12, 9, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content-wrapper {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border: 1px solid var(--line);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-caption-wrapper {
  width: 100%;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lightbox-caption {
  display: none; /* Hide captions in the lightbox */
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  font-family: var(--head);
  font-weight: 700;
}

.lightbox-counter {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  padding: 5px;
}

.lightbox-close:hover {
  color: var(--volt);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(21, 22, 15, 0.6);
  border: 1px solid var(--line);
  color: var(--ink);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 2001;
}

.lightbox-nav:hover {
  background: var(--volt);
  border-color: var(--volt);
  color: var(--bg);
}

.lightbox-prev {
  left: -80px;
}

.lightbox-next {
  right: -80px;
}

@media (max-width: 767px) {
  .lightbox-prev, .lightbox-next {
    display: none;
  }
  .lightbox-close {
    top: -45px;
    right: 10px;
  }
}
