/* ============================================
   MEMENTO DIGITAL - Warm Gradient Agency Site
   ============================================ */

/* --- Fonts --- */
@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Clash Display';
  src: url('../fonts/ClashDisplay-Light.woff2') format('woff2');
  font-weight: 300;
  font-display: swap;
  font-style: normal;
}

/* --- Custom Properties --- */
:root {
  /* Warm gradient palette */
  --color-bg: #fdf6f0;
  --color-bg-cream: #fdfaf7;
  --color-surface: rgba(255, 255, 255, 0.45);
  --color-surface-hover: rgba(255, 255, 255, 0.65);
  --color-text: #1a1a1a;
  --color-text-muted: #4a4a4a;
  --color-text-dim: #7a7a7a;
  --color-accent: #DB4A2B;
  --color-accent-light: #e85a3a;
  --color-accent-orange: #F8A348;
  --color-accent-pink: #FF89A9;
  --color-glass: rgba(255, 255, 255, 0.35);
  --color-glass-border: rgba(255, 255, 255, 0.55);
  --color-glass-heavy: rgba(255, 255, 255, 0.7);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.15);
  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 9999px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
  position: relative;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 4px;
}

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

em {
  font-style: normal;
  color: var(--color-accent);
}

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

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

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

/* --- Utility --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Warm Gradient Background --- */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

.bg-gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -2;
  opacity: 0;
  animation: orbFadeIn 2s var(--ease-out-expo) forwards;
}

.bg-gradient-orb--1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 215, 195, 0.4) 0%, transparent 70%);
  top: -15%;
  left: -5%;
  animation-delay: 0.2s;
}

.bg-gradient-orb--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 230, 210, 0.33) 0%, transparent 70%);
  top: 10%;
  right: -10%;
  animation-delay: 0.5s;
}

.bg-gradient-orb--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 220, 200, 0.28) 0%, transparent 70%);
  bottom: 10%;
  left: 20%;
  animation-delay: 0.8s;
}

@keyframes orbFadeIn {
  to { opacity: 1; }
}

/* --- Mouse Glow --- */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
  will-change: transform;
  contain: strict;
  transform: translate3d(-50%, -50%, 0);
  display: none;
}

@media (hover: hover) {
  .mouse-glow {
    display: block;
  }
}

