/* ============================================================
   AragvelliPalazzolo — Jack, 3D Creator
   ============================================================ */

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

html,
body {
  background: #0C0C0C;
  font-family: 'Kanit', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: clip;
}

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

a {
  text-decoration: none;
}

.page {
  background: #0C0C0C;
  overflow-x: clip;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Shared gradient heading */
.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Scroll reveal (FadeIn) ---------- */
[data-fade] {
  opacity: 0;
  transform: translate(var(--fx, 0px), var(--fy, 30px));
  transition-property: opacity, transform;
  transition-duration: var(--fade-duration, 0.7s);
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: var(--fade-delay, 0s);
}

[data-fade].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   1. HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background: #000000;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #000000;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* ---------- Liquid glass ---------- */
.liquid-glass {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.055) 46%, rgba(0, 0, 0, 0.08) 100%),
    rgba(18, 22, 26, 0.18);
  background-blend-mode: screen, normal;
  backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(180%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.liquid-glass::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 1px;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.22),
    inset 0 9px 18px rgba(255, 255, 255, 0.025),
    inset 0 -10px 18px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.navbar {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  align-self: center;
  margin-top: 1rem;
  padding: 0.6rem 1.75rem;
  border-radius: 9999px;
  position: relative;
  z-index: 30;
  max-width: calc(100% - 3rem);
}

.navbar > :not(.navbar-selection) {
  position: relative;
  z-index: 1;
}

.navbar-selection {
  --selection-x: 0px;
  --selection-y: 0px;
  --selection-w: 0px;
  --selection-h: 0px;
  display: none;
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: var(--selection-w);
  height: var(--selection-h);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  opacity: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.012) 55%, rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 15, 0.06);
  backdrop-filter: blur(10px) saturate(165%) brightness(1.03);
  -webkit-backdrop-filter: blur(10px) saturate(165%) brightness(1.03);
  box-shadow:
    0 7px 20px rgba(0, 0, 0, 0.14),
    0 2px 6px rgba(0, 0, 0, 0.12),
    inset 0 1px 1px rgba(255, 255, 255, 0.24),
    inset 0 -1px 1px rgba(255, 255, 255, 0.035),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  transform: translate3d(var(--selection-x), var(--selection-y), 0);
  transition:
    opacity 170ms ease,
    transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
    width 460ms cubic-bezier(0.16, 1, 0.3, 1),
    height 460ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 260ms ease;
  will-change: transform, width, height, opacity;
  pointer-events: auto;
  cursor: pointer;
}

.navbar > .navbar-selection {
  position: absolute;
  z-index: 0;
}

.navbar-selection::before,
.navbar-selection::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
}

