/* Optimize font loading */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
/* =========================
   Variables (SCSS + CSS vars)
   ========================= */
:root {
  --bg: #0b1220;
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, .75);
  --line: #ffffff;
  --container: 1200px;
  --edge-pad: clamp(20px, 6vw, 40px);
  --header-height: 120px;
  /* Extended color vars */
  --primary: #AD08F0;
  --primary-2: #7B2FF2;
  --text-dark: #111;
  --surface: #ffffff;
  --surface-dark: #0a0f19;
  --border: #eee;
  --accent-blue: #0080FF;
  --section-gutter: clamp(20%, 22vw, 25%);
}

/* =========================
   Mixins
   ========================= */
/* Tablet-specific adjustments for section offset */
@media (min-width: 901px) and (max-width: 1200px) {
  :root {
    --section-gutter: clamp(12%, 16vw, 20%);
  }
}
/* ========================= Keyframes ========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========================= Reveal System (generic) ========================= */
:root {
  --reveal-duration: 0.6s;
  --reveal-delay: 0s;
}

.reveal,
[data-reveal] {
  opacity: 0;
  will-change: opacity, transform, clip-path;
  transition: opacity var(--reveal-duration) ease-out var(--reveal-delay), transform var(--reveal-duration) ease-out var(--reveal-delay), clip-path var(--reveal-duration) ease-out var(--reveal-delay);
}

.reveal.is-inview,
[data-reveal].is-inview {
  opacity: 1;
  transform: none;
  clip-path: none;
}

/* Variants */
[data-reveal=fade] {
  animation: fadeIn var(--reveal-duration) ease-out forwards;
}

[data-reveal=fade-up] {
  animation: fadeInUp var(--reveal-duration) ease-out forwards;
}

[data-reveal=fade-left] {
  animation: fadeInLeft var(--reveal-duration) ease-out forwards;
}

[data-reveal=fade-right] {
  animation: fadeInRight var(--reveal-duration) ease-out forwards;
}

[data-reveal=slide-up] {
  animation: riseIn var(--reveal-duration) ease-out forwards;
}

[data-reveal=scale-in] {
  transform: scale(0.96);
  transition: transform var(--reveal-duration) ease-out var(--reveal-delay);
}

[data-reveal=draw] {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--reveal-duration) ease-out var(--reveal-delay);
}

[data-reveal=wipe] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path var(--reveal-duration) ease-out var(--reveal-delay);
}

[data-reveal=draw].is-inview {
  transform: scaleX(1);
}

[data-reveal=wipe].is-inview {
  clip-path: inset(0 0 0 0);
}

.reveal-clip {
  overflow: hidden;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  [data-reveal] {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
@media (-webkit-min-device-pixel-ratio: 0) {
  [data-reveal=wipe] {
    width: 0;
    overflow: hidden;
    transition: width var(--reveal-duration) ease-out var(--reveal-delay);
    opacity: 1;
    display: block;
  }
  [data-reveal=wipe].is-inview {
    width: 100%;
  }
}
/* =========================
   Base / Global
   ========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.4;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: 120px;
}

@media (max-width: 900px) {
  .container-fluid {
    padding-inline: 24px;
  }
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding: 1em 1.75em;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
}

.btn:hover,
.btn:focus {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

/* =========================
   Form primitives (global)
   ========================= */
.form {
  width: 100%;
}

.form__row {
  margin-bottom: 1.5rem;
}

.form__row--full {
  grid-column: 1/-1;
}

.form label {
  display: block;
  font-size: 1rem;
  margin: 0 0 0.4rem;
  opacity: 0.9;
  font-weight: 500;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text-dark);
  outline: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, filter 0.25s ease;
}

/* Siri-like glow: animated, multi-color ring on hover/focus */
@keyframes siriGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(173, 8, 240, 0.45), 0 0 18px 4px rgba(8, 152, 240, 0.35), 0 0 42px 8px rgba(8, 240, 173, 0.25);
  }
  50% {
    box-shadow: 0 0 0 0 rgba(8, 152, 240, 0.55), 0 0 24px 6px rgba(8, 240, 173, 0.45), 0 0 56px 12px rgba(173, 8, 240, 0.35);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(173, 8, 240, 0.45), 0 0 18px 4px rgba(8, 152, 240, 0.35), 0 0 42px 8px rgba(8, 240, 173, 0.25);
  }
}
/* AI header glow keyframes */
@keyframes aiPulse {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.78;
  }
  35% {
    transform: translate(6px, -4px) scale(1.06) rotate(6deg);
    opacity: 0.9;
  }
  70% {
    transform: translate(-4px, 3px) scale(1.02) rotate(-4deg);
    opacity: 0.82;
  }
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.78;
  }
}
@keyframes aiDrift {
  0% {
    transform: translate(0, 0) scale(0.96) rotate(-6deg);
    opacity: 0.55;
  }
  50% {
    transform: translate(-8px, 5px) scale(1.04) rotate(6deg);
    opacity: 0.7;
  }
  100% {
    transform: translate(0, 0) scale(0.96) rotate(-6deg);
    opacity: 0.55;
  }
}
.form input:hover, .form textarea:hover,
.form input:focus, .form textarea:focus {
  border-color: var(--primary);
  animation: siriGlow 2.2s ease-in-out infinite;
}