/* --- Glass Card (Warm) --- */
.glass-card {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.glass-card:hover::after {
  opacity: 1;
  animation: shimmerBorder 2s linear infinite;
}

@keyframes shimmerBorder {
  0% { background-position: 100% 0%; }
  100% { background-position: -100% 0%; }
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav--scrolled::before {
  opacity: 1;
  transition: opacity 0.8s ease;
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  position: relative;
  height: 14px;
  min-width: 18px;
  z-index: 1001;
  transition: opacity 0.3s ease;
}

.nav__logo:hover {
  opacity: 0.7;
}

.nav__logo-m,
.nav__logo-full {
  position: absolute;
  left: 0;
  top: 50%;
  height: 14px;
  max-width: none;
  transform: translateY(-50%);
  transition: opacity 0.35s ease;
  filter: brightness(0); /* Make white SVGs dark */
}

.nav__logo-m {
  width: 18.5px;
  opacity: 1;
}

.nav__logo-full {
  width: 192px;
  opacity: 0;
}

.nav--scrolled .nav__logo-m {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.nav--scrolled .nav__logo-full {
  opacity: 1;
  transition: opacity 1.2s ease;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-text);
  transition: width 0.3s var(--ease-out-expo);
}

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

.nav__link:hover::after {
  width: 100%;
}

.nav__link--active {
  color: var(--color-text);
}

.nav__link--cta {
  padding: 8px 20px;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-full);
  color: var(--color-text);
  transition: all 0.3s var(--ease-out-expo);
  text-transform: uppercase;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
  transform: scale(1.03);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(250, 232, 222, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

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

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu__link {
  font-family: var(--font-body);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu--open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu--open .mobile-menu__link[data-delay="0"] { transition-delay: 0.1s; }
.mobile-menu--open .mobile-menu__link[data-delay="1"] { transition-delay: 0.2s; }
.mobile-menu--open .mobile-menu__link[data-delay="2"] { transition-delay: 0.3s; }
.mobile-menu--open .mobile-menu__link[data-delay="3"] { transition-delay: 0.4s; }

.mobile-menu__link:hover {
  color: var(--color-accent);
}

.mobile-menu__link--cta {
  margin-top: 16px;
  font-size: clamp(1.2rem, 4vw, 1.5rem);
  padding: 12px 32px;
  border: 1.5px solid var(--color-text);
  border-radius: var(--radius-full);
  color: var(--color-text);
}

/* --- Hero (Warm, Full-Bleed, Interactive) --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-height) + 40px) 0 48px;
  overflow: hidden;
}

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

.hero__shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.hero__content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero__badge {
  display: none; /* Hidden in warm theme */
}

.hero__title {
  font-family: var(--font-display);
  line-height: 0.88;
  margin-top: auto;
  margin-bottom: auto;
}

.hero__title-line {
  display: block;
  font-size: clamp(4.5rem, 14vw, 13rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--color-text);
  cursor: default;
  -webkit-text-fill-color: var(--color-text);
  background: none;
  overflow: visible;
  position: relative;
  white-space: nowrap;
}

.hero__title-line--outline {
  -webkit-text-fill-color: var(--color-text);
  -webkit-text-stroke: none;
  font-weight: 700;
}

.hero__title-line--light {
  font-weight: 200;
  -webkit-text-fill-color: var(--color-text);
}

/* Hero character interaction - HyperText scramble */
.hero__char {
  display: inline-block;
  transition: transform 0.15s ease, opacity 0.15s ease;
  will-change: transform, opacity;
  -webkit-text-fill-color: var(--color-text);
}

.hero__char--scrambling {
  opacity: 0.4;
  transform: translateY(-2px);
  -webkit-text-fill-color: var(--color-text);
}

.hero__char--revealed {
  opacity: 1;
  transform: translateY(0);
  -webkit-text-fill-color: var(--color-text);
}

.hero__title-line--scrambling {
  cursor: default;
}

.hero__title-line--scrambling .hero__char--revealed {
  -webkit-text-fill-color: var(--color-text);
}

/* Hero title reveal */
.hero__title-line.reveal-up {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 1s var(--ease-out-expo), transform 1s var(--ease-out-expo);
}

.hero__title-line.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hero bottom row */
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
  padding-top: 0;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--color-text);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 400;
}

.hero__subtitle-heading {
  font-weight: 700;
  display: block;
  margin-bottom: -2px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

/* Dark filled button */
.btn--dark {
  background: var(--color-text);
  color: var(--color-bg);
  border: 1.5px solid var(--color-text);
}

.btn--dark:hover {
  background: #333;
  border-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--dark:active {
  transform: scale(0.97);
}

/* Text link CTA */
.hero__text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  transition: all 0.3s var(--ease-out-expo);
}

.hero__text-link:hover {
  gap: 12px;
  color: var(--color-accent-light);
}

.hero__text-link svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.hero__text-link:hover svg {
  transform: translateX(4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: all 0.35s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  border: 1px solid var(--color-accent);
}

.btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(219, 74, 43, 0.25);
}

.btn--primary:active {
  transform: scale(0.97);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.btn svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover svg {
  transform: translate(3px, -3px);
}

/* Hero scroll indicator (hidden in warm theme) */
.hero__scroll-indicator {
  display: none;
}

/* --- Sections --- */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  background: var(--color-bg-cream);
}

.section__header {
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-text);
  -webkit-text-fill-color: var(--color-text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Section dividers */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

.hero::before {
  display: none;
}

/* --- Expertise --- */
.expertise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.expertise__card {
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  cursor: default;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.expertise__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.expertise__card:hover::before {
  opacity: 1;
}

.expertise__card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--color-accent);
  transition: all 0.4s var(--ease-out-expo);
}

.expertise__card-icon svg {
  width: 28px;
  height: 28px;
}

.expertise__card:hover .expertise__card-icon {
  transform: scale(1.1);
  color: var(--color-accent-orange);
}

.expertise__card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text);
}

.expertise__card-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.expertise__card-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-dim);
  opacity: 0.3;
  transition: all 0.4s ease;
}

