/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
  --bg: #101110;
  --panel: #191b19;
  --cream: #eae9e3;
  --muted: #999b94;
  --line: #383a36;
  --accent: #d5fa69;
  --font: 'Manrope', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img, video {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: #101110;
}

em {
  font-style: normal;
  color: var(--accent);
}

.orange {
  color: var(--accent);
}

/* ==========================================================================
   2. GLOBAL TYPOGRAPHY & UTILITIES
   ========================================================================== */
.section {
  padding: 90px max(5vw, 24px);
  scroll-margin-top: 80px;
}

.section-top, .hero-topline, .hero-footer, .contact-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 10px;
  letter-spacing: .12em;
  font-weight: 700;
}

.section-top {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.section-index {
  color: var(--cream);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin: 45px 0 45px;
}

.section-heading-row h2, .about h2 {
  font-size: clamp(60px, 8vw, 135px);
  line-height: .94;
  letter-spacing: -.085em;
  margin: 0;
  font-weight: 600;
}

.section-heading-row p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.eyebrow {
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 800;
}

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5vw;
  color: white;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

.site-header.nav-ready {
  opacity: 1;
  pointer-events: auto;
}

.site-header.scrolled {
  background: rgba(16, 17, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -.09em;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-caption {
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: .1em;
  font-weight: 600;
}

.desktop-nav {
  display: flex;
  gap: 38px;
}

.desktop-nav a, .header-contact {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.desktop-nav a:hover, .header-contact:hover {
  color: var(--accent);
}

.header-contact {
  border-bottom: 1px solid #a3a5a0;
  padding-bottom: 10px;
  transition: all .3s;
}

.header-contact:hover {
  border-color: var(--accent);
}

.header-contact span {
  font-size: 17px;
  margin-left: 20px;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 11px;
  letter-spacing: .1em;
}

.mobile-nav {
  display: none;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
  height: min(850px, 100svh);
  min-height: 600px;
  position: relative;
  background: #202320;
  overflow: hidden;
  padding-top: 80px;
}

.hero-media, .hero-media-shade, .hero-grain {
  position: absolute;
  inset: 0;
}

.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.78) blur(4px);
  transform: scale(1.05);
}

.hero-media-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(10,13,12,.75), rgba(10,13,12,.3) 70%), linear-gradient(0deg, rgba(9,11,10,.8), transparent 40%, rgba(9,11,10,.6));
}

.hero-grain {
  z-index: 2;
  pointer-events: none;
  opacity: .17;
  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='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.hero-topline {
  position: absolute;
  z-index: 3;
  top: 110px;
  left: 5vw;
  right: 5vw;
  color: #deded7;
}

.hero-main {
  position: absolute;
  z-index: 3;
  left: 5vw;
  right: 5vw;
  bottom: 90px;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-bottom: 20px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  box-shadow: 0 0 15px #d5fa6980;
}

.hero h1 {
  font-size: clamp(78px, 13vw, 240px);
  letter-spacing: -.105em;
  line-height: .82;
  font-weight: 600;
  margin: 0 0 35px;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding: 0 .12em .1em 0;
}

.hero-line > span {
  display: block;
}

.hero h1 em {
  font-style: italic;
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -.11em;
}

.hero-lower {
  display: flex;
  justify-content: space-between;
  align-items: end;
  max-width: 850px;
}

.hero-lower p {
  font-size: clamp(14px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 370px;
  margin: 0;
}

.round-link {
  display: grid;
  place-items: center;
  border: 1px solid #b5b6ae;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 26px;
  transition: .3s;
}

.round-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #111;
}

.hero-footer {
  position: absolute;
  z-index: 3;
  bottom: 25px;
  left: 5vw;
  right: 5vw;
}

.down-arrow {
  font-size: 18px;
  margin-left: 12px;
}

/* ==========================================================================
   5. TRUST BAR & TICKER
   ========================================================================== */
