/* ============================================
   GIOVANNI TOMMASI — PORTFOLIO
   Editorial / minimal / futuristic
   ============================================ */

:root {
  --ink: #0a0a0a;
  --paper: #f4f1ea;       /* warm neutral */
  --paper-2: #ebe7dd;
  --white: #ffffff;
  --line: rgba(10, 10, 10, 0.18);
  --line-strong: rgba(10, 10, 10, 0.5);
  --muted: rgba(10, 10, 10, 0.55);
  --accent: #0a0a0a;

  --f-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --f-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  cursor: none;
  overflow-x: hidden;
}

@media (max-width: 820px) {
  body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, opacity .2s ease, background .2s ease;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
}
.cursor-ring {
  width: 30px; height: 30px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  mix-blend-mode: difference;
}
.cursor-ring.hover {
  width: 64px; height: 64px;
  background: var(--ink);
}
.cursor-ring.dark { border-color: var(--paper); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  mix-blend-mode: difference;
  color: var(--paper);
}
.topbar a:hover { opacity: 0.6; }
.topbar .left { display: flex; gap: 32px; align-items: center; }
.topbar .mark {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}
.topbar .clock { display: flex; gap: 18px; }
@media (max-width: 720px) {
  .topbar .clock .hideSm { display: none; }
}

/* ---------- Side nav ---------- */
.sidenav {
  position: fixed;
  right: var(--gutter);
  top: 30%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .45s ease;
}
.sidenav.on-dark { color: var(--paper); }
.sidenav button {
  display: flex; align-items: center; gap: 10px;
  color: inherit;
  opacity: 0.4;
  transition: opacity .25s ease;
  cursor: none;
}
.sidenav button .bar {
  width: 18px; height: 1px;
  background: currentColor;
  transition: width .25s ease;
}
.sidenav button:hover,
.sidenav button.active { opacity: 1; }
.sidenav button.active .bar { width: 36px; }
@media (max-width: 1140px) { .sidenav { display: none; } }

/* ---------- Section primitives ---------- */
.section {
  position: relative;
  padding: 120px var(--gutter);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .section { padding: 80px var(--gutter); }
}
.section.dark {
  background: var(--ink);
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.15);
}
.section.dark .muted { color: rgba(244, 241, 234, 0.55); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
  margin-bottom: 64px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section.dark .section-head { border-color: rgba(244, 241, 234, 0.4); }
.section-head .ix { opacity: 0.6; }

h2.display {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 120px var(--gutter) 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(farthest-side at 50% 50%, rgba(10,10,10,0) 42%, rgba(10,10,10,0.28) 72%, rgba(10,10,10,0.62) 92%, rgba(10,10,10,0.8) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.18) 28%, rgba(10,10,10,0.28) 62%, rgba(10,10,10,0.72) 100%),
    radial-gradient(120% 80% at 50% 42%, rgba(10,10,10,0) 40%, rgba(10,10,10,0.5) 100%);
}
.hero > *:not(.hero-bg):not(.hero-veil):not(.hero-scroll) {
  position: relative;
  z-index: 2;
}
.hero .marquee-row {
  display: flex;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(96px, 17vw, 260px);
  line-height: 0.85;
  letter-spacing: -0.04em;
}
.hero .marquee-track {
  display: inline-flex;
  gap: 48px;
  padding-right: 48px;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.hero .name {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.hero .star {
  display: inline-block;
  width: 0.75em; height: 0.75em;
  background: var(--paper);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: end;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.7);
}
.hero-meta .col strong {
  display: block;
  color: var(--paper);
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 6px;
}
.hero-meta .tagline {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--paper);
  font-style: italic;
}
@media (max-width: 720px) {
  .hero-meta { grid-template-columns: 1fr; gap: 22px; }
  .hero-meta .tagline { margin-top: 12px; }
}

