/* ==========================================================================
   OROVOR.COM — STYLESHEET
   Minimalist light-theme product design portfolio for Amirul Hakim.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-english.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-rest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-english.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/outfit-rest-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg-page: #ffffff;
  --bg-muted: #f4f4f5;
  --ink-primary: #09090b;
  --ink-secondary: #18181b;
  --ink-muted: #52525b;
  --ink-subtle: #71717a;
  --border-hairline: #e4e4e7;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-pill: rgba(255, 255, 255, 0.78);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --radius-xl: 40px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;

  --marquee-standards-duration: 54.6s;
  --marquee-stack-duration: 75.4s;

  /* Emil Kowalski Motion Tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-reveal: 460ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: clip;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink-primary);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  padding-top: 40px;
  padding-bottom: 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-name {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

.brand-role {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.social-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--ink-subtle);
  transition:
    color var(--duration-fast) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  will-change: transform;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.social-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.social-icon-default {
  display: block;
  opacity: 1;
}

.social-icon-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.social-link:active {
  transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .social-link:hover {
    color: var(--ink-primary);
    background-color: rgba(9, 9, 11, 0.055);
    transform: translateY(-1.5px);
  }

  .social-link:hover .social-icon-default {
    opacity: 0;
  }

  .social-link:hover .social-icon-hover {
    opacity: 1;
  }
}

.social-link:focus-visible {
  color: var(--ink-primary);
}

.social-link:focus-visible .social-icon-default {
  opacity: 0;
}

.social-link:focus-visible .social-icon-hover {
  opacity: 1;
}

.social-link:focus-visible,
.floating-cta:focus-visible,
.project-card:focus-visible,
.lightbox-close:focus-visible {
  outline: 2px solid var(--ink-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Hero & Metrics
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: 72px;
  padding-bottom: 100px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-preline {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-primary);
}

.hero-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 16px;
  font-size: 64px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.hero-word-slot {
  position: relative;
  display: inline-grid;
  align-items: center;
  justify-items: end;
  overflow: hidden;
  vertical-align: bottom;
}

.hero-word {
  grid-area: 1 / 1;
  transition:
    transform 480ms var(--ease-out),
    opacity 360ms var(--ease-out),
    filter 420ms var(--ease-out);
  opacity: 0;
  transform: translateY(28%);
  filter: blur(5px);
  will-change: transform, opacity, filter;
}

.hero-word.is-active {
  opacity: 1;
  transform: translateY(0%);
  filter: blur(0);
}

.hero-word.is-leaving {
  opacity: 0;
  transform: translateY(-28%);
  filter: blur(5px);
}

.hero-word-artistic {
  background-image: linear-gradient(
    98deg,
    #1ebbff 0%,
    #389dff 10%,
    #537fff 18%,
    #6d61ff 26%,
    #8843ff 34%,
    #c343f4 46%,
    #ff43e9 58%,
    #ff62b2 69%,
    #ff817a 79%,
    #ff9f43 90%,
    #ffbe0c 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-word-artificial {
  color: var(--ink-primary);
}

.hero-media {
  width: 100%;
  max-width: 780px;
  margin-top: 20px;
  margin-bottom: 32px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.metrics-grid {
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  gap: 6px;
}

.metric-item + .metric-item {
  border-left: 1px solid var(--border-hairline);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
}

.metric-label {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.84px;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.metric-label-mobile {
  display: none;
}

/* --------------------------------------------------------------------------
   Shared Section Header
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.section-title {
  margin: 0;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.section-subtitle {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-secondary);
}

/* --------------------------------------------------------------------------
   Portfolio Section ("Let's Experience Talk.")
   -------------------------------------------------------------------------- */
.portfolio-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.portfolio-categories {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.portfolio-category {
  position: relative;
}

.category-sticky-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 24px;
  text-align: center;
}

.category-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
}

.category-items {
  display: flex;
  flex-direction: column;
}

.project-band {
  width: 100%;
  padding: 48px 24px;
}

.project-band--light {
  background-color: var(--bg-page);
}

.project-band--muted {
  background-color: var(--bg-muted);
}

.project-card {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: none;
  padding: 0;
  background: transparent;
  position: relative;
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out);
  will-change: transform;
}

.project-card--logo {
  background-color: var(--bg-page);
  padding: 48px;
}

.project-band--light .project-card--logo {
  background-color: var(--bg-muted);
}

.project-card:active {
  transform: scale(0.985);
  transition-duration: 110ms;
}

.project-card img,
.project-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xl);
  transition: transform 420ms var(--ease-out);
  will-change: transform;
}

.project-card--logo img {
  width: min(60%, 580px);
  height: auto;
  max-height: 140px;
  object-fit: contain;
  border-radius: 0;
}

