/* Design width: 1440px — fluid below that */

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-accent: #ba242a;
  --hero-max: 1440px;
  --hero-min-h: 925px;
  --font-inter: "Inter", system-ui, sans-serif;
  --font-accent: "Satisfy", "Caveat", cursive;
  --nav-offset-y: 10px;
  --nav-bar-pad-y: 0px;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  /* Anchor jumps land below fixed nav */
  scroll-padding-top: 68px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

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

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-inter);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.85;
}

/* ——— Homepage doodle (marker pens peek from left + hero-only scribble) ——— */
.doodle-toolbar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translate(-22px, -50%) scale(0.94);
  opacity: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 0 max(0px, env(safe-area-inset-left));
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.38s ease, transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0.4s;
}

.doodle-toolbar.doodle-toolbar--hero-visible {
  transform: translate(0, -50%) scale(1);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.38s ease, transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0s linear 0s;
}

.doodle-toolbar.doodle-toolbar--hero-visible .doodle-pens,
.doodle-toolbar.doodle-toolbar--hero-visible .doodle-download {
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .doodle-toolbar {
    transition-duration: 0.01ms;
  }
}

.doodle-pens {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* Half of each marker sits off-screen to the left; cap/tip peek in */
.doodle-pen {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 0;
  transition: filter 0.2s ease;
}

.doodle-pen__clip {
  display: block;
  width: 100px;
  overflow: hidden;
  border-radius: 0 8px 8px 0;
}

.doodle-pen__clip img {
  width: 200px;
  height: auto;
  display: block;
  margin-left: -100px;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
  filter: drop-shadow(2px 3px 6px rgba(0, 0, 0, 0.2));
}

.doodle-pen:hover .doodle-pen__clip img {
  transform: translateX(14px) scale(1.04);
  filter: drop-shadow(4px 8px 14px rgba(0, 0, 0, 0.28));
}

.doodle-pen--selected .doodle-pen__clip {
  box-shadow: inset 0 0 0 2px #000;
}

.doodle-pen--selected .doodle-pen__clip img {
  transform: translateX(10px);
}

.doodle-download {
  margin-top: 4px;
  margin-left: 4px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.doodle-download:hover {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.hero .doodle-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 900;
}

body.doodle-active {
  cursor: crosshair;
}

@media (max-width: 520px) {
  .doodle-pen__clip {
    width: 72px;
  }

  .doodle-pen__clip img {
    width: 160px;
    margin-left: -80px;
  }

  .doodle-pen:hover .doodle-pen__clip img {
    transform: translateX(10px) scale(1.03);
  }

  .doodle-download {
    font-size: 10px;
    padding: 6px 10px;
  }
}

/* ——— HERO ——— */

.hero {
  position: relative;
  width: 100%;
  min-height: var(--hero-min-h);
  overflow: hidden;
}


/* Grid background — Figma: 1512×926, centered */
.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/hero/grid-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}

/* Welcome graphic — fixed so .hero overflow does not clip; above hero layers, below nav (1000) */
.hero-welcome {
  position: fixed;
  top: clamp(72px, 10vh, 112px);
  right: clamp(12px, 3vw, 40px);
  z-index: 950;
  width: min(433px, calc(100vw - 24px));
  pointer-events: none;
  transform-origin: top right;
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 20px;
  padding: 14px 16px 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.hero-welcome__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-welcome--animate {
  visibility: visible;
  animation: heroWelcomeFly 5.4s cubic-bezier(0.2, 0.85, 0.35, 1) forwards;
}

.hero-welcome--done {
  display: none;
}

/* Hidden when user has scrolled past the hero (fixed element would otherwise float over other sections) */
.hero-welcome--off-hero {
  display: none !important;
  visibility: hidden !important;
  animation: none !important;
}

@keyframes heroWelcomeFly {
  0% {
    opacity: 0;
    transform: translate(32px, 88vh) scale(0.96);
  }
  14% {
    opacity: 1;
  }
  24% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  76% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(0, -20px) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-welcome {
    display: none !important;
  }
}

/* Mobile welcome — no scale in motion (avoids blurry SVG on iOS); centered like design canvas */
@media (max-width: 480px) {
  /* Card uses embedded 512px PNG — keep width modest so Retina doesn’t upscale past native pixels */
  .hero-welcome {
    right: auto;
    left: 50%;
    top: clamp(96px, 12vh, 120px);
    width: min(210px, 78vw);
    padding: 8px 10px 10px;
    transform: translateX(-50%);
    transform-origin: top center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .hero-welcome--animate {
    animation-name: heroWelcomeFlyMobile;
  }
}

@keyframes heroWelcomeFlyMobile {
  0% {
    opacity: 0;
    transform: translate3d(-50%, 88vh, 0);
  }
  14% {
    opacity: 1;
  }
  24% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
  76% {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(-50%, -12px, 0);
  }
}

.nav-bar {
  position: fixed;
  z-index: 1000;
  top: var(--nav-offset-y);
  left: 50%;
  transform: translateX(-50%);
  width: min(1269px, calc(100% - 48px));
  margin: 0 auto;
  border: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  height: 50px;
  padding: 0 51px;
  background: var(--color-black);
  border-radius: 100px;
}

.nav-bar__name {
  font-weight: 800;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-white);
}

.nav-bar__links {
  display: flex;
  align-items: center;
  gap: 40px;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-white);
}

/* Content layer above grid */
.hero__inner {
  position: relative;
  z-index: 2;
  min-height: var(--hero-min-h);
  width: 100%;
}

/* Wraps headline + stickers so mobile can stack them as one centered composition */
.hero__composition {
  position: relative;
  width: 100%;
  min-height: var(--hero-min-h);
}

/* Desktop: full-bleed slot for absolutely positioned .stickers */
.hero__stickers-scale {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

/* Title block — Figma: 577×380 @ 416,272 (nudged for optical center with stickers) */
.hero__title-block {
  position: absolute;
  width: min(577px, 90vw);
  height: 380px;
  left: 428px;
  top: 272px;
  transform: none;
  z-index: 1;
}

.hero__accent {
  position: absolute;
  margin: 0;
}

img.hero__accent {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  pointer-events: none;
}

.hero__accent--illustrator {
  left: 276px;
  top: -70px;
  width: 129px;
  max-width: min(129px, 34vw);
}

.hero__accent--year {
  left: 105%;
  top: 108%;
  width: 68px;
  max-width: min(68px, 22vw);
}

.hero__headline {
  margin: 0;
  position: relative;
  width: 100%;
  height: 380px;
}

.hero__line {
  position: absolute;
  display: block;
  font-weight: 800;
  font-size: clamp(80px, 14vw, 200px);
  line-height: 0.95;
  text-align: left;
  color: var(--color-black);
  width: 100%;
  left: 0;
}

.hero__line--top {
  top: 0;
  padding-left: 24.5px;
  width: calc(100% - 24.5px);
  max-width: 528px;
  text-align: left;
}

.hero__line--bottom {
  top: 190px;
  left: -13.5px;
  max-width: 604px;
  width: calc(100% + 13.5px);
  text-align: left;
}

/* Make the O character invisible so the GIF sticker shows through */
.hero__o {
  color: transparent;
}

/* Stickers — Figma: 957×521, centered in hero (slight nudge with headline block) */
.stickers {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% + 18px), calc(-50% + 6px));
  width: min(957px, 96vw);
  height: min(521px, 54vw);
  max-height: 521px;
  z-index: 3;
  pointer-events: none; /* container transparent, items interactive via their own rule */
}

