/* Core visual system and shared page styles. */

:root {
  /* ---- color tokens ---- */
  --mat-green: #172820;
  --mat-green-line: #293c31;
  --mat-green-deep: #0b120e;
  --paper: #f2f1e9;
  --paper-dark: #e5e8df;
  --mustard: #d9ff67;
  --rust: #ff795f;
  --ink: #17211b;
  --red-pin: var(--rust);
  --blue-tape: #8eacff;
  --shadow: rgba(10, 20, 12, 0.45);
  --shadow-soft: rgba(10, 20, 12, 0.25);

  /* ---- type tokens ---- */
  --font-display: 'Space Grotesk', sans-serif;
  --font-accent: 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* ---- radius / shadow tokens ---- */
  --shadow-card: 0 24px 54px rgba(0, 0, 0, 0.22);
  --shadow-card-hover: 0 32px 70px rgba(0, 0, 0, 0.32);
  --shadow-tag: 3px 4px 0 rgba(0, 0, 0, 0.3);

  /* ---- layout ---- */
  --nav-height: 76px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 76% 14%, rgba(60, 94, 67, 0.34), transparent 38%),
    radial-gradient(ellipse at 4% 80%, rgba(52, 70, 101, 0.2), transparent 40%),
    var(--mat-green-deep);
  color: var(--paper);
  font-family: var(--font-body);
  min-height: 100vh;
  padding-top: var(--nav-height);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 84px 84px;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  overflow-wrap: anywhere;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 28px 60px;
  position: relative;
  z-index: 2;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--paper);
  margin: 0;
  transform: rotate(-1deg);
}
.section-head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--paper);
  margin: 0;
  transform: rotate(-1deg);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.section-head .rule {
  flex: 1;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--mustard) 0 10px, transparent 10px 16px);
  opacity: 0.7;
}

.eyebrow-tag {
  display: inline-block;
  background: var(--rust);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  transform: rotate(-2deg);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.25);
}

/* ---------- reusable tape ---------- */
.tape {
  position: absolute;
  height: 26px;
  background: var(--mustard);
  opacity: 0.85;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--ink);
  background: var(--mustard);
  padding: 12px 24px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-tag);
  transform: rotate(-1deg);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn:hover::after {
  left: 130%;
}
.btn:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 5px 8px 0 rgba(0, 0, 0, 0.35);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(22, 41, 28, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px dashed rgba(245, 239, 221, 0.2);
  height: var(--nav-height);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.site-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}
body.motion-ready .reveal-on-scroll {
  opacity: 0;
}
.nav-brand {
  color: var(--paper);
  text-decoration: none;
  display: inline-block;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.kiwi-cluster {
  width: 58px;
  height: 34px;
  display: flex;
  align-items: center;
  position: relative;
}
.kiwi-cluster img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  position: absolute;
  transition: transform 0.2s ease;
}
.kiwi-cluster img:nth-child(1) {
  left: 0;
  transform: rotate(-14deg);
}
.kiwi-cluster img:nth-child(2) {
  left: 14px;
  z-index: 1;
  transform: translateY(-3px) rotate(4deg);
}
.kiwi-cluster img:nth-child(3) {
  left: 28px;
  transform: rotate(16deg);
}
.nav-brand:hover {
  color: var(--mustard);
}
.nav-brand:hover .kiwi-cluster img:nth-child(1) {
  transform: rotate(-20deg) translateY(-2px);
}
.nav-brand:hover .kiwi-cluster img:nth-child(2) {
  transform: translateY(-6px) rotate(4deg);
}
.nav-brand:hover .kiwi-cluster img:nth-child(3) {
  transform: rotate(22deg) translateY(-2px);
}
.nav-links {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--paper);
  padding: 9px 16px;
  opacity: 0.75;
  transform: rotate(-1.5deg);
  transition:
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--mustard);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links li:nth-child(2n) a {
  transform: rotate(1.5deg);
}
.nav-links a:hover {
  opacity: 1;
  transform: rotate(0deg);
}
.nav-links a.active {
  opacity: 1;
  background: var(--mustard);
  color: var(--ink);
  transform: rotate(0deg);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.3);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--mat-green-deep);
    flex-direction: column;
    padding: 16px 24px 24px;
    display: none;
    border-bottom: 3px dashed rgba(245, 239, 221, 0.15);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    transform: none !important;
    width: 100%;
  }
  .nav-toggle {
    display: block;
  }
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  background: var(--mat-green-deep);
  border-top: 3px dashed rgba(245, 239, 221, 0.15);
  padding: 44px 28px 30px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: var(--mustard);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.footer-col p,
