/* ==========================================================
   Georgina Luna — Portfolio 2026
   Built from Figma "Portfolio" › Page 2 › Desktop - 1 (1440px)
   ========================================================== */

:root {
  /* colour tokens from the design */
  --ink: #242836;            /* titles, pills */
  --hand: #183f75;           /* handwritten captions */
  --hand-soft: #40679d;      /* small notes */
  --frame: #3f68a1;          /* image borders */
  --shadow: rgba(63, 104, 161, 0.5);
  --pill-hover-bg: #183f75;
  --pill-hover-ink: #f5f5f5;
  --grad-a: #d9d5eb;
  --grad-b: #c7d4f4;
  --grad-c: #a9d2fe;

  --font-ui: "Rubik", system-ui, sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;

  --gutter: clamp(16px, 13.9vw, 200px); /* 200px side margin at 1440 */
  --col-gap: clamp(24px, 7.8vw, 112px);
}

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

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

body {
  margin: 0;
  background: var(--grad-c);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 20px;
  line-height: 1.3;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }

.wrap {
  position: relative;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.deco { position: absolute; pointer-events: none; user-select: none; }

/* ---------- type ---------- */
.display {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
  text-shadow: -0.071em 0.086em 0.029em var(--shadow);
  letter-spacing: 0;
}
.display--xl { font-size: clamp(40px, 13.06vw, 188px); line-height: 1.12; }
.display--lg { font-size: clamp(56px, 9.72vw, 140px); line-height: 0.943; }
.display--md { font-size: clamp(48px, 8.33vw, 120px); line-height: 1.1; }

.hand {
  font-family: var(--font-hand);
  color: var(--hand);
  font-size: 20px;
  line-height: 1.2;
}

/* ---------- pill (component "Pill": Default / Hover) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 48px;
  font-size: 20px;
  line-height: normal;
  color: var(--ink);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill:hover {
  background: var(--pill-hover-bg);
  border-color: var(--pill-hover-bg);
  color: var(--pill-hover-ink);
}
.pill--lg { padding: 12px 48px; font-size: clamp(18px, 2.22vw, 32px); }

/* ==========================================================
   HERO + ABOUT
   ========================================================== */
.sky {
  position: relative;
  background: url("assets/bg-sky.webp") 40% 33% / auto 250% no-repeat, var(--grad-c);
  padding-bottom: clamp(48px, 8vw, 120px);
}

.sky::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  background: linear-gradient(180deg, rgba(217,213,235,0), var(--grad-a));
  pointer-events: none;
}
.sky > * { position: relative; z-index: 1; }

.hero {
  padding-top: clamp(96px, 14.4vw, 208px);
  max-width: calc(1064px + 2 * var(--gutter));
  padding-inline: max(var(--gutter), 16px);
}
.hero .pill--lg { margin-left: clamp(0px, 4vw, 60px); }
.hero h1 { margin-top: clamp(8px, 1vw, 16px); }

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: clamp(24px, 3.33vw, 48px);
  margin-top: clamp(4px, 1vw, 12px);
}
.hero__dot { width: 21px; height: 22px; margin-left: auto; margin-right: clamp(16px, 6vw, 96px); }
.hero__email {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(16px, 2.22vw, 32px);
  text-decoration: none;
}
.hero__email:hover { text-decoration: underline; text-underline-offset: 6px; }

.star-top { width: 48px; top: clamp(60px, 11vw, 160px); left: 50%; }
.star-hero { width: 70px; right: max(var(--gutter), 24px); bottom: -56px; }

/* about */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 0 24px;
  margin-top: clamp(48px, 9vw, 130px);
}
.about__text { position: relative; z-index: 1; }

.traits { position: relative; z-index: 2; max-width: 100%; margin-top: clamp(40px, 6vw, 88px); }
.traits__group { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 20px; }
.traits__group--row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.traits__group:first-of-type { margin-left: clamp(0px, 9vw, 130px); }
.traits__group:nth-of-type(2) { margin-left: clamp(0px, 8vw, 116px); margin-top: 28px; }
.traits__group:nth-of-type(3) { margin-left: clamp(0px, 13vw, 190px); }
.traits__sub {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 12px 0 0 clamp(0px, 2vw, 28px);
  padding: 0;
  font-family: var(--font-hand);
  color: var(--hand);
}
.traits__label { text-align: right; }
.traits__exp { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }

.star-about-1 { width: 70px; left: -40px; top: 40px; }
.star-about-2 { width: 40px; left: 10px; top: 84px; }
.star-about-3 { width: 30px; left: 12px; top: 30px; }

