/* ==========================================================================
   AaryaFx
   White ground, near-black ink, hairline dividers. Emphasis comes from
   COLOUR (ink vs dim) rather than weight, so headings stay at weight 400.
   ========================================================================== */

:root {
  --paper: #ffffff;
  --ink:   #111111;
  --dim:   #b2b2b2;
  --muted: #6b6b6b;
  --hair:  #ececec;
  --band:  #f4f4f5;
  --red:   #e8371f;
  --bar:   rgba(255, 255, 255, 0.9);

  --tile-base:  #f7f6f3;
  --tile-edge:  #e8e6e1;
  --tile-hover: #cfccc5;
  --tile-glow:  rgba(17, 17, 17, 0.04);
  --bloom-1: rgba(196, 128, 146, 0.20);
  --bloom-2: rgba(122, 164, 152, 0.20);
  --bloom-3: rgba(204, 172, 120, 0.22);

  --card-bg:    #fbf9f4;
  --card-ink:   #1d1b17;
  --card-muted: #6a665e;
  --card-line:  rgba(29, 27, 23, 0.18);
  --card-soft:  rgba(29, 27, 23, 0.12);
  --card-shot:  #efece3;
  --card-gloss: rgba(255, 255, 255, 0.55);
  --card-rim:   transparent;

  --sans: 'Geist', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --type: 'Special Elite', 'Courier New', monospace;   /* badge name */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut:  clamp(1rem, 4vw, 2.5rem);
  --wrap: 1280px;
}


:root { color-scheme: light; }

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--paper); padding: 0.6rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.dim { color: var(--dim); }
.dot { color: var(--red); }

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.head {
  max-width: var(--wrap); margin-inline: auto;
  padding: 1.1rem var(--gut) 0;
}
.head__mark { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em; }
.head__meta {
  font-size: 0.85rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.head__nav {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
  margin-top: 1.5rem; padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hair);
  font-size: 0.95rem;
}
.head__nav a, .head__nav button {
  position: relative; padding: 0 0 2px;
  font: inherit; color: var(--muted);
  background: none; border: 0; cursor: url("cursor-hand.png") 9 0, pointer;
  transition: color 0.25s var(--ease);
}
.head__nav a:hover, .head__nav button:hover { color: var(--ink); }
.head__nav a[aria-current="page"] { color: var(--ink); }
.head__nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.9rem;
  height: 1px; background: var(--ink);
}

.head__id { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }


/* sticky bar, revealed once the header leaves the viewport */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem var(--gut);
  background: var(--bar);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
  transform: translateY(-102%);
  transition: transform 0.4s var(--ease);
}
.bar.is-in { transform: none; }
.bar__mark { font-size: 0.95rem; font-weight: 500; }
.bar__nav { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.75rem); font-size: 0.9rem; }
.bar__nav a, .bar__nav button {
  font: inherit; color: var(--muted); background: none; border: 0;
  cursor: url("cursor-hand.png") 9 0, pointer; transition: color 0.25s var(--ease);
}
.bar__nav a:hover, .bar__nav button:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(2rem, 6vw, 3.5rem) var(--gut) 0;
}

/* 64px at 1440 in the reference, weight 400, tracking -2.5px, leading 1.0 */
.lede {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.042em;
  line-height: 1.02;
  max-width: 20ch;
  text-wrap: balance;
}
.hero__sub {
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem);
  max-width: 58ch;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--muted);
}

.reel {
  position: relative;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  border-radius: 6px;
  overflow: hidden; background: var(--band);
}
.reel video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }


/* --------------------------------------------------------------------------
   SECTIONS
   -------------------------------------------------------------------------- */
.sec {
  max-width: var(--wrap); margin-inline: auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gut);
  border-top: 1px solid var(--hair);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}
