/* AA creative — personal site */
@import url('./colors_and_type.css');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ===== Theme overrides driven by Tweaks ===== */
body[data-accent="signal"]  { --accent: var(--aa-signal);  --accent-press: var(--aa-signal-press); }
body[data-accent="sun"]     { --accent: var(--aa-sun);     --accent-press: var(--aa-sun-press); }
body[data-accent="ink"]     { --accent: var(--aa-ink);     --accent-press: var(--aa-graphite); }
body[data-accent="electric"]{ --accent: #2D5BFF;           --accent-press: #1E45D9; }

body[data-theme="dark"] {
  --bg-1: var(--aa-ink);
  --bg-2: var(--aa-graphite);
  --bg-inverse: var(--aa-paper);
  --fg-1: var(--aa-paper);
  --fg-2: rgba(236, 238, 234, .78);
  --fg-3: rgba(236, 238, 234, .48);
  --fg-inverse: var(--aa-ink);
  --border-strong: var(--aa-paper);
  --border-soft: rgba(236, 238, 234, .18);
}

/* ===== Page shell ===== */
.aa-page { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ===== Nav ===== */
.aa-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-1);
  position: sticky; top: 0; z-index: 50;
}
.aa-nav__brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; padding: 0 14px 0 0; }
.aa-nav__items { display: flex; gap: 28px; justify-self: center; }
.aa-nav__link { font-family: var(--font-sans); font-size: 14px; color: var(--fg-1); text-decoration: none; position: relative; transition: color .12s var(--ease-out); }
.aa-nav__link:hover { color: var(--accent); }
.aa-nav__link.is-active { color: var(--accent); }
.aa-nav__link.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); }
.aa-nav__meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; justify-self: end; display: flex; align-items: center; gap: 8px; }
.aa-nav__pulse { display:inline-block; width:8px; height:8px; border-radius:999px; background: var(--accent); animation: aa-pulse 2.4s var(--ease-in-out) infinite; }
@keyframes aa-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }

/* ===== Logo lockup — canonical DS (.aa-logo) ===== */
.aa-logo {
  --aa-logo-size: 32px;
  display: inline-flex;
  align-items: center;
  gap: calc(var(--aa-logo-size) * 0.44);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--aa-logo-size);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--fg-1);
  white-space: nowrap;
  text-decoration: none;
}
.aa-logo > span { white-space: nowrap; }
.aa-logo__dot {
  width: calc(var(--aa-logo-size) * 0.31);
  height: calc(var(--aa-logo-size) * 0.31);
  background: var(--aa-signal);
  border-radius: 999px;
  display: inline-block;
  flex: none;
}
.aa-logo__sep {
  width: 1px;
  height: calc(var(--aa-logo-size) * 0.94);
  background: currentColor;
  opacity: 0.4;
  flex: none;
}
.aa-logo__name { color: inherit; }
.aa-logo__creative {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: calc(var(--aa-logo-size) * 1.56);
  color: var(--aa-stone);
  line-height: 1;
  transform: translateY(calc(var(--aa-logo-size) * -0.06));
}
.aa-logo--inverse { color: var(--aa-paper); }
.aa-logo--inverse .aa-logo__sep { background: var(--aa-paper); opacity: 0.5; }
.aa-logo--inverse .aa-logo__creative { color: var(--aa-sun); }

/* Dark theme: stone → sun on non-inverse lockup */
body[data-theme="dark"] .aa-logo:not(.aa-logo--inverse) .aa-logo__creative { color: var(--aa-sun); }

/* Preset sizes */
.aa-logo--sz-xl { --aa-logo-size: 64px; }
.aa-logo--sz-l  { --aa-logo-size: 44px; }
.aa-logo--sz-m  { --aa-logo-size: 28px; }
.aa-logo--sz-s  { --aa-logo-size: 18px; }
.aa-logo--sz-xs { --aa-logo-size: 13px; }

/* ===== HERO ===== */
.aa-hero { position: relative; padding: 88px 0 56px; }

