/* ============================================================
   EXIMIA DEVELOPING — style.css
   Premium · Cinematic · Dark with red accents
   Shared visual DNA with Eximia Media
   ============================================================ */

/* ---------- DESIGN TOKENS (CSS Variables) ---------- */
:root {
  /* Core palette */
  --black:        #07070a;
  --bg:           #0a0a0d;
  --surface:      #101015;
  --surface-2:    #16161d;
  --line:         rgba(255, 255, 255, 0.08);
  --line-strong:  rgba(255, 255, 255, 0.16);

  /* Text */
  --text:         #f4f3f1;
  --text-soft:    #b9b8c0;
  --text-mute:    #75747e;

  /* Red accent system */
  --red:          #e11d2a;
  --red-bright:   #ff2d3f;
  --red-deep:     #9c0f18;
  --red-glow:     rgba(225, 29, 42, 0.45);

  /* Typography */
  --font-display: 'Sora', 'Manrope', sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Layout */
  --container:    1240px;
  --radius:       18px;
  --radius-sm:    12px;

  /* Motion */
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur:          0.6s;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

/* Hide native cursor only on devices with a fine pointer (real mouse) */
@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; }

/* ---------- LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ============================================================
   ATMOSPHERE — grain + custom cursor
   ============================================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Enhanced custom cursor: a ring that follows softly + a sharp dot */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease),
              opacity 0.3s var(--ease);
  mix-blend-mode: difference;
}
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--red-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease);
}
/* Hover state — grows over interactive elements */
.cursor.is-hover {
  width: 48px; height: 48px;
  background: rgba(225, 29, 42, 0.12);
  border-color: var(--red-bright);
  mix-blend-mode: normal;
}
/* "View" state for portfolio cards */
.cursor.is-view {
  width: 62px; height: 62px;
  background: var(--red);
  border-color: transparent;
  mix-blend-mode: normal;
}
.cursor.is-view::after {
  content: "Ver";
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}
.cursor.is-down { transform: translate(-50%, -50%) scale(0.85); }
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ============================================================
   PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 99999;
  display: grid;
  place-items: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}
.preloader__mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.5em;
  font-size: clamp(20px, 4vw, 34px);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.preloader__mark::after {
  content: "";
  position: absolute;
  left: -120%; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--red-glow), transparent);
  animation: sweep 1.4s ease-in-out infinite;
}
@keyframes sweep { to { left: 120%; } }
.preloader.is-done { opacity: 0; visibility: hidden; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding: 14px 0;
  background: rgba(10, 10, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: baseline; gap: 8px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1.5px;
  background: var(--red-bright);
  transition: width 0.35s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--text); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
  padding: 10px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text) !important;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.nav__cta:hover { background: var(--red); border-color: var(--red); transform: translateY(-2px); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span {
  width: 26px; height: 2px; background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   BUTTONS (reusable component)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 100px;
  position: relative;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              color 0.35s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--ease); }
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  position: relative;
}
.btn--primary:hover {
  background: var(--red-bright);   /* brighter red, white text stays high-contrast */
  transform: translateY(-3px);
  box-shadow: 0 14px 40px -10px var(--red-glow);
}

.btn--ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-soft); transform: translateY(-3px); }

.btn--text { padding: 15px 14px; color: var(--text-soft); overflow: visible; border-radius: 10px; }
.btn--text:hover { color: var(--red-bright); }

.btn--lg { padding: 19px 38px; font-size: 17px; }

/* ============================================================
   SECTION HEADINGS (reusable)
   ============================================================ */
.section__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 80px); }
.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 22px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section__title em { font-style: normal; color: var(--red-bright); }
.section__intro {
  margin-top: 22px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-soft);
  max-width: 60ch;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* Animated tech grid */
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 75%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px; } }

/* Ambient red glow */
.hero__glow {
  position: absolute; z-index: 0;
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  top: 8%; right: -10%;
  background: radial-gradient(circle, var(--red-glow), transparent 62%);
  filter: blur(40px);
  opacity: 0.55;
  animation: glowPulse 9s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: 0.85; transform: scale(1.08); } }

