/* Oscar Carreras Yagüe — portfolio (solo html[data-portfolio]) */
:root {
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Syne", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-portfolio][data-theme="dark"],
html[data-portfolio]:not([data-theme="light"]) {
  --bg: #070708;
  --bg-elev: #0e0f12;
  --fg: #f4f2ed;
  --fg-soft: rgba(244, 242, 237, 0.88);
  --muted: #8a8680;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #c4f542;
  --accent-soft: rgba(196, 245, 66, 0.12);
  --accent-border: rgba(196, 245, 66, 0.25);
  --nav-bg: rgba(7, 7, 8, 0.72);
  --hover-bg: rgba(255, 255, 255, 0.06);
  --card-shadow: rgba(0, 0, 0, 0.45);
  --surface-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent);
  --surface-rack: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.2));
  --surface-detail: linear-gradient(165deg, rgba(20, 21, 26, 0.95), rgba(7, 7, 8, 0.98));
  --surface-preview: linear-gradient(160deg, rgba(196, 245, 66, 0.1), rgba(255, 255, 255, 0.03));
  --surface-bar: rgba(255, 255, 255, 0.08);
  --noise-opacity: 0.04;
  color-scheme: dark;
}

html[data-portfolio][data-theme="light"] {
  --bg: #f4f2ec;
  --bg-elev: #ffffff;
  --fg: #12110f;
  --fg-soft: rgba(18, 17, 15, 0.88);
  --muted: #5c5852;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #4a6808;
  --accent-soft: rgba(74, 104, 8, 0.16);
  --accent-border: rgba(74, 104, 8, 0.35);
  --nav-bg: rgba(244, 242, 236, 0.92);
  --hover-bg: rgba(0, 0, 0, 0.06);
  --card-shadow: rgba(0, 0, 0, 0.14);
  --surface-card: linear-gradient(145deg, #ffffff, #ebe8e0);
  --surface-rack: linear-gradient(180deg, #ffffff, #e8e5dd);
  --surface-detail: linear-gradient(165deg, #ffffff, #f0ede6);
  --surface-preview: linear-gradient(160deg, rgba(74, 104, 8, 0.12), rgba(0, 0, 0, 0.04));
  --surface-bar: rgba(0, 0, 0, 0.08);
  --noise-opacity: 0.025;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--noise-opacity, 0.04);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Reveal: touch = always visible; desktop = Bazil-like entrance */
[data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible,
.is-visible {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  [data-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.section--work {
  opacity: 1;
  transform: none;
}

/* —— Nav —— */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: calc(0.55rem + env(safe-area-inset-top, 0px))
    calc(0.75rem + env(safe-area-inset-right, 0px))
    0.55rem
    calc(0.75rem + env(safe-area-inset-left, 0px));
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.site-nav.is-scrolled {
  background: color-mix(in srgb, var(--nav-bg) 92%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.site-nav__link {
  position: relative;
}

.site-nav__link.is-active::after,
.site-nav__link:hover::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: -0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.site-nav__cta {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 8px 24px var(--accent-soft);
}

.pill-btn:focus-visible,
.theme-toggle:focus-visible,
.site-nav__link:focus-visible,
.site-nav__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
  margin-right: auto;
}

.site-nav__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #5b8cff));
  color: #0a0a0a;
  border: 1px solid var(--accent-border);
  box-shadow: 0 4px 14px var(--accent-soft);
}

.site-nav__name {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav__links {
  display: none;
  gap: 0.35rem;
}

@media (min-width: 900px) {
  .site-nav__links {
    display: flex;
  }
}

.site-nav__link {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--fg);
  background: var(--hover-bg);
}

.pill-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg);
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 5;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.pill-btn:hover,
.pill-btn:focus-visible {
  color: var(--fg);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg-elev));
}

.lang-toggle {
  font-size: 0.78rem;
}

.lang-toggle--drawer {
  flex: 1;
  min-height: 3rem;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: auto;
}

.site-nav__logo {
  min-width: 0;
  margin-right: 0.5rem;
}

.nav-drawer__tools {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 899px) {
  .site-nav__cta--desktop,
  .site-nav__cta {
    display: none !important;
  }

  .site-nav__name {
    display: none;
  }

  .theme-toggle--bar {
    display: none !important;
  }

  .site-nav__inner {
    gap: 0.4rem;
  }

  .site-nav__actions {
    gap: 0.3rem;
  }

  .site-nav__burger {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .pill-btn,
  .lang-toggle {
    min-width: 2.5rem;
    min-height: 2.5rem;
  }
}

@media (max-width: 380px) {
  .site-nav__mark {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }
}

/* Toggle modo claro / oscuro en la barra */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.55rem 0.35rem 0.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle__track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  flex-shrink: 0;
  transition: background 0.3s var(--ease);
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 6px var(--card-shadow);
  transition: transform 0.35s var(--ease), background 0.3s;
}

/* Oscuro = estado principal (thumb izquierda, pista resaltada) */
.theme-toggle.is-theme-dark .theme-toggle__track,
html[data-theme="dark"] .theme-toggle__track,
.theme-toggle[data-theme-mode="dark"] .theme-toggle__track {
  background: var(--accent-soft);
}

/* Claro = opción activada (thumb derecha) */
.theme-toggle.is-theme-light .theme-toggle__thumb,
html[data-theme="light"] .theme-toggle__thumb,
.theme-toggle[data-theme-mode="light"] .theme-toggle__thumb {
  transform: translateX(16px);
}

.theme-toggle.is-theme-light .theme-toggle__track,
html[data-theme="light"] .theme-toggle__track,
.theme-toggle[data-theme-mode="light"] .theme-toggle__track {
  background: var(--accent-soft);
}

.theme-toggle__label {
  min-width: 2.5rem;
  text-align: left;
}

.theme-toggle--drawer {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.65rem 1rem;
}

.site-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-elev);
  cursor: pointer;
  position: relative;
  z-index: 20;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

@media (min-width: 900px) {
  .site-nav__burger {
    display: none;
  }
}

.site-nav__burger span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--fg);
  pointer-events: none; /* iOS: el tap debe ir al button, no al span */
}