.footer-col a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(245, 239, 221, 0.75);
  text-decoration: none;
  line-height: 1.8;
  display: block;
}
.footer-col a:hover {
  color: var(--paper);
  text-decoration: underline;
}
.footer-bottom {
  max-width: var(--max-width);
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(245, 239, 221, 0.1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(245, 239, 221, 0.4);
  text-align: center;
}

/* =========================================================
   HERO (home page)
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 70px;
  padding-top: 10px;
}
.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
  gap: 28px;
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.title-strip {
  position: relative;
  background: var(--paper);
  padding: 30px 56px;
  transform: rotate(-1.2deg);
  clip-path: polygon(0% 4%, 3% 0%, 97% 2%, 100% 6%, 99% 96%, 96% 100%, 2% 98%, 1% 94%);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.3);
  margin: 20px 0;
}
.title-strip h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  color: var(--ink);
  letter-spacing: 2px;
  line-height: 1.05;
}
.title-strip .tape {
  top: -14px;
  left: 40px;
  width: 90px;
  transform: rotate(-6deg);
}
.title-strip .tape.right {
  top: -14px;
  left: auto;
  right: 40px;
  width: 90px;
  transform: rotate(7deg);
  background: var(--blue-tape);
}

.hero-sub {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  max-width: 500px;
  margin: 6px 0 26px 8px;
  transform: rotate(-0.5deg);
  line-height: 1.3;
}
.hero-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-left: 8px;
  flex-wrap: wrap;
}
.name-tag {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 8px 14px;
  transform: rotate(1deg);
  box-shadow: var(--shadow-tag);
}
.year-tag {
  background: var(--rust);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 12px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-tag);
}
.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 12px;
}
.photo-frame {
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 239, 221, 0.08);
  border: 2px solid rgba(245, 239, 221, 0.7);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
  transform: rotate(3deg);
  overflow: hidden;
}
.photo-frame::before,
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245, 239, 221, 0.5);
  pointer-events: none;
}
.photo-frame::before {
  border-radius: 14% 18% 18% 12% / 16% 14% 18% 16%;
  transform: rotate(-3deg);
}
.photo-frame::after {
  inset: 18px;
  border-radius: 18% 14% 22% 16% / 22% 14% 18% 10%;
  border-style: dashed;
  opacity: 0.8;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  .hero-content {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
    padding-top: 0;
    margin-bottom: 10px;
  }

  .photo-frame {
    width: min(100%, 220px);
  }
}

/* Teaser sections */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}
.teaser-card {
  position: relative;
  background: var(--paper);
  padding: 32px 30px 28px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.teaser-card:nth-child(1) {
  transform: rotate(-1.4deg);
}
.teaser-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.teaser-card .tape {
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
}
.teaser-card .kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.teaser-card h3 {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.9rem;
  margin: 0 0 10px;
}
.teaser-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(28, 43, 35, 0.75);
  margin: 0 0 18px;
}
.teaser-card .teaser-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.teaser-card:hover .teaser-link {
  text-decoration: underline;
}

/* =========================================================
   PROJECT / EXPERIENCE CARDS (shared)
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 46px 34px;
  margin-bottom: 60px;
}
.card {
  position: relative;
  background: var(--paper);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
}
.card:nth-child(4n + 1) {
  transform: rotate(-2deg);
}
.card:nth-child(4n + 2) {
  transform: rotate(1.6deg);
}
.card:nth-child(4n + 3) {
  transform: rotate(-1deg);
}
.card:nth-child(4n + 4) {
  transform: rotate(2.2deg);
}
.card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  z-index: 5;
}
.card .tape {
  top: -13px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
}
.card:nth-child(2n) .tape {
  background: var(--blue-tape);
  transform: translateX(-50%) rotate(4deg);
}
.card .clip {
  position: absolute;
  top: -16px;
  right: 14px;
  width: 26px;
  height: 44px;
  filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.3));
}

.card .thumb {
  background:
    linear-gradient(rgba(28, 43, 35, 0.05) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(90deg, rgba(28, 43, 35, 0.05) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--paper-dark);
  height: 140px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border: 1.5px dashed rgba(28, 43, 35, 0.22);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}
.card:hover .thumb img {
  filter: saturate(1.08);
  transform: scale(1.08);
}
.card .thumb-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1.5px;
  background: rgba(245, 239, 221, 0.92);
  padding: 8px 16px;
  border: 1px solid rgba(28, 43, 35, 0.2);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18);
  transform: rotate(-1.5deg);
  transition: transform 0.2s ease;
}
.card:hover .thumb-label {
  transform: rotate(0deg) scale(1.04);
}
.card .kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.card h3 {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.75rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(28, 43, 35, 0.8);
  margin: 0 0 14px;
}
.card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card .tags span,
.card .tags button {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(28, 43, 35, 0.08);
  padding: 4px 9px;
  color: var(--ink);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.card .tags span:hover,
.card .tags button:hover {
  background: var(--mustard);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.card .card-links {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}
.card .card-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--mustard);
  padding-bottom: 2px;
  transition: all 0.2s ease;
}
.card .card-links a:hover {
  color: var(--rust);
  border-color: var(--rust);
  transform: translateX(2px);
}
/* =========================================================
   FILTER TOKENS (projects page)
   ========================================================= */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-token {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--paper);
  border: 2px solid rgba(245, 239, 221, 0.4);
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  transform: rotate(0deg);
}
.filter-token:hover {
  border-color: var(--paper);
}
.filter-token.active {
  background: var(--mustard);
  color: var(--ink);
  border-color: var(--mustard);
  box-shadow: var(--shadow-tag);
  transform: rotate(-1deg);
}

