/* ===== TOKENS ===== */
:root {
  --primary: #19608E;
  --bg: #AFC5D3;
  --bg-deep: #4A9AA9;
  --accent: #C38C54;
  --accent-soft: #E8C896;
  --text: #143040;
  --text-soft: #345062;
  --text-muted: #6B8190;
  --surface: #C2D4DC;
  --surface-warm: #EFE3D0;
  --white: #FBFDFE;
  --footer-bg: #123E55;
  --line: rgba(20, 48, 64, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --font-hero: 'Playfair Display', Georgia, serif;

  --max-width: 1240px;
  --radius: 22px;
  --radius-sm: 12px;
  --radius-pill: 100px;
}

/* ===== BASE (sobre Bootstrap) ===== */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; font-size: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  font-optical-sizing: auto;
}

/* ===== LAYOUT (override del .container de Bootstrap) ===== */
.container {
  max-width: var(--max-width);
  padding-left: 40px;
  padding-right: 40px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--light { color: var(--accent-soft); }
.eyebrow--light::before { background: var(--accent-soft); }

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 28px;
  max-width: 14ch;
  line-height: 1.02;
}
.section-title em,
.services__title em,
.about__title em,
.tech__title em,
.custom__title em,
.contact__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--primary);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  padding: 18px 32px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease, background 0.35s ease;
  box-shadow: 0 8px 30px rgba(25, 96, 142, 0.25);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(25, 96, 142, 0.35);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary--light {
  background: white;
  color: var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.btn-primary--light:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 36px rgba(195, 140, 84, 0.4);
}

.btn-primary--accent {
  background: var(--accent);
  box-shadow: 0 8px 30px rgba(195, 140, 84, 0.3);
}
.btn-primary--accent:hover {
  background: #d49a64;
  box-shadow: 0 14px 40px rgba(195, 140, 84, 0.45);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
  transition: gap 0.35s ease, color 0.35s ease;
}
.btn-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.btn-link:hover { gap: 14px; color: var(--accent); }
.btn-link svg { width: 14px; height: 14px; transition: transform 0.35s ease; }
.btn-link:hover svg { transform: translateX(3px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 70px 0 110px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 8%;
  left: -8%;
  width: 45%;
  height: 55%;
  background: radial-gradient(circle, rgba(74, 154, 169, 0.28) 0%, transparent 65%);
  filter: blur(70px);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35%;
  height: 35%;
  background: radial-gradient(circle, rgba(195, 140, 84, 0.12) 0%, transparent 70%);
  filter: blur(80px);
  z-index: 0;
}
.hero__row {
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero__content { max-width: 640px; }
.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 36px;
}
.hero__label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.hero__title {
  font-family: var(--font-hero);
  font-size: clamp(4.4rem, 11.5vw, 9.5rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero__title span { display: block; }
.hero__title span:last-child {
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
}
.hero__role {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.hero__role-line {
  width: 56px;
  height: 1px;
  background: var(--accent);
}
.hero__role-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-soft);
  font-style: italic;
}
.hero__description {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 480px;
  margin-bottom: 48px;
}

.hero__portrait {
  position: relative;
  width: 100%;
  max-width: 440px;
}
.hero__portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(20, 48, 64, 0.3);
}
.hero__portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}
.hero__portrait-badges {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__portrait-tag {
  background: rgba(251, 253, 254, 0.95);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(20, 48, 64, 0.12);
}
.hero__portrait-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 140, 84, 0.25);
}
.hero__portrait-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #0a66c2;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 16px rgba(20, 48, 64, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero__portrait-linkedin svg {
  width: 16px;
  height: 16px;
}
.hero__portrait-linkedin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 48, 64, 0.2);
}
.hero__portrait-caption {
  position: absolute;
  bottom: -32px;
  right: 6px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__portrait-caption::before {
  content: '✦';
  color: var(--accent);
  font-style: normal;
  font-size: 0.85rem;
}
.hero__decoration {
  position: absolute;
  top: -22px;
  right: -22px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  z-index: 2;
  animation: spin 22s linear infinite;
}
.hero__decoration svg { width: 100%; height: 100%; }
@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.hero__scroll-line {
  width: 56px;
  height: 1px;
  background: rgba(20, 48, 64, 0.18);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { left: -100%; }
  60%, 100% { left: 100%; }
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg);
  padding: 140px 0;
}
.services__header {
  margin-bottom: 90px;
}
.services__title {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.services__intro {
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 42ch;
  padding-bottom: 14px;
}
.services__list {
  border-top: 1px solid var(--line);
}
.service {
  padding: 46px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.service:hover { padding-left: 14px; padding-right: 14px; }
.service__num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.service__title {
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.service__desc {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 38ch;
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--surface);
  padding: 140px 0;
}
.projects__header {
  margin-bottom: 56px;
}
.projects__intro {
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 42ch;
  padding-bottom: 14px;
}
.projects__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 64px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-family: var(--font-body);
}
.filter-btn:hover {
  color: var(--primary);
  background: rgba(25, 96, 142, 0.08);
}
.filter-btn.is-active {
  background: var(--primary);
  color: white;
}

/* Featured project */
.featured-project {
  align-items: center;
  margin-bottom: 80px;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 30px;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.featured-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -25px rgba(20, 48, 64, 0.22);
}
.featured-project__image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: var(--surface);
}
.featured-project__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.7s ease;
}
.featured-project:hover .featured-project__image img {
  transform: scale(1.04);
}
.featured-project__content {
  padding: 24px 24px 24px 0;
}
.featured-project__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.featured-project__badge::before {
  content: '★';
  font-size: 0.85rem;
}
.featured-project__title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.featured-project__category {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.featured-project__desc {
  font-size: 1.05rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 42ch;
}
.featured-project__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.featured-project__tech li {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
}

/* Project grid */
.project-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: cardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.project-col:nth-child(1) .project-card { animation-delay: 0.05s; }
.project-col:nth-child(2) .project-card { animation-delay: 0.12s; }
.project-col:nth-child(3) .project-card { animation-delay: 0.19s; }
.project-col:nth-child(4) .project-card { animation-delay: 0.26s; }
.project-col:nth-child(5) .project-card { animation-delay: 0.33s; }
.project-col:nth-child(6) .project-card { animation-delay: 0.4s; }
.project-col { margin-bottom: 8px; }
.project-col .project-card { height: 100%; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -22px rgba(20, 48, 64, 0.2);
}
.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}
.project-card__image {
  overflow: hidden;
  position: relative;
}
.project-card__image img {
  width: 100%;
  height: auto;
  display: block;
}
.project-card__content {
  padding: 28px 30px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-card__title {
  font-size: 1.7rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.project-card__category {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.project-card__desc {
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}
.project-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 14px;
}
.project-card__tech {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: bold;
}
.project-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
  white-space: nowrap;
}
.project-card:hover .project-card__cta { gap: 11px; }
.projects__empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  font-style: italic;
  font-family: var(--font-display);
}

