/*
  Bosky Sheth Portfolio - Final Hostinger-ready stylesheet
  -------------------------------------------------------
  This file defines the visual system shared across every static page.
  Tailwind CDN is used for layout utilities; custom CSS handles brand style,
  motion polish, responsive media, project cards, the modal, and form states.
*/

:root {
  color-scheme: dark;
  --bg: #121212;
  --bg-deep: #0B0B0C;
  --surface: #181716;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --paper: #F6F0E8;
  --silver: #C8C2BB;
  --muted: #9D948C;
  --line: rgba(246, 240, 232, 0.14);
  --line-strong: rgba(246, 240, 232, 0.28);
  --terracotta: #C96F4A;
  --amber: #D9A441;
  --gold: #C7A76D;
  --rose: #4B2028;
  --olive: #29362E;
  --glow: 0 22px 70px rgba(246, 240, 232, 0.08), 0 0 0 1px rgba(246, 240, 232, 0.15);
  --warm-glow: 0 20px 60px rgba(201, 111, 74, 0.18), 0 0 0 1px rgba(217, 164, 65, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 6%, rgba(201, 111, 74, 0.16), transparent 26rem),
    radial-gradient(circle at 86% 12%, rgba(217, 164, 65, 0.1), transparent 24rem),
    linear-gradient(180deg, #151413 0%, var(--bg) 48%, var(--bg-deep) 100%);
  color: var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(246, 240, 232, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 240, 232, 0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 76%);
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--terracotta);
  color: #111;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #080809;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6E5549, var(--terracotta));
  border: 2px solid #080809;
  border-radius: 8px;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

img,
video,
iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.font-display,
.display-font {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--paper);
  color: #111;
  padding: 0.75rem 1rem;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: #050505;
  transform: translateY(100%);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid rgba(246, 240, 232, 0.1);
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(18px);
}

.nav-link {
  position: relative;
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: rgba(246, 240, 232, 0.72);
  font-size: 0.95rem;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.35rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--terracotta);
  transition: transform 220ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--paper);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-panel {
  position: fixed;
  inset: 4.75rem 1rem auto;
  z-index: 55;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(24px);
}

.mobile-panel.is-open {
  display: block;
}

.icon-button,
.btn-primary,
.btn-secondary,
.project-card,
.service-card,
.portrait-frame,
.hero-reel,
.filter-tab,
.contact-panel {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.icon-button {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--paper);
}

.icon-button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.project-card:hover,
.service-card:hover,
.portrait-frame:hover,
.hero-reel:hover,
.contact-panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.icon-button:hover {
  border-color: rgba(246, 240, 232, 0.34);
  background: rgba(255, 255, 255, 0.06);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 6px;
  padding: 0.9rem 1.05rem;
}

.btn-primary {
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: #120D0B;
}

.btn-primary:hover {
  border-color: var(--amber);
  background: var(--amber);
  box-shadow: var(--warm-glow);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--paper);
}

.btn-secondary:hover {
  border-color: rgba(246, 240, 232, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2.25rem;
  height: 1px;
  background: var(--terracotta);
}

.text-muted {
  color: var(--muted);
}

.section-pad {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.metal-border,
.contact-panel {
  border: 1px solid var(--line);
}

.home-hero {
  position: relative;
  min-height: 94svh;
  isolation: isolate;
  background:
    radial-gradient(circle at 20% 22%, rgba(201, 111, 74, 0.22), transparent 25rem),
    radial-gradient(circle at 74% 28%, rgba(217, 164, 65, 0.12), transparent 26rem),
    linear-gradient(135deg, #121212 0%, #181513 48%, #0B0B0C 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 20%, rgba(246, 240, 232, 0.055) 30%, transparent 44%),
    radial-gradient(circle at 64% 42%, rgba(201, 111, 74, 0.16), transparent 22rem),
    radial-gradient(circle at 24% 76%, rgba(41, 54, 46, 0.48), transparent 24rem);
  filter: blur(10px);
  animation: cinematicDrift 24s ease-in-out infinite alternate;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.28) 54%, rgba(18, 18, 18, 0.86)),
    linear-gradient(180deg, rgba(18, 18, 18, 0.08), rgba(18, 18, 18, 0.86));
}

@keyframes cinematicDrift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.035);
  }
}