/* =========================
   Header
   ========================= */
.site-header {
  min-height: var(--header-height);
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  background: transparent;
  transform: translateY(-20px);
  opacity: 0;
  /* Brand + animated logo swap (no size change) */
  /* AI corner glow behind the logo (global, corner-anchored) */
  /* Hamburger (hidden until scrolled) */
  /* Scrolled state toggles */
  /* Mobile menu styles */
  /* Desktop slide-in menu when header is scrolled */
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  width: 100%;
  padding-block: 40px;
  padding-inline: clamp(20px, 6vw, 40px);
}
.site-header .site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(20px, 5vw, 56px);
  margin: 0;
  padding: 0;
}
.site-header .site-nav a {
  display: inline-block;
  padding-block: 10px;
  padding-bottom: 4px;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  border-bottom: 2px solid transparent;
  opacity: 0.9;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.site-header .site-nav a:hover {
  opacity: 1;
}
.site-header .site-nav a.is-active {
  opacity: 1;
}
.site-header .site-nav a::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.site-header .site-nav a:hover::after, .site-header .site-nav a.is-active::after {
  transform: scaleX(1);
}
.site-header .brand {
  position: relative;
  display: inline-block;
  line-height: 0;
  min-width: 152px;
  /* reserve space to avoid nav shift */
  height: 44px;
  isolation: isolate;
  /* hidden by default */
}
.site-header .brand img {
  position: absolute;
  top: 50%;
  left: 0;
  height: 44px;
  width: auto;
  transform: translateY(-50%);
  transition: opacity 0.35s ease;
  z-index: 1;
}
.site-header .brand .logo-symbol {
  opacity: 0;
}
.site-header .brand::before {
  content: "";
  position: fixed; /* viewport-anchored so it always sits in the corner */
  top: -280px; /* aggressive crop for corner spill */
  left: -280px;
  width: 680px; /* large glow */
  height: 680px;
  pointer-events: none;
  z-index: 0; /* behind the logo images */
  filter: blur(22px);
  opacity: 0.85;
  background: radial-gradient(48% 48% at 50% 50%, rgba(173, 8, 240, 0.55) 0%, rgba(173, 8, 240, 0.26) 38%, rgba(173, 8, 240, 0) 72%), radial-gradient(36% 36% at 65% 35%, rgba(8, 167, 240, 0.36) 0%, rgba(8, 167, 240, 0) 62%);
  mix-blend-mode: screen;
  animation: aiPulse 16s ease-in-out infinite;
  transform-origin: 60% 60%;
}
.site-header .brand::after {
  content: "";
  position: fixed;
  top: -210px;
  left: -220px;
  width: 520px;
  height: 520px;
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
  opacity: 0.6;
  background: radial-gradient(42% 42% at 58% 40%, rgba(8, 167, 240, 0.36) 0%, rgba(8, 167, 240, 0) 62%), radial-gradient(32% 32% at 40% 65%, rgba(173, 8, 240, 0.4) 0%, rgba(173, 8, 240, 0) 70%);
  mix-blend-mode: screen;
  transform-origin: 50% 50%;
  animation: aiDrift 22s ease-in-out infinite;
}
.site-header .hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 60;
}
.site-header .hamburger span,
.site-header .hamburger span::before,
.site-header .hamburger span::after {
  display: block;
  background-color: var(--fg);
  position: absolute;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.site-header .hamburger span {
  top: 50%;
  transform: translateY(-50%);
}
.site-header .hamburger span::before {
  content: "";
  top: -8px;
}
.site-header .hamburger span::after {
  content: "";
  top: 8px;
}
.site-header .hamburger.is-active span {
  background-color: transparent;
}
.site-header .hamburger.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}
.site-header .hamburger.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
}
.site-header.scrolled .logo-full {
  opacity: 0;
}
.site-header.scrolled .logo-symbol {
  opacity: 1;
}
.site-header.scrolled .site-nav {
  display: none;
}
.site-header.scrolled .hamburger {
  display: block;
  margin-left: auto;
}
.site-header .nav-container {
  position: static;
  transition: none;
  z-index: 100;
  will-change: transform;
}
@media (max-width: 900px) {
  .site-header .nav-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100vw;
    max-width: 100%;
    background: rgba(10, 15, 25, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 18px rgba(173, 8, 240, 0.35), 0 0 32px rgba(8, 152, 240, 0.25), -2px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 48px 32px 32px 32px;
    opacity: 1;
    pointer-events: none;
  }
  .site-header .nav-container.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .site-header .site-nav ul {
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
  }
  .site-header .site-nav a {
    font-size: 2rem;
    font-weight: 200;
    color: var(--fg);
    border-bottom: none;
    padding: 0.25em 0;
    transition: color 0.2s;
  }
  .site-header .site-nav a:hover, .site-header .site-nav a.is-active {
    color: var(--primary);
  }
  .site-header .hamburger {
    display: block;
    position: absolute;
    top: 44px;
    right: 32px;
    z-index: 120;
  }
}
@media (min-width: 901px) {
  .site-header {
    /* Reuse the mobile look but constrain width */
  }
  .site-header.scrolled {
    /* Make links stack like mobile */
    /* Keep the hamburger visible while scrolled */
  }
  .site-header.scrolled .site-nav {
    display: block;
  }
  .site-header.scrolled .nav-container {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 35vw;
    max-width: 520px;
    min-width: 360px;
    background: rgba(10, 15, 25, 0.98);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 18px rgba(173, 8, 240, 0.35), 0 0 32px rgba(8, 152, 240, 0.25), -2px 0 24px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    /* prevent first-time flash when .scrolled is added */
    visibility: hidden;
    opacity: 0;
    transition: none; /* enable only when opening */
    display: flex;
    flex-direction: column;
    padding: 56px 36px 36px 36px;
    z-index: 100;
    pointer-events: none;
    will-change: transform;
  }
  .site-header.scrolled .nav-container.is-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.2s ease;
  }
  .site-header.scrolled .site-nav { /* disable underline bar for panel */ }
  .site-header.scrolled .site-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0 0 0;
    padding: 0;
  }
  .site-header.scrolled .site-nav a {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--fg);
    border-bottom: none;
    padding: 0.25em 0;
    transition: color 0.2s;
  }
  .site-header.scrolled .site-nav a:hover,
  .site-header.scrolled .site-nav a.is-active {
    color: var(--primary);
  }
  .site-header.scrolled .site-nav a::after {
    display: none;
  }
  .site-header.scrolled .hamburger {
    display: block;
    margin-left: auto;
    z-index: 999;
  }
}

