/* ============================================
   Y-MIDS AGENCY® — Complete Stylesheet
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --orange: #FF6B35;
  --red: #C84538;
  --black: #1A1A1A;
  --darker: #0a0a0a;
  --white: #FFFFFF;
  --gray: #9ca3af;
  --light-gray: #e5e5e5;

  --font-display: 'FormulaCondensed', 'Anton', 'Bebas Neue', sans-serif;
  --font-serif: 'Instrument Serif', 'TheGoodMonolith', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Knockout', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  --nav-height: 5rem;
  --section-padding: clamp(4rem, 10vw, 10rem);
  --container-width: min(90%, 1400px);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}

html.lenis {
  height: auto;
}

html.lenis.lenis-smooth {
  scroll-behavior: auto;
}

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

body {
  font-family: var(--font-body);
  background: var(--darker);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

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

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

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

input,
textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
  cursor: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--orange);
  color: var(--white);
}

/* ---------- SHARED SECTION EYEBROW ---------- */
.section__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: center;
  margin-bottom: 1rem;
}

/* ---------- PRELOADER ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--darker);
}

.preloader__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader__logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.preloader__bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader__progress {
  width: 0%;
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.preloader__counter {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  color: var(--gray);
}

.preloader.is-done {
  pointer-events: none;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: -4px;
}

.cursor__circle {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: -20px;
  transition: width 0.3s var(--ease-out-expo),
              height 0.3s var(--ease-out-expo),
              top 0.3s var(--ease-out-expo),
              left 0.3s var(--ease-out-expo),
              border-color 0.3s ease,
              background 0.3s ease;
}

.cursor__text {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.cursor.is-hovering .cursor__circle {
  width: 60px;
  height: 60px;
  top: -30px;
  left: -30px;
  border-color: var(--orange);
}

.cursor.is-text .cursor__circle {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--orange);
}

.cursor.is-text .cursor__text {
  opacity: 1;
  transform: scale(1);
  top: -40px;
  left: -40px;
  width: 80px;
  height: 80px;
}

.cursor.is-hidden .cursor__dot,
.cursor.is-hidden .cursor__circle {
  transform: scale(0);
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 1.5rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.nav__logo {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
}

.nav__logo-link {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  position: relative;
  z-index: 100001;
  background: transparent;
}

.nav__logo-link:hover {
  color: var(--orange);
}

.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
  margin-right: -10px;
}

.nav__logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: 0.15em;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
  transition: font-size 0.3s ease;
  position: relative;
  top: 2px;
}

.nav.is-scrolled .nav__logo-img {
  height: 36px;
}

.nav.is-scrolled .nav__logo-name {
  font-size: 1.25rem;
}

.nav__logo-tagline {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
  margin-left: 0.05rem;
  padding-left: 0.15rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transition: font-size 0.3s ease, opacity 0.3s ease;
}


.nav__menu-btn {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: none;
  position: relative;
  z-index: 100001;
}

.nav__menu-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo),
              opacity 0.3s ease;
}

.nav__menu-btn.is-active .nav__menu-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav__menu-btn.is-active .nav__menu-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.nav__dropdown {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--darker);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo), visibility 0.5s;
}

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

.nav__dropdown-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(40px);
  transition: color 0.3s ease;
  min-width: 60vw;
}

.nav__dropdown.is-open .nav__link {
  opacity: 1;
  transform: translateY(0);
}

.nav__link:nth-child(1) { transition: opacity 0.5s 0.1s var(--ease-out-expo), transform 0.5s 0.1s var(--ease-out-expo), color 0.3s ease; }
.nav__link:nth-child(2) { transition: opacity 0.5s 0.15s var(--ease-out-expo), transform 0.5s 0.15s var(--ease-out-expo), color 0.3s ease; }
.nav__link:nth-child(3) { transition: opacity 0.5s 0.2s var(--ease-out-expo), transform 0.5s 0.2s var(--ease-out-expo), color 0.3s ease; }
.nav__link:nth-child(4) { transition: opacity 0.5s 0.25s var(--ease-out-expo), transform 0.5s 0.25s var(--ease-out-expo), color 0.3s ease; }

.nav__link:hover {
  color: var(--orange);
}

.nav__link-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.4) 0%,
    rgba(10, 10, 10, 0.2) 40%,
    rgba(10, 10, 10, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}

.hero__title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 15vw, 14rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero__title-filled {
  color: var(--white);
}

.hero__title-outlined {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3.5rem, 13vw, 12rem);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--white));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--gray);
}

/* ---------- ABOUT SECTION ---------- */
.about {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__container {
  width: var(--container-width);
  max-width: 900px;
  text-align: center;
}

.about__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.2vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  line-height: 2;
  margin-bottom: 2rem;
  opacity: 0;
}

.about__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.95;
  margin-bottom: 2rem;
}

.about__title-line {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.about__title-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}