/* =========================================================
   SKILL CLOUD (about page)
   ========================================================= */
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.skill-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  transform: rotate(-1deg);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.2);
  cursor: default;
}
.skill-chip:nth-child(3n) {
  background: var(--rust);
  transform: rotate(1.5deg);
}
.skill-chip:nth-child(4n) {
  background: var(--mustard);
  color: var(--ink);
  transform: rotate(-0.5deg);
}
.skill-chip:nth-child(5n) {
  background: var(--blue-tape);
  color: var(--ink);
  transform: rotate(1deg);
}
.skill-chip:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.05);
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.3);
}

.values-grid .value-item {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.values-grid .value-item:hover {
  transform: translateY(-3px);
}

/* Mini gallery details */
.mini-gallery-panel .mini-gallery {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
/* About panels */
.about-panel {
  position: relative;
  background: var(--paper);
  padding: 40px 44px;
  margin-bottom: 50px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.3);
  clip-path: polygon(0% 2%, 2% 0%, 98% 1%, 100% 3%, 100% 98%, 98% 100%, 1% 99%, 0% 97%);
}
.about-panel.tilt-r {
  transform: rotate(0.6deg);
}
.about-panel.tilt-l {
  transform: rotate(-0.5deg);
}
.about-panel h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 16px;
}
.about-panel p {
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 680px;
  color: rgba(28, 43, 35, 0.85);
  margin: 0 0 14px;
}
.about-panel p:last-child {
  margin-bottom: 0;
}

/* about panel with side image */
.about-panel.about-with-image {
  padding: 40px 44px;
}
.about-panel.about-with-image .about-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: flex-start;
}
.about-panel.about-with-image .about-text h2 {
  margin-bottom: 16px;
}
.about-image-frame {
  width: 220px;
  height: 180px;
  background: linear-gradient(135deg, rgba(245, 239, 221, 0.9), rgba(28, 43, 35, 0.06));
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.12);
  transform: rotate(2deg);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 760px) {
  .about-panel.about-with-image .about-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about-image-frame {
    width: 180px;
    height: 140px;
  }
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 10px;
}
.value-item .num {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--rust);
  line-height: 1;
}
.value-item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 8px 0 6px;
}
.value-item p {
  font-size: 0.85rem;
  color: rgba(28, 43, 35, 0.7);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   TIMELINE (experience page)
   ========================================================= */
.timeline {
  position: relative;
  margin: 40px 0 70px;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: repeating-linear-gradient(180deg, var(--mustard) 0 10px, transparent 10px 18px);
  opacity: 0.8;
}
.timeline-item {
  position: relative;
  background: var(--paper);
  padding: 24px 26px;
  margin-bottom: 34px;
  box-shadow: var(--shadow-card);
  max-width: 720px;
}
.timeline-item:nth-child(odd) {
  transform: rotate(-0.8deg);
}
.timeline-item:nth-child(even) {
  transform: rotate(0.7deg);
}
.timeline-item:hover {
  transform: rotate(0deg) translateX(4px);
  box-shadow: var(--shadow-card-hover);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--rust);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 3px var(--mat-green-line);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--rust);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-item h3 {
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0 0 4px;
}
.timeline-org {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 12px 0 14px;
}
.timeline-company {
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.timeline-location {
  color: rgba(28, 43, 35, 0.65);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.timeline-location::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rust);
  margin-right: 8px;
  vertical-align: middle;
}
.timeline-item ul {
  margin: 0;
  padding-left: 18px;
}
.timeline-item li {
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(28, 43, 35, 0.8);
  margin-bottom: 4px;
}
.timeline-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.timeline-metrics span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--ink);
  background: rgba(28, 43, 35, 0.08);
  padding: 4px 10px;
}