.hero-scroll {
  position: absolute;
  left: var(--gutter);
  bottom: 24px;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F1F6D6;
  display: flex; align-items: center; gap: 12px;
}
.hero-scroll .line {
  width: 60px; height: 1px;
  background: rgba(241, 246, 214, 0.5);
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute; inset: 0;
  background: #F1F6D6;
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: stretch;
}
.about-text {
  display: flex;
  flex-direction: column;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
}
.about-text p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  text-wrap: pretty;
}
.about-text p .accent { font-style: italic; opacity: 0.55; }
.about-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 32px;
}
.tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: none;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
.tag:hover { color: var(--ink); transform: translateY(-2px); }
.about-tags .tag:nth-child(1):hover { background: #AED4F2; border-color: #AED4F2; }  /* #ai — light blue */
.about-tags .tag:nth-child(2):hover { background: #F4C6D7; border-color: #F4C6D7; }  /* #web — pink */
.about-tags .tag:nth-child(3):hover { background: #B8E6D2; border-color: #B8E6D2; }  /* #graphics — teal/mint */
.about-cv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  margin-bottom: 30px;
  padding-top: 40px;
}
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 15px 22px;
  border-radius: 999px;
  cursor: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.cv-btn .cv-ico { display: inline-flex; }
.cv-btn .cv-ico svg { width: 16px; height: 16px; display: block; }
.cv-btn.primary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.cv-btn.primary:hover {
  transform: translateY(-2px);
}
.cv-btn.primary:hover .cv-ico svg { animation: cvBounce .5s ease; }
@keyframes cvBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.cv-btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.cv-btn.ghost:hover {
  border-color: var(--ink);
}
.cv-btn.ghost:hover .cv-ico { transform: translate(2px, -2px); }
.cv-btn.ghost .cv-ico { transition: transform .3s ease; }
@media (max-width: 720px) {
  .about-cv { gap: 10px; }
  .cv-btn { flex: 1 1 auto; justify-content: center; }
}
.about-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.about-portrait .frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 420px;
  aspect-ratio: auto;
  background: var(--paper-2);
  overflow: hidden;
}
.about-portrait .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.about-portrait:hover .frame img { transform: scale(1.04); }
.about-portrait .corners {
  position: absolute; inset: 0;
  pointer-events: none;
}
.about-portrait .corners::before,
.about-portrait .corners::after,
.about-portrait .frame::before,
.about-portrait .frame::after {
  content: "";
  position: absolute;
  width: 24px; height: 24px;
  border: 1px solid var(--ink);
}
.about-portrait .corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.about-portrait .corners::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.about-portrait .frame::before { bottom: -1px; left: -1px; border-right: 0; border-top: 0; z-index: 2; }
.about-portrait .frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; z-index: 2; }

