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

body.fork-cursor * {
  cursor: none !important;
}


#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  user-select: none;
}

#custom-cursor img {
  width: 100%;
  display: block;
  transform: rotate(-30deg);
  transform-origin: 50% 80%;
  transition: transform 0.18s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#custom-cursor.picking-up img {
  transform: rotate(-55deg) translateY(3px);
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  min-height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.02em;
  cursor: default;
}

p, h1, h2, h3, h4, span, em, li, div {
  cursor: default;
}

/* ─────────────────────────────
   NAVIGATION
───────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 28px 0;
  display: flex;
  align-items: flex-start;
  mix-blend-mode: difference;
}

.nav-logo {
  display: block;
  flex-shrink: 0;
}

.nav-logo {
  position: relative;
  overflow: hidden;
}

.nav-logo img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  display: block;
  filter: invert(1);
}

.logo-cursor {
  position: absolute;
  width: 14px;
  height: 18px;
  background: white;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  transform: none;
  clip-path: polygon(
    0% 0%,
    0% 80%,
    22% 62%,
    38% 100%,
    52% 93%,
    36% 55%,
    62% 55%
  );
}

.nav-links {
  list-style: none;
  margin-left: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.nav-links li {
  padding: 0 12px;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  /* always reserve bold width to prevent layout shift on active change */
  font-synthesis: none;
}

.nav-link:hover {
  opacity: 0.5;
}

.nav-link.active {
  font-weight: 600;
}

.nav-count {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: #ffffff;
  position: relative;
  top: -6px;
  line-height: 0;
  opacity: 0.75;
  margin-left: 1px;
}

/* ─────────────────────────────
   HOME PAGE
───────────────────────────── */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 80px 60px;
  gap: 56px;
  max-width: 1100px;
  margin: 0 auto;
}

.home-photo {
  flex-shrink: 0;
  width: 420px;
  position: relative;
}

.photo-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ── Scribble canvas behind photo ── */
#scribble-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.photo-img {
  position: relative;
  z-index: 1;
}

.photo-stamp {
  z-index: 2;
}

/* ── Chat bubble text ── */
.bubble-text-track {
  position: absolute;
  bottom: -22px;
  left: 15%;
  width: 55%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.bubble-text {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: #1a1a1a;
  letter-spacing: 0;
  animation: bubbleScroll 14s linear infinite;
}

@keyframes bubbleScroll {
  0%   { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.photo-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.4;
  mix-blend-mode: normal;
  filter: brightness(100) invert(1);
}

/* ─────────────────────────────
   BIO SECTION
───────────────────────────── */
.home-text {
  flex: 1;
  max-width: 310px;
  padding-top: 0;
}

.home-bio {
  margin-top: 0;
}

.home-signature {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.signature-img {
  width: 160px;
  display: block;
}

.home-bio p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.02em;
  text-align: justify;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.bio-tagline {
  font-weight: 400 !important;
}

.bio-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.bio-link:hover {
  opacity: 0.5;
}

.bio-cascade {
  text-align: left !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

.bio-indent-1 {
  display: inline-block;
  padding-left: 80px;
}

.bio-indent-2 {
  display: inline-block;
  padding-left: 220px;
}

/* ─────────────────────────────
   PROJECTS PAGE
───────────────────────────── */
.projects {
  padding: 100px 60px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.projects-menu {
  flex-shrink: 0;
  width: 380px;
  align-self: center;
}

.projects-plate {
  flex-shrink: 0;
  width: 400px;
  position: relative;
}

.projects-plate-img {
  width: 100%;
  display: block;
}

.projects-plate-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72%;
  transition: transform 0.25s ease;
}

#plate-drop-zone:hover .projects-plate-overlay {
  transform: translate(-50%, -50%) scale(1.06);
}

#plate-drop-zone:hover .plate-disclaimer {
  color: #4a7c4e;
  opacity: 1;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.projects-category {
  margin-bottom: 20px;
  width: 100%;
  position: relative;
}

.projects-category-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 1px;
}

.projects-category-title .arrow {
  font-style: normal;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
  vertical-align: middle;
}

.projects-category-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #1a1a1a;
  letter-spacing: 0.01em;
  width: 100%;
}

/* Plate area */
.plate-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
}

