/* =========================================================
   Landing page — Figma "Personal 2026 / Landing Page New"
   Builds on site.css
   ========================================================= */

/* ---------- Hero ---------- */
.hero {
  width: 100%;
  padding-top: 100px;
  padding-bottom: 90px;
}
.hero.container { width: 100%; }
.hero > * {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.hero__lede {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  max-width: 549px;
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2));
}
.hero__meta {
  display: flex;
  justify-content: flex-end;
  gap: 52px;
  margin-top: 100px;
  font-size: 14px;
  line-height: 16.8px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__plus { font-weight: 500; }
.hero__name-row { position: relative; }
.hero__name {
  font-family: "Geist Pixel", monospace;
  font-variation-settings: "ELSH" 1;
  /* 290px at a 1340px content width */
  font-size: min(290px, (100vw - 2 * var(--gutter)) * 0.2164);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0;
}
.hero__name .char { font-variation-settings: "ELSH" 1; }
.hero__instagram,
.hero__linkedin {
  position: absolute;
  right: 0;
  bottom: 37px;
}
.hero__instagram img,
.hero__linkedin img { transition: transform 0.5s var(--ease-liquid); }
.hero__instagram:hover img,
.hero__linkedin:hover img { transform: translateY(-4px); }

/* ---------- Kinetic marquee: pixel type that runs with the scroll ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: 34px 30px;
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee__group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
  font-family: "Geist Pixel", monospace;
  font-size: 128px;
  line-height: 1;
  white-space: nowrap;
  font-variation-settings: "ELSH" 1;
}
.marquee__plus { font-size: 0.5em; transform: translateY(-0.08em); }

/* ---------- Pillars ---------- */
.pillars { padding-block: var(--band-sm); }
.pillars__grid {
  display: flex;
  gap: 52px;
}
.pillar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
  will-change: transform;
}
.pillar + .pillar::before {
  content: "";
  position: absolute;
  left: -26px;
  top: calc(-1 * var(--band-sm));
  bottom: calc(-1 * var(--band-sm));
  width: 1px;
  background: var(--line);
  transform-origin: top;
  transform: scaleY(var(--draw, 1));
}
.pillar__icon { flex: none; width: 56px; height: 56px; }
.pillar__icon--tile {
  display: grid;
  place-items: center;
  background: var(--tile);
  border-radius: 16px;
}
.pillar__title {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.1;
  min-height: 27px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.pillar__body { color: var(--muted); }

/* ---------- Works ---------- */
.work { padding-block: var(--band); cursor: pointer; }
.work__grid {
  --cg: clamp(40px, 9vw, 129px);
  display: grid;
  grid-template-columns: minmax(0, 323fr) minmax(0, 436fr) minmax(0, 323fr);
  column-gap: var(--cg);
}
.work__col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}
.work__intro { display: flex; flex-direction: column; gap: 24px; }
.work__intro .muted + .muted { margin-top: -8px; }
.work__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}
.work__title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease-liquid); }
.work__title a:hover { background-size: 100% 1px; }

.work__mid { position: relative; display: flex; align-items: center; }
.work__mid::before, .work__mid::after {
  content: "";
  position: absolute;
  top: calc(-1 * var(--band));
  bottom: calc(-1 * var(--band));
  width: 1px;
  background: var(--line);
  transform-origin: top;
  transform: scaleY(var(--draw, 1));
}
.work__mid::before { left: calc(var(--cg) / -2); }
.work__mid::after { right: calc(var(--cg) / -2); }

.work__media {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f2f2f2;
}
.work__media--tall { aspect-ratio: 436 / 569; }
/* landscape shots fill the same tall frame as the videos, centred (cover) */
.work__media--jove, .work__media--lead { aspect-ratio: 436 / 569; }
.work__media img,
.work__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Gen AI ---------- */
.genai { padding-block: var(--band); }
.genai__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.genai__intro { width: 323px; flex: none; }
.genai__controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 100px;
}
/* Joined hairline pair (matches the contact links): ink fills in on hover */
.arrows { display: flex; border: 1px solid var(--line); }
.arrow {
  position: relative;
  width: 56px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  transition: color 0.4s var(--ease-liquid), opacity 0.3s;
}
.arrow + .arrow { border-left: 1px solid var(--line); }
.arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.5s var(--ease-liquid);
}
.arrow::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  background: var(--ink);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform: translateY(105%);
  transition: transform 0.6s var(--ease-liquid), border-radius 0.6s var(--ease-liquid);
  z-index: -1;
}
.arrow:not(:disabled):hover { color: #fff; }
.arrow:not(:disabled):hover::before { transform: translateY(0); border-radius: 0; }
.arrow--prev:not(:disabled):hover svg { transform: translateX(-3px); }
.arrow:not(.arrow--prev):not(:disabled):hover svg { transform: translateX(3px); }
.arrow:disabled { opacity: 0.3; cursor: default; }

.track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-inline: var(--pad-x);
  scroll-padding-inline: var(--pad-x);
  cursor: grab;
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { cursor: grabbing; user-select: none; }
.track.is-dragging a { pointer-events: none; }

.genai .track { gap: 100px; margin-top: 32px; }
.ai-card {
  flex: 0 0 436px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ai-card__media {
  position: relative;
  aspect-ratio: 436 / 569;
  overflow: hidden;
  margin-bottom: 32px;
  background: #f2f2f2;
}
.ai-card__media img,
.ai-card__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-card__media .ai-card__logo {
  inset: auto;
  left: 23.85%;
  top: 30.05%;
  width: 52.06%;
  height: auto;
  aspect-ratio: 1;
  z-index: 1;
}
.ai-card__title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.ai-card__meta {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.ai-card__meta strong {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- About ---------- */
.about { padding-block: var(--band); position: relative; }
.about::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line);
  transform-origin: left; transform: scaleX(var(--draw, 1));
}
.about__grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}
.about__text { flex: 0 1 549px; }
.about__body { margin-top: 100px; font-size: 20px; line-height: 1.5; color: var(--muted); }
.about__photo {
  flex: 0 1 625px;
  position: relative;
  aspect-ratio: 625 / 442;
  overflow: hidden;
  align-self: flex-end;
}
.about__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 25%;
}

