/* =====================
   LOADER
   ===================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--red);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px 16px;
  clip-path: inset(0 0 0% 0);
  cursor: none;
}

.loader__text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(100px, 12.4vw, 178px);
  line-height: 0.8;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  color: var(--light);
}

.loader__counter {
  font-family: var(--font-sans);
  font-size: clamp(100px, 12.4vw, 178px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--light);
  text-align: right;
  overflow: hidden;
}

.loader__digit {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.loader__digit-inner {
  display: block;
  line-height: 0.85;
  padding-bottom: 0.15em;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Per-char slide-in for "Loading" text */
.loader__text .char {
  display: inline-block;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              opacity   0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader__text.is-visible .char {
  transform: translateY(0);
  opacity: 1;
}

/* =====================
   SELECTION
   ===================== */

/* Default: red selection on dark/light backgrounds */
::selection {
  background: var(--red);
  color: var(--light);
}

/* Dark selection on red backgrounds (contact, menu, hero red half) */
.contact ::selection,
.mobile-menu ::selection,
.hero__bg-right ::selection,
.hero__photo-wrap ::selection {
  background: var(--dark);
  color: var(--light);
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark: #0e0b0b;
  --light: #ededed;
  --red: #e63415;
  --font-sans: 'Neue Haas Grotesk Display Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'EB Garamond', Georgia, serif;
}

html {
  scroll-behavior: smooth;
  cursor: none;
}

body {
  background: var(--dark);
  color: var(--light);
  font-family: var(--font-sans);
  overflow-x: clip; /* clip ne blokira position: fixed/sticky */
}

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

a, a:hover, a:visited, a:active {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* =====================
   UTILITIES
   ===================== */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

.label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label.dark {
  color: var(--dark);
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.section-number {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

.section-number.dark,
.section-title.dark {
  color: var(--dark);
}

em.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--red);
  font-size: 1.05em;
  letter-spacing: -0.05em;
}

.arrow-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* =====================
   CUSTOM CURSOR
   ===================== */
*, *::before, *::after {
  cursor: none !important;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ededed;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 9999;
  /* offset so center of circle is at mouse tip */
  margin-left: -10px;
  margin-top: -10px;
  transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease;
  will-change: transform;
}

.cursor--hover {
  width: 32px;
  height: 32px;
  margin-left: -16px;
  margin-top: -16px;
}

/* =====================
   BUTTON HOVER — slide text + underline
   ===================== */

/* The element that receives .btn-hover just needs relative positioning */
.btn-hover {
  position: relative;
}

/* Wrapper: clips the sliding text, creates underline context */
.btn-slide {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

/* Underline — grows from left on hover */
.btn-slide::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.btn-hover:hover .btn-slide::after {
  transform: scaleX(1);
}

/* Buttons that already have a border line — no redundant underline */
.work__cta .btn-slide::after,
.contact__cta .btn-slide::after {
  display: none;
}

/* Character spans */
.btn-slide__top .char,
.btn-slide__btm .char {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.btn-slide__top .char {
  transform: translateY(0);
}

/* Bottom (incoming) layer */
.btn-slide__btm {
  position: absolute;
  bottom: 0;
  left: 0;
  white-space: nowrap;
}

.btn-slide__btm .char {
  transform: translateY(120%);
}

/* Hover: top slides up, bottom slides up from below */
.btn-hover:hover .btn-slide__top .char {
  transform: translateY(-120%);
}

.btn-hover:hover .btn-slide__btm .char {
  transform: translateY(0);
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: transform 0.2s ease, opacity 0.2s ease;
  will-change: transform, opacity;
}

/* ── Secondary nav (hamburger, shown after hero) ── */
.nav2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  background: var(--dark);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.nav2.menu-open {
  background: var(--red);
}

.nav2__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav2__logo img {
  height: 26px;
  width: auto;
}

/* ── Hamburger button — morphs to exact X SVG ── */
.nav2__hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 48px;
  height: 41px;
}

.hamburger-icon,
.x-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

/* Default: hamburger visible, X hidden */
.hamburger-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.x-icon {
  opacity: 0;
  transform: rotate(-60deg) scale(0.75);
}

/* Toggled: X visible, hamburger hidden */
.nav2__hamburger.is-open .hamburger-icon {
  opacity: 0;
  transform: rotate(60deg) scale(0.75);
}

.nav2__hamburger.is-open .x-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* ── Full-screen menu overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--red);
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 32px;
  clip-path: inset(0 0 100% 0);
  pointer-events: none;
}

.mobile-menu.is-open {
  pointer-events: all;
}

/* Nav items list */
.mobile-menu__nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
}

.mobile-menu__nav li {
  border-top: 1.5px solid rgba(237, 237, 237, 0.3);
  padding: 16px 0; /* spacing here, not on <a>, so clip is exact */
}

