@import url('tokens.css');
@import url('fonts.css');

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  overflow-x: hidden;
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

body.home-page {
  background-image: none;
  background-color: var(--bg);
  background-attachment: scroll;
  --home-nav-height: var(--site-nav-height);
  --home-margin-left: var(--site-gutter-left);
  --home-margin-right: var(--site-gutter-right);
  --home-sidebar-w: var(--site-layout-sidebar-w);
  --home-col-gap: var(--site-layout-col-gap);
  --home-row-gap: clamp(12px, 1.6vh, 22px);
  --home-work-gap: clamp(28px, 4.2vh, 46px);
  --home-grid-col-wide: 755fr;
  --home-grid-col-narrow: 607fr;
  --home-grid-width: var(--site-layout-grid-width);
  --home-content-width: var(--site-content-width);
  --home-content-left: var(--site-content-left);
  --home-work-width: calc(var(--home-content-width) - var(--home-sidebar-w) - var(--home-col-gap));
  --home-panel-top: calc(var(--home-nav-height) + var(--home-work-gap));
  --home-panel-height: calc(100svh - var(--home-panel-top) - 12px);
  --home-card-min-tall: clamp(200px, 34svh, 360px);
  --home-card-min-short: clamp(180px, 31svh, 340px);
  --home-sidebar-gap: clamp(10px, 2vh, 36px);
  --home-intro-gap: clamp(8px, 2vh, 28px);
  --home-exp-gap: clamp(6px, 1.4vh, 18px);
  --home-exp-item-gap: clamp(1px, 0.4vh, 3px);
  --home-headline-size: clamp(20px, 3.2vh, 36px);
  --home-avatar-size: clamp(40px, 5.5vh, 64px);
  --home-bio-size: clamp(12px, 1.4vh, 15px);
  --home-role-size: clamp(14px, 1.7vh, 18px);
  --home-caption-pad: clamp(32px, 1.4vh, 16px);
  --home-caption-gap: clamp(8px, 0.9vh, 10px);
  --home-card-title-size: clamp(20px, 1.7vh, 18px);
  --home-card-desc-size: clamp(11px, 1.4vh, 14px);
  --home-card-radius: clamp(12px, 1.6vh, 18px);
}

@media (min-width: 1101px) {
  body.home-page {
    height: 100svh;
    overflow: hidden;
  }
}

/* ── NAV ── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--site-nav-height);
  padding: 0;
  background: var(--bg);
}

.nav-inner {
  width: var(--site-content-width);
  max-width: none;
  margin-left: var(--site-content-left);
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--hand);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  position: relative;
}

.nav-logo::after {
  content: '✦';
  font-size: 10px;
  color: var(--blue);
  position: absolute;
  top: 2px;
  right: -14px;
}

.nav-logo--image {
  display: block;
  line-height: 0;
}

.nav-logo--image::after {
  display: none;
}

.nav-logo--image img {
  display: block;
  width: clamp(130px, calc(var(--site-nav-height) * 2.59), 189px);
  height: clamp(34px, calc(var(--site-nav-height) * 0.67), 49px);
  object-fit: contain;
}

.nav-links {
  display: flex; gap: 8px; list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover { background: var(--ink); color: white; }

.nav-cta {
  background: var(--accent-coral) !important;
  color: white !important;
  font-size: clamp(14px, calc(var(--site-nav-height) * 0.247), 18px);
  font-weight: 600;
  padding: clamp(6px, calc(var(--site-nav-height) * 0.11), 8px) clamp(10px, calc(var(--site-nav-height) * 0.164), 12px);
  border-radius: 20px;
}

.nav-cta:hover {
  background: var(--accent-coral) !important;
  color: white !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

#site-nav.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#site-nav.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

#site-nav.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── FLOATING CURSORS ── */
.cursor-label {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  pointer-events: none;
  z-index: 10;
  animation: cursor-float 8s ease-in-out infinite;
}

.cursor-label svg { flex-shrink: 0; margin-top: 2px; }

.cursor-label-text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.cursor-blue .cursor-label-text { background: var(--blue); }
.cursor-pink .cursor-label-text { background: var(--pink); }
.cursor-green .cursor-label-text { background: var(--green); color: #1a1a1a; }
.cursor-purple .cursor-label-text { background: var(--purple); }
.cursor-orange .cursor-label-text { background: var(--orange); }

.cursor-blue svg path { fill: var(--blue); }
.cursor-pink svg path { fill: var(--pink); }
.cursor-green svg path { fill: var(--green); }
.cursor-purple svg path { fill: var(--purple); }
.cursor-orange svg path { fill: var(--orange); }

@keyframes cursor-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(6px, -8px); }
  50% { transform: translate(-4px, 4px); }
  75% { transform: translate(8px, 6px); }
}

