/*
 * ============================================================
 * Browns Digital — Proprietary Software
 * ============================================================
 * Copyright (c) 2026 Robert Brown / Browns Digital. All rights reserved.
 *
 * CONFIDENTIAL — NOT FOR DISTRIBUTION
 *
 * Unauthorised reproduction, distribution, modification, or
 * reverse engineering of this material is strictly prohibited.
 * No licence is granted except by express written agreement.
 *
 * THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
 * Governing Law: Republic of South Africa | contact@brownsdigital.org
 * ============================================================
 */
#panel-inner img{
  cursor: default;
  pointer-events: none;
}

#modal-img{
  max-width: min(96vw, 1200px);
  max-height: min(88vh, 88dvh);

  object-fit: contain;

  box-shadow:
    0 40px 120px rgba(0,0,0,.5),
    0 0 80px rgba(255,255,255,.05);

  cursor: default;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

#image-modal::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle, transparent 60%, rgba(0,0,0,0.6));
  pointer-events:none;
}

#image-modal{
  transition: opacity 0.25s ease, visibility 0.25s ease;
  position: fixed;
  inset: 0;
  z-index: 10400;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#image-modal.is-open{
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#image-modal[hidden]:not(.is-open),
#panel-overlay[hidden]:not(.is-open){
  display: none !important;
}

#panel-overlay.is-open{
  display: flex !important;
}

#close-btn,
#prev-btn,
#next-btn {
  z-index: 10401;
}

#image-indicator {
  z-index: 10401;
}

#image-wrapper{
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  min-height: 0;

  padding: 0 80px;
  box-sizing: border-box;
}

.image-modal-nav,
.image-modal-close{
  position:absolute;
  z-index:10401;
  border:0;
  background:transparent;
  color:#fff;
  cursor:pointer;
  opacity:.75;
  transition:opacity .2s ease;
  font-family:inherit;
  line-height:1;
  padding:8px;
  -webkit-tap-highlight-color:transparent;
}

.image-modal-nav:hover,
.image-modal-close:hover{
  opacity:1;
}

.image-modal-nav{
  top:50%;
  transform:translateY(-50%);
  font-size:2.5rem;
}

.image-modal-nav--prev{ left:20px; }
.image-modal-nav--next{ right:20px; }

.image-modal-close{
  top:24px;
  right:24px;
  font-size:1.5rem;
}

.project-select.error .project-selected {
  border-color: rgba(220,38,38,.5);
  box-shadow: 0 0 0 4px rgba(220,38,38,.08);
}

.panel-link{
  color:inherit;
  font-weight:500;
  text-decoration:underline;
  text-decoration-color:rgba(0,0,0,0.18);
  text-underline-offset:3px;
  transition:text-decoration-color .2s ease, opacity .2s ease;
  margin-top: -40px;
  position: relative;
z-index: 5;
}

.panel-link:hover{
  text-decoration-color:rgba(0,0,0,0.45);
  opacity:.85;
}

/* =========================================================
   ROOT VARIABLES
========================================================= */

:root{
  --muted:#6e6e73;
  --ease:cubic-bezier(.22,.61,.36,1);
  --accent:#1d1d1f;
}

::selection{
  background:rgba(0,113,227,0.18);
  color:#1d1d1f;
}

/* =========================================================
   BACKGROUND SYSTEM
========================================================= */

html{
  overflow-x: clip;
}

body{
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  overflow-x: clip;

  background:
    radial-gradient(1400px 800px at 0% 0%, #ffffff 0%, transparent 55%),
    radial-gradient(1200px 800px at 100% 0%, #edf0f8 0%, transparent 60%),
    radial-gradient(1200px 900px at 50% 120%, #e7eaf4 0%, transparent 65%),
    linear-gradient(180deg, #fafbff 0%, #f1f3f9 50%, #e9edf6 100%);

  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;

  /* Push footer to natural bottom of viewport on every page */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.panel-scroll {
  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain; 

  scrollbar-width: none; /* Firefox */
}

.panel-scroll::-webkit-scrollbar {
  display: none; /* Chrome */
}

/* =========================================================
   LIQUID GLASS MATERIAL
========================================================= */

.liquid{
  position:relative;
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(12px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter:blur(12px) saturate(180%) brightness(1.05);
  border:1px solid rgba(255,255,255,.7);
  border-radius:999px;
  isolation:isolate;

  box-shadow:
    0 30px 70px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -2px 8px rgba(0,0,0,.05);
}

/* top diffusion layer */
.liquid::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.95),
      rgba(255,255,255,.4) 40%,
      transparent 70%
    );
  opacity:.35;
  pointer-events:none;
}

/* specular highlight */
.liquid::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(
      120% 80% at 50% 0%,
      rgba(255,255,255,.9),
      transparent 72%
    );
  mix-blend-mode:screen;
  opacity:.5;
  pointer-events:none;
}

/* =========================================================
   NAVIGATION (SLIM RESTORED)
========================================================= */

.nav-fixed{
  position:fixed;
  top:18px;
  left:0;
  right:0;
  z-index:1000;
  display:flex;
  justify-content:center;
  padding:0 12px;
  padding-left:max(12px, env(safe-area-inset-left));
  padding-right:max(12px, env(safe-area-inset-right));
  box-sizing:border-box;
  pointer-events:none;
}

.nav-container{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  max-width:100%;
  pointer-events:auto;
  box-sizing:border-box;
}

.nav-brand{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  align-items:center;
  align-self:center;
  gap:8px;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  padding:0 10px 0 4px;
  margin:0;
  border-right:1px solid rgba(255,255,255,.45);
  white-space:nowrap;
  flex-shrink:0;
}

.nav-brand__text{
  line-height:1.2;
  display:inline-block;
}

.nav-brand__mark{
  width:22px;
  height:22px;
  flex:0 0 22px;
  flex-shrink:0;
  display:block;
  object-fit:contain;
  object-position:center;
  margin:0;
}

.bd-app__loading,
.bd-app__error{
  text-align:center;
  padding:4rem 1.5rem;
  color:var(--muted);
  font-size:15px;
}

.bd-app__error a{
  color:inherit;
  text-decoration:underline;
}

.project-consent{
  margin-top:-20px;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  color:#374151;
}

.project-consent input[type="checkbox"]{
  margin-top:3px;
  width:16px;
  height:16px;
  accent-color:inherit;
  cursor:pointer;
  flex-shrink:0;
}

#image-modal{
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(20px);
}

.nav-tabs{
  position:relative;
  display:flex;
  align-items:center;
  gap:3px;
  min-height:0;
}

.nav-btn{
  padding:6px 12px;
  font-size:13px;
  line-height:1.25;
  font-weight:500;
  border-radius:999px;
  color:var(--muted);
  transition:color .3s ease;
  border:none;
  background:transparent;
  cursor:pointer;
  font-family:inherit;
  -webkit-appearance:none;
  appearance:none;
  box-shadow:none;
}

button.nav-btn{
  margin:0;
}

.nav-btn.active,
.nav-btn:hover{
  color:#000;
}

/* animated pill */
#pill{
  position:absolute;
  top:4px;
  left:6px;
  height:calc(100% - 8px);
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(20px);
  border-radius:999px;

  box-shadow:
    0 12px 28px rgba(0,0,0,.14),
    inset 0 1px 0 rgba(255,255,255,.95);

  transition:all .55s cubic-bezier(.16,1,.3,1);
  z-index:-1;
}

