:root {
  --accent: #2f7dff;
  --accent-dark: #1d4fd1;
  --ink: #0e1318;
  --ink-soft: #161d24;
  --muted: #6b7178;
  --cream: #f1efe8;
  --paper: #fbfaf7;
  --line: rgba(14, 19, 24, 0.12);
  --display: "Archivo", Arial, sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.icon-whatsapp { fill: currentColor; stroke: none; }

.page-shell {
  width: 100%;
  margin: 0;
  background: var(--paper);
}

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(56px, 8vw, 104px) clamp(28px, 5vw, 78px) clamp(72px, 9vw, 112px);
  border-radius: 0 0 48px 48px;
  --notch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 37'%3E%3Cpath d='M0 37L0 36L1.59 36A12 12 0 0 0 13.18 27.13A34 34 0 0 1 78.82 27.13A12 12 0 0 0 90.41 36L92 36L92 37Z'/%3E%3C/svg%3E");
  --notch-size: 92px 37px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  -webkit-mask: linear-gradient(#000 0 0), var(--notch) 50% calc(100% + 1px) / var(--notch-size) no-repeat;
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0), var(--notch) 50% calc(100% + 1px) / var(--notch-size) no-repeat;
  mask-composite: exclude;
}
.hero-inner { position: relative; z-index: 1; display: grid; justify-items: center; max-width: 640px; text-align: center; color: #fff; }

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -26px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transform: translateX(-50%);
  transition: background 220ms ease, transform 220ms ease;
}
.scroll-cue:hover { background: var(--accent-dark); transform: translateX(-50%) translateY(3px); }
.scroll-cue svg { width: 20px; height: 20px; stroke-width: 2; }

.profile-photo {
  width: clamp(140px, 16vw, 180px);
  height: clamp(140px, 16vw, 180px);
  margin: 6px 0 24px;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}
.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 42%;
}

