/* Jeminah Villar / Zeylee VA Portfolio Custom Stylesheet */

/* --- 1. Design System Tokens & Base --- */
:root {
  color-scheme: light;
  
  /* Color Palette - Beige / Warm Coffee Theme */
  --bg: #f7f2ea;
  --surface: #fffaf2;
  --surface-strong: #efe4d6;
  --text: #211915;
  --muted: #6f6259;
  --brand: #6b4b3d;
  --brand-rgb: 107, 75, 61;
  --accent: #c49a4a;
  --accent-hover: #b0873d;
  --line: rgba(67, 45, 35, 0.12);
  --shadow: 0 0.5rem 2rem rgba(52, 33, 24, 0.08);
  
  /* Layout Dimensions */
  --radius: 0.75rem;
  --radius-sm: 0.375rem;
  --radius-lg: 1.125rem;
  --nav-height: clamp(4.25rem, 10vw, 4.75rem);
  --page-pad: clamp(1rem, 5vw, 2.5rem);
  --content-max: 86rem; /* Expanded content width to reduce side margins */
  
  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

[data-theme="dark"] {
  color-scheme: dark;
  
  --bg: #17120f;
  --surface: #211915;
  --surface-strong: #33251f;
  --text: #fff8ec;
  --muted: #c7b9ac;
  --brand: #e6c59c;
  --brand-rgb: 230, 197, 156;
  --accent: #ddb75e;
  --accent-hover: #c4a04e;
  --line: rgba(255, 248, 236, 0.12);
  --shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.35);
}

/* --- 2. CSS Resets & Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 0.95rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  margin-top: 0;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 6.5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 4.5vw, 2.375rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  margin-bottom: 0.75rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

p:last-child {
  margin-bottom: 0;
}

/* Focus Outline for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--brand);
  color: var(--bg);
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 20px;
}

/* Images */
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

/* Icons */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-block;
  vertical-align: middle;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 0.95rem) clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px; /* Touch target */
}

.button.primary {
  background-color: var(--brand);
  color: var(--bg);
}

.button.primary:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.button.secondary {
  background-color: transparent;
  border-color: var(--line);
  color: var(--text);
}

.button.secondary:hover {
  background-color: var(--surface-strong);
  border-color: var(--brand);
  transform: translateY(-2px);
}

/* --- 3. Shared Header & Layout --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: transparent;
  z-index: 1000;
  transition: var(--transition);
}

.site-header[data-scrolled="true"] {
  background-color: var(--bg);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--line);
}

.header-container {
  max-width: var(--content-max);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--page-pad);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button Switch */
.theme-toggle-btn {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 2rem;
  width: 52px;
  height: 30px;
  padding: 2px;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle-btn:hover {
  background: var(--line);
}

.theme-toggle-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--bg);
  position: absolute;
  left: 2px;
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(22px);
}

.theme-toggle-thumb svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: none;
}

/* Menu Toggle Hamburger */
.menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  min-height: 44px;
  width: 44px;
}

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: var(--transition-fast);
}