.site-nav.is-drawer-open {
  background: color-mix(in srgb, var(--nav-bg) 96%, transparent);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid var(--line);
}

.nav-drawer {
  max-width: 1200px;
  margin: 0.5rem auto 0;
  padding: 1rem;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  z-index: 21;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer[hidden]:not(.is-open) {
  display: none !important;
}

.nav-drawer.is-open {
  display: flex !important;
}

html.nav-open,
html.nav-open body {
  overflow: hidden;
  overscroll-behavior: none;
}

.nav-drawer a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  padding: 0.85rem 0.65rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

main,
.page {
  padding-top: 4.5rem;
}

.hero {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.25rem, 5vw, 4rem) clamp(3rem, 8vw, 5rem);
  max-width: 1200px;
  margin: 0 auto;
}

.hero--split {
  min-height: min(100vh, 920px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
  max-width: 1240px;
}

@media (min-width: 960px) {
  .hero--split {
    grid-template-columns: 1.05fr 0.85fr;
    align-items: center;
    padding-top: 6rem;
  }
}

.hero__content {
  max-width: 36rem;
}

.hero-copy {
  margin-bottom: 2rem;
}

.hero-lead {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 1rem;
}

.hero-lines {
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.hero-meta {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0;
  max-width: 42ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px var(--accent-soft);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero__visual {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.rack {
  position: relative;
  width: min(320px, 80vw);
  padding: 1.5rem;
}

.rack__glow {
  position: absolute;
  inset: 10% 0;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  filter: blur(28px);
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.rack__unit {
  position: relative;
  z-index: 1;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-rack);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}

.rack__unit--mid {
  height: 64px;
}

.rack__unit span:not(.rack__led) {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-bar);
}

.rack__led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex: none !important;
}

.rack__led--on {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.rack__led--pulse {
  animation: ledBlink 1.4s ease-in-out infinite;
}

@keyframes ledBlink {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.rack__base {
  height: 14px;
  border-radius: 0 0 14px 14px;
  background: var(--hover-bg);
  border: 1px solid var(--line);
  border-top: none;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 11vw, 8.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-title__line {
  display: block;
}

.hero-title__line--accent {
  font-style: italic;
  color: var(--accent);
}

.hero-role {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 2.5rem;
  line-height: 1.45;
}

.hero-fragments {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 52ch;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--fg-soft);
}

.hero-fragments p {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-soft);
}

.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 720px;
}

.section__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2rem;
}

.section__intro {
  color: var(--muted);
  margin: -1rem 0 2rem;
  max-width: 42ch;
}

.build-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.build-card {
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: var(--surface-card);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.build-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 32px var(--card-shadow);
}

.build-card__n {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--muted);
  opacity: 0.35;
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.build-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.build-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.build-card__body {
  margin-bottom: 0.5rem !important;
  color: var(--fg-soft) !important;
}

.build-card__detail {
  font-size: 0.88rem !important;
}

.build-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 900px) {
  .build-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stack-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.stack-panel {
  min-height: 4rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.clients-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.client-card {
  padding: 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  background: var(--surface-card);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 12px 32px var(--card-shadow);
}

.client-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.client-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0.5rem 0 0.75rem;
}

.client-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.teaser-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .teaser-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.teaser-card {
  padding: 0.25rem 0;
}

.teaser-card__title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.contact-cta {
  text-align: left;
}

.projects-cta {
  text-align: center;
}

.projects-cta .section__intro {
  margin-left: auto;
  margin-right: auto;
}

.projects-cta__count {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.75rem;
}

.projects-cta__count span:first-child {
  color: var(--accent);
  font-size: 1.25rem;
}

.btn-primary--wide {
  display: inline-flex;
  min-width: min(100%, 280px);
  justify-content: center;
}

.page--projects .section--work {
  padding-top: 0;
}

.contact-cta .btn-primary {
  margin-top: 1rem;
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 4rem) 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero--projects {
  padding-bottom: 0.5rem;
}

.page-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.page-hero__title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.03em;
}

