:root {
  --bg: #000;
  --text: #fff;
  --muted: rgba(255,255,255,.76);
  --soft: rgba(255,255,255,.58);
  --yellow: #ecdd4d;
  --orange: #fe964d;
  --accent: linear-gradient(90deg, #ecdd4d 0%, #fe964d 100%);
  --card-bg: linear-gradient(178deg, #000 10.02%, #292929 98.65%);
  --radius: 48px;
  --shadow-lg: 0 18px 60px rgba(0,0,0,.34), 0 8px 24px rgba(0,0,0,.22);
  --shadow-md: 0 12px 30px rgba(0,0,0,.28), 0 4px 12px rgba(255,255,255,.035) inset;
  --shadow-sm: 0 8px 18px rgba(0,0,0,.18);
  --border-soft: 1px solid rgba(255,255,255,.08);
  --container: min(1500px, calc(100vw - 64px));
  --section-space: clamp(88px, 10vw, 140px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(236,221,77,.08), transparent 22%),
    radial-gradient(circle at 20% 12%, rgba(254,150,77,.06), transparent 18%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container { width: var(--container); margin: 0 auto; }
.section-space { padding: var(--section-space) 0; }

/* =========================
   HEADER / NAV
   ========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(0,0,0,.58);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav-wrap {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img,
.footer-logo img {
  transition: transform .35s var(--ease), filter .35s var(--ease);
}

.brand img {
  max-height: 72px;
  width: auto;
  display: block;
}

.brand:hover img,
.footer-logo:hover img {
  transform: translateY(-1px) scale(1.02);

  filter:
    brightness(0) saturate(100%)
    invert(80%) sepia(88%) saturate(420%)
    hue-rotate(3deg) brightness(102%) contrast(95%);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2vw, 42px);
}

.main-nav a,
.footer-nav a {
  position: relative;
  color: var(--text);
  font-size: 18px;
  font-weight: 300;
  opacity: .94;
  transition: opacity .25s ease, color .25s ease;
}

.main-nav a::after,
.footer-nav a::after,
.email-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.main-nav a:hover,
.footer-nav a:hover,
.email-link:hover {
  opacity: 1;
}

.main-nav a:hover::after,
.footer-nav a:hover::after,
.email-link:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px auto;
  transition: transform .3s ease, opacity .3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================
   HOME HERO
   ========================= */

.hero { padding-top: clamp(54px, 6vw, 88px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(36px, 4vw, 64px);
}

.hero-copy {
  max-width: 740px;
  position: relative;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: auto auto 10% -3%;
  width: min(440px, 70vw);
  height: min(260px, 35vw);
  background: radial-gradient(circle, rgba(236,221,77,.12), rgba(254,150,77,.06) 42%, transparent 72%);
  filter: blur(16px);
  z-index: -1;
  pointer-events: none;
}

.hero-copy h1 {
  margin: 0;
  min-height: 3.2em;
  color: #fff;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -1px;
}

.type-target { display: inline; }

.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  align-self: center;
  isolation: isolate;
}

.hero-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 72px;
  height: clamp(160px, 16vw, 220px);
  border-radius: 0 0 48px 48px;
  background: var(--accent);
  box-shadow: 0 12px 50px rgba(254,150,77,.16);
}

.hero-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 45%);
}

.hero-visual {
  width: min(700px, 92%);
  position: relative;
  z-index: 2;
  margin: 0 0 62px 0;
  overflow: hidden;
  border: none;
  background: transparent;
  box-shadow: none;
  transform-origin: center center;
  will-change: auto;
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  content: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* =========================
   SHARED TYPO / SECTIONS
   ========================= */

.section-heading { text-align: center; }

.section-heading h2,
.why-me-grid h2,
.footer-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 3.3vw, 3.125rem);
  font-weight: 200;
  line-height: 1.1;
  letter-spacing: -1px;
}

.section-heading h2 span,
.footer-copy h2 {
  color: #fff;
}

.section-heading h2 em,
.footer-copy h2 span {
  font-style: normal;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 1.1;
}

.section-support {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  line-height: 1.55;
}

/* =========================
   CARDS / GRIDS
   ========================= */

