/* ========================================
   TACTIX — Design System & Styles
   ======================================== */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Colors */
  --navy: #1B2D4F;
  --navy-light: #263d63;
  --terracota: #C2714F;
  --terracota-dark: #a85d3f;
  --rojo: #E04E3A;
  --rojo-dark: #c43d2b;
  --blanco: #FAF8F5;
  --carbon: #2C2C2C;
  --carbon-light: #555;
  --gris: #E8E4E0;
  --gris-claro: #F2F0ED;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-max: 1140px;
  --container-pad: 1.5rem;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.3s;

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--carbon);
  background-color: var(--blanco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture overlay for atmosphere */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

ul, ol {
  list-style: none;
}

button, input, textarea {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.15;
  color: var(--navy);
}

h1 {
  font-size: clamp(2.2rem, 5vw + 1rem, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3vw + 0.5rem, 2.6rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.15rem, 1.5vw + 0.3rem, 1.4rem);
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracota);
}

p {
  max-width: 65ch;
}

em {
  font-style: normal;
  color: var(--terracota);
  position: relative;
}

em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--terracota);
  opacity: 0.3;
  border-radius: 2px;
}

strong {
  font-weight: 700;
  color: var(--navy);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section {
  padding: var(--space-2xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section__header--left {
  text-align: left;
}

.section__tag {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracota);
  margin-bottom: var(--space-xs);
}

.section__title {
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  color: var(--carbon-light);
  font-size: 1.05rem;
  margin: 0 auto;
}

.section__header--left .section__subtitle {
  margin: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--cta {
  background: linear-gradient(135deg, var(--rojo) 0%, #d44332 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(224, 78, 58, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--cta:hover {
  background: linear-gradient(135deg, var(--rojo-dark) 0%, #b83525 100%);
  box-shadow: 0 6px 20px rgba(224, 78, 58, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(224, 78, 58, 0.3);
}

.btn--outline {
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn--outline:hover {
  background: var(--navy);
  color: #fff;
}

.btn--full {
  width: 100%;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(27, 45, 79, 0.08);
  transition: background var(--duration) var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--navy);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--terracota);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  line-height: 1;
}

.logo-text {
  letter-spacing: 0.04em;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--carbon-light);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.nav__list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracota);
  transition: width var(--duration) var(--ease);
}

.nav__list a:hover {
  color: var(--navy);
}

.nav__list a:hover::after {
  width: 100%;
}

.header__cta {
  padding: 0.65rem 1.4rem;
  font-size: 0.88rem;
}

/* Mobile menu button */
.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 110;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
  transform-origin: center;
}

.header__menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--blanco);
  padding: var(--space-lg) var(--container-pad);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration) var(--ease);
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__list li {
  border-bottom: 1px solid var(--gris);
}

.mobile-menu__list a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--duration) var(--ease);
}

.mobile-menu__list a:hover {
  color: var(--terracota);
}

.mobile-menu .btn {
  margin-top: var(--space-lg);
}

/* ---------- HERO ---------- */
.hero {
  padding-top: calc(70px + var(--space-2xl));
  padding-bottom: var(--space-2xl);
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(194, 113, 79, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(27, 45, 79, 0.04) 0%, transparent 50%),
    linear-gradient(160deg, var(--blanco) 0%, var(--gris-claro) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracota);
  margin-bottom: var(--space-sm);
}

.hero__title {
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--carbon-light);
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Hero visual — the diagonal signature */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__shape {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
}

.hero__diagonal {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 70%;
  height: 80%;
  background: var(--terracota);
  opacity: 0.12;
  border-radius: var(--radius-lg);
  transform: rotate(-12deg) skewX(-5deg);
  transition: opacity var(--duration) var(--ease);
}

.hero__diagonal::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60%;
  height: 70%;
  border: 3px solid var(--terracota);
  opacity: 0.3;
  border-radius: var(--radius-lg);
  transform: rotate(8deg);
}

.hero__circle {
  position: absolute;
  bottom: 15%;
  right: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--rojo);
  opacity: 0.15;
}

.hero__scroll-hint {
  text-align: center;
  margin-top: auto;
  padding-top: var(--space-lg);
  font-size: 1.4rem;
  color: var(--terracota);
  opacity: 0.5;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- SERVICES ---------- */
.services {
  background: #fff;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.service-card {
  position: relative;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--gris);
  background: #fff;
  transition: all var(--duration) var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--terracota);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  opacity: 0;
  transition: opacity var(--duration) var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(27, 45, 79, 0.1);
  border-color: var(--terracota);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__badge {
  position: absolute;
  top: -12px;
  left: var(--space-lg);
  background: var(--terracota);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gris-claro);
  color: var(--terracota);
  margin-bottom: var(--space-md);
}

.service-card--featured .service-card__icon {
  background: var(--terracota);
  color: #fff;
}

.service-card__title {
  margin-bottom: var(--space-xs);
}

.service-card__desc {
  color: var(--carbon-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-card__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--carbon);
}

.service-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--terracota);
  font-weight: 700;
}

