/* ============================================================
   Martyn Dunn · Artist · "As above, so below"
   v3 · sidebar layout · animated purple silk · custom cursor
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;800;900&family=Dancing+Script:wght@600;700&display=swap');

:root {
  --bg: #08080a;
  --bg-2: #0d0d10;
  --surface: #141418;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --text: #f3f1ee;
  --muted: #9a9aa6;
  --muted-2: #64646e;

  --accent: #9a55f6;    /* purple / lila lead */
  --accent-2: #e5228f;  /* magenta */

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --sidebar: 232px;

  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.86rem);
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --step-1: clamp(1.25rem, 1.05rem + 0.9vw, 1.6rem);
  --step-2: clamp(1.9rem, 1.4rem + 2vw, 3rem);
  --step-3: clamp(2.4rem, 1.7rem + 3vw, 4.2rem);
  --step-wm: clamp(2.4rem, 0.5rem + 7.4vw, 7.6rem);

  --space-section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --maxw: 1160px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 320ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

/* language toggle */
[data-de] { display: none; }
html[lang="de"] [data-en] { display: none; }
html[lang="de"] [data-de] { display: inline; }
html[lang="de"] [data-de].block { display: block; }
.lang { display: inline-flex; gap: 0.3rem; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.15rem 0.2rem; font-size: 0.72rem; letter-spacing: 0.06em; width: fit-content; }
.lang button { cursor: pointer; background: none; border: none; color: var(--muted-2); font: inherit; padding: 0.15rem 0.55rem; border-radius: 999px; transition: all var(--dur) var(--ease); }
.lang button[aria-pressed="true"] { background: var(--accent); color: #fff; }

/* ============================================================
   Custom cursor glow
   ============================================================ */
.cursor-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 9999;
  opacity: 0; transition: opacity 400ms var(--ease);
}
body.cursor-ready .cursor-canvas { opacity: 1; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 50;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2rem 1.7rem;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--line);
}
.sidebar__brand { line-height: 1; }
.sidebar__name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; display: block; }
.sidebar__role { font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent); margin-top: 0.4rem; display: block; }

