:root {
  --bg: #030711;
  --bg-soft: #07111f;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #9ba9ba;
  --muted-strong: #c6d0dc;
  --accent: #42d7ff;
  --accent-deep: #1d7cff;
  --shadow: rgba(66, 215, 255, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(29, 124, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(66, 215, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #02050c 0%, var(--bg) 42%, #020409 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.32'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(244, 247, 251, 0.75);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
}

.cursor.is-active {
  width: 42px;
  height: 42px;
  border-color: rgba(66, 215, 255, 0.75);
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 40;
  width: min(calc(100% - 32px), 1240px);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  transform: translateX(-50%);
  transition: background 0.3s ease, border-color 0.3s ease, height 0.3s ease, top 0.3s ease;
}

.site-header.is-scrolled {
  top: 12px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(4, 10, 20, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.brand,
.nav-cta,
.main-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(66, 215, 255, 0.9), rgba(29, 124, 255, 0.2)),
    #0b1830;
  box-shadow: 0 0 26px rgba(66, 215, 255, 0.32);
}

.main-nav {
  gap: 28px;
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.main-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.button {
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta {
  min-height: 42px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.86rem;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 215, 255, 0.42);
  box-shadow: 0 14px 44px rgba(66, 215, 255, 0.15);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.section {
  position: relative;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 128px 0;
}

.hero {
  width: 100%;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas:
    "content panel"
    "meta panel";
  column-gap: clamp(28px, 4vw, 64px);
  row-gap: 20px;
  align-items: end;
  padding: 128px max(20px, calc((100vw - var(--max)) / 2)) 52px;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.hero::before {
  position: absolute;
  right: -8vw;
  top: 22vh;
  width: min(66vw, 980px);
  height: min(34vw, 420px);
  content: "";
  z-index: 0;
  border: 1px solid rgba(66, 215, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(66, 215, 255, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(66, 215, 255, 0.1) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(66, 215, 255, 0.14), transparent 62%);
  background-size: 26px 26px, 26px 26px, 100% 100%;
  filter: drop-shadow(0 0 42px rgba(66, 215, 255, 0.16));
  opacity: 0;
  pointer-events: none;
  transform: rotate(-8deg) skewX(-12deg);
}

.hero.no-three::before {
  opacity: 0.72;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 36%;
  content: "";
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-spotlight {
  position: absolute;
  z-index: 0;
  right: max(0px, calc((100vw - var(--max)) / 2 - 90px));
  top: 14vh;
  width: min(54vw, 680px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(66, 215, 255, 0.14), transparent 58%),
    conic-gradient(from 160deg, transparent, rgba(66, 215, 255, 0.18), transparent 42%);
  filter: blur(4px);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  grid-area: content;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(3.1rem, 4.35vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: 0;
}

.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word span {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform;
}

.split-rise {
  perspective: 900px;
}

.split-rise .word {
  padding-bottom: 0.04em;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-meta {
  position: relative;
  z-index: 3;
  grid-area: meta;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(620px, calc(100% - 40px));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero-meta div {
  padding: 15px 16px;
  background: rgba(4, 10, 20, 0.48);
}

.hero-meta span,
.panel-kicker {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 0 24px;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #02050c;
  border-color: transparent;
  box-shadow: 0 20px 60px rgba(29, 124, 255, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: relative;
  z-index: 3;
  grid-area: panel;
  align-self: end;
  width: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero-panel span,
.hero-panel p {
  color: var(--muted);
}

.hero-panel strong {
  display: block;
  margin: 8px 0;
  font-size: 1.18rem;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.panel-tags span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 800;
}

.scroll-indicator {
  display: none;
}

.scroll-indicator span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
  animation: scrollPulse 1.8s infinite;
}

@keyframes scrollPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  35%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 18px);
  }
}

.section-heading {
  max-width: 780px;
  margin-bottom: 56px;
}

.section-heading-wide {
  max-width: 980px;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 5.1rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.25rem;
}

p {
  line-height: 1.7;
}

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

.premium-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.expertise-card {
  grid-column: span 2;
}

.expertise-card:nth-child(4),
.expertise-card:nth-child(5) {
  grid-column: span 3;
}

.premium-card:hover,
.project-card:hover,
.value-item:hover {
  transform: translateY(-8px);
  border-color: rgba(66, 215, 255, 0.35);
  box-shadow: 0 24px 80px rgba(66, 215, 255, 0.12);
}

.card-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 72px;
  border: 1px solid rgba(66, 215, 255, 0.18);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(66, 215, 255, 0.07);
}

.premium-card p,
.project-content p,
.timeline-step p,
.about-copy p,
.cta-inner p,
.site-footer span {
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-card {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project-visual {
  position: relative;
  overflow: hidden;
  min-height: 330px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(66, 215, 255, 0.16), rgba(255, 255, 255, 0.04)),
    #071321;
}

.project-visual::before,
.project-visual::after {
  position: absolute;
  content: "";
  transition: transform 0.5s ease;
}

.project-visual::before {
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.project-visual::after {
  right: 12%;
  bottom: 14%;
  width: 42%;
  height: 42%;
  border-radius: 50%;
  filter: blur(22px);
  background: rgba(66, 215, 255, 0.3);
}

.browser-bar {
  position: absolute;
  left: 10%;
  top: 13%;
  z-index: 2;
  width: 62%;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.browser-bar::before {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 14px 0 0 rgba(255, 255, 255, 0.32), 28px 0 0 rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
}

.screen-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.screen-card-a {
  left: 12%;
  top: 29%;
  width: 48%;
  height: 42%;
}

.screen-card-b {
  right: 12%;
  bottom: 16%;
  width: 34%;
  height: 36%;
  background: linear-gradient(145deg, rgba(66, 215, 255, 0.2), rgba(255, 255, 255, 0.07));
}

.visual-two {
  background:
    linear-gradient(135deg, rgba(92, 255, 203, 0.12), rgba(255, 255, 255, 0.04)),
    #07131a;
}

.visual-three {
  background:
    linear-gradient(135deg, rgba(145, 116, 255, 0.14), rgba(66, 215, 255, 0.06)),
    #080d1d;
}

.project-card:hover .project-visual::before {
  transform: translate3d(14px, -12px, 0) scale(1.02);
}

.project-card:hover .project-visual::after {
  transform: translate3d(-22px, -16px, 0) scale(1.08);
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 8px;
}

.project-number {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border: 1px solid rgba(66, 215, 255, 0.2);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(66, 215, 255, 0.07);
}

.project-content h3 {
  margin: 4px 0 24px;
  font-size: clamp(1.9rem, 4vw, 3.8rem);
  line-height: 1;
}

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

.tags span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(210px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding: 26px 0 8px;
  scrollbar-width: none;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline::before,
.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  content: "";
}

.timeline::before {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-progress {
  width: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.timeline-step {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.timeline-step span {
  display: block;
  margin-bottom: 88px;
  color: var(--accent);
  font-weight: 800;
}

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

.about-copy p {
  max-width: 680px;
  font-size: 1.08rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.value-item {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 700;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.value-item span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), rgba(66, 215, 255, 0.05));
  box-shadow: 0 0 34px rgba(66, 215, 255, 0.22);
}

.final-cta {
  width: min(calc(100% - 40px), var(--max));
  padding-top: 60px;
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 7vw, 86px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(66, 215, 255, 0.22), transparent 24rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035));
}

.cta-glass {
  position: absolute;
  right: -86px;
  top: -96px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.cta-inner > *:not(.cta-glass) {
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  max-width: 920px;
}

.cta-inner p {
  max-width: 620px;
  margin: 24px 0 32px;
  font-size: 1.1rem;
}

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 36px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-strong);
}

.site-footer div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.reveal,
.reveal-card {
  opacity: 0;
}

@media (max-width: 960px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav.is-open {
    position: fixed;
    top: 84px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(4, 10, 20, 0.92);
    backdrop-filter: blur(18px);
  }

  .main-nav.is-open a {
    padding: 16px;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(420px, 100%);
    margin-top: 44px;
  }

  .hero-meta {
    position: relative;
    left: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "meta"
      "panel";
    align-items: start;
  }

  .scroll-indicator {
    display: none;
  }

  .hero-spotlight {
    width: 90vw;
    right: -28vw;
    top: 10vh;
  }

  .expertise-grid,
  .project-card,
  .about {
    grid-template-columns: 1fr;
  }

  .expertise-card,
  .expertise-card:nth-child(4),
  .expertise-card:nth-child(5) {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-title {
    font-size: clamp(2.8rem, 3.85vw, 4.45rem);
  }

  .hero-copy {
    max-width: 620px;
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-meta div {
    padding: 12px 14px;
  }

  .hero-panel {
    padding: 18px;
  }
}

@media (max-width: 640px) {
  .cursor {
    display: none;
  }

  .site-header {
    width: calc(100% - 20px);
    height: 62px;
    padding-left: 16px;
  }

  .section {
    width: min(calc(100% - 28px), var(--max));
    padding: 86px 0;
  }

  .hero {
    padding: 102px 14px 64px;
    align-items: start;
  }

  .hero-title {
    font-size: clamp(2.7rem, 13vw, 4.4rem);
    line-height: 0.96;
  }

  .hero-copy {
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .hero-meta strong,
  .brand {
    font-size: 0.86rem;
  }

  .hero-panel {
    padding: 18px;
  }

  .project-card {
    min-height: auto;
    padding: 12px;
  }

  .project-visual {
    min-height: 240px;
  }

  .project-content {
    padding: 12px 4px 8px;
  }

  .project-content h3 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .project-number {
    margin-bottom: 22px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Cuberto-inspired direction: editorial, bright, spacious, product-focused. */
:root {
  --bg: #f7f5ef;
  --bg-soft: #ebe7dc;
  --panel: rgba(17, 17, 17, 0.045);
  --panel-strong: rgba(17, 17, 17, 0.075);
  --line: rgba(17, 17, 17, 0.13);
  --text: #111111;
  --muted: #65645f;
  --muted-strong: #353532;
  --accent: #111111;
  --accent-deep: #111111;
  --shadow: rgba(17, 17, 17, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
}

.page-noise {
  opacity: 0.12;
  mix-blend-mode: multiply;
}

.cursor {
  border-color: rgba(17, 17, 17, 0.75);
  mix-blend-mode: difference;
}

.cursor.is-active {
  border-color: rgba(17, 17, 17, 0.9);
}

.site-header,
.site-header.is-scrolled {
  border-color: rgba(17, 17, 17, 0.1);
  background: rgba(247, 245, 239, 0.78);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.site-header {
  border: 1px solid transparent;
  border-radius: 999px;
}

.brand-mark {
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, #ffffff, transparent 28%),
    #111111;
  box-shadow: none;
}

.main-nav,
.nav-cta {
  color: var(--text);
}

.main-nav a::after {
  background: var(--text);
}

.nav-cta,
.button {
  border-color: rgba(17, 17, 17, 0.18);
  background: transparent;
  color: var(--text);
}

.nav-cta:hover,
.button:hover {
  border-color: rgba(17, 17, 17, 0.55);
  box-shadow: none;
}

.hero {
  min-height: 100svh;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  column-gap: clamp(42px, 6vw, 110px);
  padding: 128px max(32px, calc((100vw - var(--max)) / 2)) 54px;
  background:
    radial-gradient(circle at 74% 38%, rgba(17, 17, 17, 0.055), transparent 23rem),
    var(--bg);
  overflow: hidden;
}

#hero-canvas {
  opacity: 1;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 28%, #000 48%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, transparent 28%, #000 48%, #000 100%);
}

.hero::before,
.hero-spotlight {
  display: none;
}

.hero::after {
  height: 18%;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.eyebrow,
.hero-meta span,
.panel-kicker,
.card-icon,
.timeline-step span,
.project-number {
  color: var(--text);
}

.hero-title {
  max-width: 820px;
  font-size: clamp(3.7rem, 5.55vw, 6.7rem);
  line-height: 0.94;
  font-weight: 800;
}

.hero-title .word:nth-last-child(-n + 2) span {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.hero-copy {
  max-width: 700px;
  color: var(--muted-strong);
  font-size: clamp(1.04rem, 1.35vw, 1.28rem);
}

.button-primary {
  background: #111111;
  color: #f7f5ef;
  border-color: #111111;
  box-shadow: none;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  backdrop-filter: none;
}

.hero-meta,
.hero-panel,
.premium-card,
.project-card,
.timeline-step,
.value-item,
.cta-inner {
  border-color: rgba(17, 17, 17, 0.14);
  background: rgba(255, 255, 255, 0.34);
  color: var(--text);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

.hero-meta div {
  background: rgba(255, 255, 255, 0.28);
}

.hero-panel {
  align-self: center;
}

.hero-panel span,
.hero-panel p,
.premium-card p,
.project-content p,
.timeline-step p,
.about-copy p,
.cta-inner p,
.site-footer span {
  color: var(--muted);
}

h2 {
  font-size: clamp(3.4rem, 7vw, 8.2rem);
  line-height: 0.9;
}

.section {
  padding: 150px 0;
}

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

.expertise-grid {
  gap: 18px;
}

.premium-card {
  min-height: 280px;
  background: #ffffff;
}

.card-icon,
.project-number {
  border-color: rgba(17, 17, 17, 0.16);
  background: transparent;
}

.project-list {
  gap: 26px;
}

.project-card {
  min-height: 520px;
  border: 0;
  background: transparent;
  grid-template-columns: minmax(0, 1fr) 0.62fr;
  padding: 0;
}

.project-visual {
  min-height: 520px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.84), transparent 14rem),
    linear-gradient(135deg, #d9efe7, #a7c7e7);
}

.visual-two {
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 255, 255, 0.78), transparent 13rem),
    linear-gradient(135deg, #f0d8bf, #e7edcf);
}

.visual-three {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.72), transparent 12rem),
    linear-gradient(135deg, #d8d4f2, #bcd7dd);
}

.project-visual::before {
  border-color: rgba(17, 17, 17, 0.12);
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(17, 17, 17, 0.08) 1px, transparent 1px);
}

.project-visual::after {
  background: rgba(17, 17, 17, 0.15);
}

.browser-bar,
.screen-card {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.browser-bar::before {
  background: #111111;
  box-shadow: 14px 0 0 rgba(17, 17, 17, 0.32), 28px 0 0 rgba(17, 17, 17, 0.18);
}

.project-content {
  justify-content: center;
  padding: 32px 0 32px 26px;
}

.project-content h3 {
  font-size: clamp(2.6rem, 5.6vw, 6.4rem);
  font-weight: 800;
}

.tags span {
  border-color: rgba(17, 17, 17, 0.16);
  color: var(--text);
  background: transparent;
}

.timeline::before {
  background: rgba(17, 17, 17, 0.14);
}

.timeline-progress {
  background: linear-gradient(90deg, #111111, transparent);
}

.cta-inner {
  background: #111111;
  color: #f7f5ef;
}

.cta-inner p,
.cta-inner .eyebrow {
  color: rgba(247, 245, 239, 0.72);
}

.cta-inner .button-primary {
  background: #f7f5ef;
  color: #111111;
  border-color: #f7f5ef;
}

.site-footer {
  border-top-color: rgba(17, 17, 17, 0.14);
  color: var(--text);
}

@media (min-width: 961px) and (max-height: 820px) {
  .hero {
    padding-top: 108px;
  }

  .hero-title {
    font-size: clamp(3.25rem, 4.85vw, 5.7rem);
  }
}

@media (max-width: 960px) {
  .main-nav.is-open {
    background: rgba(247, 245, 239, 0.94);
  }

  .hero-title {
    font-size: clamp(3.7rem, 10vw, 6rem);
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-content {
    padding: 16px 0 0;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: clamp(2.95rem, 14vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.9rem, 13vw, 4.8rem);
  }

  .project-visual {
    min-height: 320px;
    border-radius: 20px;
  }
}

/* Final contrast pass: keep the Cuberto feel, but avoid an all-white page. */
body {
  background:
    linear-gradient(180deg, #f7f3e9 0%, #f1eadf 42%, #111111 42%, #111111 64%, #eee8dc 64%, #eee8dc 100%);
}

.hero.section {
  width: 100%;
  padding: 128px max(32px, calc((100vw - var(--max)) / 2)) 54px;
}

.hero {
  background:
    radial-gradient(circle at 75% 42%, rgba(17, 17, 17, 0.08), transparent 22rem),
    linear-gradient(135deg, #f7f3e9 0%, #eee6d8 100%);
}

.expertise {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  background: #eee6d8;
}

.projects {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  background: #111111;
  color: #f7f3e9;
}

.projects .eyebrow,
.projects .section-index,
.projects .project-number,
.projects .tags span {
  color: #f7f3e9;
}

.projects .project-content p {
  color: rgba(247, 243, 233, 0.64);
}

.projects .tags span,
.projects .project-number {
  border-color: rgba(247, 243, 233, 0.2);
}

.method {
  width: 100%;
  max-width: none;
  padding-right: max(24px, calc((100vw - var(--max)) / 2));
  padding-left: max(24px, calc((100vw - var(--max)) / 2));
  background: #dfe6dd;
}

.about,
.final-cta,
.site-footer {
  background: #eee8dc;
}

.hero-panel {
  max-width: 520px;
  width: min(520px, 100%);
  align-self: end;
  padding: clamp(24px, 3vw, 34px);
  border-color: rgba(17, 17, 17, 0.16);
  background:
    linear-gradient(135deg, rgba(247, 243, 233, 0.92), rgba(247, 243, 233, 0.66)),
    rgba(247, 243, 233, 0.72);
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.12);
}

.hero-meta {
  width: min(620px, 100%);
  background: rgba(247, 243, 233, 0.52);
}

.hero-panel strong {
  max-width: 420px;
  margin-top: 18px;
  font-size: clamp(1.45rem, 2.1vw, 2.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-panel p {
  max-width: 430px;
  margin: 18px 0 0;
  font-size: 1.02rem;
}

.panel-kicker {
  color: var(--muted);
}

.panel-dot {
  color: #111111;
}

.panel-tags span {
  border-color: rgba(17, 17, 17, 0.16);
  background: rgba(255, 255, 255, 0.38);
}

.premium-card {
  background: rgba(247, 243, 233, 0.72);
}

@media (min-width: 961px) and (max-height: 820px) {
  .hero.section {
    padding-top: 108px;
  }
}

@media (max-width: 960px) {
  .hero.section {
    padding: 110px 20px 64px;
  }
}
