:root {
  --ink: #101014;
  --muted: #64646c;
  --paper: #f5f5f7;
  --white: #fff;
  --line: rgba(16, 16, 20, 0.12);
  --shell: min(1180px, calc(100% - 48px));
  --radius: 34px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 99px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #0a84ff;
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  height: 72px;
}

.menu-toggle {
  display: none;
}

.wordmark {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark span {
  color: #ff5a30;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.language-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 32px;
  height: 28px;
  padding: 0 7px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.language-switcher button:hover {
  color: var(--ink);
}

.language-switcher button[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.nav-links a {
  position: relative;
  color: #38383d;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  padding-block: 128px 80px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about h2,
.contact h2 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(54px, 7.2vw, 104px);
}

.hero-intro {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms var(--ease), background 220ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-primary:hover {
  background: #29292f;
}

.text-link,
.project-link {
  font-weight: 700;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.hero-orbit {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.phone-carousel {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 24px;
  transform: rotate(7deg);
}

.phone {
  --phone-width: 250px;
  position: relative;
  width: var(--phone-width);
  aspect-ratio: 1170 / 2532;
  padding: 7px;
  border: 2px solid #55565d;
  border-radius: 51px;
  background: linear-gradient(130deg, #111216, #36373d 45%, #0a0a0c 78%);
  box-shadow: 0 42px 90px rgba(28, 23, 34, 0.35), 0 12px 24px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  touch-action: pan-y;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 43px;
  background: #09090b;
}

.phone-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 650ms var(--ease), transform 900ms var(--ease);
  pointer-events: none;
}

.phone-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.phone-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-island {
  position: absolute;
  z-index: 3;
  top: 1.85%;
  left: 50%;
  width: 65px;
  height: 18px;
  aspect-ratio: 65 / 18;
  border-radius: 99px;
  background: linear-gradient(100deg, #000 0 64%, #050508 100%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.035), inset 0 1px 1px rgba(255, 255, 255, 0.025), inset -7px 0 10px rgba(9, 14, 29, 0.5);
  transform: translateX(-50%);
}

.phone-island::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6.15%;
  width: 15.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #17254d 0 8%, #081020 18%, #020307 46%, #000 70%);
  box-shadow: 0 0 0 1px #08090d, inset 0 0 4px rgba(41, 72, 135, 0.55);
  transform: translateY(-50%);
}

.phone-island::after {
  content: "";
  position: absolute;
  top: 27.8%;
  left: 12.3%;
  width: 40%;
  height: 33.3%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(22, 28, 39, 0.32), transparent 72%);
}

.phone-reflection {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.13), transparent 18%, transparent 72%, rgba(255, 255, 255, 0.035));
  pointer-events: none;
}

.phone-button {
  position: absolute;
  width: 4px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg, #15161a, #696a70);
}

.phone-button-silent { top: 76px; left: -5px; height: 25px; }
.phone-button-volume-up { top: 119px; left: -5px; height: 45px; }
.phone-button-volume-down { top: 174px; left: -5px; height: 45px; }
.phone-button-power { top: 133px; right: -5px; width: 4px; height: 70px; border-radius: 0 3px 3px 0; }

.carousel-dots {
  display: flex;
  gap: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(12px);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(16, 16, 20, 0.24);
  cursor: pointer;
  transition: width 240ms var(--ease), background 240ms ease;
}

.carousel-dot.is-active {
  width: 25px;
  border-radius: 99px;
  background: var(--ink);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(16, 16, 20, 0.13);
  border-radius: 50%;
}

.orbit-one {
  width: 440px;
  height: 440px;
}

.orbit-two {
  width: 590px;
  height: 590px;
  border-style: dashed;
  animation: orbit 36s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.work {
  background: var(--white);
}

.section-heading {
  padding-block: 140px 92px;
}

.section-heading h2 {
  max-width: 850px;
  font-size: clamp(45px, 6vw, 80px);
}

.project {
  --accent: #777;
  --surface: #171719;
  --project-ink: #fff;
  background: var(--surface);
  color: var(--project-ink);
}

.project-itau { --accent: #ff6200; --surface: #170f0b; }
.project-jumbo { --accent: #7ed957; --surface: #071d0d; }
.project-falabella { --accent: #b6e400; --surface: #172004; }
.project-sodimac { --accent: #3096e8; --surface: #071522; }
.project-tottus { --accent: #5fc247; --surface: #0c1a0b; }

.project-inner {
  min-height: min(940px, 100svh);
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 105px);
  align-items: center;
  padding-block: 112px;
}

.project-number,
.project-category {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-number {
  margin: 0 0 60px;
  color: rgba(255, 255, 255, 0.48);
}

.project-category {
  margin: 0 0 12px;
  color: var(--accent);
}

.project h3 {
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.project-copy > p:not([class]) {
  max-width: 390px;
  margin: 26px 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.project-link {
  color: var(--white);
}

.project-media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.project-media::after {
  content: attr(data-hover-label);
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms var(--ease);
  backdrop-filter: blur(12px);
}

.project-media img {
  width: 100%;
  height: auto;
  transition: transform 700ms var(--ease);
}

.project-media:hover img {
  transform: scale(1.025);
}

.project-media:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.about {
  padding-block: 150px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(55px, 10vw, 150px);
  align-items: start;
}

.about h2 {
  max-width: 770px;
  font-size: clamp(43px, 5.5vw, 74px);
}

.about-copy {
  padding-top: 8px;
  color: var(--muted);
  font-size: 19px;
}

.about-copy p {
  margin: 0 0 24px;
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact-inner {
  min-height: 72svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 110px;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.52);
}

.contact h2 {
  max-width: 900px;
  margin-bottom: 42px;
  font-size: clamp(54px, 8vw, 110px);
}

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  background: #e8e8ed;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.footer-inner {
  min-height: 86px;
}

.footer-inner a {
  text-underline-offset: 4px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 750ms var(--ease), transform 750ms var(--ease);
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 145px;
  }

  .hero-orbit {
    min-height: 500px;
  }

  .project-inner,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-inner {
    min-height: auto;
  }

  .project-number {
    margin-bottom: 38px;
  }

  .project-copy > p:not([class]) {
    max-width: 560px;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: min(100% - 32px, 1180px);
    --radius: 22px;
  }

  .nav {
    position: relative;
    justify-content: flex-end;
    height: 64px;
  }

  .wordmark {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .menu-toggle {
    position: absolute;
    left: 0;
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  .menu-icon {
    display: grid;
    width: 19px;
    gap: 4px;
  }

  .menu-icon span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: opacity 180ms ease, transform 220ms var(--ease);
  }

  .site-header.is-menu-open .menu-icon span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.is-menu-open .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .site-header.is-menu-open .menu-icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header.is-menu-open {
    border-color: var(--line);
    background: rgba(245, 245, 247, 0.9);
    backdrop-filter: saturate(180%) blur(18px);
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(245, 245, 247, 0.94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: visibility 220ms, opacity 180ms ease, transform 220ms var(--ease);
    backdrop-filter: saturate(180%) blur(18px);
  }

  .site-header.is-menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    display: flex;
    min-height: 48px;
    align-items: center;
    padding-inline: 14px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav-links a:hover,
  .nav-links a.is-active {
    background: rgba(0, 0, 0, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-actions {
    gap: 0;
  }

  .language-switcher {
    gap: 1px;
    padding: 2px;
  }

  .language-switcher button {
    min-width: 27px;
    height: 25px;
    padding-inline: 5px;
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding-block: 126px 70px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 70px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-orbit {
    min-height: 430px;
  }

  .phone {
    --phone-width: 190px;
    border-radius: 40px;
  }

  .phone-screen {
    border-radius: 33px;
  }

  .phone-island {
    width: 49px;
    height: 13.6px;
  }

  .phone-carousel {
    gap: 19px;
  }

  .orbit-one {
    width: 320px;
    height: 320px;
  }

  .orbit-two {
    width: 430px;
    height: 430px;
  }

  .section-heading {
    padding-block: 100px 65px;
  }

  .project-inner {
    gap: 48px;
    padding-block: 82px;
  }

  .project-media {
    width: calc(100% + 16px);
    margin-left: -8px;
  }

  .project-media::after {
    display: none;
  }

  .about {
    padding-block: 105px;
  }

  .contact-inner {
    min-height: 68svh;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .footer-inner p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .phone-slide {
    transform: none;
  }
}
