@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Warm ink fields, the orange of the Spain Skills hoodie, the white desk, the concrete floor. */
:root {
  --field: #211916;
  --field-deep: #0f0b0a;
  --shard-light: #2e2420;
  --shard-dark: #17110f;
  --orange-text: #a3390b;
  --on-field-soft: rgba(255, 255, 255, 0.86);
  --orange: #e0571a;
  --orange-deep: #b8410c;
  --paper: #f3f1f0;
  --white: #ffffff;
  --ink: #17110f;
  --ink-soft: #4d4542;
  --concrete: #6a5f5a;
  --rule: #d9d3d0;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

::selection {
  background: var(--orange);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

html {
  scrollbar-color: var(--concrete) var(--paper);
}

.skip {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
}

.skip:focus {
  left: 12px;
}

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Top bar */

.topbar {
  position: relative;
  z-index: 10;
  background: var(--ink);
  color: var(--white);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  font-size: 15px;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
  padding: 6px 0;
}

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

.nav .lang {
  padding: 6px 12px;
  border: 1.5px solid currentColor;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav .lang:hover {
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

@media (max-width: 899px) {
  .nav .section-link {
    display: none;
  }
}

/* Hero: the booth panel, the accreditation and the photo */

.hero {
  position: relative;
  display: grid;
  background: var(--field);
  color: var(--white);
  isolation: isolate;
  overflow: clip;
}

.shard-light {
  fill: var(--shard-light);
}

.shard-dark {
  fill: var(--shard-dark);
}

.shards {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 var(--gutter) clamp(40px, 6vw, 72px);
}

.lanyard {
  width: 18px;
  height: clamp(40px, 6vw, 64px);
  margin-left: clamp(96px, 12vw, 132px);
  background:
    repeating-linear-gradient(180deg, transparent 0 14px, rgba(0, 0, 0, 0.12) 14px 15px),
    var(--orange);
  box-shadow: inset -4px 0 0 rgba(0, 0, 0, 0.12);
}

.badge {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  width: min(100%, 380px);
  margin-top: -4px;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 2px 4px rgba(23, 17, 15, 0.18), 0 22px 40px -12px rgba(0, 0, 0, 0.6);
  transform-origin: 50% -40px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-2.5deg);
  animation: swing 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.badge::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 44px;
  height: 8px;
  margin-left: -22px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

@keyframes swing {
  0% {
    transform: perspective(900px) rotate(-14deg);
  }
  35% {
    transform: perspective(900px) rotate(6deg);
  }
  65% {
    transform: perspective(900px) rotate(-5deg);
  }
  100% {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-2.5deg);
  }
}

.badge-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 34px 24px 16px;
  border-radius: 14px 14px 0 0;
  background: var(--ink);
  color: var(--white);
}

.badge-head span {
  padding-bottom: 4px;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge-head strong {
  font-weight: 900;
  font-stretch: 62%;
  font-size: 56px;
  line-height: 0.8;
  color: var(--orange);
}

.badge-body {
  padding: 22px 24px 20px;
}

.badge h1 {
  margin: 0;
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(52px, 5.4vw, 66px);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.badge .role {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
}

.badge .stack {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.badge dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 16px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1.5px solid var(--ink);
  font-size: 14px;
}

.badge dt {
  color: var(--concrete);
  font-weight: 600;
}

.badge dd {
  margin: 0;
  font-weight: 700;
}

.badge-foot {
  height: 34px;
  margin: 0 24px 22px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px, var(--ink) 5px 6px, transparent 6px 9px, var(--ink) 9px 12px, transparent 12px 14px);
  opacity: 0.9;
}

.hero-copy {
  max-width: 30ch;
  margin: clamp(28px, 3.5vw, 40px) 0 0;
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-copy em {
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: currentColor;
}

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

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

.btn-outline {
  border-color: currentColor;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);
}

.hero-photo {
  margin: 0;
  position: relative;
  min-height: 360px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
}

.hero-photo figcaption {
  position: absolute;
  left: var(--gutter);
  bottom: 18px;
  max-width: calc(100% - 2 * var(--gutter));
  padding: 6px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 899px) {
  .hero-panel {
    align-items: center;
    text-align: center;
  }

  .lanyard {
    margin-left: 0;
  }

  .badge {
    text-align: left;
  }

  .hero .actions {
    justify-content: center;
  }

  .hero-photo {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    min-height: min(calc(100svh - 60px), 920px);
  }

  .hero-panel {
    padding-left: max(var(--gutter), (100vw - var(--max)) / 2);
  }

  .hero-photo {
    min-height: 100%;
  }
}

/* Sections */

.band {
  padding: clamp(72px, 10vw, 136px) 0;
}

.band-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.band-head h2 {
  margin: 0;
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.band-head p {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .band-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 48px;
  }
}

.band-follow {
  padding-top: 0;
}

/* Now: AI integration at Cygnus Source */

.now-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .now-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }
}

.now-text p {
  margin: 0 0 18px;
  max-width: 52ch;
  font-size: 18px;
}

.now-text p:first-child {
  font-size: clamp(21px, 2vw, 25px);
  line-height: 1.4;
  font-weight: 600;
}

.sheet {
  margin: 0;
  border-top: 3px solid var(--ink);
}

.sheet div {
  display: grid;
  gap: 2px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 560px) {
  .sheet div {
    grid-template-columns: 9.5rem minmax(0, 1fr);
  }
}

.sheet dt {
  font-weight: 800;
  font-stretch: 80%;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-text);
}