/* Link: clip container, no padding */
.menu-item {
  display: block;
  overflow: hidden;
  position: relative;
  font-family: var(--font-sans);
  font-size: clamp(48px, 11vw, 178px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.85;
  text-transform: uppercase;
  color: var(--light);
}

/* Per-character spans */
.menu-item__sans .char,
.menu-item__serif .char {
  display: inline-block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.menu-item__sans .char {
  transform: translateY(0);
}

/* Serif sits below the clip boundary, anchored to bottom */
.menu-item__serif {
  position: absolute;
  bottom: 0;
  left: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.menu-item__serif .char {
  transform: translateY(120%);
}

/* Hover: each char slides — RTL stagger delays applied inline by JS */
.menu-item:hover .menu-item__sans .char {
  transform: translateY(-120%);
}

.menu-item:hover .menu-item__serif .char {
  transform: translateY(0);
}

/* Staggered item entrance */
.mobile-menu__nav .menu-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-menu.is-open .mobile-menu__nav li:nth-child(1) .menu-item { opacity: 1; transform: translateY(0); transition-delay: 0.06s; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(2) .menu-item { opacity: 1; transform: translateY(0); transition-delay: 0.12s; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(3) .menu-item { opacity: 1; transform: translateY(0); transition-delay: 0.18s; }
.mobile-menu.is-open .mobile-menu__nav li:nth-child(4) .menu-item { opacity: 1; transform: translateY(0); transition-delay: 0.24s; }

.mobile-menu__footer {
  position: absolute;
  bottom: 0;
  left: 32px;
  right: 32px;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light);
  border-top: 1.5px solid rgba(237, 237, 237, 0.3);
}

.nav__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 26px;
  width: auto;
}

/* Links + CTA grouped together on the right */
.nav__right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 672px;
}

.nav__menu {
  display: flex;
  gap: 45px;
}

.nav__menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 40px;
  height: 5px;
  background: var(--light);
  border-radius: 1px;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: clip; /* hidden blokira sticky, clip ne */
  z-index: 1;
}

/* Scroll-darkening overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

/* Split backgrounds */
.hero__bg-left {
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--dark);
  z-index: 0;
}

.hero__bg-right {
  position: absolute;
  inset: 0 0 0 50%;
  background: var(--red);
  z-index: 0;
}

/* Big italic name — TOP, behind photo */
.hero__name {
  position: absolute;
  z-index: 1;
  top: 58px;
  left: 0;
  right: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(60px, 12.3vw, 178px);
  letter-spacing: -0.08em;
  line-height: 0.82;
  text-align: center;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
  pointer-events: none;
}

/* Photo — right half, IN FRONT of name */
.hero__photo-wrap {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 50%;
  height: calc(100% - 58px);
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Left content — subtitle + services, top-left, IN FRONT */
.hero__left {
  position: absolute;
  z-index: 3;
  left: 32px;
  /* top: 40px below name bottom; bottom: 16px from viewport bottom */
  top: calc(58px + clamp(49px, 10.1vw, 146px) + 40px);
  bottom: 16px;
  width: calc(50% - 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* subtitle top, services bottom */
}

.hero__subtitle {
  font-size: clamp(18px, 2.3vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--light);
}

.hero__services {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero__services .label {
  color: var(--light);
  opacity: 0.6;
}

.hero__services ul {
  border-top: 2px solid rgba(237,237,237,0.3);
}

.hero__services ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 2px solid rgba(237,237,237,0.3);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light);
}

/* Scroll down — bottom right */
.hero__scroll {
  position: absolute;
  z-index: 3;
  bottom: 16px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light);
}

/* =====================
   ABOUT
   ===================== */
.about {
  position: relative;
  z-index: 2;
  background: var(--dark);
  padding: 80px 32px;
}

.about__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 3px solid rgba(237,237,237,0.3);
}

.about__text {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--light);
}

/* =====================
   SELECTED WORK
   ===================== */
.work {
  position: relative;
  z-index: 2;
  background: var(--light);
  padding: 0;
}

/* ── Spread track: tall container for sticky scrub ── */
.work__spread-track {
  height: 600vh;
  background: var(--dark);
}

/* ── Scene: sticky viewport-size panel ── */
.work__scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* White bg zooms in from tiny during Phase 1 */
.work__bg {
  position: absolute;
  inset: 0;
  background: var(--light);
  transform: scale(0.12);
  transform-origin: center center;
  will-change: transform;
  z-index: 0;
}

/* ── Gallery: 3 full-height columns, front layer ── */
.work__gallery {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.gallery-item {
  position: absolute;
  top: 0;
  height: 100%;
  width: 33.333%;
  overflow: hidden;
  will-change: clip-path, transform;
}

.work__project-display {
  position: absolute;
  right: 0;
  top: 0;
  width: 33.34%;
  height: 100%;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.project-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(100% 0 0 0);
  z-index: 0;
}

.project-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ── Gap content: revealed as images spread (behind gallery) ── */
.work__gap {
  position: absolute;
  top: 0;
  height: 100%;
  width: 33.33%;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  color: var(--dark);
  opacity: 0;
  will-change: opacity, transform;
}

.work__gap--left  { left: 0; width: 35%; padding-top: 88px; justify-content: flex-start; }
.work__gap--right { left: 35%; width: 32%; justify-content: flex-start; padding-top: 88px; }
.work__gap--right > div:last-child { margin-top: auto; }

.work__gap-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Content inside gaps (flow, not absolute) ── */
.work__num {
  font-family: var(--font-sans);
  font-size: 128px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--dark);
}

