/* =========================================================
   Daniela Gómez Murillo — portfolio
   Built from the Figma frames (1280px). All spacing, sizes
   and fonts below are the values used in Figma.

   Fonts
   - Kay Pho Du ......... section titles, names, "My work"
   - Noto Sans .......... body text (what Figma shows for "Kdam Thmor")
   - Epilogue ........... work cards and Figma "Body text" style
   - Playwrite US Trad .. logo
   - Averia Sans Libre .. HELD logo
   ========================================================= */

:root {
  --white: #ffffff;
  --black: #2d2d2d;
  --ink: #2b2b2b;          /* case-study body text */
  --text: #494949;         /* large text, contact, quotes */
  --label-ink: #3b3b3b;    /* text inside the coloured title bar */
  --peach-band: #fff1e6;

  /* HELD (default) */
  --accent: #b5abf3;       /* title bar */
  --accent-text: #3845ad;  /* subtitles */
  --tint: #f3f8ff;         /* tinted sections */

  --font-title: "Kay Pho Du", Georgia, serif;
  --font-body: "Noto Sans", Arial, sans-serif;
  --font-epi: "Epilogue", Arial, sans-serif;
  --font-logo: "Playwrite US Trad", cursive;

  --text-w: 880px;         /* text column */
  --media-x: 190px;        /* side padding of image sections */
  --sec-y: 60px;           /* half the space between two sections → 120px between any two blocks */
}

/* Fill the Gap + Buon Vicino */
.theme-peach {
  --accent: #ffb080;
  --accent-text: #ff9759;
  --tint: #fff8f3;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 27px;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: inherit; font-size: inherit; line-height: inherit; }

/* ---------- Navigation (80px) ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 80px;
  background: var(--white);
}
.nav__inner {
  height: 100%;
  padding: 0 62px 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: var(--font-logo);
  font-size: 20px;
  line-height: 30px;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: 56px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a { font-size: 17px; line-height: 28px; text-decoration: none; }
.nav__links a:hover,
.nav__links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

/* =========================================================
   Case-study sections ("Body" in Figma)
   padding 120 top/bottom · text column 880
   ========================================================= */
.section {
  padding: var(--sec-y) 20px;
  background: var(--white);
}
.section--tint { background: var(--tint); }
.section--title { padding-bottom: 26px; }   /* title-only block: sits on what it introduces */

.text {
  max-width: var(--text-w);
  margin: 0 auto;
  color: var(--ink);
  font-size: 17px;
  line-height: 26px;
}

/* Rhythm inside a text column (Figma uses an empty line = 26px) */
.text > * + * { margin-top: 26px; }
.text > .label + * { margin-top: 10px; }   /* title bar → text */
.text > .sub + * { margin-top: 0; }        /* subtitle sits on its text */
.text > .m0 { margin-top: 0; }             /* next line, no empty line */
.text > .m10 { margin-top: 10px; }         /* new block in Figma */
.text > .m52 { margin-top: 52px; }         /* two empty lines */
.text > .lead,
.text > .quotes { margin-top: 60px; }

/* Coloured title bar, e.g. "THE CHALLENGE" */
.label {
  padding: 5px 0;
  background: var(--accent);
  color: var(--label-ink);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 25px;
  line-height: 26px;
  text-transform: uppercase;
}

/* Subtitles: 20px in the accent colour ("01 · Discover") */
.sub {
  color: var(--accent-text);
  font-size: 20px;
  line-height: 26px;
}
.sub--ink { color: var(--ink); }           /* black 20px subtitles */
.sub--small { font-size: 17px; }           /* 17px accent subtitles */
.big { font-size: 20px; }                  /* 20px body text */
.accent { color: var(--accent-text); }

.text ul { padding-left: 25.5px; }

/* Large text: How might we… / quotes (24/36, +1px) */
.lead,
.quotes {
  color: var(--text);
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 1px;
}
.quotes p + p { margin-top: 36px; }

/* Quote in Kay Pho Du (Buon Vicino) */
.statement {
  color: var(--ink);
  font-family: var(--font-title);
  font-size: 25px;
  line-height: 26px;
}

/* =========================================================
   Image sections ("Video Section" in Figma)
   padding 120 top/bottom · 190 left/right → image 900px
   ========================================================= */
.media {
  padding: var(--sec-y) var(--media-x);
  background: var(--white);
}
.media > img,
.media > a {
  display: block;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.media img { width: 100%; height: auto; }
.media--cover img { aspect-ratio: 1932 / 1086; object-fit: cover; }
.media--narrow > img { width: 62.33%; }

/* Image that links to a video */
.video-link { position: relative; }
.video-link::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  background: rgba(45, 45, 45, 0.75)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M8 5v14l11-7z'/%3E%3C/svg%3E")
    center / 36px no-repeat;
  transition: transform 0.2s ease;
}
.video-link:hover::after { transform: scale(1.08); }

/* =========================================================
   Card rows ("Clients Section" in Figma)
   padding 100 top / 150 bottom · title → cards 55 · gap 67.5
   ========================================================= */
.cards {
  padding: var(--sec-y) 20px;
  background: var(--white);
}
.cards__title {
  margin: 0 0 55px;
  color: var(--black);
  font-size: 25px;
  line-height: 27px;
  text-align: center;
}
.cards__row {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 315px);
  justify-content: space-between;
  gap: 67.5px;
}
.cards__row > img,
.cards__row > figure { width: 315px; height: 414px; }
.cards__row > img { object-fit: cover; }