.service-card--featured {
  border-color: var(--terracota);
  border-width: 2px;
}

.services__cta {
  text-align: center;
  padding: var(--space-lg);
  background: var(--gris-claro);
  border-radius: var(--radius-md);
}

.services__cta p {
  margin: 0 auto var(--space-sm);
  font-size: 1.05rem;
}

/* ---------- PROCESS ---------- */
.process {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--terracota);
  opacity: 0.06;
  border-radius: 50%;
  pointer-events: none;
}

.process .section__tag {
  color: var(--terracota);
}

.process .section__title {
  color: #fff;
}

.process .section__subtitle {
  color: rgba(255, 255, 255, 0.65);
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, var(--terracota), rgba(194, 113, 79, 0.2));
}

.process__step {
  position: relative;
  text-align: center;
}

.process__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--terracota);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--terracota);
  position: relative;
  z-index: 1;
}

.process__step-title {
  color: #fff;
  margin-bottom: var(--space-xs);
}

.process__step-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0 auto var(--space-sm);
}

.process__time {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--terracota);
  background: rgba(194, 113, 79, 0.15);
  padding: 0.25rem 0.8rem;
  border-radius: 100px;
}

/* ---------- PORTFOLIO ---------- */
.portfolio {
  background: var(--gris-claro);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.portfolio__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gris);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.portfolio__item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracota), var(--rojo));
  transition: width 0.4s var(--ease);
}

.portfolio__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(27, 45, 79, 0.1);
}

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

.portfolio__image {
  background: var(--gris);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.portfolio__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--carbon-light);
}

.portfolio__info {
  padding: var(--space-md) var(--space-md) var(--space-md) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portfolio__name {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.portfolio__result {
  font-size: 0.9rem;
  color: var(--carbon-light);
  margin-bottom: var(--space-sm);
}

.portfolio__tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracota);
}

/* ---------- CONTACT ---------- */
.contact {
  background: #fff;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.contact__channel {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--gris);
  transition: all var(--duration) var(--ease);
}

.contact__channel:hover {
  border-color: var(--terracota);
  background: var(--gris-claro);
}

.contact__channel svg {
  flex-shrink: 0;
  color: var(--terracota);
}

.contact__channel-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.contact__channel-value {
  display: block;
  font-size: 0.85rem;
  color: var(--carbon-light);
}

/* Form */
.contact__form {
  padding: var(--space-lg);
  background: var(--gris-claro);
  border-radius: var(--radius-md);
  border: 1px solid var(--gris);
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form__input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--gris);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.95rem;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.form__input:focus {
  outline: none;
  border-color: var(--terracota);
  box-shadow: 0 0 0 3px rgba(194, 113, 79, 0.15);
}

.form__input::placeholder {
  color: #aaa;
}

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

.form__note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--carbon-light);
  margin-top: var(--space-sm);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
  position: relative;
  overflow: hidden;
}

.footer__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--terracota), var(--rojo));
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-xl);
}

.footer .header__logo {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.footer .logo-mark {
  background: var(--terracota);
}

.footer__tagline {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.footer__links h4 {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--duration) var(--ease);
}

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

.footer__bottom {
  grid-column: 1 / -1;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  font-size: 0.82rem;
  opacity: 0.5;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.fade-in-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.fade-in-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- ACCESSIBILITY ---------- */
/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--container-pad);
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 200;
  transition: top var(--duration) var(--ease);
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--terracota);
  outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--terracota);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Scroll-margin for sticky header */
:target {
  scroll-margin-top: 90px;
}

[id] {
  scroll-margin-top: 90px;
}

/* Visually hidden (sr-only) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- FORM ERRORS ---------- */
.form__error {
  display: block;
  font-size: 0.82rem;
  color: var(--rojo);
  margin-top: 0.3rem;
  font-weight: 500;
}

.form__input[aria-invalid="true"] {
  border-color: var(--rojo);
  box-shadow: 0 0 0 3px rgba(224, 78, 58, 0.12);
}

.form__error-summary {
  background: #fef2f2;
  border: 1px solid var(--rojo);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
  color: var(--rojo);
}

.form__error-summary[hidden] {
  display: none;
}

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

  .fade-in {
    opacity: 1;
    transform: none;
  }

  .fade-in-stagger > * {
    opacity: 1;
    transform: none;
  }

  .hero__scroll-hint {
    animation: none;
  }
}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width: 1024px) {
  .nav__list {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(70px + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .process__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .process__steps::before {
    display: none;
  }

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

  .portfolio__item {
    grid-template-columns: 160px 1fr;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* ---------- RESPONSIVE: MOBILE ---------- */
@media (max-width: 640px) {
  :root {
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .process__steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

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

  .portfolio__image {
    min-height: 140px;
  }

  .portfolio__info {
    padding: var(--space-sm) var(--space-md) var(--space-md);
  }

  .contact__form {
    padding: var(--space-md);
  }

  .footer__links {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ---------- PRINT ---------- */
@media print {
  .header,
  .hero__visual,
  .hero__scroll-hint,
  .mobile-menu {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
    page-break-inside: avoid;
  }
}