/* ===== CUSTOM ===== */
.custom {
  background: var(--bg-deep);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  color: white;
}
.custom::before {
  content: '✦';
  position: absolute;
  top: 70px;
  right: 9%;
  font-size: 1.8rem;
  color: var(--accent-soft);
  opacity: 0.55;
}
.custom::after {
  content: '';
  position: absolute;
  bottom: 12%;
  left: 7%;
  width: 80px;
  height: 1px;
  background: var(--accent-soft);
  opacity: 0.5;
}
.custom__container {
  max-width: 880px;
  text-align: center;
  position: relative;
}
.custom__title {
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 36px;
}
.custom__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-soft);
}
.custom__text {
  font-size: 1.18rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 56ch;
  margin: 0 auto 48px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg);
  padding: 140px 0;
}
.about__portrait {
  position: relative;
  max-width: 420px;
}
.about__portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 60px -20px rgba(20, 48, 64, 0.3);
}
.about__portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}
.about__decoration {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 84px;
  height: 84px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
}
.about__content { max-width: 540px; }
.about__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 36px;
  line-height: 1.02;
}
.about__text {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.about__detail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 20px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.about__detail::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 140, 84, 0.22);
}

/* ===== TECH ===== */
.tech {
  background: var(--surface);
  padding: 140px 0;
}
.tech__header {
  text-align: center;
  margin-bottom: 70px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.tech__title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
  line-height: 1.05;
}
.tech__intro {
  font-size: 1.08rem;
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 auto;
}
.tech__grid {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.tech__item {
  padding: 38px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease;
  position: relative;
}
.tech__item:hover {
  background: var(--bg);
}
.tech__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 22px;
}
.tech__name {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  transition: color 0.3s ease;
  line-height: 1.1;
}
.tech__item:hover .tech__name {
  color: var(--primary);
}
.tech__type {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tech__item--accent {
  background: var(--bg);
}
.tech__item--accent .tech__name {
  color: var(--primary);
  font-style: italic;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.15;
}
.tech__item--accent .tech__num {
  font-size: 1.1rem;
}
.tech__item--live {
  background: var(--surface-warm);
  box-shadow: inset 0 3px 0 0 var(--accent);
}
.tech__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: 100px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: right;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}
.tech__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 140, 84, 0.25);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--primary);
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  color: white;
}
.contact::before {
  content: '✦';
  position: absolute;
  top: 80px;
  right: 10%;
  font-size: 2.2rem;
  color: var(--accent-soft);
  opacity: 0.5;
}
.contact::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 90px;
  height: 1px;
  background: var(--accent-soft);
  opacity: 0.45;
}
.contact__container {
  max-width: 900px;
  text-align: center;
  position: relative;
}
.contact__title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 32px;
}
.contact__title em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-soft);
}
.contact__text {
  font-size: 1.18rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 50ch;
  margin: 0 auto 48px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  color: white;
  padding: 80px 0 38px;
}
.footer__main {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 36px;
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: white;
  letter-spacing: -0.02em;
}
.footer__brand-name em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent-soft);
}
.footer__brand-role {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer__heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 22px;
}
.footer__nav, .footer__social {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__nav a, .footer__social a {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.footer__social a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.55;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.footer__nav a:hover, .footer__social a:hover {
  color: white;
  padding-left: 4px;
}
.footer__social a:hover::before {
  opacity: 1;
  transform: scale(1.4);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__tag::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.78rem;
}

/* ===== SCROLL REVEAL ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .container { padding: 0 32px; }
  .hero__portrait { max-width: 380px; }
  .hero__scroll { display: none; }
  .featured-project { padding: 24px; }
  .featured-project__content { padding: 6px 6px 6px 0; }
  .about__portrait { max-width: 360px; }
}

@media (max-width: 767.98px) {
  body { font-size: 16px; }
  .container { padding: 0 22px; }
  .services, .projects, .custom, .about, .tech, .contact {
    padding: 90px 0;
  }
  .custom { padding: 100px 0; }
  .contact { padding: 110px 0; }
  .hero { padding: 50px 0 80px; min-height: auto; }
  .hero__title { font-size: clamp(3.2rem, 15vw, 5rem); margin-bottom: 26px; }
  .hero__description { font-size: 1.05rem; margin-bottom: 36px; }
  .hero__role-text { font-size: 1.15rem; }
  .hero__portrait { max-width: 320px; }
  .hero__decoration { width: 50px; height: 50px; top: -16px; right: -10px; }
  .hero__portrait-caption { font-size: 0.88rem; bottom: -28px; }

  .services__header, .projects__header { margin-bottom: 56px; }
  .service { padding: 34px 0; }
  .service:hover { padding-left: 0; padding-right: 0; }
  .service__num { font-size: 1.1rem; }
  .service__title { font-size: 1.6rem; }

  .projects__filters { gap: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 0.82rem; }

  .featured-project { padding: 20px; }
  .featured-project__content { padding: 0; }
  .featured-project__title { font-size: 1.9rem; }
  .featured-project__desc { font-size: 0.98rem; }

  .project-card__content { padding: 22px 22px 24px; }
  .project-card__title { font-size: 1.45rem; }
  .project-card__desc { font-size: 0.92rem; }
  .project-card__footer { flex-direction: column; align-items: flex-start; gap: 10px; }

  .tech__item { padding: 30px 22px; }
  .tech__name { font-size: 1.4rem; }

  .custom__title, .contact__title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
  .custom__text, .contact__text { font-size: 1.05rem; }

  .about__title { font-size: clamp(2.2rem, 7vw, 3rem); }
  .about__text { font-size: 1rem; }
  .about__decoration { width: 68px; height: 68px; font-size: 1.1rem; bottom: -16px; right: -10px; }

  .footer { padding: 60px 0 32px; }
  .footer__main { padding-bottom: 40px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .custom::before, .contact::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero__decoration { animation: none; }
}