.label {
  font-size: 0.95rem; font-weight: 400; color: var(--ink);
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

/* ---- info ---- */
.info { max-width: 62ch; display: grid; gap: 1rem; }
.info p { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.65; }
.more {
  justify-self: start; margin-top: 0.5rem;
  font-size: 0.95rem; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.more:hover { color: var(--red); border-color: var(--red); }

/* ---- services ---- */
.svcs { display: grid; gap: clamp(0.75rem, 2vw, 1rem); }
@media (min-width: 700px)  { .svcs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svcs { grid-template-columns: repeat(4, 1fr); } }

.svc {
  border: 1px solid var(--hair); border-radius: 6px;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.45rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.svc:hover { border-color: var(--ink); transform: translateY(-3px); }
.svc__no {
  font-family: var(--mono); font-size: 0.7rem; color: var(--dim);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
.svc__title { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; }
.svc__lead  { font-size: 0.95rem; font-weight: 500; }
.svc__body  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ---- work: stats, experience, clients ----
   Graphite cards (ivory in light mode) with a single quiet bloom of muted
   colour in one corner and a hairline edge. On hover the tile lifts and
   leans toward the cursor, a faint highlight follows it, and the edge
   brightens. Restraint is the point: colour is a tint, not a fill. */
.stats { display: grid; gap: clamp(0.75rem, 2vw, 1rem); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  --bloom: var(--bloom-1);
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: clamp(1.2rem, 2.6vw, 1.75rem);
  color: var(--ink); border-radius: 10px;
  background:
    radial-gradient(120% 140% at 0% 0%, var(--bloom), transparent 58%),
    var(--tile-base);
  border: 1px solid var(--tile-edge);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease),
              background 0.4s var(--ease);
}
.stat:nth-child(2) { --bloom: var(--bloom-2); }
.stat:nth-child(3) { --bloom: var(--bloom-3); }
.stat::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
              var(--tile-glow), transparent 65%);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.stat:hover { --lift: -4px; border-color: var(--tile-hover); }
.stat:hover::before { opacity: 1; }
.stat__num {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 300;
  letter-spacing: -0.045em; line-height: 1;
  transition: transform 0.5s var(--ease);
}
.stat:hover .stat__num { transform: translateX(4px); }
.stat__cap {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

.sublabel {
  margin: clamp(3rem, 7vw, 4.5rem) 0 clamp(1rem, 2.5vw, 1.5rem);
  font-size: 0.95rem; font-weight: 400; color: var(--muted);
}

.job {
  position: relative; padding-left: clamp(1rem, 2.5vw, 1.5rem);
}
.job::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: 3px;
  background: var(--ink);
}
.job__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.job__org { font-size: clamp(1.3rem, 2.6vw, 1.75rem); letter-spacing: -0.03em; }
.job__role { font-size: 0.95rem; color: var(--muted); }
.job__when {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  padding-top: 0.5rem;
}
.job__list { margin: 1.25rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.6rem; max-width: 70ch; }
.job__list li { font-size: 0.98rem; line-height: 1.6; }
.job__list li::marker { color: var(--dim); }

.clientnote { font-size: 0.85rem; color: var(--muted); margin: -0.5rem 0 1rem; }
.clients {
  list-style: none; margin: 0; padding: 0;
  display: grid; border-top: 1px solid var(--hair);
}
@media (min-width: 700px) { .clients { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; } }
.clients li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 0.6rem; border-bottom: 1px solid var(--hair);
  transition: background 0.3s var(--ease);
}
.clients li:hover { background: var(--band); }
.clients b { font-weight: 500; }
.clients span { color: var(--muted); font-size: 0.9rem; }

.portfolio {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(1.1rem, 2.5vw, 1.5rem) clamp(1.2rem, 3vw, 1.75rem);
  border: 1px solid var(--ink); border-radius: 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: -0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.portfolio:hover { background: var(--ink); color: var(--paper); }
.portfolio__go { transition: transform 0.3s var(--ease); }
.portfolio:hover .portfolio__go { transform: translate(3px, -3px); }

/* ---- ticker ---- */
.ticker {
  background: var(--band); border-block: 1px solid var(--hair);
  padding-block: 0.9rem; overflow: hidden; user-select: none;
}
.ticker__track { display: flex; width: max-content; animation: tick 34s linear infinite; }
.ticker__group { display: flex; align-items: center; flex: 0 0 auto; }
.ticker__group span {
  padding-inline: clamp(0.7rem, 2vw, 1.3rem);
  font-size: clamp(0.95rem, 2vw, 1.35rem);
  letter-spacing: -0.02em; white-space: nowrap;
}
.ticker__group i { color: var(--dim); font-style: normal; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.foot {
  background: var(--band);
  padding: clamp(3rem, 7vw, 5rem) var(--gut) clamp(1.5rem, 3vw, 2rem);
}
.foot > * { max-width: var(--wrap); margin-inline: auto; }
.foot__head {
  font-size: clamp(1.8rem, 4.2vw, 3.25rem);
  font-weight: 300; letter-spacing: -0.035em; line-height: 1.1;
}
.foot__cta { margin-top: clamp(2rem, 5vw, 3rem); }
.foot__btn {
  font: inherit; font-size: 0.9rem;
  padding: 0.7rem 1.2rem; cursor: url("cursor-hand.png") 9 0, pointer;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 4px;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.foot__btn:hover { background: var(--red); }
.foot__btn:active { transform: translateY(1px); }

.foot__end {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1rem; border-top: 1px solid var(--hair);
  font-size: 0.8rem; color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .svc:hover, .stat:hover { transform: none; }
  .stat:hover .stat__num { transform: none; }
  .portfolio:hover .portfolio__go { transform: none; }
  .bar { transition: none; }
}

/* ==========================================================================
   CONTACT - ID badge hanging from a lanyard, shown as a modal.
   Cream card, typewriter name, mono rows, handwritten note.
   Keeps the swing and pointer tilt so it behaves like a physical object.
   ========================================================================== */
.contact-open { cursor: url("cursor-hand.png") 9 0, pointer; }

.overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(0.75rem, 4vw, 2rem);
  background: rgba(20, 19, 17, 0.62);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  animation: ovIn 0.25s var(--ease);
  overflow-y: auto;
}
.overlay[hidden] { display: none; }
@keyframes ovIn { from { opacity: 0; } to { opacity: 1; } }

.cardwrap {
  width: min(560px, 100%);
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 0.5rem;
  perspective: 1100px;
}

.overlay__close {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #f2efe8; background: none; border: 0; padding: 0.4rem;
  cursor: url("cursor-hand.png") 9 0, pointer; transition: opacity 0.25s var(--ease);
}
.overlay__close:hover { opacity: 0.6; }

/* lanyard and card swing together as one hanging object */
.hang { width: 100%; transform-origin: top center; animation: swing 1.05s var(--ease); }
@keyframes swing {
  0%   { transform: rotate(-3.6deg); }
  38%  { transform: rotate(2.2deg); }
  66%  { transform: rotate(-1deg); }
  85%  { transform: rotate(0.4deg); }
  100% { transform: rotate(0); }
}

.lanyard { display: flex; flex-direction: column; align-items: center; margin-bottom: -8px; }
.lanyard__bar {
  width: 24px; height: 40px; border-radius: 5px;
  background: linear-gradient(180deg, #dcdcd6, #96968f 55%, #c6c6bf);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);
}
.lanyard__ring {
  width: 28px; height: 28px; margin-top: -7px;
  border: 3px solid #b4b4ad; border-radius: 50%;
}
.lanyard__charm {
  margin-top: -2px; font-size: 0.8rem; color: #b4b4ad;
}

.card {
  position: relative; width: 100%;
  background: var(--card-bg); color: var(--card-ink);
  border: 1px solid var(--card-rim);
  border-radius: 12px;
  padding: clamp(1rem, 3vw, 1.6rem);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45);
  transform-origin: top center;
  /* --rx / --ry are written by script.js from the pointer */
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease);
  will-change: transform;
}

/* soft gloss tracking the pointer, like light across a laminate */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  pointer-events: none; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%),
              var(--card-gloss), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.overlay.is-live .card::after { opacity: 1; }

.card__head {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-bottom: 0.7rem; margin-bottom: clamp(0.9rem, 2.5vw, 1.25rem);
  border-bottom: 1px solid var(--card-line);
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--card-muted);
}