/* Variant: scale — giant headline, hangs to edges */
.aa-hero--scale .aa-hero__title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(80px, 16vw, 260px);
  line-height: 0.86;
  letter-spacing: -0.05em;
  margin: 0;
}
.aa-hero--scale .aa-hero__title .aa-hero__hand {
  font-family: var(--font-script); font-weight: 600;
  color: var(--accent); font-size: 0.75em;
  letter-spacing: 0; line-height: 0.9;
  display: inline-block; transform: rotate(-4deg) translateY(-0.06em);
  padding: 0 0.04em;
}
.aa-hero--scale .aa-hero__sub {
  font-family: var(--font-sans); font-size: 19px; line-height: 1.5;
  color: var(--fg-2); margin: 56px 0 0; max-width: 56ch;
}

/* Variant: split — left index card, right giant tagline */
.aa-hero--split { display: grid; grid-template-columns: 280px 1fr; gap: 64px; align-items: end; min-height: 70vh; padding-top: 64px; }
.aa-hero--split .aa-hero__index {
  border-top: 1px solid var(--border-strong);
  padding-top: 18px;
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3);
}
.aa-hero--split .aa-hero__index strong { color: var(--fg-1); font-weight: 500; font-family: var(--font-sans); font-size: 14px; letter-spacing: 0; text-transform: none; }
.aa-hero--split .aa-hero__title {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(72px, 12vw, 200px); line-height: 0.92;
  letter-spacing: -0.04em; margin: 0;
}
.aa-hero--split .aa-hero__hand { font-family: var(--font-script); color: var(--accent); font-weight: 600; }

/* Variant: stack — editorial centered, mono framing */
.aa-hero--stack { padding: 96px 0 40px; text-align: center; }
.aa-hero--stack .aa-hero__rule { width: 80px; height: 1px; background: var(--fg-1); margin: 0 auto 32px; }
.aa-hero--stack .aa-hero__title {
  font-family: var(--font-sans); font-weight: 500;
  font-size: clamp(64px, 11vw, 180px); line-height: 0.94; letter-spacing: -0.04em; margin: 0 auto; max-width: 14ch;
}
.aa-hero--stack .aa-hero__hand { font-family: var(--font-script); color: var(--accent); font-weight: 600; display: inline-block; transform: rotate(-3deg); }
.aa-hero--stack .aa-hero__sub { margin: 40px auto 0; max-width: 42ch; font-size: 18px; color: var(--fg-2); line-height: 1.5; }

/* hero meta strip — shared across variants */
.aa-hero__meta { display: flex; gap: 12px; align-items: center; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 32px; }
.aa-hero__meta .dot { width: 4px; height: 4px; background: var(--fg-3); border-radius: 999px; }

/* Flashlight invert effect on Scale hero */
.aa-hero--flashlight { position: relative; overflow: hidden; }
.aa-hero--flashlight .aa-hero__layer--base { position: relative; z-index: 1; }
.aa-hero--flashlight .aa-hero__layer--inverse {
  position: absolute;
  inset: 0;
  padding: inherit;
  pointer-events: none;
  background: var(--fg-1);
  color: var(--bg-1);
  z-index: 2;
  clip-path: circle(0 at 50% 50%);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  /* match base padding from .aa-hero */
  padding-top: 88px; padding-bottom: 56px;
}
.aa-hero--flashlight.is-active .aa-hero__layer--inverse { opacity: 1; }
.aa-hero--flashlight .aa-hero__layer--inverse .aa-hero__title,
.aa-hero--flashlight .aa-hero__layer--inverse .aa-hero__sub { color: var(--bg-1); }
.aa-hero--flashlight .aa-hero__layer--inverse .aa-hero__hand { color: var(--aa-sun); }

/* hero scroll cue */
.aa-scroll-cue {
  position: absolute; right: 32px; bottom: 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3);
}
.aa-scroll-cue__line { width: 1px; height: 56px; background: var(--fg-3); position: relative; overflow: hidden; }
.aa-scroll-cue__line::after { content:""; position:absolute; left:0; right:0; top:-100%; height:50%; background: var(--accent); animation: aa-cue 2.2s var(--ease-in-out) infinite; }
@keyframes aa-cue { 0% { top:-50%; } 100% { top: 100%; } }

