:root {
  --forest: #425f39;
  --forest-deep: #263c27;
  --moss: #66834d;
  --cream: #f6f0d9;
  --paper: #fff8e2;
  --gold: #ffc760;
  --gold-deep: #d99a32;
  --ink: #213024;
  --muted: #7e846f;
  --line: rgba(246, 240, 217, 0.32);
  --shadow: 0 24px 60px rgba(29, 43, 27, 0.24);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  background:
    radial-gradient(ellipse 62% 48% at 8% 18%, rgba(100, 155, 75, 0.55), transparent),
    radial-gradient(ellipse 45% 60% at 92% 8%, rgba(80, 130, 58, 0.48), transparent),
    radial-gradient(ellipse 55% 42% at 78% 82%, rgba(35, 65, 28, 0.7), transparent),
    radial-gradient(ellipse 48% 58% at 18% 88%, rgba(60, 105, 45, 0.45), transparent),
    radial-gradient(ellipse 38% 46% at 55% 48%, rgba(25, 50, 20, 0.5), transparent),
    radial-gradient(ellipse 66% 36% at 40% 5%, rgba(90, 140, 65, 0.3), transparent),
    #253d22;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(39, 59, 39, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--gold);
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.62rem 0.92rem;
  color: rgba(246, 240, 217, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(246, 240, 217, 0.32);
  background: rgba(246, 240, 217, 0.1);
  color: var(--cream);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 240, 217, 0.08);
  color: var(--cream);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

#app {
  min-height: calc(100vh - 132px);
}

#app:focus {
  outline: none;
}

.page {
  animation: pageIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 78px);
  place-items: center;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: rgba(246, 240, 217, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
.display {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 5.5vw, 5.2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
}

.hero-copy {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: rgba(246, 240, 217, 0.83);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(246, 240, 217, 0.28);
  border-radius: 999px;
  padding: 0.82rem 1.1rem;
  background: rgba(246, 240, 217, 0.1);
  color: var(--cream);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button.primary {
  border-color: transparent;
  background: var(--gold);
  color: var(--ink);
}

.button:hover {
  transform: translateY(-3px);
  background: rgba(246, 240, 217, 0.18);
}

.button.primary:hover {
  background: #ffd684;
}

.hero-card {
  position: relative;
  transform-style: preserve-3d;
}

.cover-frame {
  overflow: hidden;
  border: 1px solid rgba(246, 240, 217, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.cover-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.folder-tab {
  position: absolute;
  right: 8%;
  bottom: -28px;
  display: grid;
  min-width: 190px;
  min-height: 112px;
  place-items: end;
  border-radius: 8px;
  padding: 1rem;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 20px 42px rgba(39, 59, 39, 0.35);
}

.folder-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: -26px;
  width: 48%;
  height: 34px;
  border-radius: 8px 8px 0 0;
  background: #f7bb50;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.8rem, 5vw, 3.4rem);
}

.section-head h2,
.page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.9rem, 3.8vw, 3.8rem);
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.section-head p,
.lede {
  margin: 0;
  color: rgba(246, 240, 217, 0.78);
  font-size: 1rem;
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: var(--radius);
  background: rgba(246, 240, 217, 0.09);
  box-shadow: 0 18px 50px rgba(34, 49, 31, 0.18);
  transition: transform 220ms ease, border-color 220ms ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 199, 96, 0.7);
}

.category-card img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  filter: saturate(0.9);
}

.category-card .card-body {
  padding: 1rem;
}

.category-card h3 {
  font-size: 1.1rem;
  line-height: 1.15;
}

