*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Themes ─────────────────────────────────────────── */
[data-theme="light"] {
  --bg:      #F5F3EF;
  --ink:     #0F0F0E;
  --dim:     #8C8984;
  --faint:   rgba(15,15,14,0.08);
  --line:    rgba(15,15,14,0.1);
}
[data-theme="dark"] {
  --bg:      #0F0F0E;
  --ink:     #F5F3EF;
  --dim:     #68655F;
  --faint:   rgba(245,243,239,0.06);
  --line:    rgba(245,243,239,0.1);
}

/* ── Base ───────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  transition: background 0.7s cubic-bezier(0.16, 1, 0.3, 1), color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

::selection { background: var(--ink); color: var(--bg); }

/* ── Fixed nav ──────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}
.nav > * { pointer-events: all; }

.nav__logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: currentColor;
  text-decoration: none;
  transition: opacity 0.3s;
}
.nav__logo:hover { opacity: 0.7; }

.nav__links {
  display: flex; gap: 32px; list-style: none; align-items: center;
}
.nav__links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}
.nav__links a:hover { color: #fff; transform: translateY(-1px); }

.nav__theme {
  background: none; border: none; cursor: pointer;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 0;
  transition: color 0.3s, transform 0.3s;
}
.nav__theme:hover { color: #fff; transform: rotate(90deg); }

@media (max-width: 680px) {
  .nav { padding: 20px 24px; }
  .nav__links { gap: 20px; }
  .nav__links li:not(:last-child) { display: none; }
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 48px 48px;
  position: relative;
  overflow: hidden;
}
#particle-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
}
.hero > *:not(#particle-canvas) { position: relative; z-index: 1; }

/* Ghost outline name — dead centre */
.hero__ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(14vw, 18vw, 20vw);
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease 0.2s, -webkit-text-stroke-color 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero__ghost.on { opacity: 0.5; }
[data-theme="dark"] .hero__ghost.on { opacity: 0.3; }

/* Bottom strip */
.hero__strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  transition: border-color 0.7s;
}

@media (max-width: 800px) {
  .hero { padding: 0 24px 40px; }
  .hero__strip { grid-template-columns: 1fr; gap: 24px; }
  .hero__meta { text-align: left !important; }
}

/* Name */
.hero__name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 5.5vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  overflow: hidden;
}

.hero__name-line {
  display: block;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.hero__name-line.on { opacity: 1; transform: none; }
.hero__name-line:nth-child(1) { transition-delay: 0.06s; }
.hero__name-line:nth-child(2) { transition-delay: 0.18s; color: var(--dim); font-weight: 200; }

/* Centre descriptor */
.hero__desc {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.35s, transform 0.7s ease 0.35s;
}
.hero__desc.on { opacity: 1; transform: none; }

.hero__desc-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 12px;
  transition: color 0.7s;
  text-transform: uppercase;
}
.hero__desc-lines {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--dim);
  transition: color 0.7s;
}

/* Year + city */
.hero__meta {
  text-align: right;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.48s, transform 0.7s ease 0.48s;
}
.hero__meta.on { opacity: 1; transform: none; }

.hero__year {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--dim);
  display: block;
  transition: color 0.7s;
}
.hero__city {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
  transition: color 0.7s;
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 52px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.7s ease 1s;
  pointer-events: none;
}
@media (max-width: 800px) {
  .hero__scroll { right: 24px; bottom: 40px; }
}
.hero__scroll.on { opacity: 1; }
.hero__scroll-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  color: var(--dim);
  writing-mode: vertical-rl;
  letter-spacing: 0.15em;
  transition: color 0.7s;
}
.hero__scroll-bar {
  width: 1px; height: 40px;
  background: var(--line);
  animation: pulse 2s ease-in-out infinite;
  transition: background 0.7s;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scaleY(1); transform-origin: top;} 50%{opacity:.3;transform:scaleY(0.2); transform-origin: top;} }

/* Centred chevron */
.hero__chevron {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--dim);
  opacity: 0;
  transition: opacity 0.7s ease 1.2s, color 0.7s;
  pointer-events: none;
}
.hero__chevron.on { opacity: 1; }
.hero__chevron-lbl {
  font-family: 'Space Mono', monospace;
  font-size: 0.56rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.7s;
}
.hero__chevron svg {
  animation: chevronBounce 2s ease-in-out infinite;
}
@keyframes chevronBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(6px); opacity: 0.4; }
}

/* ── LAYOUT COMMONS ─────────────────────────────────── */
.section-id {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease, color 0.7s;
}
.section-id.on { opacity: 1; transform: none; }
.section-id::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  transition: background 0.7s;
}

.section-h {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 36px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease 0.1s, transform 0.8s ease 0.1s;
}
.section-h.on { opacity: 1; transform: none; }
.section-h span { color: var(--dim); font-weight: 200; transition: color 0.7s; }