.project-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  filter: blur(4px);
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out),
    filter var(--duration-base) var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px -16px rgba(9, 9, 11, 0.14);
  }

  .project-card:hover img,
  .project-card:hover video {
    transform: scale(1.015);
  }

  .project-card--logo:hover img {
    transform: scale(1.035);
  }

  .project-card:hover .project-badge {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.project-card:focus-visible .project-badge {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* --------------------------------------------------------------------------
   The Standards Section
   -------------------------------------------------------------------------- */
.standards-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.standards-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.pillar-stage {
  background-color: var(--bg-muted);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pillar-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pillar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pillar-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-primary);
}

.pillar-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Standards Design-System Marquee */
.ds-marquee {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ds-track {
  display: flex;
  gap: 12px;
  padding-right: 12px;
  width: max-content;
  animation: marquee-scroll var(--marquee-standards-duration) linear infinite;
}

.ds-marquee:hover .ds-track {
  animation-play-state: paused;
}

.ds-card {
  flex: 0 0 184px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.04);
}

.ds-card-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.ds-card-head img,
.ds-card-head svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Color swatches */
.ds-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ds-swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(9, 9, 11, 0.06);
}

/* Spacing rows */
.ds-spacing-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  font-size: 11px;
  color: var(--ink-subtle);
}

.ds-spacing-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-muted);
  padding: 4px 8px;
  border-radius: 5px;
}

.ds-spacing-item strong {
  color: var(--ink-primary);
  font-weight: 600;
}

/* Variables grid */
.ds-vars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ds-var-box {
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border-hairline);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-subtle);
}

/* Interaction dark panel */
.ds-interaction-panel {
  background: #52525b;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.ds-interaction-row {
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.92;
}

/* Shadow samples */
.ds-shadows {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  font-size: 10px;
  color: var(--ink-subtle);
}

.ds-shadow-box {
  height: 44px;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 6px;
}

.ds-shadow-s {
  box-shadow: 0 2px 5px rgba(9, 9, 11, 0.08);
}

.ds-shadow-m {
  box-shadow: 0 6px 12px rgba(9, 9, 11, 0.12);
}

.ds-shadow-l {
  box-shadow: 0 12px 22px rgba(9, 9, 11, 0.16);
}

/* Text styles */
.ds-text-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ds-text-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}

.ds-text-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg-muted);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-subtle);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Domains Section
   -------------------------------------------------------------------------- */
.domains-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 140px;
  overflow: hidden;
}

.domains-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.domains-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.domains-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.domains-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 840px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.domain-chip {
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--glass-pill);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(9, 9, 11, 0.05);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-primary);
  transition:
    transform var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .domain-chip:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(9, 9, 11, 0.08);
  }
}

/* --------------------------------------------------------------------------
   The Network Section
   -------------------------------------------------------------------------- */
.network-section {
  padding-top: 40px;
}

.architectural-frame {
  position: relative;
}

.frame-line {
  position: relative;
  width: 100%;
  height: 1px;
  background-color: var(--border-hairline);
}

.frame-dot {
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background-color: var(--ink-muted);
  transform: translateY(-50%);
}

.frame-dot-left {
  left: max(24px, calc(50% - 600px));
}

.frame-dot-right {
  right: max(24px, calc(50% - 600px));
}