.trust-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 5vw;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.trust-item i {
  color: var(--accent);
  font-size: 16px;
}

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  height: 60px;
  display: flex;
  align-items: center;
  background: var(--bg);
}

.ticker-track {
  white-space: nowrap;
  min-width: max-content;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  animation: marquee 30s linear infinite;
}

.ticker-track span {
  color: var(--accent);
  margin: 0 35px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   6. WORK GRID
   ========================================================================== */
.filter-row {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
  overflow: auto;
}

.filter {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 0 0 15px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.filter.active {
  color: var(--cream);
  border-color: var(--accent);
}

.filter span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 4px;
}

.projects {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 20px;
}

.project {
  grid-column: span 4;
  min-width: 0;
  cursor: pointer;
}

.project.wide, .project.narrow {
  grid-column: span 4;
}

.project-media {
  height: 260px;
  min-height: 260px;
  background: #262925;
  position: relative;
  overflow: hidden;
}

.project.narrow .project-media {
  height: 260px;
  min-height: 260px;
}

.project-media img, .project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.1,1);
}

.project:hover .project-media img, .project:hover .project-media video {
  transform: scale(1.045);
}

.project-media .placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #333831, #161816);
  color: #a7b2a0;
  font-size: clamp(24px, 4vw, 60px);
  font-weight: 700;
  letter-spacing: -.06em;
}

.project-arrow {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: #101110;
  font-size: 22px;
  transform: translateY(-12px);
  opacity: 0;
  transition: .3s;
}