.expertise__card:hover .expertise__card-number {
  opacity: 0.7;
  color: var(--color-accent);
}

/* --- About --- */
.about__content {
  max-width: 100%;
}

.about__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text);
}

.about__title--full {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 100%;
  margin-bottom: 40px;
}

.about__text {
  max-width: 700px;
}

.about__text p {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Process --- */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process__step {
  padding: 32px 24px;
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.25);
}

.process__step:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(0, 0, 0, 0.1);
}

.process__step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.2;
  margin-bottom: 16px;
  line-height: 1;
  transition: opacity 0.4s ease;
}

.process__step:hover .process__step-number {
  opacity: 0.45;
}

.process__step-content h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.process__step-content p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.process__step-line {
  position: absolute;
  top: 50%;
  right: -7px;
  width: 14px;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.process__step:last-child .process__step-line {
  display: none;
}

/* --- Contact --- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.contact__desc {
  font-family: var(--font-body);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact__info-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.contact__info-item:hover {
  color: var(--color-accent);
}

.contact__info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

/* Copied tooltip */
.contact__copied {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(6px);
  background: var(--color-text);
  color: var(--color-bg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.contact__copied--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Contact Form */
.contact__form {
  padding: 36px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.form__group {
  position: relative;
  margin-bottom: 28px;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 14px 0 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: transparent;
  transition: border-color 0.3s ease;
  -webkit-appearance: none;
}

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.form__group label {
  position: absolute;
  top: 14px;
  left: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-dim);
  pointer-events: none;
  transition: all 0.3s var(--ease-out-expo);
}

.form__group input:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:focus + label,
.form__group textarea:not(:placeholder-shown) + label {
  top: -6px;
  font-size: 0.72rem;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.form__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width 0.4s var(--ease-out-expo);
}

.form__group input:focus ~ .form__line,
.form__group textarea:focus ~ .form__line {
  width: 100%;
}

/* Autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--color-text);
  -webkit-box-shadow: 0 0 0px 1000px var(--color-bg-cream) inset;
  transition: background-color 5000s ease-in-out 0s;
}

.form__status {
  margin-top: 16px;
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 24px;
  transition: all 0.3s ease;
}

.form__status--success {
  color: #16a34a;
}

.form__status--error {
  color: #dc2626;
}

.form__status--loading {
  color: var(--color-text-muted);
}

/* --- Footer --- */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
  background: var(--color-text);
  color: #ccc;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  height: 16px;
}

.footer__logo-m {
  height: 16px;
  width: auto;
  filter: brightness(0) invert(1);
  display: none;
}

.footer__logo-full {
  height: 16px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
}

.footer__tagline {
  font-family: var(--font-body);
  color: #999;
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: #777;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: #666;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #888;
  transition: all 0.3s var(--ease-out-expo);
}

.footer__socials a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

.footer__socials a svg {
  width: 16px;
  height: 16px;
}

/* --- Reveal Animations --- */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.reveal-up[data-delay="1"] { transition-delay: 0.1s; }
.reveal-up[data-delay="2"] { transition-delay: 0.2s; }
.reveal-up[data-delay="3"] { transition-delay: 0.3s; }
.reveal-up[data-delay="4"] { transition-delay: 0.4s; }
.reveal-up[data-delay="5"] { transition-delay: 0.5s; }
.reveal-up[data-delay="6"] { transition-delay: 0.15s; }
.reveal-up[data-delay="7"] { transition-delay: 0.25s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .expertise__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .process__step {
    margin: 0;
  }

  .process__step-line {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-height) + 24px) 0 32px;
    min-height: 100svh;
  }

  .hero__title-line {
    font-size: clamp(3rem, 14vw, 6rem);
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .expertise__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .expertise__card {
    padding: 24px 20px;
  }

  .about__title--full {
    font-size: clamp(1.6rem, 6vw, 2.5rem);
  }

  .process__timeline {
    grid-template-columns: 1fr;
    gap: 12px;
  }

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

  .contact__form {
    padding: 24px 20px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .hero__title-line {
    font-size: clamp(2.5rem, 15vw, 4rem);
    white-space: normal;
  }
}

/* --- Focus styles --- */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

  html {
    scroll-behavior: auto;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }
}