.page-hero__intro {
  color: var(--muted);
  max-width: 48ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Projects — try now */
.section--try {
  padding-top: 2rem;
}

.try-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.try-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.try-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.try-card__frame {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.try-card__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.try-card__short {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.try-card__cta {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.projects-stats {
  padding: 0 clamp(1.25rem, 5vw, 4rem) 1rem;
}

.projects-stats__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.projects-stats strong {
  color: var(--fg);
  font-weight: 700;
  margin-right: 0.35rem;
}

.carousel-hint {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: -0.5rem 0 1rem;
}

.contact-page {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s;
}

.contact-row:hover {
  border-color: var(--accent-border);
  transform: translateX(4px);
}

.contact-row--muted {
  opacity: 0.55;
  pointer-events: none;
}

.contact-loc {
  margin-top: 1.5rem;
  color: var(--muted);
}

.editorial {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.8vw, 1.65rem);
  line-height: 1.55;
  color: var(--fg-soft);
  margin: 0 0 1.25rem;
}

.editorial--lead {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.editorial--big {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.editorial strong {
  font-weight: 600;
  color: var(--fg);
}

.tech-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-marquee span {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  animation: floatTag 6s ease-in-out infinite;
}

.tech-marquee span:nth-child(3n) {
  animation-delay: -1s;
}
.tech-marquee span:nth-child(3n + 1) {
  animation-delay: -2s;
}

@keyframes floatTag {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-btn:hover {
  color: var(--fg);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.filter-btn.is-active {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
}

.section__inner--carousel {
  max-width: 1100px;
  overflow: hidden;
}

.work-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Carrusel minimal */
.carousel-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0 1.25rem;
  --carousel-gap: 0.65rem;
  --carousel-card: clamp(128px, calc((100% - 3 * var(--carousel-gap)) / 4), 188px);
}

.carousel-strip {
  display: flex;
  gap: var(--carousel-gap);
  width: max-content;
  will-change: transform;
  transition: transform 0.45s var(--ease);
}

.carousel-nav {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.2s, color 0.2s;
}

.carousel-nav:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-nav:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.carousel-card {
  flex: 0 0 var(--carousel-card);
  width: var(--carousel-card);
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0.75rem 0.65rem 0.85rem;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.35s var(--ease),
    opacity 0.3s,
    border-color 0.3s;
  transform: scale(0.92);
  opacity: 0.4;
}

.carousel-card.is-active {
  transform: scale(1);
  opacity: 1;
  border-color: var(--accent);
}

.carousel-card.is-near {
  transform: scale(0.96);
  opacity: 0.7;
}

.card-preview {
  position: relative;
  height: 72px;
  border-radius: 10px;
  background: var(--surface-preview);
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  overflow: hidden;
}

.card-preview--locked {
  box-shadow: none;
  opacity: 0.9;
}

.card-preview--locked::before {
  content: none;
}

.card-lock {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 80%, #000);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0.85;
}

.card-icon-svg {
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.card-preview img {
  max-width: 80%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.card-preview img[src*="ensa"] {
  max-height: 60px;
  max-width: 88%;
}

.status-pill--lock {
  background: transparent !important;
  color: var(--muted) !important;
  border-color: var(--line) !important;
}

.btn-open.is-hidden,
.btn-open[hidden],
.btn-ghost.is-hidden,
.btn-ghost[hidden] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.card-fallback {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--accent);
}

.card-group {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-family: var(--serif);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-counter {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: -0.75rem;
}

.detail-panel {
  position: static;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 2rem) 0 0;
  background: transparent;
  text-align: left;
}

@media (max-width: 900px) {
  .carousel-viewport {
    --carousel-card: clamp(118px, calc((100% - 2 * var(--carousel-gap)) / 3), 168px);
  }
}

@media (max-width: 560px) {
  .carousel-viewport {
    --carousel-card: clamp(104px, calc((100% - var(--carousel-gap)) / 2), 148px);
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
}

.detail-frame {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.35rem;
}

.detail-name {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  margin: 0 0 0.65rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.detail-short {
  font-size: 1rem;
  color: var(--fg-soft);
  margin: 0 0 0.85rem;
  line-height: 1.5;
}

.detail-long {
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.detail-role {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.detail-role__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 0.2rem;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}

.detail-tags span {
  font-size: 0.68rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.detail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.status-pill {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
}

.status-pill--muted {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.page--projects .section--work {
  padding-top: 1.5rem;
}

.section--projects-footer {
  padding-top: 1rem;
}

.btn-open {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.25s;
}

.btn-open:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--card-shadow);
}

.philosophy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 52rem;
}

.philosophy-list li {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.philosophy-list strong {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.35rem;
}

.footer {
  padding: 4rem 1.5rem 5rem;
  border-top: 1px solid var(--line);
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer__name {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
}

.footer__stack {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .tech-marquee span {
    animation: none !important;
  }

  .carousel-card,
  .carousel-strip {
    transition: none !important;
  }

  .hero-badge--pulse,
  .action-card,
  .timeline__item,
  .featured-card {
    animation: none !important;
  }
}

/* —— Recruiter home —— */
.hero--recruiter {
  position: relative;
  min-height: min(100vh, 960px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: end;
  overflow: hidden;
}

@media (min-width: 960px) {
  .hero--recruiter {
    grid-template-columns: 1.1fr 0.75fr;
    align-items: center;
    padding-top: 5rem;
  }
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 60%;
  background: radial-gradient(ellipse at 30% 40%, var(--accent-soft), transparent 65%);
  pointer-events: none;
  opacity: 0.85;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.hero-badge--pulse {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  50% {
    box-shadow: 0 0 24px var(--accent-soft);
  }
}

.hero-badge--link {
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.hero-badge--link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-title--recruiter {
  font-size: clamp(3.2rem, 11vw, 6.5rem);
}

.hero-cta--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
  max-width: 36rem;
}

.btn-primary--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
}

.btn-primary--outline:hover {
  background: var(--accent-soft);
}

.btn-primary--compact,
.btn-ghost--compact {
  padding: 0.55rem 1rem;
  font-size: 0.72rem;
}

.site-nav__cta {
  display: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.site-nav__cta:hover {
  transform: translateY(-1px);
}

@media (min-width: 900px) {
  .site-nav__cta {
    display: inline-flex;
  }
}

.section__head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
  opacity: 0;
  transform: translateY(12px);
  animation: cardIn 0.55s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.section.is-visible .action-card,
.section--actions.is-visible .action-card,
#action-grid .action-card {
  opacity: 1;
  transform: none;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.action-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 16px 40px color-mix(in srgb, var(--bg) 60%, transparent);
}

.action-card h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
}

.action-card p {
  margin: 0;
  flex: 1;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.action-card__cta {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.featured-card {
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface) 70%, var(--bg)));
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.featured-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.featured-card__tag {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.featured-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.featured-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.featured-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.featured-card__tech li {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.featured-card__cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.featured-card__cta:hover {
  text-decoration: underline;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  position: relative;
}

@media (min-width: 720px) {
  .timeline {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line);
  }
}

.timeline__item {
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  opacity: 0;
  transform: translateX(-8px);
  animation: timelineIn 0.5s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes timelineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.timeline__tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}

.timeline__role {
  margin: 0 0 0.65rem;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
}

.timeline__company {
  color: var(--accent);
  font-weight: 600;
}

.timeline__points {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.about-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.projects-cta__actions,
.contact-cta__actions,
.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.infra-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.infra-card {
  display: block;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s, border-color 0.25s;
}

.infra-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.infra-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.infra-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.recruiter-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0.45rem 0.55rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--nav-bg) 94%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
}

.recruiter-bar__item {
  flex: 1 1 0;
  max-width: none;
  text-align: center;
  padding: 0.55rem 0.25rem;
  border-radius: 10px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
}

.recruiter-bar__item:hover {
  color: var(--fg);
  border-color: var(--line);
}

.recruiter-bar__item--accent {
  background: var(--accent);
  color: #0a0a0a;
  max-width: none;
}

.recruiter-bar__item--accent:hover {
  color: #0a0a0a;
  filter: brightness(1.05);
}

.recruiter-bar__item--hide-sm {
  display: none;
}

body[data-page="home"] {
  padding-bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 420px) {
  .recruiter-bar__item--hide-sm {
    display: block;
  }
  .recruiter-bar__item {
    font-size: 0.62rem;
  }
}

@media (min-width: 900px) {
  .recruiter-bar {
    display: none;
  }

  body[data-page="home"] {
    padding-bottom: 0;
  }
}

/* ——— v31 iPhone / mobile ——— */
/* Evitar overflow-x:hidden en html/body: rompe fixed + taps en Safari iOS */
html[data-portfolio] {
  max-width: 100%;
  overflow-x: clip;
}

html[data-portfolio] body {
  max-width: 100%;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  color: var(--fg);
  background: var(--bg);
}

main,
.page {
  padding-top: calc(3.75rem + env(safe-area-inset-top, 0px));
  max-width: 100%;
  overflow-x: clip;
  color: var(--fg);
}

main.main-journey {
  padding-top: 0;
}

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

  .showcase-cta,
  .contact-compose__submit {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