.sidebar__nav { display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar__nav a {
  font-size: 0.95rem; color: var(--muted); padding: 0.5rem 0;
  position: relative; width: fit-content; transition: color var(--dur) var(--ease), padding var(--dur) var(--ease);
}
.sidebar__nav a::before {
  content: ""; position: absolute; left: -1.7rem; top: 50%; width: 0; height: 1px;
  background: var(--accent); transition: width var(--dur) var(--ease);
}
.sidebar__nav a:hover, .sidebar__nav a.active { color: var(--text); padding-left: 0.9rem; }
.sidebar__nav a:hover::before, .sidebar__nav a.active::before { width: 2.3rem; }

.sidebar__foot { display: flex; flex-direction: column; gap: 0.9rem; }
.sidebar__social { display: flex; gap: 1rem; }
.sidebar__social a { color: var(--muted); transition: color var(--dur) var(--ease); }
.sidebar__social a:hover { color: var(--accent); }
.sidebar__social svg { width: 18px; height: 18px; }
.sidebar__meta { font-size: 0.74rem; color: var(--muted-2); display: flex; flex-direction: column; gap: 0.3rem; }
.sidebar__meta a:hover { color: var(--text); }

/* mobile top bar + burger */
.mobilebar { display: none; }

/* ============================================================
   Main
   ============================================================ */
.main { margin-left: var(--sidebar); position: relative; z-index: 1; }
.wrap { width: min(100% - 3rem, var(--maxw)); margin-inline: auto; position: relative; }

/* ============================================================
   Hero + silk
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; overflow: hidden; background: #0a0a0c; }
/* animated purple silk · GPU-friendly (transform/opacity only) */
.silk { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 35%, #2a1a5e 0%, #150c33 45%, #0a0a0c 78%); animation: silkHue 24s ease-in-out infinite alternate; }
.silk::before, .silk::after, .silk__b { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform, opacity; }
.silk::before { width: 70vmax; height: 70vmax; top: -25%; left: -10%; background: radial-gradient(circle, rgba(154,85,246,0.8), rgba(154,85,246,0) 62%); animation: silkDrift1 14s ease-in-out infinite alternate; }
.silk::after { width: 62vmax; height: 62vmax; bottom: -32%; right: -12%; background: radial-gradient(circle, rgba(229,34,143,0.6), rgba(229,34,143,0) 62%); animation: silkDrift2 17s ease-in-out infinite alternate; }
.silk__b { width: 56vmax; height: 56vmax; top: 22%; left: 38%; background: radial-gradient(circle, rgba(120,70,235,0.6), rgba(120,70,235,0) 60%); animation: silkDrift3 12s ease-in-out infinite alternate; }
@keyframes silkDrift1 { from { transform: translate3d(-16%, -10%, 0) scale(0.95); } to { transform: translate3d(20%, 14%, 0) scale(1.35); } }
@keyframes silkDrift2 { from { transform: translate3d(14%, 12%, 0) scale(1.2); } to { transform: translate3d(-18%, -12%, 0) scale(0.95); } }
@keyframes silkDrift3 { from { transform: translate3d(-16%, 10%, 0) scale(0.85); opacity: 0.45; } to { transform: translate3d(18%, -16%, 0) scale(1.25); opacity: 0.95; } }
@keyframes silkHue { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(28deg); } }
.hero__veil { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(120% 90% at 50% 30%, transparent 30%, rgba(8,8,10,0.45) 78%, rgba(8,8,10,0.85) 100%),
  linear-gradient(0deg, rgba(8,8,10,0.9) 0%, rgba(8,8,10,0) 30%); }
.hero__inner { position: relative; z-index: 2; padding: 6rem 1.5rem; }
.hero__wordmark {
  font-family: var(--font-display); font-weight: 900; font-size: var(--step-wm);
  line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(243,241,238,0.92);
  text-stroke: 1.5px rgba(243,241,238,0.92);
  transition: color 600ms var(--ease);
}
.hero:hover .hero__wordmark { color: rgba(243,241,238,0.06); }
.hero__role { margin-top: 1rem; font-size: var(--step--1); letter-spacing: 0.6em; text-transform: uppercase; color: var(--text); padding-left: 0.6em; }
.hero__role::before, .hero__role::after { content: "·"; color: var(--accent); margin: 0 0.7em; }
.hero__tagline { font-family: var(--font-script); font-weight: 700; font-size: clamp(2.2rem, 1.2rem + 4vw, 5rem); color: var(--accent-2); margin-top: 1.6rem; line-height: 1; text-shadow: 0 4px 40px rgba(229,34,143,0.35); }
.hero__scroll { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 2; font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.hero__scroll::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); animation: scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; padding: 0.9rem 1.7rem; border: 1px solid var(--line-strong); border-radius: 2px; cursor: pointer; transition: all var(--dur) var(--ease); background: transparent; color: var(--text); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; }
.btn--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--solid:hover { filter: brightness(1.12); }

/* ============================================================
   Thumbnail strip ("above")
   ============================================================ */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.6rem, 1.4vw, 1.2rem); }