/* ── STICKY NOTE ── */
.sticky {
  padding: 14px 16px 18px;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-width: 200px;
  pointer-events: none;
}

.sticky--float { position: absolute; }

.sticky-yellow { background: var(--yellow); }
.sticky-pink { background: var(--sticky-pink-bg); color: var(--sticky-pink-text); }
.sticky-blue { background: var(--sticky-blue-bg); }
.sticky-green { background: var(--sticky-green-bg); }
.sticky-purple { background: var(--purple); color: white; }
.sticky-purple .sticky-text { color: white; }
.sticky-purple .sticky-sub { color: rgba(255,255,255,0.65); }
.sticky-purple .sticky-line { background: rgba(255,255,255,0.2); }

.sticky-text {
  font-family: var(--hand);
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--ink);
}

.sticky-line {
  height: 1.5px;
  background: rgba(0,0,0,0.1);
  margin: 8px 0 6px;
}

.sticky-sub {
  font-family: var(--hand);
  font-size: 13px;
  color: rgba(0,0,0,0.45);
}

/* ── CONNECTOR LINES (SVG overlays) ── */
.canvas-lines {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-height);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  text-align: center;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 80px var(--site-gutter);
}

.hero-tag-cloud {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.hero-chip {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--muted);
  transition: transform 0.2s;
}

.hero-chip:hover { transform: translateY(-2px); }
.hero-chip.yellow { background: var(--yellow); border-color: transparent; color: var(--ink); }
.hero-chip.blue { background: var(--chip-blue-bg); border-color: transparent; color: var(--chip-blue-text); }
.hero-chip.pink { background: var(--chip-pink-bg); border-color: transparent; color: var(--chip-pink-text); }
.hero-chip.green { background: var(--chip-green-bg); border-color: transparent; color: var(--chip-green-text); }

.hero-headline {
  font-family: var(--heading);
  font-size: var(--type-display-size);
  font-weight: 700;
  line-height: var(--leading-heading);
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 24px;
}

.hero-headline .underline-squiggle,
.home-sidebar__headline .underline-squiggle {
  position: relative;
  display: inline-block;
}

.hero-headline .underline-squiggle::after,
.home-sidebar__headline .underline-squiggle::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0; right: 0;
  height: 8px;
  background: url("data:image/svg+xml,%3Csvg width='100' height='8' viewBox='0 0 100 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 6 Q12.5 0 25 4 Q37.5 8 50 4 Q62.5 0 75 4 Q87.5 8 100 4' stroke='%23FFE566' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x center;
  background-size: 100px 8px;
}

.hero-sub {
  color: var(--body);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-main {
  background: var(--ink);
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.15);
}

.btn-main:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0,0,0,0.15); }

.btn-outline {
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.08);
}

.btn-outline:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 rgba(0,0,0,0.08); }

/* ── HOME INTRO ── */
.home-intro {
  box-sizing: border-box;
}

@media (min-width: 1101px) {
  .home-intro {
    height: 100svh;
    overflow: hidden;
  }
}

@media (max-width: 1100px) {
  .home-intro {
    min-height: 100svh;
    padding: var(--home-nav-height) 0 clamp(48px, 6vh, 80px);
  }
}

.home-intro-inner {
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  .home-intro-inner {
    width: auto;
    margin-left: var(--home-margin-left);
    margin-right: var(--home-margin-right);
  }
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--home-sidebar-gap);
  background: var(--bg);
  box-sizing: border-box;
}

@media (min-width: 1101px) {
  .home-sidebar,
  .home-work {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .home-sidebar::-webkit-scrollbar,
  .home-work::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
}

@media (min-width: 1101px) {
  .home-sidebar {
    position: fixed;
    top: var(--home-panel-top);
    left: var(--home-content-left);
    width: var(--home-sidebar-w);
    height: var(--home-panel-height);
    max-height: var(--home-panel-height);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 10;
    transform: translateZ(0);
    backface-visibility: hidden;
  }
}

@media (max-width: 1100px) {
  .home-sidebar {
    overflow-y: visible;
  }
}

.home-work {
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 1101px) {
  .home-work {
    position: fixed;
    top: var(--home-panel-top);
    left: calc(var(--home-content-left) + var(--home-sidebar-w) + var(--home-col-gap));
    width: var(--home-work-width);
    height: var(--home-panel-height);
    max-height: var(--home-panel-height);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 5;
    -webkit-overflow-scrolling: touch;
  }
}

.home-sidebar__intro {
  display: flex;
  flex-direction: column;
  gap: var(--home-intro-gap, 40px);
}

.home-profile {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1.2vw, 16px);
}

