/* ============================================================
   NEEL BARMECHA — styles.css
   Dark editorial · warm gold · fully responsive
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; }
strong { font-weight: 600; }

/* ── Design Tokens ── */
:root {
  --dark:    #0a0807;
  --deeper:  #060504;
  --ink:     #ede9e3;
  --muted:   rgba(237,233,227,.45);
  --muted-2: rgba(237,233,227,.2);
  --line:    rgba(237,233,227,.09);
  --line-2:  rgba(237,233,227,.04);
  --cream:   #f2ede6;

  /* Gold accent */
  --gold:    #b8985a;
  --gold-d:  rgba(184,152,90,.15);
  --gold-xs: rgba(184,152,90,.06);

  /* Fonts */
  --sans:  'Syne', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --body:  'Inter', system-ui, sans-serif;

  /* Spacing */
  --pad:   clamp(1.4rem, 5vw, 4rem);
  --pad-v: clamp(5rem, 10vw, 8rem);

  /* Misc */
  --r:    3px;
  --r2:   6px;
  --ease: cubic-bezier(.16,1,.3,1);
}

/* ── Base ── */
body {
  background: var(--dark);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.show-md { display: none; }
.show-sm  { display: none; }
@media (min-width: 640px) { .show-md { display: inline; } }
@media (min-width: 420px) { .show-sm  { display: inline; } }


/* ══════════════════════════════
   CURSOR
══════════════════════════════ */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .25s var(--ease), height .25s var(--ease), opacity .3s;
  opacity: .7;
}
.cursor.big {
  width: 36px; height: 36px;
  background: transparent;
  border: 1px solid var(--gold);
  opacity: .5;
}
@media (hover: none) { .cursor { display: none; } }


/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 1rem;
  padding: 0 var(--pad);
  height: 60px;
  background: rgba(10,8,7,.9);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-2);
  transition: border-color .3s;
}
.nav__brand {
  font-family: var(--sans); font-weight: 800;
  font-size: 1rem; letter-spacing: .05em;
  color: var(--ink); transition: color .2s; flex-shrink: 0;
}
.nav__brand:hover { color: var(--gold); }

.nav__center-links {
  display: flex; gap: clamp(1.2rem,3vw,2.5rem);
  flex: 1; justify-content: center;
}
.nav__center-links a {
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .2s; position: relative; padding-bottom: 2px;
}
.nav__center-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__center-links a:hover { color: var(--ink); }
.nav__center-links a:hover::after { transform: scaleX(1); }

.nav__cta {
  margin-left: auto; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(184,152,90,.35); border-radius: 50px;
  padding: .35rem .95rem; transition: background .2s, color .2s, border-color .2s; flex-shrink: 0;
}
.nav__cta:hover { background: var(--gold); color: var(--dark); border-color: var(--gold); }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  margin-left: auto; padding: .4rem;
}
.nav__toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink); transition: transform .25s, opacity .2s;
}
.nav__toggle.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 680px) {
  .nav__center-links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
}


/* ══════════════════════════════
   MOBILE MENU
══════════════════════════════ */
.mob-menu {
  position: fixed; inset: 0; background: var(--deeper); z-index: 99;
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem var(--pad) 3rem;
  pointer-events: none; opacity: 0; transform: translateY(-10px);
  transition: opacity .28s var(--ease), transform .28s var(--ease);
}
.mob-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mob-menu__inner { display: flex; flex-direction: column; gap: 0; }

.mob-link {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.2rem,10vw,3.2rem); letter-spacing: -.03em;
  color: var(--ink); line-height: 1.1;
  display: flex; align-items: baseline; gap: .8rem;
  padding: .5rem 0; transition: color .2s; border-bottom: 1px solid var(--line);
}
.mob-link:last-child { border-bottom: none; }
.mob-link::before {
  content: attr(data-num); font-family: var(--body);
  font-size: .6rem; font-weight: 400; letter-spacing: .1em;
  color: var(--muted); align-self: center;
}
.mob-link:hover { color: var(--gold); }