@media (max-width: 640px) {
  .timeline {
    padding-left: 28px;
  }
  .timeline-item::before {
    left: -28px;
  }
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 820px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-form {
  position: relative;
  background: var(--paper);
  padding: 36px 38px;
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.3);
  transform: rotate(-0.5deg);
}
.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 2px solid rgba(28, 43, 35, 0.2);
  background: var(--paper-dark);
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-tape);
  background: var(--paper);
}
.form-group.valid input,
.form-group.valid textarea {
  border-color: #4a8a5c;
}
.form-group.invalid input,
.form-group.invalid textarea {
  border-color: var(--red-pin);
}
.field-msg {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  margin-top: 5px;
  min-height: 14px;
}
.field-msg.error {
  color: var(--red-pin);
}
.field-msg.success {
  color: #3c7a4c;
}

.submit-btn {
  position: relative;
  min-width: 160px;
  justify-content: center;
}
.submit-btn .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(28, 43, 35, 0.3);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.submit-btn.loading .spinner {
  display: inline-block;
}
.submit-btn.loading .btn-label {
  opacity: 0.6;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 12px 16px;
  display: none;
}
.form-status.show {
  display: block;
}
.form-status.success {
  background: rgba(74, 138, 92, 0.15);
  color: #2f5f3c;
  border-left: 4px solid #4a8a5c;
}
.form-status.error {
  background: rgba(193, 64, 46, 0.12);
  color: var(--red-pin);
  border-left: 4px solid var(--red-pin);
}

.info-panel {
  background: var(--ink);
  color: var(--paper);
  padding: 34px 32px;
  transform: rotate(0.6deg);
  box-shadow: 8px 10px 0 rgba(0, 0, 0, 0.3);
}
.info-panel h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  margin: 0 0 20px;
  color: var(--mustard);
}
.info-row {
  margin-bottom: 18px;
}
.info-row .info-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
}
.info-row .info-value {
  font-size: 0.92rem;
  line-height: 1.5;
}
.info-row a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 239, 221, 0.3);
}
.info-row a:hover {
  border-color: var(--paper);
}
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(74, 138, 92, 0.2);
  color: #7fd99a;
  padding: 8px 14px;
  margin-top: 6px;
}
.availability-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

/* =========================================================
   RESPONSIVE / A11Y
   ========================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue-tape);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .wrap {
    padding: 40px 20px 50px;
  }
  .title-strip {
    padding: 22px 24px;
  }
  .about-panel {
    padding: 26px 24px;
  }
  .contact-form,
  .info-panel {
    padding: 26px 24px;
  }
}

/* =========================================================
   CUSTOM SCROLLBAR & SELECTION
   ========================================================= */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--mat-green-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--mustard);
  border-radius: 4px;
  border: 2px solid var(--mat-green-deep);
}
::-webkit-scrollbar-thumb:hover {
  background: #f1c55d;
}

::selection {
  background: var(--mustard);
  color: var(--mat-green-deep);
}

/* =========================================================
   PROJECT SHOWCASE & IMAGE CARDS
   ========================================================= */
.firta-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(28, 43, 35, 0.15);
  background: #1a1a1a;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.image-wrapper img,
.firta-image,
.project-image {
  width: 100%;
  height: 175px;
  object-fit: cover;
  display: block;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.3s ease;
  cursor: pointer;
}

.image-wrapper:hover img,
.firta-image:hover,
.project-image:hover {
  transform: scale(1.05);
}

.zoom-hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(22, 41, 28, 0.85);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  backdrop-filter: blur(4px);
}

.image-wrapper:hover .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   VISUAL SNIPPET CARDS (About Page)
   ========================================================= */
.mini-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.snippet-card {
  position: relative;
  background: var(--paper-dark);
  padding: 24px 20px;
  border: 1px solid rgba(28, 43, 35, 0.15);
  box-shadow: 4px 6px 0 rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.snippet-card:hover {
  transform: translateY(-4px) rotate(0.5deg);
  box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.22);
}

.mini-tape {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 70px;
  height: 20px;
}

.mini-tape.right {
  transform: translateX(-50%) rotate(2deg);
}

.snippet-icon {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--rust);
  margin-bottom: 8px;
}

.snippet-card h4 {
  font-family: var(--font-accent);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: 0.5px;
}

.snippet-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 14px;
}