.about-portrait .caption {
  display: flex; justify-content: space-between;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- SERVICES ---------- */
.services-list {
  border-top: 1px solid var(--line-strong);
}
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 1.2fr 80px;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .4s cubic-bezier(.2,.8,.2,1);
}
.service-row:hover { padding-left: 24px; }
.service-row:last-child { border-bottom: 0; }
.service-row::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 100%;
  background: var(--ink);
  transition: width .4s cubic-bezier(.2,.8,.2,1);
  z-index: -1;
}
.service-row .ix {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.service-row .name {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.service-row .desc {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38ch;
}
.service-row .arrow {
  font-family: var(--f-display);
  font-size: 24px;
  text-align: right;
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .3s ease, transform .3s ease;
}
.service-row:hover .arrow { opacity: 1; transform: translateX(0); }
@media (max-width: 720px) {
  .service-row {
    grid-template-columns: 44px 1fr;
    gap: 4px 14px;
    align-items: baseline;
    padding: 26px 0;
  }
  .service-row .desc {
    display: block;
    grid-column: 2 / -1;
    margin-top: 6px;
    font-size: 13px;
  }
  .service-row .arrow { display: none; }
  .service-row:active {
    background: rgba(10, 10, 10, 0.04);
  }
}

/* ---------- STACK / TOOLS ---------- */
.stack {
  margin-top: 72px;
}
.stack-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
  margin-bottom: 68px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.stack-head > span:not(.muted) {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
  color: var(--ink);
}
.exp-block {
  margin-bottom: 8px;
}
.exp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.exp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 26px 24px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: none;
  position: relative;
  transition: background .3s ease, opacity .3s ease;
}
.exp-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.exp-card.active { background: var(--paper-2); }
.exp-card.active::after { transform: scaleX(1); }
.exp-card.dim { opacity: 0.5; }
.exp-card .exp-logo {
  margin: 18px 0 44px;
}
.exp-card-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}
.exp-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease, transform .35s ease, padding .45s ease;
  padding: 0 24px;
}
.exp-detail.open {
  max-height: 460px;
  opacity: 1;
  transform: translateY(0);
  padding: 30px 24px 34px;
  border-bottom: 1px solid var(--line);
}
.exp-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.exp-logo {
  height: 76px;
  width: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.exp-logo img {
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}
.exp-mono {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.exp-period {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.exp-company {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.exp-role {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
}
.exp-points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  padding: 0;
  max-width: 92ch;
}
.exp-points li {
  position: relative;
  padding-left: 30px;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(10, 10, 10, 0.78);
  text-wrap: pretty;
  transition: color .3s ease;
}
.exp-points li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-display);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .3s ease;
}
.exp-points li:hover { color: var(--ink); }
.exp-points li:hover::before {
  transform: translateX(4px);
  color: var(--ink);
}
.exp-points b {
  font-weight: inherit;
  font-style: normal;
  color: inherit;
}
.exp-points.one-col { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .exp-cards { grid-template-columns: 1fr 1fr; }
  .exp-card .exp-logo { height: 60px; margin: 14px 0 36px; }
  .exp-points { grid-template-columns: 1fr; gap: 14px; }
  .exp-points li { font-size: 13px; }
  .exp-detail.open { max-height: 900px; }
}

/* ---------- ARCHIVE / DOCS ---------- */
.docs-list {
  border-top: 1px solid var(--line);
}
.doc-row {
  display: grid;
  grid-template-columns: 40px 1fr 260px 130px;
  gap: 32px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .35s cubic-bezier(.2,.8,.2,1), background .3s ease;
}
.doc-row:hover { padding-left: 20px; padding-right: 20px; }
.doc-icon {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--muted);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), color .3s ease;
}
.doc-icon svg { width: 32px; height: 32px; display: block; }
.doc-row:hover .doc-icon { color: var(--ink); transform: translateY(2px); }
.doc-main { display: flex; flex-direction: column; gap: 6px; }
.doc-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.doc-desc {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}
.doc-desc b { font-weight: 600; color: var(--ink); }
.doc-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-meta .doc-year { opacity: 0.6; }
.doc-action {
  justify-self: end;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.doc-row:hover .doc-action {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
@media (max-width: 820px) {
  .doc-row {
    grid-template-columns: 28px 1fr auto;
    gap: 16px 18px;
    align-items: start;
  }
  .doc-meta { display: none; }
  .doc-action { grid-column: 2 / -1; justify-self: start; margin-top: 4px; }
}

.stack-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 64px;
}
@media (max-width: 720px) { .stack-groups { grid-template-columns: 1fr; gap: 32px; } }
.stack-group {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 520px) { .stack-group { grid-template-columns: 1fr; gap: 12px; } }
.stack-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.stack-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.tool:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.tool-logo {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.tool-logo img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
}
.tool-name {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- WORK ---------- */
.work-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-filters { display: flex; gap: 4px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .work-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 12px;
  }
  .work-controls > div:last-child { text-align: right; }
}
.filter-pill {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: none;
  transition: all .25s ease;
  color: var(--paper);
}
.filter-pill:hover { background: rgba(244, 241, 234, 0.1); }
.filter-pill.active {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.work-table { border-top: 1px solid rgba(244, 241, 234, 0.4); }
.work-row {
  display: grid;
  grid-template-columns: 60px 1.5fr 1fr 0.8fr 60px;
  gap: 24px;
  align-items: center;
  padding: 22px 12px;
  border-bottom: 1px solid rgba(244, 241, 234, 0.15);
  cursor: none;
  position: relative;
  transition: background .3s ease, padding .3s ease;
}
.work-row:hover { background: rgba(244, 241, 234, 0.05); padding-left: 24px; }
.work-row .ix { font-family: var(--f-mono); font-size: 12px; opacity: 0.5; }
.work-row .title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}
.work-row .desc {
  font-family: var(--f-body);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.6;
  max-width: 42ch;
}
.work-row .meta {
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.work-row .meta .lang { font-weight: 600; }
.work-row .meta .priv { opacity: 0.5; }
.work-row .meta .live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--paper);
  margin-right: 7px;
  vertical-align: middle;
  animation: livePulse 1.8s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}