.expertise-grid,
.selected-grid {
  margin-top: 52px;
  display: grid;
  gap: 22px;
}

.expertise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.selected-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.info-card,
.project-card {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.info-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.055), transparent 25%);
  pointer-events: none;
}

.info-card::after,
.project-card::after {
  content: "";
  position: absolute;
  width: 56%;
  height: 28%;
  top: -4%;
  left: 20%;
  background: radial-gradient(circle, rgba(236,221,77,.08), rgba(254,150,77,.06) 38%, transparent 68%);
  filter: blur(22px);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}

.info-card {
  min-height: 454px;
  padding: 34px 28px 32px;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s ease;
}

.info-card:hover {
  transform: translateY(-10px) rotateX(2deg);
  box-shadow: 0 26px 58px rgba(0,0,0,.36), 0 14px 18px rgba(255,255,255,.03) inset;
  border-color: rgba(255,255,255,.12);
}

.info-card:hover::after,
.project-card:hover::after {
  opacity: 1;
}

.info-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: .96px;
  font-weight: 600;
}

.info-card p,
.project-body,
.why-text,
.footer-copy .footer-support {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .54px;
}

.info-card ul {
  margin: 18px 0 0 16px;
  padding: 0;
  color: #fff;
  display: grid;
  gap: 10px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: .54px;
}

/* =========================
   PROJECTS
   ========================= */

.project-list {
  margin-top: 52px;
  display: grid;
  gap: 28px;
}

.project-card {
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(0,0,0,.4), 0 0 50px rgba(255,255,255,.03) inset;
  border-color: rgba(255,255,255,.12);
}

.project-card--wide {
  min-height: 633px;
  padding: clamp(24px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr);
  column-gap: clamp(28px, 3vw, 54px);
  row-gap: 18px;
  align-items: center;
}

.project-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform-origin: center center;
}

.project-media img {
  width: 100%;
  max-width: 780px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.3));
}

.project-copy h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.eyebrow {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 2;
}

.project-body { max-width: 360px; margin-top: 8px; }

.project-meta {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
}

.cta-link {
  position: relative;
  display: inline-flex;
  width: 234px;
  padding: 12px 40px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 2.5;
  border-bottom: 2px solid #fff;
  transition: transform .3s var(--ease), border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.cta-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.cta-link:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: rgba(255,255,255,.2);
  box-shadow: 0 12px 24px rgba(0,0,0,.14);
}

.cta-link:hover::before { transform: scaleX(1); }

.button-reset {
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  cursor: pointer;
}

.project-card--small {
  min-height: 630px;
  padding: 20px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.small-media {
  min-height: 220px;
  padding: 8px 8px 0;
}

.small-media img {
  max-width: 100%;
  object-fit: contain;
}

.top-meta {
  text-align: left;
  margin: 14px 12px 0;
}

.small-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px 12px 0;
  flex: 1;
}

.project-card--small .project-body { max-width: none; }
.project-card--small .cta-link { margin-top: auto; align-self: center; }

/* =========================
   WHY ME
   ========================= */

.why-me-box { position: relative; }

.line {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.9);
  transition: background .3s ease;
}