.about__photo {
  position: relative;
  margin-right: calc(-1 * clamp(0px, 14vw, 220px));
}
.star-photo {
  width: 100%;
  max-width: 749px;
  transform-origin: 50% 50%;
}
.star-photo.is-animated {
  animation: star-pop 0.5s linear both;
}
@keyframes star-pop {
  0%   { scale: 0.8; animation-timing-function: cubic-bezier(0.7, -0.4, 0.4, 1.4); }
  100% { scale: 1; }
}
.star-photo-deco { width: 40px; right: 18%; bottom: 6%; }

/* ==========================================================
   PROJECTS
   ========================================================== */
.projects {
  position: relative;
  background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-b) 52.4%, var(--grad-c) 100%);
  padding-bottom: clamp(80px, 10vw, 160px);
}
/* soft lilac band where the sky meets the gradient */
.projects__band {
  position: absolute;
  left: 0; right: 0;
  top: -110px; height: 200px;
  background:
    linear-gradient(180deg, rgba(217,213,235,0) 0%, rgba(217,213,235,.5) 35%, var(--grad-a) 70%);
  filter: blur(10px);
  pointer-events: none;
}

.projects__title { position: relative; padding-top: clamp(24px, 4vw, 60px); margin-left: clamp(0px, -0vw, 0px); }
.star-projects { width: 70px; left: 50%; top: clamp(40px, 6vw, 110px); }

.project { margin-top: clamp(56px, 7vw, 120px); }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 72px) var(--col-gap);
  align-items: start;
}

.project__head { position: relative; }
.project__logo { width: min(419px, 100%); }
.project__tag {
  margin: 12px 0 0 10px;
  font-style: italic;
  font-weight: 300;
  color: var(--hand);
  font-size: 20px;
  line-height: 38px;
}

.item { position: relative; }
.item > img:not(.deco):not(.line),
.ig-stack img,
.pm-stack img { width: 100%; }

/* captions */
.note {
  position: relative;
  margin: 0;
  font-family: var(--font-hand);
  color: var(--hand);
  font-size: clamp(24px, 2.22vw, 32px);
  line-height: 1.19;
}
.note--small { font-size: clamp(18px, 1.67vw, 24px); color: var(--hand-soft); }
.note--right { text-align: right; margin-top: 16px; }
.note--indent { margin: 12px 0 0; max-width: 600px; text-align: right; }
.note--end { text-align: right; margin-top: 16px; }
.arrow { display: inline-block; vertical-align: middle; height: 1.6em; width: auto; margin: 0 6px; }

/* ---- Finerio ---- */
.item--motion { grid-column: 2; width: min(331px, 100%); }
.item--motion .note--right { width: 264px; margin-left: auto; margin-right: -80px; }
.item--motion .note--right .arrow { position: absolute; left: -36px; top: -4px; }
.star-motion { width: 30px; left: -60px; bottom: 40px; }

.item--deck { grid-column: 1; margin-left: calc(-1 * clamp(0px, 12vw, 180px)); width: calc(100% + clamp(0px, 12vw, 180px) + clamp(0px, 12vw, 160px)); max-width: 860px; }
.note--deck { grid-column: 2; align-self: center; max-width: 260px; margin-top: 120px; }
.note--deck .arrow { display: block; margin: 0 0 6px 0; }

.item--linkedin { grid-column: 1; display: grid; grid-template-columns: auto auto; gap: 24px; align-items: start; justify-content: end; }
.item--linkedin img { width: min(278px, 100%); grid-column: 1; grid-row: 1; }
.item--linkedin .note { grid-column: 2; grid-row: 1; padding-top: 18px; white-space: nowrap; }
.item--linkedin .arrow--down { display: block; margin: 12px 0 0 0; }

.item--protos { grid-column: 2; }
.item--protos .note { margin-bottom: 16px; }
.item--protos .line { position: absolute; right: -20px; top: 50px; height: 406px; width: auto; }

.item--web { grid-column: 1; }
.item--web .note { margin-bottom: 12px; padding-left: 60px; }
.item--web .note .arrow { position: absolute; left: 0; top: 10px; height: 26px; }
.item--web > img { max-width: 600px; }
.star-web { width: 40px; left: 46%; top: -150px; }

.item--webphone { grid-column: 2; width: min(195px, 100%); margin-left: clamp(0px, 4vw, 60px); }
.item--webphone img { border-radius: 30px; }

/* ---- Red de Regeneración de los Suelos ---- */
.project__logo--ngo { width: min(419px, 100%); }
.star-ngo { width: 40px; right: 10%; top: -80px; }

.item--branding { grid-column: 2; grid-row: 1 / span 2; width: min(419px, 100%); }
.item--branding > img { filter: none; }
.note--left-of { position: absolute; right: calc(100% + 24px); top: 170px; white-space: nowrap; text-align: right; }
.note--left-of .arrow { display: block; margin: 8px 0 0 auto; }

