/* ═══ style.css — Rich Devenport Portfolio ═══ */

/* ── Self-hosted Inter ── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── CSS Custom Properties ── */
:root {
  --accent: #c45a1a;
  --accent-light: #e8743a;
  --text-muted: #737373;
  --text-subtle: #525252;
  --text-hint: #a3a3a3;
  --border: #e5e5e5;
  --border-focus: #a3a3a3;
  --surface: #fafafa;
  --surface-hover: #f5f5f5;
  --surface-active: #e5e5e5;
  --bg-dark: #0a0a0a;
  --bg-dark-hover: #262626;
  --status-available: #22c55e;
  --status-busy: #f59e0b;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100dvh; width: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  cursor: default; background: #fff; color: #000;
  font-size: 16px; line-height: 1.5; position: relative;
  transition: opacity 0.3s ease;
}
body.page-transitioning { opacity: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* ── Scroll Progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); width: 0%; z-index: 10000;
  transition: opacity 0.3s ease;
}

/* ── Custom Cursor ── */
.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px;
  background: #000; border-radius: 50%; pointer-events: none;
  z-index: 9999; mix-blend-mode: difference; transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px;
  border: 1.5px solid rgba(0,0,0,0.25); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  transform: translate(-50%, -50%);
}
.cursor-ring.hovering { width: 56px; height: 56px; border-color: rgba(0,0,0,0.5); }

/* ── Layout ── */
.site-wrapper { min-height: 100vh; overflow-x: hidden; }

.sidebar {
  width: 447px; margin: 0 16px; padding-top: 16px; padding-bottom: 96px;
  display: flex; flex-direction: column; gap: 32px;
}
.main-content { padding: 0 4px; }

