:root {
  --bg-light: #ffffff;
  --text-dark: #110F16;
  --accent-grey: #999999;

  --pad-v: 32px;
  --pad-h: 24px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "degular", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* HERO */

.hero {
  position: relative;
  will-change: transform;
}

.hero {
  display: flex;
  height: 90vh;
  width: 100%;
  overflow: hidden;
}

.hero-left {
  background-color: var(--bg-light);
  color: var(--text-dark);
  flex: 0 0 22vw;
  padding: var(--pad-v) var(--pad-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
}

.logo {
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2.5rem;
}

.hero-title {
  font-size: clamp(1.8rem, 2.2vw, 2.1rem);
  line-height: 1.1;
  max-width: 14ch;
  font-weight: 100;
  margin-top: 20%;
}

.hero-left p {
  margin-top: 35px;
max-width: 98%;
  font-size: clamp(1.2rem, 2.2vw, 1.1rem);
  line-height: 1.3;
}

/* primary button */

#btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--text-dark);
  padding: 18px;
  width: 160px;
  color: var(--bg-light);
  margin-top: 60px;
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
}

/* wrapper that holds the two text layers */
#btn .btn-label {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

/* both text layers */
#btn .btn-label span {
  display: block;
  width: 100%;
  transition: transform 0.26s ease-out;
}

/* top (default) text */
#btn .btn-label span:nth-child(1) {
  transform: translateY(0%);
}

/* bottom text starts just below */
#btn .btn-label span:nth-child(2) {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(110%);
}

/* hover / focus: slide first up, second in */
#btn:hover .btn-label span:nth-child(1),
#btn:focus-visible .btn-label span:nth-child(1) {
  transform: translateY(-110%);
}

#btn:hover .btn-label span:nth-child(2),
#btn:focus-visible .btn-label span:nth-child(2) {
  transform: translateY(0%);
}

/* time bottom-left */

.hero-time {
  position: absolute;
  left: var(--pad-h);
  bottom: var(--pad-v);
  font-family: "degular", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
}

.hero-right {
  position: relative;
  flex: 1 1 auto;
  width: 80vw;
  height: 100%;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* volume toggle */

.volume-toggle {
  position: absolute;
  right: var(--pad-h);
  bottom: var(--pad-v);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
}

.volume-icon {
  width: 18px;
  height: 18px;
  fill: #110F16;
}

.volume-toggle::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 2px;
  background-color: #110F16;
  transform: rotate(45deg);
  opacity: 0;
  pointer-events: none;
}

.volume-toggle.is-muted::after {
  opacity: 1;
}

/* NAV DESKTOP */

.nav-desktop {
  position: absolute;
  top: var(--pad-v);
  right: var(--pad-h);
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: #ffffff;
  mix-blend-mode: difference;
  z-index: 3;
}

/* base link styling */
.nav-desktop a {
  position: relative;
  display: inline-block;
  overflow: hidden; /* hide sliding text */
  padding-bottom: 0;
}

/* the two text layers */
.nav-desktop a span {
  display: block;
  transform: translateY(0%);
  transition: transform 0.26s ease-out;
}

/* top (original) label */
.nav-desktop a span:nth-child(1) {
  transform: translateY(0%);
}

/* bottom (incoming) label */
.nav-desktop a span:nth-child(2) {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(110%); /* just below view */
}

/* hover: slide first one up, second one into place */
.nav-desktop a:hover span:nth-child(1),
.nav-desktop a:focus-visible span:nth-child(1) {
  transform: translateY(-110%);
}

.nav-desktop a:hover span:nth-child(2),
.nav-desktop a:focus-visible span:nth-child(2) {
  transform: translateY(0%);
}

/* stagger timings per item */
.nav-desktop a:nth-child(1) span {
  transition-delay: 0s;
}

.nav-desktop a:nth-child(2) span {
  transition-delay: 0.03s;
}

.nav-desktop a:nth-child(3) span {
  transition-delay: 0.06s;
}

/* focus outline still accessible */
.nav-desktop a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* MOBILE HEADER */

