/* ============================================================
   ZAYAN — Portfolio 2026
   Typography as architecture. Scroll as cinema.
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --text: #e8e0d0;
  --accent: #d4f23d;
  --accent-dim: rgba(212, 242, 61, 0.12);
  --text-muted: rgba(232, 224, 208, 0.45);
  --border: rgba(232, 224, 208, 0.1);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Cursor palette — bright neutral ink, no ring, no glow. Flips to dark ink
     over bright content (work previews / light media) so it always reads. */
  --cursor-dot: #8f9096;
  --cursor-pill: rgba(247, 247, 250, 0.34);
  --cursor-text: #16161a;
  --cursor-dot-inv: #3a3b40;
  --cursor-pill-inv: rgba(52, 53, 58, 0.78);
  --cursor-text-inv: #f3f0ea;

  --content: 1080px;
  --section-pad-y: 12vh;
  --section-pad-x: clamp(32px, 7vw, 108px);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scrollbar-width: none;
  overscroll-behavior-y: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Satoshi", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

main {
  display: block;
}

/* .skew-wrapper is now a plain structural wrapper — NO transform. A transform
   here made it a containing block for the pinned work section, which broke the
   pin and caused scroll to stick. (The velocity skew was removed.) */

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

::selection {
  background: var(--accent);
  color: #0a0a0a;
}

/* Hide native cursor on capable desktop pointers */
@media (min-width: 769px) and (pointer: fine) {
  body,
  a,
  button {
    cursor: none;
  }
}

/* ---------- Type primitives ---------- */
.display {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
}

.label {
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  will-change: transform;
}

.loader-word {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 64px;
  line-height: 1;
  color: var(--accent);
}

.loader-line {
  width: 0;
  height: 1px;
  background: var(--accent);
}

/* ============================================================
   CUSTOM CURSOR — Apple-like fluid morphing dot / capsule.
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  will-change: transform;
  transition: opacity 0.5s var(--ease),
              filter 0.5s var(--ease);
}

.cursor__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--cursor-dot);
  transform: scale(0.9);
  transition: width 0.4s var(--ease),
              height 0.4s var(--ease),
              background-color 0.4s var(--ease),
              transform 0.4s var(--ease);
}

.cursor__label {
  position: absolute;
  top: 50%;
  left: 50%;
  font-family: "Satoshi", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--cursor-text);
  white-space: nowrap;
  opacity: 0;
  filter: blur(14px);
  transform: translate(-50%, calc(-50% + 8px)) scale(0.5);
  transition: opacity 0.45s var(--ease),
              filter 0.45s var(--ease),
              transform 0.45s var(--ease);
}

/* Capsule state — bright translucent frosted glass that slowly blooms in.
   Stays a true pill (999px radius), never a bar. */