/* ---------- Technical Skills ---------- */
.skills { padding-block: var(--band); border-top: 1px solid var(--line); }
.skills__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; gap: 32px; flex-wrap: wrap; }
.skills__intro { max-width: 480px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.skills__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.skills__card {
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 320px;
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.4s var(--ease-liquid), transform 0.4s var(--ease-liquid), background-color 0.4s var(--ease-liquid);
}
@media (max-width: 1040px) {
  .skills__card {
    flex: 0 1 calc((100% - 24px) / 2);
  }
}
.skills__card:hover {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}
.skills__cat {
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.skills__cat-num {
  font-size: 13px;
  color: var(--muted-2);
  font-weight: 400;
}
.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.skills__tag {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ink);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.skills__tag:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Awards ---------- */
.awards { padding-block: var(--band-sm); }
.awards__row { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.award { display: flex; align-items: center; gap: 32px; width: 323px; }
.award img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex: none; }
.award div { display: flex; flex-direction: column; gap: 6px; }
.award__name { font-size: 20px; }

/* ---------- Company Works Carousel / Showcase ---------- */
.company-works__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 12px;
  text-align: center;
}
.company-works__intro {
  max-width: 680px;
  margin-inline: auto;
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.quotes__band { padding-block: 0; }
.track--quotes {
  gap: 160px;
  padding-block: var(--band);
  align-items: stretch;
}
.quote {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  position: relative;
}
.quote + .quote::before {
  content: "";
  position: absolute;
  left: -80px;
  top: calc(-1 * var(--band));
  bottom: calc(-1 * var(--band));
  width: 1px;
  background: var(--line);
  transform-origin: top;
  transform: scaleY(var(--draw, 1));
}
.quote blockquote { font-size: 20px; line-height: 1.5; }
.quote figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.quote figcaption span { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.quote strong { font-weight: 500; font-size: 20px; line-height: 1.1; }
.quote small { font-size: 16px; line-height: 1.2; color: var(--muted-2); }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }

.quote--work {
  gap: 24px;
}
.quote--work .company-work__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote--work .company-work__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.quote--work .company-work__badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-2);
}
.quote--work .company-work__title {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.quote--work .company-work__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}
.quote--work .company-work__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.quote--work .company-work__rect {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 12px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}
.quote--work figcaption {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 20px;
}
.quote--work figcaption span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote--work figcaption strong {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
}
.quote--work figcaption small {
  font-size: 14px;
  line-height: 1.3;
  color: var(--muted-2);
}
.quote--work figcaption img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero__lede { font-size: 28px; }
  .hero__meta { gap: 28px; }
  .award { width: auto; }
}

@media (max-width: 900px) {
  .pillars__grid { flex-direction: column; gap: 32px; }
  .pillar + .pillar::before { display: none; }

  .work__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .work__mid { order: -1; }
  .work__mid::before, .work__mid::after { display: none; }
  .work__col { gap: 24px; }
  .work__col:last-child { flex-direction: row; flex-wrap: wrap; gap: 24px 48px; justify-content: flex-start; }

  .genai__head { flex-direction: column; }
  .genai__intro { width: auto; max-width: 440px; }
  .genai__controls { margin-top: 40px; }

  .about__grid { flex-direction: column; }
  .about__text { flex: none; }
  .about__body { margin-top: 32px; }
  .about__photo { flex: none; width: 100%; }

  .skills__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
  .skills__grid { flex-direction: column; }
  .skills__card { flex: 1 1 100%; min-width: 0; }

  .track--quotes { gap: 100px; }
  .quote { flex: 0 0 360px; }
  .quote + .quote::before { left: -50px; }
}

@media (max-width: 600px) {
  .track--quotes { gap: 70px; }
  .quote { flex: 0 0 290px; }
  .quote + .quote::before { left: -35px; }
  .quote--work .company-work__title { font-size: 20px; }
  .quote--work .company-work__desc { font-size: 15px; }
}
