/* ============================================================
   SANIA KIRAN — "THE VEIL & THE STRIKE"
   Design tokens + all styling. Dark editorial, abstract.
   Palette: charcoal base · deep magenta-maroon cape · warm gold strike.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* palette */
  --c-bg:          #0A0A0C;
  --c-bg-soft:     #101014;
  --c-bg-elev:     #15151A;
  --c-stroke:      rgba(242, 239, 233, 0.10);
  --c-stroke-bold: rgba(242, 239, 233, 0.20);

  --c-cape:        #B1123F;
  --c-cape-soft:   #7A0C2A;
  --c-cape-bright: #D8245A;

  --c-gold:        #E0B352;
  --c-gold-soft:   #B98B33;

  --c-text:        #F2EFE9;
  --c-text-mute:   rgba(242, 239, 233, 0.58);
  --c-text-dim:    rgba(242, 239, 233, 0.40);

  /* type */
  --f-display: "Syne", "Arial Narrow", sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-accent:  "Fraunces", Georgia, serif;

  /* layout */
  --pad-x: clamp(1.25rem, 5vw, 6rem);
  --pad-y: clamp(6rem, 12vh, 11rem);
  --maxw:  1640px;
  --gutter: clamp(1rem, 3vw, 3rem);

  /* motion */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-strike: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-body);
  font-size: clamp(15px, 1vw + 0.6rem, 17px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: auto;
}

/* hide native cursor on fine pointers (custom cursor takes over) */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; border-radius: 2px; }

::selection { background: var(--c-cape); color: var(--c-text); }

/* shared typography helpers */
.kicker {
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}

/* Force line breaks only between words — never mid-word */
.section-head__title,
.contact__big,
.proj__title,
.tl-item__role,
.hero__reveal-line {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
}

/* Manual line-break helper — visible on desktop, collapses on mobile */
.br-desktop { display: inline; }
@media (max-width: 600px) {
  .br-desktop { display: none; }
}

/* ---------- BACKGROUND LAYERS ---------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-3%, 2%); }
  50%  { transform: translate(2%, -2%); }
  75%  { transform: translate(-2%, -3%); }
  100% { transform: translate(2%, 3%); }
}

.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

main { position: relative; z-index: 3; }

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 10000;
  background: transparent;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--c-cape), var(--c-gold));
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- PARTICLE CANVAS ---------- */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero { position: relative; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 9999;
  pointer-events: none;
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
}

.cursor__dot {
  position: absolute;
  top: 0; left: 0;
  width: 7px; height: 7px;
  background: var(--c-text);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s, transform 0.2s var(--ease-out);
}
.cursor__ring {
  position: absolute;
  top: 0; left: 0;
  width: 42px; height: 42px;
  border: 1px solid var(--c-text);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out),
              border-radius 0.4s var(--ease-out), border-color 0.3s,
              background 0.3s;
  display: grid;
  place-items: center;
  color: var(--c-text);
}
.cursor__quill {
  width: 18px; height: 18px;
  opacity: 0;
  transition: opacity 0.25s;
  transform: rotate(-12deg);
}
.cursor__label {
  position: absolute;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s, transform 0.25s;
}

/* label mode (data-cursor="label") */
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__ring {
  width: 78px; height: 78px;
  background: var(--c-cape);
  border-color: var(--c-cape);
  mix-blend-mode: normal;
}
.cursor.is-label .cursor__label {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}
.cursor.is-label .cursor__quill { opacity: 0; }

/* quill mode on project links / generic interactive */
.cursor.is-hover .cursor__dot { opacity: 0; }
.cursor.is-hover .cursor__ring {
  width: 54px; height: 54px;
  background: var(--c-gold);
  border-color: var(--c-gold);
  mix-blend-mode: normal;
  color: var(--c-bg);
}
.cursor.is-hover .cursor__quill { opacity: 1; }