.eyebrow { margin: 0 0 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 { font-size: clamp(42px, 6vw, 62px); line-height: 1; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .intro { max-width: 420px; margin: 16px auto 0; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.6; }

.bio-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; max-width: 460px; margin: 18px 0 0; padding: 0; list-style: none; }
.bio-list li { color: rgba(255,255,255,.52); font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.bio-list li:not(:last-child)::after { content: "·"; margin-left: 10px; color: rgba(255,255,255,.3); }

.link-list { display: grid; width: 100%; max-width: 440px; gap: 10px; margin-top: 34px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 12px 0 21px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.link-list a:hover { border-color: rgba(47,125,255,.5); background: rgba(255,255,255,.1); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.link-list svg { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.08); transition: color 220ms ease, background 220ms ease, transform 220ms ease; }
.link-list a:hover svg { background: rgba(255,255,255,.16); transform: rotate(-10deg); }
.link-list .icon-whatsapp { fill: currentColor; stroke: none; padding: 7px; }
.link-list .primary-link { min-height: 60px; padding: 0 10px 0 24px; color: var(--ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.link-list .primary-link:hover { background: #5c93ff; border-color: #5c93ff; transform: translateY(-2px); box-shadow: 0 14px 26px rgba(0,0,0,.24); }
.link-list .primary-link svg { color: var(--ink); background: rgba(14,19,24,.1); }
.link-list .primary-link:hover svg { background: rgba(14,19,24,.16); }
.primary-link span { font-family: var(--sans); font-size: 15px; font-weight: 600; }

.projects { position: relative; z-index: 1; padding: 110px clamp(28px, 5vw, 78px) 0; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 0.8fr 1.3fr 1fr; align-items: end; gap: 38px; margin-bottom: 54px; }
.section-heading .eyebrow { align-self: start; color: var(--accent-dark); }
.section-heading h2 { max-width: 560px; font-size: clamp(36px, 4vw, 54px); line-height: 1.04; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.project-card { position: relative; min-height: 520px; overflow: hidden; border-radius: 28px; background: #ddd; box-shadow: 0 18px 48px rgba(14,19,24,.1); transition: transform 350ms ease, box-shadow 350ms ease; }
.project-card img { height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.8,.2,1); }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 28px 54px rgba(14,19,24,.16); }
.project-card:hover img { transform: scale(1.035); }
.project-wide img { object-position: 50% 42%; }
.project-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(10,14,18,.88)); }
.project-card div { position: absolute; z-index: 1; inset: auto 26px 25px; color: #fff; }
.project-card span { font-size: 10px; letter-spacing: .18em; opacity: .68; }
.project-card h3 { margin: 7px 0 8px; font-family: var(--display); font-size: 25px; font-weight: 700; }
.project-card p { max-width: 310px; margin: 0; font-size: 12px; line-height: 1.5; opacity: .8; }

.detail-showcase { padding: 112px 0 0; overflow: hidden; background: var(--paper); }
.detail-heading { display: grid; grid-template-columns: 1.45fr .75fr; align-items: end; gap: 56px; padding: 0 clamp(28px, 5vw, 78px) 48px; }
.detail-heading h2 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; }
.detail-heading > p { max-width: 440px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.detail-marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.detail-track { display: flex; width: max-content; gap: 16px; animation: detail-scroll 58s linear infinite; }
.detail-group { display: flex; flex-shrink: 0; gap: 16px; padding-left: 16px; }
.detail-marquee:hover .detail-track, .detail-marquee:focus-within .detail-track { animation-play-state: paused; }
.detail-card { position: relative; flex: 0 0 290px; width: 290px; height: 410px; padding: 0; overflow: hidden; border: 0; border-radius: 28px; color: #fff; background: #ddd; box-shadow: 0 16px 34px rgba(14,19,24,.12); cursor: zoom-in; text-align: left; }
.detail-card-wide { flex-basis: 410px; width: 410px; }
.detail-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(8,12,16,.82)); }
.detail-card img { height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.8,.2,1), filter 350ms ease; }
.detail-card:hover img, .detail-card:focus-visible img { transform: scale(1.08); filter: saturate(1.05) contrast(1.02); }
.detail-card span { position: absolute; z-index: 1; right: 22px; bottom: 22px; left: 22px; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.1; }
.detail-card small { display: block; margin-bottom: 7px; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.detail-card:focus-visible { outline: 3px solid rgba(47,125,255,.55); outline-offset: 4px; }
.detail-hint { margin: 20px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .15em; text-align: center; text-transform: uppercase; }

@keyframes detail-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

.faq { padding: 112px clamp(28px, 5vw, 78px) 0; background: var(--paper); }
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.faq-list article { padding: 32px clamp(24px, 3vw, 40px); background: var(--paper); }
.faq-list h3 { margin: 0 0 10px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.faq-list p { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.faq-list article:last-child p { margin-bottom: 16px; }
.faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.faq-cta .icon-whatsapp { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(14,19,24,.1); }
.faq-cta:hover { background: #5c93ff; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.14); }

.zoom-dialog { width: min(920px, calc(100% - 32px)); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 32px; color: #fff; background: transparent; }
.zoom-dialog::backdrop { background: rgba(8,11,14,.84); backdrop-filter: blur(12px); }
.zoom-dialog figure { margin: 0; overflow: hidden; border: 8px solid rgba(255,255,255,.92); border-radius: 32px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.4); }
.zoom-dialog img { width: 100%; max-height: 78vh; object-fit: contain; background: var(--cream); }
.zoom-dialog figcaption { padding: 16px 20px 18px; color: var(--ink); background: #fff; font-family: var(--display); font-size: 20px; font-weight: 700; text-align: center; }
.zoom-close { position: absolute; z-index: 2; top: -16px; right: -16px; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: var(--accent-dark); cursor: pointer; }
.zoom-close svg { width: 20px; }

.closing-wrap {
  position: relative;
  z-index: 2;
  padding: 96px clamp(28px, 5vw, 78px) 72px;
  background: var(--paper);
}
.closing {
  position: relative;
  z-index: 1;
  clear: both;
  margin: 0;
  padding: 76px 28px 82px;
  overflow: hidden;
  border-radius: 44px;
  color: #fff;
  background: var(--ink);
  box-shadow: none;
  text-align: center;
}
.closing::before, .closing::after { content: ""; position: absolute; top: 50%; width: 18%; height: 1px; background: rgba(255,255,255,.2); }
.closing::before { left: 5%; }
.closing::after { right: 5%; }
.closing .eyebrow { color: var(--accent); }
.closing h2 { font-size: clamp(42px, 5vw, 66px); line-height: 1.02; }
.closing > p:not(.eyebrow) { max-width: 520px; margin: 24px auto 32px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.closing a { display: inline-flex; align-items: center; gap: 24px; padding: 11px 12px 11px 22px; border-radius: 999px; color: var(--ink); background: var(--accent); box-shadow: 0 10px 20px rgba(0,0,0,.2); font-size: 13px; font-weight: 700; transition: transform 220ms ease, box-shadow ease; }
.closing a:hover { transform: translateY(-4px); box-shadow: 0 14px 26px rgba(0,0,0,.24); }
.closing a svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; color: #fff; background: var(--accent-dark); transition: transform 220ms ease; }
.closing a:hover svg { transform: rotate(-10deg); }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; min-height: 108px; padding: 24px clamp(28px, 5vw, 78px); column-gap: clamp(30px, 6vw, 90px); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand { display: grid; }
.footer-brand strong { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: .01em; }
.footer-brand span { margin-top: 3px; color: var(--accent-dark); font-size: 8px; letter-spacing: .17em; }
footer p { color: var(--muted); }
footer a { border-bottom: 1px solid var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .section-heading { grid-template-columns: 1fr 1.5fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-wide { grid-column: 1 / -1; min-height: 600px; }
  .detail-heading { grid-template-columns: 1fr 1fr; }
  .closing::before, .closing::after { display: none; }
}

@media (max-width: 640px) {
  body { background: var(--paper); }
  .hero { padding: 54px 20px 72px; border-radius: 0 0 28px 28px; }
  .hero { --notch-size: 78px 31.4px; }
  .scroll-cue { width: 44px; height: 44px; bottom: -22px; }
  .hero h1 { font-size: clamp(36px, 11vw, 48px); }
  .hero .intro { font-size: 15px; }
  .bio-list li { font-size: 13px; }
  .projects { padding: 80px 20px 0; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-heading h2 { font-size: 40px; }
  .section-heading > p:last-child { margin-top: 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-wide { grid-column: auto; min-height: 480px; }
  .detail-showcase { padding-top: 82px; }
  .detail-heading { display: block; padding: 0 20px 34px; }
  .faq { padding: 80px 20px 0; }
  .faq-list { grid-template-columns: 1fr; }
  .detail-heading h2 { font-size: 40px; }
  .detail-heading > p { margin-top: 20px; }
  .detail-card { flex-basis: 240px; width: 240px; height: 340px; border-radius: 22px; }
  .detail-card-wide { flex-basis: 310px; width: 310px; }
  .detail-track { animation-duration: 48s; }
  .zoom-dialog { width: calc(100% - 24px); }
  .zoom-dialog figure { border-width: 5px; border-radius: 24px; }
  .zoom-close { top: -10px; right: -6px; }
  .closing-wrap { padding: 52px 14px 46px; }
  .closing { padding: 62px 20px 70px; border-radius: 30px; }
  .closing h2 { font-size: 46px; }
  footer { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 20px 36px; }
  footer p { margin: 0; }}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .detail-marquee { overflow-x: auto; mask-image: none; scrollbar-width: none; }
  .detail-track { animation: none; }
  .detail-group[aria-hidden="true"] { display: none; }
}