/* ===== Marquee ===== */
.aa-marquee { overflow: hidden; border-top: 1.5px dashed var(--fg-1); border-bottom: 1.5px dashed var(--fg-1); padding: 22px 0; background: var(--bg-1); }
.aa-marquee--ink { background: var(--bg-inverse); color: var(--fg-inverse); border-color: var(--fg-inverse); }
.aa-marquee__track { display: flex; gap: 56px; white-space: nowrap; animation: aa-marq 40s linear infinite; will-change: transform; }
.aa-marquee__item { font-family: var(--font-sans); font-weight: 500; font-size: 64px; line-height: 1; letter-spacing: -2.5px; display: inline-flex; align-items: center; gap: 28px; }
.aa-marquee__dot { display: inline-block; width: 16px; height: 16px; border-radius: 999px; background: var(--aa-sun); box-shadow: 0 0 0 1.5px var(--fg-1); flex: none; }
.aa-marquee--ink .aa-marquee__dot { box-shadow: 0 0 0 1.5px var(--fg-inverse); }
@keyframes aa-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Section header ===== */
.aa-sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 96px 0 48px; gap: 24px; }
.aa-sec-head__label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.aa-sec-head__title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.02em; line-height: 1; margin: 0; }
.aa-sec-head__title em { font-family: var(--font-script); font-style: normal; color: var(--accent); font-weight: 600; }
.aa-sec-head__meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; padding-bottom: 6px; }

/* ===== Work / Project grid ===== */
.aa-work { padding: 0 0 96px; }
.aa-work__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px 24px; }

.aa-pc { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; padding: 0; cursor: pointer; position: relative; }
.aa-pc__frame { position: relative; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border-soft); transition: border-color .2s var(--ease-out); }
.aa-pc:hover .aa-pc__frame { border-color: var(--fg-1); }

.aa-pc:hover .aa-pc__frame > .aa-pc__art { transform: scale(1.03); }
.aa-pc:hover .aa-pc__title { color: var(--accent); }

.aa-pc__art { position: absolute; inset: 0; transition: transform .8s var(--ease-out); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.aa-pc__art--a { background: linear-gradient(135deg, transparent 49.6%, rgba(10,10,10,.18) 49.6%, rgba(10,10,10,.18) 50.4%, transparent 50.4%), linear-gradient(45deg, transparent 49.6%, rgba(10,10,10,.18) 49.6%, rgba(10,10,10,.18) 50.4%, transparent 50.4%); background-size: 28px 28px; }
.aa-pc__art--b { background: var(--aa-ink); color: var(--aa-paper); }
.aa-pc__art--c { background: var(--aa-bone); }
.aa-pc__art--d { background: var(--accent); color: var(--aa-paper); }
.aa-pc__art--e {
  background:
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(10,10,10,.12) 22px 23px);
}
.aa-pc__art--f {
  background:
    radial-gradient(circle at 30% 40%, rgba(10,10,10,.18), transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(10,10,10,.10), transparent 60%),
    var(--bg-2);
}

/* big numerals as art */
.aa-pc__numeral { font-family: var(--font-sans); font-weight: 500; font-size: 38vw; line-height: .8; letter-spacing: -0.06em; opacity: .06; user-select: none; }
.aa-pc__art--b .aa-pc__numeral { color: var(--aa-paper); opacity: .12; }
.aa-pc__art--d .aa-pc__numeral { color: var(--aa-paper); opacity: .22; }

.aa-pc__corner { position:absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; }
.aa-pc__corner--inv { color: rgba(236,238,234,.7); }
.aa-pc__playicon { position:absolute; right:14px; top:14px; width:36px; height:36px; border-radius: 999px; border: 1px solid currentColor; display:flex; align-items:center; justify-content:center; font-size: 12px; }

.aa-pc__head { display: flex; align-items: baseline; gap: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; }
.aa-pc__head .yr { margin-left: auto; }
.aa-pc__title { font-family: var(--font-sans); font-weight: 500; font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; transition: color .12s var(--ease-out); }
.aa-pc__kind { font-family: var(--font-script); font-weight: 600; font-size: 18px; color: var(--accent); line-height: 1; }
.aa-pc__client { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; }

/* ===== Project image grid ===== */
.aa-pc__grid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-1);
}
.aa-pc__grid-row {
  display: flex;
  flex: 1 1 0;
  gap: 2px;
  min-height: 0;
}
.aa-pc__grid-cell {
  flex: 1 1 0;
  position: relative;
  overflow: hidden;
  min-width: 0;
  transition: flex .45s cubic-bezier(.4, 0, .2, 1);
}
.aa-pc__grid-cell:hover { flex: 2 1 0; }
.aa-pc__grid-cell .aa-pc__art {
  position: absolute;
  inset: 0;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
}
.aa-pc__grid-cell:hover .aa-pc__art { transform: scale(1.08); }