/* Overlay for mobile menu */
@media (max-width: 900px) {
  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.45);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    z-index: 100;
  }
}
.menu-is-open .site-header.scrolled .site-nav {
  display: block;
}

/* =========================
   Footer Section
   ========================= */
.site-footer {
  background: var(--surface);
  color: var(--text-dark);
  padding: clamp(48px, 10vw, 48px) 0 24px 0;
  font-size: 1rem;
  border-top: 1px solid var(--border);
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}
.site-footer .footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.site-footer .footer__cta {
  text-align: left;
  margin-bottom: 2.5rem;
}
.site-footer .footer__cta .footer__title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  text-align: left;
}
.site-footer .footer__cta .btn {
  background: var(--text-dark);
  color: var(--surface);
  border-color: var(--text-dark);
  font-size: 1.1rem;
  padding: 1em 2em;
  margin-top: 1rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.site-footer .footer__cta .btn:hover,
.site-footer .footer__cta .btn:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}
.site-footer .footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.site-footer .footer__links .footer__col {
  align-self: start;
  font-size: 1rem;
  min-width: 0;
}
.site-footer .footer__links .footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer .footer__links .footer__col li {
  margin-bottom: 0.75em;
}
.site-footer .footer__links .footer__col a {
  color: var(--primary);
  transition: color 0.2s;
}
.site-footer .footer__links .footer__col a:hover {
  color: var(--primary-2);
}
.site-footer .footer__links .footer__col strong {
  font-weight: 600;
  color: var(--text-dark);
  display: block;
  margin-bottom: 0.5em;
}
.site-footer .footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.site-footer .footer__meta .footer__review {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1rem;
  color: var(--text-dark);
}
.site-footer .footer__meta .footer__review img {
  height: 24px;
  vertical-align: middle;
}
.site-footer .footer__meta .footer__review span {
  font-size: 1rem;
}
.site-footer .footer__meta .footer__contact {
  font-size: 1rem;
}
.site-footer .footer__meta .footer__contact a {
  color: var(--text-dark);
  text-decoration: underline;
  margin-bottom: 0.25em;
  display: block;
  transition: color 0.2s;
}
.site-footer .footer__meta .footer__contact a:hover {
  color: var(--primary);
}
.site-footer .footer__bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.site-footer .footer__bottom a {
  color: var(--primary);
  text-decoration: underline;
  margin: 0 1em;
  transition: color 0.2s;
}
.site-footer .footer__bottom a:hover {
  color: var(--primary-2);
}
.site-footer .site-footer .footer__bottom > :first-child {
  text-align: left;
}
.site-footer .site-footer .footer__bottom > :nth-child(2) {
  text-align: center;
}
.site-footer .site-footer .footer__bottom > :last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .site-footer .footer__inner {
    padding: 0 12px;
    gap: 0rem;
  }
  .site-footer .footer__links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .site-footer .footer__links {
    margin-bottom: 1.5rem;
  }
  .site-footer .footer__bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    gap: 0.5rem;
    padding-top: 1rem;
    margin-top: 1rem;
    text-align: center;
    flex-wrap: wrap;
  }
  .site-footer .footer__bottom a {
    margin: 0;
  }
}
@media (max-width: 900px) {
  .site-header .brand::before {
    top: -140px;
    left: -140px;
    width: 420px;
    height: 420px;
    filter: blur(20px);
    opacity: 0.8;
  }
  .site-header .brand::after {
    top: -160px;
    left: -170px;
    width: 380px;
    height: 380px;
    filter: blur(20px);
    opacity: 0.58;
  }
}
/* =========================
   Common Layout & Utilities
   ========================= */
