/* ================================================================
   Kyle Joshua Apao — Dark Boxy Minimalist Portfolio
   ZERO border-radius. Sharp edges. Dark aesthetic.
   All animations GPU-accelerated (transform, opacity only)
   ================================================================ */

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

:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #161616;
  --text:     #ffffff;
  --text-dim: rgba(255,255,255,0.5);
  --text-dimmer: rgba(255,255,255,0.3);
  --border:   rgba(255,255,255,0.08);
  --accent:   #f59e0b;
  --accent2:  #3b82f6;
  --font:     'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --mono:     'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; }
button { cursor: pointer; }

/* Mono tag reusable */
.mono-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dimmer);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ================================================================
   ENTRANCE ANIMATIONS (CSS only, GPU-accelerated)
   ================================================================ */
.anim-fade {
  opacity: 0;
  animation: animFade 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

.anim-slide {
  opacity: 0;
  transform: translateY(20px);
  animation: animSlide 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.anim-slide-up {
  opacity: 0;
  transform: translateY(40px);
  animation: animSlide 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes animFade {
  to { opacity: 1; }
}

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

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  transition: background 0.4s, border-color 0.4s;
}

.site-header.scrolled {
  background: rgba(10,10,10,0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.header-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.header-nav { display: flex; gap: 36px; }

.header-nav .nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-dim);
  transition: color 0.3s;
  position: relative;
}

.header-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-nav .nav-link:hover::after,
.header-nav .nav-link.active::after { width: 100%; }

.header-nav .nav-link:hover,
.header-nav .nav-link.active { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 99;
  padding: 120px 48px 48px;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav-link {
  font-size: 2rem; font-weight: 700;
  color: var(--text); opacity: 0.4;
  transition: opacity 0.2s;
}
.mobile-nav-link:hover { opacity: 1; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ---- Diamond mosaic photo (100 tiles, CSS grid) ---- */
.hero-mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 55%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 14), 1fr);
  grid-template-rows: repeat(var(--rows, 14), 1fr);
  overflow: hidden;
  transition: transform 0.15s ease-out;
  background: var(--bg);
  perspective: 1200px;
}

.diamond-tile {
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: diamondIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.diamond-tile-inner {
  width: 100%;
  height: 100%;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform;
  transform-style: preserve-3d;
}

.diamond-tile-img {
  position: absolute;
  width: calc(var(--cols, 14) * 100%);
  height: calc(var(--rows, 14) * 100%);
  left: calc(var(--c) * -100%);
  top: calc(var(--r) * -100%);
  background: url('IMG_20231202_201852.jpg') center 25% / 90% auto no-repeat;
  filter: grayscale(100%) brightness(0.65);
}

@keyframes diamondIn {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-mosaic-fade {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(to right, transparent 30%, var(--bg) 92%, var(--bg) 100%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 95%, var(--bg) 100%);
  z-index: 3;
  pointer-events: none;
}

/* ---- Floating decorative lines ---- */
.hero-float-line {
  position: absolute;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06), transparent);
  width: 1px;
  z-index: 1;
  pointer-events: none;
}

.fl1 {
  height: 200px;
  right: 20%;
  top: 10%;
  animation: floatLine 8s ease-in-out infinite;
}

.fl2 {
  height: 160px;
  right: 30%;
  top: 25%;
  animation: floatLine 10s ease-in-out infinite;
  animation-delay: 2s;
}

.fl3 {
  height: 120px;
  right: 12%;
  top: 50%;
  animation: floatLine 7s ease-in-out infinite;
  animation-delay: 4s;
}

@keyframes floatLine {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(-30px); opacity: 1; }
}