.mob-menu__foot {
  margin-top: auto; display: flex; flex-wrap: wrap;
  gap: .4rem 2rem; font-size: .72rem; color: var(--muted); padding-top: 2rem;
}


/* ══════════════════════════════
   SECTION SHARED
══════════════════════════════ */
.section { padding: var(--pad-v) var(--pad); }
.section-light { background: var(--cream); color: #1c180f; }

.section__header {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 2rem; align-items: start;
  margin-bottom: clamp(2.5rem,6vw,5rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.4rem,3.5vw,2.2rem);
}
.section__header--light { border-color: rgba(28,24,15,.1); }

.section__label { display: flex; flex-direction: column; gap: .35rem; padding-top: .15rem; }
.section__num { font-size: .62rem; letter-spacing: .14em; color: var(--muted-2); font-weight: 400; }
.section-light .section__num { color: rgba(28,24,15,.3); }
.section__label > span:last-child {
  font-family: var(--sans); font-size: .76rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.section-light .section__label > span:last-child { color: rgba(28,24,15,.5); }

.section__intro { display: flex; flex-direction: column; gap: 1.1rem; }
.section__title {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.9rem,4vw,3.2rem);
  letter-spacing: -.03em; line-height: 1.07; color: var(--ink);
}
.section-light .section__title { color: #1c180f; }
.section__desc { font-size: .9rem; line-height: 1.72; color: var(--muted); max-width: 50ch; }
.section__desc strong { color: var(--ink); font-weight: 600; }
.section-light .section__desc { color: rgba(28,24,15,.6); }
.section-light .section__desc strong { color: #1c180f; }

@media (max-width: 760px) {
  .section__header { grid-template-columns: 1fr; gap: 1rem; }
  .section__label { flex-direction: row; align-items: center; gap: .6rem; }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }


/* ══════════════════════════════
   PILLS
══════════════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.4rem; border-radius: 50px; border: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s; white-space: nowrap;
}
.pill:hover { color: var(--ink); border-color: rgba(237,233,227,.25); }
.pill--solid { background: var(--gold); border-color: var(--gold); color: #0a0807; font-weight: 600; }
.pill--solid:hover { background: #cfab6a; border-color: #cfab6a; color: #0a0807; }
.pill--lg { padding: .75rem 2rem; font-size: .9rem; }


/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(60px + clamp(2rem,5vw,4rem)) var(--pad) 0;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(237,233,227,.042) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero__glow {
  position: absolute; top: 10%; left: -25%;
  width: 80vmax; height: 80vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,152,90,.055) 0%, transparent 62%);
  pointer-events: none; z-index: 0;
}

.hero__body { position: relative; z-index: 1; width: 100%; }

/* ── Hero split: text left, photo right ── */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero__text { min-width: 0; }

/* Photo column */
.hero__photo-col {
  display: flex; align-items: center; justify-content: flex-end;
}
.hero__photo-frame {
  width: 100%; max-width: 300px;
  aspect-ratio: 3 / 4;
  border-radius: 6px; overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.hero__photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: grayscale(10%) contrast(1.04);
  display: block;
}
/* Gold top-bar accent */
.hero__photo-frame::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold), transparent);
  z-index: 1;
}
.hero__photo-tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: .7rem .9rem;
  background: linear-gradient(to top, rgba(6,5,4,.85) 60%, transparent);
  display: flex; justify-content: space-between;
  font-size: .58rem; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(237,233,227,.55); z-index: 1;
}

.hero__top-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(1.4rem,4vw,2.5rem);
}
.hero__eyebrow {
  display: flex; align-items: center; gap: .5rem;
  font-size: .73rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); opacity: 0; transition: opacity .6s var(--ease);
}
.hero__eyebrow.in { opacity: 1; }
.eyebrow-sep { color: var(--muted-2); }