.strip__item { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: 2px; cursor: pointer; background: #16161a; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease), filter 600ms var(--ease); filter: saturate(0.95); }
.strip__item:hover img { transform: scale(1.07); filter: saturate(1.1); }
.strip__item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(154,85,246,0); transition: box-shadow var(--dur) var(--ease); }
.strip__item:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 6rem); }
.section__head { margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section__index { font-size: var(--step--1); letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: -0.015em; margin-top: 0.5rem; }
.section__title .script { font-family: var(--font-script); color: var(--accent-2); font-weight: 700; }
.section__lead { color: var(--muted); max-width: 52ch; font-weight: 300; margin-top: 1rem; }
.center { text-align: center; }
.center .section__lead { margin-inline: auto; }

/* as above so below · banner heading */
.aasb { text-align: center; padding-block: clamp(2.5rem, 5vw, 5rem); }
.aasb__script { font-family: var(--font-script); font-weight: 700; font-size: clamp(2.4rem, 1.4rem + 4vw, 5.5rem); color: var(--text); line-height: 1; }
.aasb__sub { color: var(--muted); letter-spacing: 0.28em; text-transform: uppercase; font-size: var(--step--1); margin-top: 1rem; }

/* ============================================================
   Feature triptych ("below")
   ============================================================ */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.2vw, 2rem); align-items: start; }
.panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: #16161a; aspect-ratio: 3 / 4; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9); }
.panel:nth-child(2) { transform: translateY(-2.2rem); }
.panel img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.panel:hover img { transform: scale(1.05); }
.panel__cap { position: absolute; inset: auto 0 0 0; padding: 1.2rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); opacity: 0; transform: translateY(10px); transition: all var(--dur) var(--ease); }
.panel:hover .panel__cap { opacity: 1; transform: none; }
.panel__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.panel__meta { color: var(--muted); font-size: var(--step--1); }

/* auto slideshow carousel ("below") */
.carousel { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.carousel__track { display: flex; gap: clamp(1rem, 2.2vw, 2rem); width: max-content; padding: 2rem clamp(1rem,2vw,2rem); animation: scrollLeft 55s linear infinite; will-change: transform; }
.carousel:hover .carousel__track { animation-play-state: paused; }
.carousel .panel { flex: 0 0 auto; width: clamp(240px, 26vw, 380px); aspect-ratio: 3 / 4; transform: none; }
.carousel .panel:hover { transform: translateY(-6px); }
@keyframes scrollLeft { to { transform: translateX(-50%); } }

/* subpage header */
.pagehead { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3rem); }
.pagehead__index { font-size: var(--step--1); letter-spacing: 0.3em; color: var(--accent); text-transform: uppercase; }
.pagehead__title { font-family: var(--font-display); font-weight: 900; font-size: var(--step-wm); line-height: 0.9; letter-spacing: -0.02em; margin-top: 0.4rem; }
.pagehead__title .script { font-family: var(--font-script); color: var(--accent-2); font-weight: 700; }
.pagehead__lead { color: var(--muted); max-width: 56ch; margin-top: 1.1rem; font-weight: 300; }

/* uniform grid collection (gallery, archive) */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 30%, 300px), 1fr)); gap: clamp(0.8rem, 1.8vw, 1.6rem); }
.pg-item { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: #141416; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.pg-item:hover img { transform: scale(1.05); }
.pg-item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow var(--dur) var(--ease); pointer-events: none; }
.pg-item:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }

/* masonry collection */
.masonry { columns: 4 300px; column-gap: clamp(0.7rem, 1.5vw, 1.2rem); }
.m-item { break-inside: avoid; margin-bottom: clamp(0.7rem, 1.5vw, 1.2rem); position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: #141416; }
.m-item img { width: 100%; display: block; transition: transform 600ms var(--ease), filter 600ms var(--ease); }
.m-item:hover img { transform: scale(1.04); }
.m-item::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow var(--dur) var(--ease); pointer-events: none; }
.m-item:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.masonry--bw .m-item img { filter: grayscale(1) contrast(1.04); }
.masonry--bw .m-item:hover img { filter: grayscale(1) contrast(1.1) brightness(1.05); }
@media (max-width: 620px) { .masonry { columns: 2 140px; } }

/* collections cards */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.coll { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; }
.coll img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease), filter 700ms var(--ease); filter: brightness(0.7); }
.coll:hover img { transform: scale(1.06); filter: brightness(0.85); }
.coll__label { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); letter-spacing: 0.02em; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0,0,0,0.7); }
.coll::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow var(--dur) var(--ease); }
.coll:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.coll--bw img { filter: grayscale(1) brightness(0.7); }
.coll--bw:hover img { filter: grayscale(1) brightness(0.85); }
@media (max-width: 720px) { .collections { grid-template-columns: repeat(2, 1fr); } }