/* Hamburger animation on open */
.menu-button[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-button[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navigation Overlay for Mobile & Desktop Link Pill container */
.site-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 20rem;
  height: 100vh;
  background-color: var(--surface);
  box-shadow: -1rem 0 3rem rgba(0, 0, 0, 0.15);
  padding: 6rem var(--page-pad) 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-nav[data-open="true"] {
  right: 0;
}

.site-nav a {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--muted);
  transition: var(--transition-fast);
  padding-block: 0.5rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
  transform: translateX(4px);
}

/* Navigation Resume Button */
.nav-cta {
  margin-top: 1rem;
  text-align: center;
  background-color: var(--brand);
  color: var(--bg) !important;
  border-radius: var(--radius);
  padding: 0.75rem !important;
}

.nav-cta:hover {
  filter: brightness(1.1);
  transform: translateY(-2px) !important;
}

/* Desktop and Mobile utility visibilities */
.desktop-only {
  display: none;
}

.mobile-only {
  display: inline-flex;
}

@media (max-width: 47.99rem) {
  .nav-links-pill {
    display: contents;
  }
}

/* Desktop Navigation Media Queries */
@media (min-width: 48rem) {
  .desktop-only {
    display: inline-flex;
  }
  
  .mobile-only {
    display: none !important;
  }
  
  .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  
  .header-actions {
    justify-self: end;
  }

  .menu-button {
    display: none;
  }
  
  .site-nav {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 0;
    justify-self: center;
  }
  
  .nav-links-pill {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background-color: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 2rem;
    padding: 0.35rem 1.5rem;
  }
  
  .site-nav a {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
  }
  
  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    color: var(--accent);
    transform: none;
  }
  
  .header-actions .nav-cta.desktop-only {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--text) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem;
    transition: var(--transition-fast);
    margin-top: 0;
    min-height: 38px;
  }
  
  .header-actions .nav-cta.desktop-only:hover {
    background-color: var(--surface-strong);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
  }
  
  .header-actions .nav-cta.desktop-only svg {
    width: 14px;
    height: 14px;
    stroke: var(--accent);
    fill: none;
  }
}

/* --- 4. Main Page Content Layouts --- */
.page-main {
  padding-top: calc(var(--nav-height) + 1rem);
}

.section-container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  padding-block: clamp(2rem, 5vw, 3rem);
}

.grid-two-col {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 48rem) {
  .grid-two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .align-center {
    align-items: center;
  }
}

.text-center-wrapper {
  text-align: center;
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-subtitle {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
}

.section-divider {
  border: 0;
  height: 1px;
  background-color: var(--line);
  margin: 0;
}

/* --- 5. Hero Section --- */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  padding-top: calc(var(--nav-height) + 1rem);
  padding-bottom: 2rem;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 47.99rem) {
  .hero-copy {
    display: contents;
  }
  .hero-text {
    order: 1;
  }
  .hero-image-wrapper {
    order: 2;
  }
  .hero-copy .hero-actions {
    order: 3;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
  }
  .hero-copy .hero-actions .button {
    flex: 1;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .hero-profile-card {
    order: 4;
  }
  .hero-copy .hero-text .hero-sub {
    margin-bottom: 0;
  }
}

.hero-copy .eyebrow {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-copy h1 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.hero-copy h1 .text-accent {
  color: var(--accent);
}

.hero-copy .hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-copy .hero-actions .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 44px;
}

.hero-copy .hero-actions .button.primary {
  background-color: var(--accent);
  color: #110f0e !important;
}

.hero-copy .hero-actions .button.primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.hero-copy .hero-actions .button.secondary {
  background-color: transparent;
  border-color: var(--accent);
  color: var(--text) !important;
}

.hero-copy .hero-actions .button.secondary:hover {
  background-color: var(--surface-strong);
  transform: translateY(-2px);
}

.hero-copy .hero-actions .button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.hero-image-wrapper {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  width: 100%;
  background-color: var(--surface-strong);
  border: 1px solid var(--line);
  position: relative;
  max-width: 550px;
  justify-self: center;
}

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

.hero-profile-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-color: rgba(196, 154, 74, 0.25);
  width: 100%;
  max-width: 330px;
  justify-self: center;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  background-color: var(--surface-strong);
  flex-shrink: 0;
}

.profile-card-info {
  display: flex;
  flex-direction: column;
}

.profile-card-info .name {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.2;
}

.profile-card-info .title {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.profile-card-divider {
  height: 1px;
  background-color: var(--line);
  margin: 0;
}

.profile-card-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.profile-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-card-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.profile-card-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-weight: 600;
}

.profile-card-label svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
  fill: none;
}