.stickers__item {
  position: absolute;
  display: block;
  object-fit: contain;
  pointer-events: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.stickers__item.dragging {
  cursor: grabbing;
  z-index: 100;
  transition: none !important;
}

.stickers__flower {
  left: -12px;
  top: 10px;
  width: 200px;
  height: auto;
  transform: matrix(0.88, 0.47, -0.29, 0.96, 0, 0);
}

.stickers__profile {
  left: 249px;
  top: 20px;
  width: 250px;
  height: 250px;
  transform: rotate(-11.79deg);
  border-radius: 4px;
}

.stickers__name-tag {
  left: 266px;
  top: 201px;
  width: 81px;
  height: 84px;
}

.stickers__cup {
  left: 188px;
  top: 335px;
  width: 177px;
  height: 186px;
}

.stickers__arrow {
  left: 381px;
  top: 19px;
  width: 55px;
  height: 55px;
}

.stickers__pd-tag {
  left: 728px;
  top: 139px;
  width: 229px;
  height: 75px;
}

.stickers__file {
  left: 783px;
  top: 291px;
  width: 120px;
  height: 137px;
}

/* Hero folder — static; link to #work (no pop-out hover) */
.hero-folder {
  position: absolute;
  pointer-events: auto;
  z-index: 4;
}

.hero-folder__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.hero-folder__link:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.hero-folder__link img {
  display: block;
  width: 100%;
  height: auto;
}

/* ——— ABOUT ME — Figma: 1505×1097, journal + 1072×624 content ——— */

.about {
  position: relative;
  width: 100%;
  background-color: var(--color-white);
  scroll-margin-top: 24px;
}

/* Grid continues from hero into the about section — sits behind the torn-paper SVG */
.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 480px;
  background-image: url("../images/hero/grid-bg.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: cover;
  pointer-events: none;
  z-index: 0;
}

.about__shell {
  position: relative;
  width: 100%;
  min-height: 1097px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Journal background — full-width edge to edge */
.about__journal-wrap {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  pointer-events: none;
}

.about__journal-bg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
}

/* About Me content — centered; Figma: 1072×624 */
.about__content-wrap {
  position: relative;
  z-index: 1;
  width: min(1072px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 24px;
  transform: translateX(0.5px);
}

.about__content {
  display: block;
  width: 102%;
  height: auto;
}

/* ——— HALF NOODLES HALF DESIGN ——— */

.noodles {
  width: 100%;
  background: var(--color-white);
  padding: 64px 0 72px;
}

.noodles__inner {
  max-width: none;
  margin: 0;
  padding: 0 clamp(24px, 6vw, 86px);
}

.noodles__title-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(24px, 4vw, 50px);
  margin-bottom: 66px;
  margin-right: 0;
  margin-left: clamp(14px, 2vw, 30px);
  justify-content: flex-start !important;
  text-align: left !important;
  width: max-content;
  max-width: 100%;
}

.noodles__tag {
  width: 135px;
  height: auto;
  flex-shrink: 0;
}

.noodles__titles {
  display: flex;
  flex-direction: column;
  align-items: flex-start !important;
  text-align: left !important;
  width: max-content;
  margin-right: auto;
}

.noodles__line {
  margin: 0;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.1;
  text-align: left !important;
  width: max-content;
  margin-right: auto;
}

.noodles__line--dark {
  color: var(--color-black);
}

.noodles__line--accent {
  color: var(--color-accent);
}

.noodles__video-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  box-sizing: border-box;
}