.category-card p {
  margin: 0.7rem 0 0;
  color: rgba(246, 240, 217, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pill,
.tag {
  border: 1px solid rgba(246, 240, 217, 0.22);
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  background: rgba(246, 240, 217, 0.08);
  color: rgba(246, 240, 217, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.panel {
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 2rem);
  background: rgba(246, 240, 217, 0.09);
  box-shadow: var(--shadow);
}

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

.panel p {
  color: inherit;
  line-height: 1.7;
}

.experience-list {
  display: grid;
  gap: 1rem;
}

.experience-item {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(246, 240, 217, 0.18);
  padding-top: 1rem;
}

.experience-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.experience-item h3 {
  font-size: 1rem;
}

.experience-item .meta {
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
  text-transform: uppercase;
}

.experience-item p {
  margin: 0.45rem 0 0;
  color: rgba(246, 240, 217, 0.76);
  line-height: 1.65;
}

.work-hero {
  padding-top: clamp(3rem, 7vw, 5rem);
}

.work-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.32fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.work-sidebar {
  position: sticky;
  top: 98px;
  align-self: start;
}

.work-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(246, 240, 217, 0.16);
  padding: 0.85rem 0;
  color: rgba(246, 240, 217, 0.72);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-mark {
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 180ms ease;
}

.work-sidebar a.active .sidebar-mark,
.work-sidebar a:hover .sidebar-mark {
  opacity: 1;
}

.work-sidebar a.active,
.work-sidebar a:hover {
  color: var(--gold);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: var(--radius);
  background: rgba(246, 240, 217, 0.09);
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-card-body {
  padding: 1rem;
}

.project-card h3 {
  margin-bottom: 0.45rem;
}

.project-card p {
  margin: 0;
  color: rgba(246, 240, 217, 0.72);
  line-height: 1.55;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  border-left: 1px solid rgba(255, 199, 96, 0.8);
  padding: 0.3rem 0 0.3rem 1rem;
}

.stat strong {
  display: block;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5rem;
  line-height: 1;
}

.stat span {
  color: rgba(246, 240, 217, 0.74);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 1rem;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(33, 48, 36, 0.16);
  padding: 1rem 0;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(20, 35, 18, 0.6);
  backdrop-filter: blur(16px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-brand .brand-mark {
  color: var(--gold);
  font-size: 1.1rem;
}

.footer-name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.footer-tagline {
  margin: 0.2rem 0 0;
  color: rgba(246, 240, 217, 0.48);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.2rem;
}

.footer-nav a,
.footer-contact a {
  color: rgba(246, 240, 217, 0.6);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 180ms ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 240, 217, 0.1);
  padding: 1.1rem clamp(1rem, 4vw, 3rem);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(246, 240, 217, 0.3);
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 1rem auto 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.7rem;
    background: rgba(38, 60, 39, 0.96);
    box-shadow: var(--shadow);
  }

  body.menu-open .site-nav {
    display: flex;
  }

  .hero-inner,
  .section-head,
  .split,
  .work-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-sidebar {
    position: static;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

  .work-sidebar a {
    flex: 0 0 auto;
    border: 1px solid rgba(246, 240, 217, 0.16);
    border-radius: 999px;
    padding: 0.65rem 0.8rem;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 1rem, 1180px);
    padding: 3rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  h1,
  .display {
    font-size: clamp(3.7rem, 21vw, 6.4rem);
  }

  .category-grid,
  .project-grid,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .folder-tab {
    right: 1rem;
    bottom: -18px;
    min-width: 132px;
    min-height: 82px;
    font-size: 1rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ─── Portfolio banner (top of home) ─────────────────────────────── */

.portfolio-banner {
  position: relative;
  width: 100%;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-grain { display: none; }

.banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  text-align: center;
}

.banner-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.banner-ring svg {
  width: 100%;
  max-width: 1000px;
  height: auto;
}

.banner-welcome {
  margin: 0 0 0.1rem;
  color: rgba(246, 240, 217, 0.6);
  font-size: clamp(0.78rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

.banner-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(5rem, 14vw, 13rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
  color: var(--cream);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  animation: bannerFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bannerFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sparkles */
.sparkle {
  position: absolute;
  color: var(--cream);
  font-size: 1.3rem;
  opacity: 0.75;
  pointer-events: none;
  z-index: 3;
  animation: sparklePulse 3s ease-in-out infinite;
}

.sp-1 { top: 12%;  right: 18%; font-size: 1.6rem; animation-delay: 0s; }
.sp-2 { top: 60%;  left: 12%;  font-size: 1rem;   animation-delay: 0.6s; }
.sp-3 { bottom: 15%; left: 38%; font-size: 0.75rem; animation-delay: 1.1s; }
.sp-4 { top: 20%;  right: 42%; font-size: 0.6rem;  animation-delay: 1.8s; }

@keyframes sparklePulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85) rotate(0deg); }
  50%       { opacity: 1;   transform: scale(1.25) rotate(20deg); }
}

/* Floating folder */
.folder-float {
  position: relative;
  z-index: 4;
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  animation: folderFloat 3.4s ease-in-out infinite, folderEntry 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  opacity: 0;
}

@keyframes folderEntry {
  from { opacity: 0; transform: translateY(40px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes folderFloat {
  0%, 100% { transform: translateY(0px)   rotate(-0.6deg); }
  50%       { transform: translateY(-12px) rotate(0.6deg);  }
}

.css-folder {
  position: relative;
  width: clamp(60px, 7vw, 88px);
  filter: drop-shadow(0 14px 28px rgba(18, 31, 18, 0.55));
}

.folder-tab {
  width: 44%;
  height: 10px;
  background: #d99a2a;
  border-radius: 5px 5px 0 0;
  margin-left: 4px;
  position: relative;
  z-index: 1;
}

.folder-body {
  width: 100%;
  height: clamp(45px, 5.5vw, 68px);
  background: linear-gradient(160deg, #f7c86a 0%, #e49a28 100%);
  border-radius: 3px 8px 8px 8px;
  position: relative;
}

.folder-year {
  position: absolute;
  bottom: 16%;
  right: 10%;
  font-size: clamp(0.55rem, 1.1vw, 0.75rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  color: rgba(55, 30, 5, 0.65);
}

@media (max-width: 640px) {
  .banner-title {
    font-size: clamp(3.8rem, 18vw, 6rem);
  }
  .sp-1, .sp-4 { display: none; }
}

/* ─── Hero animated background ───────────────────────────────────── */

.hero-v2 {
  position: relative;
}

.hero-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.85;
  will-change: transform;
}

.blob-1 {
  width: 650px;
  height: 650px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(168, 230, 100, 0.55), transparent 65%);
  animation: blobDrift1 12s ease-in-out infinite alternate;
}

.blob-2 {
  width: 520px;
  height: 520px;
  top: 5%;
  right: -140px;
  background: radial-gradient(circle, rgba(255, 199, 96, 0.5), transparent 65%);
  animation: blobDrift2 16s ease-in-out infinite alternate;
}

.blob-3 {
  width: 460px;
  height: 460px;
  bottom: -80px;
  left: 25%;
  background: radial-gradient(circle, rgba(80, 200, 140, 0.38), transparent 65%);
  animation: blobDrift3 20s ease-in-out infinite alternate;
}

.blob-4 {
  width: 340px;
  height: 340px;
  top: 40%;
  right: 30%;
  background: radial-gradient(circle, rgba(255, 210, 80, 0.32), transparent 65%);
  animation: blobDrift4 14s ease-in-out infinite alternate;
}

@keyframes blobDrift1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes blobDrift2 {
  from { transform: translate(0, 0) scale(1.05); }
  to   { transform: translate(-70px, 80px) scale(0.9); }
}

@keyframes blobDrift3 {
  from { transform: translate(0, 0) scale(0.95); }
  to   { transform: translate(60px, -50px) scale(1.1); }
}

@keyframes blobDrift4 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, -70px) scale(1.2); }
}

.hero-grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(246, 240, 217, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 217, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 30s linear infinite;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 56px 56px; }
}

.hero-v2 > * {
  position: relative;
  z-index: 1;
}

/* ─── Layout improvements ─────────────────────────────────────────── */

/* Featured first card in the category grid */
.category-grid.dense .category-card:first-child {
  grid-column: span 2;
  min-height: 440px;
}

.category-grid.dense .category-card:first-child img {
  height: 280px;
}

/* About page: panels side by side, no paper box */
.about-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

.about-panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-right: 1px solid rgba(246, 240, 217, 0.12);
}

.about-panel:last-child {
  border-right: 0;
}

.about-panel h3 {
  margin-bottom: 0.85rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-panel p {
  margin: 0;
  color: rgba(246, 240, 217, 0.8);
  font-size: 0.97rem;
  line-height: 1.72;
}

/* Experience timeline */
.experience-list {
  position: relative;
  padding-left: 0;
}

.experience-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.6rem;
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(246, 240, 217, 0.1);
  border-left: 3px solid rgba(255, 199, 96, 0.4);
  transition: background 220ms ease, border-color 220ms ease;
}

.experience-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-left-color: var(--gold);
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-item::before {
  display: none;
}

.experience-item:first-child {
  border-top: none;
  padding-top: 1.4rem;
}

.exp-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.exp-left h3 {
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.exp-left .meta.company {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 199, 96, 0.13);
  border: 1px solid rgba(255, 199, 96, 0.28);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.4;
}

.exp-left .date {
  color: rgba(246, 240, 217, 0.38);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  background: none;
  border: none;
  padding: 0;
  margin-left: auto;
}

.experience-item > p {
  margin: 0.2rem 0 0;
  color: rgba(246, 240, 217, 0.72);
  font-size: 0.93rem;
  line-height: 1.72;
}

/* Tournament list in experience */
.tournament-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.tournament-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(246, 240, 217, 0.82);
  font-size: 0.94rem;
  line-height: 1.5;
}

.tournament-list li::before {
  content: "✦";
  color: var(--gold);
  font-size: 0.65rem;
  flex-shrink: 0;
}

/* Full-width project block (for ad campaigns) */
.project-block.project-block--full {
  display: block !important;
  grid-template-columns: none !important;
}

.project-copy-full {
  margin-bottom: 1.2rem;
}

.project-copy-full h3 {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  margin: 0.4rem 0 0.6rem;
}

.project-copy-full p {
  margin: 0;
  color: rgba(246, 240, 217, 0.72);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 780px;
}

.project-kind-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

/* Ad grid — 3 rows × 2 columns, full image, proportionate */
.ad-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.ad-grid[style*="repeat(1,"] {
  max-width: 400px;
  margin-left: 0;
}

.ad-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(246, 240, 217, 0.14);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1.2), box-shadow 220ms ease;
}

.ad-tile img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ad-tile:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 50px rgba(18, 31, 18, 0.38), 0 0 0 1px rgba(255, 199, 96, 0.5);
}

.ad-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(6px);
  color: rgba(246, 240, 217, 0.9);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  pointer-events: none;
}