.card__body { display: grid; grid-template-columns: 1fr; gap: clamp(0.9rem, 3vw, 1.3rem); }
@media (min-width: 560px) { .card__body { grid-template-columns: 150px 1fr; } }

/* portrait frame. Greyscale to match the badge photo treatment. */
.card__shot {
  aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden;
  background: var(--card-shot); border: 1px solid var(--card-soft);
}
.card__shot img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 55% 30%;          /* keep the face in frame */
  filter: grayscale(1) contrast(1.05);
}

.card__name {
  margin: 0; font-family: var(--type); font-weight: 400;
  font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.05;
  text-transform: uppercase;
}
.card__status {
  margin: 0.5rem 0 1rem;
  font-family: var(--mono); font-size: 0.64rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--card-muted);
}
.card__row {
  display: block; font-family: var(--mono);
  font-size: clamp(0.82rem, 1.8vw, 0.93rem);
  color: var(--card-ink); padding: 0.32rem 0;
  border-bottom: 1px solid var(--card-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.card__row:hover { color: var(--red); padding-left: 4px; }
.card__note {
  margin: 0.9rem 0 0;
  font-family: var(--mono); font-style: italic; font-size: 0.8rem;
  letter-spacing: 0.02em; color: var(--card-muted);
}

/* rows deal in as the card lands */
.overlay.is-live .card__row {
  animation: rowIn 0.5s var(--ease) backwards;
  animation-delay: calc(var(--r, 0) * 60ms + 200ms);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .overlay, .card, .hang { animation: none; }
  .card { transform: none !important; }
  .overlay.is-live .card::after { opacity: 0; }
  .overlay.is-live .card__row { animation: none; }
  .card__row:hover { padding-left: 0; }
}


/* ==========================================================================
   CURSOR - 8-bit
   Two original pixel-art images used as real system cursors: an arrow, and a
   pointing hand over anything clickable. No script, no lag, nothing running.
   The hotspot numbers put the click point on the arrow tip and fingertip.
   ========================================================================== */
html { cursor: url("cursor-arrow.png") 0 0, auto; }
a, button, [role="button"], summary, label, .stat, .svc {
  cursor: url("cursor-hand.png") 9 0, pointer;
}
input, textarea, select, [contenteditable] { cursor: text; }

