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

:root {
  --paper: #F2F0EA;
  --paper-2: #E9E6DD;
  --ink: #121212;
  --black-panel: #0A0A0B;
  --panel-2: #141416;
  --red: #E31E24;
  --red-soft: rgba(227, 30, 36, 0.12);
  --muted: #303030;
  --muted-dark: #9A9A9A;
  --line: rgba(18, 18, 18, 0.12);
  --line-dark: rgba(255, 255, 255, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection {
  background: var(--red);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.stagger>* {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}

.stagger.in>* {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stagger.in>*:nth-child(1) {
  transition-delay: .02s;
}

.stagger.in>*:nth-child(2) {
  transition-delay: .06s;
}

.stagger.in>*:nth-child(3) {
  transition-delay: .1s;
}

.stagger.in>*:nth-child(4) {
  transition-delay: .14s;
}

.stagger.in>*:nth-child(5) {
  transition-delay: .18s;
}

.stagger.in>*:nth-child(6) {
  transition-delay: .22s;
}

.stagger.in>*:nth-child(7) {
  transition-delay: .26s;
}

.stagger.in>*:nth-child(8) {
  transition-delay: .3s;
}

.stagger.in>*:nth-child(9) {
  transition-delay: .34s;
}

.stagger.in>*:nth-child(10) {
  transition-delay: .38s;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--red);
  z-index: 300;
  transition: width .08s linear;
}

/* ---------- NAV ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  background: rgba(242, 240, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: 'Archivo Black', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.logo span {
  color: var(--red);
}

.navlinks {
  display: flex;
  gap: 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.navlinks a {
  transition: color .2s;
  position: relative;
}

.navlinks a.active {
  color: var(--ink);
}

.navlinks a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width .25s ease;
}

.navlinks a:hover {
  color: var(--red);
}

.navlinks a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-weight: 700;
  transition: background .2s, transform .2s;
}

.nav-cta:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  z-index: 99;
  padding: 20px 40px 28px;
  flex-direction: column;
  gap: 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-panel.open {
  display: flex;
}

/* ---------- MARQUEE ---------- */
.marquee-band {
  background: var(--red);
  overflow: hidden;
  padding: 10px 0;
}

.marquee-track {
  display: flex;
  gap: 34px;
  white-space: nowrap;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  animation: marquee 20s linear infinite;
  width: max-content;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- HERO (home) ---------- */
.hero {
  padding: 64px 40px 40px;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 220px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp .6s ease forwards;
  animation-delay: .05s;
}

h1.mega {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(60px, 12vw, 168px);
  line-height: 0.86;
  letter-spacing: -0.01em;
  position: relative;
  margin-top: 6px;
  clip-path: inset(0 100% 0 0);
  animation: wipeIn .9s cubic-bezier(.2, .7, .15, 1) forwards;
  animation-delay: .15s;
}

@keyframes wipeIn {
  to {
    clip-path: inset(0 0% 0 0);
  }
}

.mega-wrap {
  position: relative;
  display: inline-block;
}

.mega-year {
  position: absolute;
  top: 55%;
  left: 2%;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(30px, 7vw, 90px);
  color: var(--red);
  opacity: 0;
  z-index: 0;
  filter: blur(0.3px);
  animation: fadeYear .7s ease forwards;
  animation-delay: .85s;
}

@keyframes fadeYear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 0.55;
    transform: translateX(0);
  }
}

.mega-top {
  position: relative;
  z-index: 1;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 30px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeUp .6s ease forwards;
  animation-delay: 1.05s;
}

.hero-divider .dash {
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 11px);
  transform-origin: left;
  animation: growLine 1s ease forwards;
  animation-delay: 1.1s;
  transform: scaleX(0);
}

@keyframes growLine {
  to {
    transform: scaleX(1);
  }
}

.hero-divider .spark {
  color: var(--red);
  animation: spin 5s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ---------- PAGE HEADER (about / work / case study pages) ---------- */
.page-header {
  padding: 56px 40px 50px;
  max-width: 1300px;
  margin: 0 auto;
}

.ph-kicker {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

h1.page-title {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(42px, 7.5vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.01em;
}

.page-sub {
  margin-top: 22px;
  max-width: 600px;
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.75;
}

.back-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
}

.back-link:hover {
  color: var(--red);
}

/* ---------- ABOUT ---------- */
.about {
  padding: 0 40px 90px;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #26221d, #0e0d0b);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(15%) contrast(1.05);
}

.about-photo .ph-label {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  color: var(--muted-dark);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 22px;
}

.rotated-tag {
  position: absolute;
  top: 0;
  left: 16px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Archivo Black', sans-serif;
  color: var(--red);
  font-size: 34px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.about-copy .lede {
  font-size: 12px;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.about-copy h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.about-copy h2 .hl {
  color: var(--red);
}

.about-copy p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 10px;
}

.about-copy p strong {
  color: var(--ink);
  font-weight: 700;
}

.timeline {
  display: flex;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.tl-item {
  flex: 1;
  min-width: 150px;
  padding: 18px 20px 0 0;
  font-family: 'Montserrat', sans-serif;
}

.tl-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  margin-bottom: 10px;
}

.tl-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.tl-year {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

@media (max-width:860px) {
  .about {
    grid-template-columns: 1fr;
  }
}

/* ---------- EXPERIENCE (about page, full CV-style list) ---------- */
.exp-wrap {
  padding: 0 40px 100px;
  max-width: 1300px;
  margin: 0 auto;
}

.exp-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.exp-item:last-child {
  border-bottom: 1px solid var(--line);
}

.exp-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.8;
}

.exp-meta .exp-years {
  color: var(--red);
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}

.exp-role {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.001em;
  margin-bottom: 6px;
}

.exp-company {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.exp-list li {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.exp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--red);
}

@media (max-width:760px) {
  .exp-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 20px;
}

.edu-card {
  background: var(--paper);
  padding: 28px;
}

.edu-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.edu-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
}

.edu-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  color: var(--muted);
}

@media (max-width:640px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- SECTION DIVIDER (big title) ---------- */
.section-divider {
  background: var(--paper-2);
  padding: 70px 40px 60px;
  position: relative;
  overflow: hidden;
}

.sd-inner {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.sd-num {
  position: absolute;
  bottom: 65%;
  left: -2%;
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(40px, 7vw, 90px);
  color: var(--red);
  z-index: 0;
  line-height: 1;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity .6s ease .1s, transform .6s cubic-bezier(.3, .6, .2, 1) .1s;
}

.section-divider.in .sd-num {
  opacity: 1;
  transform: scale(1);
}

.sd-title {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(38px, 7.5vw, 100px);
  letter-spacing: -0.005em;
  line-height: 0.92;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.sd-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-left: 6px;
  text-transform: none;
}

/* ---------- BENTO GRID ---------- */
.bento-wrap {
  background: var(--black-panel);
  padding: 2px 2px 70px;
}

.bento {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 2px;
}

.b-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
  cursor: pointer;
}

.b-tile:hover {
  transform: scale(0.985);
}

.b-tile .b-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-dark);
  position: relative;
  z-index: 2;
  transition: color .25s;
}

.b-tile .b-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  position: relative;
  z-index: 2;
  margin-top: 4px;
  transition: transform .3s ease;
}