.project-tools {
  margin: 0.5rem 0 0;
  color: rgba(246, 240, 217, 0.5);
  font-size: 0.82rem;
}

.project-tools span {
  color: var(--gold);
  font-weight: 700;
}

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

/* On-site strip on home page */
.onsite-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  border: 1px solid rgba(255, 199, 96, 0.28);
  border-radius: 18px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: linear-gradient(145deg, rgba(255, 199, 96, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.onsite-strip h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-style: italic;
  line-height: 1;
  margin-bottom: 1rem;
}

.onsite-strip p {
  color: rgba(246, 240, 217, 0.8);
  line-height: 1.7;
  margin: 0 0 1.2rem;
}

.onsite-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.onsite-list li {
  padding: 0.6rem 0.8rem;
  border-left: 2px solid rgba(255, 199, 96, 0.5);
  color: rgba(246, 240, 217, 0.8);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Contact details panel */
.contact-details {
  padding: clamp(1rem, 2.5vw, 1.6rem) !important;
}

/* Hero h1 em style */
.hero-copy-v2 h1 em {
  font-style: italic;
  color: var(--gold);
}

/* ─── Rebuild layer: richer layout, stronger motion, glass interactions ─ */

.site-header {
  box-shadow: 0 12px 42px rgba(17, 29, 17, 0.2);
}

.site-nav a,
.button,
.category-card,
.project-block,
.art-tile,
.writing-card,
.service-card,
.panel,
.skill-block,
.contact-link {
  will-change: transform;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: rgba(255, 199, 96, 0.6);
  background: rgba(246, 240, 217, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px rgba(18, 32, 18, 0.18);
  transform: translateY(-1px);
}

.button {
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(22, 35, 22, 0.2);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1.25), background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.button::after,
.category-card::after,
.project-block::after,
.art-tile::after,
.writing-card::after,
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.24) 42%, transparent 58%);
  transform: translateX(-110%);
  transition: opacity 240ms ease, transform 600ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-5px) scale(1.045);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 18px 46px rgba(20, 34, 20, 0.35), 0 0 0 1px rgba(255, 199, 96, 0.28);
}