/* span variants — editorial rhythm */
.aa-pc--w12 { grid-column: span 12; }
.aa-pc--w12 .aa-pc__frame { aspect-ratio: 21/9; }
.aa-pc--w8 { grid-column: span 8; }
.aa-pc--w8  .aa-pc__frame { aspect-ratio: 16/10; }
.aa-pc--w6 { grid-column: span 6; }
.aa-pc--w6  .aa-pc__frame { aspect-ratio: 4/3; }
.aa-pc--w4 { grid-column: span 4; }
.aa-pc--w4  .aa-pc__frame { aspect-ratio: 4/5; }
.aa-pc--w5 { grid-column: span 5; }
.aa-pc--w5  .aa-pc__frame { aspect-ratio: 4/3; }
.aa-pc--w7 { grid-column: span 7; }
.aa-pc--w7  .aa-pc__frame { aspect-ratio: 16/10; }

@media (max-width: 900px) {
  .aa-pc--w12, .aa-pc--w8, .aa-pc--w7, .aa-pc--w6, .aa-pc--w5, .aa-pc--w4 { grid-column: span 12; }
  .aa-pc__frame { aspect-ratio: 4/3 !important; }
}

/* ===== About / capabilities ===== */
.aa-about { padding: 96px 0; border-top: 1px solid var(--border-strong); display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: start; }
.aa-about__left { position: sticky; top: 96px; }
.aa-about__label { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 32px; }
.aa-about__portrait { position: relative; aspect-ratio: 4/5; background: var(--bg-2); border: 1px solid var(--border-soft); margin-bottom: 32px; max-width: 360px; overflow: hidden; }
.aa-about__portrait-x { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--border-soft); stroke-width: 1; }
.aa-about__portrait-tag { position: absolute; left: 14px; bottom: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); background: var(--bg-1); padding: 4px 8px; }
.aa-about__lede { font-family: var(--font-sans); font-weight: 400; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 24px; max-width: 18ch; }
.aa-about__lede em { font-family: var(--font-script); font-style: normal; color: var(--accent); font-weight: 600; }
.aa-about__body { font-family: var(--font-sans); font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 0 0 20px; max-width: 56ch; }
.aa-about__body strong { color: var(--fg-1); font-weight: 500; }
.aa-about__signature { font-family: var(--font-script); font-weight: 600; font-size: 32px; color: var(--accent); transform: rotate(-4deg); display: inline-block; margin-top: 24px; }

.aa-caps { display: flex; flex-direction: column; }
.aa-caps__row { display: grid; grid-template-columns: 36px 1fr 100px; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--border-soft); transition: padding .2s var(--ease-out); cursor: default; }
.aa-caps__row:hover { padding-left: 12px; }
.aa-caps__row:hover .aa-caps__name { color: var(--accent); }
.aa-caps__row:hover .aa-caps__num { color: var(--fg-1); }
.aa-caps__row:first-child { border-top: 1px solid var(--border-soft); }
.aa-caps__num { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: .04em; }
.aa-caps__name { font-family: var(--font-sans); font-weight: 500; font-size: 24px; letter-spacing: -0.015em; transition: color .12s var(--ease-out); }
.aa-caps__yrs { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; text-align: right; }
.aa-caps__row > p { grid-column: 2 / 4; font-size: 14px; line-height: 1.55; color: var(--fg-2); margin: 8px 0 0; max-width: 60ch; }

@media (max-width: 900px) {
  .aa-about { grid-template-columns: 1fr; gap: 48px; }
  .aa-about__left { position: static; }
}