.sheet dd {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
}

/* Career: a results sheet */

.results {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}

.result {
  display: grid;
  gap: 8px 32px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 900px) {
  .result {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }
}

.result .years {
  font-weight: 900;
  font-stretch: 65%;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.result .years small {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-stretch: 100%;
  font-size: 15px;
  line-height: 1.4;
  color: var(--concrete);
}

.result h3 {
  margin: 0;
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.2;
}

.result h3 span {
  display: block;
  font-weight: 500;
  font-size: 17px;
  color: var(--ink-soft);
}

.result p {
  margin: 12px 0 0;
  max-width: 62ch;
}

.result .tech {
  color: var(--concrete);
  font-size: 15px;
  font-weight: 600;
}

/* Projects: full-width bands, each in its own material */

.project {
  display: grid;
  gap: 32px;
  padding: clamp(56px, 8vw, 104px) 0;
}

.project h3 {
  margin: 0 0 20px;
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

.project p {
  margin: 0 0 16px;
  max-width: 54ch;
  font-size: 18px;
}

.project .tech {
  font-size: 15px;
  font-weight: 700;
}

.project .wrap {
  display: grid;
  gap: 40px;
}

@media (min-width: 900px) {
  .project .wrap {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 72px;
    align-items: center;
  }
}

.project-fandos {
  background: var(--orange);
  color: var(--ink);
}

.project-fandos .tech {
  color: var(--ink);
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--ink);
}

.features li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 16px;
  padding: 14px 0;
  border-bottom: 1.5px solid rgba(23, 17, 15, 0.35);
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
}

.features li span {
  font-weight: 500;
  font-size: 15px;
}

.project .phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(40px, 6vw, 72px);
}

@media (min-width: 600px) {
  .project .phones {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
  }

  .phone:nth-child(even) {
    margin-top: clamp(24px, 4vw, 56px);
  }
}

.phone {
  margin: 0;
  padding: 3.2%;
  border-radius: 15% / 7%;
  background: var(--ink);
  box-shadow: 0 2px 4px rgba(23, 17, 15, 0.25), 0 28px 48px -18px rgba(23, 17, 15, 0.55);
}

.phone img {
  width: 100%;
  border-radius: 12% / 5.6%;
}

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

.project-agents p {
  color: #e8e2df;
}

.project-agents .tech {
  color: var(--orange);
}

.terminal {
  margin: 0;
  max-width: 100%;
  padding: 22px 24px;
  border: 1.5px solid #3a3230;
  font-family: var(--mono);
  font-size: clamp(12px, 1.25vw, 14.5px);
  line-height: 2;
  overflow-x: auto;
  white-space: pre-wrap;
  color: #f1ece9;
}

.terminal .ok {
  color: #7ee0a8;
}

.terminal .warn {
  color: var(--orange);
}