.why-me-box:hover .line { background: #fbcb10; }

.why-me-grid {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(250px, .95fr) minmax(320px, 1.3fr);
  align-items: center;
  gap: clamp(26px, 3vw, 60px);
  padding: 52px 0;
}

.why-me-grid h2 { color: #fff; }

.why-highlight {
  margin: 0;
  text-align: center;
  color: #fbcb10;
  font-size: clamp(1.3rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 1.1;
}

.why-text { max-width: 520px; }

/* =========================
   FOOTER
   ========================= */

.site-footer { padding-top: 36px; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 4vw, 80px);
  align-items: start;
}

.footer-copy h2 { margin-bottom: 10px; }

.footer-support {
  max-width: 540px;
  margin-top: 12px;
  color: rgba(255,255,255,.72);
}

.email-link {
  display: inline-block;
  position: relative;
  margin-top: 12px;
  color: #fff;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.1;
}

.contact-form {
  width: 100%;
  margin-top: 0;
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  background: rgba(53,50,50,.61);
  color: #fff;
  padding: 14px 24px;
  outline: 0;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(236,221,77,.55);
  background: rgba(64,60,60,.72);
  box-shadow: 0 0 0 4px rgba(236,221,77,.08), 0 0 26px rgba(254,150,77,.08);
  transform: translateY(-1px);
}

.contact-form .cta-link {
  width: 278px;
  border-bottom-color: #ffcd05;
}

.footer-branding,
.social-brand-row,
.footer-logo { display: none !important; }

/* Footer middle column — image (future use) */
.footer-image-col {
  display: flex;
  align-items: flex-start;
}

.footer-side-img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

/* Footer right column — contact form */
.footer-form-col {
  padding-top: 6px;
}

/* LinkedIn link inside footer-nav */
.footer-nav-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: color .25s ease;
}

.footer-nav-linkedin img {
  width: 16px;
  height: 16px;
  opacity: .72;
  transition: opacity .25s ease;
}

.footer-nav-linkedin:hover {
  color: #fff;
}

.footer-nav-linkedin:hover img {
  opacity: 1;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-bottom p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 300;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 24px 36px;
}

/* Pipe separator between LinkedIn and the nav links */
.footer-nav-linkedin {
  padding-right: 36px;
  border-right: 1px solid rgba(255,255,255,.18);
}

/* =========================
   REVEAL / UTILS
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.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;
}

/* =========================
   ABOUT PAGE
   ========================= */

.about-page {
  --about-accent: linear-gradient(90deg, #f35769 48.82%, #9b52e9 69.42%);
}

.about-page .site-header {
  background: rgba(0, 0, 0, 0.72);
}

.about-main {
  overflow-x: clip;
}

.about-layout {
  display: grid;
  grid-template-columns: 166px minmax(0, 1fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
}

.about-side-nav {
  position: sticky;
  top: 88px;      /* aligned with hero content top edge */
  align-self: start;
  padding-top: 0;
  z-index: 5;
}

.about-side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.about-side-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
  font-size: 18px;
  font-weight: 300;
  line-height: 109.9%;
  transition: transform 0.28s var(--ease), opacity 0.28s ease;
}

.about-side-nav a:hover,
.about-side-nav a.is-active {
  background: linear-gradient(90deg, #f35769 0%, #9b52e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateX(-4px);
  opacity: 1;
}

.about-content {
  min-width: 0;
}

.about-section {
  scroll-margin-top: 120px;
}

.about-hero {
  padding-top: clamp(32px, 4vw, 56px);
}

/* HERO NUEVO */

.about-hero-inner {
  position: relative;
  display: grid;
  gap: 0;
  padding-top: 34px;
}

.about-hero-top {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 72px);
}

.about-hero-copy {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding: 0 0 72px 0;
}

/* About Me award badge */
.about-award-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 99px;
  border: 1px solid rgba(243,87,105,.32);
  background: rgba(243,87,105,.07);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.68);
  margin-bottom: 20px;
}
.about-award-badge .award-icon {
  background: var(--about-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 13px;
}

.about-hero-copy h1 {
  margin: 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.4rem, 4.35vw, 4.55rem);
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -1.4px;
}

.about-hero-figure {
  position: relative;
  z-index: 4;
  margin: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-bottom: 10px;
}

.about-hero-figure img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.32));
}

.about-hero-bar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: clamp(170px, 18vw, 278px);
  margin-top: -150px;
  border-radius: 0 0 48px 48px;
  background: linear-gradient(90deg, #f35769 0%, #ef607a 54%, #9b52e9 100%);
  box-shadow:
    0 24px 70px rgba(243, 87, 105, 0.12),
    0 30px 80px rgba(155, 82, 233, 0.18);
}

.about-hero-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 42%);
}

/* ABOUT GENERAL */