/* ── ABOUT ──────────────────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 80px;
  padding: 128px 48px;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: border-color 0.7s;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; padding: 96px 24px; gap: 52px; }
  .about__img-col { max-width: 320px; }
}

/* Photo column */
.about__img-col {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16,1,0.3,1);
}
.about__img-col.on { opacity: 1; transform: none; }

.about__img-frame {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--faint);
  position: relative;
}
.about__img, .about__img-hover {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: opacity 0.6s ease, filter 0.8s ease, transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.about__img {
  filter: grayscale(20%) contrast(1.1);
}
.about__img-hover {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  filter: grayscale(0%) contrast(1);
}
.about__img-frame:hover .about__img { opacity: 0; }
.about__img-frame:hover .about__img-hover { opacity: 1; transform: scale(1.04); }

.about__img-placeholder {
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 4rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}

.about__img-caption {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 16px;
  display: block;
  transition: color 0.7s;
}

/* Text column */
.about__p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dim);
  max-width: 540px;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease 0.22s, transform 0.7s ease 0.22s, color 0.7s;
}
.about__p.on { opacity: 1; transform: none; }
.about__p p + p { margin-top: 1.2em; }
.about__p strong { color: var(--ink); font-weight: 400; transition: color 0.7s; }

/* Stats */
.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease 0.36s, transform 0.8s ease 0.36s, border-color 0.7s;
}
.about__stats.on { opacity: 1; transform: none; }

@media (max-width: 600px) { .about__stats { grid-template-columns: repeat(2,1fr); } }

.about__stat {
  padding: 24px 16px 24px 0;
  border-right: 1px solid var(--line);
  transition: border-color 0.7s;
}
.about__stat:last-child { border-right: none; }
@media (max-width: 600px) {
  .about__stat:nth-child(2) { border-right: none; }
}

.about__stat-n {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 200;
  letter-spacing: 0.02em;
  line-height: 1;
  display: block;
  transition: color 0.7s;
}
.about__stat-l {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
  display: block;
  transition: color 0.7s;
}

/* ── SKILLS ─────────────────────────────────────────── */
.skills {
  padding: 0 48px 128px;
  max-width: 1400px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.skills.on { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .skills { padding: 0 24px 96px; }
}

.skills__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: block;
  transition: color 0.7s;
}

.skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.skills__item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 40px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  cursor: default;
}
.skills__item:hover {
  color: var(--bg);
  background: var(--ink);
  border-color: var(--ink);
}

/* ── CLIENTS / EXPERIENCE ───────────────────────────── */
.clients {
  padding: 0 48px 128px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .clients { padding: 0 24px 96px; }
}
.clients__grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 80px;
  row-gap: 40px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.clients__grid.on { opacity: 1; transform: none; }
.clients__item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.5s;
  cursor: default;
}
.clients__item:hover { color: var(--ink); }

/* ── PROJECTS ───────────────────────────────────────── */
.projects {
  padding: 128px 48px;
  border-top: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  transition: border-color 0.7s;
}
@media (max-width: 900px) {
  .projects { padding: 96px 24px; }
}

/* Project filters */
.projects__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.7s;
}
.projects__filter {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  position: relative;
  transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.projects__filter::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.projects__filter:hover {
  color: var(--ink);
}
.projects__filter.active {
  color: var(--ink);
}
.projects__filter.active::after {
  transform: scaleX(1);
}

/* Card show/hide animation */
.project-card.hidden {
  display: none;
}
.project-card.fade-out {
  opacity: 0;
  transform: scale(0.96) translateY(10px);
  pointer-events: none;
}
.project-card.fade-in {
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: scale(0.96) translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-top: 64px;
}
@media (max-width: 800px) {
  .projects__grid { grid-template-columns: 1fr; gap: 56px; }
}

.project-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.project-card.on { opacity: 1; transform: none; }
.project-card:nth-child(even) { transition-delay: 0.15s; }
@media (max-width: 800px) { .project-card:nth-child(even) { transition-delay: 0s; } }

.project-card__img-frame {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--faint);
  margin-bottom: 24px;
  position: relative;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.project-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  background: var(--faint);
  opacity: 0.5;
}
.project-card:hover .project-card__img {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.04);
}

.project-card__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  transition: border-color 0.5s;
}
.project-card:hover .project-card__info {
  border-color: var(--ink);
}

.project-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.7s;
}
.project-card__tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
  transition: color 0.7s;
}

.project-card__icon {
  font-family: 'Space Mono', monospace;
  font-size: 2rem;
  font-weight: 200;
  line-height: 1;
  color: var(--dim);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), color 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card:hover .project-card__icon { color: var(--ink); }
.project-card.expanded .project-card__icon { transform: rotate(45deg); color: var(--ink); }

