:root {
  --bg: #090a0c;
  --bg-2: #121418;
  --ink: #f4f1ea;
  --muted: #a39e94;
  --line: rgba(244, 241, 234, 0.12);
  --blue: #6d7bff;
  --serif: "Instrument Serif", Palatino, serif;
  --sans: "Outfit", "Avenir Next", sans-serif;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 340;
  font-size: 1.05rem;
  line-height: 1.5;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 0.7rem;
}
.skip:focus { top: 1rem; z-index: 5; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 6vw 0;
}
.logo {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  opacity: 0.85;
}
.bar nav { display: flex; gap: 1.2rem; }
.bar a { color: var(--muted); text-decoration: none; }
.bar nav a:hover { color: var(--ink); }

.stage {
  min-height: calc(100vh - 4.5rem);
  padding: 6vh 6vw 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.greet { margin: 0 0 1.4rem; color: var(--muted); letter-spacing: 0.08em; }

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
h1 em { font-style: italic; color: var(--blue); }

.kicker {
  margin: 1.1rem 0 0;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.portrait {
  margin: 2rem 0 0.2rem;
  padding: 12px 12px 36px;
  background: #f7f4ee;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  transform: rotate(-2deg);
}
.portrait img {
  display: block;
  width: 220px;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  background: #efeae2;
}

.frames {
  position: relative;
  width: min(640px, 100%);
  height: 280px;
  margin: 2.2rem auto 0.4rem;
}
.frame {
  position: absolute;
  width: 190px;
  margin: 0;
  padding: 10px 10px 28px;
  background: #f7f4ee;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.frame-a { left: 4%; top: 18px; transform: rotate(-8deg); }
.frame-b { left: 34%; top: 0; transform: rotate(3deg); z-index: 2; }
.frame-c { right: 4%; top: 26px; transform: rotate(8deg); }

.shot, .mono { width: 100%; height: 210px; }
.mono {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 1rem;
  background:
    radial-gradient(120px 80px at 70% 20%, rgba(109, 123, 255, 0.55), transparent 70%),
    linear-gradient(160deg, #243044, #10141c 70%);
  color: #f4f1ea;
}
.mono span { font-family: var(--serif); font-size: 4.2rem; line-height: 0.8; }
.mono small { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; }

.shot {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px;
}
.shot b { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; }
.shot-mesa { background: linear-gradient(165deg, #2a2438, #121018); color: #f4f1ea; }
.shot-mesa span { display: block; height: 28px; border-radius: 6px; background: rgba(244, 241, 234, 0.14); }
.shot-turno { background: linear-gradient(165deg, #1d2c28, #101412); color: #f4f1ea; }
.shot-turno i { display: block; height: 22px; border-left: 3px solid #6d7bff; background: rgba(244, 241, 234, 0.08); }

.display {
  margin: 0.6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.role { margin: 0.45rem 0 0; color: var(--muted); font-size: 1.25rem; }

.dock {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 1.5rem 6vw 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem 1.2rem;
  color: inherit;
  text-decoration: none;
  border-right: 1px solid var(--line);
}
.tile strong { font-size: 1.15rem; font-weight: 480; }
.tile em { font-style: normal; color: var(--muted); }
.dot {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.dot::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}
.dot-green { color: #3dd68c; }
.dot-blue { color: #6d7bff; }
.dot-copper { color: #e08a4f; }

.lead { max-width: none; color: var(--muted); font-size: 1.12rem; }

#perfil {
  display: grid;
  grid-template-columns: minmax(16rem, 26rem) minmax(0, 1fr);
  column-gap: 3rem;
  align-items: end;
}
#perfil .label,
#perfil h2 { grid-column: 1; }
#perfil h2 { max-width: none; }
#perfil .lead { grid-column: 2; grid-row: 1 / span 2; margin: 0; }

.jobs { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.jobs > li {
  display: grid;
  grid-template-columns: minmax(16rem, 24rem) minmax(0, 1fr);
  column-gap: 2.5rem;
  row-gap: 0.15rem;
  padding: 1.3rem 1.5rem 1.4rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
}
.jobs > li > .when { grid-column: 1; grid-row: 1; }
.jobs > li > h3 { grid-column: 1; grid-row: 2; }
.jobs > li > .org { grid-column: 1; grid-row: 3; }
.jobs > li > p { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.jobs > li > ul { grid-column: 2; grid-row: 3 / span 2; margin: 0.2rem 0 0; }
.jobs > li > .award { grid-column: 2; grid-row: 5; margin: 1.1rem 0 0; max-width: 42rem; }
.when { color: var(--blue); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.jobs h3 { margin: 0.3rem 0 0; font-family: var(--serif); font-weight: 400; font-size: 2rem; }
.org { margin: 0.15rem 0 0.6rem; color: var(--muted); }
.org span { display: block; margin-top: 0.2rem; color: var(--ink); font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.jobs p { margin: 0.4rem 0 0; color: #ddd8ce; }
.jobs ul { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.jobs li li { background: none; border: 0; border-top: 1px solid var(--line); padding: 0.55rem 0 0.55rem 0.9rem; position: relative; }
.jobs li li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--blue); }

.award { margin: 0; }
.award-open {
  display: block;
  width: 100%;
  padding: 0.35rem;
  border: 0;
  border-radius: 0.35rem;
  background: #f4f1ea;
  cursor: zoom-in;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.award-open img { display: block; width: 100%; height: auto; }
.award figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.award figcaption span { color: var(--blue); }

.visor {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 2.6rem 0.8rem 0.8rem;
  border: 0;
  border-radius: 0.4rem;
  background: #0e1014;
  color: var(--ink);
}
.visor::backdrop { background: rgba(6, 7, 9, 0.82); }
.visor img { display: block; width: 100%; height: auto; }
.visor-close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.group { margin: 1.6rem 0 0.7rem; font-size: 0.95rem; font-weight: 480; color: var(--muted); letter-spacing: 0.04em; }
.icons { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 0.7rem; margin: 0; padding: 0; }
.icons li {
  min-height: 7.2rem;
  padding: 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.2rem;
}
.icons img { width: 28px; height: 28px; margin-bottom: 0.45rem; }
.icons span { font-weight: 480; }
.icons small { color: var(--muted); font-size: 0.82rem; }
.badge {
  width: 28px; height: 28px; margin-bottom: 0.45rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--serif); font-size: 0.85rem;
}

.edu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-top: 1.4rem; }
.edu article { padding: 1.1rem; background: var(--bg-2); border: 1px solid var(--line); min-height: 11rem; }
.edu h3 { margin: 0.3rem 0 0.4rem; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.05; }
.edu p { margin: 0; color: var(--muted); }
.kind { margin: 0; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }

.contact { list-style: none; margin: 1.3rem 0 0; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.contact li { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.1rem; border: 1px solid var(--line); background: var(--bg-2); }
.contact span { color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; padding-top: 0.25rem; }
.contact a, .contact strong { color: var(--ink); font-family: var(--serif); font-size: 1.45rem; font-weight: 400; text-decoration: none; }
.pill {
  align-self: center;
  margin: 0 1rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: #f4f1ea;
  color: #111;
  text-decoration: none;
  font-weight: 480;
  white-space: nowrap;
}

.sheet { padding: 4.2rem 4vw 0; max-width: none; }
.label {
  margin: 0 0 0.6rem;
  color: var(--blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.74rem;
}
h2 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.works { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.8rem; }
.work {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.2rem;
  padding: 0.8rem;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.work-flip { grid-template-columns: 0.85fr 1.15fr; }
.work-flip .work-visual { order: 2; }
.work-visual {
  min-height: 280px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.vis-a { background: radial-gradient(400px 180px at 20% 0%, rgba(109, 123, 255, 0.35), transparent 60%), #1a1024; }
.vis-b { background: radial-gradient(400px 180px at 80% 0%, rgba(61, 214, 140, 0.22), transparent 60%), #101816; }
.vis-c { background: radial-gradient(400px 180px at 50% 100%, rgba(224, 138, 79, 0.28), transparent 60%), #1c1410; }

.ui {
  width: min(86%, 420px);
  padding: 14px;
  border-radius: 14px;
  background: rgba(9, 10, 12, 0.72);
  border: 1px solid rgba(244, 241, 234, 0.12);
}
.ui header { display: flex; gap: 6px; margin-bottom: 12px; }
.ui header s { width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 241, 234, 0.35); display: block; }
.cols, .rows, .cells { display: grid; gap: 8px; }
.cols { grid-template-columns: repeat(3, 1fr); }
.rows { grid-template-columns: 1fr; }
.cells { grid-template-columns: repeat(3, 1fr); }
.ui b { display: block; height: 72px; border-radius: 8px; background: rgba(244, 241, 234, 0.1); }
.rows b { height: 28px; }

.work-copy { padding: 0.8rem 0.6rem; }
.kind {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.work h3 {
  margin: 0.25rem 0 0.5rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
}
.work-copy p { margin: 0; color: #ddd8ce; }
.work ul { margin: 0.9rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.work li { padding: 0.28rem 0 0.28rem 0.9rem; position: relative; }
.work li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--blue);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.4rem;
  color: var(--muted);
}
.split p { margin: 0; }

.cta { padding: 4.5rem 6vw 1rem; max-width: 1100px; }
.cta-note { color: var(--muted); }

footer { margin-top: 3rem; padding: 2rem 6vw 2.5rem; border-top: 1px solid var(--line); }
.giant {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  color: var(--muted);
}
.foot-row a { color: var(--muted); }
.foot-row p { margin: 0; }

.lab { padding-bottom: 3rem; }
.lab-lead { color: var(--muted); max-width: 40rem; }
.phase {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1rem 2rem;
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}
.phase header p { margin: 0; font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 1.3rem; }
.phase h3 { margin: 0.15rem 0 0; font-family: var(--serif); font-weight: 400; font-size: 2rem; }
.phase ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.phase li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: #ddd8ce;
}
.phase li::before { content: counter(step, decimal-leading-zero); color: var(--blue); font-family: var(--serif); }

@media (max-width: 860px) {
  .dock, .split, .work, .work-flip, .phase, .edu, #perfil, .jobs > li, .contact { grid-template-columns: 1fr; }
  .jobs > li > .when,
  .jobs > li > h3,
  .jobs > li > .org,
  .jobs > li > p,
  .jobs > li > ul,
  .jobs > li > .award,
  #perfil .label,
  #perfil h2,
  #perfil .lead { grid-column: 1; grid-row: auto; }
  .work-flip .work-visual { order: 0; }
  .tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .pill { margin: 1rem; justify-self: start; }
  .frames { height: 230px; }
  .frame { width: 142px; }
  .shot, .mono { height: 150px; }
  .mono span { font-size: 3rem; }
  .stage { min-height: auto; padding-top: 8vh; }
  .foot-row { flex-direction: column; }
}
@media (max-width: 560px) {
  .frame-c { display: none; }
  .frame-a { left: 0; }
  .frame-b { left: auto; right: 0; }
}