.b-tile:hover .b-title {
  transform: translateX(3px);
}

.b-tile:hover .b-label {
  color: var(--red);
}

.b-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.9;
  transition: transform .5s ease, opacity .35s ease;
}

.b-tile:hover::before {
  transform: scale(1.08);
  opacity: 1;
}

.bg1::before {
  background: radial-gradient(circle at 30% 20%, rgba(227, 30, 36, 0.4), transparent 55%), linear-gradient(150deg, #1c0f0f, var(--panel-2) 70%);
}

.bg2::before {
  background: radial-gradient(circle at 70% 70%, rgba(227, 30, 36, 0.22), transparent 55%), linear-gradient(150deg, #141416, #0c0c0d 70%);
}

.bg3::before {
  background: linear-gradient(150deg, #1b1b1d, #0a0a0b);
}

.bg4::before {
  background: radial-gradient(circle at 50% 30%, rgba(227, 30, 36, 0.3), transparent 60%), linear-gradient(160deg, #181112, var(--panel-2));
}

.bg5::before {
  background: linear-gradient(140deg, #101012, #0a0a0b);
}

.bg6::before {
  background: radial-gradient(circle at 60% 40%, rgba(227, 30, 36, 0.18), transparent 55%), linear-gradient(150deg, #151517, #0a0a0b);
}

.span-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.span-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.span-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.span-3x1 {
  grid-column: span 3;
  grid-row: span 1;
}

.bento-note {
  max-width: 1300px;
  margin: 0 auto;
  padding: 18px 40px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  color: var(--muted-dark);
  letter-spacing: 0.03em;
}

/* ---------- SKILLS / CAPABILITIES ---------- */
.skills-wrap {
  background: var(--paper);
  padding: 0 40px 100px;
  max-width: 1300px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.skill-card {
  background: var(--paper);
  padding: 30px 26px;
  transition: background .25s;
}

.skill-card:hover {
  background: #fff;
}

.skill-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.skill-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}

.skill-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.skill-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  padding: 5px 9px;
  color: var(--muted);
}

/* ---------- CASE STUDY PAGES ---------- */
.case-hero {
  padding: 56px 40px 40px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px 40px;
}

.case-hero-inner {
  flex: 1 1 420px;
  max-width: 760px;
  min-width: 0;
}

.case-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.case-meta span:not(:last-child)::after {
  content: '◆';
  margin-left: 14px;
  color: var(--line);
}

.case-hero h1 {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(36px, 6.5vw, 80px);
  letter-spacing: -0.005em;
  line-height: 0.96;
  margin-bottom: 22px;
}

.case-hero p {
  font-size: 15.5px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.75;
}

.case-art-wrap {
  max-width: 1300px;
  margin: 0 auto 70px;
  padding: 0 40px;
}

.case-art {
  height: 420px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  color: var(--muted-dark);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px 110px;
}

.dcs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 80px;
}

.dcs-item {
  background: var(--paper-2);
  padding: 30px;
}

.dcs-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  color: var(--red);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.dcs-text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.7;
}

@media (max-width:640px) {
  .dcs {
    grid-template-columns: 1fr;
  }
}

.case-section {
  margin-bottom: 56px;
}

.case-section h2 {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

.case-section p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.case-nav {
  border-top: 1px solid var(--line);
  padding: 50px 40px;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.case-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s;
}

.case-nav a:hover {
  color: var(--red);
}

/* ---------- STATEMENT ---------- */
.statement {
  padding: 110px 40px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: left;
  background: var(--paper);
}

.statement p {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  max-width: 1000px;
}

.statement p .hl {
  color: var(--red);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--black-panel);
  color: var(--paper);
  padding: 100px 40px 50px;
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.footer-title {
  font-family: 'Archivo Black', sans-serif;
  text-transform: uppercase;
  font-size: clamp(34px, 6.5vw, 90px);
  line-height: 0.95;
  letter-spacing: -0.005em;
  margin-bottom: 50px;
}

.footer-title .hl {
  color: var(--red);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  border-top: 1px solid var(--line-dark);
  padding-top: 30px;
}

.footer-col {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--muted-dark);
  line-height: 2.1;
}

.footer-col a {
  color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  transition: color .2s, border-color .2s;
}

.footer-col a:hover {
  color: var(--red);
  border-color: var(--red);
}

.footer-col .label {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 8px;
}

/* ---------- TOOLS CORNER ---------- */
.tools-corner {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.tools-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 8px;
  width: 100%;
  text-align: right;
}

.tools-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tool-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 52px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Archivo Black', sans-serif;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tool-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 8.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
}

.ic-figma { background: linear-gradient(135deg, #1ABCFE 0%, #0ACF83 50%, #A259FF 100%); }
.ic-ps    { background: #1E88E5; }
.ic-ai    { background: #FB8C00; }
.ic-ae    { background: #4527A0; }
.ic-pr    { background: #3949AB; }
.ic-id    { background: #D81B60; }
.ic-fy    { background: linear-gradient(135deg, #FF4D6D, #B721FF); }
.ic-mj    { background: #111; }
.ic-code  { background: linear-gradient(135deg, #E44D26, #2965F1); }

/* ---------- GALLERY ---------- */
.gallery-wrap {
  max-width: 1300px;
  margin: 0 auto 70px;
  padding: 0 40px;
}

.gallery-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 140px;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.g-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: transform .3s ease;
}

.g-tile:hover { transform: scale(0.985); }

.g-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.g-tile:hover img { transform: scale(1.06); }

/* Gradient overlay — only on tiles with a real image */
.g-tile:has(img)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  z-index: 2;
  pointer-events: none;
}

.g-tile .cs-placeholder {
  position: relative;
  z-index: 2;
  font-family: 'Montserrat', sans-serif;
  color: var(--muted-dark);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.g-tile .cs-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 3;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 5px 10px;
}

.g-tile .expand-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-family: 'Montserrat', sans-serif;
  font-size: 9.5px;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  opacity: 0;
  transition: opacity .2s;
}

.g-tile:hover .expand-hint { opacity: 1; }

.g-2x2 { grid-column: span 2; grid-row: span 2; }
.g-2x1 { grid-column: span 2; grid-row: span 1; }
.g-1x1 { grid-column: span 1; grid-row: span 1; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,6,0.96);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}

.lightbox-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-slide .cs-placeholder {
  color: var(--muted-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-dark);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 1010;
  transition: background .2s;
}

.lightbox-close:hover { background: var(--red); }

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-dark);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 1010;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-arrow:hover { background: var(--red); }
.lightbox-arrow.prev { left: -10px; }
.lightbox-arrow.next { right: -10px; }

.lightbox-counter {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  color: var(--muted-dark);
  letter-spacing: 0.05em;
}

/* Zoom on click */
.lightbox-slide img {
  cursor: zoom-in;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.lightbox-slide img.lb-zoomed {
  cursor: grab;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:900px) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
  }

  .span-3x1 {
    grid-column: span 4;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:760px) {
  nav {
    padding: 18px 24px;
  }

  .nav-cta {
    display: none;
  }

  .navlinks {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .mobile-panel {
    padding: 20px 24px 26px;
  }

  .tools-corner {
    align-items: flex-start;
  }

  .tools-label {
    text-align: left;
  }

  .tools-row {
    justify-content: flex-start;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 120px;
  }

  .lightbox {
    padding: 20px;
  }

  .lightbox-arrow {
    width: 38px;
    height: 38px;
  }

  .lightbox-arrow.prev { left: 0; }
  .lightbox-arrow.next { right: 0; }

  .hero,
  .about,
  .exp-wrap,
  .section-divider .sd-inner,
  .bento-note,
  .statement,
  .footer-inner,
  .page-header,
  .case-hero,
  .gallery-wrap,
  .case-body,
  .case-nav {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding-top: 44px;
  }

  .about {
    padding-bottom: 70px;
    gap: 40px;
  }

  .about-photo {
    aspect-ratio: 4/3;
  }

  .rotated-tag {
    font-size: 24px;
    left: 10px;
  }

  .section-divider {
    padding: 50px 24px 44px;
  }

  .sd-sub {
    display: block;
    margin-left: 0;
    margin-top: 8px;
    font-size: 13px;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 108px;
  }

  .span-2x2,
  .span-2x1,
  .span-3x1 {
    grid-column: span 2;
  }

  .bento-wrap {
    padding-bottom: 50px;
  }

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

  .statement {
    padding: 70px 24px;
  }

  footer {
    padding: 70px 24px 40px;
  }

  .timeline {
    gap: 14px;
  }

  .tl-item {
    min-width: 130px;
  }

  .edu-grid {
    padding-left: 0;
  }

  .case-art {
    height: 280px;
  }
}

@media (max-width:460px) {
  .hero-kicker {
    max-width: 100%;
  }

  .about-photo {
    aspect-ratio: 1/1;
  }

  .bento {
    grid-auto-rows: 96px;
  }

  .b-tile {
    padding: 12px;
  }

  .b-tile .b-title {
    font-size: 13px;
  }

  .footer-grid {
    flex-direction: column;
    gap: 24px;
  }
}