/* Home: full-bleed video on large screens without forcing 100vw (avoids horizontal scroll) */
@media (min-width: 901px) {
  .noodles__video-wrap--home {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
  }
}

.noodles__video {
  width: min(964px, 100%);
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--color-black);
  border: 1px solid var(--color-black);
  border-radius: 20px;
  box-sizing: border-box;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.noodles__rule {
  border: none;
  border-top: 1px solid var(--color-black);
  max-width: 1270px;
  width: calc(100% - 48px);
  margin: clamp(48px, 8vw, 80px) auto 0;
}

/* ——— SELECTED WORK ——— */

.work {
  width: 100%;
  background: var(--color-white);
  padding: 0 24px 80px;
}

.work__inner {
  max-width: 1270px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  box-sizing: border-box;
}

.work__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  width: 100%;
  max-width: 1270px;
  min-height: 154px;
}

.work__title-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  flex: 0 1 462px;
  max-width: 462px;
}

.work__file-icon {
  width: 135px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.work__h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-weight: 700;
  font-size: clamp(32px, 6vw, 64px);
  line-height: 1.2;
}

.work__h2-line {
  display: block;
}

.work__h2-line--dark {
  color: var(--color-black);
}

.work__h2-line--accent {
  color: var(--color-accent);
}

.work__tagline {
  margin: 0;
  flex: 0 1 397px;
  max-width: 397px;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: var(--color-black);
}