/* drawings duo */
.duo { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.duo .work { aspect-ratio: 4 / 3; }
@media (max-width: 620px) { .duo { grid-template-columns: 1fr; } }

/* grey strip */
.strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.strip--2 .strip__item { aspect-ratio: 4 / 3; }
.strip--bw .strip__item img { filter: grayscale(1) contrast(1.06) brightness(1.02); }
.strip--bw .strip__item:hover img { filter: grayscale(1) contrast(1.12) brightness(1.08); }

/* ============================================================
   Gallery bento
   ============================================================ */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(0.8rem, 1.6vw, 1.4rem); }
.work { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; background: #141416; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.work:hover img { transform: scale(1.06); }
.work__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 55%); opacity: 0; transform: translateY(10px); transition: all var(--dur) var(--ease); }
.work:hover .work__overlay { opacity: 1; transform: translateY(0); }
.work__title { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); }
.work__meta { color: var(--muted); font-size: var(--step--1); }
.g-wide { grid-column: span 4; aspect-ratio: 16 / 10; }
.g-sq { grid-column: span 2; aspect-ratio: 3 / 3.4; }
.g-third { grid-column: span 2; aspect-ratio: 1 / 1; }
.g-banner { grid-column: span 6; aspect-ratio: 21 / 8; }

/* ============================================================
   Process / drawings
   ============================================================ */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 2rem); }
.pcard { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); background: #141416; }
.pcard img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: transform 700ms var(--ease), filter 700ms var(--ease); }
.pcard:hover img { transform: scale(1.05); filter: grayscale(1) contrast(1.12) brightness(1.05); }
.pcard__num { position: absolute; top: 1rem; left: 1.1rem; font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: rgba(255,255,255,0.9); mix-blend-mode: difference; }
.pcard__cap { position: absolute; bottom: 1rem; left: 1.1rem; right: 1.1rem; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); }

/* placeholder collection sections */
.placeholder { border: 1px dashed var(--line-strong); border-radius: 4px; padding: clamp(2.5rem, 5vw, 4.5rem); text-align: center; background: linear-gradient(180deg, rgba(154,85,246,0.05), transparent); }
.placeholder p { color: var(--muted); max-width: 46ch; margin: 0.8rem auto 1.6rem; font-weight: 300; }

/* ============================================================
   About
   ============================================================ */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__portrait { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; border: 1px solid var(--line); }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 16% center; filter: grayscale(0.15); transition: transform 800ms var(--ease); }
.about__portrait:hover img { transform: scale(1.04); }
.about__body p { color: var(--muted); margin-bottom: 1.2rem; font-weight: 300; }
.about__body p:first-of-type { color: var(--text); font-size: var(--step-1); font-weight: 400; line-height: 1.4; }
.about__sign { font-family: var(--font-script); font-size: 2.6rem; color: var(--text); margin-top: 1.2rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); border-top: 1px solid var(--line); padding-top: clamp(2.5rem, 5vw, 4rem); margin-top: clamp(3rem, 6vw, 5rem); }
.stat__num { font-family: var(--font-display); font-weight: 900; font-size: var(--step-2); line-height: 1; letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.6rem; }

/* ============================================================
   Contact + footer
   ============================================================ */