.hero__inner { position: relative; z-index: 2; max-width: 940px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-soft);
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 24px;
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 12px var(--red-bright); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 7vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title em { font-style: normal; color: var(--red-bright); }

.hero__lead {
  max-width: 56ch;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-soft);
  margin-bottom: 36px;
}

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* ============================================================
   SERVICES — card grid
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  padding: 34px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
/* radial hover light following pointer (set via JS custom props) */
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(225,29,42,0.16), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--line-strong); background: var(--surface-2); }
.card:hover::before { opacity: 1; }

.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  margin-bottom: 26px;
  transition: background 0.5s var(--ease), transform 0.5s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--red-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { background: var(--red); transform: rotate(-6deg) scale(1.05); }
.card:hover .card__icon svg { stroke: #fff; }

.card__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin-bottom: 12px; letter-spacing: -0.01em; }
.card__text { font-size: 14.5px; color: var(--text-soft); }
.card__index {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--text-mute); transition: color 0.5s var(--ease);
}
.card:hover .card__index { color: var(--red-bright); }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.why__text .btn { margin-top: 34px; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why__item {
  background: var(--surface);
  padding: 30px 28px;
  transition: background 0.4s var(--ease);
}
.why__item span {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-bottom: 10px;
}
.why__item span::before {
  content: ""; width: 8px; height: 8px; border-radius: 2px;
  background: var(--red-bright); transition: transform 0.4s var(--ease);
}
.why__item p { font-size: 14px; color: var(--text-mute); }
.why__item:hover { background: var(--surface-2); }
.why__item:hover span::before { transform: rotate(45deg) scale(1.2); }

/* ============================================================
   PORTFOLIO / WORK
   ============================================================ */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 18px;
}
.work__card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}
.work__card--lg { grid-column: span 2; }

/* Single featured project: one centered card, taller and full-width */
.work__grid--single {
  grid-template-columns: 1fr;
  grid-auto-rows: clamp(380px, 52vw, 560px);
  max-width: 920px;
  margin-inline: auto;
}
.work__grid--single .work__card--lg { grid-column: span 1; }