.work__grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  max-width: 1050px;
}

.work__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 50px;
  width: 100%;
}

.work__thumb {
  display: block;
  flex: 1 1 240px;
  max-width: 500px;
  min-width: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.28s ease,
              filter 0.28s ease;
  border-radius: 15px;
  will-change: transform;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.work__thumb:hover {
  transform: scale(1.05) translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
  z-index: 2;
}

.work__thumb:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.work__thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* ——— Other projects (case study pages: Memo, Stitches, SiyArts) ——— */

.case-other-projects {
  width: 100%;
  padding: 56px 0 96px;
  background: #fff;
}

.case-other-projects__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
  padding: 0 24px;
  box-sizing: border-box;
}

.case-other-projects__title {
  color: #000;
}

.case-other-projects__lead {
  margin-top: -30px;
  max-width: 764px;
}

.case-other-projects__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
  justify-content: center;
}

.case-other-projects .work__thumb {
  flex: 1 1 260px;
  max-width: min(560px, 42vw);
  min-width: 0;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.28));
}

/* Two thumbnails side by side from tablet up — mid size, full-bleed row */
@media (min-width: 640px) {
  .case-other-projects__row {
    flex-wrap: nowrap;
    gap: clamp(24px, 3.5vw, 48px);
    justify-content: center;
  }

  .case-other-projects .work__thumb {
    flex: 1 1 0;
    max-width: min(560px, 40vw);
    min-width: 220px;
  }
}

.case-other-projects .work__thumb:hover {
  transform: scale(1.06) translateY(-8px);
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.22));
  z-index: 2;
}

.work__rule {
  border: none;
  border-top: 1px solid var(--color-black);
  width: 100%;
  max-width: 1270px;
  margin: 0;
}

/* Custom cursors — FINAL ROUND CHANGES/Cursor (index: .hero + #work only) */
.hero {
  cursor: url("../images/cursor/you-cursor.svg") 0 0, auto;
}

.hero a,
.hero button,
.hero [role="button"] {
  cursor: inherit;
}

.work {
  cursor: url("../images/cursor/view-cursor.svg") 0 0, auto;
}

.work a,
.work button,
.work [role="button"] {
  cursor: inherit;
}

@media (min-width: 901px) {
  .work__h2 {
    font-size: 64px;
    line-height: 77px;
  }
}

/* ——— ARTWORK CORKBOARD ——— */