.about-grid-two {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.about-story-card {
  min-height: 420px;
  padding: clamp(34px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.about-story-card h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 3vw, 3.125rem);
  font-weight: 200;
  line-height: 110%;
  letter-spacing: -1px;
}

.about-story-card p {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 150%;
}

.about-quote {
  margin-top: 64px;
  display: flex;
  justify-content: center;
}

.about-quote img {
  width: min(840px, 100%);
  height: auto;
  object-fit: contain;
}

.about-heading {
  text-align: center;
}

.about-heading h2,
.about-heading h3 {
  margin: 0;
}

.about-heading h2 {
  font-size: clamp(2.2rem, 3.4vw, 3.125rem);
  font-weight: 200;
  line-height: 110%;
  letter-spacing: -1px;
}

.about-heading h3 {
  margin-top: 10px;
  color: #fff;
  font-size: clamp(1.2rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 110%;
}

.about-heading p {
  max-width: 860px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-size: 18px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: 0.54px;
}

.grad-pink,
.impact-author {
  background: var(--about-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-gold,
.about-highlight {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* LEARNING */

.learning-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
}

.learning-card {
  min-height: 560px;
  padding: clamp(28px, 3vw, 42px);
}

.learning-stack {
  display: grid;
  gap: 28px;
}

.learning-stack h3 {
  margin: 0 0 10px;
  background: var(--about-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: clamp(1.45rem, 2vw, 1.875rem);
  font-weight: 400;
  line-height: 110%;
}

.learning-meta,
.learning-list li {
  color: #fff;
  font-size: 18px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: 0.54px;
}

.learning-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

/* INTERNAL ARCHITECTURE = IMÁGENES */

.architecture-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.arch-image-card {
  margin: 0;
  width: 100%;
}

.arch-image-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* VALUE */

.value-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.value-card {
  min-height: 520px;
  text-align: center;
  padding: 34px 24px 30px;
}

.value-card img {
  width: 128px;
  height: 128px;
  margin: 0 auto 28px;
  object-fit: contain;
}

.value-card h4 {
  margin: 0 0 18px;
  color: #fff;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0.96px;
}

.value-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  font-weight: 300;
  line-height: 140%;
  letter-spacing: 0.54px;
}

/* TOOLKIT */

/* Toolkit grid with tooltips */
.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 44px;
  padding: 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, #161616 0%, #0e0e0e 100%);
  border: 1px solid rgba(255,255,255,.06);
}

.tool-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 12px 16px;
  border-radius: 14px;
  /* 3D cube face — top/left lighter, right/bottom darker */
  background: linear-gradient(145deg, #1e1e1e 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow:
    4px 4px 0 0 rgba(0,0,0,.55),          /* hard cube depth */
    6px 6px 16px rgba(0,0,0,.45),          /* soft ambient */
    inset 0 1px 0 rgba(255,255,255,.07);   /* top edge highlight */
  cursor: default;
  transition:
    background .25s ease,
    border-color .28s ease,
    transform .28s cubic-bezier(.22,.61,.36,1),
    box-shadow .28s cubic-bezier(.22,.61,.36,1);
}

.tool-item:hover {
  background: linear-gradient(145deg, #222 0%, #181818 100%);
  border-color: rgba(243,87,105,.32);
  transform: translate(-2px, -4px);
  box-shadow:
    6px 8px 0 0 rgba(0,0,0,.6),
    8px 10px 24px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.1),
    0 0 18px rgba(243,87,105,.08);
}

.tool-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
  transition: transform .28s cubic-bezier(.22,.61,.36,1), filter .28s ease;
}

.tool-item:hover img {
  transform: scale(1.1) translateY(-2px);
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}

/* Tooltip */
.tool-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #0e0e0e;
  border: 1px solid rgba(243,87,105,.35);
  border-radius: 10px;
  padding: 10px 14px 9px;
  width: max-content;
  max-width: 190px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 20;
  white-space: normal;
  box-shadow: 0 8px 24px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
}
/* Small triangle pointer */
.tool-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(243,87,105,.35);
}