/* =========================================================
   PAGE SYSTEM
========================================================= */

.page{
  display:none;
  max-width:1100px;
  margin:0 auto;
  padding:125px 30px 120px;
}

.page > h2{
  font-size:34px;
  font-weight:700;
  letter-spacing:-0.035em;
  margin:0 0 16px 0;
  color:#111111;
}

.page-lead{
  font-size:19px;
  line-height:1.5;
  letter-spacing:-0.01em;
  color:#6e6e73;
  max-width:520px;
  margin:0 0 56px 0;
}

.page.active{
  display:block;
}

/* Home — stable layout (does not depend on Tailwind CDN) */
#home.page.active{
  text-align:center;
}

#home .home-cards{
  display:grid;
  grid-template-columns:1fr;
  gap:2rem;
  margin-top:5rem;
  text-align:left;
  width:100%;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}

@media (min-width:768px){
  #home .home-cards{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

#home.page.active > p{
  max-width:42rem;
  margin-left:auto;
  margin-right:auto;
}

#home.page.active:not(.is-entering) [data-reveal].is-revealed:not(.card):not(.bd-feature-card):not(.testimonial-card){
  opacity:1 !important;
  transform:none !important;
  visibility:visible !important;
}

#home.page.active:not(.is-entering) [data-reveal].is-revealed.card,
#home.page.active:not(.is-entering) [data-reveal].is-revealed.bd-feature-card,
#home.page.active:not(.is-entering) [data-reveal].is-revealed.testimonial-card{
  opacity:1 !important;
  transform:translateZ(0) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) !important;
  visibility:visible !important;
}

/* Page grids — no Tailwind dependency */
.page-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:2rem;
  width:100%;
  margin-top:2.5rem;
}

.page-grid--2{
  grid-template-columns:1fr;
}

.page-grid--3{
  grid-template-columns:1fr;
}

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

  .page-grid--3{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

.card-stack{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  text-align:left;
  height:100%;
}

.card-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
}

/* Active SPA pages — content always visible & in normal flow */
#about.page.active,
#experience.page.active,
#examples.page.active{
  visibility:visible;
}

#about.page.active > *,
#experience.page.active > *,
#examples.page.active > *{
  visibility:visible;
}

#about.page.active:not(.is-entering):not(.is-exiting) .card,
#experience.page.active:not(.is-entering):not(.is-exiting) .card,
#examples.page.active:not(.is-entering):not(.is-exiting) .card,
#about.page.active:not(.is-entering):not(.is-exiting) .bd-feature-card,
#experience.page.active:not(.is-entering):not(.is-exiting) .bd-feature-card,
#examples.page.active:not(.is-entering):not(.is-exiting) .bd-feature-card,
#about.page.active:not(.is-entering):not(.is-exiting) .project-card,
#experience.page.active:not(.is-entering):not(.is-exiting) .project-card,
#examples.page.active:not(.is-entering):not(.is-exiting) .project-card,
#about.page.active:not(.is-entering):not(.is-exiting) .testimonial-card,
#experience.page.active:not(.is-entering):not(.is-exiting) .testimonial-card,
#examples.page.active:not(.is-entering):not(.is-exiting) .testimonial-card,
#about.page.active:not(.is-entering):not(.is-exiting) .compare-section,
#about.page.active:not(.is-entering):not(.is-exiting) .project-wrapper,
#home.page.active:not(.is-entering):not(.is-exiting) .hero-actions{
  opacity:1 !important;
  transform:translateZ(0) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) !important;
  visibility:visible !important;
}

#about.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed:not(.card):not(.bd-feature-card):not(.testimonial-card),
#experience.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed:not(.card):not(.bd-feature-card):not(.testimonial-card),
#examples.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed:not(.card):not(.bd-feature-card):not(.testimonial-card){
  opacity:1 !important;
  transform:none !important;
}

#about.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.card,
#about.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.bd-feature-card,
#about.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.testimonial-card,
#experience.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.card,
#experience.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.bd-feature-card,
#experience.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.testimonial-card,
#examples.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.card,
#examples.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.bd-feature-card,
#examples.page.active:not(.is-entering):not(.is-exiting) [data-reveal].is-revealed.testimonial-card{
  opacity:1 !important;
  transform:translateZ(0) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) !important;
}