@media (max-width: 520px) {
  .mini-gallery-panel .mini-gallery {
    display: grid;
    grid-template-columns: 1fr;
  }

  .teaser-card,
  .teaser-card:nth-child(1) {
    transform: none;
  }
}

.snippet-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--mat-green);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

/* =========================================================
   IMAGE LIGHTBOX MODAL
   ========================================================= */
.image-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.modal-body {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 82vh;
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid rgba(245, 239, 221, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-modal.active .modal-image {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(245, 239, 221, 0.15);
  border: 1px solid rgba(245, 239, 221, 0.3);
  color: var(--paper);
  font-size: 32px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1010;
}

.modal-close:hover {
  background: var(--mustard);
  color: var(--ink);
  transform: rotate(90deg) scale(1.05);
}

.modal-counter {
  position: absolute;
  top: 28px;
  left: 32px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper);
  background: rgba(22, 41, 28, 0.85);
  border: 1px solid rgba(245, 239, 221, 0.25);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.modal-nav {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 18px;
  z-index: 1010;
}

.modal-nav button {
  background: rgba(22, 41, 28, 0.85);
  color: var(--paper);
  border: 1px solid rgba(245, 239, 221, 0.35);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.modal-nav button:hover {
  background: var(--mustard);
  color: var(--ink);
  border-color: var(--mustard);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .firta-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .firta-images,
  .project-images {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-padding-top: calc(var(--nav-height) + 24px);
}
body {
  color: var(--paper);
}
.wrap {
  max-width: var(--max-width);
  padding: 64px 48px 84px;
}

.site-nav {
  background: rgba(11, 18, 14, 0.84);
  border-bottom: 1px solid rgba(242, 241, 233, 0.1);
  box-shadow: none;
}
.site-nav-inner {
  padding: 0 48px;
}
.nav-links {
  gap: 10px;
}
.nav-links a {
  color: rgba(242, 241, 233, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  transform: none;
}
.nav-links li:nth-child(2n) a {
  transform: none;
}
.nav-links a::after {
  left: 12px;
  right: 12px;
  bottom: 3px;
  background: var(--mustard);
}
.nav-links a.active {
  color: var(--mustard);
  background: transparent;
  box-shadow: none;
}
.nav-links a:hover {
  color: var(--paper);
  transform: translateY(-2px);
}
.nav-toggle {
  color: var(--paper);
}

.section-head {
  align-items: center;
  margin-bottom: 42px;
}
.section-head h1,
.section-head h2 {
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 3rem;
  letter-spacing: 0;
  line-height: 1;
  transform: none;
}
.section-head .rule {
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 255, 103, 0.8), rgba(217, 255, 103, 0));
  opacity: 0.72;
}

.btn {
  background: var(--mustard);
  border-radius: 3px;
  box-shadow: none;
  color: #17211b;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 14px 18px;
  transform: none;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.28s ease;
}
.btn:hover {
  background: #e5ff9a;
  box-shadow: none;
  transform: translateY(-3px);
}
.btn::after {
  display: none;
}

body.motion-ready .reveal-on-scroll {
  opacity: 0;
}
.page-intro {
  color: rgba(242, 241, 233, 0.72);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: -18px 0 34px;
}
.empty-state {
  color: rgba(242, 241, 233, 0.72);
  display: none;
  font-family: var(--font-body);
  font-size: 1rem;
  text-align: center;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: 28px;
  min-height: min(660px, calc(100svh - var(--nav-height) - 100px));
  margin: 0 0 84px;
  padding: 12px 0 72px;
}
.home-hero .hero-copy {
  align-items: flex-start;
  position: relative;
  z-index: 2;
}
.home-hero .hero-kicker {
  align-items: center;
  background: none;
  box-shadow: none;
  color: var(--mustard);
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  padding: 0;
  transform: none;
}
.signal-dot {
  width: 8px;
  height: 8px;
  background: var(--rust);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255, 121, 95, 0.12);
  margin: 0 12px 0 4px;
}
.home-title {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 5.45rem;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.94;
  margin: 28px 0 24px;
}
.home-title span {
  color: var(--mustard);
}
.home-title i {
  color: var(--rust);
  font-style: normal;
}
.home-hero .hero-sub {
  color: rgba(242, 241, 233, 0.74);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
  transform: none;
}
.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}
.hero-actions .btn {
  gap: 20px;
}
.hero-contact-link,
.text-link {
  align-items: center;
  color: var(--paper);
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  gap: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition:
    color 0.25s ease,
    gap 0.25s ease;
}
.hero-contact-link:hover,
.text-link:hover {
  color: var(--mustard);
  gap: 17px;
}
.hero-meta {
  border-top: 1px solid rgba(242, 241, 233, 0.18);
  color: rgba(242, 241, 233, 0.54);
  display: flex;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  gap: 16px 28px;
  letter-spacing: 0.08em;
  margin: 44px 0 0;
  padding-top: 14px;
}
.hero-meta span + span {
  color: rgba(242, 241, 233, 0.78);
}
.hero-visual {
  isolation: isolate;
  min-height: 540px;
  position: relative;
  width: 100%;
}
.hero-canvas {
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}
.hero-photo {
  bottom: 7%;
  display: block;
  height: auto;
  justify-content: initial;
  padding: 0;
  position: absolute;
  right: 8%;
  top: 9%;
  width: 63%;
  z-index: 3;
}
.photo-frame {
  aspect-ratio: 0.73;
  background: var(--mat-green-line);
  border: 1px solid rgba(242, 241, 233, 0.58);
  border-radius: 48% 48% 5px 5px / 34% 34% 5px 5px;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.34);
  height: auto;
  overflow: hidden;
  transform: rotate(3deg);
  width: 100%;
}
.photo-frame::before,
.photo-frame::after {
  display: none;
}
.photo-frame img {
  filter: saturate(0.86) contrast(1.04);
  object-position: 50% 38%;
}
.hero-art-label {
  background: var(--paper);
  bottom: 12%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 12px 16px;
  position: absolute;
  right: 0;
  transform: rotate(-3deg);
  z-index: 3;
}
.hero-art-label span {
  color: #69776d;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-top: 7px;
}
.hero-art-caption {
  color: rgba(242, 241, 233, 0.62);
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.57rem;
  justify-content: space-between;
  left: 3%;
  letter-spacing: 0.12em;
  position: absolute;
  right: 54%;
  top: 13%;
  z-index: 3;
}
.hero-art-caption span {
  color: var(--mustard);
}
.scroll-cue {
  align-items: center;
  bottom: 12px;
  color: rgba(242, 241, 233, 0.56);
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  gap: 12px;
  left: 0;
  letter-spacing: 0.13em;
  position: absolute;
  text-decoration: none;
}
.scroll-cue span {
  background: var(--mustard);
  height: 1px;
  width: 34px;
}

