/* =========================================
   BELLEVUE DOBERMANS - Global Styles
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --bg-soft: #1c1c1c;
  --ink: #f5f5f0;
  --ink-dim: #a0a09a;
  --ink-faint: #555550;
  --accent: #b1121e;
  --accent-deep: #6b0a12;
  --accent-glow: rgba(177, 18, 30, 0.35);
  --rust: #8a3a1f;
  --gold: #c9a96e;
  --line: rgba(245, 245, 240, 0.08);
  --line-strong: rgba(245, 245, 240, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Grain overlay for cinematic feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: overlay;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  gap: 2rem;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  padding: 1rem 3rem;
  border-bottom-color: var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  position: relative;
  transform: rotate(45deg);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover .logo-mark {
  transform: rotate(225deg);
}

.logo-mark span {
  transform: rotate(-45deg);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 102;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  margin: 6px auto;
  transition: all 0.4s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* =========================================
   PAGE TRANSITIONS / REVEAL
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* =========================================
   HERO (HOME)
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 3rem 4rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(177, 18, 30, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #141010 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(245, 245, 240, 0.015) 80px,
      rgba(245, 245, 240, 0.015) 81px
    );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text-wrap {
  position: relative;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-eyebrow::before {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  animation: titleRise 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.hero-title .line:nth-child(2) span {
  animation-delay: 0.15s;
  color: var(--accent);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

.hero-title .line:nth-child(3) span {
  animation-delay: 0.3s;
}

@keyframes titleRise {
  from {
    transform: translateY(110%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-sub {
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--ink-dim);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeIn 1.2s ease 0.6s backwards;
}

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

.hero-cta-row {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  animation: fadeIn 1.2s ease 0.8s backwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(245, 245, 240, 0.04);
}

.btn .arrow {
  transition: transform 0.4s ease;
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 800px;
  animation: fadeIn 1.5s ease 0.4s backwards;
}

.hero-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-strong);
  overflow: hidden;
  background: var(--bg-elev);
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 10, 0.7) 100%);
  z-index: 2;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.85);
  animation: kenburns 20s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-2%, -2%); }
}

.hero-tag {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  z-index: 3;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: var(--ink);
  max-width: 280px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.hero-stats {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--bg);
  padding: 1.25rem 1.75rem;
  border-left: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  z-index: 4;
  display: flex;
  gap: 2rem;
}

.hero-stat {
  text-align: center;
}

.hero-stat .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.65rem;
  color: var(--ink-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* Marquee */
.marquee {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: inline-block;
  animation: scroll 40s linear infinite;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
}

.marquee-track span {
  margin: 0 2rem;
  color: var(--accent);
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================
   SECTIONS
   ========================================= */
section {
  padding: 8rem 3rem;
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 5rem;
  align-items: end;
}

.section-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title em {
  font-style: italic;
  color: var(--accent);
}

.section-lead {
  color: var(--ink-dim);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 540px;
}

/* Pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pillar {
  padding: 3rem 2rem;
  border: 1px solid var(--line);
  position: relative;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--bg-elev);
  overflow: hidden;
}

.pillar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar:hover {
  border-color: var(--line-strong);
  transform: translateY(-6px);
  background: var(--bg-soft);
}

.pillar:hover::before {
  transform: scaleX(1);
}

.pillar-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  margin-bottom: 2rem;
  color: var(--accent);
  transition: all 0.4s ease;
}

.pillar:hover .pillar-icon {
  background: var(--accent);
  color: var(--ink);
  transform: rotate(-5deg);
}

.pillar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.pillar-text {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Quote/feature section */
.quote-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8rem 3rem;
  text-align: center;
}

.big-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.big-quote .accent {
  color: var(--accent);
}

.quote-attr {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* CTA Block */
.cta-block {
  padding: 8rem 3rem;
  text-align: center;
  position: relative;
  background: 
    radial-gradient(ellipse at center, rgba(177, 18, 30, 0.12) 0%, transparent 60%),
    var(--bg);
}

.cta-block h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.cta-block p {
  color: var(--ink-dim);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 4rem 3rem 2rem;
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}

/* =========================================
   PAGE HEADER (interior pages)
   ========================================= */
.page-header {
  padding: 12rem 3rem 6rem;
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(177, 18, 30, 0.12) 0%, transparent 50%),
    var(--bg);
  overflow: hidden;
}

.page-header::before {
  content: attr(data-bg);
  position: absolute;
  bottom: -3rem;
  right: -2rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(8rem, 25vw, 20rem);
  color: var(--bg-elev);
  line-height: 0.8;
  white-space: nowrap;
  z-index: 0;
  opacity: 0.6;
}

.page-header-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}

.crumb {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
}

.crumb a {
  color: var(--accent);
}

.crumb a:hover {
  color: var(--ink);
}

.page-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.9;
  margin-bottom: 1.5rem;
}