.tool-tooltip strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 3px;
  background: var(--about-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tool-item:hover .tool-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Subtle tool name tag below icon — always visible */
.tool-name-tag {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,.32);
  text-align: center;
  line-height: 1.2;
  letter-spacing: .02em;
  transition: color .22s ease;
  pointer-events: none;
  max-width: 64px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-item:hover .tool-name-tag {
  color: rgba(255,255,255,.65);
}

/* IMPACT */

.impact-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.impact-card {
  min-height: 160px;
  padding: 24px 20px;
  border-radius: 20px;
  background: var(--card-bg);
  border: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.impact-card p {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.impact-author {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1240px) {
  :root { --container: min(100vw - 40px, 1200px); }

  .hero-grid,
  .project-card--wide,
  .footer-grid,
  .why-me-grid,
  .selected-grid,
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-grid { align-items: start; }
  .project-card--wide .project-meta { margin-top: 12px; }
  .why-me-grid h2 { grid-column: 1 / -1; }
  .footer-branding { justify-content: flex-start; }
  .social-brand-row { justify-content: flex-start; }
  .footer-image-col { justify-content: flex-start; }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-side-nav {
    top: 96px;
    padding-top: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.76));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 22px;
    backdrop-filter: blur(14px);
  }

  .about-side-nav ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .about-side-nav a {
    padding: 14px 12px;
    text-align: center;
    font-size: 15px;
  }

  .about-hero-top {
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.95fr);
    gap: 32px;
  }

  .about-hero-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    max-width: 620px;
  }

  .about-hero-bar {
    margin-top: -120px;
  }
}

@media (max-width: 980px) {
  .about-grid-two,
  .learning-grid,
  .architecture-grid,
  .value-grid,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .about-hero-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: end;
  }

  .about-hero-copy {
    padding-bottom: 48px;
  }

  .about-hero-copy h1 {
    font-size: clamp(2rem, 4.4vw, 3rem);
    max-width: 11ch;
  }

  .about-hero-figure img {
    max-width: 100%;
  }

  .about-hero-bar {
    height: 190px;
    margin-top: -95px;
  }
}

@media (max-width: 820px) {
  /* Challenge section: force ALL reveal children visible on mobile.
     Both .case-section-shell AND .challenge-card have class reveal —
     if the parent shell stays opacity:0 the whole block is invisible
     regardless of the cards inside. */
  .challenge-section .reveal,
  .challenge-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .menu-toggle { display: inline-block; }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(15,15,15,.97);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .24s ease, transform .24s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a { padding: 10px 4px; }

  .hero-grid,
  .project-card--wide,
  .expertise-grid,
  .selected-grid,
  .footer-grid,
  .why-me-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 36px; }
  .hero-copy { order: 1; }

  .hero-visual-wrap {
    order: 2;
    min-height: auto;
    padding-top: 10px;
  }

  .hero-bar {
    left: 0;
    right: 0;
    bottom: 28px;
    height: 120px;
  }

  .hero-visual {
    width: min(520px, 88vw);
    margin: 0 auto 44px;
  }

  .hero-copy h1 {
    min-height: 3.8em;
    max-width: 13ch;
  }

  .project-card--wide { min-height: auto; }
  .project-copy { padding-bottom: 4px; }
  .project-body { max-width: none; }
  .project-meta { margin-top: 12px; }
  .why-me-grid { text-align: left; }
  .why-highlight { text-align: left; }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav { justify-content: flex-start; }

  .about-hero-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-hero-copy {
    padding-bottom: 0;
  }

  .about-hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .about-hero-figure {
    justify-content: center;
    padding-bottom: 0;
  }

  .about-hero-figure img {
    width: min(520px, 88vw);
  }

  .about-hero-bar {
    height: 135px;
    margin-top: -62px;
  }

  .toolkit-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 28px;
  }
}

@media (max-width: 620px) {
  .about-side-nav {
    display: none;
  }

  .about-hero {
    padding-top: 22px;
  }

  .about-hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(1.95rem, 9vw, 2.5rem);
    line-height: 1.08;
  }

  .about-hero-figure img {
    width: min(360px, 90vw);
  }

  .about-hero-bar {
    height: 96px;
    margin-top: -44px;
    border-radius: 0 0 28px 28px;
  }

  .about-quote {
    display: none;
  }

  .toolkit-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 20px;
    border-radius: 20px;
  }

  .tool-item {
    padding: 12px 8px;
  }

  .tool-item img {
    width: 34px;
    height: 34px;
  }

  .tool-tooltip {
    display: none;
  }
}