/* Utilities */
.u-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.u-text-muted {
  color: var(--muted);
}

.u-rule {
  height: 2px;
  background: var(--fg);
  opacity: 0.9;
}

/* A11y: screen-reader-only utility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; /* prevent line breaks */
  border: 0;
}

/* Make hidden text visible when focused (e.g., skip links) */
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
}

/* =========================
   Section Primitives (generic)
   ========================= */
.section, .work {
  position: relative;
}
.section--offset-left, .work--case {
  padding-top: 72px;
  /* space for sticky label so it doesn't appear over previous section */
  /* Define reusable offsets */
  /* big design gutter on the left */
  --edge-pad: clamp(20px, 6vw, 40px);
  /* aligns with header/logo padding */
  padding-left: var(--edge-pad);
  padding-right: clamp(16px, 6vw, 80px);
  margin-top: clamp(48px, 10vh, 120px);
  margin-bottom: clamp(48px, 10vh, 120px);
  /* Offset only the inner content, not the left label */
}
.section--offset-left > :not(.section__label):not(.section-label), .work--case > :not(.section__label):not(.section-label) {
  margin-left: var(--section-gutter);
}
.section__label {
  position: sticky;
  top: calc(var(--header-height) + 144px);
  /* below fixed header */
  left: calc(var(--edge-pad) + 10px);
  /* align with logo edge */
  transform: rotate(-90deg);
  transform-origin: left top;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: #ccc;
  height: 0;
  /* prevents extra block height */
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
}
.section__header {
  max-width: 1200px;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.section__header h2 {
  margin: 0 0 12px 0;
  font-weight: 400;
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 32ch;
  /* ~2 lines desktop */
}
.section__header .lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
}
.section__footer {
  margin-top: 2.5rem;
  text-align: left;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 900px) {
  .section--offset-left, .work--case {
    padding-left: 24px;
    padding-right: 24px;
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .section--offset-left > :not(.section__label):not(.section-label), .work--case > :not(.section__label):not(.section-label) {
    margin-left: 0;
  }
  .section__label {
    position: static;
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 8px;
    left: auto;
    height: auto;
  }
}
/* =========================
   Reduced motion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .site-header {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  /* shared baseline for line/title/subtitle offsets */
  --hero-floor: clamp(100px, 12vh, 120px);
  padding-block: clamp(120px, 15vh, 220px) 14vh;
  overflow: hidden;
  /* Smaller SEO H1 variant (kept for semantics, styled down) */
  /* Big descriptive subtitle shown below the small H1 */
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__lcp {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.hero__media.is-video-ready .hero__lcp {
  display: none;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease var(--reveal-delay, 0s);
}
.hero__video.is-inview {
  opacity: 1;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 50% 20%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 60%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
.hero__inner {
  width: 100%;
  margin-left: var(--edge-pad, 40px);
  overflow: hidden;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.hero__line {
  position: absolute;
  bottom: var(--hero-floor);
  left: var(--edge-pad, 40px);
  right: 0;
  color: var(--line);
}
.hero__title {
  font-weight: 300;
  font-size: clamp(49px, 10vw, 145px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0; /* spacing handled by gap/margins */
  position: static; /* no absolute positioning */
}
.hero__title.hero__title--small {
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.95;
}
.hero__subtitle {
  margin: 0 0 8px 0;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 6.8vw, 104px);
  position: static; /* no absolute positioning */
}

/* =========================
   Single Work (Case) Section
   ========================= */
.work {
  /* sticky vertical label already handled via .section__label */
  /* Reveal hooks (use .reveal + data-reveal) */
}
.work .section__header {
  margin-bottom: 6rem;
}
.work__item {
  margin-bottom: 6rem;
}
.work__meta {
  /* top strip with title, description, KPI */
  position: relative;
  /* animated top rule (line) */
  padding: clamp(14px, 2.2vw, 22px);
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  /* title | copy | KPI */
  align-items: start;
  column-gap: clamp(12px, 2vw, 28px);
  /* ensure the inner offset (from .section--offset-left mixin) applies */
}
.work__meta .rule {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--fg);
  opacity: 0.9;
  transform: scaleX(0);
  transform-origin: left center;
}
.work__meta::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--fg);
  opacity: 0.9;
  transform-origin: left center;
  transform: scaleX(0);
}
.work__meta > * {
  opacity: 0;
  transform: translateY(14px);
  margin: 0;
}
.work__meta .work__title {
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.work__meta .work__copy {
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 40ch;
}
.work__meta .work__kpi {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  max-width: 300px; /* keep it compact */
  /* allow wrapping after first line */
  text-align: left;
  min-width: 0; /* allow children to shrink/wrap */
}
.work__meta .work__kpi strong {
  font-size: 3rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}
.work__meta .work__kpi span {
  font-size: 1rem;
  line-height: 1.4;
  flex: 1 1 auto; /* sit on the same line, then wrap */
  min-width: 0; /* enable soft-wrapping of long text */
}
.work__media {
  position: relative;
  margin-top: clamp(16px, 3vh, 28px);
  /* keep the media spanning the full section width (supports link-wrapped imgs) */
  /* colored diagonal overlays */
}
.work__media .work__media-link {
  display: block;
  line-height: 0; /* remove inline-gap under images */
  border-radius: 6px;
  overflow: hidden; /* clip image corners */
}
.work__media img {
  width: 100%;
  height: auto;
  display: block;
}
.work__media::before, .work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.work__media::before {
  background: linear-gradient(120deg, rgba(173, 8, 240, 0.55) 0%, rgba(173, 8, 240, 0) 40%);
  clip-path: polygon(65% 0, 100% 0, 100% 100%, 50% 100%);
}
.work__media::after {
  background: linear-gradient(300deg, rgba(0, 128, 255, 0.45) 0%, rgba(0, 128, 255, 0) 50%);
  clip-path: polygon(0 0, 35% 0, 55% 100%, 0 100%);
}
.work__media:hover::before, .work__media:hover::after {
  opacity: 0.85;
}
.work .work__meta::before {
  /* will be animated by [data-reveal="draw"] proxy element */
}
.work .work__media::before,
.work .work__media::after {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.work .work__media .reveal.is-inview + .overlay-on {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .work__meta {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding-left: 0;
    background-color: transparent;
  }
  .work__meta .work__kpi {
    text-align: left;
    display: flex;
  }
  .work__meta .work__kpi strong {
    font-size: 1.5rem;
  }
  .work__meta .work__kpi span {
    font-size: 0.7rem;
    color: var(--muted);
  }
}
/* =========================
   Showcase
   ========================= */
.showcase {
  min-height: 100svh;
  /* Cards */
}
.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  justify-content: start;
  margin-left: unset;
  /* allow section offset rule to apply */
}
.showcase .card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 0;
  margin: 0;
}
.showcase .card figure {
  margin: 0;
  position: relative;
  width: 100%;
  height: 100%;
}
.showcase .card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  /* Use the generic reveal system */
}
.showcase .card img.reveal {
  clip-path: inset(0 100% 0 0);
}
.showcase .card figcaption h3 {
  margin: 10px 0 6px 0;
  font-weight: 500;
  font-size: clamp(18px, 1.84vw, 23px);
}
.showcase .card figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.2vw, 16px);
}