.home-profile__avatar {
  width: var(--home-avatar-size, 70px);
  height: var(--home-avatar-size, 70px);
  border-radius: 120px;
  object-fit: cover;
  object-position: bottom center;
  flex-shrink: 0;
}

.home-profile__bio {
  font-size: var(--home-bio-size, 15px);
  line-height: 1.45;
  color: var(--home-stroke);
  max-width: 100%;
  padding-top: clamp(2px, 0.5vh, 6px);
}

.home-sidebar__headline {
  font-family: var(--heading);
  font-size: var(--home-headline-size, 36px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  max-width: 100%;
}

.home-sidebar__divider {
  width: 100%;
  max-width: 100%;
  height: 0;
  border: none;
  border-top: 1px solid var(--accent-sky);
  margin: 0;
}

.home-experience {
  display: flex;
  flex-direction: column;
  gap: var(--home-exp-gap);
  max-width: 100%;
}

.home-experience__label {
  font-size: clamp(10px, 1.2vh, 13px);
  font-weight: 600;
  letter-spacing: 0.56px;
  text-transform: uppercase;
  color: var(--home-stroke);
}

.home-experience__item {
  display: flex;
  flex-direction: column;
  gap: var(--home-exp-item-gap, 4px);
}

.home-experience__dates {
  font-size: clamp(10px, 1.2vh, 13px);
  font-weight: 600;
  letter-spacing: 0.56px;
  color: var(--home-stroke);
}

.home-experience__dates--tight {
  margin-top: 0;
}

.home-experience__role {
  font-family: var(--sans);
  font-size: var(--home-role-size, 18px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.home-experience__company {
  font-size: clamp(11px, 1.3vh, 14px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.home-experience__company strong {
  font-weight: 700;
}

/* Case study grid */
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 755fr) minmax(0, 607fr);
  grid-template-rows: auto auto;
  gap: var(--home-row-gap) var(--home-col-gap);
  width: 100%;
}

.home-card--tall {
  min-height: var(--home-card-min-tall);
}

.home-card--short {
  min-height: var(--home-card-min-short);
}

.home-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: none;
  border-radius: var(--home-card-radius, 20px);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg);
}

.home-card--locked {
  cursor: default;
}

.home-card__media {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.home-card__media--blur {
  isolation: isolate;
}

.home-card__media--blur::after {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 20px 20px 0 0;
  pointer-events: none;
}

.home-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.home-card__caption {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--home-caption-gap, 12px);
  padding: var(--home-caption-pad, 32px);
  background: var(--caption-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.home-card__caption--frosted {
  position: absolute;
  inset: 0;
  justify-content: center;
  background: rgba(250, 250, 248, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none;
  border-radius: var(--home-card-radius, 20px);
}

.home-card--locked {
  position: relative;
}

.home-card--locked .home-card__media {
  position: absolute;
  inset: 0;
}

.home-card--locked .home-card__caption--frosted {
  z-index: 1;
}

.home-card__heading {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 14px);
  flex-wrap: wrap;
}

.home-card__title {
  font-family: var(--sans);
  font-size: var(--home-card-title-size, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.home-card__brand {
  font-family: var(--heading);
  font-size: var(--home-card-title-size, 20px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.home-card__desc {
  font-size: var(--home-card-desc-size, 16px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.home-card:focus-visible {
  outline: 2px solid var(--accent-sky);
  outline-offset: 3px;
}

.home-card:not(.home-card--locked):hover .home-card__img {
  transform: scale(1.02);
  transition: transform 0.35s ease;
}

.home-card__img {
  transition: transform 0.35s ease;
}

/* ── LOGO SHOWCASE (full-width marquee) ── */
.logo-showcase {
  width: 100%;
  padding: 8px 0 36px;
  opacity: 0.4;
  overflow: hidden;
}

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.logo-marquee-track.is-ready {
  animation: logo-marquee-scroll 40s linear infinite;
}

.logo-marquee-set {
  display: flex;
  align-items: center;
  gap: 56px;
  list-style: none;
  margin: 0;
  /* Right padding = gap so the seam between duplicated sets matches item spacing */
  padding: 0 56px 0 0;
  flex-shrink: 0;
}

.logo-marquee-item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 28px;
}

.logo-marquee-item img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
}

.logo-marquee-fallback {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  user-select: none;
}

@keyframes logo-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTION LABEL (hand-drawn style) ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.section-label .label-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.section-label--center {
  justify-content: center;
  color: rgba(255,255,255,0.45);
}

.section-label--center .label-dot--yellow {
  background: var(--yellow);
}

.label-dot--green {
  background: var(--green);
}

/* ── WORK CARD (clean showcase layout) ── */
.frame-card {
  background: none;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  transition: opacity 0.2s;
  text-decoration: none;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "image body";
  gap: 48px;
  align-items: center;
}

.frame-card:hover {
  transform: none;
  box-shadow: none;
  opacity: 0.92;
}

.frame-card-header,
.frame-img-overlay {
  display: none;
}

.frame-img-area {
  grid-area: image;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px 0 0;
  background: none;
}

.frame-img-preview {
  position: relative;
  width: auto;
  max-width: 100%;
  max-height: round(360px, 1px);
  height: auto;
  object-fit: scale-down;
  object-position: center right;
  border-radius: 0;
  box-shadow: none;
  z-index: 1;
}

.frame-img-area--preview {
  display: flex;
}

.frame-img-sticky {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 12px;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 2;
}

.frame-img-sticky--yellow {
  background: var(--yellow);
  transform: rotate(2deg);
}

.frame-img-sticky--purple {
  background: var(--purple);
  transform: rotate(-2deg);
}

.frame-img-sticky-text {
  font-family: var(--hand);
  font-size: 13px;
  font-weight: 700;
}

.frame-img-sticky--yellow .frame-img-sticky-text { color: var(--ink); }
.frame-img-sticky--purple .frame-img-sticky-text { color: white; }

.frame-body {
  grid-area: body;
  padding: 24px 24px 24px 0;
  background: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.frame-company {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.frame-title {
  font-family: var(--heading);
  font-size: var(--type-h2-size);
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 14px;
  line-height: var(--leading-heading);
}

.frame-desc {
  color: var(--body);
  line-height: var(--leading-relaxed);
  margin-bottom: 24px;
}

.frame-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.frame-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--surface-muted);
  color: var(--muted);
}

.frame-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--ink);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  transition: background 0.15s;
}

.frame-card:hover .frame-cta {
  background: #333330;
}

/* ── WORK SECTION ── */
#work {
  padding: 100px var(--site-gutter);
  position: relative;
}

body.home-page #work {
  padding: 0;
  position: static;
}

.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.work-headline {
  font-family: var(--heading);
  font-size: var(--type-h3-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--leading-heading);
  color: var(--ink);
}

.work-annotation { display: none; }

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ── LOCKED CARD ── */
.locked-card {
  background: white;
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.locked-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--muted);
}

.locked-title {
  font-family: var(--heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.locked-sub {
  color: var(--body);
  max-width: 360px;
}

.locked-cta {
  margin-top: 8px;
}

/* ── ABOUT ── */
#about {
  padding: 100px var(--site-gutter);
  position: relative;
}

.about-canvas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.bio-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bio-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hand);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
}

.bio-name {
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.bio-role {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.bio-text {
  line-height: var(--leading-relaxed);
}

.bio-text p + p { margin-top: 14px; }

.skills-scatter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1.5px dashed var(--border);
}

.skill-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--ink);
  cursor: default;
  transition: transform 0.15s;
}