.corkboard {
  width: 100%;
  background: var(--color-white);
  padding: 20px 24px 100px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.corkboard__scene {
  position: relative;
  width: min(1312px, 100%);
  aspect-ratio: 1312 / 701;
  margin-left: auto;
  margin-right: auto;
}

.cork {
  position: absolute;
  display: block;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

button.cork--art {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.cork__img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  border-radius: 2px;
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  shape-rendering: geometricPrecision;
}

.cork--board {
  z-index: 0;
  left: 3.28%;
  top: 3.71%;
  width: 96.72%;
  filter: none;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.cork--lady {
  z-index: 1;
  left: 10.74%;
  top: 7.56%;
  width: 26.52%;
}

.cork--buddha {
  z-index: 1;
  left: 77.06%;
  top: 5.71%;
  width: 19.89%;
}

.cork--pancake {
  z-index: 1;
  left: 4.04%;
  top: 45.93%;
  width: 16.69%;
}

.cork--boy {
  z-index: 1;
  left: 25.99%;
  top: 45.93%;
  width: 17.15%;
}

.cork--bird {
  z-index: 1;
  left: 54.27%;
  top: 29.96%;
  width: 20.43%;
  transform: rotate(12.57deg);
}

.cork--owl {
  z-index: 1;
  left: 36.2%;
  top: 9.13%;
  width: 19.66%;
  transform: rotate(-13.55deg);
}

/* Pop-out hover on artwork pieces */
.cork--lady,
.cork--buddha,
.cork--pancake,
.cork--boy,
.cork--bird,
.cork--owl,
.cork--sticker {
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.28s ease,
              z-index 0s;
}

.cork--sticker {
  cursor: default;
}

.cork--lady:hover    { transform: scale(1.1) translateY(-6px); z-index: 10; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.cork--buddha:hover  { transform: scale(1.1) translateY(-6px); z-index: 10; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.cork--pancake:hover { transform: scale(1.1) translateY(-6px); z-index: 10; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.cork--boy:hover     { transform: scale(1.1) translateY(-6px); z-index: 10; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.cork--bird:hover    { transform: rotate(12.57deg) scale(1.1) translateY(-6px); z-index: 10; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.cork--owl:hover     { transform: rotate(-13.55deg) scale(1.1) translateY(-6px); z-index: 10; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35)); }
.cork--sticker:hover { transform: scale(1.1) translateY(-6px); z-index: 10; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.35)); }

.cork--clip {
  z-index: 2;
}

.cork--clip-black {
  left: 10.74%;
  top: 0.71%;
  width: 5.26%;
}

.cork--clip-black-2 {
  left: 0;
  top: 45.22%;
  width: 5.26%;
  transform: rotate(-90deg);
  transform-origin: center center;
}

.cork--clip-grey {
  left: 84.07%;
  top: 0;
  width: 5.87%;
}

.cork--sticker {
  z-index: 3;
  left: 80.03%;
  top: 73.6%;
  width: 16.92%;
  border-radius: 25px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* ——— Artwork explanation modal ——— */

.artwork-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.artwork-modal[hidden] {
  display: none !important;
}

.artwork-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.artwork-modal__panel {
  position: relative;
  z-index: 1;
  width: min(96vw, 920px);
  max-height: min(92vh, 1200px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
}

.artwork-modal__toolbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.artwork-modal__title {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #000;
  text-align: center;
  outline: none;
}

.artwork-modal__body {
  padding: 12px 16px 24px;
}

.artwork-modal__img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  image-rendering: auto;
  image-rendering: -webkit-optimize-contrast;
  shape-rendering: geometricPrecision;
}

/* ——— FOOTER ——— */

.footer {
  position: relative;
  width: 100%;
  min-height: 380px;
  background: var(--color-white);
  overflow: hidden;
}

.footer__grid {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero/grid-bg.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1333px;
  margin: 0 auto;
  padding: 36px 47px 48px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px 48px;
  flex-wrap: wrap;
}

.footer__col--main {
  flex: 1 1 320px;
  max-width: 698px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__deco {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin-bottom: 10px;
  /* 10px between each icon (flower–cup, cup–folder) */
  gap: 10px;
}

.footer__deco-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 0;
}

.footer__deco-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 104px;
  max-height: 104px;
  object-fit: contain;
  object-position: center;
}

.footer__deco-img--cup {
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.25));
}

.footer__deco-img--flower {
  transform: rotate(21.9deg);
  transform-origin: center center;
}

.footer__welcome {
  margin: 0;
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.2;
  color: var(--color-black);
}

.footer__thanks {
  margin: 0;
  max-width: 503px;
  font-weight: 600;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.25;
  color: var(--color-accent);
}

.footer__meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 698px;
  margin-top: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  color: var(--color-black);
}

@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  70% { transform: translateY(-4px); }
}

.footer__to-top {
  display: flex;
  flex-shrink: 0;
}

.footer__to-top img {
  display: block;
  animation: bounce-up 2s ease-in-out infinite;
}

.footer__col--aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 25px;
  width: 180px;
  flex: 0 0 auto;
}

.footer__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.footer__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 11px 26px;
  min-height: 42px;
  background: var(--color-black);
  border-radius: 30.5px;
  font-weight: 600;
  font-size: 16px;
  line-height: 19px;
  color: var(--color-white);
  text-align: center;
}

.footer__social-icons {
  position: relative;
  display: inline-block;
  width: 180px;
  height: 50px;
}

.footer__social-icons img {
  display: block;
  width: 100%;
  height: auto;
}

.footer__social-link {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50px;
  display: block;
}