.hero-name {
  max-width: 980px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(4.3rem, 12vw, 10.8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 47rem;
  color: var(--paper);
  font-size: clamp(1.15rem, 2.15vw, 2rem);
  font-weight: 500;
  line-height: 1.42;
  text-wrap: balance;
}

.hero-copy {
  max-width: 43rem;
  color: var(--silver);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  line-height: 1.8;
}

.page-hero-title {
  max-width: 920px;
  color: var(--paper);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.25vw, 5.6rem);
  font-weight: 600;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-reel {
  position: relative;
  justify-self: end;
  align-self: center;
  width: min(100%, 44rem);
  min-height: clamp(25rem, 38vw, 34rem);
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 232, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(246, 240, 232, 0.1), transparent 26%),
    linear-gradient(45deg, rgba(75, 32, 40, 0.76), rgba(18, 18, 18, 0.72) 52%, rgba(41, 54, 46, 0.82));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.hero-reel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.04) 8% 9%, transparent 9% 18%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 14px);
  opacity: 0.42;
}

.hero-reel-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050505;
}

.hero-reel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.04);
  animation: hero-reel-fade 18s infinite ease-in-out;
}

.hero-reel-slide:nth-child(1) {
  animation-delay: 0s;
}

.hero-reel-slide:nth-child(2) {
  animation-delay: 4.5s;
}

.hero-reel-slide:nth-child(3) {
  animation-delay: 9s;
}

.hero-reel-slide:nth-child(4) {
  animation-delay: 13.5s;
}

@keyframes hero-reel-fade {
  0%, 100% {
    opacity: 0;
    transform: scale(1.04);
  }

  8%, 27% {
    opacity: 0.52;
    transform: scale(1);
  }

  35% {
    opacity: 0;
    transform: scale(1.015);
  }
}

.hero-reel-copy {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-content: center;
  gap: 0.85rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  text-align: center;
  background: radial-gradient(circle at center, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.34) 56%, rgba(5, 5, 5, 0.62));
}

.hero-reel-title {
  color: var(--paper);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.02;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.68);
  text-wrap: balance;
}

.hero-reel-text {
  max-width: 32rem;
  margin: 0 auto;
  color: rgba(246, 240, 232, 0.86);
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.7;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.72);
}

.logo-strip {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 18, 18, 0.92);
  backdrop-filter: blur(16px);
}

.logo-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4rem;
  will-change: transform;
}

.logo-mark {
  display: inline-flex;
  min-width: 8rem;
  height: 4rem;
  align-items: center;
  justify-content: center;
  border-inline: 1px solid rgba(246, 240, 232, 0.08);
  color: rgba(246, 240, 232, 0.72);
  font-weight: 800;
  text-transform: uppercase;
}

.project-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  isolation: isolate;
  touch-action: manipulation;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(246, 240, 232, 0.28);
  box-shadow: var(--warm-glow);
}

.project-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.project-media {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
}

.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.76));
}

.project-card:hover .project-thumb {
  transform: scale(1.035);
}

.project-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.project-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  padding: 1.25rem;
}

.category-pill {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  border: 1px solid rgba(246, 240, 232, 0.2);
  border-radius: 4px;
  background: rgba(18, 18, 18, 0.58);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}

.filter-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(246, 240, 232, 0.72);
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.95rem;
  text-align: center;
  line-height: 1;
  touch-action: manipulation;
}

.filter-tab::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.48rem;
  height: 1px;
  background: var(--amber);
  opacity: 0;
  transform: scaleX(0.32);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.filter-tab:hover,
.filter-tab.is-hovered,
.filter-tab.is-active {
  transform: none;
  border-color: rgba(217, 164, 65, 0.56);
  background: rgba(201, 111, 74, 0.13);
  color: var(--paper);
  box-shadow: 0 14px 42px rgba(201, 111, 74, 0.12);
}