.network-inner {
  position: relative;
  border-left: 1px solid var(--border-hairline);
  border-right: 1px solid var(--border-hairline);
  padding: 80px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

.eyebrow-heading {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

.eyebrow-mobile {
  display: none;
}

.network-logos {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 44px 56px;
}

.network-logo-item {
  flex: 0 0 calc((100% - 224px) / 5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.network-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.network-logo-default {
  display: block;
  max-height: 44px;
  max-width: 148px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.network-logo-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .network-logo-item:hover .network-logo-wrap {
    transform: scale(1.02);
  }

  .network-logo-item:hover .network-logo-default {
    opacity: 0;
  }

  .network-logo-item:hover .network-logo-hover {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   The Stack Section
   -------------------------------------------------------------------------- */
.stack-section {
  padding-top: 80px;
  padding-bottom: 160px;
}

.stack-header {
  margin-bottom: 40px;
}

.stack-marquee {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.stack-track {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-right: 20px;
  width: max-content;
  animation: marquee-scroll var(--marquee-stack-duration) linear infinite;
}

.stack-marquee:hover .stack-track {
  animation-play-state: paused;
}

.stack-item {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--duration-base) var(--ease-out);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .stack-item:hover {
    transform: translateY(-3px) scale(1.08);
  }
}

.stack-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
}

/* --------------------------------------------------------------------------
   Floating CTA ("Let's Collaborate")
   -------------------------------------------------------------------------- */
.floating-cta-wrap {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 32px;
  transform: translateX(-50%);
  z-index: 40;
}

.floating-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  min-width: 207px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background-color: var(--ink-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow:
    0 12px 28px rgba(9, 9, 11, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    background-color var(--duration-fast) var(--ease-out);
  will-change: transform;
}

.floating-cta:active {
  transform: scale(0.97);
}

.cta-default,
.cta-hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 240ms var(--ease-out),
    opacity 200ms var(--ease-out),
    filter 220ms var(--ease-out);
}

.cta-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-10px);
  filter: blur(4px);
}

@media (hover: hover) and (pointer: fine) {
  .floating-cta:hover {
    transform: translateY(-2px);
    box-shadow:
      0 18px 36px rgba(9, 9, 11, 0.28),
      0 1px 0 rgba(255, 255, 255, 0.12) inset;
  }

  .floating-cta:active {
    transform: scale(0.97);
  }

  .floating-cta:hover .cta-default {
    opacity: 0;
    transform: translateX(10px);
    filter: blur(4px);
  }

  .floating-cta:hover .cta-hover {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* --------------------------------------------------------------------------
   Native Lightbox Dialog
   -------------------------------------------------------------------------- */
.lightbox {
  padding: 0;
  border: none;
  border-radius: 24px;
  background: transparent;
  max-width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  width: 100%;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-hairline);
}

.lightbox-category {
  margin: 0 0 2px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ink-subtle);
}

.lightbox-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-primary);
}

.lightbox-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: #ffffff;
  color: var(--ink-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover {
  background-color: var(--bg-muted);
}

.lightbox-media {
  background: var(--bg-muted);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 150px);
}

.lightbox-media img,
.lightbox-media video {
  max-width: 100%;
  max-height: calc(100vh - 198px);
  width: auto;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Subtle Scroll-Reveal & Dialog Entrance (Emil Kowalski Craft)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity var(--duration-reveal) var(--ease-out),
    transform var(--duration-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

.lightbox[open] .lightbox-card {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition:
    opacity 200ms var(--ease-out),
    transform 220ms var(--ease-out);
}

@starting-style {
  .lightbox[open] .lightbox-card {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
}

.lightbox-close:active {
  transform: scale(0.93);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints (Tablet <= 1024px, Mobile <= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .brand-name {
    font-size: 24px;
  }

  .hero-preline {
    font-size: 20px;
  }

  .hero-title {
    font-size: 48px;
  }

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

  .section-subtitle {
    font-size: 18px;
  }

  .standards-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px;
  }

  .network-logo-item {
    flex: 0 0 calc((100% - 112px) / 3);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding-top: 28px;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-role {
    font-size: 12px;
  }

  .social-nav {
    justify-content: center;
    gap: 12px;
  }

  .hero-section {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .hero-preline {
    font-size: 18px;
  }

  .hero-title {
    font-size: 36px;
    column-gap: 10px;
  }

  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .metric-item {
    padding: 8px 6px;
  }

  .metric-value {
    font-size: 30px;
  }

  .metric-label {
    font-size: 11px;
    letter-spacing: 0.4px;
  }

  .metric-label-desktop {
    display: none;
  }

  .metric-label-mobile {
    display: inline;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  .category-sticky-header {
    padding: 20px 16px;
  }

  .category-title {
    font-size: 20px;
  }

  .project-band {
    padding: 24px 16px;
  }

  .project-card,
  .project-card img,
  .project-card video {
    border-radius: 20px;
  }

  .project-card--logo {
    padding: 28px;
  }

  .standards-section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .domains-section {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .domain-chip {
    padding: 10px 18px;
    font-size: 14px;
  }

  .eyebrow-heading {
    font-size: 16px;
  }

  .eyebrow-desktop {
    display: none;
  }

  .eyebrow-mobile {
    display: inline;
  }

  .network-inner {
    padding: 56px 20px;
    gap: 36px;
  }

  .network-logos {
    gap: 28px 20px;
  }

  .network-logo-item {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .network-logo-default {
    max-height: 36px;
    max-width: 124px;
  }

  .stack-section {
    padding-top: 56px;
    padding-bottom: 130px;
  }

  .floating-cta-wrap {
    left: 50%;
    right: auto;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ds-track,
  .stack-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-word,
  .project-card,
  .project-card img,
  .project-card video,
  .project-badge,
  .floating-cta,
  .cta-default,
  .cta-hover,
  .social-link,
  .domain-chip,
  .stack-item,
  .network-logo-wrap,
  .network-logo-item img {
    transition: none;
    filter: none;
  }
}