/* ============================================================
   INTRO LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--c-bg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.loader.is-done { pointer-events: none; }
.loader__inner {
  width: 100%;
  max-width: var(--maxw);
  padding: 0 var(--pad-x);
  position: relative;
}
.loader__topline,
.loader__bottomline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}
.loader__skip {
  color: var(--c-text-mute);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  padding: 0.4rem 0.2rem;
  transition: color 0.25s;
}
.loader__skip:hover { color: var(--c-gold); }

.loader__name-wrap {
  margin: clamp(2rem, 8vh, 5rem) 0;
  overflow: hidden;
}
.loader__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3rem, 14vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  color: var(--c-text);
  text-align: center;
  transform: translateY(110%);
}

.loader__count { color: var(--c-gold); font-variant-numeric: tabular-nums; }

/* diagonal wipe */
.loader__wipe {
  position: absolute;
  inset: 0;
  background: var(--c-cape);
  transform: translate(-110%, -110%) rotate(0deg);
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.2vw, 1.6rem) var(--pad-x);
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--c-text);
  border-radius: 50%;
  font-size: 0.82rem;
}
.nav__brandtext { font-size: 0.95rem; }

.nav__links {
  display: flex;
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.nav__links a {
  position: relative;
  padding: 0.3rem 0;
  color: var(--c-text);
  opacity: 0.85;
  transition: opacity 0.25s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  border: 1px solid var(--c-text);
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: background 0.3s, color 0.3s;
}
.nav__cta:hover { background: var(--c-text); color: var(--c-bg); }

.nav__burger {
  display: none;
  width: 38px; height: 38px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--c-text);
  transition: transform 0.3s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* mobile slide-over menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--c-bg);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: center;
}
.mobile-menu a {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 3.5rem);
  letter-spacing: -0.02em;
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section {
  position: relative;
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.section-head__index {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cape-bright);
  font-weight: 500;
}
.section-head__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.8vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

/* ============================================================
   STRIKE DIVIDER — chevron motif (replaces cape-wipe)
   Thin line + chevron mark + thin line. Tied to the "strike" concept.
   ============================================================ */
.strike-divider {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 1px;
  position: relative;
}
.strike-divider__line {
  flex: 1;
  height: 1px;
  background: var(--c-stroke);
  position: relative;
  overflow: hidden;
}
.strike-divider__line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--c-cape) 50%, transparent);
  transform: translateX(-100%);
  will-change: transform;
}
.strike-divider__chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  position: relative;
  margin: 0 clamp(0.6rem, 1.5vw, 1.2rem);
}
.strike-divider__chevron::before,
.strike-divider__chevron::after {
  content: "";
  position: absolute;
  background: var(--c-cape);
  width: 12px;
  height: 1px;
  top: 50%;
  left: 50%;
}
.strike-divider__chevron::before {
  transform: translate(-90%, -50%) rotate(35deg);
}
.strike-divider__chevron::after {
  transform: translate(-10%, -50%) rotate(-35deg);
}

/* Animated state — JS adds .is-visible */
.strike-divider.is-visible .strike-divider__line:first-child::after {
  animation: strikeSweepRight 1.2s var(--ease-inout) forwards;
}
.strike-divider.is-visible .strike-divider__line:last-child::after {
  animation: strikeSweepLeft 1.2s var(--ease-inout) forwards;
}
@keyframes strikeSweepRight {
  from { transform: translateX(-100%); }
  to   { transform: translateX(180%); }
}
@keyframes strikeSweepLeft {
  from { transform: translateX(200%); }
  to   { transform: translateX(-80%); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 5vh, 4rem);
  padding-top: clamp(7rem, 14vh, 10rem);
}
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.hero__meta--right { text-align: right; }
.hero__core { align-self: center; }

.hero__reveal-line {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  overflow: hidden;
}
.hero__reveal-line--accent {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--c-cape-bright);
}
.hero__line-text {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}

.hero__nameblock {
  margin: clamp(1.5rem, 4vh, 3rem) 0 clamp(1.2rem, 3vh, 2.2rem);
  overflow: hidden;
}
.hero__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 17vw, 17rem);
  line-height: 0.82;
  letter-spacing: -0.045em;
  opacity: 0; /* set by JS */
}

.hero__roles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  opacity: 0;
}
.hero__dot { color: var(--c-gold); }