.work__media {
  position: absolute; inset: 0;
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}
/* Cinematic gradient "shades" stand in for project imagery */
.work__media[data-shade="ember"]   { background: radial-gradient(120% 120% at 80% 20%, #3a0c10, #0c0c10); }
.work__media[data-shade="steel"]   { background: radial-gradient(120% 120% at 20% 20%, #1c2230, #0a0a10); }
.work__media[data-shade="crimson"] { background: radial-gradient(120% 120% at 70% 80%, #500810, #0b0b10); }
.work__media[data-shade="ash"]     { background: radial-gradient(120% 120% at 30% 30%, #25232a, #0a0a0d); }
.work__media[data-shade="onyx"]    { background: radial-gradient(120% 120% at 60% 40%, #1a1a22, #08080c); }
.work__media[data-shade="rust"]    { background: radial-gradient(120% 120% at 50% 30%, #3b1a10, #0b0a0d); }
/* Real project image (Eximia Media) */
.work__media--img {
  background-image: url("../img/fondoEximiaMedia.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.work__media::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; opacity: 0.5;
}
.work__media--img::after { display: none; }
.work__card:hover .work__media { transform: scale(1.04); filter: brightness(0.62); }

/* Dark overlay that intensifies on hover for stronger text legibility */
.work__card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(5, 5, 8, 0);
  transition: background 0.5s var(--ease);
  pointer-events: none;
}
.work__card:hover::before { background: rgba(5, 5, 8, 0.45); }

.work__meta {
  position: relative; z-index: 2;
  padding: 36px 32px 32px;
  width: 100%;
  background: linear-gradient(to top,
    rgba(5,5,8,0.96) 0%,
    rgba(5,5,8,0.9) 30%,
    rgba(5,5,8,0.6) 60%,
    rgba(5,5,8,0.15) 85%,
    transparent 100%);
  transform: translateY(12px);
  transition: transform 0.5s var(--ease);
}
.work__card:hover .work__meta { transform: translateY(0); }
.work__cat { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-bright); margin-bottom: 10px; }
.work__name { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.work__meta p { font-size: 14px; color: var(--text-soft); margin-top: 6px; opacity: 0; max-height: 0; transition: opacity 0.5s var(--ease), max-height 0.5s var(--ease); }
.work__card:hover .work__meta p { opacity: 1; max-height: 60px; }

/* ============================================================
   PROCESS TIMELINE
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.timeline__step {
  background: var(--surface);
  padding: 40px 34px;
  position: relative;
  transition: background 0.4s var(--ease);
}
.timeline__step::after {
  content: ""; position: absolute; left: 34px; bottom: 0;
  width: 0; height: 2px; background: var(--red);
  transition: width 0.5s var(--ease);
}
.timeline__step:hover { background: var(--surface-2); }
.timeline__step:hover::after { width: calc(100% - 68px); }
.timeline__num {
  font-family: var(--font-display); font-weight: 800; font-size: 40px;
  color: transparent; -webkit-text-stroke: 1.4px var(--line-strong);
  display: block; margin-bottom: 18px; transition: -webkit-text-stroke-color 0.4s var(--ease), color 0.4s var(--ease);
}
.timeline__step:hover .timeline__num { -webkit-text-stroke-color: var(--red-bright); }
.timeline__step h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; margin-bottom: 10px; }
.timeline__step p { font-size: 14.5px; color: var(--text-soft); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { text-align: center; overflow: hidden; }
.cta__glow {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, var(--red-glow), transparent 60%);
  filter: blur(60px); opacity: 0.4; z-index: 0;
}
.cta__inner { position: relative; z-index: 2; max-width: 860px; margin-inline: auto; }
.cta__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(34px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.03em;
  margin: 18px 0 24px;
}
.cta__title em { font-style: normal; color: var(--red-bright); }
.cta__lead { font-size: clamp(16px, 1.5vw, 20px); color: var(--text-soft); margin-bottom: 42px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--black); border-top: 1px solid var(--line); padding-top: 80px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer__brand p { color: var(--text-mute); font-size: 14px; margin-top: 18px; max-width: 34ch; }
.footer__col h4 { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; margin-bottom: 20px; }
.footer__col a { display: block; font-size: 14px; color: var(--text-soft); padding: 6px 0; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer__col a:hover { color: var(--red-bright); transform: translateX(4px); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-mute);
}

/* ============================================================
   SCROLL REVEAL (animated by JS via .is-in)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__card--lg { grid-column: span 2; }
}

@media (max-width: 880px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 60px 40px;
    background: var(--surface);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.5s var(--ease);
    z-index: 800;
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 20px; }
  .nav__burger { display: flex; z-index: 850; }

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

@media (max-width: 600px) {
  .container { padding-inline: 20px; }
  .cards { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .work__card--lg { grid-column: span 1; }
  .why__list { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { gap: 12px; }
  .btn { width: 100%; justify-content: center; }
  .btn--text { width: auto; }
}

/* Accessibility — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 100px;
  overflow: hidden;
}
.contact__inner { position: relative; z-index: 2; max-width: 820px; }

.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.contact__title em { font-style: normal; color: var(--red-bright); }

.contact__lead {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-soft);
  max-width: 60ch;
  margin-bottom: 48px;
}

/* Contact method cards */
.contact__methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 36px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease);
}
.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.contact-card__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  transition: background 0.45s var(--ease);
}
.contact-card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--red-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-card:hover .contact-card__icon { background: var(--red); }
.contact-card:hover .contact-card__icon svg { stroke: #fff; }

.contact-card__body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.contact-card__label { font-size: 13px; color: var(--text-mute); }
.contact-card__value { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.contact-card__hint { font-size: 12.5px; color: var(--text-mute); margin-top: 2px; }

.contact-card__arrow { width: 22px; height: 22px; fill: none; stroke: var(--text-soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--ease), stroke 0.45s var(--ease); }
.contact-card:hover .contact-card__arrow { transform: translateX(5px); stroke: var(--red-bright); }

.contact__note {
  font-size: 14.5px;
  color: var(--text-mute);
  max-width: 56ch;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .contact__methods { grid-template-columns: 1fr; }
}