.plate-instruction {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12.5px;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 24px;
  line-height: 1.6;
}

.plate-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}

.plate-wrapper {
  position: relative;
  width: 360px;
  flex-shrink: 0;
}

.plate-wrapper img.banana-leaf {
  width: 100%;
  display: block;
}

.plate-wrapper img.plate {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
}

.utensil-left {
  width: 80px;
  margin-right: -10px;
}

.utensil-right {
  width: 80px;
  margin-left: -10px;
}

.plate-caption {
  max-width: 260px;
  margin: 36px auto 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  text-align: center;
  line-height: 1.7;
  color: #1a1a1a;
}

.plate-caption p + p {
  margin-top: 12px;
}

/* ── Project dropdowns ── */
.projects-dropdown {
  position: absolute;
  left: 0;
  top: 100%;
  width: 420px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: #fff;
  z-index: 10;
}

.projects-dropdown.open {
  max-height: 600px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding: 16px 0 8px;
}

.project-item {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.project-item:hover { opacity: 0.6; }

.project-item.dragging { opacity: 0.3; }

.project-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.project-item span {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #1a1a1a;
  line-height: 1.4;
  text-align: left;
}

.plate-disclaimer {
  position: absolute;
  top: 4%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #1a1a1a;
  opacity: 0.4;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.01em;
  pointer-events: none;
  transition: color 0.25s ease, opacity 0.25s ease;
}

/* ── Plate drop zone ── */
.plate-drop-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  text-align: center;
}

.projects-plate.plate-active .projects-plate-img {
  filter: brightness(1.08);
}

.projects-plate.plate-active {
  outline: 2px dashed rgba(0,0,0,0.2);
  border-radius: 4px;
}

.projects-plate.plate-accept .projects-plate-overlay {
  transform: translate(-50%, -50%) scale(1.06);
  transition: transform 0.3s ease;
}

/* ─────────────────────────────
   THOUGHTS PAGE
───────────────────────────── */
.thoughts {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thoughts-list {
  list-style: none;
  text-align: center;
}

.thoughts-list li {
  padding: 4px 0;
}

.thoughts-list a {
  font-family: 'IM Fell English', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: #1a1a1a;
  text-decoration: none;
}

.thoughts-list a:hover {
  opacity: 0.5;
}

/* ─────────────────────────────
   ABOUT PAGE
───────────────────────────── */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 120px 80px 80px;
  max-width: 680px;
  margin: 0 auto;
}

.about-photo-wrap {
  width: 100%;
  margin-bottom: 28px;
}

.about-photo-img {
  width: 100%;
  display: block;
}

.about-body {
  width: 100%;
}