.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.hero__statement {
  font-family: var(--f-accent);
  font-style: italic;
  font-size: clamp(0.98rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  color: var(--c-text-mute);
  max-width: 42ch;
}
.hero__scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: var(--c-stroke-bold);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: var(--c-gold);
  animation: scrollLine 2s var(--ease-inout) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================================================
   01 — ABOUT: asymmetric two-column split
   Left column 60%, right column 40% with upward offset
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}
.about__lede {
  padding-top: clamp(1rem, 3vw, 3rem);
}
.about__paragraph {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  overflow: hidden;
}
.about__paragraph span {
  display: inline-block;
  transform: translateY(110%);
  will-change: transform;
}
.about__paragraph--muted {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--c-text-mute);
  line-height: 1.55;
  letter-spacing: 0;
  margin-top: 0.6rem;
}

.about__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--c-stroke);
  /* Offset upward to create asymmetry — facts feel "pinned" higher */
  margin-top: -1rem;
}
.fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--c-stroke);
  opacity: 0;
  transform: translateY(20px);
}
.fact__label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.fact__value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  text-align: right;
}

/* ============================================================
   02 — EXPERIENCE TIMELINE: left-rail with connecting line
   ============================================================ */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.tl-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--c-stroke);
  opacity: 0;
  transform: translateY(40px);
}
.tl-item:last-child { border-bottom: 1px solid var(--c-stroke); }

.tl-item__rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-item__node {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--c-bg);
  border: 1.5px solid var(--c-cape);
  margin-top: 0.4rem;
  position: relative;
  flex-shrink: 0;
  z-index: 2;
  transition: background 0.4s, box-shadow 0.4s;
}
.tl-item__node::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid var(--c-cape);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
}
/* Connecting line between nodes */
.tl-item__connector {
  display: block;
  width: 1px;
  flex: 1;
  background: linear-gradient(180deg, var(--c-cape) 0%, var(--c-stroke) 100%);
  margin-top: 0.5rem;
  min-height: 2rem;
}

.tl-item:hover .tl-item__node {
  background: var(--c-cape);
  box-shadow: 0 0 0 4px rgba(177, 18, 63, 0.18);
}
.tl-item:hover .tl-item__node::after { opacity: 0.5; transform: scale(1.4); }

.tl-item__head {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.tl-item__when {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gold);
}
.tl-item__kind {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--c-stroke);
  border-radius: 100px;
}
.tl-item__role {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.tl-item__org {
  font-family: var(--f-accent);
  font-style: italic;
  color: var(--c-cape-bright);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin: 0.3rem 0 1.1rem;
}
.tl-item__points {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 60ch;
}
.tl-item__points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--c-text-mute);
  font-size: clamp(0.94rem, 1.2vw, 1.05rem);
  line-height: 1.55;
}
.tl-item__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 8px; height: 1px;
  background: var(--c-gold);
}
.tl-item__points strong { color: var(--c-text); font-weight: 600; }

/* ============================================================
   03 — PROJECTS: large numbers, distinct tag styling, breathing room
   Alternating left/right alignment per project
   ============================================================ */
.projects { overflow: hidden; }

/* floating hover-reveal panel */
.projects__reveal {
  position: fixed;
  top: 0; left: 0;
  width: 260px;
  height: 320px;
  z-index: 50;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-spring);
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .projects__reveal { display: block; }
}
.projects__reveal-inner {
  width: 100%; height: 100%;
  background: var(--c-cape);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.2rem;
  position: relative;
}
.projects__reveal-kind {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.projects__reveal-img {
  flex: 1;
  margin: 1rem 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(224,179,82,0.4), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,0.18), transparent 55%);
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
}
.projects__reveal-cta {
  align-self: flex-end;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
}

.proj-list {
  display: flex;
  flex-direction: column;
  gap: clamp(0.5rem, 1vw, 0.8rem);
}
.proj {
  position: relative;
  border-bottom: 1px solid var(--c-stroke);
}
.proj:first-child { border-top: 1px solid var(--c-stroke); }

.proj__link {
  display: grid;
  grid-template-columns: clamp(50px, 8vw, 100px) 1fr auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.2rem) clamp(0.4rem, 1vw, 1rem);
  transition: padding-left 0.5s var(--ease-strike);
  position: relative;
}
.proj:hover .proj__link { padding-left: clamp(1rem, 2vw, 2rem); }

/* Large project number */
.proj__index {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  color: var(--c-text-dim);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.4s var(--ease-out);
}
.proj:hover .proj__index { color: var(--c-cape-bright); }