.cursor--active .cursor__inner {
  background: var(--cursor-pill);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  transform: scale(1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cursor--active .cursor__label {
  opacity: 1;
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1);
}

/* Bright content (work previews / light media): flip to dark ink. */
.cursor--light .cursor__inner {
  background: var(--cursor-dot-inv);
}

.cursor--light.cursor--active .cursor__inner {
  background: var(--cursor-pill-inv);
}

.cursor--light .cursor__label {
  color: var(--cursor-text-inv);
}

/* Pointer left the window: blur-fade away — shrink to almost nothing,
   blur out, fade to transparent (Apple/Linear exit). Reappears on return.
   The transition lives on .cursor (above) so the fade-in is smooth too. */
.cursor--hidden {
  opacity: 0;
  filter: blur(14px);
}

.cursor--hidden .cursor__inner {
  transform: scale(0.15);
  transition: width 0.4s var(--ease),
              height 0.4s var(--ease),
              background-color 0.4s var(--ease),
              transform 0.5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .cursor--hidden,
  .cursor--hidden .cursor__inner {
    transition: none;
  }
}

/* Hide the native cursor only once the custom cursor is confirmed running
   (class is set from JS after a successful init). */
html.has-cursor,
html.has-cursor * {
  cursor: none !important;
}

/* `hover: none` = primary input can't hover (phones/tablets). A touchscreen
   laptop with a trackpad/mouse reports hover: hover, so the custom cursor
   still shows there. */
@media (max-width: 768px), (hover: none) {
  .cursor {
    display: none;
  }
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  z-index: 80;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.inner {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
}

section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
}

/* Velocity tilt targets — GPU transforms only, no layout props */
.skew-target {
  transform-origin: 50% 12%;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* ============================================================
   SECTION HEAD (shared title treatment)
   ============================================================ */
.section-head {
  margin-bottom: clamp(48px, 6vh, 84px);
}

.section-num {
  display: block;
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-title {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.88;
  font-size: clamp(68px, 9.2vw, 132px);
  color: var(--text);
}

.section-rule {
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 44px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left;
}

/* ============================================================
   SECTION 01 — HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding: 0 var(--section-pad-x) clamp(48px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@supports (height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

.corner-label {
  position: absolute;
  top: 4vh;
  right: 5vw;
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
}

.hero-name {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(96px, 16vw, 220px);
  line-height: 0.86;
  color: var(--text);
  margin-bottom: clamp(28px, 4vh, 44px);
  perspective: 900px;
}

.hero-name .letter {
  display: inline-block;
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}

.hero-role {
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero-meta {
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   ABOUT STATEMENT + STATS (between hero and expertise)
   ============================================================ */
.about-statement {
  padding: clamp(72px, 12vh, 112px) var(--section-pad-x) clamp(40px, 6vh, 64px);
}

.about-statement__name {
  font-family: "Tanker", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--text);
}

.about-statement__body {
  max-width: 700px;
  margin-top: 28px;
  font-family: "Satoshi", sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.about-credit {
  margin-top: 20px;
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.about-credit a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .about-credit a:hover {
    color: var(--accent);
  }
}

.stats-row {
  margin: 0 var(--section-pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 32px 0;
  border-right: 1px solid var(--border);
  text-align: center;
}

.stat:last-child {
  border-right: none;
}

.stat__num {
  display: block;
  font-family: "Tanker", sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(40px, 6vw, 72px);
  color: var(--text);
}

.stat__label {
  display: block;
  margin-top: 8px;
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 03 — WORK (3‑column Swiss editorial grid)
   ============================================================ */
.work-section {
  position: relative;
}

.work-gallery {
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- Grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 12vh;
}

.work-card {
  position: relative;
}

.work-card:nth-child(n+4) {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.work-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* ---------- Images ---------- */
.work-card__visual {
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 4 / 3;
}

.work-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(0.98);
  filter: grayscale(100%);
  opacity: 0.65;
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.work-grid:hover .work-card__visual img {
  filter: grayscale(100%) brightness(0.75);
  opacity: 0.4;
}

.work-card:hover .work-card__visual img {
  transform: scale(1);
  filter: grayscale(0%);
  opacity: 1;
}

/* ---------- Card body ---------- */
.work-card__body {
  padding: 0;
}

.work-card__num {
  display: block;
  font-family: "Satoshi", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  transition: color 0.35s var(--ease-out);
}

.work-card:hover .work-card__num {
  color: var(--accent);
}

.work-card__name {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.9;
  font-size: clamp(18px, 1.4vw, 26px);
  color: var(--text);
  margin-bottom: 4px;
}

.work-card__meta {
  display: block;
  font-family: "Satoshi", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.work-card__desc {
  display: none;
}

/* ============================================================
   EXPERTISE + CERTIFICATES (credential lists)
   ============================================================ */
.certs-sub {
  max-width: 480px;
  margin-top: -2vh;
  margin-bottom: 6vh;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.spec-list {
  margin-top: 2vh;
}

.spec-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 16px 40px;
  padding: 26px var(--section-pad-x);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  clip-path: inset(0% 100% 0% 0%);
  margin: 0 calc(-1 * var(--section-pad-x));
  transition: color 0.35s var(--ease-out);
}

.spec-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(212,242,61,0.06);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .spec-row:hover::before {
    opacity: 1;
  }

  .spec-row:hover .spec-row__name {
    color: var(--accent);
  }

  .spec-row:hover .spec-row__meta-single,
  .spec-row:hover .spec-row__meta-primary,
  .spec-row:hover .spec-row__meta-sub {
    color: var(--text);
  }
}

.spec-row__name,
.spec-row__meta-single,
.spec-row__meta-primary,
.spec-row__meta-sub {
  position: relative;
  z-index: 1;
  transition: color 0.35s var(--ease-out);
}

.spec-row__name {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(28px, 3.4vw, 46px);
  color: var(--text);
}

.spec-row__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  text-align: right;
}

.spec-row__meta-single,
.spec-row__meta-primary {
  font-family: "Satoshi", sans-serif;
  font-size: 14px;
  font-weight: 400;
}

.spec-row__meta-single {
  color: var(--text-muted);
}

.spec-row__meta-primary {
  color: var(--text);
}

.spec-row__meta-sub {
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 03 — HERMES
   ============================================================ */
.hermes-sub {
  max-width: 480px;
  margin-top: -2vh;
  margin-bottom: 7vh;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.hermes-list {
  margin-top: 0;
}

.hermes-row {
  position: relative;
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.hermes-line {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.hermes-key {
  flex: 0 0 clamp(100px, 12vw, 150px);
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.6;
}

.hermes-val {
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================================
   SECTION 04 — THINKING PATTERN
   ============================================================ */
.think-sub {
  margin-top: -2vh;
  margin-bottom: 5vh;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.think-canvas-wrap {
  position: relative;
  width: 100%;
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
}

.think-canvas-wrap.is-visible {
  opacity: 1;
}

.think-canvas {
  display: block;
  width: 100%;
  height: 440px;
}

.think-form {
  display: flex;
  margin-top: 40px;
}

.think-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-right: none;
  background: transparent;
  color: var(--text);
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 16px 20px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}

.think-input::placeholder {
  color: var(--text-muted);
}

.think-input:focus {
  border-color: var(--accent);
}

.think-submit {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: "Satoshi", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0 30px;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out),
    transform 0.16s var(--ease-out), opacity 0.2s var(--ease-out);
}

.think-submit:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .think-submit:hover {
    background: var(--accent);
    color: #0a0a0a;
  }
}

.think-submit:disabled {
  opacity: 0.5;
}

.think-output {
  max-width: 640px;
  margin-top: 32px;
  min-height: 1.8em;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 05 — AUTHOR
   ============================================================ */
.author-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 2vh;
}

.author-photo-wrap {
  position: relative;
  overflow: hidden;
  clip-path: inset(100% 0% 0% 0%);
}

.author-photo {
  width: 100%;
  display: block;
  filter: grayscale(100%) contrast(1.1);
}

/* Flash overlay — white slams in, then wipes away to reveal the photo */
.author-flash {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--text);
  clip-path: inset(0% 0% 0% 0%);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-book {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: 32px;
  color: var(--text);
  padding: 20px 0;
}

.author-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.author-note {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.author-meta {
  margin-top: 10px;
  font-family: "Satoshi", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.55;
}

.author-link {
  display: inline-block;
  margin-top: 16px;
  font-family: "Satoshi", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

.author-link:hover {
  text-decoration: underline;
}

/* ============================================================
   SECTION 07 — MIND (collections)
   ============================================================ */
.mind-sub {
  margin-top: -2vh;
  margin-bottom: 6vh;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.mind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 40px;
}

.mind-label {
  display: block;
  margin-bottom: 20px;
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.mind-items {
  list-style: none;
}

.mind-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-family: "Satoshi", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .mind-item:hover {
    color: var(--accent);
    transform: translateX(3px);
  }
}

/* ============================================================
   SECTION 09 — SIGNAL
   ============================================================ */
.signal-email {
  display: inline-block;
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--text);
  transition: color 0.2s var(--ease-out), transform 0.16s var(--ease-out);
}

.signal-email:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .signal-email:hover {
    color: var(--accent);
  }
}

.signal-note {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 300;
  color: var(--text-muted);
}

.signal-social {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.signal-social a {
  font-family: "Satoshi", sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.signal-social a:hover {
  color: var(--accent);
}

.signal-footer {
  margin-top: 14vh;
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-align: right;
}

/* ============================================================
   SECTION 09 — BUILDING
   ============================================================ */
.building {
  position: relative;
}

.building-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: clamp(32px, 4vh, 56px);
}

.building-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: baseline;
}

.building-label {
  font-family: "Satoshi", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
}

.building-text {
  font-family: "Tanker", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(24px, 3vw, 40px);
  color: var(--text);
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  section {
    padding: 60px 5vw;
  }

  .hero {
    padding: 0 5vw 8vh;
  }

  .hero-name {
    font-size: clamp(80px, 20vw, 130px);
  }

  .section-title {
    font-size: clamp(48px, 14vw, 80px);
  }

  /* Work: editorial gallery */
  .work-card--featured {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 40px;
    margin-bottom: 40px;
  }

  .work-card--featured .work-card__name {
    font-size: clamp(32px, 8vw, 48px);
  }

  .work-card--featured .work-card__desc {
    max-width: 100%;
  }

  .work-grid {
    gap: 24px 16px;
    padding-bottom: 8vh;
  }

  .work-grid .work-card {
    padding-top: 16px;
  }

  .work-card__name {
    font-size: clamp(20px, 5vw, 28px);
  }

  .work-card__desc {
    max-width: 100%;
  }

  .building-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .m-building {
    padding: 32px 6vw 40px;
    border-top: 1px solid var(--border);
  }

  .m-building__label {
    display: block;
    font-family: "Satoshi", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }

  .m-building__text {
    font-family: "Tanker", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
    font-size: clamp(18px, 5vw, 28px);
    color: var(--text);
  }

  .hermes-row {
    gap: 18px;
    padding: 16px 0;
  }

  .hermes-key {
    flex-basis: 104px;
    letter-spacing: 2px;
  }

  .think-canvas {
    height: 280px;
  }

  .m-building {
    padding: 32px 6vw 40px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
  }

  .m-building__label {
    font-family: "Satoshi", sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
  }

  .m-building__text {
    font-family: "Tanker", sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
    font-size: clamp(18px, 5vw, 28px);
    color: var(--text);
  }

  .author-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
    margin: 0;
  }

  .spec-row__name {
    font-size: clamp(24px, 6.5vw, 36px);
  }

  .spec-row__meta {
    align-items: flex-start;
    text-align: left;
  }

  .mind-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(60px, 18vw, 96px);
  }

  .mind-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  .skew-target {
    transform: none !important;
  }

  /* Work: static gallery (no animation or hover transforms) */
  .work-card__visual {
    clip-path: inset(0%) !important;
  }

  .work-card__visual img {
    transform: scale(1) !important;
    filter: grayscale(0%) !important;
    opacity: 1 !important;
  }

  .work-card__num {
    color: var(--text-muted) !important;
  }

  /* Photo shows immediately, no flash */
  .author-photo-wrap {
    clip-path: inset(0% 0% 0% 0%);
  }

  .author-flash {
    display: none;
  }
}

/* ============================================================
   MOBILE EXPERIENCE (≤768px) — replaces the desktop layout
   Static. No cursor, no skew, no scroll animation.
   ============================================================ */
.mobile-view {
  display: none;
}

@media (max-width: 768px) {
  main,
  .loader,
  .cursor,
  .scroll-progress {
    display: none !important;
  }

  .mobile-view {
    display: block;
  }

  /* a) Fixed header */
  .m-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 6vw;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }

  .m-header__brand {
    font-family: "Tanker", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: 20px;
    color: var(--text);
  }

  .m-header__tag {
    font-family: "Satoshi", sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* b) Hero */
  .m-hero {
    padding: 100px 6vw 48px;
  }

  .m-hero__name {
    display: block;
    font-family: "Tanker", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.88;
    font-size: clamp(64px, 18vw, 96px);
    color: var(--text);
  }

  .m-hero__role {
    display: block;
    margin-top: 20px;
    font-family: "Satoshi", sans-serif;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .m-hero__loc {
    display: block;
    margin-top: 8px;
    font-family: "Satoshi", sans-serif;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* c) About */
  .m-about {
    padding: 0 6vw 24px;
    border-bottom: 1px solid var(--border);
    font-family: "Satoshi", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text);
  }

  .m-about__credit {
    margin-top: 16px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  .m-about__credit a {
    color: inherit;
    text-decoration: none;
  }

  /* d) Stats */
  .m-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid var(--border);
  }

  .m-stat {
    padding: 24px 6vw;
  }

  .m-stat:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .m-stat__num {
    display: block;
    font-family: "Tanker", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: clamp(36px, 10vw, 56px);
    color: var(--text);
  }

  .m-stat__label {
    display: block;
    margin-top: 6px;
    font-family: "Satoshi", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* e) Work */
  .m-work {
    padding: 40px 6vw 0;
  }

  .m-work__label {
    font-family: "Tanker", sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    font-size: 28px;
    color: var(--text);
    margin-bottom: 16px;
  }

  .m-work__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
  }

  .m-work__name {
    font-family: "Satoshi", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    transition: color 0.2s var(--ease);
  }

  .m-work__url {
    font-family: "Satoshi", sans-serif;
    font-size: 11px;
    font-weight: 300;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
  }

  .m-work__row:active .m-work__name {
    color: var(--accent);
  }

  /* f) Desktop notice */
  .m-notice {
    padding: 32px 6vw;
    font-family: "Satoshi", sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
  }

  /* g) Contact */
  .m-contact {
    padding: 40px 6vw 48px;
    border-top: 1px solid var(--border);
  }

  .m-contact__email {
    display: block;
    margin-bottom: 12px;
    font-family: "Satoshi", sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
  }

  .m-contact__loc {
    font-family: "Satoshi", sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
  }

  .m-contact__social {
    display: flex;
    gap: 24px;
    margin-top: 24px;
  }

  .m-contact__social a {
    font-family: "Satoshi", sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    text-decoration: none;
  }

  /* h) Footer */
  .m-footer {
    padding: 0 6vw 40px;
    font-family: "Satoshi", sans-serif;
    font-size: 10px;
    font-weight: 300;
    color: var(--text-muted);
  }
}