.dot-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,.4); animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(74,222,128,0); }
}

.hero__year { font-size: .62rem; letter-spacing: .12em; color: var(--muted-2); font-weight: 400; }

.hero__name {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.8rem, 5.5vw, 6rem);
  line-height: .88; letter-spacing: -.04em; text-transform: uppercase; color: var(--ink);
  display: flex; flex-direction: column; gap: .04em;
  margin-bottom: .1em;
}
.lw { display: block; overflow: hidden; line-height: .96; padding-bottom: .04em; }
.li { display: block; transform: translateY(110%); transition: transform .78s var(--ease); }
.li.in { transform: translateY(0); }

.hero__divider {
  display: flex; align-items: center; gap: 1.2rem;
  margin-top: clamp(.9rem,2.5vw,1.8rem); margin-bottom: clamp(.8rem,2.5vw,1.5rem);
  opacity: 0; transition: opacity .6s var(--ease) .45s;
}
.hero__divider.in { opacity: 1; }
.hero__divider-line {
  flex: 1; max-width: 180px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.hero__divider-tag { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.hero__sub {
  font-size: clamp(.95rem,2vw,1.18rem); font-weight: 300; line-height: 1.62;
  color: var(--muted); max-width: 50ch;
  margin-bottom: clamp(1.8rem,5vw,2.8rem);
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero__sub.in { opacity: 1; transform: none; }

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: .75rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hero__ctas.in { opacity: 1; transform: none; }

/* Scroll hint — animated line + label */
.scroll-hint {
  position: absolute; bottom: clamp(4.5rem,9vh,7rem); right: var(--pad);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  opacity: 0; transition: opacity .8s var(--ease) 1.9s; z-index: 1;
}
.scroll-hint.in { opacity: 1; }
.scroll-hint.hidden { opacity: 0 !important; transition: opacity .4s; }
.scroll-hint__line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 1.9s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}
.scroll-hint span { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); writing-mode: vertical-rl; }

.hero__meta {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem;
  border-top: 1px solid var(--line);
  padding: 1.4rem var(--pad);
  margin: clamp(3rem,7vh,5rem) calc(-1 * var(--pad)) 0;
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}

@media (max-width: 480px) {
  .scroll-hint, .hero__year { display: none; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: .25rem; }
}


/* ══════════════════════════════
   AI WORK
══════════════════════════════ */
.ai-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r2); overflow: hidden; gap: 1px; margin-bottom: 2.5rem;
}

.ai-card {
  background: var(--dark);
  padding: clamp(1.6rem,4vw,2.8rem) clamp(1.4rem,3vw,2.2rem);
  display: flex; flex-direction: column; gap: 1.5rem;
  position: relative; overflow: hidden; transition: background .25s; cursor: default;
}
.ai-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gold); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.ai-card:hover { background: var(--gold-xs); }
.ai-card:hover::before { transform: scaleY(1); }

.ai-card__num { font-size: .62rem; letter-spacing: .14em; color: var(--muted-2); font-weight: 400; }
.ai-card__content { flex: 1; }
.ai-card__content h3 {
  font-family: var(--sans); font-size: clamp(.96rem,1.8vw,1.12rem);
  font-weight: 700; letter-spacing: -.02em; margin-bottom: .55rem; color: var(--ink);
}
.ai-card__content p { font-size: .84rem; line-height: 1.65; color: var(--muted); }
.ai-card__arrow { font-size: .9rem; color: var(--muted-2); transition: color .2s, transform .2s; align-self: flex-end; }
.ai-card:hover .ai-card__arrow { color: var(--gold); transform: translate(2px,-2px); }

.stack-row {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 1.8rem;
}
.stack-label { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); flex-shrink: 0; }
.stack-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.stack-tags span {
  font-size: .72rem; font-weight: 500; letter-spacing: .05em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 50px; padding: .25rem .75rem;
  transition: border-color .2s, color .2s;
}
.stack-tags span:hover { border-color: var(--gold); color: var(--gold); }