@media (min-width: 960px) {
  html, body { overflow: hidden; height: 100vh; }
  .sidebar {
    position: fixed; top: 16px; left: 16px; margin: 0;
    height: calc(100vh - 32px); overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none; padding: 0;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .main-content {
    margin-left: auto; margin-right: 0; margin-top: 0;
    width: 66vw; padding: 0;
    height: 100vh; overflow-y: auto; overflow-x: hidden;
  }
  .site-footer { margin-left: 0; }
}

/* ── Navigation ── */
.nav-bar { display: flex; align-items: center; gap: 24px; }
.nav-logo { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.nav-links a { color: var(--text-muted); transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: #000; }

/* ── Hamburger (mobile) ── */
.hamburger {
  display: none; width: 24px; height: 18px; position: relative;
  background: none; border: none; cursor: pointer;
  margin-left: auto; padding: 0; flex-shrink: 0;
}
.hamburger span {
  display: block; position: absolute; left: 0; width: 100%; height: 2px;
  background: #000; transition: all 0.3s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { top: 16px; }
.hamburger.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 900;
  background: #000; color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px; font-size: 28px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: #fff; opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(8px);
}
.mobile-menu.open a { transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu a:hover, .mobile-menu a.active { opacity: 1; }

/* ── Sidebar Panels ── */
.sidebar-page {
  display: none; flex-direction: column; gap: 20px;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex: 1;
}
.sidebar-page.active { display: flex; }
.sidebar-page.visible { opacity: 1; transform: translateY(0); }

/* ── Logo Draw Animation ── */
.site-logo { width: 130px; height: auto; }
.site-logo path {
  fill: none; stroke: #000; stroke-width: 1.5;
  stroke-dasharray: var(--path-len);
  stroke-dashoffset: var(--path-len);
}
.site-logo.drawn path { fill: #000; stroke: none; transition: fill 0.3s ease; }

/* ── Logo Draw — vanilla JS stagger (no GSAP) ── */
@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}

/* ── Sidebar Typography ── */
.role-title {
  font-size: 14px; color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 500;
}
.headline {
  font-size: 26px; line-height: 1.2; font-weight: 500;
  letter-spacing: -0.01em; text-wrap: balance; color: #000;
}
.bio { font-size: 16px; color: #000; text-wrap: pretty; line-height: 1.6; }
.cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pricing-note { font-size: 16px; color: var(--text-muted); }
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 8px 32px; font-size: 16px; color: var(--text-muted);
  max-width: 800px; margin: 0 auto;
}
.sidebar-services {
  grid-template-columns: 1fr 1fr; gap: 4px 24px;
  margin-top: auto; margin-left: 0; margin-right: 0;
  padding-top: 32px; max-width: none;
}

/* ── Availability Dot ── */
.status-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 6px; position: relative; top: -0.5px;
}
.status-dot.available {
  background: var(--status-available);
  box-shadow: 0 0 0 0 rgba(34,197,94,0.5);
  animation: pulse-green 2s ease infinite;
}
.status-dot.booked {
  background: var(--status-busy);
  animation: pulse-amber 2.5s ease infinite;
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50% { box-shadow: 0 0 0 5px rgba(245,158,11,0); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; height: 32px; padding: 0 12px;
  font-size: 14px; white-space: nowrap; border: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
  user-select: none; cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--bg-dark); color: #fff; }
.btn-primary:hover { background: var(--bg-dark-hover); }
.magnetic { transition: transform 0.2s ease; }

/* ── WhatsApp ── */
.whatsapp-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-subtle); transition: color 0.2s ease;
}
.whatsapp-link:hover { color: #25d366; }
.whatsapp-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Process ── */
.process-step { margin-bottom: 28px; }
.step-number { font-size: 14px; color: var(--accent); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.step-body { font-size: 16px; color: #000; line-height: 1.6; }
.step-body + .step-body { margin-top: 12px; }

/* ── About ── */
.about-layout {
  display: grid; grid-template-columns: 1fr 480px; gap: 48px;
  max-width: 1060px; width: 100%; align-items: start;
}
.about-col-text { min-width: 0; }
.about-col-image { position: sticky; top: 32px; }
.about-photo {
  width: 100%; border-radius: 8px; display: block;
  aspect-ratio: 3/4; object-fit: cover;
}
.about-text { font-size: 16px; line-height: 1.7; color: #000; }
.about-text p + p { margin-top: 16px; }
.about-roles-heading {
  font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin: 32px 0 16px; font-weight: 500;
}
.about-roles { display: flex; flex-direction: column; gap: 20px; }
.about-role { padding-left: 16px; border-left: 2px solid var(--border); }
.role-label { font-size: 16px; font-weight: 500; color: #000; margin-bottom: 4px; }
.role-desc { font-size: 16px; line-height: 1.6; color: var(--text-subtle); }
.about-availability { font-size: 16px; line-height: 1.6; color: var(--text-subtle); }
.about-signature { margin-top: 24px; font-size: 16px; color: var(--text-subtle); }
.fullscreen-cta { margin-top: 32px; }

/* ── Logo Carousel ── */
.carousel-wrapper {
  position: relative; overflow: hidden;
  padding: 24px 0; margin-bottom: 4px;
  background: var(--surface); border-radius: 4px;
}
.carousel-track {
  display: flex; gap: 56px; width: max-content;
  will-change: transform;
}
.carousel-item {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  height: 28px; min-width: 100px;
}
.carousel-item img { max-height: 28px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.carousel-wrapper::before, .carousel-wrapper::after { display: none; }

/* ── Portfolio Grid ── */
.portfolio-grid { display: flex; flex-direction: column; gap: 4px; }
.portfolio-item {
  position: relative; overflow: hidden; border-radius: 2px;
  background: #f0f0f0; aspect-ratio: 4 / 3;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.portfolio-item.visible { opacity: 1; transform: translateY(0); }
.portfolio-item-inner { width: 100%; height: 100%; transition: transform 0.4s ease; overflow: hidden; }
.portfolio-item:hover .portfolio-item-inner { transform: scale(1.03); }
.portfolio-item-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-1 { background: linear-gradient(135deg, #e8e4df, #d4cfc8); }
.ph-2 { background: linear-gradient(135deg, #dfe8e4, #c8d4cf); }
.ph-3 { background: linear-gradient(135deg, #e4dfe8, #cfc8d4); }
.ph-4 { background: linear-gradient(135deg, #e8dfe4, #d4c8cf); }
.ph-5 { background: linear-gradient(135deg, #e4e8df, #cfd4c8); }
.ph-6 { background: linear-gradient(135deg, #dfe4e8, #c8cfd4); }
.ph-7 { background: linear-gradient(135deg, #e8e8df, #d4d4c8); }
.ph-8 { background: linear-gradient(135deg, #e3e0e8, #cdc8d4); }

/* ── Portfolio Overlay ── */
.portfolio-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.75);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease;
  color: #fff; text-align: center; padding: 32px;
}
.portfolio-item:hover .portfolio-overlay,
.portfolio-item.tapped .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 {
  font-size: 20px; font-weight: 500; margin-bottom: 12px;
  letter-spacing: -0.01em;
  transform: translateY(8px); transition: transform 0.35s ease;
}
.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item.tapped .portfolio-overlay h3 { transform: translateY(0); }
.portfolio-overlay .case-value {
  font-size: 16px; line-height: 1.6; max-width: 60%;
  color: rgba(255,255,255,0.9);
  transform: translateY(10px); opacity: 0;
  transition: transform 0.4s ease 0.08s, opacity 0.4s ease 0.08s;
}
.portfolio-item:hover .case-value,
.portfolio-item.tapped .case-value { transform: translateY(0); opacity: 1; }

/* ── Tap prompt pill (mobile only) ── */
.tap-prompt {
  display: none; position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255,255,255,0.7); font-size: 12px; letter-spacing: 0.03em;
  padding: 5px 12px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.15);
  pointer-events: none; transition: opacity 0.3s ease;
}
.portfolio-item.tapped .tap-prompt { opacity: 0; }
.dark-prompt .tap-prompt {
  background: rgba(0,0,0,0.45); border-color: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.95);
}
@media (min-width: 960px) { .tap-prompt { display: none !important; } }

/* ── Scroll Cue ── */
.scroll-cue {
  position: fixed; bottom: 24px; z-index: 100;
  right: calc(4px + 33vw); transform: translateX(50%);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 16px; border-radius: 9999px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 500; letter-spacing: 0.03em;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 12px rgba(196,90,26,0.3);
  animation: scrollCueBounce 2s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
.scroll-cue svg {
  width: 14px; height: 14px; flex-shrink: 0;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.scroll-cue.faded { opacity: 0; }
@keyframes scrollCueBounce {
  0%, 100% { transform: translateX(50%) translateY(0); }
  50% { transform: translateX(50%) translateY(6px); }
}

/* ── Scroll Reveal ── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Contact Modal ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; width: 100%; max-width: 500px;
  box-shadow: 0 24px 48px -12px rgba(0,0,0,0.08);
  transform: translateY(12px) scale(0.98); transition: transform 0.3s ease;
}
.modal-backdrop.open .modal-panel { transform: translateY(0) scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h2 { font-size: 18px; font-weight: 500; }
.modal-close {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-hover); border: none; cursor: pointer;
  font-size: 16px; color: var(--text-muted); transition: background 0.2s ease;
}
.modal-close:hover { background: var(--surface-active); }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: 14px;
  outline: none; transition: border-color 0.2s ease;
  background: var(--surface); color: #000;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--border-focus); }
.form-group select {
  width: 100%; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 6px; font-family: inherit; font-size: 14px;
  outline: none; transition: border-color 0.2s ease;
  background: var(--surface); color: #000; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.form-group select:focus { border-color: var(--border-focus); }
.form-hint { font-size: 11px; color: var(--text-hint); margin-top: -6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-submit {
  width: 100%; height: 36px; border-radius: 9999px;
  background: var(--bg-dark); color: #fff; border: none;
  font-size: 14px; cursor: pointer; transition: background 0.2s ease;
}
.form-submit:hover { background: var(--bg-dark-hover); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-submit-alt {
  background: #fff; color: #000; border: 1px solid var(--border);
  margin-top: 8px;
}
.form-submit-alt:hover { background: var(--surface); }
.form-error {
  font-size: 13px; color: #c0392b; margin-top: 8px;
  padding: 8px 10px; background: #fdf0ef; border-radius: 6px;
  display: none;
}
.form-error.visible { display: block; }

/* ── Fullscreen Pages ── */
.fullscreen-page {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: #fff; flex-direction: column;
  opacity: 0; transition: opacity 0.4s ease;
}
.fullscreen-page.active { display: flex; }
.fullscreen-page.visible { opacity: 1; }
.fullscreen-nav {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 16px 0 16px; flex-shrink: 0;
}
.fullscreen-body {
  flex: 1; display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 32px 64px; overflow-y: auto;
}
.fullscreen-inner {
  max-width: 520px; width: 100%;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.fullscreen-page.visible .fullscreen-inner { opacity: 1; transform: translateY(0); }

/* ── Form Divider ── */
.form-divider {
  text-align: center; font-size: 12px; color: var(--text-hint);
  margin: 8px 0; line-height: 1;
}

/* ── Desktop Only ── */
.desktop-only { display: grid; }

/* ── Booking Calendar ── */
.modal-panel-wide { max-width: 500px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-month { font-size: 15px; font-weight: 500; }
.cal-nav {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-hover); border: none; cursor: pointer;
  font-size: 18px; color: var(--text-subtle); transition: background 0.2s ease;
}
.cal-nav:hover { background: var(--surface-active); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-day-label {
  font-size: 11px; color: var(--text-hint); text-transform: uppercase;
  padding: 4px 0; font-weight: 500;
}
.cal-empty { padding: 8px; }
.cal-day {
  padding: 8px 0; border-radius: 8px;
  font-size: 13px; border: none; cursor: pointer;
  background: none; color: #000; transition: all 0.15s ease;
}
.cal-day:hover:not(.cal-disabled) { background: var(--surface-hover); }
.cal-day.cal-disabled { color: #d4d4d4; cursor: default; }
.cal-day.cal-selected { background: var(--accent); color: #fff; }
.cal-slots { margin-top: 20px; }
.cal-slots-label { font-size: 13px; font-weight: 500; margin-bottom: 10px; color: var(--text-subtle); }
.cal-slots-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.cal-slot {
  padding: 6px 12px; border-radius: 9999px; font-size: 13px;
  border: 1px solid var(--border); background: #fff; color: #000;
  cursor: pointer; transition: all 0.15s ease;
}
.cal-slot:hover { border-color: var(--accent); color: var(--accent); }
.cal-slot.cal-slot-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-confirm { margin-top: 12px; }
.cal-booking-details { margin-top: 16px; }
.cal-booking-details .form-row { margin-bottom: 8px; }
.cal-loading { font-size: 13px; color: var(--text-hint); padding: 8px 0; }
.cal-confirmed { text-align: center; padding: 32px 0; }
.cal-confirmed-title { font-size: 18px; font-weight: 500; margin-bottom: 8px; color: var(--accent); }
.cal-confirmed p { font-size: 14px; color: var(--text-subtle); }

/* ── Portfolio Overlay Accent ── */
.case-study .case-label { color: var(--accent-light); }

/* ── Success Celebration ── */
.success-overlay {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.success-overlay.open { opacity: 1; pointer-events: auto; }
.success-card {
  position: relative; z-index: 2;
  background: #fff; border-radius: 16px;
  padding: 40px 32px; text-align: center;
  max-width: 380px; width: 90%;
  box-shadow: 0 32px 64px -16px rgba(0,0,0,0.2);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.success-overlay.open .success-card { transform: translateY(0) scale(1); }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600; margin: 0 auto 16px;
}
.success-title { font-size: 20px; font-weight: 500; margin-bottom: 8px; color: #000; }
.success-body { font-size: 14px; color: var(--text-subtle); line-height: 1.6; margin-bottom: 20px; }
.success-close { min-width: 120px; height: 36px; }

/* ── Keyboard Hint ── */
.keyboard-hint {
  position: fixed; bottom: 16px; right: 16px;
  font-size: 11px; color: var(--text-hint);
  opacity: 0; animation: hintFade 4s ease 2s forwards;
  pointer-events: none; z-index: 100;
}
.keyboard-hint kbd {
  display: inline-block; padding: 1px 5px;
  border: 1px solid #d4d4d4; border-radius: 3px;
  font-family: inherit; font-size: 10px; background: var(--surface);
}
@keyframes hintFade {
  0% { opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; }
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-dark); color: var(--text-hint); padding: 32px 24px;
  font-size: 14px; line-height: 1.6;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-legal { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-hint); transition: color 0.2s ease; font-size: 14px; }
.footer-links a:hover { color: #fff; }

/* ═══ Responsive ═══ */

/* ── Sticky Mobile CTA ── */
.sticky-cta {
  display: none; position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%); z-index: 800;
  background: var(--accent); color: #fff;
  padding: 10px 24px; border-radius: 9999px;
  font-size: 16px; font-weight: 500;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(196,90,26,0.35);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap; overflow: hidden;
}
.sticky-cta:hover { background: var(--accent-light); }
.sticky-cta:active { transform: translateX(-50%) scale(0.97); }
.sticky-cta .status-dot { margin-right: 6px; }
.sticky-cta .cta-label { display: inline-flex; align-items: center; gap: 4px; }
.sticky-cta .cta-chevron {
  width: 14px; height: 14px; flex-shrink: 0;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

@media (max-width: 959px) {
  .sidebar { width: 100%; max-width: 100%; padding: 16px; padding-bottom: 24px; margin: 0; gap: 20px; }
  .sidebar-services { margin-top: 8px; padding-top: 0; }
  .main-content { width: 100%; margin: 0; padding: 0; overflow-x: hidden; }
  .portfolio-overlay { padding: 24px 16px; text-align: left; align-items: flex-start; justify-content: flex-end; }
  .portfolio-overlay .case-value { max-width: 100%; }
  .tap-prompt { display: block; }
  .portfolio-grid { padding: 0; margin: 0; }
  .portfolio-item { border-radius: 0; width: 100%; }
  .services-bar { padding: 32px 16px; margin: 0; }
  .carousel-wrapper { margin: 0; border-radius: 0; }
  .cursor-dot, .cursor-ring { display: none; }
  .keyboard-hint { display: none; }
  .nav-links { display: none; }
  .hamburger { display: block; z-index: 950; }
  .nav-bar { gap: 0; justify-content: space-between; }
  .fullscreen-nav .nav-links { display: flex; }
  .fullscreen-nav .hamburger { display: none; }
  .desktop-only { display: none; }
  .sticky-cta { display: block; }
  .scroll-cue { display: none; }
  .fullscreen-body { align-items: flex-start; padding: 24px 16px 80px; }
  .fullscreen-inner { max-width: 100%; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-col-image { order: -1; position: static; }
  .about-photo { max-height: 360px; aspect-ratio: auto; width: 100%; border-radius: 8px; }
  .headline { font-size: 24px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 4px 24px; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .footer-links { gap: 16px; }
  .site-footer { padding-bottom: 80px; }
}

@media (max-width: 480px) {
  .headline { font-size: 22px; }
  .carousel-track { gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-panel { padding: 24px 16px; margin: 0 12px; }
  .cal-grid { gap: 2px; }
  .cal-day { padding: 6px 0; font-size: 14px; }
}