.skill-tag:hover { transform: translateY(-2px) rotate(-1deg); }
.skill-tag.s-yellow { background: var(--yellow); border-color: transparent; }
.skill-tag.s-blue { background: var(--chip-blue-bg); border-color: transparent; }
.skill-tag.s-green { background: var(--chip-green-bg); border-color: transparent; }
.skill-tag.s-pink { background: var(--chip-pink-bg); border-color: transparent; }

.timeline-card {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.timeline-header {
  padding: 14px 20px;
  border-bottom: 1.5px solid var(--border);
  font-family: var(--hand);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.tl-item:last-child { border-bottom: none; }

.tl-item--last {
  border-bottom: none;
}

.tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 5px;
}

.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.tl-dot.active { background: var(--blue); border-color: var(--blue); }
.tl-dot.aon { background: var(--green); border-color: var(--green); }
.tl-dot.ff { background: var(--pink); border-color: var(--pink); }
.tl-dot.ig { background: var(--yellow); border-color: transparent; }
.tl-dot.edu { background: var(--purple); border-color: var(--purple); }

.tl-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.tl-company {
  font-size: 12px;
  color: var(--muted);
}

/* ── CTA ── */
#contact {
  padding: 120px var(--site-gutter);
  text-align: center;
  position: relative;
}