.about__content {
  text-align: left;
}

.about__block {
  opacity: 0;
}

.about__block p {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--light-gray);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.about__block p:last-child {
  margin-bottom: 0;
}

.about__block strong {
  color: var(--orange);
  font-weight: 600;
}

.about__block em {
  color: var(--orange);
  font-style: normal;
}

.about__heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.about__list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about__list li {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: var(--light-gray);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.about__philosophy {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem) !important;
  color: var(--white) !important;
}

.about__divider {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 2rem 0;
}

/* ---------- STATS / NUMBERS SECTION ---------- */
.stats {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats__container {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stats__item {
  flex: 1;
  text-align: center;
  padding: 2rem 1rem;
}

.stats__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats__plus {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--orange);
  font-weight: 700;
  line-height: 1;
}

.stats__label {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 0.75rem;
}

.stats__divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ---------- SERVICES SECTION (Horizontal Scroll) ---------- */
.services {
  padding: clamp(2rem, 5vw, 4rem) 0;
  overflow: hidden;
}

.services__header {
  width: var(--container-width);
  margin: 0 auto 1.25rem;
  text-align: center;
}

.services__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.services__title-accent {
  font-family: var(--font-serif);
  font-style: italic;
  -webkit-text-stroke: 1.5px var(--white);
  color: transparent;
}

.services__grid {
  width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services__item {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease, background 0.3s ease;
  will-change: transform;
  opacity: 0;
  transform: translateY(30px);
}

.services__item:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.services__item:active {
  transform: scale(0.98);
}

.services__item-number {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.services__item-content {
  position: relative;
  z-index: 1;
}

.services__item-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.services__item-desc {
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.services__item-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.7;
  transition: opacity 0.4s ease;
}

.services__subtitle {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--gray);
  margin-top: 1.5rem;
  letter-spacing: 0.03em;
}

/* -- Services Accordion -- */
.services__accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
}

.accordion__group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion__group:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
  transition: color 0.3s ease;
}

.accordion__trigger:hover {
  color: var(--orange);
}

.accordion__trigger[aria-expanded="true"] {
  color: var(--orange);
}

.accordion__icon {
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform 0.4s var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
  padding: 0 0.25rem;
}

.accordion__panel.is-open {
  max-height: 600px;
  padding: 0 0.25rem 1rem;
}

.accordion__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.accordion__list li {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: var(--gray);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.accordion__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- SHOWCASE SECTION ---------- */
.showcase {
  padding: 0 0 var(--section-padding);
}

.showcase__parallax-wrap {
  width: var(--container-width);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.showcase__img-container {
  overflow: hidden;
}

.showcase__img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.15);
  transition: transform 0.1s linear;
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 25% 50%, rgba(120, 30, 180, 0.6) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 35%, rgba(220, 50, 120, 0.5) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 85%, rgba(255, 107, 53, 0.35) 0%, transparent 45%),
              radial-gradient(ellipse at 60% 60%, rgba(60, 20, 100, 0.7) 0%, transparent 70%),
              var(--darker);
}

.contact__aurora {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.contact__container {
  position: relative;
  z-index: 1;
  width: var(--container-width);
  max-width: 900px;
  text-align: center;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.contact__card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__field {
  position: relative;
  text-align: left;
}

.contact__input {
  width: 100%;
  padding: 1.25rem 0 0.75rem;
  font-size: 1rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: border-color 0.3s ease;
}

.contact__input:focus {
  border-color: var(--orange);
}

.contact__textarea {
  resize: vertical;
  min-height: 80px;
}

.contact__label {
  position: absolute;
  top: 1.25rem;
  left: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.contact__input:focus ~ .contact__label,
.contact__input:not(:placeholder-shown) ~ .contact__label,
.contact__input.has-value ~ .contact__label {
  top: -0.25rem;
  font-size: 0.65rem;
  color: var(--orange);
}

/* Hide placeholder for floating label trick */
.contact__input::placeholder {
  color: transparent;
}

.contact__input-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width 0.4s var(--ease-out-expo);
}

.contact__input:focus ~ .contact__input-line {
  width: 100%;
}

.contact__submit {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: var(--orange);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.3s var(--ease-out-expo);
  will-change: transform;
}

.contact__submit:hover {
  background: var(--red);
}

.contact__submit-arrow {
  display: flex;
  transition: transform 0.3s var(--ease-out-expo);
}

.contact__submit:hover .contact__submit-arrow {
  transform: translate(3px, -3px);
}

.contact__success {
  padding: 2rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--white);
}

/* -- Contact Info Row -- */
.contact__info-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.contact__info-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: var(--gray);
  transition: color 0.3s ease;
}

.contact__info-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.7;
}