/* Wide card — spans all columns (Agentic Workflows) */
.ai-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.ai-card--wide .ai-card__content { flex: 1; }
.ai-card--wide .ai-card__content h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
}
.ai-card--wide .ai-card__arrow { align-self: center; flex-shrink: 0; }
.ai-card--wide .ai-card__num { flex-shrink: 0; }

@media (max-width: 860px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card--wide { flex-direction: column; align-items: flex-start; }
}


/* ══════════════════════════════
   ABOUT
══════════════════════════════ */
.about-layout { display: grid; grid-template-columns: 270px 1fr; gap: clamp(3rem,6vw,5rem); align-items: start; }

.about-photo-col { position: sticky; top: 80px; }
.about-photo { border-radius: var(--r2); overflow: hidden; position: relative; }
.about-photo img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: center top;
  filter: contrast(1.03) saturate(.92); transition: filter .4s, transform .4s;
}
.about-photo:hover img { filter: contrast(1.06) saturate(1); transform: scale(1.015); }
.about-photo__caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: .7rem .9rem;
  font-size: .63rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(237,233,227,.7);
  background: linear-gradient(to top, rgba(10,8,7,.75), transparent);
}

.about-headline {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(1.6rem,3.5vw,2.6rem);
  letter-spacing: -.03em; line-height: 1.1; color: #1c180f; margin-bottom: 1.8rem;
}
.about-body { font-size: .9rem; line-height: 1.72; color: rgba(28,24,15,.62); margin-bottom: 1rem; max-width: 52ch; }

.exp-list { margin-top: 2.5rem; border-top: 1px solid rgba(28,24,15,.1); }
.exp-item {
  display: flex; gap: 1.2rem; align-items: flex-start;
  padding: 1.3rem 0; border-bottom: 1px solid rgba(28,24,15,.1);
  transition: background .2s, padding .2s, margin .2s; border-radius: var(--r);
}
.exp-item:hover { background: rgba(184,152,90,.05); margin: 0 -.8rem; padding-left: .8rem; padding-right: .8rem; }

.exp-item__left { display: flex; flex-direction: column; align-items: center; gap: .4rem; flex-shrink: 0; width: 2.5rem; padding-top: .1rem; }
.exp-year { font-size: .67rem; letter-spacing: .1em; color: rgba(28,24,15,.4); }
.exp-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(28,24,15,.2); }
.exp-dot.now { background: var(--gold); box-shadow: 0 0 0 3px rgba(184,152,90,.2); }

.exp-item__right { flex: 1; }
.exp-role { font-size: .88rem; font-weight: 500; color: #1c180f; line-height: 1.35; margin-bottom: .25rem; }
.exp-role em { font-style: italic; font-weight: 400; }
.exp-note { font-size: .78rem; color: rgba(28,24,15,.5); line-height: 1.4; }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-photo-col { position: static; max-width: 300px; margin: 0 auto; }
  .about-photo img { aspect-ratio: 4/3; }
}
@media (max-width: 480px) {
  .about-photo-col { max-width: 100%; }
  .about-photo img { aspect-ratio: 1/1; }
}


/* ══════════════════════════════
   STUDIO / PROJECTS
══════════════════════════════ */
.pgrid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden;
}

.pcard {
  background: var(--dark); display: flex; flex-direction: column;
  overflow: hidden; position: relative;
  transition: background .25s, box-shadow .3s var(--ease);
}
.pcard:hover { background: var(--gold-xs); box-shadow: inset 0 0 0 1px rgba(184,152,90,.15); }

.pcard__vis {
  height: clamp(175px,22vw,265px); position: relative; overflow: hidden; flex-shrink: 0;
}
.klauza-bg    { background: rgba(111,76,200,.13);  border-bottom: 1px solid rgba(111,76,200,.15); }
.styloire-bg  { background: rgba(14,165,233,.11);  border-bottom: 1px solid rgba(14,165,233,.13); }
.collective-bg{ background: rgba(34,197,94,.10);   border-bottom: 1px solid rgba(34,197,94,.12); }