.proj__content { min-width: 0; }

.proj__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3.2vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: color 0.35s;
}
.proj:hover .proj__title { color: var(--c-cape-bright); }

.proj__tagline {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--f-accent);
  font-style: italic;
  color: var(--c-text-mute);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

.proj__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  text-align: right;
}

/* Distinct tag styling — not generic pills */
.proj__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}
.proj__tag {
  padding: 0.3rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--c-stroke-bold);
  color: var(--c-text-mute);
  background: rgba(242, 239, 233, 0.03);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.proj:hover .proj__tag {
  border-color: var(--c-cape);
  color: var(--c-text);
  background: rgba(177, 18, 63, 0.12);
}

.proj__metric {
  color: var(--c-gold);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Animated underline — hidden at rest, reveals on hover */
.proj__hover-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-cape), var(--c-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-strike);
}
.proj:hover .proj__hover-line {
  transform: scaleX(1);
}

/* Alternating alignment — odd projects align-right on their number */
.proj--left .proj__link {
  grid-template-columns: 1fr clamp(50px, 8vw, 100px) auto;
}
.proj--left .proj__index { order: 2; text-align: right; }
.proj--left .proj__content { order: 1; }
.proj--left .proj__meta { order: 3; }
.proj--left .proj__hover-line { transform-origin: right; }

/* MARQUEE */
.marquee {
  margin-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
  overflow: hidden;
  padding: clamp(1rem, 2vw, 1.6rem) 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  animation: marquee 26s linear infinite;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
}
.marquee__star { color: var(--c-cape-bright); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   04 — SKILLS: staggered masonry grid
   ============================================================ */
.skills__clusters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.cluster {
  border-top: 1px solid var(--c-stroke);
  padding-top: 1.6rem;
  opacity: 0;
  transform: translateY(30px);
}
/* Staggered vertical offsets for visual asymmetry */
.cluster--offset {
  margin-top: clamp(2rem, 5vw, 4rem);
}
.cluster--tall {
  margin-top: 0;
}
.cluster:nth-child(3) {
  margin-top: clamp(1rem, 3vw, 2.5rem);
}

.cluster__head {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.cluster__num {
  font-family: var(--f-display);
  font-size: 0.85rem;
  color: var(--c-gold);
  letter-spacing: 0.05em;
}
.cluster__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
}
.cluster__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.cluster__tags li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--c-stroke);
  border-radius: 100px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--c-text-mute);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
  cursor: default;
}
.cluster__tags li:hover {
  border-color: var(--c-cape);
  color: var(--c-text);
  background: rgba(177, 18, 63, 0.12);
  transform: translateY(-2px);
}

/* ============================================================
   05 — CONTACT: closing statement moment
   Intentional layout with large email CTA and considered grid
   ============================================================ */
.contact {
  padding-bottom: 0;
}
.contact__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 12vh, 10rem);
  position: relative;
}
/* Subtle gradient wash at the bottom — connected to cape palette */
.contact__inner::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -20%;
  right: -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(177, 18, 63, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.contact__index {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-cape-bright);
}
.contact__big {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  display: flex;
  flex-direction: column;
}
.contact__line { overflow: hidden; }
.contact__line span { display: inline-block; transform: translateY(110%); }
.contact__line--accent {
  font-family: var(--f-accent);
  font-style: italic;
  font-weight: 500;
  color: var(--c-cape-bright);
}

/* Large email CTA — the centerpiece of the closing */
.contact__cta-block {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
  border-top: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
}
.contact__email {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 3.6rem);
  letter-spacing: -0.02em;
  transition: color 0.4s var(--ease-out);
}
.contact__email:hover { color: var(--c-gold); }
.contact__email-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.5rem, 5vw, 4rem);
  height: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--c-stroke-bold);
  border-radius: 50%;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
  flex-shrink: 0;
}
.contact__email:hover .contact__email-arrow {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-bg);
  transform: translateX(6px);
}