/* HELD prototyping row: 342 · 315 · 342, 216px tall */
.cards__row--proto {
  grid-template-columns: 342px 315px 342px;
  justify-content: center;
}
.cards__row--proto > img { width: 342px; height: 216px; object-fit: cover; }
.note-card {
  width: 315px;
  height: 216px;
  padding: 30px 50px 30px 30px;
  background: var(--tint);
  color: var(--black);
  font-size: 20px;
  line-height: 26px;
}

/* HELD interactions: video with Input / Output captions */
.clip { position: relative; margin: 0; }
.clip video,
.clip img { width: 100%; height: 100%; object-fit: cover; background: #ddd; }
.clip figcaption {
  position: absolute;
  left: 14px;
  top: 8px;
  color: var(--white);
  font-size: 10px;
  line-height: 19px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Project header (photo 370×324 · gap 70 · text 492)
   ========================================================= */
.project-header { padding: 120px 20px var(--sec-y); }
.project-header__inner {
  max-width: 1008px;
  min-height: 370px;
  margin: 0 auto;
  padding-left: 38px;
  display: flex;
  align-items: center;
  gap: 70px;
}
.project-header__photo {
  flex: 0 0 370px;
  width: 370px;
  height: 324px;
  object-fit: cover;
}
.project-header__text {
  flex: 0 1 492px;
  color: var(--black);
  font-size: 17px;
  line-height: 27px;
}
.project-title {
  margin-bottom: 27px;
  color: var(--accent);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 25px;
  line-height: 27px;
}

/* HELD logo: H + drawn "e" + LD (Averia Sans Libre Light, 67.75px) */
.held-logo {
  display: flex;
  align-items: flex-end;
  margin-bottom: 27px;
  color: var(--accent);
  font-family: "Averia Sans Libre", var(--font-title);
  font-weight: 300;
  font-size: 67.75px;
  line-height: 1;
}
.held-logo__ld { letter-spacing: -6.775px; }
.held-logo__e { width: 55px; height: auto; margin: 0 8px 6px 6px; }

/* =========================================================
   HELD timeline (drawn at 1280 × 194, scales with the page)
   ========================================================= */
.timeline-wrap { background: var(--white); }
.timeline {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 1280 / 194;
  container-type: inline-size;
}
.timeline > * { position: absolute; }
.timeline img { max-width: none; }
.timeline p {
  color: #000;
  font-size: 1.0747cqw;          /* 13.756px at 1280 */
  line-height: 1.3;
  white-space: nowrap;
  background: var(--white);
  padding: 0 0.2cqw;
}
.timeline__mobile { display: none; }

/* HELD needs illustration band */
.needs { background: var(--tint); }
.needs img { width: 100%; max-width: 1280px; margin: 0 auto; }

/* =========================================================
   Work page
   ========================================================= */
.work-header { padding: 100px 20px; }
.work-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 70px;               /* empty 30px line + 40px gap */
}
.work-header h1 {
  margin: 0 0 40px;
  max-width: 557px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 80px;
  line-height: 90px;
}
.work-header__tagline {
  max-width: 557px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 33.6px;
  letter-spacing: -1.6px;
}
.work-header__tagline span { color: #ffb080; }

.work-hero {
  width: 100%;
  height: 631px;
  object-fit: cover;
  object-position: center 62%;
}

.work { padding: 98px 20px 130px; }
.work__title {
  margin: 0 0 60px;
  color: var(--black);
  font-size: 32px;
  line-height: 42px;
  text-align: center;
}
.work__grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 315px);
  justify-content: space-between;
  gap: 60px 67.5px;
}
.work-card {
  display: block;
  color: var(--black);
  font-family: var(--font-epi);
  text-decoration: none;
}
.work-card__img {
  width: 315px;
  height: 315px;
  object-fit: cover;
}
.work-card__name {
  margin-top: 25px;
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
}
.work-card__tag {
  margin-top: 10px;
  font-size: 17px;
  line-height: 27px;
}
a.work-card:hover .work-card__name { text-decoration: underline; text-underline-offset: 5px; }
.work-card__soon {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 10px;
  border: 1px solid #cfcfcf;
  border-radius: 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 18px;
}