.featured-work {
  margin: 0 0 120px;
}
.work-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-index {
  color: var(--mustard);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.work-heading h2,
.home-note h2 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 3.3rem;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
  margin: 0;
}
.work-heading h2 span,
.home-note h2 span {
  color: var(--mustard);
}
.work-heading .text-link {
  margin-bottom: 7px;
}
.project-feature-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-feature-card {
  color: var(--paper);
  display: block;
  min-width: 0;
  text-decoration: none;
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.46s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}
.project-feature-card:hover {
  transform: perspective(1200px) translateY(-6px) rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
}
.project-feature-media {
  aspect-ratio: 1.45;
  background: var(--paper-dark);
  border: 1px solid rgba(242, 241, 233, 0.16);
  border-radius: 7px;
  overflow: hidden;
  position: relative;
}
.project-feature-media::after {
  background: linear-gradient(
    180deg,
    rgba(8, 13, 10, 0.16),
    transparent 38%,
    rgba(8, 13, 10, 0.13)
  );
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
}
.project-feature-media img {
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.5s ease;
  width: 100%;
}
.project-feature-card:hover .project-feature-media img {
  filter: saturate(1.08);
  transform: scale(1.045);
}
.project-feature-number,
.project-feature-arrow {
  position: absolute;
  z-index: 1;
}
.project-feature-number {
  color: white;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  left: 16px;
  top: 16px;
}
.project-feature-arrow {
  align-items: center;
  background: var(--mustard);
  border-radius: 50%;
  color: var(--ink);
  display: flex;
  font-size: 1.1rem;
  height: 42px;
  justify-content: center;
  right: 16px;
  top: 16px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 42px;
}
.project-feature-card:hover .project-feature-arrow {
  transform: rotate(45deg);
}
.project-feature-meta {
  align-items: center;
  border-bottom: 1px solid rgba(242, 241, 233, 0.17);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 17px 2px 18px;
}
.project-feature-meta h3 {
  color: var(--paper);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 4px;
}
.project-feature-meta p {
  color: rgba(242, 241, 233, 0.62);
  font-size: 0.84rem;
  margin: 0;
}
.project-feature-meta > span {
  color: var(--mustard);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-align: right;
}

