/* ============================================================
   Sherwin Galindo — Luxury Portfolio
   Black & White / Minimal / Premium
   ============================================================ */

:root {
  --black: #000000;
  --white: #ffffff;
  --c-111: #111111;
  --c-1a: #1a1a1a;
  --c-f5: #f5f5f5;
  --gray: #8a8a8a;
  --gray-2: #6a6a6a;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(0, 0, 0, 0.12);
  --gold: #c9a227;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;

  --font: "Helvetica Neue", Helvetica, "Inter", "Segoe UI", system-ui, -apple-system,
    Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--c-111);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- Typography helpers ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
    border-color 0.4s var(--ease), transform 0.4s var(--ease);
  will-change: transform;
}
.btn--solid {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--solid:hover {
  background: transparent;
  color: var(--black);
}
.btn--outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
  padding: 12px 22px;
}
.btn--ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.header.is-solid .btn--ghost:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--full {
  width: 100%;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  color: var(--white);
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
    box-shadow 0.45s var(--ease), height 0.45s var(--ease);
}
.header.is-solid {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--c-111);
  box-shadow: 0 1px 0 var(--line-dark);
  height: 64px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  overflow: hidden;
  flex: none;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.brand__mark--lg {
  width: 64px;
  height: 64px;
}
.brand__name {
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.nav__list {
  display: flex;
  gap: 34px;
}
.nav__link {
  position: relative;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover,
.nav__link.is-active {
  opacity: 1;
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.header__cta {
  font-size: 0.72rem;
}

/* Hamburger */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease), top 0.3s var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 22px; }
.hamburger span:nth-child(3) { top: 28px; }
.hamburger.is-open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--black);
  color: var(--white);
  z-index: 99;
  display: grid;
  place-items: center;
  transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
}
.mobile-menu ul {
  text-align: center;
}
.mobile-menu__link {
  display: block;
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.mobile-menu.is-open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open li:nth-child(1) .mobile-menu__link { transition-delay: 0.1s; }
.mobile-menu.is-open li:nth-child(2) .mobile-menu__link { transition-delay: 0.16s; }
.mobile-menu.is-open li:nth-child(3) .mobile-menu__link { transition-delay: 0.22s; }
.mobile-menu.is-open li:nth-child(4) .mobile-menu__link { transition-delay: 0.28s; }
.mobile-menu.is-open li:nth-child(5) .mobile-menu__link { transition-delay: 0.34s; }
.mobile-menu__link:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(80% 60% at 80% 100%, rgba(255, 255, 255, 0.05), transparent 55%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
  max-width: 1000px;
}
.hero__eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: var(--gold);
}
.hero__title {
  font-size: clamp(1.55rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero__title span {
  display: block;
  white-space: nowrap;
}
.hero__subtitle {
  margin-top: 30px;
  max-width: 56ch;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: rgba(255, 255, 255, 0.72);
  font-weight: 300;
}
.hero__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero__actions .btn--solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.hero__actions .btn--solid:hover {
  background: transparent;
  color: var(--white);
}
.hero__actions .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.hero__actions .btn--outline:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50% { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--black);
  color: var(--white);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__group {
  display: flex;
  align-items: center;
}
.marquee__group span {
  font-size: clamp(1.1rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 26px;
  color: rgba(255, 255, 255, 0.92);
}
.marquee .sep {
  color: var(--gold);
  font-style: normal;
  font-size: 1rem;
  transform: translateY(-2px);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
}
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section__head {
  max-width: 760px;
  margin-bottom: 70px;
}
.section__index {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 18px;
}
.section__title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.04;
}
.section__sub {
  margin-top: 20px;
  font-size: 1.05rem;
  color: var(--gray-2);
  font-weight: 300;
  max-width: 56ch;
}
.section--dark .section__sub {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.about__summary {
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.45;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--c-111);
}
.about__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.about__roles li {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line-dark);
  border-radius: 50px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.about__roles li:hover {
  background: var(--black);
  color: var(--white);
}
.about__cols {
  display: grid;
  gap: 36px;
}
.about__block {
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.about__block-title {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-2);
  margin-bottom: 18px;
}
.about__list li {
  font-size: 1.02rem;
  padding: 7px 0;
  font-weight: 400;
}
.about__list li::before {
  content: "—";
  color: var(--gold);
  margin-right: 12px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service {
  position: relative;
  padding: 48px 40px 56px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: background 0.5s var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service:hover {
  background: var(--c-1a);
}
.service:hover::after {
  transform: scaleX(1);
}
.service__num {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.service__title {
  font-size: 1.5rem;
  margin: 26px 0 14px;
  transition: transform 0.5s var(--ease);
}
.service:hover .service__title {
  transform: translateX(8px);
}
.service__text {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  font-size: 0.98rem;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio__grid {
  columns: 3;
  column-gap: 26px;
}
.pcard {
  position: relative;
  break-inside: avoid;
  margin-bottom: 26px;
  background: var(--c-f5);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.pcard.is-in {
  opacity: 1;
  transform: translateY(0);
}
.pcard__media {
  position: relative;
  overflow: hidden;
  background: var(--c-1a);
}
.pcard__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.02);
  transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
  filter: grayscale(100%) contrast(1.02);
}
.pcard:hover .pcard__img {
  transform: scale(1.08);
  filter: grayscale(0%);
}
.pcard__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  color: #fff;
  background:
    radial-gradient(120% 120% at 30% 20%, #2a2a2a, #0a0a0a);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.pcard__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}
.pcard:hover .pcard__overlay,
.pcard:focus-within .pcard__overlay {
  opacity: 1;
}
.pcard__visit {
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transform: translateY(14px);
  transition: transform 0.5s var(--ease), background 0.3s, color 0.3s;
}
.pcard:hover .pcard__visit {
  transform: translateY(0);
}
.pcard__visit:hover {
  background: #fff;
  color: #000;
}
.pcard__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
}
.pcard__name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pcard__tag {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-2);
  white-space: nowrap;
  border: 1px solid var(--line-dark);
  padding: 6px 12px;
  border-radius: 50px;
}

/* ============================================================
   METRICS
   ============================================================ */
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 60px;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric__num {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric__label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.metrics__points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.metrics__points li {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
}
.metrics__points li::before {
  content: "\2726";
  color: var(--gold);
  margin-right: 12px;
  font-size: 0.8rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.contact__text {
  margin-top: 24px;
  color: var(--gray-2);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 44ch;
}
.contact__details {
  margin-top: 44px;
  display: grid;
  gap: 18px;
}
.contact__details li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: baseline;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1rem;
}
.contact__details span {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.contact__details a:hover {
  color: var(--gold);
}

.contact__form {
  display: grid;
  gap: 22px;
}
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.field input,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-111);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-dark);
  padding: 12px 2px;
  transition: border-color 0.4s var(--ease);
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #b5b5b5;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--black);
}
.form__note {
  font-size: 0.9rem;
  margin-top: 4px;
}
.form__note.ok { color: #1d8a4a; }
.form__note.err { color: #c0392b; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding-top: 90px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
.footer__brand h3 {
  font-size: 1.6rem;
  margin: 18px 0 6px;
}
.footer__brand p {
  color: var(--gray);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.footer__nav h4,
.footer__social h4 {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}
.footer__nav li,
.footer__social li {
  margin-bottom: 12px;
}
.footer__nav a,
.footer__social a {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s, padding-left 0.3s var(--ease);
}
.footer__nav a:hover,
.footer__social a:hover {
  color: #fff;
  padding-left: 6px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  font-size: 0.84rem;
  color: var(--gray);
}
.footer__top {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}
.footer__top:hover {
  color: var(--gold);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.4s var(--ease);
}
.whatsapp:hover {
  transform: scale(1.08) translateY(-2px);
}
.whatsapp svg {
  position: relative;
  z-index: 2;
}
.whatsapp__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: pulse 2.2s var(--ease) infinite;
  z-index: 1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { columns: 2; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
}

@media (max-width: 860px) {
  .nav,
  .header__cta { display: none; }
  .hamburger { display: block; }

  .about__grid { grid-template-columns: 1fr; gap: 50px; }
  .contact__inner { grid-template-columns: 1fr; gap: 50px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { padding: 0 22px; }
  .services__grid { grid-template-columns: 1fr; }
  .portfolio__grid { columns: 1; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1; }
  .contact__details li { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pcard { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