/* ===== Manifesto strip ===== */
.aa-manifesto { padding: 128px 0; text-align: left; border-top: 1px solid var(--border-strong); }
.aa-manifesto__pull { font-family: var(--font-sans); font-weight: 400; font-size: clamp(40px, 6vw, 96px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 18ch; }
.aa-manifesto__pull em { font-family: var(--font-script); font-style: normal; color: var(--accent); font-weight: 600; }
.aa-manifesto__by { display: flex; gap: 16px; margin-top: 48px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; }

/* ===== Contact ===== */
.aa-contact-wrap { background: var(--bg-inverse); color: var(--fg-inverse); margin: 0 -32px; padding: 0 32px; }
.aa-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; padding: 128px 0; max-width: 1440px; margin: 0 auto; }
.aa-contact__title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(56px, 7vw, 112px); letter-spacing: -0.035em; line-height: 0.95; margin: 0 0 32px; }
.aa-contact__title em { font-family: var(--font-script); font-style: normal; color: var(--accent); font-weight: 600; }
.aa-contact__sub { font-family: var(--font-sans); font-size: 18px; line-height: 1.5; color: rgba(236,238,234,.72); margin: 0 0 40px; max-width: 36ch; }
[data-theme="dark"] .aa-contact__sub { color: rgba(10,10,10,.72); }
.aa-contact__direct { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(236,238,234,.18); }
[data-theme="dark"] .aa-contact__direct { border-color: rgba(10,10,10,.18); }
.aa-contact__d { display: grid; grid-template-columns: 90px 1fr; gap: 16px; align-items: baseline; }
.aa-contact__d span:first-child { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(236,238,234,.55); }
[data-theme="dark"] .aa-contact__d span:first-child { color: rgba(10,10,10,.55); }
.aa-contact__d a { color: var(--fg-inverse); font-family: var(--font-sans); font-size: 17px; text-decoration: none; transition: color .12s var(--ease-out); position: relative; }
.aa-contact__d a:hover { color: var(--accent); }