.item--posters { grid-column: 1; grid-row: 2; width: min(506px, 100%); }
.item--posters .note { margin: 0 0 16px 0; }
.item--posters .note .arrow { display: block; margin: 8px 0 0 260px; height: 48px; }

.item--ig { grid-column: 2; grid-row: 3; width: min(417px, 100%); }
.ig-stack { position: relative; aspect-ratio: 417 / 713; }
.ig-stack img { position: absolute; border: 1px solid #fff; object-fit: cover; }
.ig-stack__front { left: 0; top: 0; width: 84.17% !important; height: 61.57%; }
.ig-stack__back1 { left: 7.91%; top: 19.07%; width: 84.41% !important; height: 61.71%; filter: blur(4px); }
.ig-stack__back2 { left: 15.59%; top: 38.29%; width: 84.41% !important; height: 61.71%; filter: blur(4px); }
.note--ig { position: absolute; right: calc(100% + 24px); top: 160px; white-space: nowrap; text-align: right; }
.note--ig .arrow { display: block; margin: 8px 0 0 auto; height: 54px; }
.star-ig { width: 40px; left: -60px; top: 6px; }

.item--raices { grid-column: 1; grid-row: 3 / span 2; width: min(508px, 100%); }
.item--raices .note { margin-bottom: 16px; }
.item--raices .note .arrow { display: block; margin: 8px 0 0 300px; height: 42px; }
.raices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.raices img { width: 100%; aspect-ratio: 242 / 136; object-fit: cover; border: 1px solid var(--frame); }
.raices .raices__wide { grid-column: 1 / -1; aspect-ratio: 508 / 286; }

.item--pm { grid-column: 2; grid-row: 4; width: min(418px, 100%); margin-top: 40px; }
.item--pm .note { margin-bottom: 24px; }
.pm-stack { position: relative; aspect-ratio: 418 / 366; }
.pm-stack img { position: absolute; left: 0; aspect-ratio: 418 / 235; object-fit: cover; }
.pm-stack__back { top: 0; filter: blur(1px); }
.pm-stack__front { top: 35.8%; }

/* ==========================================================
   CLOSING
   ========================================================== */
.closing {
  text-align: center;
  padding-top: clamp(120px, 14vw, 200px);
}
.closing__email {
  display: inline-block;
  margin-top: clamp(32px, 4vw, 64px);
  font-size: clamp(20px, 3.33vw, 48px);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.closing__email:hover { text-decoration: underline; text-underline-offset: 8px; }
.star-closing { width: 70px; left: 50%; top: clamp(20px, 3vw, 40px); translate: -50% 0; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (min-width: 1101px) {
  .item--raices { margin-top: 300px; }
}

@media (max-width: 1100px) {
  .note--left-of, .note--ig { position: static; white-space: normal; text-align: left; margin-bottom: 16px; }
  .note--left-of .arrow, .note--ig .arrow { display: none; }
  .star-ig { display: none; }
  .item--branding, .item--ig { display: flex; flex-direction: column; }
  .item--branding .note, .item--ig .note { order: -1; }
}

@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { order: -1; margin: 0 auto; max-width: 480px; }
  .traits { width: auto; max-width: 100%; }
  .traits__group, .traits__group:first-of-type,
  .traits__group:nth-of-type(2), .traits__group:nth-of-type(3) { margin-left: 0; }
  .star-about-1, .star-about-2, .star-about-3 { display: none; }

  .grid { grid-template-columns: 1fr; }
  .grid > * { grid-column: 1 !important; grid-row: auto !important; margin-left: 0 !important; margin-right: 0 !important; width: 100% !important; max-width: 100%; }
  .item--motion .note--right { width: auto; margin-right: 0; }
  .item--motion .note--right .arrow { display: none; }
  .note--deck { margin-top: -24px; max-width: none; }
  .note--deck .arrow { display: none; }
  .item--linkedin { justify-content: start; }
  .item--protos .line { display: none; }
  .item--webphone { max-width: 195px !important; }
  .item--posters .note .arrow, .item--raices .note .arrow { display: none; }
  .note--indent { margin-left: 0; }
  .item--pm { margin-top: 0; }
  .deco.star-motion, .deco.star-web, .deco.star-ngo { display: none; }
  .hero__dot { display: none; }
  .star-top, .star-hero, .star-projects, .star-photo-deco { display: none; }
}

@media (max-width: 480px) {
  .pill { font-size: 16px; padding: 10px 18px; }
  .item--linkedin { grid-template-columns: 1fr; }
  .item--linkedin .note { grid-row: 1; grid-column: 1; padding-top: 0; }
  .item--linkedin img { grid-row: 2; }
  .item--linkedin .arrow--down { display: none; }
  .raices { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .star-photo.is-animated { animation: none; }
  html { scroll-behavior: auto; }
}