@media (max-width: 520px) {
  :root {
    --container: calc(100vw - 32px);
    --section-space: 72px;
  }

  .nav-wrap { min-height: 84px; }

  .section-heading h2,
  .why-me-grid h2,
  .footer-copy h2 {
    font-size: 2.1rem;
  }

  .section-subtitle { font-size: 1.1rem; }

  .info-card p,
  .info-card ul,
  .project-body,
  .why-text,
  .footer-support {
    font-size: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    min-height: 4.2em;
    max-width: 12ch;
  }

  .hero-visual {
    width: min(430px, 86vw);
    margin-bottom: 34px;
  }

  .hero-bar {
    height: 96px;
    bottom: 20px;
    border-radius: 0 0 28px 28px;
  }

  .info-card { min-height: auto; }
  .project-card--small { min-height: auto; }
  .small-copy { padding-inline: 10px; }
  .top-meta { margin-inline: 10px; }
  .cta-link { width: min(234px, 100%); }
  .contact-form .cta-link { width: 100%; }
  .footer-side-img { border-radius: 10px; }
}

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

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

/* MYLO CASE STUDY CSS (clean version) */

.case-layout {
  display: grid;
  grid-template-columns: 166px 1fr;
  gap: 48px;
}

.case-side-nav a {
  color: rgba(255,255,255,.72);
  text-align: right;
  transition: .3s;
}

.case-side-nav a:hover,
.case-side-nav a.is-active {
  background: linear-gradient(90deg, #f35769 0%, #9b52e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.case-content {
  padding-left: 12px;
}

.mylo-overview-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
}

@media (max-width: 980px){
  .mylo-overview-grid,
  .challenge-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px){
  .case-side-nav{
    display:none;
  }
}


/* =========================
   FONT WEIGHT HIERARCHY
   ========================= */
.info-card p,
.info-card ul,
.project-body,
.why-text,
.footer-copy .footer-support,
.learning-meta,
.learning-list li,
.value-card p,
.about-heading p,
.impact-card p,
.contact-form input,
.contact-form textarea {
  font-weight: 200;
}

/* =========================
   SHIMMER PREMIUM — inmediato, muy visible, rápido
   ========================= */

.section-heading h2 em {
  background-image:
    linear-gradient(100deg,
      rgba(255,255,255,0)    0%,
      rgba(255,255,255,0)   20%,
      rgba(255,255,255,1.0) 38%,
      rgba(255,255,255,1.0) 62%,
      rgba(255,255,255,0)   80%,
      rgba(255,255,255,0)  100%),
    var(--accent);
  background-size: 250% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 2.2s cubic-bezier(.4,0,.2,1) infinite;
}

@keyframes shimmerGold {
  0%   { background-position: 200% 0, 0 0; }
  50%  { background-position: -50% 0, 0 0; }
  100% { background-position: -50% 0, 0 0; }
}

.about-page .grad-pink {
  background-image:
    linear-gradient(100deg,
      rgba(255,255,255,0)    0%,
      rgba(255,255,255,0)   20%,
      rgba(255,255,255,1.0) 38%,
      rgba(255,255,255,1.0) 62%,
      rgba(255,255,255,0)   80%,
      rgba(255,255,255,0)  100%),
    var(--about-accent);
  background-size: 250% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerPink 2.4s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 0.3s;
}

.about-page .grad-gold,
.about-page .about-highlight {
  background-image:
    linear-gradient(100deg,
      rgba(255,255,255,0)    0%,
      rgba(255,255,255,0)   20%,
      rgba(255,255,255,1.0) 38%,
      rgba(255,255,255,1.0) 62%,
      rgba(255,255,255,0)   80%,
      rgba(255,255,255,0)  100%),
    var(--accent);
  background-size: 250% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGold 2.2s cubic-bezier(.4,0,.2,1) infinite;
  animation-delay: 0.6s;
}

@keyframes shimmerPink {
  0%   { background-position: 200% 0, 0 0; }
  50%  { background-position: -50% 0, 0 0; }
  100% { background-position: -50% 0, 0 0; }
}

/* ── About Me — h3 subtitles under section headings ── */
.about-page .about-heading h3 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.50);
  margin: 8px 0 0;
}