.home-note {
  border-bottom: 1px solid rgba(242, 241, 233, 0.17);
  border-top: 1px solid rgba(242, 241, 233, 0.17);
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 0.8fr;
  margin: 0 0 90px;
  padding: 44px 0 50px;
}
.home-note h2 {
  font-size: 2.85rem;
}
.home-note-copy {
  align-self: end;
}
.home-note-copy > p {
  color: rgba(242, 241, 233, 0.7);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 24px;
  max-width: 490px;
}
.home-note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.home-note-links .text-link {
  border-bottom: 1px solid rgba(242, 241, 233, 0.3);
  padding-bottom: 8px;
}
.contact-ribbon {
  align-items: center;
  background: var(--mustard);
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 26px 30px;
}
.contact-ribbon p {
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0;
}
.contact-ribbon a {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-decoration: none;
}
.contact-ribbon a span {
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.25s ease;
}
.contact-ribbon a:hover span {
  transform: translate(3px, -3px);
}
.error-hero {
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}
.error-hero .title-strip {
  margin-bottom: 2rem;
}
.error-hero .hero-sub {
  margin-bottom: 2rem;
}

.site-footer {
  background: rgba(7, 12, 9, 0.58);
  border-top: 1px solid rgba(242, 241, 233, 0.1);
  margin-top: 36px;
  padding-top: 54px;
}
.site-footer .footer-col h5 {
  color: var(--mustard);
  letter-spacing: 0.12em;
}
.footer-bottom {
  border-color: rgba(242, 241, 233, 0.12);
}

.card,
.timeline-item,
.about-panel,
.contact-form,
.info-panel {
  border: 1px solid rgba(242, 241, 233, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
  transform: none;
}
.card {
  background: var(--paper);
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}
.card:nth-child(4n + 1),
.card:nth-child(4n + 2),
.card:nth-child(4n + 3),
.card:nth-child(4n + 4) {
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
}
.card:hover {
  transform: perspective(1200px) translateY(-6px) rotateX(var(--tilt-y, 0deg))
    rotateY(var(--tilt-x, 0deg));
}
.card .tape,
.card .clip {
  display: none;
}
.card .thumb {
  aspect-ratio: 1.65;
  border: 0;
  border-radius: 5px;
  height: auto;
}
.card .thumb-label {
  border-radius: 2px;
  font-size: 0.65rem;
}
.card .kicker,
.timeline-date {
  color: var(--rust);
}
.card h3,
.timeline-item h3 {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
}
.card .tags span,
.timeline-metrics span {
  border-radius: 2px;
}
.filter-token {
  border-radius: 2px;
}
.filter-token.active {
  background: var(--mustard);
  border-color: var(--mustard);
}
.about-panel {
  background: transparent;
  clip-path: none;
  border: 0;
  border-bottom: 1px solid rgba(242, 241, 233, 0.16);
  border-radius: 0;
  box-shadow: none;
  color: var(--paper);
  margin-bottom: 0;
  padding: 42px 0;
  transform: none !important;
}
.about-panel.tilt-r,
.about-panel.tilt-l {
  transform: none !important;
}
.about-panel h2 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 600;
}
.about-panel p {
  color: rgba(242, 241, 233, 0.7);
}
.about-panel .snippet-card p {
  color: var(--ink);
  opacity: 1;
}
.about-panel:last-child {
  border-bottom: 0;
}
.about-panel .tape,
.snippet-card .tape {
  display: none;
}
.values-grid .value-item {
  border-color: rgba(242, 241, 233, 0.16);
}
.values-grid .value-item p {
  color: rgba(242, 241, 233, 0.7);
}
.about-panel .values-grid .num {
  color: var(--mustard);
  display: block;
  font-family: var(--font-body);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  margin: 0 0 8px;
}
.skill-groups {
  display: grid;
  gap: 28px 42px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
}
.skill-group {
  border-top: 1px solid rgba(242, 241, 233, 0.16);
  min-width: 0;
  padding-top: 15px;
}
.skill-group h3 {
  color: var(--mustard);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin: 0 0 13px;
  text-transform: uppercase;
}
.skill-group .skill-cloud {
  gap: 8px;
  margin: 0;
}
.skill-group .skill-chip {
  background: rgba(242, 241, 233, 0.06);
  border: 1px solid rgba(242, 241, 233, 0.13);
  color: var(--paper);
  font-size: 0.72rem;
  line-height: 1.25;
  padding: 8px 11px;
  transform: none;
}
.skill-group .skill-chip:hover {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--ink);
}
.skill-group-wide {
  grid-column: 1 / -1;
}
.snippet-card {
  background: var(--paper-dark);
  border: 1px solid rgba(23, 33, 27, 0.08);
  border-radius: 6px;
  box-shadow: none;
}
.snippet-card:hover {
  box-shadow: 0 12px 28px rgba(23, 33, 27, 0.12);
  transform: translateY(-4px);
}
.skill-chip {
  border-radius: 3px;
  box-shadow: none;
  transform: none !important;
}
.skill-chip:nth-child(3n),
.skill-chip:nth-child(4n),
.skill-chip:nth-child(5n) {
  transform: none !important;
}
.skill-chip:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transform: translateY(-3px) !important;
}
.values-grid .value-item {
  border-left: 1px solid rgba(23, 33, 27, 0.16);
  padding-left: 16px;
}
.values-grid .value-item:first-child {
  border-left: 0;
  padding-left: 0;
}
.value-item .num {
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.timeline {
  padding-left: 38px;
}
.timeline::before {
  background: linear-gradient(var(--mustard), rgba(217, 255, 103, 0.1));
  width: 1px;
}
.timeline-item {
  background: var(--paper);
}
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
  transform: none;
}
.timeline-item::before {
  background: var(--rust);
}
.contact-form {
  background: var(--paper);
}
.info-panel {
  background: #1b2a22;
}
.info-panel h3 {
  color: var(--mustard);
}
.form-group input,
.form-group textarea {
  border-radius: 3px;
}
.image-wrapper {
  border-radius: 5px;
}
.snippet-tag {
  border-radius: 2px;
}