.footer__social-link--linkedin { left: 0; }
.footer__social-link--instagram { left: 65px; }
.footer__social-link--dribbble { left: 130px; }

/* ——— Responsive ——— */

@media (max-width: 1200px) {
  .hero__title-block {
    left: 50%;
    transform: translateX(-50%);
    top: 220px;
  }

  .stickers {
    transform: translate(calc(-50% + 18px), calc(-46% + 6px)) scale(0.88);
  }
}

@media (max-width: 900px) {
  .noodles__inner {
    margin-left: auto;
    margin-right: auto;
    padding: 0 16px;
    max-width: 100%;
  }

  .noodles__title-row,
  .noodles__titles,
  .noodles__line {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .noodles__title-row {
    width: max-content;
    max-width: 100%;
    margin-right: 0;
  }

  .noodles__video-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .work__header {
    flex-direction: column;
    align-items: flex-start;
    min-height: 0;
  }

  .work__title-block {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .work__tagline {
    flex: 1 1 auto;
    max-width: 100%;
  }

  .work__grid {
    align-items: center;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px 48px;
  }

  .footer__col--aside {
    align-items: flex-start;
    width: 100%;
  }

  .footer__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .about__shell {
    min-height: min(1097px, 180vw);
  }

  .about__content-wrap {
    padding: 20px 16px;
    transform: none;
  }

  .about__content {
    width: 100%;
    max-width: 100%;
  }

  .noodles__video-wrap {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .case-other-projects__row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }

  .nav-bar {
    top: var(--nav-offset-y);
    flex-direction: column;
    padding: 12px 24px;
    gap: 12px;
    border-radius: 24px;
    height: auto;
    min-height: 50px;
  }

  .nav-bar__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .hero__inner {
    min-height: 780px;
  }

  .hero {
    min-height: 780px;
  }

  .hero__composition {
    min-height: 780px;
  }

  .hero__grid {
    transform: none;
  }

  .hero__title-block {
    top: 160px;
    height: auto;
    min-height: 280px;
  }

  .hero__line--bottom {
    top: clamp(100px, 22vw, 190px);
  }

  .hero__accent--illustrator {
    left: 50%;
    transform: translateX(-50%);
    top: -56px;
  }

  .hero__accent--year {
    left: auto;
    right: -8px;
    top: 100%;
  }

  .stickers {
    transform: translate(calc(-50% + 18px), calc(-42% + 6px)) scale(0.55);
    opacity: 0.95;
  }
}

@media (max-width: 520px) {
  .hero__line {
    font-size: clamp(56px, 18vw, 120px);
  }

  .stickers {
    transform: translate(calc(-50% + 18px), calc(-38% + 6px)) scale(0.42);
  }

  .doodle-toolbar.doodle-toolbar--hero-visible {
    transform: translate(0, -50%) scale(0.78);
  }
}

/* ============================================================
   MOBILE — ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  html {
    scroll-padding-top: 100px;
  }

  .artwork-modal {
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .artwork-modal__panel {
    width: min(100vw - 20px, 920px);
    max-height: min(90dvh, 92vh);
  }

  .artwork-modal__title {
    font-size: clamp(16px, 4.5vw, 18px);
  }

  /* — Nav — name row, then links (stacked, centered) — */
  .nav-bar {
    top: max(8px, env(safe-area-inset-top));
    width: calc(100% - 16px);
    max-width: 100%;
    padding: 10px 16px 12px;
    gap: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 0;
  }
  .nav-bar__name {
    font-size: 16px;
    width: 100%;
    text-align: center;
    line-height: 1.2;
  }
  .nav-bar__links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 15px;
  }
  .nav-bar__links a { font-size: 15px; }

  /* — Hero — single centered column: headline + sticker collage — */
  .hero,
  .hero__inner {
    min-height: max(580px, min(88svh, 820px));
  }

  .hero__composition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: max(520px, min(82svh, 780px));
    padding: max(88px, calc(env(safe-area-inset-top) + 76px)) 16px 28px;
    box-sizing: border-box;
  }

  .hero__grid { transform: none; }

  .hero__title-block {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: min(100%, calc(100vw - 24px));
    max-width: 420px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
  }

  .hero__headline {
    height: auto;
    min-height: clamp(180px, 48vw, 260px);
  }

  .hero__line {
    font-size: clamp(40px, 12.5vw, 76px);
    line-height: 1;
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 0;
    width: 100%;
    max-width: 100%;
  }
  .hero__line--top {
    max-width: 100%;
    text-align: center;
  }
  .hero__line--bottom {
    max-width: 100%;
    top: clamp(52px, 16vw, 96px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }
  .hero__accent--illustrator {
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: min(100px, 28vw);
  }
  .hero__accent--year {
    right: 0;
    top: 110%;
    left: auto;
    transform: none;
    width: auto;
    max-width: min(56px, 20vw);
  }

  /* Stickers sit directly under PORTFOLIO, scaled to viewport */
  .hero__stickers-scale {
    position: relative !important;
    inset: auto !important;
    width: 100%;
    max-width: 100%;
    height: clamp(220px, 58vw, 300px);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 4px auto 0;
    pointer-events: auto;
  }

  .hero__stickers-scale .stickers {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: scale(0.52) !important;
    transform-origin: top center;
    width: min(957px, 96vw) !important;
    height: min(521px, 54vw) !important;
    max-height: 521px;
    margin: 0 auto;
    opacity: 1;
  }

  .doodle-toolbar.doodle-toolbar--hero-visible {
    transform: translate(0, -50%) scale(0.62);
  }

  .doodle-pen__clip {
    width: 56px;
  }

  .doodle-pen__clip img {
    width: 140px;
    margin-left: -70px;
  }

  /* — About (journal section) — */
  .about__shell { min-height: auto; }
  .about__content-wrap { padding: 12px 0 32px; }
  .about::before { height: 300px; }

  /* — Noodles (Half Noodles Half Design) — */
  .noodles { padding: 40px 0 56px; }
  .noodles__inner { padding: 0 16px; text-align: center; }
  .noodles__title-row,
  .noodles__title-row--home {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 40px !important;
    width: 100%;
    max-width: 100%;
    text-align: center !important;
  }
  .noodles__tag { font-size: 11px; padding: 3px 10px; }
  .noodles__titles {
    gap: 6px;
    align-items: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
  }
  .noodles__line {
    font-size: clamp(28px, 10vw, 52px);
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .noodles__video-wrap,
  .noodles__video-wrap--home {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 8px;
    justify-content: center !important;
    align-items: center !important;
  }
  .noodles__video {
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
  }
  .noodles__rule { margin-top: 40px; }

  /* — Selected Work — */
  .work { padding: 0 16px 60px; }
  .work__title-block { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work__file-icon { width: 72px; }
  .work__h2 { font-size: clamp(28px, 9vw, 52px); }
  .work__row {
    gap: 28px;
    justify-content: center;
  }
  .work__thumb {
    max-width: 100%;
    flex-basis: 100%;
  }

  .case-other-projects {
    padding: 32px 0 56px;
  }

  .case-other-projects__lead {
    margin-top: 0;
  }

  .case-other-projects__row {
    justify-content: center;
  }

  /* — Corkboard — */
  .corkboard { padding: 16px 0 48px; }
  .corkboard__scene { aspect-ratio: 1312 / 820; }  /* slightly taller on mobile */

  /* — Footer — */
  .footer { min-height: auto; }
  .footer__inner { padding: 24px 16px 40px; gap: 20px; flex-direction: column; align-items: flex-start; }
  .footer__welcome { font-size: clamp(24px, 8vw, 48px); line-height: 1.15; }
  .footer__tagline { font-size: 16px; }
  .footer__col--aside { width: 100%; align-items: flex-start; gap: 16px; }
  .footer__actions { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .footer__btn { padding: 10px 20px; font-size: 14px; }
  .footer__logos { gap: 10px; }
  .footer__social-icon { width: 40px; height: 40px; }

  .footer__deco {
    gap: 10px;
  }

  .footer__deco-img {
    max-width: 88px;
    max-height: 88px;
  }

  body {
    touch-action: pan-y;
  }
}