.page-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--ink-dim);
  max-width: 600px;
  line-height: 1.7;
}

/* =========================================
   ABOUT PAGE - Content blocks
   ========================================= */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 6rem;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-text h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.content-text h3 em {
  font-style: italic;
  color: var(--accent);
}

.content-text p {
  color: var(--ink-dim);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.8;
}

.content-text p:last-child {
  margin-bottom: 0;
}

.content-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--line);
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.9);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-image:hover img {
  transform: scale(1.05);
}

.content-image::after {
  content: '';
  position: absolute;
  top: 1rem;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  border: 1px solid rgba(245, 245, 240, 0.2);
  pointer-events: none;
  z-index: 2;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 4rem 0;
}

.stat-item .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Trait list */
.trait-list {
  list-style: none;
  margin-top: 2rem;
}

.trait-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  color: var(--ink-dim);
}

.trait-list li::before {
  content: '◆';
  color: var(--accent);
  font-size: 0.7rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.trait-list li strong {
  color: var(--ink);
  font-weight: 500;
  margin-right: 0.5rem;
}

/* =========================================
   SECURITY PAGE
   ========================================= */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.capability {
  background: var(--bg);
  padding: 3rem;
  position: relative;
  transition: all 0.4s ease;
  cursor: default;
}

.capability:hover {
  background: var(--bg-elev);
}

.capability-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  margin-bottom: 1.5rem;
}

.capability h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.capability p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.7;
}

.protocol {
  margin-top: 4rem;
  padding: 3rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  position: relative;
}

.protocol-tag {
  position: absolute;
  top: -10px;
  left: 2rem;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  padding: 0.4rem 1rem;
}

.protocol-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2rem;
}

.protocol-step {
  padding: 2rem;
  border-right: 1px solid var(--line);
  position: relative;
}

.protocol-step:last-child {
  border-right: none;
}

.protocol-step .step-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.protocol-step h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.protocol-step p {
  color: var(--ink-dim);
  font-size: 0.85rem;
  line-height: 1.7;
}

/* =========================================
   GALLERY PAGE
   ========================================= */
.gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gallery-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  padding: 0.7rem 1.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

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

.dog-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-elev);
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.dog-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.dog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) saturate(0.9);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.dog-card:hover .dog-card-img {
  transform: scale(1.08);
  filter: contrast(1.15) saturate(1);
}

.dog-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 2;
  pointer-events: none;
}

.dog-card-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.7rem;
  margin-bottom: 1rem;
  width: fit-content;
}

.dog-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.dog-card-meta {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--ink-dim);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.dog-card-bio {
  color: var(--ink-dim);
  font-size: 0.85rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
}

.dog-card:hover .dog-card-bio {
  max-height: 200px;
  opacity: 1;
}

.dog-card-add {
  background: transparent;
  border: 2px dashed var(--line-strong);
  color: var(--ink-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  transition: all 0.4s ease;
}

.dog-card-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(177, 18, 30, 0.05);
}

.dog-card-add .plus {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  transform: translateY(30px);
  transition: transform 0.4s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.modal h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.modal h3 em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.modal-sub {
  color: var(--ink-dim);
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.85rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-note {
  font-size: 0.75rem;
  color: var(--ink-faint);
  margin-top: 1rem;
  font-style: italic;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { height: 450px; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .protocol-steps { grid-template-columns: repeat(2, 1fr); }
  .protocol-step { border-right: none; border-bottom: 1px solid var(--line); }
  .protocol-step:nth-last-child(-n+2) { border-bottom: none; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .content-block { grid-template-columns: 1fr; gap: 3rem; }
  .content-block.reverse { direction: ltr; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .capability-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {

  .nav {
    padding: 1rem 1.5rem;
  }

  .nav.scrolled {
    padding: 0.75rem 1.5rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 0;
    padding: 0;

    max-height: 0;
    overflow: hidden;

    border-bottom: 1px solid var(--line);

    transition: max-height 0.4s ease;
  }

  .nav-links.open {
    max-height: 700px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .menu-toggle {
    display: block;
  }
}
  
  section,
  .hero,
  .quote-section,
  .cta-block {
    padding: 5rem 1.5rem;
  }

  .page-header {
    padding: 8rem 1.5rem 4rem;
  }
  
  .hero {
    padding-top: 7rem;
  }

  .hero-stats {
    padding: 1rem;
    gap: 1rem;
  }

  .hero-stat .num {
    font-size: 1.5rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .stat-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0;
  }

  .protocol-steps {
    grid-template-columns: 1fr;
  }

  .protocol-step {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .protocol-step:last-child {
    border-bottom: none;
  }

  .protocol {
    padding: 2rem 1.5rem;
  }

  .capability {
    padding: 2rem 1.5rem;
  }
  
  .gallery-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .modal {
    padding: 2rem 1.5rem;
  }
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