@media (max-width: 900px) {
  .wrap {
    padding-left: 32px;
    padding-right: 32px;
  }
  .site-nav-inner {
    padding-left: 32px;
    padding-right: 32px;
  }
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  }
  .home-title {
    font-size: 4.35rem;
  }
  .hero-visual {
    min-height: 470px;
  }
  .project-feature-meta > span {
    max-width: 130px;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 44px 22px 62px;
  }
  .site-nav-inner {
    padding: 0 22px;
  }
  .nav-links {
    gap: 0;
  }
  .nav-links a {
    padding: 12px 8px;
  }
  .home-hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
    min-height: 0;
    padding: 30px 0 24px;
  }
  .home-hero .hero-copy {
    order: 0;
    width: 100%;
  }
  .home-title {
    font-size: 4rem;
    margin: 14px 0 14px;
  }
  .home-hero .hero-sub {
    font-size: 1rem;
    max-width: 580px;
  }
  .hero-actions {
    gap: 12px;
    margin-top: 18px;
  }
  .hero-actions .btn {
    gap: 10px;
  }
  .hero-meta {
    margin-top: 18px;
    padding-top: 10px;
  }
  .hero-visual {
    min-height: 220px;
    order: 1;
    width: 100%;
  }
  .hero-photo {
    right: 14%;
    top: 5%;
    width: 50%;
  }
  .hero-art-label {
    bottom: 9%;
  }
  .hero-art-caption {
    right: 58%;
    top: 6%;
  }
  .scroll-cue {
    display: none;
  }
  .featured-work {
    margin-bottom: 82px;
  }
  .work-heading h2,
  .home-note h2 {
    font-size: 2.65rem;
  }
  .project-feature-grid {
    gap: 34px;
    grid-template-columns: 1fr;
  }
  .project-feature-media {
    aspect-ratio: 1.45;
  }
  .home-note {
    gap: 26px;
    grid-template-columns: 1fr;
    margin-bottom: 64px;
    padding: 34px 0;
  }
  .contact-ribbon {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .section-head h1,
  .section-head h2 {
    font-size: 2.45rem;
  }
  .card {
    padding: 18px;
  }
  .about-panel {
    padding: 32px 0;
  }
  .skill-groups {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .skill-group-wide {
    grid-column: auto;
  }
  .values-grid .value-item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .values-grid .value-item:nth-child(even) {
    padding-left: 14px;
  }
}

@media (max-width: 480px) {
  .home-title {
    font-size: 3.35rem;
  }
  .home-hero .hero-kicker {
    font-size: 0.58rem;
  }
  .hero-visual {
    min-height: 210px;
  }
  .hero-photo {
    right: 14%;
    width: 50%;
  }
  .hero-art-caption {
    font-size: 0.49rem;
    right: 56%;
  }
  .hero-art-label {
    font-size: 0.78rem;
    padding: 10px 12px;
  }
  .work-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .work-heading h2,
  .home-note h2 {
    font-size: 2.25rem;
  }
  .project-feature-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-feature-meta > span {
    max-width: none;
    text-align: left;
  }
  .footer-inner {
    flex-direction: column;
  }
  .contact-layout {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-feature-card,
  .card,
  .card:hover,
  .project-feature-card:hover {
    transform: none !important;
  }
}