.cta-board {
  background: var(--ink);
  border-radius: 24px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
}

.cta-board-dots { display: none; }

.cta-board-content { position: relative; z-index: 2; }

.cta-headline {
  font-family: var(--heading);
  font-size: var(--type-h1-size);
  font-weight: 700;
  letter-spacing: 0;
  color: white;
  line-height: var(--leading-heading);
  margin-bottom: 20px;
}

.cta-sub {
  font-size: var(--text-body);
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.cta-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 10px;
  box-shadow: 4px 4px 0 rgba(255,255,255,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}

.cta-email-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(255,255,255,0.2); }

.cta-sticky-1 {
  position: absolute;
  top: 24px; right: 32px;
  transform: rotate(4deg);
}

.cta-sticky-2 {
  position: absolute;
  bottom: 24px; left: 28px;
  transform: rotate(-3deg);
}

.cta-cursor {
  position: absolute;
  top: 28px;
  left: 28px;
}

/* ── FOOTER ── */
footer {
  border-top: 1.5px solid var(--border);
  padding: 24px var(--site-gutter);
  background: rgba(250,250,248,0.9);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--hand);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.reveal.visible { opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero .sticky--float,
  .work-annotation,
  .cta-sticky-1,
  .cta-sticky-2,
  .cta-cursor {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero .cursor-label {
    display: none !important;
  }

  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--site-nav-height);
    left: 0;
    right: 0;
    z-index: 199;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 0 var(--site-gutter-right) 0 var(--site-gutter-left);
    background: rgba(250, 250, 248, 0.98);
    border-bottom: 1.5px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
  }

  #site-nav.nav-open .nav-links {
    max-height: 120px;
    padding-top: 16px;
    padding-bottom: 20px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 15px;
  }

  .nav-cta {
    text-align: center;
    margin-top: 4px;
  }

  body.nav-menu-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    background-attachment: scroll;
  }

  body {
    background-attachment: scroll;
  }

  .hero-inner { padding: 48px var(--site-gutter) 64px; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  .btn-main,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .cta-board { padding: 48px 24px; }
  .cta-email-btn {
    font-size: 14px;
    padding: 14px 20px;
    max-width: 100%;
    word-break: break-word;
  }
}

@media (max-width: 1100px) {
  .nav-inner {
    width: auto;
    margin-left: var(--site-gutter-left);
    margin-right: var(--site-gutter-right);
  }

  body.home-page {
    height: auto;
    overflow: visible;
  }

  .home-work {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    grid-area: work;
    margin-left: 0;
  }

  .home-intro {
    margin-top: 72px;
  }

  .home-intro-inner {
    display: grid;
    grid-template-areas:
      "intro"
      "work"
      "experience";
    gap: clamp(32px, 3vh, 12px);
  }

  .home-sidebar {
    display: contents;
  }

  .home-sidebar__intro {
    grid-area: intro;
  }

  .home-profile__bio,
  .home-sidebar__headline {
    max-width: none;
  
  }

  .home-experience {
    grid-area: experience;
    max-width: none;
  }

  .home-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .home-card {
    min-height: 320px;
  }

  .home-card--tall {
    min-height: 380px;
  }
}

@media (max-width: 880px) {
  #about, #contact { padding-top: 80px; padding-bottom: 80px; }

  .home-card {
    min-height: 280px;
  }

  .home-sidebar__headline {
    font-size: clamp(28px, 7vw, 40px);
  }

  .home-card__desc {
    max-width: none;
  }

  .frame-card {
    grid-template-columns: 1fr;
    grid-template-areas: "image" "body";
    gap: 24px;
  }
  .frame-body {
    padding: 0;
  }
  .frame-img-area {
    padding: 0;
    justify-content: center;
  }
  .frame-img-preview {
    max-height: none;
    object-position: center;
  }
  .about-canvas { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .work-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bio-card, .timeline-card { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .cursor-label { animation: none; }
  .logo-marquee-track,
  .logo-marquee-track.is-ready { animation: none; }
  .frame-img-preview { transition: none; }
  .home-card__img { transition: none; }
  .frame-card:hover .frame-img-preview { transform: none; }
  .frame-img-overlay { opacity: 1; background: linear-gradient(to top, rgba(28,28,26,0.4) 0%, transparent 60%); }
  .frame-img-cta { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
