/* ============================================================
   ELLEVUX · COMPONENTS  (v5 — PERSONAL PORTFOLIO, Henri Heymans style)
   Editorial visual language: pure-black, white type, ONE acid-green accent,
   hairline rules, squared corners, oversized type, lots of negative space.
   Depends on tokens.css + base.css. Content fails OPEN (no class here hides
   content without JS).

   Components (the page is built from these):
     .nav / .nav__list / .nav__link        (small uppercase, tracked)
     .work-item / .work-label / .work-art   (scattered project cards)
     .pill-btn (+ .pill-btn__icon)          (acid-green OUTLINE pill)
     .vertical-text                         (rotated 90deg label strip)
     .big-wordmark                          (ultra-bold giant footer wordmark)
     .social-links / .social-link           (the About Instagram link)
     .portrait                              (B&W photo slot)
   ============================================================ */

/* ---------- NAV  ·  small uppercase letter-spaced links ---------- */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav__link {
  position: relative;
  font-size: var(--fs-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--dur-base) var(--ease-out-expo);
}
/* underline grows from the left on hover/focus */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.4em;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out-expo);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--text); }
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* wordmark (top-left "ellevux") */
.wordmark {
  font-size: var(--fs-h3);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  line-height: 1;
}

/* ---------- WORK ITEM  ·  scattered project thumbnail card ----------
   A small uppercase label above a duotone/gradient art tile that holds an
   optional <img>. The card is a link; hover scales the art + reveals a cue.
   Layout/scatter positioning lives in main.css; this defines the look. */
.work-item {
  display: inline-flex;
  flex-direction: column;
  gap: var(--s-3);
  color: var(--text);
}
.work-label {
  display: flex;
  flex-wrap: wrap;          /* too long for the tile? the sector drops to a new line */
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
  font-size: var(--fs-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--dur-base) var(--ease-out-expo);
}
.work-label__num { color: var(--text-muted); }
.work-label__name { color: var(--text); font-weight: var(--weight-semibold); }
.work-label__sector { color: var(--text-mut); }
/* keep each part whole ("MIRROR SOLUTIONS", not "MIRROR / SOLUTIONS") */
.work-label > span { white-space: nowrap; }

/* Status chip for a project that is mid-rebuild. Deliberately a hairline +
   muted text rather than the acid accent, which stays reserved for the email
   pill and focus states. Inherits the uppercase/tracking of whatever label
   row it sits in, so it works in .work-label and .tm-card__kicker alike. */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.22em 0.7em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--text-mut);
  font-weight: var(--weight-medium);
}
.status-pill::before {
  content: "";
  flex: none;
  width: 0.38em;
  height: 0.38em;
  border-radius: var(--r-pill);
  background: currentColor;
}

/* the art tile — CSS duotone/gradient fill with an <img> slot on top */
.work-art {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  aspect-ratio: 16 / 9;   /* all work tiles share one wide 16:9 proportion */
  background:
    linear-gradient(140deg, #1a1a1a 0%, #050505 100%);
  border: 1px solid var(--line);
  isolation: isolate;
}
/* distinct duotone art variants (each project gets its own) */
.work-art--a { background: linear-gradient(140deg, #2a2118 0%, #0a0805 70%); }
.work-art--b { background: var(--bg); }   /* Ellevux — wide site screenshot (16:9 from the shared base) */
.work-art--c { background: linear-gradient(140deg, #1d1a26 0%, #06050b 70%); }
.work-art--d { background: linear-gradient(140deg, #241616 0%, #0a0404 70%); }
/* faint grain/sheen overlay so empty tiles still read as "art" */
.work-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 30% 0%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
/* the real screenshot, once dropped in assets/img/ */
.work-art img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
  z-index: 2;
}
/* hover "VIEW" cue */
.work-art__cue {
  position: absolute;
  left: 50%; top: 50%;
  z-index: 3;
  transform: translate(-50%, -50%) scale(0.85);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 1em;
  font-size: var(--fs-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--r-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-expo),
              transform var(--dur-base) var(--ease-spring);
}
/* hover/focus: scale art, colour the screenshot, show the cue + label */
.work-item:hover .work-art img,
.work-item:focus-visible .work-art img { filter: grayscale(0) contrast(1.05); transform: scale(1.04); }
.work-item:hover .work-art__cue,
.work-item:focus-visible .work-art__cue { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.work-item:hover .work-label,
.work-item:focus-visible .work-label { color: var(--text); }
.work-art,
.work-item .work-art { transition: border-color var(--dur-base) var(--ease-out-expo); }
.work-item:hover .work-art,
.work-item:focus-visible .work-art { border-color: var(--accent-line); }

@media (prefers-reduced-motion: reduce) {
  .work-art img { transition: none; }
  .work-art__cue { transition: opacity var(--dur-base); transform: translate(-50%, -50%); }
  .work-item:hover .work-art img { transform: none; }
}

/* ---------- PILL BUTTON  ·  acid-green OUTLINE pill, italic-serif label ----------
   Hover/focus fills acid-green with near-black ink. Used for "Send me an
   e-mail" (with a ↵ glyph) and any primary CTA. */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0.7em 1.4em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lead);
  line-height: 1;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out-expo),
              color var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo),
              transform var(--dur-fast) var(--ease-out-quart);
}
.pill-btn:hover,
.pill-btn:focus-visible {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.pill-btn:active { transform: scale(0.98); }
/* the ↵ / arrow glyph riding inside the pill */
.pill-btn__icon {
  display: inline-grid;
  place-items: center;
  width: 1.4em; height: 1.4em;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.8em;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
}

/* ---------- VERTICAL TEXT  ·  rotated 90° label strip ("KNOW MORE ABOUT ME.") ---------- */
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--fs-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-mut);
  white-space: nowrap;
}

/* ---------- BIG WORDMARK  ·  ultra-bold giant footer name (can bleed) ---------- */
.big-wordmark {
  display: block;
  font-family: var(--font-sans);
  font-weight: var(--weight-black);
  font-size: var(--fs-mega);
  line-height: 0.82;
  letter-spacing: var(--tracking-tight);
  color: var(--text);
  text-transform: none;
  /* never cause horizontal scroll on small screens */
  max-width: 100%;
  white-space: nowrap;
}

/* ---------- SOCIAL LINKS  ·  the single About Instagram link ---------- */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
}
.social-link {
  font-size: var(--fs-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--dur-base) var(--ease-out-expo);
}
.social-link:hover,
.social-link:focus-visible { color: var(--accent); }

/* ---------- PORTRAIT  ·  B&W photo slot (about) ----------
   Holds the <img> at assets/img/portrait.jpg (object-fit:cover, grayscale).
   The duotone gradient + sheen show through only if the image fails to load. */
.portrait {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, #1c1c1c 0%, #060606 80%);
  border: 1px solid var(--line);
  isolation: isolate;
}
.portrait::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,0.07), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  z-index: 2;
}

/* ---------- About card surface ---------- */
.about-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ---------- Raised section ground (#about) ---------- */
.section--raised { background: var(--bg-soft); }
.section--raised::before,
.section--raised::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line-faint); pointer-events: none;
}
.section--raised::before { top: 0; }
.section--raised::after  { bottom: 0; }