.page.is-entering {
  pointer-events: none;
}

/* =========================================================
   TYPOGRAPHY
========================================================= */

.hero-title{
  font-size:39px;
  font-weight:600;
  line-height:1.12;
  letter-spacing:-0.02em;
  color:#1d1d1f;
  max-width:720px;
  margin:0 auto 24px;
}

@media (max-width:768px){
  .hero-title{
    font-size:32px;
  }
}

.hero-title span{
  display:block;
  font-weight:800;
  color:#111111;
}

h2{
  font-size:42px;
  font-weight:600;
  letter-spacing:-0.02em;
}

p{
  font-weight:400;
  font-size:20px;
  line-height:1.8;
  max-width:720px;
  color:#6e6e73;
}

/* =========================================================
   CARDS - LIQUID GLASS & MOTION
========================================================= */

.card-grid{
  perspective:1600px;
}

.testimonials-grid,
.legal-cards,
.tools-picker,
.tools-platform-grid{
  perspective:1600px;
}

.card{
  --rx:0deg;
  --ry:0deg;
  --lift:0px;

  position:relative;
  border-radius:42px;
  padding:40px;
  cursor:pointer;

  transform-style:preserve-3d;
  will-change:transform;
  backface-visibility:hidden;

  transform:
    translateZ(0)
    rotateX(var(--rx))
    rotateY(var(--ry))
    translateY(var(--lift));

  transition:
    box-shadow .4s cubic-bezier(.16,1,.3,1);

  box-shadow:
    0 30px 60px rgba(15,23,42,.12),
    0 8px 20px rgba(15,23,42,.08),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.card:hover{
  will-change:transform;
}

/* edge highlight / glass rim */
.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.95),
      rgba(255,255,255,.2) 45%,
      transparent 70%
    );
  mix-blend-mode:screen;
  opacity:.45;
  pointer-events:none;
  transition:opacity .35s var(--ease);
}

.card:hover::after{
  opacity:.7;
}

.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    radial-gradient(
      600px circle at var(--x, 50%) var(--y, 50%),
      rgba(255,255,255,.6),
      transparent 40%
    );
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}

.card:hover::before{
  opacity:.7;
}

.card h3{
  font-size:22px;
  font-weight:600;
  letter-spacing:-0.01em;
  color:#1d1d1f;
  margin-bottom:6px;
}

.card p{
  font-size:17px;
  line-height:1.6;
  color:#6e6e73;
}