.pcard__body { padding: 1.5rem; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex: 1; }
.pcard__info { flex: 1; }
.pcard__tag { font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: .4rem; }
.pcard__name { font-family: var(--sans); font-size: clamp(1.1rem,2vw,1.3rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; color: var(--ink); }
.pcard__desc { font-size: .82rem; line-height: 1.6; color: var(--muted); }
.pcard__num { font-size: .63rem; letter-spacing: .1em; color: var(--muted-2); flex-shrink: 0; }

.pcard__link {
  display: block; font-size: .72rem; letter-spacing: .08em;
  color: var(--gold); padding: .8rem 1.5rem; border-top: 1px solid var(--line);
  transition: background .2s, color .2s;
}
.pcard__link:hover { background: var(--gold-d); }

@media (max-width: 860px) { .pgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .pgrid { grid-template-columns: 1fr; }
  .pcard__vis { height: 195px; }
}


/* ══════════════════════════════
   CARD VISUALIZATIONS
══════════════════════════════ */

/* Klauza – scanner */
.scan {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.2rem;
}
.scan__bar {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.8), transparent);
  animation: scanDown 2.6s ease-in-out infinite; top: 0;
}
@keyframes scanDown {
  0%,100% { top: 10%; opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  95% { top: 88%; }
}
.scan__doc {
  background: rgba(255,255,255,.05); border: 1px solid rgba(139,92,246,.25);
  border-radius: 4px; padding: 1rem; width: 82%; max-width: 200px;
  display: flex; flex-direction: column; gap: .4rem;
}
.sdoc-row { height: 6px; background: rgba(255,255,255,.13); border-radius: 2px; width: 100%; }
.sdoc-row--s { width: 45% !important; }
.sdoc-flag {
  font-size: .6rem; color: #fbbf24; letter-spacing: .04em;
  background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.25);
  padding: .2rem .5rem; border-radius: 2px; align-self: flex-start;
  animation: flagFlash 2.2s ease-in-out infinite;
}
@keyframes flagFlash { 0%,100% { opacity: .6; } 50% { opacity: 1; } }

/* Styloire – mailer */
.mailer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: .5rem; padding: 1rem; }
.mailer__head { display: flex; gap: .3rem; margin-bottom: .2rem; }
.mailer__head span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.12); }
.mailer__head span:first-child  { background: rgba(239,68,68,.55); }
.mailer__head span:nth-child(2) { background: rgba(234,179,8,.45); }
.mailer__head span:last-child   { background: rgba(34,197,94,.45); }
.mailer__status { font-size: .65rem; color: rgba(56,189,248,.95); letter-spacing: .06em; }
.mailer__status b { color: rgba(255,255,255,.75); }
.mailer__rows { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.mailer__row {
  height: 6px; background: linear-gradient(90deg, rgba(14,165,233,.55), rgba(14,165,233,.18));
  border-radius: 2px; transition: width 1.2s var(--ease);
}

/* Collective – nodes */
.nodes { position: absolute; inset: 0; }
.nodes span {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(34,197,94,.55); animation: nodeFloat 4s ease-in-out infinite;
}
.nodes span:nth-child(1) { top:25%; left:20%; animation-delay:0s;   width:11px;height:11px;background:rgba(34,197,94,.75); }
.nodes span:nth-child(2) { top:55%; left:55%; animation-delay:.5s; }
.nodes span:nth-child(3) { top:30%; left:72%; animation-delay:1s;   width:12px;height:12px;background:rgba(34,197,94,.65); }
.nodes span:nth-child(4) { top:72%; left:28%; animation-delay:1.5s; }
.nodes span:nth-child(5) { top:65%; left:72%; animation-delay:.8s;  width:9px;height:9px; }
.nodes span:nth-child(6) { top:14%; left:48%; animation-delay:.3s; }
@keyframes nodeFloat { 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(4px,-6px); } }
.nodes__lines { position:absolute;inset:0;width:100%;height:100%;pointer-events:none; }