.button:hover::after,
.button:focus-visible::after,
.category-card:hover::after,
.project-block:hover::after,
.art-tile:hover::after,
.writing-card:hover::after,
.service-card:hover::after {
  opacity: 1;
  transform: translateX(115%);
}

.top-section {
  padding-top: clamp(3rem, 7vw, 5.5rem);
}

.compact {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}

.hero-v2 {
  width: min(1240px, calc(100% - 2rem));
  min-height: calc(100vh - 78px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.hero-copy-v2 h1 {
  max-width: 680px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 1.02;
  margin-bottom: 1.4rem;
}

.hero-copy-v2 p {
  max-width: 560px;
  color: rgba(246, 240, 217, 0.84);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.78;
  margin: 0 0 0.6rem;
}

/* ─── Hero slideshow ──────────────────────────────────────────────── */

.hero-slideshow {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 28px 64px rgba(18, 31, 18, 0.38);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slideshow-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(246, 240, 217, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background 240ms ease, transform 240ms ease;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.slide-prev,
.slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(246, 240, 217, 0.3);
  border-radius: 50%;
  background: rgba(20, 35, 20, 0.55);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 200ms ease, background 200ms ease;
}

.slide-prev { left: 0.6rem; }
.slide-next { right: 0.6rem; }

.hero-slideshow:hover .slide-prev,
.hero-slideshow:hover .slide-next {
  opacity: 1;
}

.slide-prev:hover,
.slide-next:hover {
  background: rgba(255, 199, 96, 0.3);
  border-color: var(--gold);
}

.hero-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.hero-gallery-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(246, 240, 217, 0.55);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-gallery-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(246, 240, 217, 0.35);
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 158px;
  gap: 0.65rem;
  perspective: 1000px;
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(246, 240, 217, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(18, 31, 18, 0.28);
  transition: transform 360ms cubic-bezier(0.2, 0.9, 0.2, 1.25), filter 260ms ease, box-shadow 260ms ease;
}

.hero-gallery img:hover {
  z-index: 3;
  transform: translateY(-10px) rotate(1deg) scale(1.06);
  filter: saturate(1.12) contrast(1.03);
  box-shadow: 0 30px 70px rgba(18, 31, 18, 0.42), 0 0 0 1px rgba(255, 199, 96, 0.6);
}

.hero-main-img {
  grid-row: span 2;
}

.category-grid.dense {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card {
  min-height: 360px;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  backdrop-filter: blur(14px);
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1.25), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.category-card:hover {
  transform: translateY(-12px) scale(1.035);
  border-color: rgba(255, 199, 96, 0.75);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.21), rgba(255, 255, 255, 0.09));
  box-shadow: 0 28px 70px rgba(18, 31, 18, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.category-card img {
  height: 210px;
  transition: transform 420ms ease, filter 260ms ease;
}

.category-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.12) contrast(1.02);
}

.category-card .card-body span {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.about-layout,
.contact-hero,
.inquiry-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.62fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.portrait-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 217, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
}

.three-col,
.skills-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.skill-block {
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: 14px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.skill-block h3 {
  margin-bottom: 1rem;
  color: var(--gold);
}

.skill-block .pill {
  display: inline-flex;
  margin: 0 0.35rem 0.45rem 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.skill-block .pill:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(255, 199, 96, 0.65);
  background: rgba(255, 199, 96, 0.16);
}

.project-stack {
  display: grid;
  gap: 1.2rem;
}

.project-section {
  display: grid;
  gap: 1.2rem;
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: 18px;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.project-intro {
  display: grid;
  gap: 0.8rem;
  max-width: 880px;
}

.project-intro h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-style: italic;
  line-height: 1.2;
}

.project-intro p,
.project-copy p {
  color: rgba(246, 240, 217, 0.78);
  line-height: 1.7;
}

.project-block {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid rgba(246, 240, 217, 0.16);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055));
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1.16), border-color 220ms ease, box-shadow 220ms ease;
}