.navbar-selection::before {
  background: linear-gradient(105deg, transparent 28%, rgba(255, 255, 255, 0.075) 49%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.28;
}

.navbar-selection::after {
  box-shadow:
    inset 0 0 8px rgba(255, 255, 255, 0.045),
    inset 7px 0 12px rgba(255, 255, 255, 0.018),
    inset -7px 0 12px rgba(0, 0, 0, 0.04);
}

.navbar-selection.is-seeding {
  transition: none;
}

.navbar-selection.is-introducing::before {
  animation: navbar-bubble-bloom 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes navbar-bubble-bloom {
  0% {
    opacity: 0;
    transform: scale(0.46);
  }
  48% {
    opacity: 0.42;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.28;
    transform: scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .navbar-selection {
    display: block;
  }

  .navbar.has-selection .navbar-selection {
    opacity: 1;
  }
}

.navbar a {
  flex: 0 0 auto;
}

.navbar-logo {
  height: 1.75rem;
  width: auto;
  flex: 0 0 auto;
  margin-right: 0.5rem;
}

@media (min-width: 768px) {
  .navbar-logo {
    height: 2.1rem;
  }
}

.hero-heading-wrap,
.hero-bottom {
  position: relative;
  z-index: 20;
}

.hero-heading-line {
  display: block;
}

.hero-heading-shiny {
  background: linear-gradient(100deg, #64CEFB 40%, #ffffff 50%, #64CEFB 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hero-shine-sweep 3s linear infinite;
}

@keyframes hero-shine-sweep {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.navbar a {
  color: rgba(242, 247, 250, 0.92);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.875rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.navbar a:hover {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}

.navbar a.is-bubble-active {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.32);
}

.hero-heading-wrap {
  overflow: hidden;
  width: 100%;
}

h1.hero-heading {
  font-size: 11.5vw;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
}

.hero-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 1.5rem 1.75rem;
  position: relative;
  z-index: 20;
}

.hero-tagline {
  color: #D7E2EA;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  line-height: 1.35;
  font-size: clamp(0.75rem, 1.4vw, 1.5rem);
  max-width: 160px;
}

.hero-heading-wrap h1.hero-heading {
  line-height: 0.9;
  letter-spacing: 0.015em;
}

/* ---------- Buttons ---------- */
.btn-contact {
  display: inline-block;
  border-radius: 9999px;
  background: linear-gradient(123deg, #18011F 7%, #B600A8 37%, #7621B0 72%, #BE4C00 100%);
  box-shadow: 0px 4px 4px rgba(181, 1, 167, 0.25), 4px 4px 12px #7721B1 inset;
  outline: 2px solid #FFFFFF;
  outline-offset: -3px;
  color: #FFFFFF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: transform 200ms ease;
}

.btn-contact:hover {
  transform: translateY(-2px);
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background: #000000;
  color: #FFFFFF;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.btn-hero-cta:hover {
  background: #1a1a1a;
}

.btn-hero-arrow {
  display: inline-block;
  transition: transform 200ms ease;
}

.btn-hero-cta:hover .btn-hero-arrow {
  transform: translateX(4px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.contact-info-name {
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  opacity: 0.65;
}

.contact-info-item {
  color: #D7E2EA;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(0.8rem, 1.4vw, 1.05rem);
  white-space: nowrap;
  transition: opacity 200ms ease;
}

.contact-info-item:hover {
  opacity: 0.7;
}

.about .contact-info {
  align-items: center;
}

.btn-live {
  display: inline-block;
  border-radius: 9999px;
  border: 2px solid #D7E2EA;
  color: #D7E2EA;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: background-color 200ms ease;
}

.btn-live:hover {
  background: rgba(215, 226, 234, 0.1);
}

/* ============================================================
   2. MARQUEE
   ============================================================ */

.marquee {
  background: #0C0C0C;
  padding: 6rem 0 2.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.marquee-row {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  will-change: transform;
}

.marquee-track img {
  width: 420px;
  height: 270px;
  flex: 0 0 auto;
  border-radius: 1rem;
  object-fit: cover;
  background: #141414;
}

/* ============================================================
   3. ABOUT
   ============================================================ */

.about {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 5rem 1.25rem;
  overflow: hidden;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.about-heading {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
}

.about-text {
  color: #D7E2EA;
  font-weight: 500;
  text-align: center;
  line-height: 1.625;
  max-width: 560px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

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

.about-text .char {
  position: relative;
  display: inline-block;
  white-space: pre;
}

.about-text .char-ghost {
  opacity: 0;
}

.about-text .char-fill {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0.2;
}

.about .deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.deco-tl {
  width: 120px;
  top: 4%;
  left: 1%;
}

.deco-bl {
  width: 100px;
  bottom: 8%;
  left: 3%;
}

.deco-tr {
  width: 120px;
  top: 4%;
  right: 1%;
}

.deco-br {
  width: 130px;
  bottom: 8%;
  right: 3%;
}

/* ============================================================
   4. SERVICES
   ============================================================ */

.services {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  padding: 5rem 1.25rem;
}

.services-heading {
  color: #0C0C0C;
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  line-height: 1;
  margin-bottom: 2rem;
}

.services-list {
  max-width: 64rem;
  margin: 0 auto;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2rem 0;
}

/* The heading already carries the section's breathing room above it. */
.service-item:first-child {
  padding-top: 0;
}

.service-item + .service-item {
  border-top: 1px solid rgba(12, 12, 12, 0.15);
}

.service-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.35rem;
}

.service-name {
  color: #0C0C0C;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(1rem, 2.2vw, 2.1rem);
  line-height: 1.1;
}

.service-desc {
  color: #0C0C0C;
  font-weight: 300;
  line-height: 1.625;
  max-width: 42rem;
  font-size: clamp(0.85rem, 1.6vw, 1.25rem);
  opacity: 0.6;
}

.service-typewriter-field {
  position: relative;
  display: block;
}

.service-typewriter-reserve {
  visibility: hidden;
}

.service-typewriter-output {
  position: absolute;
  inset: 0;
  display: block;
}

.service-typewriter-output::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.86em;
  margin-left: 0.1em;
  border-radius: 999px;
  background: currentColor;
  opacity: 0;
  transform: translateY(0.06em);
}

.service-typewriter-field.is-typing .service-typewriter-output::after {
  opacity: 0.78;
  animation: service-cursor-blink 700ms steps(1, end) infinite;
}

.service-typewriter-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes service-cursor-blink {
  0%,
  48% {
    opacity: 0.78;
  }

  49%,
  100% {
    opacity: 0;
  }
}

/* ============================================================
   5. PROJECTS
   ============================================================ */

.projects {
  position: relative;
  z-index: 10;
  background: #0C0C0C;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -2.5rem;
  padding: 5rem 1.25rem 5rem;
}

.projects-heading {
  font-size: clamp(3rem, 12vw, 160px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 1.25rem;
}

.projects-lead {
  color: #D7E2EA;
  opacity: 0.55;
  font-weight: 300;
  text-align: center;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 auto 3.5rem;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
}

/* ---------- Showcase: one large preview, one index of demos ----------
   The list carries the browsing, so adding demos lengthens a quiet column
   instead of adding another full-height card to the page. */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* The preview leads on narrow screens: the index below it is the control. */
.showcase-stage {
  order: -1;
  min-width: 0;
}

.showcase-window {
  border-radius: 22px;
  border: 1px solid rgba(215, 226, 234, 0.22);
  background: #101010;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

/* ---------- Live preview ---------- */
/* Portrait on phones, desktop-shaped from tablets up — JS renders the demo
   at a real viewport width and scales it to fit, so the embed reads as the
   site it is rather than a squeezed column. */
.showcase-viewport {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #141414;
  overflow: hidden;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms ease;
}

.showcase-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* Fills the panel exactly, at 1:1 — no transform, so the demo rasterises at
   the display's own resolution. The surplus width parks the embedded site's
   own scrollbar outside the panel, where overflow crops it. */
.showcase-iframe {
  width: calc(100% + 22px);
  height: 100%;
  border: 0;
  display: block;
  background: #141414;
  /* Re-armed by the shield: an embedded site must not swallow page scroll
     until the visitor deliberately steps into it. */
  pointer-events: none;
}

.showcase-slide.is-interactive .showcase-iframe {
  pointer-events: auto;
}

.showcase-shield {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 200ms ease;
  text-decoration: none;
}

.showcase-shield:hover {
  background: rgba(12, 12, 12, 0.25);
}

.showcase-shield span {
  background: rgba(12, 12, 12, 0.8);
  color: #D7E2EA;
  border: 1px solid rgba(215, 226, 234, 0.3);
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.showcase-slide.is-interactive .showcase-shield {
  display: none;
}

/* ---------- Open slot ---------- */
.showcase-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  border: 1px dashed rgba(215, 226, 234, 0.25);
  border-radius: 16px;
}

.showcase-empty p {
  color: #D7E2EA;
  opacity: 0.5;
  font-weight: 300;
  text-align: center;
  max-width: 26ch;
  line-height: 1.5;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  padding: 0 1.5rem;
}

/* ---------- Index ---------- */
.showcase-index {
  min-width: 0;
}

.showcase-index ol {
  list-style: none;
}

.showcase-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: #D7E2EA;
  opacity: 0.45;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  padding-bottom: 0.9rem;
}

.showcase-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0.5rem 1rem 0.75rem;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(215, 226, 234, 0.14);
  color: #D7E2EA;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 250ms ease, padding-left 250ms ease;
}

.showcase-index li:last-child .showcase-item {
  border-bottom: 1px solid rgba(215, 226, 234, 0.14);
}

/* The rail marks the selected demo without adding another border to scan. */
.showcase-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  bottom: 0.85rem;
  width: 2px;
  border-radius: 2px;
  background: #D7E2EA;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-item:hover,
.showcase-item:focus-visible {
  opacity: 0.8;
}

.showcase-item.is-active {
  opacity: 1;
  padding-left: 1.25rem;
}

.showcase-item.is-active::before {
  transform: scaleY(1);
}

.showcase-num {
  flex: none;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  min-width: 2.1ch;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.showcase-category {
  opacity: 0.6;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
}

.showcase-name {
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  line-height: 1.15;
}

.showcase-foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.75rem;
}

@media (min-width: 700px) {
  .showcase-viewport {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 1000px) {
  .showcase {
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  /* Index left, preview right — and the preview holds still while the index
     is read. */
  .showcase-stage {
    order: 0;
    position: sticky;
    top: 5.5rem;
  }

  .showcase-window {
    border-radius: 26px;
  }

  /* The panel takes every pixel of width on offer and fills the fold, so the
     ratio is dropped rather than capped — capping the height of a box that
     still carries an aspect-ratio transfers straight back into its width and
     leaves dead space beside the preview. A pinned panel also can't be taller
     than the viewport, which is what the fold-height sets. */
  .showcase-viewport {
    aspect-ratio: auto;
    height: calc(100vh - 9rem);
    min-height: 420px;
  }
}

/* ============================================================
   RESPONSIVE — sm (640px+)
   ============================================================ */

@media (min-width: 640px) {
  h1.hero-heading {
    font-size: 12.5vw;
    margin-top: 1rem;
  }

  .hero-bottom {
    padding: 0 1.5rem 2rem;
  }

  .hero-tagline {
    max-width: 220px;
  }

  .btn-contact {
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
  }

  .btn-hero-cta {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
  }

  .btn-live {
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
  }

  .marquee {
    padding-top: 8rem;
  }

  .about {
    gap: 5rem;
    padding: 5rem 2rem;
  }

  .about-inner {
    gap: 3.5rem;
  }

  .deco-tl,
  .deco-tr {
    width: 160px;
  }

  .deco-bl {
    width: 140px;
  }

  .deco-br {
    width: 170px;
  }

  .deco-tl,
  .deco-tr {
    left: auto;
  }

  .deco-tl {
    left: 2%;
  }

  .deco-tr {
    right: 2%;
  }

  .deco-bl {
    left: 6%;
  }

  .deco-br {
    right: 6%;
  }

  .services {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    padding: 6rem 2rem;
  }

  .services-heading {
    margin-bottom: 2.5rem;
  }

  .service-item {
    padding: 2.5rem 0;
    gap: 2rem;
  }

  .projects {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    margin-top: -3rem;
    padding: 5rem 2rem 6rem;
  }
}

/* ============================================================
   RESPONSIVE — md (768px+)
   ============================================================ */

@media (min-width: 768px) {
  .navbar {
    gap: 2.25rem;
    margin-top: 1.5rem;
    padding: 0.85rem 2.25rem;
  }

  .navbar a {
    font-size: 0.95rem;
  }

  h1.hero-heading {
    font-size: 13vw;
    margin-top: -0.5rem;
  }

  .hero-bottom {
    padding: 0 2.5rem 2.5rem;
  }

  .hero-tagline {
    max-width: 260px;
  }

  .btn-hero-cta {
    padding: 1rem 2.25rem;
    font-size: 1rem;
  }

  .btn-contact {
    padding: 1rem 3rem;
    font-size: 1rem;
  }

  .marquee {
    padding-top: 10rem;
  }

  .about {
    gap: 6rem;
    padding: 5rem 2.5rem;
  }

  .about-inner {
    gap: 4rem;
  }

  .deco-tl,
  .deco-tr {
    width: 210px;
  }

  .deco-bl {
    width: 180px;
  }

  .deco-br {
    width: 220px;
  }

  .deco-tl {
    left: 4%;
  }

  .deco-tr {
    right: 4%;
  }

  .deco-bl {
    left: 10%;
  }

  .deco-br {
    right: 10%;
  }

  .services {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    padding: 8rem 2.5rem;
  }

  .services-heading {
    margin-bottom: 3rem;
  }

  .service-item {
    padding: 3rem 0;
  }

  .projects {
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: -3.5rem;
    padding: 6rem 2rem 7rem;
  }
}

/* ============================================================
   RESPONSIVE — lg (1024px+)
   ============================================================ */

@media (min-width: 1024px) {
  .navbar a {
    font-size: 1rem;
  }

  h1.hero-heading {
    font-size: 14vw;
  }
}

/* ============================================================
   Short viewports — the sticky preview must still clear the fold
   ============================================================ */

@media (min-width: 1000px) and (max-height: 820px) {
  .showcase-stage {
    top: 4.5rem;
  }

  .showcase-item {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .showcase-num {
    font-size: 1.15rem;
  }
}

/* ============================================================
   Small screens
   ============================================================ */

@media (max-width: 560px) {
  .showcase-window {
    border-radius: 18px;
  }

  .showcase-item {
    gap: 0.85rem;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  [data-fade] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .magnet {
    transform: none !important;
  }

  .hero-heading-shiny {
    animation: none !important;
  }

  .navbar-selection {
    transition: opacity 120ms ease !important;
  }

  .navbar-selection::before {
    animation: none !important;
  }

  .service-typewriter-field.is-typing .service-typewriter-output::after {
    animation: none !important;
  }

  .hero-video {
    display: none;
  }
}