.filter-tab:hover::after,
.filter-tab.is-hovered::after,
.filter-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.filter-tab:focus-visible {
  outline: 2px solid rgba(217, 164, 65, 0.76);
  outline-offset: 3px;
}

.masonry-grid {
  column-gap: 1rem;
}

.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  break-inside: avoid;
}


.portfolio-sections {
  display: grid;
  gap: clamp(4.5rem, 8vw, 8rem);
}

.portfolio-section {
  scroll-margin-top: 9.5rem;
}

.portfolio-section-header {
  display: grid;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.project-count {
  display: inline-flex;
  width: fit-content;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 164, 65, 0.32);
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.08);
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  text-transform: uppercase;
}

.category-anchor {
  white-space: nowrap;
}

.work-filter-shell {
  position: sticky;
  z-index: 75;
  overflow: visible;
  isolation: isolate;
}

.work-filter-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 18, 18, 0.94);
}

[data-category-nav] {
  align-items: center;
  gap: clamp(0.65rem, 1vw, 1rem);
  justify-content: space-between;
  scrollbar-width: none;
}

[data-category-nav]::-webkit-scrollbar {
  display: none;
}

[data-category-nav] .category-anchor {
  flex: 1 0 10rem;
  min-width: 10rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.portfolio-card {
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.portfolio-card .project-media {
  min-height: 0;
  aspect-ratio: 4 / 5;
}

.portfolio-card .project-media[data-aspect="wide"] {
  aspect-ratio: 16 / 10;
}

.portfolio-card .project-media[data-aspect="square"] {
  aspect-ratio: 1 / 1;
}

.portfolio-card .project-media[data-aspect="tall"],
.portfolio-card .project-media[data-aspect="poster"] {
  aspect-ratio: 3 / 4;
}

.featured-work-grid .portfolio-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.featured-work-grid .portfolio-card .project-media,
.featured-work-grid .portfolio-card .project-media[data-aspect="wide"],
.featured-work-grid .portfolio-card .project-media[data-aspect="square"],
.featured-work-grid .portfolio-card .project-media[data-aspect="tall"],
.featured-work-grid .portfolio-card .project-media[data-aspect="poster"] {
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.featured-work-grid .project-thumb,
#commercials .project-thumb,
#music-videos .project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#commercials .portfolio-card,
#music-videos .portfolio-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

#commercials .portfolio-card .project-media,
#commercials .portfolio-card .project-media[data-aspect="wide"],
#commercials .portfolio-card .project-media[data-aspect="square"],
#commercials .portfolio-card .project-media[data-aspect="tall"],
#commercials .portfolio-card .project-media[data-aspect="poster"],
#music-videos .portfolio-card .project-media,
#music-videos .portfolio-card .project-media[data-aspect="wide"],
#music-videos .portfolio-card .project-media[data-aspect="square"],
#music-videos .portfolio-card .project-media[data-aspect="tall"],
#music-videos .portfolio-card .project-media[data-aspect="poster"] {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.portfolio-card .project-content h3 {
  display: none;
}

.project-caption {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 6.75rem;
  padding: 1rem 1rem 1.1rem;
  border-top: 1px solid rgba(246, 240, 232, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}

#commercials .project-caption,
#music-videos .project-caption {
  height: 9rem;
  min-height: 9rem;
  overflow: hidden;
}

.project-caption-title {
  color: var(--paper);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  font-weight: 700;
  line-height: 1.18;
  text-wrap: balance;
}

.project-caption-meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.project-status {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  margin-top: 1rem;
  border: 1px solid rgba(246, 240, 232, 0.2);
  border-radius: 999px;
  background: rgba(246, 240, 232, 0.08);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
}

.project-card.is-media-pending .project-thumb {
  filter: grayscale(0.18) saturate(0.78) brightness(0.82);
}

.project-card.is-media-pending .project-status {
  border-color: rgba(201, 111, 74, 0.32);
  background: rgba(201, 111, 74, 0.12);
  color: #f0c6b7;
}

.video-frame iframe[hidden] {
  display: none;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  min-height: 100%;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  isolation: isolate;
}

.video-placeholder[hidden] {
  display: none;
}

.video-placeholder img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) brightness(0.62);
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.16), rgba(5, 5, 5, 0.86));
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .portfolio-section-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