.terminal .dim {
  color: #8f8580;
}

.project-game {
  background: var(--paper);
}

.project-game .tech {
  color: var(--concrete);
}

.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(6px, 1vw, 10px);
  width: min(100%, 380px);
}

.board span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--white);
  font-weight: 900;
  font-stretch: 75%;
  font-size: clamp(24px, 3vw, 34px);
}

.board .hit {
  background: #1f8a5b;
}

.board .near {
  background: #c99512;
}

.board .miss {
  background: var(--concrete);
}

/* Competition */

.competition {
  position: relative;
  background: var(--field);
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.competition .band-head p {
  color: var(--on-field-soft);
}

.medals {
  display: grid;
  gap: 40px;
  margin: 0 0 clamp(48px, 7vw, 88px);
}

@media (min-width: 900px) {
  .medals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
  }
}

.medal {
  padding: 28px 0 0;
  border-top: 3px solid var(--white);
}

.medal strong {
  display: block;
  font-weight: 900;
  font-stretch: 65%;
  font-size: clamp(64px, 9vw, 120px);
  line-height: 0.85;
  text-transform: uppercase;
}

.medal p {
  max-width: 30ch;
  margin: 14px 0 0;
  font-weight: 600;
  font-size: 17px;
}

@media (min-width: 900px) {
  .medal {
    padding-right: 32px;
  }
}

.studies {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
}

.studies li {
  display: grid;
  gap: 2px 32px;
  padding: 18px 0;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 700px) {
  .studies li {
    grid-template-columns: 9rem minmax(0, 1fr) auto;
    align-items: baseline;
  }
}

.studies .when {
  font-weight: 800;
  font-stretch: 75%;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.studies .what {
  font-weight: 700;
  font-size: 18px;
}

.studies .what span {
  display: block;
  font-weight: 500;
  font-size: 15px;
  color: var(--on-field-soft);
}

.studies .mark {
  font-weight: 900;
  font-stretch: 70%;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}

/* Close */

.close {
  padding: clamp(80px, 12vw, 160px) 0 0;
}

.close h2 {
  margin: 0 0 20px;
  font-weight: 900;
  font-stretch: 65%;
  font-size: clamp(48px, 14vw, 168px);
  line-height: 0.85;
  text-transform: uppercase;
}

.close p {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--ink-soft);
}

.btn-field {
  background: var(--field);
  color: var(--white);
}

.btn-field:hover {
  background: var(--field-deep);
}

.btn-ink {
  border-color: var(--ink);
}

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

footer {
  margin-top: clamp(80px, 12vw, 140px);
  padding: 24px 0 32px;
  border-top: 1px solid var(--rule);
  color: var(--concrete);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

/* Short desktop screens: the badge drops its barcode so the actions stay in the first screen. */
@media (min-width: 900px) and (max-height: 860px) {
  .lanyard {
    height: 32px;
  }

  .badge-foot {
    display: none;
  }

  .badge-body {
    padding-bottom: 22px;
  }

  .hero-copy {
    margin-top: 28px;
  }
}

/* Phones: the accreditation shrinks so the name and the LinkedIn action fit in the first screen. */
@media (max-width: 599px) {
  .lanyard {
    height: 24px;
  }

  .badge {
    width: min(100%, 340px);
    border-radius: 12px;
  }

  .badge-head {
    padding: 26px 18px 12px;
    border-radius: 12px 12px 0 0;
  }

  .badge-head span {
    font-size: 12px;
  }

  .badge-head strong {
    font-size: 40px;
  }

  .badge-body {
    padding: 14px 18px 16px;
  }

  .badge h1 {
    font-size: clamp(40px, 12.5vw, 52px);
  }

  .badge .role {
    margin-top: 10px;
    font-size: 17px;
  }

  .badge .stack {
    font-size: 14px;
  }

  .badge dl,
  .badge-foot {
    display: none;
  }

  .hero-copy {
    margin-top: 24px;
    font-size: clamp(21px, 6vw, 26px);
  }

  .hero .actions {
    margin-top: 20px;
  }

  .btn {
    min-height: 48px;
    padding: 0 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .badge {
    animation: none;
  }

  .btn {
    transition: none;
  }
}