/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2.5rem; padding-bottom: var(--pad-v); }

.contact-headline-wrap { position: relative; }
.contact-headline {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.4rem,6vw,5.5rem);
  letter-spacing: -.03em; line-height: 1.08; color: var(--ink); max-width: 12ch;
}
.contact-headline em { font-style: italic; font-weight: 400; color: var(--gold); }
.contact-deco {
  position: absolute; top: -.5rem; right: -2.5rem;
  font-size: clamp(2rem,5vw,4rem); color: var(--gold); opacity: .14;
  animation: spinSlow 22s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.contact-note { font-size: .8rem; color: var(--muted-2); letter-spacing: .02em; }

@media (max-width: 520px) {
  .contact-actions { flex-direction: column; }
  .contact-actions .pill { justify-content: center; }
  .contact-deco { display: none; }
}


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer { position: relative; overflow: hidden; padding-top: 3rem; border-top: 1px solid var(--line); }
.site-footer__top {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 3rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.footer-name { font-family: var(--sans); font-weight: 800; font-size: 1rem; letter-spacing: -.01em; margin-bottom: .25rem; }
.footer-sub { font-size: .72rem; color: var(--muted); letter-spacing: .06em; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a, .footer-social a { font-size: .75rem; color: var(--muted); letter-spacing: .05em; transition: color .2s; }
.footer-nav a:hover, .footer-social a:hover { color: var(--ink); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: .5rem; padding: 1.2rem 0;
  font-size: .72rem; color: var(--muted-2);
}
.back-top { color: var(--muted); transition: color .2s; letter-spacing: .08em; font-size: .72rem; }
.back-top:hover { color: var(--gold); }

.footer-year {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(5rem,20vw,18rem); line-height: .85;
  color: transparent; -webkit-text-stroke: 1px rgba(237,233,227,.038);
  user-select: none; pointer-events: none; display: block; text-align: center; margin-top: 1rem;
}

@media (max-width: 640px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-nav, .footer-social { flex-direction: row; flex-wrap: wrap; gap: .4rem 1.2rem; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}


/* ══════════════════════════════
   CERTIFICATIONS
══════════════════════════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 1.8rem;
}

.cert-card {
  background: var(--dark);
  padding: 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  position: relative;
  transition: background .2s;
}
.cert-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4285F4, #34A853);
  opacity: .5;
  transition: opacity .2s;
}
.cert-card:hover { background: var(--gold-xs); }
.cert-card:hover::before { opacity: 1; }

.cert-card__issuer {
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 400;
}
.cert-card__name {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  flex: 1;
}
.cert-card__date {
  font-size: .62rem;
  letter-spacing: .08em;
  color: var(--gold);
  font-weight: 400;
}

.certs-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color .2s;
  padding-top: .2rem;
}
.certs-link:hover { color: var(--gold); }

@media (max-width: 1000px) { .certs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px)  { .certs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px)  { .certs-grid { grid-template-columns: repeat(2, 1fr); } }


/* ══════════════════════════════
   GLOBAL RESPONSIVE SWEEP
══════════════════════════════ */
@media (max-width: 900px) {
  :root { --pad: clamp(1.2rem,5vw,2.5rem); }
}
@media (max-width: 640px) {
  :root { --pad: 1.2rem; --pad-v: 3.5rem; }
  .section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  .section__header { margin-bottom: 2rem; padding-top: 1.4rem; gap: .9rem; }
  .stack-row { gap: 1rem; }
  .stack-label { width: 100%; }
}
/* ── Hero: stack on mobile ── */
@media (max-width: 780px) {
  .hero__split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__photo-col {
    justify-content: flex-start;
    order: -1; /* Photo above text on mobile */
  }
  .hero__photo-frame {
    max-width: 180px;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 420px) {
  :root { --pad: 1rem; }
  .hero__name { letter-spacing: -.05em; }
  .hero__eyebrow { font-size: .67rem; gap: .35rem; }
  .eyebrow-sep, .hero__eyebrow span:last-child { display: none; }
  .hero__ctas { gap: .6rem; }
  .pill { padding: .55rem 1.1rem; }
  .pill--lg { padding: .65rem 1.4rem; font-size: .84rem; }
  .exp-item { gap: .8rem; }
  .footer-year { font-size: 18vw; }
}

/* ============================================================
   ░░ CREATIVE LAYER — grain, EKG, ticker, vitals, quote ░░
   ============================================================ */

/* ── Gold selection + scrollbar ── */
::selection { background: var(--gold); color: var(--deeper); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--deeper); }
::-webkit-scrollbar-thumb { background: #2a251f; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Film grain overlay ── */
.grain {
  position: fixed; inset: -50%; width: 200%; height: 200%;
  z-index: 9990; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grainShift 9s steps(10) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0,0); }
  10% { transform: translate(-3%,-2%); }
  30% { transform: translate(2%,-4%); }
  50% { transform: translate(-2%,3%); }
  70% { transform: translate(4%,1%); }
  90% { transform: translate(-1%,4%); }
}

/* ── Live NYC clock ── */
.hero__clock {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem; letter-spacing: .18em;
  color: var(--gold); opacity: .85;
  font-variant-numeric: tabular-nums;
}

/* ── EKG heartbeat divider ── */
.ekg {
  position: relative;
  background: var(--dark);
  padding: 1.6rem var(--pad) 2.4rem;
  border-top: 1px solid var(--line-2);
  overflow: hidden;
}
.ekg svg { width: 100%; height: 54px; display: block; }
.ekg__base {
  fill: none; stroke: rgba(237,233,227,.08); stroke-width: 1.5;
  stroke-linejoin: round; stroke-linecap: round;
}
.ekg__sweep {
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 90 910; stroke-dashoffset: 1000;
  animation: ekgSweep 5s linear infinite;
  filter: drop-shadow(0 0 6px rgba(184,152,90,.55));
}
@keyframes ekgSweep { to { stroke-dashoffset: 0; } }
.ekg__label {
  position: absolute; right: var(--pad); bottom: .7rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Marquee ticker ── */
.ticker {
  overflow: hidden;
  background: var(--deeper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0;
}
.ticker__track {
  display: flex; width: max-content;
  animation: tickerScroll 32s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__seq {
  white-space: nowrap;
  font-family: var(--sans); font-weight: 600;
  font-size: .76rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted);
}
.ticker__seq i { font-style: normal; color: var(--gold); padding: 0 1.6rem; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ── Vitals monitor card (About) ── */
.vitals {
  background: var(--deeper);
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(10,8,7,.85);
  box-shadow: 0 26px 55px rgba(10,8,7,.22);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  position: sticky; top: 92px;
}
.vitals__head {
  display: flex; align-items: center; gap: .55rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.vitals__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(74,222,128,.4); animation: dotPulse 2.2s ease-in-out infinite;
}
.vitals__status { margin-left: auto; color: #4ade80; font-size: .54rem; letter-spacing: .22em; }
.vitals__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .92rem 1rem;
  border-bottom: 1px solid var(--line-2);
}
.vitals__row:last-child { border-bottom: none; }
.vitals__label {
  font-size: .6rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted);
}
.vitals__num {
  font-family: var(--sans); font-weight: 800; font-size: 1.45rem;
  color: var(--ink); line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vitals__num i { font-style: normal; font-size: .78rem; font-weight: 600; color: var(--gold); }
.vitals__foot {
  display: flex; justify-content: space-between;
  padding: .8rem 1rem;
  border-top: 1px solid var(--line);
  font-size: .54rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-2);
}

/* ── Pull-quote interstitial ── */
.quote-section {
  background: var(--dark);
  padding: clamp(5rem, 11vw, 9rem) var(--pad);
  border-top: 1px solid var(--line-2);
}
.quote-inner {
  position: relative;
  max-width: 880px; margin: 0 auto;
  text-align: center;
}
.quote-mark {
  display: block;
  font-family: var(--serif); font-size: clamp(4rem, 9vw, 7rem);
  line-height: .4; color: var(--gold); opacity: .5;
  margin-bottom: 1.4rem;
}
.quote-text {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.32; color: var(--ink);
  margin: 0 0 1.8rem;
}
.quote-text em { color: var(--gold); font-style: italic; }
.quote-attr {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

/* ── Project card tilt support ── */
.pcard { transition: transform .25s var(--ease), box-shadow .35s var(--ease); will-change: transform; }

/* ── Creative layer responsive ── */
@media (max-width: 900px) {
  .vitals { position: static; }
}
@media (max-width: 680px) {
  .hero__clock { display: none; }
  .ekg { padding: 1.2rem var(--pad) 2.1rem; }
  .ekg svg { height: 40px; }
  .ticker__seq { font-size: .66rem; letter-spacing: .2em; }
  .vitals__num { font-size: 1.25rem; }
}

/* ── EverPage + Spur project cards ── */
.pcard--wide { grid-column: span 2; }
@media (max-width: 520px) { .pcard--wide { grid-column: auto; } }

.pcard__soon {
  display: block; font-size: .72rem; letter-spacing: .08em;
  color: var(--muted-2); padding: .8rem 1.5rem; border-top: 1px solid var(--line);
}

/* EverPage — book-spine streak bars */
.everpage-bg { background: rgba(190,80,75,.10); border-bottom: 1px solid rgba(190,80,75,.14); }
.shelf {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem 2rem 1.2rem;
}
.shelf__bars { display: flex; gap: .55rem; align-items: flex-end; height: 68%; }
.shelf__bars span {
  flex: 1; max-width: 36px; border-radius: 3px 3px 0 0;
  height: calc(var(--h) * 100%);
  transform-origin: bottom;
  animation: shelfPulse 3.4s ease-in-out infinite;
  animation-delay: var(--bd);
}
.shelf__bars span:nth-child(1) { background: rgba(168,80,64,.85); }
.shelf__bars span:nth-child(2) { background: rgba(74,114,87,.85); }
.shelf__bars span:nth-child(3) { background: rgba(133,104,168,.85); }
.shelf__bars span:nth-child(4) { background: rgba(176,138,62,.85); }
.shelf__bars span:nth-child(5) { background: rgba(74,114,87,.85); }
@keyframes shelfPulse {
  0%, 100% { transform: scaleY(.82); }
  50%      { transform: scaleY(1); }
}
.shelf__cap {
  margin-top: .9rem;
  font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* Spur — itinerary rows booking themselves */
.spur-bg { background: rgba(245,158,11,.08); border-bottom: 1px solid rgba(245,158,11,.12); }
.itin {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: .6rem; padding: 0 clamp(1.4rem, 4vw, 3rem);
}
.itin__row {
  display: flex; align-items: center; gap: 1rem;
  background: rgba(10,8,7,.55);
  border: 1px solid var(--line); border-radius: 6px;
  padding: .6rem .95rem;
  font-size: .68rem; letter-spacing: .04em;
  opacity: 0;
  animation: itinIn 6.5s var(--ease) infinite;
  animation-delay: var(--id);
}
@keyframes itinIn {
  0%        { opacity: 0; transform: translateY(8px); }
  8%, 82%   { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateY(-4px); }
}
.itin__time { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold); }
.itin__what { color: var(--ink); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.itin__ok   { color: #4ade80; font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; flex-shrink: 0; }