.aa-contact__form { display: flex; flex-direction: column; gap: 20px; }
.aa-field { display: flex; flex-direction: column; gap: 8px; }
.aa-field > span { font-family: var(--font-mono); font-size: 10px; color: rgba(236,238,234,.55); letter-spacing: .08em; text-transform: uppercase; display: flex; gap: 8px; align-items: center; }
[data-theme="dark"] .aa-field > span { color: rgba(10,10,10,.55); }
.aa-field input, .aa-field textarea, .aa-field select {
  font-family: var(--font-sans); font-size: 16px;
  padding: 14px 0; border: 0; border-bottom: 1px solid rgba(236,238,234,.32);
  background: transparent; color: var(--fg-inverse);
  outline: none; resize: none;
  border-radius: 0;
  transition: border-color .15s var(--ease-out);
  appearance: none;
}
[data-theme="dark"] .aa-field input,
[data-theme="dark"] .aa-field textarea,
[data-theme="dark"] .aa-field select { border-bottom-color: rgba(10,10,10,.32); }
.aa-field input:focus, .aa-field textarea:focus, .aa-field select:focus { border-bottom-color: var(--accent); }
.aa-field--focus > span { color: var(--accent); }
.aa-field select { cursor: pointer; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.aa-field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.aa-btn { font-family: var(--font-sans); font-size: 14px; padding: 18px 28px; border-radius: 0; cursor: pointer; transition: all .15s var(--ease-out); border: 1px solid transparent; align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; }
.aa-btn--inv { background: var(--fg-inverse); color: var(--bg-inverse); border-color: var(--fg-inverse); }
.aa-btn--inv:hover { background: var(--accent); color: var(--aa-paper); border-color: var(--accent); }
.aa-btn:disabled { opacity: .55; cursor: default; }
.aa-btn .arrow { transition: transform .2s var(--ease-out); display: inline-block; }
.aa-btn:hover .arrow { transform: translateX(4px); }

.aa-sent { padding: 64px 0; }
.aa-sent__title { font-family: var(--font-sans); font-weight: 500; font-size: 48px; letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1; }
.aa-sent__title em { font-family: var(--font-script); font-style: normal; color: var(--accent); font-weight: 600; }
.aa-sent__body { font-size: 16px; color: rgba(236,238,234,.7); max-width: 36ch; margin: 0 0 32px; }
[data-theme="dark"] .aa-sent__body { color: rgba(10,10,10,.7); }

@media (max-width: 900px) {
  .aa-contact { grid-template-columns: 1fr; gap: 48px; padding: 80px 0; }
  .aa-field__row { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== Footer ===== */
.aa-footer { background: var(--bg-1); }
.aa-footer__row { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 64px 32px; max-width: 1440px; margin: 0 auto; }
.aa-footer__brand { display: inline-flex; align-items: center; }
.aa-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.aa-footer__cols > div { display: flex; flex-direction: column; gap: 8px; }
.aa-footer__h { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.aa-footer__cols a { font-family: var(--font-sans); font-size: 14px; color: var(--fg-1); text-decoration: none; transition: color .12s var(--ease-out); }
.aa-footer__cols a:hover { color: var(--accent); }
.aa-footer__colophon { display: flex; justify-content: space-between; padding: 24px 32px; border-top: 1px solid var(--border-soft); font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .04em; max-width: 1440px; margin: 0 auto; }

@media (max-width: 900px) {
  .aa-footer__row { grid-template-columns: 1fr; gap: 32px; padding: 64px 32px 24px; }
  .aa-footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ===== Reveal-on-scroll ===== */
.aa-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.aa-reveal.is-in { opacity: 1; transform: none; }

/* ===== Project lightbox ===== */
.aa-lb { position: fixed; inset: 0; background: color-mix(in srgb, var(--bg-inverse) 92%, transparent); z-index: 80; display: flex; align-items: stretch; padding: 32px; animation: aa-lb-in .35s var(--ease-out); }
@keyframes aa-lb-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.aa-lb__inner { background: var(--bg-1); color: var(--fg-1); flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; }

/* Carousel */
.aa-lb__carousel { position: relative; background: var(--bg-2); overflow: hidden; }
.aa-lb__slides { position: absolute; inset: 0; }
.aa-lb__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease-out); }
.aa-lb__slide.is-active { opacity: 1; }
.aa-lb__slide .aa-pc__art { position: absolute; inset: 0; }

.aa-lb__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; background: var(--bg-1); color: var(--fg-1); border: 1px solid var(--fg-1); width: 44px; height: 44px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: all .12s var(--ease-out); }
.aa-lb__arrow:hover:not(:disabled) { background: var(--accent); color: var(--aa-paper); border-color: var(--accent); }
.aa-lb__arrow:disabled { opacity: .25; cursor: default; }
.aa-lb__arrow--prev { left: 20px; }
.aa-lb__arrow--next { right: 20px; }

.aa-lb__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.aa-lb__dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(236,238,234,.45); border: none; cursor: pointer; padding: 0; transition: background .15s var(--ease-out), transform .15s var(--ease-out); }
.aa-lb__dot.is-active { background: var(--aa-paper); transform: scale(1.3); }

.aa-lb__counter { position: absolute; top: 16px; right: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: rgba(236,238,234,.65); z-index: 4; }

/* Body */
.aa-lb__body { padding: 56px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.aa-lb__close { position: absolute; right: 32px; top: 32px; z-index: 100; background: var(--bg-1); color: var(--fg-1); border: 1px solid var(--fg-1); width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .12s var(--ease-out); }
.aa-lb__close:hover { background: var(--accent); color: var(--aa-paper); border-color: var(--accent); }
.aa-lb__no { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; }
.aa-lb__title { font-family: var(--font-sans); font-weight: 500; font-size: clamp(28px, 3.5vw, 52px); letter-spacing: -0.025em; line-height: 1; margin: 0; }
.aa-lb__kind { font-family: var(--font-script); color: var(--accent); font-weight: 600; font-size: 22px; }

/* Tags */
.aa-lb__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0; }
.aa-lb__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--fg-1); color: var(--fg-1); border-radius: 999px; white-space: nowrap; }

.aa-lb__meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; padding: 20px 0; border-top: 1px solid var(--border-soft); }
.aa-lb__meta dt { font-family: var(--font-mono); font-size: 10px; color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.aa-lb__meta dd { font-family: var(--font-sans); font-size: 15px; margin: 0; }
.aa-lb__desc { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--fg-2); margin: 0; }

@media (max-width: 900px) {
  .aa-lb { padding: 12px; }
  .aa-lb__inner { grid-template-columns: 1fr; grid-template-rows: 50vh 1fr; }
  .aa-lb__body { padding: 32px; }
}

/* ===== Tweaks-managed cursor follower (signature touch) ===== */
.aa-cursor { position: fixed; pointer-events: none; width: 12px; height: 12px; border-radius: 999px; background: var(--accent); mix-blend-mode: difference; z-index: 100; transform: translate(-50%, -50%); transition: width .25s var(--ease-out), height .25s var(--ease-out), opacity .2s var(--ease-out); opacity: 0; }
.aa-cursor.is-show { opacity: 0.85; }
.aa-cursor.is-link { width: 56px; height: 56px; opacity: 1; }
@media (pointer: coarse) { .aa-cursor { display: none; } }