.card:hover{
  --lift: -12px;

  box-shadow:
    0 80px 160px rgba(15,23,42,.22),
    0 30px 60px rgba(15,23,42,.14),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.bd-feature-card,
.project-card,
.testimonial-card,
.tools-picker-card,
.tools-platform-card,
.panel-card,
.legal-card{
  --rx:0deg;
  --ry:0deg;
  --lift:0px;

  transform-style:preserve-3d;
  backface-visibility:hidden;

  transform:
    translateZ(0)
    rotateX(var(--rx))
    rotateY(var(--ry))
    translateY(var(--lift));
}

.bd-feature-card:hover,
.project-card:hover,
.testimonial-card:hover,
.tools-picker-card:hover,
.tools-platform-card:hover,
.panel-card:hover,
.legal-card:hover{
  --lift:-12px;
}

/* =============================
   START PROJECT SECTION
============================= */

.project-wrapper{
  margin-top:140px;
}

.project-card{
  border-radius:42px;
  padding:70px 80px;
  background:rgba(255,255,255,.6);
  backdrop-filter:blur(18px) saturate(180%);
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 60px 140px rgba(15,23,42,.18);

  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:90px;
}

.project-left h2{
  font-size:38px;
  margin-bottom:20px;
}

.project-left p{
  font-size:16px;
  margin-bottom:30px;
}

.project-contact{
  margin-bottom:20px;
  font-size:14px;
  color:#4b5563;
}

.project-socials {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.project-socials a {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-socials svg {
  width: 24px;
  height: 24px;
}

.project-socials svg path {
  fill: #1f2937;
  transition: fill 0.2s ease;
}

.project-socials a:hover svg path {
  fill: #1d1d1f;
}

.project-socials a:first-child {
  transform: scale(1.1);
}

.project-form{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.project-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
}

.project-form label{
  font-size:12px;
  color:#6b7280;
  margin-bottom:8px;
  display:block;
}

.project-form input,
.project-form textarea{
  width:100%;
  padding:16px 20px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.85);
  font-size:14px;
  outline:none;
}

.project-form textarea{
  min-height:140px;
  resize:none;
}

/* DROPDOWN */
.project-select{
  position:relative;
  cursor:pointer;
}

.project-selected{
  padding:16px 20px;
  border-radius:18px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(255,255,255,.85);
}

.project-options{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:100%;
  border-radius:18px;
  background:white;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 20px 50px rgba(0,0,0,.1);
  display:none;
  z-index:10000;
}

.project-option{
  padding:14px 18px;
  cursor:pointer;
}

.project-option:hover{
  background:#f3f4f6;
}

.project-select.open .project-options{
  display:block;
}

.project-btn{
  position:relative;
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,.8);
  background:
  linear-gradient(
    180deg,
    rgba(255,255,255,.85),
    rgba(255,255,255,.65)
  );
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  color:#111827;
  font-weight:500;
  cursor:pointer;
  transition:.35s var(--ease);
  box-shadow:
    0 20px 50px rgba(15,23,42,.15),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.project-btn:hover{
  transform:translateY(-4px);
  box-shadow:
    0 30px 80px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.pricing-highlight{
  background: rgba(255,255,255,0.45);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 6px rgba(0,0,0,0.05),
    0 8px 24px rgba(15,23,42,0.12);

  border-left: 2px solid rgba(255,255,255,0.6);
  border-right: 2px solid rgba(255,255,255,0.6);

  font-weight: 600;
  color: #111827;

  transition: all .25s ease;
}

/* Email highlight */

.project-contact{
  position:relative;
  margin-bottom:20px;
}

.project-email{
  background: rgba(53,92,255,.12);
  color: #111827;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15.5px; /* increased */
  letter-spacing: -0.01em;
  border: 1px solid rgba(53,92,255,.25);
  cursor: pointer;
  transition: .25s ease;

  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.project-email:hover{
  background:rgba(53,92,255,.2);
}

.copy-toast{
  position:absolute;
  top:-32px;
  left:0;
  font-size:12px;
  background:#111827;
  color:white;
  padding:6px 10px;
  border-radius:6px;
  opacity:0;
  transform:translateY(6px);
  transition:.2s ease;
  pointer-events:none;
}

.copy-toast.show{
  opacity:1;
  transform:translateY(0);
}

.hero-cta{
  position:relative;
  padding:16px 30px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  background:rgba(255,255,255,.55);
  backdrop-filter:blur(14px) saturate(160%);
  -webkit-backdrop-filter:blur(14px) saturate(160%);
  color:#111827;
  font-weight:500;
  font-size:15px;
  cursor:pointer;
  transition:all .35s var(--ease);
  box-shadow:
    0 20px 50px rgba(15,23,42,.15),
    inset 0 1px 0 rgba(255,255,255,.9);
  overflow:hidden;
}

.hero-cta:hover{
  transform:translateY(-4px);
  box-shadow:
    0 30px 80px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.hero-glow{
  position:fixed;
  top:-20%;
  left:50%;
  transform:translateX(-50%);
  width:900px;
  height:900px;
  background:radial-gradient(circle,
    rgba(53,92,255,.25),
    rgba(53,92,255,.08) 40%,
    transparent 65%);
  filter:blur(24px);
  animation:floatGlow 18s ease-in-out infinite alternate;
  pointer-events:none;
  z-index:-1;
}

@keyframes floatGlow{
  0%{ transform:translateX(-50%) translateY(0px); }
  100%{ transform:translateX(-50%) translateY(40px); }
}

.form-status{
  margin-top:12px;
  font-size:14px;
  opacity:0;
  transform:translateY(6px);
  transition:.3s ease;
}

.form-status.success{
  color:#16a34a;
  opacity:1;
  transform:translateY(0);
}

.form-status.error{
  color:#dc2626;
  opacity:1;
  transform:translateY(0);
}

.project-form input:focus,
.project-form textarea:focus{
  border-color:rgba(53,92,255,.6);
  box-shadow:0 0 0 4px rgba(53,92,255,.1);
}

/* =========================================
   FORM FIELD ERROR STATE (GLASS STYLE)
========================================= */

.field-error {
  position: relative;
  margin-top: 8px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(220,38,38,.08);
  color: #b91c1c;
  border: 1px solid rgba(220,38,38,.25);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(6px);
  transition: .25s ease;
}

.field-error.show {
  opacity: 1;
  transform: translateY(0);
}

.project-form input.error,
.project-form textarea.error {
  border-color: rgba(220,38,38,.5);
  box-shadow: 0 0 0 4px rgba(220,38,38,.08);
}

/* =========================================================
   MOBILE ONLY OVERRIDES (DO NOT TOUCH DESKTOP)
========================================================= */

@media (max-width: 768px){

  /* ---------- NAV — matches desktop pill style, auto-width centred --------- */

  .nav-fixed{
    top:12px;
    left:0;
    right:0;
    width:100%;
    transform:none;
    padding:0 12px;
    padding-left:max(12px, env(safe-area-inset-left));
    padding-right:max(12px, env(safe-area-inset-right));
    justify-content:center;
    box-sizing:border-box;
  }

  .nav-brand{
    display:flex;
    padding:0 10px 0 4px;
    border-right:1px solid rgba(255,255,255,.45);
    flex-shrink:0;
  }

  .nav-brand__text{
    display:none;
  }

  .nav-container{
    width:auto;
    max-width:calc(100vw - 24px);
    margin:0 auto;
    padding:5px 10px;
    justify-content:center;
    flex-shrink:1;
  }

  .nav-tabs{
    flex:0 1 auto;
    justify-content:center;
    overflow-x:visible;
    flex-wrap:nowrap;
    gap:2px;
  }

  .nav-btn{
    padding:6px 9px;
    font-size:12px;
    flex-shrink:0;
    white-space:nowrap;
  }

  .nav-divider{
    flex-shrink:0;
  }

  #pill{
    display:block;
    transition:left 0.3s cubic-bezier(0.22,1,0.36,1), width 0.3s cubic-bezier(0.22,1,0.36,1) !important;
  }

  /* ---------- PAGE SPACING ---------- */

  .page{
    padding:90px 20px 60px;
    width:100%;
    max-width:100%;
    margin-left:auto;
    margin-right:auto;
    box-sizing:border-box;
  }

  .page.active > h2,
  .page.active > .page-lead{
    text-align:center;
    margin-left:auto;
    margin-right:auto;
  }

  .page.active > .page-lead{
    max-width:36rem;
  }

  .page.active .card-grid,
  .page.active > .grid,
  .page.active .compare-section,
  .page.active .project-wrapper,
  .page.active .bd-feature-card,
  .page.active .hero-actions{
    margin-left:auto;
    margin-right:auto;
    width:100%;
    max-width:100%;
  }

  #panel-inner .grid{
    margin-left:auto;
    margin-right:auto;
  }

  /* panel + image modal: see MOBILE OVERRIDES at end of file */

  /* ---------- HERO ---------- */

  .hero-title{
    font-size:28px;
    line-height:1.2;
  }

  p{
    font-size:16px;
    line-height:1.6;
  }

  /* ---------- PROJECT SECTION ---------- */

  .project-card{
    grid-template-columns:1fr;
    padding:40px 24px;
    gap:40px;
  }

  .project-row{
    grid-template-columns:1fr;
  }

  /* ---------- GLOW (reduce intensity for mobile perf) ---------- */

  .hero-glow{
    width:700px;
    height:700px;
    filter:blur(28px);
  }

}

@media (max-width: 480px){

  .page{
    padding:80px 16px 50px;
  }

  .hero-title{
    font-size:24px;
  }

  .card{
    padding:24px;
    border-radius:28px;
  }

  .project-card{
    padding:28px 18px;
  }

}

/* PANEL SCROLLBAR */

#panel-overlay,
.panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 7rem 1rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.3) transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#panel-overlay.is-open,
.panel-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#panel-overlay:not(.is-open) .panel-card,
.panel-overlay:not(.is-open) .panel-card {
  visibility: hidden;
}

#panel-overlay .panel-card,
#panel-overlay .panel-scroll {
  width: min(95%, 56rem);
  max-height: 80vh;
  max-height: 80dvh;
  flex-shrink: 0;
}

body.panel-open .site-footer {
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#panel-overlay ::-webkit-scrollbar {
  width: 6px;
}

#panel-overlay ::-webkit-scrollbar-track {
  background: transparent;
}