/* Hero meta */
.hero-top-meta {
  position: absolute;
  top: 80px; left: 48px; right: 48px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

/* Hero content */
.hero-content {
  position: absolute;
  top: 50%;
  left: 55%;
  right: 8%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  pointer-events: auto;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

/* Boxy button */
.btn-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.btn-box:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  color: rgba(255,255,255,0.6);
  transition: all 0.3s;
}
.icon-link:hover {
  border-color: rgba(255,255,255,0.5);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* Big name at bottom */
.hero-name-big {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 0 48px;
  overflow: hidden;
}

.hero-role-tag {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-bottom: -6px;
}

.hero-name-big h1 {
  font-size: clamp(3.5rem, 8.5vw, 8.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
}

/* ================================================================
   SECTION SHARED
   ================================================================ */
.section {
  position: relative;
  border-top: 1px solid var(--border);
}

.section-heading {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.body-text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
  margin-bottom: 20px;
  font-weight: 300;
}

/* ================================================================
   ABOUT — Photo left, text right
   ================================================================ */
.about-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 48px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo-col {
  position: sticky;
  top: 120px;
}

.about-profile {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(100%);
  transition: filter 0.6s ease, border-color 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-profile:hover {
  filter: grayscale(0%);
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.02);
}

.about-photo-meta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-text-col .mono-tag {
  display: block;
  margin-bottom: 24px;
}

.about-text-col .section-heading {
  margin-bottom: 32px;
}

/* ================================================================
   STACK MARQUEE
   ================================================================ */
.stack-section {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 0;
  position: relative;
  z-index: 10;
}

.stack-section::after {
  content: "";
  position: absolute;
  bottom: -4vw;
  left: -5vw;
  width: 110vw;
  height: 8vw;
  background: var(--bg3);
  border-radius: 50%;
  border-bottom: 1px solid var(--border);
  z-index: -1;
  pointer-events: none;
}

.stack-labels {
  display: flex;
  justify-content: space-between;
  padding: 28px 48px 12px;
  position: relative;
  z-index: 10;
}

.marquee-track-wrap {
  overflow: hidden;
  padding: 10px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-track.scroll-left {
  animation: marqueeLeft 50s linear infinite;
}

.marquee-track.scroll-right {
  animation: marqueeRight 55s linear infinite;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-inner {
  display: flex;
  gap: 20px;
  padding: 0 10px;
  align-items: center;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  white-space: nowrap;
  transition: color 0.2s;
}

.marquee-item:hover { color: var(--text); }

.marquee-item img {
  width: 18px; height: 18px;
  object-fit: contain;
  opacity: 0.75;
}

/* ================================================================
   EXPERTISE (White Theme)
   ================================================================ */
.expertise-section {
  background: #ffffff;
  color: #000000;
  padding-bottom: 100px;
}

.expertise-header {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 80px 48px 48px;
  gap: 60px;
}

.expertise-header-left .mono-tag { margin-bottom: 24px; display: block; color: rgba(0,0,0,0.5); }
.expertise-header-left .section-heading { color: #000000; }

.expertise-header-right {
  max-width: 400px;
  text-align: right;
}

.expertise-header-right .mono-tag { margin-bottom: 12px; display: block; color: rgba(0,0,0,0.5); }

.expertise-intro {
  font-size: 0.92rem;
  color: rgba(0,0,0,0.6);
  line-height: 1.7;
  font-weight: 300;
}

.expertise-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(0,0,0,0.1);
  border-bottom: none;
}

.expertise-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(0,0,0,0.1);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: background 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.expertise-card:last-child { border-right: none; }

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #06b6d4, #3b82f6, #8b5cf6, #f59e0b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.expertise-card:hover::before {
  transform: scaleX(1);
}

.expertise-card:hover {
  background: #fafafa;
}

.expertise-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(0,0,0,0.4);
  display: block;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.expertise-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  color: #000000;
}

.expertise-card p {
  font-size: 0.95rem;
  color: rgba(0,0,0,0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

.expertise-tools {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.expertise-tools span {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: rgba(0,0,0,0.5);
}

/* ================================================================
   WORK SECTION
   ================================================================ */
.work-section {
  background: var(--bg);
  padding: 100px 0 0;
}

.work-header {
  padding: 0 48px 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.work-header .mono-tag { margin-bottom: 20px; display: block; }

.work-header-right {
  max-width: 480px;
  text-align: right;
}

.work-disclaimer {
  font-size: 0.85rem;
  color: var(--text-dimmer);
  line-height: 1.6;
  font-weight: 400;
}

.work-cards-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0 48px 100px 48px;
}

.work-card {
  display: flex;
  flex-direction: column;
}

.work-card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  background: #111;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.work-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-card:hover .work-card-img {
  transform: scale(1.02);
}

.work-card-content {
  display: flex;
  flex-direction: column;
}

.work-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 32px;
}

.work-card-title-row h3 {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}

.work-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.work-link-icon:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.work-card-table {
  border-top: 1px solid var(--border);
}

.wt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.wt-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dimmer);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wt-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.wt-stack {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wt-stack img {
  width: 18px;
  height: 18px;
}

.wt-plus {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 8px;
}

.work-tags span {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dimmer);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 3px 10px;
  transition: border-color 0.3s, color 0.3s;
}

.work-card:hover .work-tags span {
  border-color: rgba(255,255,255,0.15);
  color: var(--text-dim);
}

/* ================================================================
   CONTACT — Clean centered layout
   ================================================================ */
.contact-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 48px;
  text-align: center;
}

.contact-inner .mono-tag {
  display: block;
  margin-bottom: 24px;
}

.contact-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 32px;
}

.contact-gradient-line {
  height: 2px;
  width: 120px;
  margin: 0 auto 40px;
  background: linear-gradient(to right, #06b6d4, #3b82f6, #8b5cf6, #f59e0b, #06b6d4);
  background-size: 200% auto;
  animation: rainbowFlow 4s linear infinite;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4), 0 0 24px rgba(59, 130, 246, 0.2);
}

@keyframes rainbowFlow {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

.contact-sub {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 28px;
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  transition: opacity 0.3s;
}
.contact-email:hover { opacity: 0.6; }

.contact-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ================================================================
   FOOTER — Minimal
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.footer-role {
  font-size: 0.68rem;
  color: var(--text-dimmer);
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.68rem;
  color: var(--text-dimmer);
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 48px; padding: 80px 32px; }
  .about-photo-col { position: static; max-width: 280px; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .expertise-card { border-bottom: 1px solid var(--border); }
  .work-cards-wrap { grid-template-columns: 1fr; }
  .work-card { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .footer-brand { text-align: center; }
}

@media (max-width: 768px) {
  .site-header { padding: 16px 24px; }
  .header-nav { display: none; }
  .hamburger { display: flex; }

  .hero-mosaic { width: 100%; }
  .hero-mosaic-fade {
    background: linear-gradient(to bottom, transparent 10%, rgba(10,10,10,0.6) 40%, var(--bg) 75%);
  }
  .diamond { width: 120px !important; height: 120px !important; }

  .hero-top-meta { left: 24px; right: 24px; top: 68px; }

  .hero-content {
    position: static; transform: none;
    padding: 0 24px; max-width: 100%;
    margin-top: auto; z-index: 2;
  }

  .hero-clock {
    position: absolute;
    top: 100px;
    right: 24px;
    font-family: var(--mono);
    font-size: 1rem;
    color: #fff;
    background: rgba(20, 20, 20, 0.7);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
  }

  .hero { height: auto; min-height: 100vh; }

  .hero-name-big { position: relative; padding: 20px 24px 0; }
  .hero-name-big h1 { font-size: clamp(2.5rem, 11vw, 4.5rem); white-space: normal; }

  .about-layout { padding: 60px 24px; gap: 36px; }
  .about-photo-col { max-width: 200px; }

  .expertise-header { flex-direction: column; padding: 60px 24px 36px; gap: 24px; }
  .expertise-header-right { text-align: left; }
  .expertise-grid { grid-template-columns: 1fr; }

  .stack-labels { padding: 20px 24px 8px; }

  .work-header { padding: 0 24px 36px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .work-card-meta { padding: 20px 24px; }
  .work-card-img-wrap { padding: 24px; }

  .contact-inner { padding: 80px 24px; }

  .footer-inner { padding: 28px 24px; }
  .footer-links { gap: 16px; flex-wrap: wrap; justify-content: center; }
}