.contact { text-align: center; }
.contact__title { font-family: var(--font-display); font-weight: 900; font-size: var(--step-3); line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.contact__title .script { font-family: var(--font-script); color: var(--accent-2); font-weight: 700; }
.contact__links { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: center; margin-top: 2.2rem; }
.contact__links a { color: var(--muted); letter-spacing: 0.05em; transition: color var(--dur) var(--ease); display: inline-flex; align-items: center; gap: 0.5rem; }
.contact__links a:hover { color: var(--accent); }
.contact__links svg { width: 18px; height: 18px; }

/* contact form */
.cform { max-width: 620px; margin: 3rem auto 0; text-align: left; display: flex; flex-direction: column; gap: 1rem; }
.cform__hp { position: absolute; left: -9999px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cform__field { display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cform input, .cform textarea { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.85rem 0.95rem; color: var(--text); font-family: inherit; font-size: 1rem; text-transform: none; letter-spacing: normal; transition: border-color var(--dur) var(--ease); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform textarea { resize: vertical; }
.cform button { align-self: center; margin-top: 0.5rem; }
.cform__note { color: var(--muted-2); font-size: var(--step--1); text-align: center; }
@media (max-width: 620px) { .cform__row { grid-template-columns: 1fr; } }

.footer { border-top: 1px solid var(--line); padding-block: 2.2rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted-2); font-size: var(--step--1); }
.footer__social { display: flex; gap: 1.2rem; }
.footer__social a:hover, .footer__inner a:hover { color: var(--text); }
.footer__social svg { width: 17px; height: 17px; }
.footer__credit { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.footer__made { display: inline-flex; align-items: center; gap: 0.8rem; color: var(--muted-2); font-size: var(--step--1); letter-spacing: 0.04em; transition: opacity var(--dur) var(--ease); }
.footer__made:hover { opacity: 0.8; }
.footer__made img { height: 26px; width: auto; }
.footer__ai { color: var(--muted-2); font-size: 0.72rem; max-width: 60ch; opacity: 0.8; }

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,8,0.94); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 4vw; }
.lightbox.open { display: flex; animation: fade 260ms var(--ease); }
.lightbox img { max-width: 92vw; max-height: 88vh; border: 1px solid var(--line-strong); box-shadow: 0 40px 120px -20px #000; }
.lightbox__close { position: absolute; top: 1.5rem; right: 1.8rem; background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; }
.lightbox__close svg, .lightbox__nav svg { stroke: #fff; }
.lightbox__close svg { width: 28px; height: 28px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); color: #fff; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background var(--dur) var(--ease); }
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__nav--prev { left: 2vw; }
.lightbox__nav--next { right: 2vw; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   Reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 90ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 270ms; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .cursor-canvas { display: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .g-wide { grid-column: span 6; }
  .g-sq { grid-column: span 3; }
}
@media (max-width: 900px) {
  :root { --sidebar: 0px; }
  .main { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform var(--dur) var(--ease); width: min(80vw, 300px); }
  body.menu-open .sidebar { transform: translateX(0); }
  .mobilebar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 45; padding: 0.9rem 1.2rem; background: rgba(8,8,10,0.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .mobilebar__name { font-family: var(--font-display); font-weight: 800; }
  .burger { background: none; border: 0; width: 34px; height: 34px; position: relative; cursor: pointer; }
  .burger span { position: absolute; left: 5px; right: 5px; height: 2px; background: var(--text); transition: all var(--dur) var(--ease); }
  .burger span:nth-child(1) { top: 11px; } .burger span:nth-child(2) { top: 17px; } .burger span:nth-child(3) { top: 23px; }
  body.menu-open .burger span:nth-child(1) { top: 17px; transform: rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { top: 17px; transform: rotate(-45deg); }
  .about { grid-template-columns: 1fr; } .about__portrait { max-width: 380px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
}
@media (max-width: 620px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip__item:nth-child(4), .strip__item:nth-child(5) { display: none; }
  .triptych { grid-template-columns: 1fr; }
  .panel:nth-child(2) { transform: none; }
  .gallery { grid-template-columns: 1fr; }
  .g-wide, .g-sq, .g-third, .g-banner { grid-column: span 1; aspect-ratio: 4 / 3; }
  .trio { grid-template-columns: 1fr; }
  .wrap { width: min(100% - 2rem, var(--maxw)); }
}