/* ── About hero h1 — typewriter usa el mismo script.js que home ── */

/* =========================
   MEJORAS PREMIUM — Design & Animations
   ========================= */

/* 1. HERO IMAGE — clip-path reveal de izquierda a derecha */
.hero-visual {
  clip-path: inset(0 100% 0 0);
  animation: heroReveal 0.9s cubic-bezier(.16,1,.3,1) 0.3s forwards;
}

@keyframes heroReveal {
  to { clip-path: inset(0 0% 0 0); }
}

/* 2. PROJECT CARDS — zoom + depth of field en imagen al hover */
.project-media img {
  transition: transform 0.55s cubic-bezier(.22,.61,.36,1), filter 0.55s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.04);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,.45));
}

/* 3. PROJECT META TAGS — más discretos, legen más like pills */
.project-meta {
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.38;
  color: rgba(255,255,255,0.9);
}

/* 4. WHY-ME LINES — line draw reveal al entrar al viewport */
.line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.85s cubic-bezier(.22,.61,.36,1);
}

.why-me-box.is-visible .line:first-child {
  transform: scaleX(1);
  transition-delay: 0s;
}

.why-me-box.is-visible .line:last-child {
  transform: scaleX(1);
  transition-delay: 0.28s;
}

/* 5. NAV SCROLL-SHRINK — header se comprime al hacer scroll */
.site-header {
  transition: background 0.35s ease,
              backdrop-filter 0.35s ease;
}

.site-header.scrolled .nav-wrap {
  min-height: 72px;
}

.site-header.scrolled {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(22px);
}

/* 6. FLOATING LABEL — contact form */
.contact-form label {
  position: relative;
  display: block;
}

.contact-form .float-label {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(255,255,255,.45);
  pointer-events: none;
  transition: top 0.22s ease, font-size 0.22s ease, color 0.22s ease;
}

.contact-form textarea + .float-label {
  top: 18px;
  transform: none;
}

.contact-form input:focus + .float-label,
.contact-form input:not(:placeholder-shown) + .float-label {
  top: 8px;
  font-size: 10px;
  color: rgba(236,221,77,.7);
  transform: none;
}

.contact-form textarea:focus + .float-label,
.contact-form textarea:not(:placeholder-shown) + .float-label {
  top: 6px;
  font-size: 10px;
  color: rgba(236,221,77,.7);
}

.contact-form input,
.contact-form textarea {
  padding-top: 20px;
  padding-bottom: 8px;
}

/* 7. EXPERTISE CARDS — magnetic hover (aplicado via JS) */
.info-card {
  transition: transform 0.45s cubic-bezier(.22,.61,.36,1),
              box-shadow 0.45s cubic-bezier(.22,.61,.36,1),
              border-color 0.35s ease;
  will-change: transform;
}

/* 9. FOOTER — email link más espacio del h2 */
.email-link {
  margin-top: 28px;
  font-size: 18px;
}

/* =============================================
   UNIVERSAL LIGHTBOX — Option A image expand
   Shared across all case study pages
   ============================================= */
.site-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, background 0.28s ease;
}
.site-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.88);
}
.site-lb-shell {
  width: min(1280px, 100%);
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.94);
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}
.site-lightbox.is-open .site-lb-shell {
  transform: scale(1);
}
.site-lb-shell img {
  width: auto;
  max-width: 100%;
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0,0,0,.5);
  display: block;
}
.site-lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.22s ease, transform 0.22s ease;
  z-index: 10;
  backdrop-filter: blur(8px);
}
.site-lb-close:hover {
  background: rgba(255,255,255,0.14);
  transform: scale(1.08);
}
/* zoom-in cursor on all expandable images */
img[data-lightbox-src] { cursor: zoom-in; }

/* 10. REDUCED MOTION — override para clip-path reveal */
@media (prefers-reduced-motion: reduce) {
  .hero-visual {
    clip-path: none;
    animation: none;
  }
  .line {
    transform: scaleX(1);
    transition: none;
  }
  .project-media img {
    transition: none;
  }
}

/* ── Challenge cards halo — always visible on touch/mobile ── */
@media (pointer: coarse), (hover: none) {
  .challenge-card::before { opacity: 0.55; }
}