/* =========================
   About Section
   ========================= */
.about {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.about__media .about__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  mix-blend-mode: multiply;
  transition: opacity 1.2s ease;
}
.about__media .about__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(173, 8, 240, 0.7) 0%, rgba(123, 47, 242, 0.7) 100%);
  pointer-events: none;
  z-index: 1;
}
.about__inner {
  position: relative;
  z-index: 2;
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 120px) 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}
.about__line {
  width: 100%;
  margin-bottom: 2rem;
  color: #fff;
}
.about__line svg {
  width: 100%;
  height: 2px;
  display: block;
  stroke: #fff;
}
.about__title {
  font-weight: 300 !important;
  font-size: clamp(32px, 5vw, 4.2rem) !important;
  line-height: 1.2 !important;
  max-width: 40ch;
  margin-bottom: 2.5rem;
  letter-spacing: -0.015em !important;
}
.about__marquee {
  width: 100%;
  overflow: hidden;
  margin-top: 2.5rem;
  background: none;
}
.about__logos {
  --marquee-speed: 18s;
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  animation: marquee var(--marquee-speed) linear infinite;
}
.about__logos img {
  height: 150px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.about__logos img:hover {
  opacity: 1;
}

/* Marquee keyframes */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 900px) {
  .about {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    padding: 40px 24px 40px 24px;
  }
  .about__inner {
    position: relative;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    padding-top: 20px;
  }
  .about__logos {
    --marquee-speed: 2s;
    gap: clamp(20px, 4vw, 40px);
    will-change: transform;
  }
  .about__logos img {
    height: 120px;
  }
  .about__inner .section__label {
    display: block;
    margin-bottom: 16px;
    margin-left: 0;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: #AD08F0;
    letter-spacing: 0.15em;
    position: relative;
    top: 0;
    left: 0;
  }
}
@media (max-width: 900px) {
  .showcase__grid {
    grid-template-columns: 1fr;
    margin-left: 0;
    gap: clamp(90px, 10vw, 140px);
  }
}
.work__media-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =========================
   CTA Section (above footer)
   ========================= */
.footer-cta {
  margin-top: 0;
  margin-bottom: 0;
  padding: clamp(3rem, 6vw, 6rem) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dark);
}
.footer-cta__inner {
  position: relative;
}
.footer-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.footer-cta__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 500;
  /* inherits dark text */
}
.footer-cta__text {
  font-size: 1.2rem;
  opacity: 0.85;
  max-width: 40ch;
  color: var(--text-dark);
}
.footer-cta__contact {
  font-size: 1.1rem;
  margin: 0.5rem;
}
.footer-cta__contact a {
  text-decoration: underline;
}
.footer-cta__contact a:hover {
  color: var(--primary);
}
.footer-cta__form {
  width: 100%;
}
.footer-cta .btn {
  background: var(--text-dark);
  color: var(--surface);
  border-color: var(--text-dark);
  width: 100%;
  text-align: center;
}
.footer-cta .btn:hover,
.footer-cta .btn:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--surface);
}

/* Responsive tweaks for CTA */
@media (max-width: 900px) {
  .footer-cta__grid {
    grid-template-columns: 1fr;
  }
  .footer-cta__text {
    max-width: 60ch;
  }
}

/*# sourceMappingURL=styles.css.map */