.project:hover .project-arrow {
  transform: translateY(0);
  opacity: 1;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.project-info h3 {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -.04em;
  margin: 0;
}

.project-info span {
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 700;
  text-align: right;
}

.loading-note {
  color: var(--muted);
}

.work-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.work-bottom a:hover {
  color: var(--accent);
}

/* ==========================================================================
   7. STATEMENT
   ========================================================================== */
.statement {
  height: 650px;
  max-height: 85svh;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  background: #242c27;
}

.statement-media, .statement-overlay {
  position: absolute;
  inset: 0;
}

.statement-media img, .statement-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.statement-overlay {
  background: linear-gradient(90deg, #0a0d0ac9, transparent 90%), linear-gradient(0deg, #0a0d0a9c, transparent 60%);
}

.statement-content {
  position: absolute;
  left: 5vw;
  bottom: 8%;
  right: 5vw;
}

.statement-content > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.statement h2 {
  font-size: clamp(60px, 10vw, 160px);
  line-height: .89;
  letter-spacing: -.085em;
  font-weight: 600;
  margin: 25px 0;
}

.statement h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.statement p {
  font-size: 15px;
}

/* ==========================================================================
   8. ABOUT
   ========================================================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 7vw;
  padding-top: 60px;
  align-items: center;
}

.about-copy h2 {
  margin: 25px 0 35px;
  font-size: clamp(60px, 7vw, 110px);
}

.about-copy h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.about-copy p {
  max-width: 550px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  justify-content: space-between;
  gap: 35px;
  margin-top: 30px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  background: #2a302a;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.portrait-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 120px;
  font-weight: 800;
  letter-spacing: -.1em;
  color: #89958b;
}

.portrait-fallback span {
  color: var(--accent);
}

.portrait-caption {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(transparent, #101110b5);
  font-size: 10px;
  letter-spacing: .1em;
  font-weight: 700;
}

/* ==========================================================================
   9. EXPERTISE
   ========================================================================== */
.expertise {
  background: #171917;
}

.expertise-head {
  margin-bottom: 60px;
}

.software-band {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.software-icon {
  height: 70px;
  width: 70px;
  flex: none;
  background: #242824;
  border-radius: 17px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.software-icon img {
  height: 55px;
  width: 55px;
  object-fit: contain;
  display: none;
}

.software-icon span {
  font-size: 45px;
  color: var(--accent);
}

.software-band h3 {
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: -.055em;
  margin: 7px 0;
}

.software-band p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.software-tag {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.expertise-feature {
  min-height: 520px;
  padding: 30px;
  background: #202320;
  display: flex;
  flex-direction: column;
}

.feature-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--muted);
}

.feature-top span:last-child {
  font-size: 19px;
  color: var(--cream);
}

.expertise-feature h3 {
  font-size: clamp(39px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -.075em;
  font-weight: 600;
  margin: 50px 0 20px;
}

.expertise-feature h3 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.expertise-feature p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 360px;
}

.pipeline, .color-swatches, .rhythm-bars {
  margin: auto 0 25px;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.pipeline span {
  padding: 11px 8px;
  background: #343a32;
  font-size: 9px;
  font-weight: 800;
}

.pipeline i {
  font-style: normal;
  color: var(--accent);
}

.color-swatches span {
  flex: 1;
  height: 55px;
}

.color-swatches span:nth-child(1) { background: #2b4344; }
.color-swatches span:nth-child(2) { background: #60777a; }
.color-swatches span:nth-child(3) { background: #b3a18a; }
.color-swatches span:nth-child(4) { background: #c27b50; }
.color-swatches span:nth-child(5) { background: #583e36; }
.color-swatches span:nth-child(6) { background: #262f31; }

.rhythm-bars {
  align-items: center;
  gap: 6px;
}

.rhythm-bars span {
  width: 8px;
  background: var(--accent);
  height: 30px;
}

.rhythm-bars span:nth-child(3n) { height: 58px; }
.rhythm-bars span:nth-child(4n) { height: 15px; }
.rhythm-bars span:nth-child(5n) { height: 42px; }

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tags span {
  border: 1px solid #444943;
  padding: 8px 10px;
  font-size: 10px;
  color: #d3d7cd;
}

.workflow {
  margin-top: 70px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.workflow-steps span {
  border-top: 1px solid var(--accent);
  padding-top: 18px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

/* ==========================================================================
   10. PACKAGES
   ========================================================================== */
.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.package {
  background: #1e211e;
  padding: 30px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.package.featured {
  background: #293025;
  border: 1px solid var(--accent);
}

.package.trial-package {
  border: 1px solid var(--accent);
  background: #252b22;
}

.package-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  margin-bottom: 20px;
}

.package-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 15px;
}

.package-price strong {
  font-size: clamp(40px, 4vw, 55px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 600;
  color: var(--accent);
}

.package.featured .package-price strong {
  color: var(--cream);
}

.package-price span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}

.package > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.package ul {
  padding: 20px 0 25px;
  list-style: none;
  margin: 0;
  flex: 1;
  border-top: 1px solid #42483f;
}

.package li {
  padding: 10px 0;
  font-size: 13px;
  color: #b9bdb5;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  line-height: 1.4;
}

.package li:last-child {
  border-bottom: none;
}

.package > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  color: #141514;
  padding: 16px 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  transition: .3s;
}

.package.featured > a, .package > a:hover {
  background: var(--accent);
}

.package > a span {
  font-size: 20px;
}

.package-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 24px 0 0;
}

.package-note a {
  color: var(--cream);
  text-decoration: underline;
}

.trial-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--accent);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.popular-tag {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--cream);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   11. CONTACT SECTION
   ========================================================================== */
.contact {
  padding: 60px 5vw 0;
  background: var(--accent);
  color: #111510;
  scroll-margin-top: 80px;
}

.contact-top {
  border-bottom: 1px solid #53623d;
  padding-bottom: 20px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  margin-top: 70px;
  margin-bottom: 50px;
  align-items: start;
}

.contact-eyebrow {
  margin: 0 0 25px;
  font-size: 11px;
  letter-spacing: .13em;
  font-weight: 800;
}

.contact-eyebrow .status-dot {
  background: #111510;
  box-shadow: none;
}

.contact h2 {
  font-size: clamp(65px, 10vw, 150px);
  line-height: .89;
  letter-spacing: -.095em;
  font-weight: 600;
  margin: 0 0 40px;
}

.contact h2 em {
  color: #111510;
  font-family: Georgia, serif;
  font-weight: 400;
}

.services-list h3 {
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 800;
  margin-bottom: 15px;
  color: #53623d;
}

.services-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.5;
  padding: 10px 0;
  border-bottom: 1px solid #c4e06b;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.services-list li::before {
  content: '↗';
  margin-right: 10px;
  font-size: 14px;
  opacity: .6;
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.contact-big-link {
  border-top: 1px solid #596847;
  border-bottom: 1px solid #596847;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 0;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  transition: padding .3s, opacity .3s;
}

.contact-big-link:hover {
  padding-left: 10px;
  opacity: .8;
}

.contact-big-link i {
  font-size: 28px;
}

.contact-big-link i.bi-envelope {
  color: #111510;
}

.social-links-wrapper p {
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 800;
  margin-bottom: 15px;
  color: #53623d;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eae9e3;
  color: #111510;
  font-size: 22px;
  transition: all .3s ease;
}

.social-links a:hover {
  background: #111510;
  color: var(--accent);
  transform: translateY(-3px);
}

.contact footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 10px 0 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  border-top: 1px solid #596847;
}

.footer-brand {
  font-size: 24px;
  letter-spacing: -.07em;
}

.footer-brand span {
  color: #657d32;
}

/* ==========================================================================
   12. VIEWER & PRELOADER
   ========================================================================== */
.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 40px 5vw;
  background: rgba(11,13,11,0.95);
  backdrop-filter: blur(10px);
  color: var(--cream);
  border: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.viewer::backdrop {
  background: transparent;
}

.viewer-close {
  position: absolute;
  right: 5vw;
  top: 25px;
  border: 0;
  background: none;
  color: var(--cream);
  font-size: 12px;
  letter-spacing: .1em;
  cursor: pointer;
}

.viewer-media {
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.viewer-media img, .viewer-media video {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

.viewer-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
  font-weight: 700;
  letter-spacing: .1em;
}

.viewer-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 5px;
  max-width: 700px;
  text-align: center;
  line-height: 1.6;
}

.viewer:not([open]) {
  display: none;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #d5fa69;
  color: #101510;
  display: grid;
  place-items: center;
}

.pre-inner {
  width: min(1000px, 85vw);
}

.pre-kicker, .pre-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
}

.pre-word {
  font-size: clamp(65px, 11vw, 170px);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.105em;
  margin: 60px 0;
}

.pre-word > span {
  display: block;
}

.pre-word .orange {
  color: #465c28;
}

.pre-bottom {
  margin-bottom: 16px;
}

.pre-track {
  height: 2px;
  background: #8fac63;
}

.pre-fill {
  height: 100%;
  width: 0;
  background: #111510;
}

/* ==========================================================================
   13. MEDIA QUERIES
   ========================================================================== */

/* Max Width 1200px */
@media(max-width: 1200px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Max Width 1100px */
@media(max-width: 1100px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .expertise-feature {
    min-height: 390px;
  }
  .expertise-feature h3 {
    margin: 30px 0 15px;
  }
  .expertise-feature .pipeline, 
  .expertise-feature .color-swatches, 
  .expertise-feature .rhythm-bars {
    margin: 25px 0;
  }
  .about-layout {
    gap: 40px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .project, .project.wide, .project.narrow {
    grid-column: span 6;
  }
}

/* Max Width 760px */
@media(max-width: 760px) {
  .section {
    padding: 70px 22px;
    scroll-margin-top: 70px;
  }
  .site-header {
    padding: 10px 22px;
  }
  .desktop-nav, .header-contact {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .mobile-nav {
    position: fixed;
    z-index: 99;
    inset: 0;
    background: #151815;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 45px;
    gap: 15px;
    transform: translateY(-110%);
    transition: transform .5s;
  }
  .mobile-nav.open {
    transform: translateY(0);
  }
  .mobile-nav a {
    font-size: clamp(35px, 9vw, 60px);
    letter-spacing: -.07em;
    font-weight: 700;
  }
  
  /* --- FIXED HERO SECTION --- */
  .hero {
    height: auto;
    min-height: 550px; 
    padding-top: 140px;
    padding-bottom: 80px;
    padding-right: 20px;
    padding-left: 20px;
    display: flex;
    align-items: center; /* Centers content vertically */
  }
  .hero-topline {
    left: 22px;
    right: 22px;
    top: 80px; /* Adjusted from 100px to fit better */
    font-size: 8px;
  }
  .hero-topline span:last-child {
    display: none;
  }
  .hero-main {
    position: relative; /* Changed from absolute to relative */
    left: auto;
    right: auto;
    bottom: auto;
    top: auto; /* Removed the 166px top gap */
    width: 100%;
  }
  .hero h1 {
    font-size: clamp(65px, 15vw, 120px);
    margin-bottom: 25px;
  }
  .hero-lower {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
  .hero-lower p {
    font-size: 14px;
    max-width: 100%;
  }
  .round-link {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .hero-footer {
    left: 22px;
    right: 22px;
    bottom: 20px;
    font-size: 8px;
  }

  .section-heading-row {
    display: block;
    margin: 35px 0;
  }
  .section-heading-row h2 {
    font-size: clamp(60px, 13vw, 95px);
  }
  .section-heading-row p {
    margin-top: 20px;
  }
  .section-side {
    display: none;
  }
  .trust-bar {
    justify-content: center;
    padding: 15px 22px;
  }
  .trust-item {
    font-size: 10px;
    width: 45%;
  }
  .filter-row {
    gap: 20px;
  }
  .projects {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .project, .project.wide, .project.narrow {
    grid-column: span 1;
  }
  .project-media, .project.narrow .project-media {
    height: 260px;
  }
  .project-info h3 {
    font-size: 18px;
  }
  .work-bottom {
    font-size: 9px;
  }
  .statement {
    height: 550px;
  }
  .statement-content {
    left: 22px;
    right: 22px;
  }
  .statement h2 {
    font-size: clamp(62px, 12vw, 110px);
  }
  .about-layout {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .about-copy h2 {
    font-size: clamp(60px, 12vw, 100px);
  }
  .about-portrait {
    max-width: 500px;
  }
  .software-band {
    gap: 15px;
  }
  .software-icon {
    width: 58px;
    height: 58px;
  }
  .software-band h3 {
    font-size: 24px;
  }
  .software-band p {
    font-size: 11px;
  }
  .software-tag {
    display: none;
  }
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .package-grid {
    grid-template-columns: 1fr;
  }
  .package {
    min-height: auto;
    padding: 25px;
  }
  .contact {
    padding: 45px 22px 0;
    scroll-margin-top: 70px;
  }
  .contact h2 {
    font-size: clamp(60px, 11vw, 100px);
  }
  .contact footer {
    padding-top: 40px;
  }
  .pre-word {
    font-size: clamp(58px, 13vw, 100px);
  }
}
/* Max Width 420px */
@media(max-width: 420px) {

    .contact-big-link{
        padding: 4px 0;
    }
  .project-media, .project.narrow .project-media {
    height: 220px;
  }
  .hero h1 {
    font-size: 15vw;
  }
  .section-heading-row h2 {
    font-size: 13vw;
  }
  .expertise-feature {
    padding: 23px;
  }
  .pipeline {
    gap: 4px;
  }
  .pipeline span {
    font-size: 8px;
    padding: 8px 5px;
  }
  .viewer-media img, .viewer-media video {
    max-height: 50vh;
  }
}

/* Reduced Motion */
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .ticker-track {
    animation: none;
  }
}