/* ── Accessibility — focus visible ── */
:focus-visible {
  outline: 2px solid rgba(255,255,255,.70);
  outline-offset: 3px;
  border-radius: 4px;
}

.about-page :focus-visible { outline-color: #F35769; }
.glo-page   :focus-visible { outline-color: #FF2467; }
.jac-page   :focus-visible { outline-color: #EF1443; }
.mylo-page  :focus-visible { outline-color: #079C85; }
.neroli-page :focus-visible { outline-color: #7ED2B5; }
.velvet-page :focus-visible { outline-color: #C9A55A; }
.pinnacle-page :focus-visible { outline-color: #5A61E4; }

/* Remove default outline only when focus-visible is supported */
:focus:not(:focus-visible) { outline: none; }

/* Flip cards — keyboard accessible */
.flip-card:focus-visible .flip-card-inner { transform: rotateY(180deg); }

/* ===== Works dropdown nav ===== */
.nav-works-wrap {
  position: relative;
}
.nav-works-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.nav-works-trigger::after {
  /* override the underline ::after from .main-nav a — handled below */
}
.nav-works-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 109px;
  background: linear-gradient(178deg, #000 10.02%, #292929 98.65%);
  border-radius: 0 0 10px 10px;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 200;
}
.nav-works-wrap:hover .nav-works-dropdown,
.nav-works-wrap:focus-within .nav-works-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(4px);
}
.nav-works-dropdown a {
  color: #fff !important;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.099;
  text-align: right;
  text-decoration: none;
  opacity: 1;
  position: relative;
}
.nav-works-dropdown a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-works-dropdown a:hover::after {
  transform: scaleX(1);
}
.nav-works-dropdown a:hover {
  opacity: 1;
}

/* Mobile: flatten dropdown into regular nav flow */
@media (max-width: 814px) {
  .nav-works-dropdown {
    position: static;
    opacity: 1;
    /* pointer-events controlled at 820px to prevent invisible Pinnacle link
       from intercepting taps across the entire page when menu is closed */
    transform: none;
    width: 100%;
    background: none;
    padding: 0 0 0 14px;
    gap: 8px;
    border-radius: 0;
  }
  .nav-works-dropdown a {
    font-size: 16px;
    text-align: left;
  }
}

/* ── FIX: Mobile nav ghost-click prevention ──────────────────────────────
   At ≤820px the .main-nav is position:absolute and hidden (opacity:0,
   pointer-events:none) when closed. BUT CSS spec allows children with
   pointer-events:all to still receive taps through a pointer-events:none
   parent. The Pinnacle link in the dropdown was invisibly floating at
   ~370-420px from viewport top (sticky header) and intercepting taps on
   videos, carousel arrows, and form fields across every page.
   Fix: dropdown inherits none when closed; restores all when open.
────────────────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .nav-works-dropdown {
    pointer-events: none;
  }
  .main-nav.is-open .nav-works-dropdown {
    pointer-events: all;
  }
}

/* =========================
   REFLECTION — shared across all case studies
   (Neroli also has these in neroli.css for its accent override)
   ========================= */

.reflection-support {
  text-align: center;
  font-size: 18px;
  font-weight: 200;
  line-height: 1.6;
  letter-spacing: .4px;
  max-width: 680px;
  margin-inline: auto;
  margin-top: 12px;
  color: rgba(255,255,255,.72);
}

.reflection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 2.5rem;
}

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

.reflection-card {
  background: var(--card-bg);
  border: var(--border-soft);
  border-radius: 20px;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease;
}

.reflection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 40%);
  pointer-events: none;
}

.reflection-card:hover { border-color: rgba(255,255,255,.12); }

.reflection-tag {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .8;
  margin-bottom: 10px;
}

.reflection-card h4 {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

.reflection-card p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,.62);
  line-height: 1.7;
  margin: 0;
}

.reflection-back {
  text-align: center;
  margin-top: 3rem;
}

/* =========================
   CASE STUDY DIVIDER
   Replaces Why Me section — same line weight
   ========================= */
.case-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,.9);
  margin: clamp(48px, 6vw, 80px) 0;
}