#panel-overlay ::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
}

#panel-overlay ::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.4);
}

/* CORRECT TARGET */

.panel-scroll {
  overflow-y: auto;
  overflow-x: hidden;

  overscroll-behavior: contain;
/* @bd-origin:BD-DA5E-A6CA-CD28 */

  scrollbar-width: none; /* Firefox */
}

.panel-scroll::-webkit-scrollbar {
  display: none; /* Chrome */
}

.panel-scroll::after{
  content:"";
  position:absolute;
  top:16px;
  right:8px;
  width:3px;
  height:40px;
  border-radius:999px;
  background:rgba(0,0,0,0.2);
  opacity:.4;
  pointer-events:none;
}

body.no-scroll{
  overflow: hidden;
  height: 100vh;
}

/* =========================================================
   CLIENT PORTAL — nav link (sits inside nav-tabs, matches pill)
========================================================= */

/* Thin divider between tabs and portal link */
.nav-divider {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.45);
  margin: 0 2px;
  vertical-align: middle;
  align-self: center;
  flex-shrink: 0;
}

/* Portal link uses nav-btn base — just no underline */
.nav-portal,
.nav-tools {
  text-decoration: none;
}

/* =========================================================
   BROWNS DIGITAL FEATURED CARD — experience page
========================================================= */

.bd-feature-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 24px;
  flex-wrap: wrap;
}

.bd-feature-left {
  flex: 1;
  min-width: 0;
}

.bd-feature-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  color: #15803d;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.bd-feature-left h3 {
  font-size: 19px;
  font-weight: 600;
  color: #111;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.bd-feature-left p {
  font-size: 14px;
  color: #6e6e73;
  line-height: 1.55;
  margin: 0;
  max-width: none;
}

.bd-feature-card .hero-portal-btn {
  flex-shrink: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .bd-feature-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
    gap: 18px;
  }

  .bd-feature-card .hero-portal-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   MOBILE — hide portal btn text on very small screens
========================================================= */

@media (max-width: 500px) {
  .portal-btn { display: none; }
  .hero-actions { flex-direction: column; }
}

/* nav-portal-sep removed — using nav-divider span instead */

/* =========================================================
   HERO ACTIONS ROW + CLIENT PORTAL BUTTON (hero)
========================================================= */

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-portal-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  color: #111827;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all .35s cubic-bezier(.22,.61,.36,1);
  box-shadow:
    0 20px 50px rgba(15,23,42,.15),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.hero-portal-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 80px rgba(15,23,42,.22),
    inset 0 1px 0 rgba(255,255,255,.95);
}

/* =========================================================
   HERO EYEBROW — agency identifier
========================================================= */

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6e6e73;
  margin: 0 auto 20px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.75);
  box-shadow: 0 4px 14px rgba(15,23,42,0.08);
  max-width: none;
  line-height: 1;
}

/* Green live dot before the text */
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.6);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 5px 12px;
  }
  .nav-portal-sep { display: none; }

  .page-lead {
    font-size: 17px;
    margin-bottom: 44px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL BASE STATE
   (JS sets opacity:0/y:32 via GSAP, this prevents FOUC)
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal {
    opacity: 0;
    transform: translateY(32px);
  }
}

/* ═══════════════════════════════════════════════════════════════
   ENHANCED VISUAL POLISH
   ═══════════════════════════════════════════════════════════════ */

/* Smoother nav pill transition */
#pill {
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Hero glow pulse */
.hero-glow {
  animation: glowPulse 6s ease-in-out infinite alternate;
}
@keyframes glowPulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0.9; transform: scale(1.08); }
}

/* Card hover — tighter, snappier */
.card {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease !important;
}

/* Hero CTA button shimmer effect */
.hero-cta {
  position: relative;
  overflow: hidden;
}
.hero-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.hero-cta:hover::after {
  transform: translateX(100%);
}

/* Form focus glow */
.project-form input:focus,
.project-form textarea:focus,
.project-form select:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.4);
  outline: none;
}

/* Submit button pulse on hover */
.project-btn:not(:disabled) {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.project-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.project-btn:not(:disabled):active {
  transform: translateY(0);
}

/* Form success state */
.form-status.success {
  color: #15803d;
  background: rgba(21,128,61,0.08);
  border: 1px solid rgba(21,128,61,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
  font-weight: 500;
}
.form-status.error {
  color: #dc2626;
  background: rgba(220,38,38,0.06);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 8px;
}

/* =========================================================
   SITE FOOTER
========================================================= */

.site-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding: 32px 20px 28px;
}

.site-footer__card {
  background: rgba(255, 255, 255, 0.60);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 14px 28px 12px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, 0.05),
    0 1px 2px rgba(0, 0, 0, 0.04);
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  margin-bottom: 8px;
}