.skills {
  margin-top: 0;
  padding: 90px 140px;
  background: var(--peach-band);
}
.skills__grid {
  display: flex;
  justify-content: center;
  gap: 125px;
}
.skills__grid > div { width: 250px; text-align: center; color: var(--black); }
.skills h3 { margin: 0 0 19px; font-size: 27px; line-height: 42px; }
.skills p { font-size: 17px; line-height: 27px; }

/* =========================================================
   About page
   ========================================================= */
.about-header { padding: 120px 20px; }
.about-header__inner {
  max-width: 780px;
  min-height: 370px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 70px;
}
.persona { flex: 0 0 213px; }
.persona__photo { width: 214px; height: 208px; object-fit: cover; object-position: center 20%; }
.persona__name {
  margin-top: 20px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 25px;
  line-height: 30px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.persona__role { font-size: 17px; line-height: 27px; }
.persona__role span { display: block; line-height: 20px; }
.about-header__text { flex: 0 1 492px; font-size: 17px; line-height: 27px; }
.about-header__text p + p { margin-top: 27px; }
.about-header__text p.m0 { margin-top: 0; }

.band {
  padding: 120px 20px;
  background: var(--peach-band);
}
.band__text {
  max-width: var(--text-w);
  margin: 0 auto;
  color: var(--text);
  font-size: 17px;
  line-height: 36px;
  letter-spacing: 1px;
}
.band__text p + p { margin-top: 36px; }

/* =========================================================
   Back to work / next project
   ========================================================= */
.case-nav { padding: var(--sec-y) 20px 80px; }
.case-nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.case-nav a { font-weight: 600; text-decoration: none; }
.case-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* =========================================================
   Footer (border 2px · padding 70 · columns gap 190)
   ========================================================= */
.footer { padding: 0 100px 70px; background: var(--white); }
.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 70px;
  border-top: 2px solid rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 190px;
}
.footer__col { width: 360px; }
.footer__title {
  margin: 0 0 40px;
  color: var(--black);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 25px;
  line-height: 42px;
}
.footer__contact { color: var(--text); font-size: 17px; line-height: 27px; }
.footer__contact p + p { margin-top: 27px; }
.footer__contact a { text-decoration: none; }
.footer__contact a:hover { text-decoration: underline; }
.social {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 87px 0 0;               /* 27 empty line + 60 gap */
  padding: 0;
  list-style: none;
}
.social img { display: block; }
.cv { padding-top: 89px; }        /* 69px empty field + 20px gap */
.cv__label { color: var(--text); font-size: 17px; line-height: 27px; }
.button {
  display: inline-block;
  margin-top: 40px;
  padding: 25px 82px;
  background: var(--black);
  color: var(--white);
  font-size: 20px;
  line-height: 30px;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
}
.button:hover { background: #000; }

/* =========================================================
   Smaller screens
   ========================================================= */
@media (max-width: 1080px) {
  :root { --media-x: 60px; }
  .cards__row,
  .work__grid { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
  .cards__row > img,
  .cards__row > figure,
  .work-card__img { width: 100%; }
  .cards__row > img,
  .cards__row > figure { height: auto; aspect-ratio: 315 / 414; }
  .work-card__img { height: auto; aspect-ratio: 1; }
  .cards__row--proto { grid-template-columns: 1fr 1fr 1fr; }
  .cards__row--proto > img { width: 100%; height: auto; aspect-ratio: 342 / 216; }
  .note-card { width: 100%; height: auto; padding: 24px; font-size: 17px; }
  .footer__inner { gap: 80px; }
  .skills { padding: 90px 40px; }
  .skills__grid { gap: 48px; }
}

@media (max-width: 900px) {
  :root { --sec-y: 40px; --media-x: 20px; }
  .project-header, .about-header, .band { padding-top: 80px; padding-bottom: 80px; }
  .project-header { padding-bottom: var(--sec-y); }
  .nav__inner { padding: 0 20px; }
  .nav__links { gap: 28px; }
  .project-header__inner { flex-direction: column; align-items: flex-start; padding-left: 0; gap: 40px; min-height: 0; }
  .project-header__photo { flex: none; width: 100%; max-width: 370px; height: auto; aspect-ratio: 370 / 324; }
  .project-header__text { flex: none; }
  .about-header__inner { flex-direction: column; align-items: flex-start; gap: 40px; min-height: 0; }
  .persona { flex: none; }
  .about-header__text { flex: none; }
  .work-header { padding: 64px 20px; }
  .work-header__inner { padding-top: 0; }
  .work-hero { height: auto; aspect-ratio: 4 / 3; }
  .work { padding-top: 64px; }
  .footer { padding: 0 20px 56px; }
  .footer__inner { flex-direction: column; gap: 0; }
  .footer__col { width: auto; }
  .social { margin-top: 32px; }
  .cv { padding-top: 40px; }
  .button { margin-top: 20px; }
  .timeline { display: none; }
  .timeline__mobile { display: block; padding: 0 20px; }
  .timeline__mobile ol {
    max-width: var(--text-w);
    margin: 0 auto;
    padding-left: 22px;
    color: var(--ink);
    font-size: 17px;
    line-height: 26px;
  }
  .timeline__mobile small { color: var(--text); font-size: 14px; }
}

@media (max-width: 640px) {
  :root { --sec-y: 28px; }
  .project-header, .about-header, .band { padding-top: 56px; padding-bottom: 56px; }
  .project-header { padding-bottom: var(--sec-y); }
  .nav { height: auto; }
  .nav__inner { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 14px; padding-bottom: 14px; }
  .nav__logo { font-size: 18px; }
  .nav__links { gap: 24px; }
  .label { font-size: 21px; }
  .lead, .quotes { font-size: 19px; line-height: 29px; letter-spacing: 0.5px; }
  .statement { font-size: 21px; line-height: 28px; }
  .cards__row,
  .work__grid { grid-template-columns: 1fr; }
  .cards__row--proto { grid-template-columns: 1fr; }
  .cards__row > img,
  .cards__row > figure { max-width: 315px; justify-self: center; }
  .work-header h1 { font-size: 56px; line-height: 64px; margin-bottom: 24px; }
  .work-header__tagline { font-size: 26px; line-height: 30px; letter-spacing: -1px; }
  .work__title { font-size: 26px; line-height: 34px; margin-bottom: 32px; }
  .skills { padding: 64px 20px; }
  .skills__grid { flex-direction: column; align-items: center; gap: 40px; }
  .skills__grid > div { width: auto; max-width: 320px; }
  .media--narrow > img { width: 100%; }
  .button { padding: 18px 48px; }
}

/* A title-only block sits right on top of its image */
.section--title + .media { padding-top: 0; }

/* ---- Figma update (Oct 10) ---- */
/* Grey dot before the name in the menu (25px, #494949) */
.nav__inner { padding-left: 16px; }
.nav__logo { display: inline-flex; align-items: center; gap: 9px; }
.nav__logo::before {
  content: "";
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--text);
}

/* Footer: contact column starts 74px in, title in the body font */
.footer__inner { gap: 116px; }
.footer__col:first-child { margin-left: 74px; }
.footer__title { font-family: var(--font-body); font-weight: 400; }

@media (max-width: 1080px) {
  .footer__inner { gap: 60px; }
  .footer__col:first-child { margin-left: 0; }
}
@media (max-width: 900px) {
  .nav__inner { padding-left: 20px; }
}
@media (max-width: 640px) {
  .nav__logo::before { flex-basis: 18px; width: 18px; height: 18px; }
}

/* ---- About page (Figma, Oct 10) ---- */
.about-hero { padding: 34px 20px 88px; }
.about-hero__grid {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 74px;                         /* photo at x=174 on a 1280 page */
  display: grid;
  grid-template-columns: 436px 467px;
  column-gap: 8px;
  row-gap: 97px;
}
.about-hero__photo { width: 358px; height: 448px; object-fit: cover; }
.about-hero__intro {
  margin: 124px 0 0 22px;
  color: var(--text);
  font-family: var(--font-title);
  font-weight: 400;
}
.about-hero__hi { display: block; font-size: 35px; line-height: 55px; letter-spacing: -1.75px; margin-bottom: 15px; }
.about-hero__role { display: block; max-width: 445px; font-size: 60px; line-height: 55px; letter-spacing: -3px; }
.about-hero__role b { font-weight: 600; }
.about-hero__role i {
  white-space: nowrap;
  font-style: normal;
  font-family: var(--font-logo);
  font-size: 40px;
  line-height: 46.25px;
  letter-spacing: -0.5px;
  word-spacing: 4px;
}
.about-hero__tagline {
  margin-top: 64px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 40px;
  line-height: 42px;
  letter-spacing: -2px;
}
.about-hero__tagline span { color: #ff9759; }
.about-hero__text { color: var(--text); font-size: 17px; line-height: 25px; letter-spacing: -0.34px; }
.about-hero__text p + p { margin-top: 25px; }
.about-hero__text p.m0 { margin-top: 0; }
.band__text--big { font-size: 20px; }

@media (max-width: 1080px) {
  .about-hero__grid { padding-left: 0; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 64px; }
  .about-hero__photo { width: 100%; max-width: 358px; height: auto; aspect-ratio: 358 / 448; }
  .about-hero__intro { margin: 80px 0 0; }
}
@media (max-width: 760px) {
  .about-hero { padding: 32px 20px 56px; }
  .about-hero__grid { grid-template-columns: 1fr; row-gap: 32px; }
  .about-hero__intro { margin: 0; }
  .about-hero__hi { font-size: 28px; line-height: 40px; margin-bottom: 4px; }
  .about-hero__role { font-size: 44px; line-height: 44px; letter-spacing: -2px; }
  .about-hero__role i {
  white-space: nowrap; font-size: 30px; line-height: 38px; letter-spacing: -1px; }
  .about-hero__tagline { margin-top: 0; font-size: 30px; line-height: 34px; letter-spacing: -1px; }
  .band__text--big { font-size: 17px; }
}

/* Work page: one row of three projects */
.work { padding-bottom: 46px; }

/* Work hero: tighter crop on the facilitation photo (Figma, Oct 10) */
.work-hero { height: auto; aspect-ratio: 1326 / 414; object-position: center; }
@media (max-width: 900px) { .work-hero { aspect-ratio: 16 / 7; } }

/* Cubit: "From scrolling to playing" composition */
.duo {
  background: var(--tint);
  padding: var(--sec-y) 16px;
  color: #5f5f5f;
  text-align: center;
  text-transform: uppercase;
}
.duo__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 35px;
  line-height: 1;
  letter-spacing: -1.05px;
  margin: 0 0 50px;
}
.duo__grid {
  display: grid;
  grid-template-columns: 365px 1fr 365px;
  align-items: center;
  max-width: 1050px;
  margin: 0 auto;
}
.duo__item { margin: 0; display: flex; flex-direction: column; align-items: center; }
.duo__name {
  font-family: var(--font-title);
  font-size: 35px;
  line-height: 1;
  letter-spacing: -1.05px;
  margin: 0;
}
.duo__role,
.duo__item figcaption {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.75px;
  margin: 14px 0 0;
}
.duo__item img { display: block; margin-top: 18px; width: 365px; height: 339px; object-fit: cover; }
.duo__item img.duo__logo { width: 207px; height: 206px; margin: 84px 0 49px; }
.duo__item figcaption { margin-top: 10px; max-width: 460px; }
.duo__plus { font-size: 120px; line-height: 1; margin: 0; font-weight: 500; }
@media (max-width: 900px) {
  .duo__title { font-size: 26px; margin-bottom: 30px; }
  .duo__grid { grid-template-columns: 1fr; gap: 24px; }
  .duo__name { font-size: 28px; }
  .duo__role, .duo__item figcaption { font-size: 19px; }
  .duo__item img { width: min(365px, 100%); height: auto; aspect-ratio: 365 / 339; }
  .duo__item img.duo__logo { width: 160px; height: 160px; margin: 18px 0 0; }
  .duo__plus { font-size: 72px; }
}

/* Video in a media section (falls back to the poster image if the file is missing) */
.media > video { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; background: #eee; }

/* HELD timeline: dotted base line (an SVG this thin disappeared when scaled) */
.timeline .timeline__line { height: 0; border-top: 1px dotted #000; z-index: 0; }
.timeline p { z-index: 1; }
.timeline img { z-index: 1; }

/* Vimeo player shown in place of the thumbnail */
.vimeo-embed { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; background: #000; }
.vimeo-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   Work page – project tabs (Figma "Frame 4")
   ========================================================= */
.projects { padding: 61px 20px 79px; }
.projects__inner { max-width: 1254px; margin: 0 auto; }
.ptabs {
  display: flex;
  padding-left: 77px;                       /* tabs start 77px in from the panel edge */
}
.ptab {
  flex: 0 0 200px;
  height: 53px;
  border: 0;
  border-radius: 20px 20px 0 0;
  background: var(--c);
  color: #fff;
  font-family: var(--font-body);
  font-size: 20px;
  cursor: pointer;
  transform-origin: bottom center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .25s ease, box-shadow .25s ease;
}
.ptab:hover { transform: translateY(-6px); filter: brightness(1.05); }
.ptab[aria-selected="true"] { transform: translateY(0) scaleY(1.08); box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.ptab:focus-visible { outline: 3px solid #2d2d2d; outline-offset: 3px; }

.ppanel {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 58px 62px;
  border-radius: 20px;
  background: var(--c);
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 85px;
}
.ppanel[hidden] { display: none; }
.ppanel__deco {
  position: absolute;
  pointer-events: none;
  transform: translateY(var(--py, 0));
  transition: transform .2s linear;
}
.ppanel__deco--fill { left: 42.9%; top: -15.6%; width: 60.45%; }
.ppanel__deco--held { left: 68.18%; top: -13.72%; width: 34.53%; }
.ppanel__img {
  position: relative;
  flex: 0 0 315px;
  height: 315px;
  border-radius: 20px;
  overflow: hidden;
}
.ppanel__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.ppanel:hover .ppanel__img img { transform: scale(1.06); }
.ppanel__body { position: relative; max-width: 420px; padding-top: 18px; font-family: var(--font-epi); }
.ppanel__title { margin: 0; font-weight: 600; font-size: 20px; line-height: 30px; }
.ppanel__desc { margin-top: 10px; max-width: 385px; font-size: 17px; line-height: 27px; }
.ppanel__tags {
  display: flex; flex-wrap: wrap; gap: 15px;
  margin: 32px 0 0; padding: 0; list-style: none;
}
.ppanel__tags li {
  min-width: 130px;
  padding: 2px 16px;
  border: 2px solid #fff;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 26px;
  text-align: center;
  transition: background .25s ease, color .25s ease;
}
.ppanel__tags li:hover { background: #fff; color: var(--c); }

.pill-btn {
  display: inline-flex; align-items: center; gap: 0;
  margin-top: 32px;
  padding: 2px 14px;
  border: 2px solid #494949;
  border-radius: 20px;
  background: #fff;
  color: #494949;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 26px;
  text-decoration: none;
  transition: background .3s ease, color .3s ease, transform .3s ease, gap .3s ease;
}
.pill-btn span { display: inline-block; width: 0; overflow: hidden; opacity: 0; transition: width .3s ease, opacity .3s ease; }
.pill-btn:hover, .pill-btn:focus-visible { background: #2d2d2d; border-color: #2d2d2d; color: #fff; gap: 8px; transform: translateY(-2px); }
.pill-btn:hover span, .pill-btn:focus-visible span { width: 1em; opacity: 1; }

/* panel entrance when a tab is chosen */
.ppanel.is-entering .ppanel__img { animation: pop-in .6s cubic-bezier(.2,.8,.2,1) both; }
.ppanel.is-entering .ppanel__body > * { animation: rise-in .55s cubic-bezier(.2,.8,.2,1) both; }
.ppanel.is-entering .ppanel__body > :nth-child(2) { animation-delay: .06s; }
.ppanel.is-entering .ppanel__body > :nth-child(3) { animation-delay: .12s; }
.ppanel.is-entering .ppanel__body > :nth-child(4) { animation-delay: .18s; }
.ppanel.is-entering .ppanel__deco { animation: deco-in .9s ease both; }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes deco-in { from { opacity: 0; } to { opacity: 1; } }

/* =========================================================
   Motion: scroll reveals, title split, hover details
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease var(--d, 0ms), transform .8s cubic-bezier(.2,.8,.2,1) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.split-in .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.js .split-in .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.js .split-in.is-in .w > span { transform: none; }

/* animated underline for the navigation */
.nav__links a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat; transition: background-size .35s ease; }
.nav__links a:hover,
.nav__links a[aria-current="page"] { text-decoration: none; background-size: 100% 1.5px; }

.button { transition: background .25s ease, transform .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.social a { display: inline-block; transition: transform .25s ease; }
.social a:hover { transform: translateY(-3px) scale(1.08); }
.skills__grid > div { transition: transform .35s ease; }
.skills__grid > div:hover { transform: translateY(-4px); }

.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }

@media (max-width: 1080px) {
  .ptabs { padding-left: 24px; }
  .ptab { flex-basis: 170px; font-size: 18px; }
  .ppanel { gap: 48px; padding: 48px 40px; }
}
@media (max-width: 900px) {
  .ptabs { padding-left: 0; overflow-x: auto; scrollbar-width: none; }
  .ptabs::-webkit-scrollbar { display: none; }
  .ptab { flex: 0 0 150px; height: 48px; font-size: 16px; }
  .ppanel { flex-direction: column; align-items: stretch; gap: 28px; min-height: 0; padding: 32px 24px 36px; border-radius: 0 20px 20px 20px; }
  .ppanel__img { flex: none; width: 100%; max-width: 360px; height: auto; aspect-ratio: 1; }
  .ppanel__body { padding-top: 0; }
  .ppanel__tags li { min-width: 0; }
}
/* tag + text widths from Figma */
.ppanel__body { max-width: 480px; }
#panel-fill .ppanel__desc { max-width: 315px; }
.ppanel__tags li { padding: 2px 10px; }
.ppanel__body { max-width: 520px; }
@media (max-width: 900px) { .ptab { flex-basis: 124px; font-size: 15px; } }
/* project panel typography: titles in Kay Pho Du, secondary text in Kdam Thmor Pro */
.ppanel__title { font-family: var(--font-epi); font-weight: 600; font-size: 20px; line-height: 30px; }
.ppanel__desc { font-family: var(--font-body); font-size: 17px; line-height: 27px; }
/* tab labels are project titles → Kay Pho Du */
.ptab { font-family: var(--font-title); font-weight: 600; font-size: 21px; }
@media (max-width: 900px) { .ptab { font-size: 16px; } }
/* footer per Figma: Kdam Thmor Pro text, rounded Download button */
.button { border-radius: 20px; }

/* Figma: tab labels Kay Pho Du SemiBold 20; skills titles Kay Pho Du Regular 27 */
.ptab { font-family: var(--font-title); font-weight: 600; font-size: 20px; }
.skills h3 { font-family: var(--font-title); font-weight: 400; color: #494949; }
.skills p { color: #494949; }

/* =========================================================
   Work page – Writings carousel (Figma "Writings")
   ========================================================= */
.writings { padding: 55px 20px 43px; background: var(--peach-band); }
.writings__title {
  margin: 0;
  color: #000;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 27px;
  line-height: 27px;
  text-align: center;
}
.writings__carousel {
  max-width: 1217px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 47px minmax(0, 1123px) 47px;
  align-items: center;
  justify-content: center;
}
.writings__track {
  display: flex;
  gap: 41px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 0;                 /* room for the hover lift */
}
.writings__track::-webkit-scrollbar { display: none; }
.writings__track:focus-visible { outline: 2px solid #494949; outline-offset: 4px; border-radius: 22px; }
.wcard {
  position: relative;
  flex: 0 0 347px;
  height: 208px;
  padding: 63px 22px 20px;
  border: 2px solid #494949;
  border-radius: 20px;
  background: #ffb080;
  color: #000;
  text-decoration: none;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, background .3s ease;
}
.wcard__title { display: block; max-width: 304px; font-family: var(--font-title); font-size: 20px; line-height: 27px; }
.wcard__cta {
  font-family: var(--font-body); font-size: 14px; line-height: 20px; color: #494949;
  transition: letter-spacing .3s ease;
}
.wcard__cta span { display: inline-block; transition: transform .3s ease; }
a.wcard:hover, a.wcard:focus-visible { transform: translateY(-6px); box-shadow: 0 10px 22px rgba(73,73,73,.18); background: #ffa36b; }
a.wcard:hover .wcard__cta span, a.wcard:focus-visible .wcard__cta span { transform: translateX(5px); }
a.wcard:focus-visible { outline: 3px solid #2d2d2d; outline-offset: 3px; }
.wcard--soon { cursor: default; }
.wcard--soon .wcard__cta { font-style: italic; }

.writings__arrow {
  width: 47px; height: 47px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  transition: background .25s ease, opacity .25s ease, transform .25s ease;
}
.writings__arrow img { display: block; }
.writings__arrow--next img { transform: rotate(180deg); }
.writings__arrow:hover:not(:disabled) { background: rgba(255,176,128,.45); transform: scale(1.06); }
.writings__arrow:disabled { opacity: .25; cursor: default; }
.writings__arrow:focus-visible { outline: 2px solid #494949; outline-offset: 2px; }

.writings__dots { display: flex; justify-content: center; gap: 14px; margin-top: 17px; }
.writings__dots i { width: 10px; height: 10px; border-radius: 50%; background: #868282; transition: background .3s ease, transform .3s ease; }
.writings__dots i.is-active { background: #494949; transform: scale(1.15); }

@media (max-width: 900px) {
  .writings { padding: 48px 0 36px; }
  .writings__carousel { grid-template-columns: 1fr; padding: 0 20px; }
  .writings__arrow { display: none; }
  .wcard { flex-basis: min(82vw, 347px); }
}

/* =========================================================
   Writing article pages
   ========================================================= */
.article-header { padding: 120px 20px 40px; }
.article-header__inner { max-width: 720px; margin: 0 auto; }
.article-kicker { color: #ff9759; font-family: var(--font-body); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.article-header h1 {
  margin: 14px 0 18px;
  color: var(--black);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 44px;
  line-height: 52px;
}
.article-header__sub { color: var(--text); font-family: var(--font-title); font-size: 22px; line-height: 30px; }
.article { padding: 20px 20px 100px; }
.article__body { max-width: 720px; margin: 0 auto; color: var(--ink); font-size: 17px; line-height: 29px; }
.article__body p + p { margin-top: 20px; }
.article__body h2 {
  margin: 44px 0 14px;
  color: var(--black);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
}
.article__body blockquote {
  margin: 32px 0; padding: 4px 0 4px 22px;
  border-left: 4px solid #ffb080;
  font-family: var(--font-title); font-size: 22px; line-height: 31px; color: var(--black);
}
@media (max-width: 640px) {
  .article-header { padding-top: 72px; }
  .article-header h1 { font-size: 32px; line-height: 40px; }
}

/* =========================================================
   Updates: section spacing, About CTA, post layout (Figma)
   ========================================================= */
/* 110px between the white project section and the peach Skills / Writings bands */
.projects { padding: 110px 20px 110px; }

/* About page: "Discover more about my work" button below the band */
.band-cta { padding: 0 20px 82px; background: var(--peach-band); text-align: center; }
.band-cta .pill-btn { margin-top: 0; }

/* Writing post: white card on the peach band, title on an orange bar */
.post { padding: 103px 20px; background: var(--peach-band); }
.post__card {
  max-width: 1122px;
  margin: 0 auto;
  padding: 54px 51px 58px;
  border: 2px solid #494949;
  border-radius: 20px;
  background: #fff;
}
.post__title {
  margin: 0;
  padding: 4px 8px 5px;
  background: #ffb080;
  color: #000;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 20px;
  line-height: 27px;
}
.post__sub { margin-top: 7px; color: #000; font-size: 17px; line-height: 23px; }
.post__body { margin-top: 42px; color: #000; font-size: 17px; line-height: 23px; }
.post__body h2 {
  margin: 23px 0 0;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 17px;
  line-height: 23px;
}
.post__back { margin-top: 50px; }
.post__back span { width: auto; opacity: 1; display: inline-block; transition: transform .3s ease; }
.post__back:hover span { transform: translateX(-4px); }
@media (max-width: 640px) {
  .post { padding: 48px 12px; }
  .post__card { padding: 32px 20px 36px; }
}

/* Figma update: Skills and Writings bands are 410px tall; smaller rounded Download button */
.skills { min-height: 410px; display: flex; align-items: center; justify-content: center; padding-top: 0; padding-bottom: 0; }
.writings { padding-bottom: 53px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 203px; height: 57px; margin-top: 33px; padding: 0;
  border-radius: 30px;
}
@media (max-width: 640px) {
  .skills { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
}

/* Anchors (#writings, #work, #contact) land below the sticky 80px navigation */
html { scroll-padding-top: 80px; }
@media (max-width: 900px) { html { scroll-padding-top: 90px; } }