/* Contact grid — 5 items in a considered 3+2 layout */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-stroke);
}
.clink {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(1.6rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.6rem);
  border-right: 1px solid var(--c-stroke);
  border-bottom: 1px solid var(--c-stroke);
  position: relative;
  transition: background 0.35s;
}
.clink:nth-child(3n) { border-right: none; }
.clink:hover { background: rgba(177, 18, 63, 0.06); }
.clink__label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.clink__value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
  word-break: break-word;
}
.clink__arrow {
  position: absolute;
  top: clamp(1.6rem, 3vw, 2.5rem);
  right: clamp(1rem, 2vw, 1.6rem);
  color: var(--c-text-dim);
  font-size: 1rem;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}
.clink:hover .clink__arrow { transform: translate(4px, -4px); color: var(--c-gold); }
.clink--static { cursor: default; }
.clink--static:hover { background: transparent; }
.clink--static:hover .clink__arrow { transform: none; color: var(--c-gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--c-stroke);
  background: var(--c-bg-soft);
  position: relative;
}
.footer__inner {
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) clamp(2rem, 4vw, 3rem);
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__mark {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--c-stroke);
  border-radius: 50%;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.9rem;
}
.footer__credit {
  font-family: var(--f-accent);
  font-style: italic;
  color: var(--c-text-mute);
  max-width: 50ch;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}
.footer__row--bottom {
  font-size: 0.78rem;
  color: var(--c-text-dim);
  letter-spacing: 0.06em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-stroke);
}
.footer__loc { color: var(--c-text-mute); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }

  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__facts { margin-top: 0; }
  .skills__clusters { grid-template-columns: 1fr; gap: 2.5rem; }
  .cluster--offset,
  .cluster:nth-child(3) { margin-top: 0; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .clink:nth-child(2n) { border-right: none; }

  .hero__bottom { grid-template-columns: 1fr; }
  .hero__scroll { flex-direction: row; align-items: center; }
  .hero__scroll-line { width: 60px; height: 1px; }
  .hero__scroll-line::after { width: 40%; height: 100%; animation: scrollLineH 2s var(--ease-inout) infinite; }
  @keyframes scrollLineH { 0%{transform:translateX(-100%);} 100%{transform:translateX(250%);} }

  /* Collapse alternating layout on tablet */
  .proj--left .proj__link {
    grid-template-columns: clamp(50px, 8vw, 100px) 1fr auto;
  }
  .proj--left .proj__index { order: 0; text-align: left; }
  .proj--left .proj__content { order: 0; }
  .proj--left .proj__meta { order: 0; }

  .proj__link {
    grid-template-columns: 50px 1fr;
    grid-template-areas: "index title" ". meta";
    row-gap: 0.4rem;
  }
  .proj__index { grid-area: index; font-size: clamp(1.8rem, 4vw, 2.5rem); }
  .proj__content { grid-area: title; }
  .proj__meta { grid-area: meta; align-items: flex-start; text-align: left; }
  .proj__tags { justify-content: flex-start; }
}

@media (max-width: 600px) {
  :root { --pad-y: 5rem; }
  .hero__meta { flex-direction: row; justify-content: space-between; }
  .hero__meta--right { text-align: right; }
  .hero__roles { font-size: 0.68rem; gap: 0.4rem 0.7rem; }

  .tl-item { grid-template-columns: 32px 1fr; gap: 1rem; }
  .tl-item__head { gap: 0.7rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .clink { border-right: none !important; }

  .footer__row { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .contact__email { font-size: clamp(1.1rem, 4vw, 1.6rem); }

  .section-head__title {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
    max-width: none;
  }

  .nav__burger { min-width: 44px; min-height: 44px; }
  .mobile-menu a { padding: 1.2rem 0; }
  .cluster__tags li { padding: 0.65rem 1rem; font-size: 0.7rem; }
  .contact__email-text { word-break: break-all; }
}

@media (max-width: 480px) {
  .particle-canvas { display: none; }
  .hero__name { font-size: clamp(2.8rem, 14vw, 4rem); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .grain { display: none; }
  .hero__line-text,
  .hero__name,
  .hero__roles,
  .about__paragraph span,
  .contact__line span,
  .fact,
  .tl-item,
  .cluster {
    transform: none !important;
    opacity: 1 !important;
  }
  .loader { display: none; }
  .proj__hover-line { display: none; }
  .strike-divider__line::after { display: none; }
  .particle-canvas { display: none; }
}