.site-footer__links a {
  font-size: 12px;
  font-weight: 500;
  color: #424245;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-footer__links a:hover {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.04);
}

.site-footer__sep {
  color: #aeaeb2;
  font-size: 12px;
  user-select: none;
}

.site-footer__text {
  font-size: 11.5px;
  color: #6e6e73;
  line-height: 1.5;
  margin: 0;
  opacity: 0.85;
}

/* Remove the padding-bottom override from previous version if present */
@media (max-width: 768px) {
  .site-footer {
    padding: 28px 16px 24px;
  }

  .site-footer__card {
    padding: 9px 18px;
    border-radius: 12px;
  }

  .site-footer__text {
    font-size: 11px;
  }
}

/* =========================================================
   LOW-POWER MODE (perf.js adds .low-power on <html>)
========================================================= */

html.low-power .hero-glow {
  display: none;
}

html.low-power .card,
html.low-power .bd-feature-card,
html.low-power .project-card,
html.low-power .testimonial-card,
html.low-power .tools-picker-card,
html.low-power .tools-platform-card,
html.low-power .panel-card,
html.low-power .legal-card,
html.low-power .site-footer__card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

html.low-power .card,
html.low-power .bd-feature-card,
html.low-power .project-card,
html.low-power .testimonial-card,
html.low-power .tools-picker-card,
html.low-power .tools-platform-card,
html.low-power .panel-card,
html.low-power .legal-card {
  transform: none !important;
  transition: box-shadow 0.2s ease !important;
}

html.low-power .card::before,
html.low-power .card::after {
  display: none;
}

html.low-power .card:hover {
  --lift: -4px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

html.low-power #pill {
  transition: left 0.2s ease, width 0.2s ease !important;
}

html.low-power .hero-cta::after {
  display: none;
}

html.low-power #image-modal {
  backdrop-filter: blur(8px) !important;
}

/* Focus visible — keyboard accessibility */
.nav-btn:focus-visible,
.hero-cta:focus-visible,
.hero-portal-btn:focus-visible,
.project-btn:focus-visible,
.card:focus-visible {
  outline: 2px solid rgba(0,0,0,0.25);
  outline-offset: 2px;
}

/* Legal nav brand link */
.legal-body .nav-brand {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.legal-body .nav-tabs--legal .nav-btn.active,
.legal-body .nav-tabs--secondary .nav-btn.active {
  color: #000;
}

.nav-tabs--legal a.nav-btn,
.nav-tabs--secondary a.nav-btn {
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.low-power) {
    scroll-behavior: smooth;
  }
}

/* Page enter handled by scroll reveals and GSAP — avoid stacking a full-body fade */
html:not(.low-power) body {
  animation: none;
}

/* ── Page transition: pages fade via GSAP, this prevents flash on first-ever paint ── */
@keyframes pageSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* When GSAP is unavailable or reduced-motion, pages simply appear */
html.low-power .page.active,
@media (prefers-reduced-motion: reduce) {
  .page.active { animation: none; }
}

/* =========================================================
   MOBILE — panels, image viewer, touch targets
========================================================= */

@media (max-width: 768px) {

  /* Expanding panel: fixed to viewport center (avoids flex+scroll offset) */
  #panel-overlay,
  .panel-overlay {
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #panel-overlay .panel-card,
  #panel-overlay .panel-scroll {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(calc(100vw - 20px), 26rem) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: min(88dvh, calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom))) !important;
    margin: 0 !important;
    padding: 22px 18px !important;
    box-sizing: border-box;
  }

  #panel-inner .grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  #panel-inner .grid img {
    width: 100%;
    display: block;
  }

  /* Image lightbox — use full screen */
  #image-modal {
    align-items: center;
    justify-content: center;
  }

  #image-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: max(52px, env(safe-area-inset-top)) 44px max(72px, env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  #modal-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .image-modal-nav {
    font-size: 2rem;
    padding: 12px 8px;
    min-width: 44px;
    min-height: 44px;
  }

  .image-modal-nav--prev {
    left: 4px;
  }

  .image-modal-nav--next {
    right: 4px;
  }

  .image-modal-close {
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #image-indicator {
    bottom: max(16px, env(safe-area-inset-bottom));
  }

  body.no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
    height: auto;
  }

  /* Mobile reveal — let GSAP run, only force-show if GSAP fails (low-power or no JS) */
  html.low-power #about.page.active:not(.is-entering):not(.is-exiting) [data-reveal],
  html.low-power #experience.page.active:not(.is-entering):not(.is-exiting) [data-reveal],
  html.low-power #examples.page.active:not(.is-entering):not(.is-exiting) [data-reveal]{
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
  }
}

/* =========================================================
   LUXURY REFINEMENTS — Browns Digital
   ========================================================= */

/* Richer background — deeper luminous gradient */
body {
  background:
    radial-gradient(1600px 900px at 15% 0%, rgba(255,255,255,1) 0%, transparent 55%),
    radial-gradient(1400px 900px at 85% 5%, rgba(232,236,248,0.9) 0%, transparent 58%),
    radial-gradient(1000px 700px at 50% 110%, rgba(220,226,244,0.8) 0%, transparent 62%),
    linear-gradient(175deg, #fafbff 0%, #f0f3fa 40%, #e8ecf5 100%);
  background-attachment: fixed;
  background-size: cover;
}

/* iOS/mobile: fixed attachment doesn't work — use scroll but pin to html */
@supports (-webkit-overflow-scrolling: touch) {
  body {
    background-attachment: scroll;
  }
}

/* Hero title — larger, more refined tracking */
.hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #0a0a0b;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 30px;
    letter-spacing: -0.025em;
    line-height: 1.12;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }
}

/* Page h2 headings */
.page > h2,
h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0a0a0b;
}