.contact__info-link:hover {
  color: var(--orange);
}

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  background: none;
  border: 1px solid var(--orange);
  border-radius: 50px;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact__whatsapp:hover {
  background: var(--orange);
  color: var(--white);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__container {
  width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer__policy-link {
  font-size: 0.8rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.3s;
}

.footer__policy-link:hover {
  color: var(--orange);
}

.footer__socials {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer__social-link {
  color: var(--gray);
  transition: color 0.3s;
  display: flex;
  align-items: center;
}

.footer__social-link:hover {
  color: var(--orange);
}

/* ---------- REVEAL ANIMATIONS ---------- */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(30px);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

/* Split text chars hidden by default */
.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .nav__logo-img {
    height: 42px;
  }

  .nav__logo-name {
    font-size: 1.375rem;
  }

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

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__title-line {
    font-size: 10vw;
  }

  .hero__title-outlined {
    font-size: 9vw;
  }
}

/* Mobile landscape / small tablets */
@media (max-width: 768px) {
  :root {
    --nav-height: 4rem;
    --section-padding: clamp(3rem, 8vw, 6rem);
  }

  .hero {
    height: 100svh;
    min-height: 500px;
    max-height: 100svh;
  }

  .nav__logo-link {
    gap: 8px;
  }

  .nav__logo-img {
    height: 36px;
  }

  .nav__logo-name {
    font-size: 1.125rem;
  }

  .nav.is-scrolled .nav__logo-img {
    height: 30px;
  }

  .nav.is-scrolled .nav__logo-name {
    font-size: 1rem;
  }

  .hero__eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
  }

  .hero__scroll-indicator {
    bottom: 20px;
  }

  .about {
    min-height: auto;
    padding: var(--section-padding) 0;
  }

  .about__eyebrow {
    font-size: 0.65rem;
    margin-bottom: 1.5rem;
  }

  .about__title-line {
    font-size: 12vw;
  }

  .about__title-serif {
    font-size: 11vw;
    -webkit-text-stroke-width: 1px;
  }

  .about__title {
    margin-bottom: 2.5rem;
  }

  .about__heading {
    font-size: 1.4rem;
  }

  .about__divider {
    margin: 2rem 0;
  }

  .stats__container {
    flex-wrap: wrap;
  }

  .stats__item {
    flex: 0 0 45%;
    padding: 1.5rem 0.5rem;
  }

  .stats__divider {
    display: none;
  }

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

  /* Navigation mobile */
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav__logo-img {
    height: 40px;
  }

  .nav__logo-tagline {
    display: none;
  }

  .nav.is-scrolled .nav__logo-img {
    height: 35px;
  }

  .nav__link {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    min-width: 80vw;
    padding: 1.25rem 0;
  }

  .nav__link-number {
    font-size: 0.8rem;
  }

  /* Services: single column grid on mobile */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .services__item {
    padding: 1.5rem 1.25rem;
  }

  .services__item-title {
    font-size: 1.25rem;
  }

  .services__item-desc {
    font-size: 0.85rem;
  }

  .accordion__list li {
    font-size: 0.85rem;
    word-wrap: break-word;
  }

  .services__title {
    font-size: 10vw;
  }

  .services__title-accent {
    -webkit-text-stroke-width: 1px;
  }

  .services__header {
    margin-bottom: 2rem;
  }

  /* Contact mobile */
  .contact {
    min-height: auto;
    padding: clamp(2rem, 5vw, 3rem) 0;
  }

  .contact__title {
    font-size: 10vw;
    margin-bottom: 1rem;
  }

  .contact__card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .contact__form {
    gap: 1.5rem;
  }

  .contact__submit {
    width: 100%;
    justify-content: center;
    padding: 1rem 2rem;
  }

  .contact__info-row {
    flex-direction: column;
    gap: 1rem;
  }

  .contact__info-link {
    font-size: 0.8rem;
    word-break: break-all;
  }

  /* Footer mobile */
  .footer {
    padding: 2rem 0;
  }

  .footer__container {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

}

/* Small phones */
@media (max-width: 480px) {
  .hero__title-line {
    font-size: 16vw;
  }

  .hero__title-outlined {
    font-size: 14vw;
  }

  .about__title-line {
    font-size: 14vw;
  }

  .about__title-serif {
    font-size: 12vw;
  }

  .nav__link {
    font-size: 1.6rem;
  }

  .work__card-img-wrap {
    aspect-ratio: 4 / 3;
  }

  .services__item-img {
    height: 140px;
  }

  .contact__title {
    font-size: 14vw;
  }
}

/* Touch devices: show default cursor */
@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor {
    display: none !important;
  }

  button,
  a,
  input,
  textarea {
    cursor: auto;
  }

  /* Tap-friendly touch targets */
  .nav__menu-btn {
    cursor: pointer;
    width: 48px;
    height: 48px;
  }

  .work__card-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
  }

  .contact__submit {
    min-height: 48px;
  }

  .nav__link {
    padding: 1.25rem 0;
  }
}

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

  .hero__scroll-line {
    animation: none;
  }
}