@media (min-width: 1536px) {
  .portfolio-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: blur(20px);
}

.modal-shell.is-open {
  display: flex;
}

.modal-panel {
  position: relative;
  display: grid;
  width: min(1200px, calc(100vw - 2rem));
  max-width: 1200px;
  max-height: calc(100svh - 2rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 232, 0.18);
  border-radius: var(--radius);
  background: rgba(18, 18, 18, 0.96);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.64), 0 0 0 1px rgba(246, 240, 232, 0.08);
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.credits-panel {
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.portrait-frame {
  position: sticky;
  top: 7rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0)),
    linear-gradient(115deg, rgba(201, 111, 74, 0.32), transparent 36%),
    linear-gradient(45deg, rgba(75, 32, 40, 0.78), rgba(18, 18, 18, 0.72) 54%, rgba(41, 54, 46, 0.82));
  transform: translateY(var(--portrait-shift, 0));
}

.portrait-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.portrait-frame::after {
  display: none;
}

.service-card {
  min-height: 13rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  padding: 1.35rem;
}

.field label {
  display: block;
  color: rgba(246, 240, 232, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.35rem;
  border: 0;
  border-bottom: 1px solid rgba(246, 240, 232, 0.28);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field select option {
  color: #111;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--terracotta);
  box-shadow: 0 1px 0 var(--terracotta);
}

.field-error {
  min-height: 1.25rem;
  margin-top: 0.35rem;
  color: #F0B6A5;
  font-size: 0.82rem;
}

.success-state {
  display: none;
  border: 1px solid rgba(217, 164, 65, 0.42);
  border-radius: var(--radius);
  background: rgba(201, 111, 74, 0.08);
  padding: 1rem;
}

.success-state.is-visible {
  display: block;
}

.footer-link {
  color: rgba(246, 240, 232, 0.68);
  transition: color 180ms ease;
}

.footer-link:hover {
  color: var(--amber);
}

@media (min-width: 1024px) {
  .modal-panel {
    grid-template-columns: minmax(0, 1fr) 24rem;
  }

  .credits-panel {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 1023px) {
  .mobile-panel .nav-link {
    min-height: 3.25rem;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  [data-category-nav] {
    justify-content: flex-start;
  }

  [data-category-nav] .category-anchor {
    flex: 0 0 10rem;
    min-width: 10rem;
  }

  .section-pad {
    padding-top: 4.8rem;
    padding-bottom: 4.8rem;
  }

  .home-hero {
    min-height: auto;
  }

  .home-hero::after {
    background:
      linear-gradient(180deg, rgba(18, 18, 18, 0.46), rgba(18, 18, 18, 0.9)),
      linear-gradient(90deg, rgba(18, 18, 18, 0.82), rgba(18, 18, 18, 0.32));
  }

  .hero-name {
    font-size: clamp(4.2rem, 18vw, 6rem);
  }

  .hero-subtitle {
    font-size: clamp(1.08rem, 5.5vw, 1.55rem);
  }

  .page-hero-title {
    font-size: clamp(2.45rem, 11vw, 3.9rem);
  }

  .hero-reel {
    width: 100%;
    min-height: clamp(22rem, 78vw, 30rem);
    aspect-ratio: 4 / 5;
  }

  .project-media {
    min-height: 18rem;
  }

  .modal-shell {
    padding: 0.75rem;
  }

  .modal-panel {
    width: min(100%, calc(100vw - 1.5rem));
    max-height: calc(100svh - 1.5rem);
  }

  .portrait-frame {
    position: relative;
    top: auto;
  }
}


@media (max-width: 768px) {
  .work-filter-shell {
    overflow: hidden;
  }

  [data-category-nav] {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 0.15rem;
    padding-bottom: 0.15rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    touch-action: pan-x;
  }

  [data-category-nav]::-webkit-scrollbar {
    display: none;
  }

  [data-category-nav] .category-anchor {
    flex: 0 0 auto;
    min-width: max-content;
    scroll-snap-align: start;
  }

  [data-category-nav] .filter-tab {
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
  }
}

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