.work__title {
  font-family: var(--font-sans);
  font-size: 128px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--dark);
  margin: 0;
}

.work__counter {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
}

.work__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-top: 1px solid var(--dark);
  width: 100%;
  max-width: 280px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dark);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.work__cta:hover {
  border-color: var(--red);
  color: var(--red);
}

.work__cta:hover .arrow-img {
  filter: invert(23%) sepia(90%) saturate(3000%) hue-rotate(10deg) brightness(95%);
}

.work__gap--left .work__cta {
  margin-top: 32px;
}

.work__gap--left .work__meta {
  margin-top: auto;
}

.work__meta {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: baseline;
}

.work__list-wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.work__list-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.work__list-col:first-child { width: auto; white-space: nowrap; }
.work__list-col:last-child  { width: auto; }

.work__list-head {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
}

.work__list-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.work__list-col ul li {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  opacity: 0.3;
  line-height: 1.4;
  transition: opacity 0.4s ease;
}

.work__list-col ul li.active {
  opacity: 1;
}

.work__end {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.work__end-overlay {
  position: absolute;
  inset: 0;
  background: var(--dark);
  opacity: 0;
  pointer-events: none;
}

.work__quote {
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  padding: 80px 32px 32px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* =====================
   EXPERIENCE
   ===================== */
.experience {
  position: relative;
  z-index: 3;
  background: var(--dark);
  padding: 32px 32px 80px;
}

.experience__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 32px;
  border-bottom: 3px solid rgba(237,237,237,0.3);
  margin-bottom: 28px;
  white-space: nowrap;
}

/* Override section-title/number size specifically for experience header */
.experience__header .section-number,
.experience__header .section-title {
  font-size: 80px;
}

.experience__inner {
  display: grid;
  grid-template-columns: 203px 1fr;
  gap: 0;
  align-items: stretch;
}

.experience__intro-wrap {
  padding-top: 0;
}

.experience__intro {
  color: var(--light);
  line-height: 1.4;
  position: sticky;
  top: 80px;
  width: 203px;
}

.experience__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: auto;
  width: 437px;
}

/* ── Each experience item ── */
.exp__item {
  list-style: none;
}

.exp__row {
  display: flex;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
}

.exp__num {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--light);
  line-height: 1.2;
  width: 42px;
  text-align: right;
  flex-shrink: 0;
  align-self: center;
}

.exp__vline {
  width: 2px;
  background: rgba(237,237,237,0.3);
  flex-shrink: 0;
  align-self: stretch;
  min-height: 80px;
}

.exp__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.exp__date {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
  opacity: 0.6;
  line-height: 1.4;
}

.exp__date .accent {
  opacity: 1;
  color: var(--red);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.08em;
}

.exp__role {
  font-family: var(--font-sans);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--light);
  line-height: 1.2;
}

.exp__dot {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 8px;
}

.exp__hline {
  height: 2px;
  background: rgba(237,237,237,0.3);
  margin-bottom: 32px;
}

/* =====================
   CONTACT / GET IN TOUCH
   ===================== */
/* =====================
   CONTACT-FOOTER WRAPPER
   ===================== */
.contact-footer {
  position: relative;
  z-index: 4;
  background: var(--dark);
}

.contact {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--red);
  padding: 105px 32px 74px;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
}

.contact__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 3px solid rgba(237,237,237,0.3);
}

.contact__header .section-title,
.contact__header .section-number {
  color: var(--light);
}

.contact__text {
  font-family: var(--font-sans);
  font-size: clamp(32px, 5.5vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--light);
  max-width: 1377px;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--light);
  width: 551px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 48px;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  position: relative;
  z-index: 5;
  background: var(--dark);
  padding: 80px 32px 40px;
  will-change: transform;
}

.footer__inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__logo-wrap {
  padding-top: 8px;
}

.footer__logo {
  width: 162px;
  height: auto;
}

.footer__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 60%;
  min-height: 680px;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--light);
}

.footer__list {
  display: flex;
  flex-direction: column;
  border-top: 2px solid rgba(237,237,237,0.3);
}

.footer__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 2px solid rgba(237,237,237,0.3);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
  transition: border-bottom-color 0.25s ease;
}

.footer__list li:has(a):hover {
  border-bottom-color: rgba(237,237,237,0.9);
}

.footer__list li.muted span {
  color: var(--dark);
}

.footer__list li a,
.footer__list li a:hover {
  color: var(--light);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
  }

  .hero__photo {
    height: 60vw;
  }

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

  .experience__list {
    width: 100%;
  }

  .experience__intro {
    position: static;
  }

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

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .nav__menu,
  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero__name {
    font-size: clamp(40px, 10vw, 100px);
    white-space: normal;
    text-align: center;
  }

  .contact__cta {
    width: 100%;
  }

  .work__quote {
    padding: 48px 32px;
  }
}