.profile-card-value {
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.profile-card-platforms {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  word-spacing: 0.2rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

@media (min-width: 48rem) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .hero-profile-card {
    grid-column: span 2;
    max-width: 340px;
  }
}

@media (min-width: 64rem) {
  .hero-container {
    grid-template-columns: 1.15fr 1.0fr 0.85fr;
    gap: 2rem;
  }
  .hero-profile-card {
    grid-column: span 1;
    max-width: 340px;
  }
}

/* --- 6. About & Vision Section --- */
.about-section {
  background-color: var(--surface);
}

.about-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vision-box {
  background-color: var(--bg);
  border-left: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.75rem;
  box-shadow: inset 0 0 1rem rgba(0, 0, 0, 0.01);
}

.vision-box h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}

.vision-box p {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
}

/* --- 7. Ways I Support Section (Core Philosophy) --- */
.support-grid {
  display: grid;
  gap: 1.25rem;
}

.support-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  border-radius: var(--radius);
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.support-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 1rem 3rem rgba(52, 33, 24, 0.12);
}

.card-icon {
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-icon .icon {
  width: 2rem;
  height: 2rem;
}

@media (min-width: 36rem) {
  .support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 8. Services Preview & List Grid --- */
.services-preview-section {
  background-color: var(--surface-strong);
}

.services-preview-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.service-preview-card {
  background-color: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.service-tag {
  display: inline-block;
  background-color: var(--surface-strong);
  color: var(--brand);
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

@media (min-width: 36rem) {
  .services-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 9. Timeline (Journey & Education) --- */
.timeline-section {
  background-color: var(--bg);
}

.certificates-section {
  background-color: var(--surface-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline-group {
  display: flex;
  flex-direction: column;
}

.timeline {
  position: relative;
  margin-top: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--surface-strong);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.timeline-institution {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.timeline-note {
  margin-top: 2rem;
  font-weight: 600;
}

.timeline-note a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition-fast);
}

.timeline-note a:hover {
  text-decoration: underline;
}

/* --- 10. Featured Proof of Work & Gallery --- */
.featured-proof-section {
  background-color: var(--surface);
}

.featured-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.proof-card {
  background-color: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.proof-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #000;
}

.proof-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.proof-card:hover .proof-media img {
  transform: scale(1.04);
}

.proof-info {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.proof-info h3 {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.proof-info p {
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (min-width: 36rem) {
  .featured-proof-grid {
    gap: 2rem;
  }
  .proof-info {
    padding: 1.5rem;
  }
  .proof-info h3 {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    margin-bottom: 0.75rem;
  }
  .proof-info p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* --- 11. Projects & Testimonials Pages Specifics --- */
.page-hero {
  background-color: var(--surface-strong);
  padding-block: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.page-hero-container {
  max-width: 38rem;
  margin-inline: auto;
  padding-inline: var(--page-pad);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.page-hero-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
  border: 1px solid var(--line);
  background-color: var(--surface);
}

.page-hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-hero-copy .eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0;
}

.page-hero h1 {
  margin-block: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7.5vw, 3rem);
  white-space: nowrap;
}

.page-hero-copy h1 {
  margin-block: 0;
}

.page-hero-copy p:not(.eyebrow) {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  color: var(--muted);
  line-height: 1.6;
  margin-top: 0.75rem;
}

@media (min-width: 48rem) {
  .page-hero-container:has(.page-hero-image-wrapper) {
    grid-template-columns: 1.2fr 1fr;
    text-align: left;
    max-width: 65rem;
    gap: 3.5rem;
  }
  .page-hero-image-wrapper {
    margin-inline: 0;
  }
}

.project-categories-section {
  background-color: var(--surface);
}

.project-block {
  padding-block: 2rem;
}

.project-block-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.project-block-intro {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 48rem;
}

.services-list-grid {
  display: grid;
  gap: 1.25rem;
}

.service-detail-card {
  background-color: var(--bg);
  border: 1px solid var(--line);
  padding: 1.35rem;
  border-radius: var(--radius);
}

@media (min-width: 48rem) {
  .services-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Notable Projects Block */
.notable-projects-block {
  padding-block: 3rem 0;
}

.notable-box {
  background-color: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.notable-tag {
  display: inline-block;
  background-color: var(--brand);
  color: var(--bg);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.notable-box h3 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.notable-privacy {
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* Portfolio Filter Tabs */
.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.6rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--surface-strong);
  border-color: var(--brand);
  color: var(--text);
}

.filter-btn.active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--bg);
}

/* Gallery Base */
.gallery-section {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.gallery-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition-fast);
}

.gallery-trigger {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.gallery-trigger img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: var(--transition);
}

.gallery-trigger:hover img {
  filter: brightness(0.85);
}

.gallery-caption {
  display: block;
  padding: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

@media (min-width: 36rem) {
  .gallery-grid {
    gap: 1.5rem;
  }
  .gallery-caption {
    padding: 1rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 48rem) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  }
  .gallery-section .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Spacing Optimization for Video, Work Samples & Testimonial Sections --- */
.video-samples-section {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
}

.work-samples-section {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

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

.reviews-gallery-section {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

/* --- 12. Skills Page Specifics --- */
.skills-section {
  background-color: var(--surface);
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skills-category-card {
  background-color: var(--bg);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.card-header-with-icon {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.skills-icon {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.skills-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.skills-category-desc {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  background-color: var(--surface);
  color: var(--brand);
  border: 1px solid var(--line);
  padding: 0.4rem 0.9rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.skill-chip:hover {
  background-color: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
  transform: translateY(-2px);
}

@media (min-width: 48rem) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tools Grid */
.tools-section {
  background-color: var(--surface-strong);
  border-top: 1px solid var(--line);
}

.tools-grid {
  display: grid;
  gap: 1.5rem;
}

.tool-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
}

.tool-card:hover {
  box-shadow: 0 0.75rem 2.5rem rgba(52, 33, 24, 0.12);
}

.tool-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: var(--brand);
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.4rem;
  align-self: flex-start;
}

.tool-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tool-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  transition: var(--transition-fast);
}

.tool-item:hover {
  background-color: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.tool-item:hover span {
  color: var(--bg);
}

.tool-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 3px;
  background-color: transparent;
}

.tool-item span {
  color: var(--text);
  transition: var(--transition-fast);
}

@media (min-width: 48rem) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- 13. Testimonials Page Specifics --- */
.testimonials-metrics-section {
  background-color: var(--surface);
}

.metrics-grid {
  display: grid;
  gap: 1.25rem;
  text-align: center;
}

.metric-box {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.metric-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.metric-box p {
  font-size: 0.85rem;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

@media (min-width: 48rem) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* FB Reviews Card */
.fb-reviews-section {
  background-color: var(--surface-strong);
}

.fb-review-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.fb-badge {
  display: inline-block;
  background-color: #1877f2;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.fb-review-card h2 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

.fb-review-card p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.fb-review-card .button {
  background-color: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.fb-review-card .button:hover {
  background-color: #166fe5;
  border-color: #166fe5;
}

/* Privacy Notice Block */
.privacy-notice-box {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.privacy-notice-box h3 {
  margin-bottom: 0.75rem;
}

.privacy-notice-box p {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

/* --- 14. Contact Page Specifics --- */
.contact-portal-section {
  background-color: var(--surface);
}

.contact-channels h2 {
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

.contact-channel-card:not(.no-click):hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.channel-icon {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.channel-icon .icon {
  width: 1.75rem;
  height: 1.75rem;
}

.channel-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.channel-value {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.channel-action {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.channel-action-static {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

/* Contact Sidebar & Profile */
.contact-profile-card {
  background-color: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-card-photo {
  border-radius: 50%;
  width: clamp(8rem, 20vw, 10rem);
  height: clamp(8rem, 20vw, 10rem);
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
}

.profile-card-role {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand);
}

.profile-divider {
  border: 0;
  height: 1px;
  background-color: var(--line);
  margin-block: 1.5rem 2rem;
}

.download-block h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.download-block p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.download-buttons-grid {
  display: grid;
  gap: 0.75rem;
}

.download-buttons-grid .button {
  width: 100%;
}

/* References Section */
.references-section {
  background-color: var(--bg);
  border-top: 1px solid var(--line);
}

.references-grid {
  display: grid;
  gap: 1.5rem;
  justify-content: center;
}

.reference-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 28rem;
  width: 100%;
  box-shadow: var(--shadow);
}

.ref-badge {
  display: inline-block;
  background-color: var(--surface-strong);
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.reference-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.ref-role {
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.ref-location {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ref-divider {
  border: 0;
  height: 1px;
  background-color: var(--line);
  margin-block: 1rem 1.25rem;
}

.ref-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ref-contact-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.ref-contact-links a:hover {
  color: var(--accent);
}

/* --- 15. Footer --- */
.site-footer {
  background-color: var(--surface-strong);
  border-top: 1px solid var(--line);
  padding-block: 4rem 2.5rem;
}

.footer-container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-copy {
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

@media (min-width: 48rem) {
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  
  .footer-copy {
    width: 100%;
    margin-top: 1rem;
  }
}

/* --- 16. CTA Section --- */
.cta-section {
  background-color: var(--brand);
  color: var(--bg);
  text-align: center;
}

.cta-container {
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: var(--page-pad);
  padding-block: clamp(2rem, 5vw, 3rem);
}

.cta-section h2 {
  color: var(--bg);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--surface-strong);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.cta-buttons .button.primary {
  background-color: var(--accent);
  color: var(--text);
}

.cta-buttons .button.primary:hover {
  background-color: var(--accent-hover);
}

.cta-buttons .button.secondary {
  color: var(--bg);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-buttons .button.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--bg);
}

/* --- 17. Lightbox Modal Styles --- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 12, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-content {
  max-width: min(100%, 48rem);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
}

.lightbox-title {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.4;
}

/* --- 18. Accessibility Print & Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }
  
  .site-header,
  .site-footer,
  .theme-toggle-btn,
  .menu-button,
  .cta-section,
  .button,
  .lightbox-modal {
    display: none !important;
  }
  
  .page-main {
    padding-top: 0;
  }
  
  .section-container {
    padding-block: 2rem;
  }
  
  .grid-two-col {
    display: block;
  }
}

/* Service Detail Card Bullets */
.service-bullets {
  margin: 0.75rem 0 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-bullets li {
  font-size: 0.9rem;
  color: var(--muted);
  position: relative;
  padding-left: 1.15rem;
  line-height: 1.4;
}

.service-bullets li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Video Placeholders Grid */
.video-placeholder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 48rem) {
  .video-placeholder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-placeholder-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-preview-wrapper {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--surface-strong), var(--bg));
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background-color: rgba(33, 25, 21, 0.4);
  backdrop-filter: blur(4px);
}

.play-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  box-shadow: 0 4px 15px rgba(196, 154, 74, 0.4);
  transition: transform 0.3s ease;
}

.video-placeholder-card:hover .play-icon-wrapper {
  transform: scale(1.1);
}

.play-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  margin-left: 4px;
}

.video-status {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff8ec;
  background-color: rgba(107, 75, 61, 0.8);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-placeholder-card h3 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--text);
}

.video-placeholder-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted);
}

/* --- Testimonial Single Video --- */
.single-video-container {
  max-width: 360px;
  margin: 2.5rem auto 0;
}
.video-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.5rem rgba(52, 33, 24, 0.12);
}
.video-wrapper {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #000;
}
.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-info {
  text-align: center;
}
.video-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.video-info p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

/* --- Work Samples Video Grid --- */
.work-video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  max-width: 800px;
  margin-inline: auto;
}
.work-video-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}
.work-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2rem rgba(52, 33, 24, 0.12);
}
.video-preview-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.video-preview-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-hover-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(33, 25, 21, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.work-video-card:hover .video-hover-overlay,
.video-card:hover .video-hover-overlay {
  opacity: 1;
}
.play-btn-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  box-shadow: 0 4px 10px rgba(196, 154, 74, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.work-video-card:hover .play-btn-circle,
.video-card:hover .play-btn-circle {
  transform: scale(1);
}
.play-btn-circle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}
.work-video-caption {
  text-align: center;
}
.work-video-caption h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-video-caption p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

@media (max-width: 767px) {
  .work-video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
  }
  .work-video-card {
    padding: 0.5rem;
    border-radius: var(--radius);
  }
  .work-video-caption h3 {
    font-size: 0.8rem;
  }
  .work-video-caption p {
    font-size: 0.65rem;
  }
  .play-btn-circle {
    width: 32px;
    height: 32px;
  }
  .play-btn-circle svg {
    width: 14px;
    height: 14px;
  }
}

/* --- Video Modal --- */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 12, 10, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.video-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
.video-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem;
  transition: var(--transition-fast);
  z-index: 10001;
}
.video-modal-close:hover {
  color: var(--accent);
}
.video-modal-content {
  max-width: min(100%, 54rem);
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.video-modal-inner {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}
.video-modal-inner video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.video-modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 1.25rem;
  text-align: center;
  line-height: 1.4;
}

/* Portrait mode adjustments for video modal */
.video-modal.portrait-mode .video-modal-content {
  max-width: min(100%, 30rem);
}
.video-modal.portrait-mode .video-modal-inner {
  aspect-ratio: 9 / 16;
}

/* =============================================
   PAGE NAV PANEL (Scroll Spy — Right Sidebar)
   ============================================= */

[data-nav-section] {
  scroll-margin-top: calc(var(--nav-height) + 1.5rem);
}

.page-nav-panel {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 999;
  pointer-events: auto;
  opacity: 0;
  animation: fadeInNavPanel 0.5s ease 0.3s forwards;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

@keyframes fadeInNavPanel {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Page Nav Dot - Circle Only */
.page-nav-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.page-nav-dot.active,
.page-nav-dot:hover {
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 8px var(--accent);
}

/* Section Name Label (Tooltip) - Visible on active section, hover, or focus */
.page-nav-label {
  position: absolute;
  right: 1.75rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

/* Active state triggers label visibility with a fade-out animation */
.page-nav-dot.active .page-nav-label {
  animation: fadeOutLabel 1.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hover or focus state overrides animation and displays label immediately */
.page-nav-dot:hover .page-nav-label,
.page-nav-dot:focus-visible .page-nav-label {
  opacity: 1;
  transform: translateX(0);
  animation: none;
}

@keyframes fadeOutLabel {
  0% {
    opacity: 0;
    transform: translateX(8px);
  }
  15.4% { /* Smooth fade-in over 0.2s (0.2s / 1.3s = 15.4%) */
    opacity: 1;
    transform: translateX(0);
  }
  76.9% { /* Keep fully visible until 1.0s (1.0s / 1.3s = 76.9%) */
    opacity: 1;
    transform: translateX(0);
  }
  100% { /* Smooth fade-out over 0.3s */
    opacity: 0;
    transform: translateX(8px);
  }
}

/* Hide navigation panel if screen height is too small */
@media (max-height: 480px) {
  .page-nav-panel {
    display: none !important;
  }
}

/* --- 18. Contact Form Section --- */
.contact-form-section {
  background-color: var(--surface);
  border-top: 1px solid var(--line);
}

.email-form {
  max-width: 42rem;
  margin-inline: auto;
  padding: 2.5rem;
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 36rem) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(107, 75, 61, 0.4);
}

[data-theme="dark"] .form-group input:hover,
[data-theme="dark"] .form-group textarea:hover {
  border-color: rgba(230, 197, 156, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 154, 74, 0.25);
}

.form-submit {
  display: flex;
  justify-content: flex-start;
}

.form-submit .button {
  width: 100%;
  justify-content: center;
}

@media (min-width: 36rem) {
  .form-submit .button {
    width: auto;
  }
}