.about-body p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  text-align: justify;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.about-welcome {
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.about-globe {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.about-count {
  font-weight: 400 !important;
  opacity: 0.5;
  font-size: 12px !important;
}

/* ─── Small Bites ─── */
.small-bites {
  margin-top: 40px;
  width: 100%;
}

.small-bites-hint {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #1a1a1a;
  text-align: justify;
  margin-bottom: 18px;
  opacity: 0.6;
}

.small-bites-title {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}

.small-bites-toggle-arrow {
  font-style: normal;
  font-size: 14px;
  display: inline-block;
  transition: transform 0.3s ease;
  vertical-align: middle;
}

.small-bites.closed .small-bites-toggle-arrow {
  transform: rotate(180deg);
}

.small-bites-grid {
  overflow: hidden;
  transition: max-height 0.4s ease;
  max-height: 600px;
}

.small-bites.closed .small-bites-grid {
  max-height: 0;
}

.small-bites-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.small-bites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 0;
  column-gap: 24px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  max-height: 600px;
}

.small-bites.closed .small-bites-grid {
  max-height: 0;
}

.small-bites-item {
  font-family: 'IM Fell English', Georgia, serif;
  font-size: 14px;
  color: #1a1a1a;
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.small-bites-item-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.small-bites-arrow {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  transition: transform 0.3s ease;
  display: inline-block;
}

.small-bites-item.open .small-bites-arrow {
  transform: rotate(180deg);
}

.small-bites-item:hover {
  opacity: 0.6;
}

.bite-content {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  color: #1a1a1a;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding-top: 0;
}

.small-bites-item.open .bite-content {
  max-height: 200px;
  padding-top: 8px;
}

/* ── Scribble to line animation ── */
.scribble-line-wrap {
  width: 100%;
  padding: 20px 0 10px;
  overflow: hidden;
}

.scribble-svg {
  width: 100%;
  height: 80px;
  display: block;
}

.scribble-path {
  animation: scribbleToLine 3s ease-in-out infinite alternate;
}

@keyframes scribbleToLine {
  0% {
    d: path("M 0,60 C 10,-80 30,180 50,30 C 55,-60 70,150 90,40 C 95,-40 110,140 130,20 C 135,-30 150,150 170,50 C 175,-20 185,130 200,60 C 210,20 225,100 240,55 C 250,30 260,90 280,58 C 290,40 305,75 320,60 C 335,50 350,68 365,60 C 385,55 400,65 420,60 C 460,59 500,61 560,60 C 620,60 700,60 800,60 C 880,60 940,60 1000,60");
  }
  100% {
    d: path("M 0,60 C 10,60 30,60 50,60 C 55,60 70,60 90,60 C 95,60 110,60 130,60 C 135,60 150,60 170,60 C 175,60 185,60 200,60 C 210,60 225,60 240,60 C 250,60 260,60 280,60 C 290,60 305,60 320,60 C 335,60 350,60 365,60 C 385,60 400,60 420,60 C 460,60 500,60 560,60 C 620,60 700,60 800,60 C 880,60 940,60 1000,60");
  }
}

/* ─────────────────────────────
   FOOTER
───────────────────────────── */
.site-footer {
  width: 100%;
  letter-spacing: 0;
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 80px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-contact {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0;
  row-gap: 1px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  color: #1a1a1a;
}

.footer-contact .fc-pre {
  text-align: right;
}

.footer-contact .fc-at {
  text-align: left;
  text-decoration: none;
  color: #1a1a1a;
}

.footer-contact a.fc-at:hover {
  opacity: 0.5;
}

.footer-bio {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #1a1a1a;
  text-align: justify;
  max-width: 220px;
  line-height: 1.65;
}

.footer-logo {
  position: relative;
  overflow: hidden;
}

.footer-logo img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

/* ── About text cursor inverter ── */
#text-inverter {
  position: fixed;
  width: 14px;
  height: 18px;
  mix-blend-mode: difference;
  filter: brightness(10);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 999;
  transform: none;
  clip-path: polygon(
    0% 0%,
    0% 80%,
    22% 62%,
    38% 100%,
    52% 93%,
    36% 55%,
    62% 55%
  );
}

/* ─────────────────────────────
   SHARED UTILITY
───────────────────────────── */
img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* ─────────────────────────────
   CASE STUDY SPACING OVERRIDES
   (Matches Wix layout generosity)
───────────────────────────── */
.cs-section {
  margin-top: 96px;
}

.cs-sub {
  margin-top: 48px;
  padding-top: 32px;
}

.cs-img-full,
.cs-img-pair,
.cs-img-triple,
.cs-img-grid {
  margin-top: 40px;
  margin-bottom: 40px;
}

.cs-quote {
  margin: 40px 0;
}

.cs-stats {
  margin: 40px 0;
}

.cs-overview {
  margin-bottom: 56px;
}

.cs-video-full {
  width: 100%;
  display: block;
  margin: 40px 0;
  border-radius: 4px;
}