.mobile-header {
  display: none;
  position: absolute;
  inset: 16px 24px auto 24px;
  z-index: 4;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.mobile-logo {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  max-width: 11ch;
  line-height: 1.3;
}

.hamburger {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hamburger-line {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background-color: #ffffff;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.hamburger-line:nth-child(1) {
  transform: translateY(-4px);
}

.hamburger-line:nth-child(2) {
  transform: translateY(4px);
}

.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  transform: rotate(-45deg);
}

/* MOBILE MENU */

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease-out, visibility 0.22s ease-out;
  z-index: 10;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-inner {
  text-align: center;
}

.mobile-menu-logo {
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  color: var(--accent-grey);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.mobile-nav a {
  opacity: 0.9;
}

.mobile-nav a:hover {
  opacity: 1;
}

.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background-color: var(--text-dark);
}

.mobile-menu-close span:nth-child(1) {
  transform: rotate(45deg);
}

.mobile-menu-close span:nth-child(2) {
  transform: rotate(-45deg);
}

/* HERO BOTTOM MOBILE */

.hero-bottom-mobile {
  display: none;
  width: 100%;
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: var(--pad-v) var(--pad-h);
  margin-bottom: 120px;
}

.hero-bottom-mobile h1 {
  font-size: calc(1.25 * clamp(1.8rem, 2.2vw, 2.1rem));

  line-height: 1.1;
  font-weight: 100;
  margin-top: 65px;
}

.hero-bottom-mobile p {
  margin-top: 35px;
  font-size: clamp(1.3rem, 2.2vw, 2.3rem);
  line-height: 1.3;
  margin-bottom: 80px;
}

#mbtn {
  background-color: var(--text-dark);
  padding: 22px;
  color: var(--bg-light);
  margin-top: 60px;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

/* PROJECTS SECTION */

.projects-section {
  padding: var(--pad-v) var(--pad-h) calc(var(--pad-v) * 2);
  background-color: #ffffff;
}

.projects-header h2 {
  font-size: calc(1.25 * clamp(1.8rem, 2.2vw, 2.1rem));
  line-height: 1.1;
  font-weight: 100;
  margin-top: 100px;
}

.projects-grid {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 34px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.project-media {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  background-color: #ddd;
}

.project-image,
.project-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease-out;
}

.project-image {
  opacity: 1;
  z-index: 1;
}

.project-video {
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

/* project title slide effect */

.project-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  position: relative;
  display: inline-block;
  overflow: hidden;
  height: 1.2em; /* clipping for the slide */
}

.project-title span {
  display: block;
  transition: transform 0.28s ease-out;
}

/* top/default text */
.project-title span:nth-child(1) {
  transform: translateY(0%);
}

/* bottom replacement text */
.project-title span:nth-child(2) {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(110%);
}

/* hover: slide whole word up & new word replaces it */
.project-card:hover .project-title span:nth-child(1) {
  transform: translateY(-110%);
}

.project-card:hover .project-title span:nth-child(2) {
  transform: translateY(0%);
}

/* SERVICES SECTION */

.services-section {
  padding: var(--pad-v) var(--pad-h) calc(var(--pad-v) * 2);
  background-color: #f5f5f5;
  color: var(--text-dark);
  padding-bottom: 140px;
}
.services-section {
  margin-top: -0vh; /* creates the glide-over feeling */
  padding-top: calc(var(--pad-v) * 2);
}

.services-section {
  position: relative;
  z-index: 2;
}

.services-section h2 {
  font-size: calc(1.25 * clamp(1.8rem, 2.2vw, 2.1rem));
  line-height: 1.1;
  font-weight: 100;
  margin-top: 60px;
}

/* container for list + floating GIF */
.services-layout {
  position: relative;          /* so preview can be absolutely positioned */
  margin-top: 80px;
}

/* LEFT: full-width list with full-width lines */

.services-list {
  width: 100%;                 /* lines go all the way across */
  border-top: 1px solid rgba(0,0,0,0.1);
}

.service-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 32px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);

  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  color: rgba(0,0,0,0.35);
  background: none;

  transition: color .25s ease-out;
}

.service-item:hover,
.service-item.is-active {
  color: var(--text-dark);
}

/* RIGHT: GIF floating at top-right of the section */

.services-preview {
  position: absolute;
  top: 2%;
  right: 5%;
  width: 30%;                 /* about half the page */
  height: 480px;              /* keep the “good” height you liked */
  overflow: hidden;
  pointer-events: none;       /* list remains interactable underneath if overlapping */
}

.services-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;                 /* hidden until hover */
  transition: opacity .25s ease-out;
}

.services-preview.show .services-preview-image {
  opacity: 1;
}

/* SERVICES STATS */

.services-stats {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 34px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 100;
  letter-spacing: 0.02em;
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-grey);
}

@media (max-width: 1200px) {
  .services-stats {
    grid-template-columns: repeat(2, 1fr); /* 2 next to each other */
    gap: 34px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .services-stats {
    grid-template-columns: 1fr; /* optional: stack on very small phones */
  }
}


/* MOBILE: no GIF, list only, text +10% */

@media (max-width: 900px) {
  .services-layout {
    margin-top: 60px;
  }

  .services-preview {
    display: none;            /* no GIF on mobile */
  }

  .service-item {
    font-size: calc(1.1 * 1.4rem);  /* roughly 10% bigger than 1.4rem base */
    padding: 22px 0;
  }
}



/* desktop hover fade on media */
@media (hover: hover) and (pointer: fine) {
  .project-card:hover .project-image {
    opacity: 0;
  }

  .project-card:hover .project-video {
    opacity: 1;
  }
}

/* BREAKPOINTS */

@media (max-width: 1700px) {
  .hero-left {
    flex: 0 0 28vw;
    padding-inline: var(--pad-h);
  }
}

@media (max-width: 1200px) {
  .hero {
    flex-direction: column;
    height: auto;
  }

  .hero-right {
    width: 100%;
    height: 45vh;
  }

  .hero-left {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .hero-bottom-mobile {
    display: block;
  }

  .volume-toggle {
    visibility: hidden;
  }

  .hero-time {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-media {
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .projects-section {
    padding: var(--pad-v) 24px calc(var(--pad-v) * 2);
  }

  
}