.project-block:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 199, 96, 0.58);
  box-shadow: 0 24px 58px rgba(18, 31, 18, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-kind {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-copy h3 {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
}

.image-mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  grid-auto-flow: dense;
  gap: 0.65rem;
}

.art-tile {
  position: relative;
  overflow: hidden;
  min-height: 140px;
  border: 1px solid rgba(246, 240, 217, 0.16);
  border-radius: 12px;
  background: rgba(246, 240, 217, 0.08);
  box-shadow: 0 12px 26px rgba(18, 31, 18, 0.18);
  transition: transform 300ms cubic-bezier(0.2, 0.9, 0.2, 1.25), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.art-tile:nth-child(5n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.art-tile img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  transition: transform 420ms ease, filter 260ms ease;
}

.art-tile--contain {
  min-height: unset;
  height: auto;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
}

.art-tile--contain img {
  width: 100%;
  height: auto;
  min-height: unset;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.image-mosaic--contain {
  display: block;
}

.art-tile:hover,
.art-tile:focus-visible {
  z-index: 4;
  transform: translateY(-8px) scale(1.06);
  border-color: rgba(255, 199, 96, 0.78);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 60px rgba(18, 31, 18, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.art-tile:hover img {
  transform: scale(1.1);
  filter: saturate(1.12) contrast(1.04);
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.writing-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: 16px;
  padding: 1.2rem;
  background: rgba(255, 248, 226, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(18, 31, 18, 0.18);
  transition: transform 280ms cubic-bezier(0.2, 0.9, 0.2, 1.18), box-shadow 220ms ease;
}

.writing-card:hover {
  transform: translateY(-9px) scale(1.025);
  box-shadow: 0 26px 62px rgba(18, 31, 18, 0.3);
}

.writing-card span {
  color: var(--gold-deep);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.writing-card h3 {
  margin: 1rem 0 0.75rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-style: italic;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  margin-top: 0.9rem;
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, color 180ms ease;
}

.text-link:hover {
  transform: translateX(7px);
  color: #ffe0a0;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  margin-top: 1.2rem;
  padding: 0.55rem 1.2rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease, transform 180ms ease;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--forest);
  transform: translateY(-2px);
}

.onsite-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1fr);
  gap: 1.5rem;
  border: 1px solid rgba(255, 199, 96, 0.42);
  border-radius: 18px;
  padding: clamp(1.2rem, 3vw, 2rem);
  background: linear-gradient(145deg, rgba(255, 199, 96, 0.18), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
}

.onsite-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-style: italic;
  line-height: 1;
}

.onsite-card p,
.onsite-card li {
  color: rgba(246, 240, 217, 0.82);
  line-height: 1.65;
}

.onsite-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.tournament-gallery {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tournament-photo {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4/3;
}

.tournament-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.tournament-photo:hover img {
  transform: scale(1.05);
}

.service-section-head {
  margin-bottom: 1.2rem;
}

.service-section-head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.service-section-head p {
  color: rgba(246, 240, 217, 0.65);
  font-size: 0.9rem;
  margin: 0;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(246, 240, 217, 0.14);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  color: var(--cream);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1.18), background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.service-card .svc-num {
  color: rgba(255, 199, 96, 0.55);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-card .svc-name {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 199, 96, 0.55);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 20px 48px rgba(18, 31, 18, 0.28);
}

.contact-link {
  align-items: center;
  transition: transform 220ms ease, background 220ms ease, padding 220ms ease;
}

.contact-link:hover {
  padding-inline: 0.75rem;
  border-radius: 12px;
  background: rgba(66, 95, 57, 0.08);
  transform: translateX(4px) scale(1.01);
}

.icon-link span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inquiry-layout {
  align-items: start;
}

.collab-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  border: 1px solid rgba(246, 240, 217, 0.18);
  border-radius: 18px;
  padding: clamp(1rem, 2.5vw, 1.4rem);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.collab-form label {
  display: grid;
  gap: 0.45rem;
  color: rgba(246, 240, 217, 0.82);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collab-form .full {
  grid-column: 1 / -1;
}

.collab-form input,
.collab-form select,
.collab-form textarea {
  width: 100%;
  border: 1px solid rgba(246, 240, 217, 0.2);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(255, 248, 226, 0.94);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.collab-form input:focus,
.collab-form select:focus,
.collab-form textarea:focus {
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 199, 96, 0.2);
}

body.reveal-ready [data-reveal] {
  transform: translateY(52px) scale(0.965);
  transition:
    opacity 780ms ease,
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

body.reveal-ready [data-reveal].is-visible {
  transform: translateY(0) scale(1);
}

[data-reveal] {
  opacity: 1;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1100px) {
  .category-grid.dense {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hero-v2,
  .about-layout,
  .contact-hero,
  .inquiry-layout,
  .project-block,
  .onsite-card,
  .onsite-strip {
    grid-template-columns: 1fr;
  }

  .three-col,
  .skills-grid,
  .service-grid,
  .category-grid.dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-panels {
    grid-template-columns: 1fr;
  }

  .about-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(246, 240, 217, 0.12);
  }

  .about-panel:last-child {
    border-bottom: 0;
  }

  .category-grid.dense .category-card:first-child {
    grid-column: span 2;
  }

  .experience-list {
    padding-left: 0;
  }

  .experience-item {
    grid-template-columns: 1fr;
  }

  .exp-header {
    flex-wrap: wrap;
  }

  .exp-left .date {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-v2 {
    min-height: auto;
  }

  .hero-copy-v2 h1 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
  }

  .three-col,
  .skills-grid,
  .service-grid,
  .category-grid.dense,
  .writing-grid,
  .collab-form {
    grid-template-columns: 1fr;
  }

  .category-grid.dense .category-card:first-child {
    grid-column: span 1;
  }

  .art-tile:nth-child(5n + 1) {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-link {
    display: grid;
  }

  .experience-list {
    padding-left: 1.4rem;
  }

  .experience-item::before {
    left: -1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ── Lightbox ─────────────────────────────────────────────────────── */
.lb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb[hidden] {
  display: none;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 10, 0.92);
  backdrop-filter: blur(12px);
}

.lb-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(90vw, 1100px);
  max-height: 88vh;
}

.lb-img {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 220ms ease;
}

.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(246, 240, 217, 0.3);
  border-radius: 50%;
  background: rgba(20, 35, 20, 0.7);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease;
}

.lb-close:hover {
  background: rgba(255, 199, 96, 0.25);
  border-color: var(--gold);
}

.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(246, 240, 217, 0.28);
  border-radius: 50%;
  background: rgba(20, 35, 20, 0.65);
  backdrop-filter: blur(8px);
  color: var(--cream);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }

.lb-prev:hover,
.lb-next:hover {
  background: rgba(255, 199, 96, 0.25);
  border-color: var(--gold);
  transform: translateY(-50%) scale(1.08);
}

.lb-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 18, 10, 0.65);
  backdrop-filter: blur(6px);
  color: rgba(246, 240, 217, 0.75);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .lb-prev { left: 0.4rem; }
  .lb-next { right: 0.4rem; }
  .lb-prev,
  .lb-next {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}