/* Eyebrow — more refined */
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #5a5a62;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.85);
  box-shadow: 0 2px 12px rgba(15,23,42,0.06), inset 0 1px 0 rgba(255,255,255,1);
}

/* Cards — deeper glass, more refined shadow */
.card {
  border-radius: 32px;
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(20px) saturate(200%) brightness(1.04);
  -webkit-backdrop-filter: blur(20px) saturate(200%) brightness(1.04);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow:
    0 2px 4px rgba(15,23,42,0.04),
    0 12px 32px rgba(15,23,42,0.09),
    0 40px 80px rgba(15,23,42,0.07),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 0 rgba(0,0,0,0.03);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease !important;
}

.card:hover {
  --lift: -10px;
  box-shadow:
    0 4px 8px rgba(15,23,42,0.06),
    0 24px 56px rgba(15,23,42,0.16),
    0 60px 120px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,1);
}

.card h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #0a0a0b;
}

.card p {
  font-size: 15px;
  line-height: 1.65;
  color: #6e6e73;
}

/* Liquid glass — more luminous */
.liquid {
  background: rgba(255,255,255,0.62);
  backdrop-filter: blur(18px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(200%) brightness(1.05);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 -1px 4px rgba(0,0,0,0.03);
}

/* Muted text — slightly warmer */
p, .page-lead {
  color: #5c5c65;
}

/* Nav mobile overrides consolidated into main mobile block above */

/* Scroll reveal — enable on mobile (was force-showing everything) */
@media (max-width: 768px) {
  [data-reveal]:not(.is-revealed) {
    /* GSAP handles the animation; just ensure nothing is permanently hidden */
    visibility: visible;
  }
}

/* ── CTA buttons — more polished ── */
.hero-cta,
.hero-portal-btn {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.88);
  box-shadow:
    0 8px 24px rgba(15,23,42,0.10),
    0 2px 4px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,1);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.hero-cta:hover,
.hero-portal-btn:hover {
  background: rgba(255,255,255,0.88);
  transform: translateY(-3px);
  box-shadow:
    0 16px 48px rgba(15,23,42,0.16),
    0 4px 8px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,1);
}

/* ── Social icon hover — no blue ── */
.project-socials a:hover svg path {
  fill: #444;
}

/* ── Focus outline — no blue ── */
.nav-btn:focus-visible,
.hero-cta:focus-visible,
.hero-portal-btn:focus-visible,
.project-btn:focus-visible,
.card:focus-visible {
  outline: 2px solid rgba(0,0,0,0.22);
  outline-offset: 2px;
}

/* ── Project email button ── */
.project-email {
  background: rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.10);
  color: #1d1d1f;
}
.project-email:hover {
  background: rgba(0,0,0,0.09);
}

/* ── Form inputs ── */
.project-form input:focus,
.project-form textarea:focus {
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
  outline: none;
}

/* =========================================================
   MOBILE — general luxury polish
   ========================================================= */

@media (max-width: 768px) {

  /* Hero actions stack cleanly */
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-cta,
  .hero-portal-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    text-align: center;
  }

  /* Home cards — tighter gap */
  #home .home-cards {
    gap: 14px;
    margin-top: 3.5rem;
  }

  .card {
    border-radius: 24px;
    padding: 22px 20px;
  }

  /* Page lead centered and legible */
  .page-lead {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 36px;
  }

  /* Project form — stack rows */
  .project-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Project card padding */
  .project-card {
    padding: 32px 22px;
    gap: 36px;
    border-radius: 32px;
  }

  .project-left h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .hero-cta,
  .hero-portal-btn {
    max-width: 100%;
  }
  .project-card {
    padding: 24px 16px;
    border-radius: 26px;
  }
}


/* =========================================================
   FAQ — Apple.com inspired, editorial luxury
   ========================================================= */

.faq-section {
  margin-top: 120px;
  padding-top: 80px;
  border-top: 1px solid rgba(0,0,0,0.06);
  width: 100%;
}

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

/* Left: sticky editorial header */
.faq-header {
  position: sticky;
  top: 110px;
}

.faq-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aeaeb2;
  margin: 0 0 20px;
  line-height: 1;
  display: block;
}

.faq-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.07;
  color: #1d1d1f;
  margin: 0;
}