.work-row .arrow {
  text-align: right;
  font-family: var(--f-display);
  font-size: 22px;
  opacity: 0;
  transform: translate(-8px, 0);
  transition: opacity .3s ease, transform .3s ease;
}
.work-row:hover .arrow { opacity: 1; transform: translate(0, 0); }
.work-row .arrow svg { width: 22px; height: 22px; display: block; margin-left: auto; }
@media (max-width: 820px) {
  .work-row {
    grid-template-columns: 40px 1fr;
    gap: 4px 12px;
    padding: 18px 4px;
    align-items: baseline;
  }
  .work-row .desc {
    display: block;
    grid-column: 2 / -1;
    margin-top: 4px;
    max-width: none;
  }
  .work-row .meta, .work-row .arrow { display: none; }
}

.work-foot {
  margin-top: 32px;
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.6);
}

/* ---------- MUSIC ---------- */
.music-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
@media (max-width: 720px) { .music-grid { grid-template-columns: 1fr; } }
.track {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  cursor: none;
  transition: background .3s ease;
}
.track:hover { background: var(--paper-2); }
.track.featured {
  grid-column: span 2;
  min-height: 280px;
}
@media (max-width: 720px) { .track.featured { grid-column: span 1; } }
.track .head {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.track .ix { opacity: 0.5; }
.track .title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}
.track .cover {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.track .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track .cover .cover-ph {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.track:hover .cover { transform: scale(1.04); }
.track.playing .cover { transform: scale(1.04); }
.track.featured .cover { width: 72px; height: 72px; }
.track .title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.track .artist {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 6px;
}
.track .controls {
  display: flex; align-items: center; gap: 16px;
  margin-top: 18px;
}
.track .play {
  width: 52px; height: 52px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: none;
  transition: background .25s ease, color .25s ease, transform .3s ease;
  flex-shrink: 0;
}
.track .play:hover { background: var(--ink); color: var(--paper); }
.track.playing .play { background: var(--ink); color: var(--paper); }
.track .play svg { width: 14px; height: 14px; fill: currentColor; }
.track .progress {
  flex: 1; height: 1px; background: var(--line-strong); position: relative;
}
.track .progress .fill {
  position: absolute; left: 0; top: -1px; bottom: -1px;
  background: var(--ink);
  width: 0%;
  transition: width 0.1s linear;
}
.track .time {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.6;
  min-width: 70px;
  text-align: right;
}
.track .open {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity .25s ease;
}
.track .open:hover { opacity: 1; }

.track .visualizer {
  display: flex; align-items: flex-end; gap: 3px;
  height: 28px;
  margin-top: 12px;
  opacity: 0.4;
  transition: opacity .25s ease;
}
.track.playing .visualizer { opacity: 1; }
.track .visualizer .bar {
  width: 3px;
  background: var(--ink);
  height: 4px;
}
.track.playing .visualizer .bar {
  animation: vis 0.9s ease-in-out infinite;
}
.track .visualizer .bar:nth-child(1) { animation-delay: 0s; }
.track .visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.track .visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.track .visualizer .bar:nth-child(4) { animation-delay: 0.3s; }
.track .visualizer .bar:nth-child(5) { animation-delay: 0.15s; }
.track .visualizer .bar:nth-child(6) { animation-delay: 0.05s; }
.track .visualizer .bar:nth-child(7) { animation-delay: 0.25s; }
.track .visualizer .bar:nth-child(8) { animation-delay: 0.35s; }
.track .visualizer .bar:nth-child(9) { animation-delay: 0.1s; }
.track .visualizer .bar:nth-child(10) { animation-delay: 0.2s; }
.track .visualizer .bar:nth-child(11) { animation-delay: 0.3s; }
.track .visualizer .bar:nth-child(12) { animation-delay: 0s; }
@keyframes vis {
  0%, 100% { height: 4px; }
  50% { height: 26px; }
}

/* ---------- INSTAGRAM ---------- */
.ig-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.ig-follow {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.ig-follow .handle {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.6;
}
.ig-follow .go {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  transition: opacity .25s ease;
}
.ig-follow:hover .go { opacity: 0.55; }

.ig-embeds {
  column-count: 3;
  column-gap: 16px;
}
@media (max-width: 1100px) { .ig-embeds { column-count: 2; } }
@media (max-width: 680px)  { .ig-embeds { column-count: 1; } }
.ig-crop {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0 0 16px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  background: var(--paper-2);
}
.ig-crop .instagram-media {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: 100% !important;
  background: #fff !important;
}
.ig-crop iframe {
  display: block;
  width: 100% !important;
  min-width: 0 !important;
  transform-origin: 0 0;
}
.ig-crop .instagram-media iframe { border: 0 !important; }
.ig-embeds .ig-fallback {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ig-foot {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- VIDEO ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 900px) {
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(244, 241, 234, 0.18);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.video-side .lead {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: rgba(244, 241, 234, 0.8);
  text-wrap: pretty;
}
.video-side .yt-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid rgba(244, 241, 234, 0.2);
  border-bottom: 1px solid rgba(244, 241, 234, 0.2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: padding .3s ease;
}
.video-side .yt-link:hover { padding-left: 14px; }
.video-side .yt-link .arrow { display: inline-block; transition: transform .3s ease; }
.video-side .yt-link:hover .arrow { transform: translate(6px, -6px); }
.video-side .yt-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}

/* ---------- CONTACT ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
}
@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; gap: 48px; }
}
.huge-mail {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 7vw, 100px);
  letter-spacing: -0.04em;
  line-height: 0.95;
  display: inline-block;
  position: relative;
  word-break: break-all;
}
.huge-mail::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 2px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.huge-mail:hover::after { transform: scaleX(1); }

.contact-links { display: flex; flex-direction: column; gap: 0; margin-top: 48px; }
.contact-link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  border-top: 1px solid rgba(244, 241, 234, 0.2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  transition: padding .3s ease;
}
.contact-link:last-child { border-bottom: 1px solid rgba(244, 241, 234, 0.2); }
.contact-link:hover { padding-left: 16px; }
.contact-link .label { display: flex; gap: 24px; align-items: center; }
.contact-link .ix { opacity: 0.5; }
.contact-link .arrow {
  display: inline-block;
  transition: transform .3s ease;
}
.contact-link:hover .arrow { transform: translate(6px, -6px); }

.contact-side .mono { color: rgba(244, 241, 234, 0.6); margin-bottom: 16px; }
.contact-side h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 24px;
  text-wrap: balance;
}
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 241, 234, 0.3);
  color: var(--paper);
  padding: 14px 0;
  font-family: var(--f-body);
  font-size: 14px;
  outline: 0;
  resize: none;
  transition: border-color .25s ease;
  cursor: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(244, 241, 234, 0.4);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--paper); }
.contact-form button {
  margin-top: 12px;
  align-self: flex-start;
  padding: 14px 24px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease;
  cursor: none;
}
.contact-form button:hover { background: var(--paper); color: var(--ink); }
.contact-form .sent {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.7);
  margin-top: 8px;
  opacity: 0;
  transition: opacity .3s ease;
}
.contact-form .sent.show { opacity: 1; }

/* ---------- FOOTER ---------- */
.foot {
  padding: 32px var(--gutter);
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  background: var(--ink);
}
.foot .grow { display: flex; gap: 24px; }
.foot .foot-icons { align-items: center; gap: 18px; }
.foot .foot-icons a {
  display: inline-flex;
  opacity: 0.6;
  transition: opacity .25s ease, transform .25s ease;
}
.foot .foot-icons a:hover { opacity: 1; transform: translateY(-2px); }
.foot .foot-icons svg { display: block; }
@media (max-width: 720px) {
  .foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .foot .grow:first-child {
    flex-direction: column;
    gap: 8px;
  }
}

/* fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.fade-in.in {
  opacity: 1;
  transform: translateY(0);
}