.project-card__content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease 0.1s, padding-top 0.4s ease;
}
.project-card.expanded .project-card__content {
  max-height: 400px;
  opacity: 1;
  padding-top: 24px;
}
.project-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--dim);
  margin-bottom: 24px;
}
.project-card__link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 0.3s;
  display: inline-block;
}
.project-card__link:hover { opacity: 0.6; }

/* ── BLOG ──────────────────────────────────────────── */
.blog {
  padding: 128px 48px;
  border-top: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  transition: border-color 0.7s;
}
@media (max-width: 900px) {
  .blog { padding: 96px 24px; }
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 64px;
}
@media (max-width: 900px) {
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog__grid { grid-template-columns: 1fr; }
}
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.blog-card.on { opacity: 1; transform: none; }
.blog-card:nth-child(2) { transition-delay: 0.1s; }
.blog-card:nth-child(3) { transition-delay: 0.2s; }
.blog-card__img-frame {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--faint);
  margin-bottom: 20px;
  position: relative;
}
.blog-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.9);
  transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.16,1,0.3,1);
}
.blog-card:hover .blog-card__img {
  filter: grayscale(0%) brightness(1.05);
  transform: scale(1.04);
}
.blog-card__img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  background: var(--faint);
  opacity: 0.5;
  transition: opacity 0.4s;
}
.blog-card:hover .blog-card__img-placeholder { opacity: 0.8; }
.blog-card__body {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  transition: border-color 0.5s;
}
.blog-card:hover .blog-card__body { border-color: var(--ink); }
.blog-card__date {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
  transition: color 0.7s;
}
.blog-card__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 10px;
  transition: color 0.7s;
}
.blog-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--dim);
  transition: color 0.7s;
}

/* ── TOAST ──────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--ink);
  padding: 14px 32px;
  border: 1px solid var(--line);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── CONTACT ────────────────────────────────────────── */
.contact {
  padding: 160px 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  transition: border-color 0.7s;
}
@media (max-width: 900px) {
  .contact { padding: 112px 24px; }
}

.contact__inner {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.contact__inner.on { opacity: 1; transform: none; }

.contact .section-id {
  justify-content: center;
  margin-bottom: 48px;
}
.contact .section-id::after { display: none; }

.contact__h {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 64px;
}
.contact__h a {
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s;
  display: inline-block;
  position: relative;
}
.contact__h a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 100%; height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.contact__h a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.contact__h span { color: var(--dim); font-weight: 200; display: block; margin-top: 8px; }

.contact__links {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.contact__link {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s;
}
.contact__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.contact__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.contact__link:hover {
  color: var(--dim);
}

/* Footer / Copy */
.footer {
  padding: 32px 48px;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media (max-width: 900px) {
  .footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
}
.footer__p {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: var(--dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .footer__right { justify-content: center; }
}

.footer__cookie-btn {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: inherit;
  line-height: inherit;
  color: var(--dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent !important;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0 0 2px;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.3s, border-color 0.3s;
}
.footer__cookie-btn:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}
.footer__cookie-btn:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 3px;
}

/* ── Cookie consent banner ─────────────────────────── */
/* Ensure visible when JS shows banner (some browsers keep [hidden] layout quirks) */
.cookie-banner.cookie-banner--on {
  display: block !important;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 150;
  padding: 24px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
  transition: background 0.7s, border-color 0.7s;
}
[data-theme="dark"] .cookie-banner {
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 720px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
}

.cookie-banner__text {
  flex: 1;
  min-width: 0;
}

.cookie-banner__title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.cookie-banner__lead {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--dim);
  margin-bottom: 12px;
}

.cookie-banner__details {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--dim);
}
.cookie-banner__summary {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.cookie-banner__summary::-webkit-details-marker { display: none; }
.cookie-banner__summary::before {
  content: '';
  display: inline-block;
  width: 0.35em;
  height: 0.35em;
  margin-right: 0.45em;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: 0.15em;
  opacity: 0.45;
  transition: transform 0.2s ease;
}
.cookie-banner__details[open] .cookie-banner__summary::before {
  transform: rotate(45deg);
  vertical-align: 0.05em;
}

.cookie-banner__detail-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.cookie-banner__detail-body p + p {
  margin-top: 10px;
}

.cookie-banner__actions {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner__btn {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 22px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--line);
  box-shadow: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.cookie-banner__btn:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 2px;
}

.cookie-banner__btn--primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.cookie-banner__btn--primary:hover {
  opacity: 0.92;
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: var(--ink);
}
.cookie-banner__btn--ghost:hover {
  background: var(--faint);
}

.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: var(--ink); color: var(--bg);
  border-radius: 50%; font-size: 0.7rem; font-weight: 600;
}

.hero__cv-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 24px;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--bg);
  background: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
}
.hero__cv-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
