:root {
  --col: 1204px;
  --border: #2c2c2c;
  --text: #f2f2f2;
  --muted: #8f8f8f;
  --body: #a3a3a3;
  --tag-bg: #1c1c1c;
}
* { box-sizing: border-box; margin: 0; }
body {
  background: #000;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 80px; }
a { color: inherit; text-decoration: none; }
h1, h2 { font-family: Impact, 'Anton', sans-serif; font-weight: 400; }

.column {
  position: relative;
  width: var(--col);
  max-width: 100%;
  border-left: 1px dashed var(--border);
  border-right: 1px dashed var(--border);
  min-height: 100vh;
  border-top: 0;
}

/* Nav (full-bleed bar) */
.nav {
  align-self: stretch; position: sticky; top: 0; z-index: 10;
  background: #000;
  border-bottom: 1px dashed var(--border);
}
.nav__inner {
  width: var(--col); max-width: 100%; height: 79px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  border-left: 1px dashed var(--border); border-right: 1px dashed var(--border);
}
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__item { font-size: 15px; font-weight: 500; color: #9a9a9a; display: flex; align-items: center; gap: 5px; }
.nav__item:hover { color: #fff; }
.nav__item--tab { position: relative; }
.nav__item--active { color: #fff; font-weight: 600; }
.nav__underline { position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; display: none; }
.nav__item--active .nav__underline { display: block; }
.nav__theme { background: none; border: 0; padding: 0; cursor: pointer; display: flex; }

/* Hero: 571px tall, coordinates from Figma column */
.hero { position: relative; height: 571px; overflow: hidden; }
.hero__ellipse { position: absolute; left: 464px; top: 349px; transform: rotate(-29.3deg); }
.hero__title { position: absolute; font-size: 64px; line-height: normal; color: var(--text); white-space: nowrap; }
.hero__title--a { left: 206px; top: 81px; }
.hero__title--b { left: 697px; top: 178px; }
.hero__photo { position: absolute; width: 344px; height: 396px; left: calc(50% - 24px - 172px); top: 50px; object-fit: cover; }
/* Arrows: outer box from Figma insets; inner box is the rotated vector (Figma's rotation math, precomputed) */
.hero__arrow { position: absolute; }
.hero__arrow-inner { position: absolute; left: 50%; top: 50%; }
.hero__arrow-inner img { position: absolute; max-width: none; display: block; }
.hero__arrow--a { left: 349.3px; top: 251px; width: 82.1px; height: 55.7px; }
.hero__arrow--a .hero__arrow-inner { width: 72.5px; height: 37.6px; transform: translate(-50%, -50%) rotate(163.76deg) scaleX(-1) skewX(-3.03deg); }
.hero__arrow--a img { left: -0.69%; top: -1.85%; width: 101.38%; height: 103.17%; }
.hero__arrow--b { left: 707px; top: 325.8px; width: 70.8px; height: 76.4px; }
.hero__arrow--b .hero__arrow-inner { width: 68.6px; height: 40px; transform: translate(-50%, -50%) rotate(-120.38deg) skewX(-4.75deg); }
.hero__arrow--b img { left: -0.73%; top: -1.84%; width: 101.46%; height: 103.09%; }
.hand {
  position: absolute; font-family: 'Figma Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  font-size: 16px; line-height: 23px; color: #ececec;
}
.hand--left { left: 382px; top: 314px; white-space: nowrap; transform: translateX(-100%); text-align: right; }
/* second line of the note + Accenture logo (Figma: its own group, 8px gap) */
.hand-group { position: absolute; left: 216px; top: 338px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hand-group .hand-text { font-family: 'Figma Hand', 'Segoe Print', 'Comic Sans MS', cursive; font-size: 16px; line-height: 23px; color: #ececec; }
.hand-group img { width: 17px; height: 17px; flex-shrink: 0; object-fit: cover; }
.hand--right { left: 675px; top: 411px; width: 429px; font-size: 20px; line-height: 28px; }

/* Projects */
.projects { border-top: 1px dashed var(--border); padding: 16px 0 24px; display: flex; flex-direction: column; gap: 16px; }
.projects__header { padding: 0 28px 0 20px; }
.projects__header h2 { font-size: 28px; white-space: nowrap; flex-shrink: 0; }
.projects--work { padding-bottom: 0; margin-top: 32px; }   /* Figma: section starts at 683px */
.projects__header--work { display: flex; align-items: center; gap: 859px; }
.header-icon { position: relative; width: 100px; height: 84px; flex-shrink: 0; pointer-events: none; }
/* Box: a canvas (drawn at 3x) that JS blends between the four box images */
.header-icon canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card:focus-visible { outline: 1px dashed #8f8f8f; outline-offset: -6px; }
.projects__body { border-top: 1px dashed var(--border); padding-bottom: 24px; }
.projects__grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
/* About: just the notebook image in a bordered card (no divider above, no text) */
.about-board { display: flex; }
.about-board__card { flex: 1; min-width: 0; display: flex; justify-content: center; padding: 16px; border-right: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.about-board__card img { width: 1091px; max-width: 100%; height: 771.6px; object-fit: cover; display: block; }

.card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; min-width: 0;
  border-right: 1px dashed var(--border); border-bottom: 1px dashed var(--border);
}
.card__media { position: relative; width: 566px; max-width: 100%; align-self: center; }
.card__image { display: block; width: 100%; height: 417px; object-fit: cover; }
/* Svaroots hover: only the red tab rises ~10px (the folder image itself never moves).
   The window is clipped at the folder's front-flap edge so the tab slides up from behind it. */
.card__tab { position: absolute; left: 350px; top: -10px; width: 195px; height: 59px; overflow: hidden; pointer-events: none; }
.card__tab-inner { position: absolute; left: 0; top: 0; width: 195px; height: 61px; opacity: 0; transform: translateY(10px);
  transition: transform .32s cubic-bezier(.2,.8,.25,1), opacity .14s linear; }
.card__tab-inner img { display: block; width: 100%; height: 100%; }
.card__tab-inner span { position: absolute; left: 0; right: 0; top: 19px; text-align: center; white-space: nowrap;
  font: 500 13px/20px Inter, system-ui, sans-serif; color: #fff7f2; }
.card:hover .card__tab-inner, .card:focus-visible .card__tab-inner { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .card__tab-inner { transition: none; } }
.card__title-row { display: flex; justify-content: space-between; align-items: flex-start; }
.card__titles { display: flex; flex-direction: column; gap: 4px; }
.card__name { font-family: Impact, 'Anton', sans-serif; font-weight: 400; font-size: 20px; color: #f5f5f5; }
.card__tagline { font-size: 16px; font-weight: 500; color: #b6b6b6; }
.card__live { display: flex; align-items: center; gap: 6px; padding-top: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.card__desc { font-size: 16px; font-weight: 500; line-height: 20px; color: var(--body); }
.card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; }
.card__tags { list-style: none; padding: 0; display: flex; gap: 8px; }
.card__tags li { background: var(--tag-bg); color: #f0f0f0; font-size: 14px; font-weight: 500; padding: 4px 8px; border-radius: 6px; }
.card__links { display: flex; gap: 16px; align-items: center; }
.card__links a { display: flex; }

@media (max-width: 800px) {
  .projects__grid { grid-template-columns: 1fr; }
  .projects__header--work { gap: 24px; justify-content: space-between; }
  .hero { height: 620px; }
}

/* Figma spacing: gap above "About my process" and trailing space below it */
#about { margin-top: 39px; }
.column { padding-bottom: 253px; }

/* ---- Highlighter marker ---- */
.hand--right { isolation: isolate; }
.mark { color: inherit; }
.marker-layer { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.marker-stroke {
  position: absolute;
  clip-path: inset(0 100% 0 0);           /* hidden until JS animates it */
  transform: rotate(var(--tilt, 0deg));
  transform-origin: left center;
  filter: url(#marker-rough);
}
/* The stroke itself: C54100 with a ragged, tapered outline (like the reference swipe) and faint marker streaks */
.marker-stroke::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10) 0, rgba(255,255,255,0) 18%, rgba(0,0,0,0) 70%, rgba(255,255,255,.12) 86%, rgba(255,255,255,0) 100%),
    repeating-linear-gradient(176deg, rgba(0,0,0,.05) 0 2px, rgba(255,255,255,.04) 2px 5px),
    #C54100;
  clip-path: var(--shape);
}
.marker-layer { --shape-0: polygon(0% 26%, 1.5% 10%, 12% 6%, 40% 3%, 72% 2%, 96% 0%, 100% 9%, 99% 20%, 100% 40%, 99.5% 74%, 96% 88%, 70% 96%, 38% 100%, 10% 97%, 1.5% 94%, 0% 78%, 1% 50%);
  --shape-1: polygon(0% 18%, 2% 4%, 25% 2%, 55% 4%, 85% 1%, 99% 6%, 100% 30%, 98.5% 55%, 100% 80%, 94% 94%, 62% 98%, 30% 96%, 8% 100%, 0.5% 88%, 1.5% 60%);
  --shape-2: polygon(0% 30%, 1% 8%, 18% 4%, 50% 0%, 78% 5%, 98% 2%, 100% 22%, 99% 48%, 100% 82%, 97% 92%, 72% 100%, 40% 95%, 14% 99%, 2% 92%, 0% 70%); }
@media (prefers-reduced-motion: reduce) { .marker-stroke { clip-path: inset(0); } }