/* Right: accordion list */
.faq-list {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

.faq-item {
  border-top: 1px solid rgba(0,0,0,0.08);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-q-text {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.016em;
  color: #1d1d1f;
  line-height: 1.35;
  flex: 1;
  transition: color 0.15s ease;
}

.faq-item[open] .faq-q-text {
  color: #000;
}

/* Chevron icon — rotates to × on open */
.faq-chevron {
  flex-shrink: 0;
  flex-grow: 0;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.faq-chevron svg {
  display: block;
  width: 12px;
  height: 12px;
  min-width: 12px;
  stroke: #6e6e73;
  stroke-width: 2;
  fill: none;
  overflow: visible;
  transition: stroke 0.2s ease;
}

.faq-item[open] .faq-chevron {
  background: rgba(0,0,0,0.09);
  transform: rotate(180deg);
}

.faq-item[open] .faq-chevron svg {
  stroke: #1d1d1f;
}

/* Answer */
.faq-answer {
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: #6e6e73;
  margin: 0;
  max-width: 580px;
}

/* Hover */
.faq-question:hover .faq-q-text {
  color: #000;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .faq-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-header {
    position: static;
  }
  .faq-title {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .faq-section {
    margin-top: 56px;
    padding-top: 44px;
  }
  .faq-title {
    font-size: 24px;
    letter-spacing: -0.025em;
  }
  .faq-eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }
  /* Key fix: question row doesn't shrink text into a tiny column */
  .faq-question {
    padding: 16px 0;
    gap: 14px;
    display: flex;
    align-items: flex-start;
  }
  .faq-q-text {
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 1.4;
    flex: 1;
    min-width: 0; /* prevents flex overflow */
    word-break: normal;
    overflow-wrap: break-word;
  }
  .faq-chevron {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin-top: 2px; /* align with first line of text */
  }
  .faq-chevron svg {
    width: 10px;
    height: 10px;
    min-width: 10px;
  }
  .faq-answer {
    padding-bottom: 18px;
  }
  .faq-answer p {
    font-size: 14px;
    line-height: 1.7;
    max-width: 100%;
  }
}

/* ── Crawler-readable link blocks — visually hidden, DOM-present ── */
/* Uses clip/position trick: not display:none (crawlers skip that) but visually zero */
.sr-site-index,
.sr-links {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

/* Home cards as <a> tags */
#home .home-cards a.card {
  display: block;
  text-decoration: none;
  color: inherit;
}

#home .home-cards a.card:visited {
  color: inherit;
}

/* ── FAQ schema H3 headings — crawler signal, visually hidden ── */
.faq-h3-schema {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
  font-size: 0;
  line-height: 0;
}

/* =========================================================
   FEATURE ADDITIONS — Browns Digital
   ========================================================= */

/* ── 1. SF Pro font stack — feels native on Apple devices ── */
body, button, input, textarea, select {
  font-family: -apple-system, "SF Pro Display", "SF Pro Text",
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ── 2. Hero ambient gradient animation ── */
body {
  background:
    radial-gradient(1600px 900px at 15% 0%, rgba(255,255,255,1) 0%, transparent 55%),
    radial-gradient(1400px 900px at 85% 5%, rgba(232,236,248,0.9) 0%, transparent 58%),
    radial-gradient(1000px 700px at 50% 110%, rgba(220,226,244,0.8) 0%, transparent 62%),
    linear-gradient(175deg, #fafbff 0%, #f0f3fa 40%, #e8ecf5 100%);
  background-size: 200% 200%, 200% 200%, 200% 200%, cover;
  animation: ambientShift 18s ease-in-out infinite alternate;
}

@keyframes ambientShift {
  0%   { background-position: 15% 0%,   85% 5%,  50% 110%, center; }
  33%  { background-position: 25% 2%,   75% 8%,  45% 115%, center; }
  66%  { background-position: 10% 1%,   90% 3%,  55% 105%, center; }
  100% { background-position: 20% 3%,   80% 7%,  48% 112%, center; }
}

/* Disable ambient animation in low-power / reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

/* ── 3. Spring physics — card CSS transition now driven by GSAP but keep CSS as fallback ── */
.card {
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease !important;
  will-change: transform;
}

/* ── 4. Magnetic button — ensure transform origin is centered ── */
.hero-cta,
.hero-portal-btn {
  transform-origin: center center;
  will-change: transform;
}

/* ── 5. Page transition — smoother entry ── */
.page.is-entering {
  pointer-events: none;
}

/* ── 6. Mobile animations — ensure reveal system works on small screens ── */
@media (max-width: 768px) {
  [data-reveal] {
    will-change: opacity, transform;
  }

  /* Reduce stagger/delay on mobile for snappier feel */
  [data-reveal-delay] {
    transition-delay: 0s !important;
  }

  /* Cards on mobile get subtle entry */
  .card {
    transition: box-shadow 0.25s ease !important;
  }

  /* Haptic micro-interactions — scale on tap (iOS taptic feedback trigger) */
  .hero-cta:active,
  .hero-portal-btn:active,
  .card:active,
  .nav-btn:active {
    transform: scale(0.97) !important;
    transition: transform 0.08s ease !important;
  }
}

/* Haptic on desktop too */
.hero-cta:active,
.hero-portal-btn:active {
  transform: scale(0.97);
  transition: transform 0.08s ease !important;
}

/* ── Shared design tokens ─────────────────────────────────
   Central source of truth — both sites reference these.
   Update once, consistent everywhere.
   ────────────────────────────────────────────────────── */
:root {
  /* Radius */
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-xl:   36px;
  --radius-pill: 999px;

  /* Glass card shadow levels */
  --shadow-sm:
    0 2px 4px rgba(15,23,42,0.04),
    0 8px 20px rgba(15,23,42,0.07),
    inset 0 1px 0 rgba(255,255,255,0.95);
  --shadow-md:
    0 4px 8px rgba(15,23,42,0.05),
    0 16px 40px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,1);
  --shadow-lg:
    0 8px 16px rgba(15,23,42,0.07),
    0 32px 80px rgba(15,23,42,0.13),
    inset 0 1px 0 rgba(255,255,255,1);
  --shadow-hover:
    0 16px 48px rgba(15,23,42,0.16),
    0 4px 8px rgba(15,23,42,0.06),
    inset 0 1px 0 rgba(255,255,255,1);

  /* Glass backgrounds */
  --glass-sm:   rgba(255,255,255,0.55);
  --glass-md:   rgba(255,255,255,0.68);
  --glass-lg:   rgba(255,255,255,0.80);

  /* Palette */
  --color-ink:     #0a0a0b;
  --color-muted:   #6e6e73;
  --color-subtle:  #aeaeb2;
  --color-border:  rgba(0,0,0,0.07);
  --color-border-light: rgba(255,255,255,0.82);

  /* Timing */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);

  /* Font */
  --font-sans: -apple-system, "SF Pro Display", "SF Pro Text",
               BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
}

/* ── Testimonials ── */
.testimonials-section {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #aeaeb2;
  margin: 0 0 32px;
  display: block;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.testimonial-card {
  padding: 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 15px;
  line-height: 1.7;
  color: #4b4b52;
  font-style: italic;
  flex: 1;
  max-width: none;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 650;
  color: #111;
  letter-spacing: -0.01em;
}

.testimonial-role {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; gap: 14px; }
  .testimonials-section { margin-top: 52px; padding-top: 44px; }
  .testimonial-card { padding: 22px; border-radius: 20px; }
}
