@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-elev: #fafafa;
  --fg: #000000;
  --fg-soft: #1a1a1a;
  --secondary: #6B6B6B;
  --border: #E5E5E5;
  --chip-bg: #F5F5F5;
  --accent: #F49302;
  --accent-dark: #d97f00;
  --accent-glow: rgba(244, 147, 2, 0.0);
  --hero-overlay: rgba(0,0,0,0.62);
  --section-bg: var(--bg);
  --cursor-color: #000;
  --cursor-mix: difference;
}

html[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #131313;
  --fg: #f5f5f5;
  --fg-soft: #e8e8e8;
  --secondary: #8a8a8a;
  --border: #1f1f1f;
  --chip-bg: #1a1a1a;
  --accent: #f7a833;
  --accent-dark: #f49302;
  --accent-glow: rgba(247, 168, 51, 0.25);
  --hero-overlay: rgba(0,0,0,0.78);
  --section-bg: var(--bg);
  --cursor-color: #fff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  transition: background 400ms ease, color 400ms ease;
}

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

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ---------- Custom cursor ---------- */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: difference;
  will-change: transform, width, height, opacity;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: width 180ms ease, height 180ms ease, opacity 200ms ease;
}
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  opacity: 0.6;
  transition: width 220ms cubic-bezier(0.16, 1, 0.3, 1),
              height 220ms cubic-bezier(0.16, 1, 0.3, 1),
              opacity 200ms ease,
              border-color 200ms ease,
              background 200ms ease;
}
.cursor-dot.is-link,
.cursor-ring.is-link { opacity: 1; }
.cursor-ring.is-link {
  width: 48px;
  height: 48px;
  background: rgba(244, 147, 2, 0.15);
  border-color: var(--accent);
}
.cursor-dot.is-link {
  width: 4px;
  height: 4px;
  background: var(--accent);
}
.cursor-dot.is-hidden,
.cursor-ring.is-hidden { opacity: 0; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* Hide native cursor on devices that show our custom one */
@media (hover: hover) and (pointer: fine) {
  body, body * { cursor: none !important; }
}

/* ---------- Scroll animations ---------- */
.fade-up,
.reveal-left,
.reveal-right,
.reveal-scale,
.stagger-child {
  opacity: 0;
  will-change: transform, opacity;
}

.fade-up {
  transform: translateY(56px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  transform: translateX(-56px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  transform: translateX(56px);
  transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  transform: scale(0.94) translateY(28px);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1) translateY(0); }

.stagger-parent .stagger-child {
  transform: translateY(40px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-parent.visible .stagger-child { opacity: 1; transform: translateY(0); }
.stagger-parent.visible .stagger-child:nth-child(1) { transition-delay: 0ms; }
.stagger-parent.visible .stagger-child:nth-child(2) { transition-delay: 100ms; }
.stagger-parent.visible .stagger-child:nth-child(3) { transition-delay: 200ms; }
.stagger-parent.visible .stagger-child:nth-child(4) { transition-delay: 300ms; }
.stagger-parent.visible .stagger-child:nth-child(5) { transition-delay: 400ms; }
.stagger-parent.visible .stagger-child:nth-child(6) { transition-delay: 500ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up, .reveal-left, .reveal-right, .reveal-scale, .stagger-child {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0);
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
html[data-theme="dark"] header.site { background: rgba(10,10,10,0); }
header.site.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
html[data-theme="dark"] header.site.scrolled {
  background: rgba(10,10,10,0.78);
}
header.site .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  overflow: visible;
}
.logo {
  display: inline-flex;
  align-items: center;
  margin-left: -35px;
  flex-shrink: 0;
}
.logo img {
  height: 100px;
  width: auto;
  display: block;
  filter: brightness(10);
  transition: filter 200ms ease;
  position: relative;
  z-index: 1;
}
.logo:hover img { filter: brightness(10) opacity(0.7); }
header.site.scrolled .logo img { filter: brightness(0.45) contrast(1.1); }
header.site.scrolled .logo:hover img { filter: brightness(0) contrast(1); }
html[data-theme="dark"] header.site.scrolled .logo img { filter: brightness(10) opacity(0.85); }
html[data-theme="dark"] header.site.scrolled .logo:hover img { filter: brightness(10) opacity(1); }

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.site-nav a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  transition: color 150ms ease;
}
nav.site-nav a:hover { color: #fff; }
nav.site-nav .nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  padding: 7px 16px;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
nav.site-nav .nav-cta:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
header.site.scrolled nav.site-nav a { color: var(--secondary); }
header.site.scrolled nav.site-nav a:hover { color: var(--fg); }
header.site.scrolled nav.site-nav .nav-cta {
  color: var(--fg);
  border-color: var(--fg);
  background: var(--bg);
}
header.site.scrolled nav.site-nav .nav-cta:hover {
  background: var(--fg);
  color: var(--bg);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  color: #fff;
  font-family: inherit;
  font-size: 0;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle svg { width: 14px; height: 14px; display: block; }
.theme-toggle:hover { transform: rotate(40deg); border-color: #fff; }
header.site.scrolled .theme-toggle { color: var(--fg); border-color: var(--border); }
header.site.scrolled .theme-toggle:hover { color: var(--accent); border-color: var(--fg); }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #fff;
  transition: transform 250ms ease, opacity 250ms ease, background 300ms ease;
}
header.site.scrolled .hamburger span { background: var(--fg); }

/* Mobile overlay nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}
.mobile-nav a {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 20px;
  transition: color 150ms ease;
}
.mobile-nav a:hover { color: var(--accent); }

/* ---------- Sections ---------- */
section {
  padding: 140px 0;
  border-bottom: 1px solid var(--border);
  background: var(--section-bg);
  transition: background 400ms ease, border-color 400ms ease;
}
section:last-of-type { border-bottom: none; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
}
.eyebrow.accent { color: var(--accent); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
  flex-wrap: wrap;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.section-title {
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.section-sub {
  font-size: 15px;
  color: var(--secondary);
  max-width: 38ch;
  line-height: 1.65;
  font-weight: 400;
}

/* ---------- Hero (cave + editorial) ---------- */
#hero {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  padding: 0 0 96px;
  min-height: 100vh;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  position: relative;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}
/* Atmospheric particle/dust layer */
#heroParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}
/* Cave gradient overlay — darker at top and bottom, slightly lifted center for type readability */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 90%, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.30) 35%,
      rgba(0,0,0,0.55) 75%,
      rgba(0,0,0,0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 78%, rgba(244, 147, 2, 0.08) 0%, transparent 50%);
  z-index: 2;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 48px;
}
.hero-text { max-width: 100%; }
.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
#hero h1 {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.94;
  margin-bottom: 36px;
  text-wrap: balance;
  color: #fff;
}
#hero h1 .accent-word {
  color: var(--accent);
  font-weight: 600;
}
#hero h1 .hero-line {
  display: block;
  overflow: hidden;
}
#hero h1 .hero-line-inner {
  display: inline-block;
  transform: translateY(110%);
  animation: heroLineUp 1100ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
#hero h1 .hero-line:nth-child(1) .hero-line-inner { animation-delay: 200ms; }
#hero h1 .hero-line:nth-child(2) .hero-line-inner { animation-delay: 320ms; }
#hero h1 .hero-line:nth-child(3) .hero-line-inner { animation-delay: 440ms; }
@keyframes heroLineUp {
  to { transform: translateY(0); }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
  padding-bottom: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-aside-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-aside-line::before {
  content: '';
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.45);
}
.hero-aside .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: livePulse 1800ms ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.hero-sub {
  font-size: clamp(15px, 1.1vw, 17px);
  color: rgba(255,255,255,0.82);
  font-weight: 400;
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 40px;
  letter-spacing: -0.005em;
}
.hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-ghost.btn-ghost-light {
  color: #fff !important;
  border-color: rgba(255,255,255,0.7) !important;
  background: transparent !important;
  font-size: 14px;
  padding: 13px 26px;
}
.btn-ghost.btn-ghost-light:hover {
  background: rgba(255,255,255,0.10) !important;
  border-color: #fff !important;
}

.btn-primary {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: var(--fg);
  color: var(--bg);
  border: 1px solid var(--fg);
  padding: 10px 22px;
  border-radius: 980px;
  letter-spacing: 0.005em;
  transition: opacity 150ms ease;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.72; }
.btn-ghost {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 980px;
  letter-spacing: 0.005em;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.btn-ghost:hover { border-color: var(--fg); }

/* Magnetic hover smoothing (handled via JS transforms; CSS sets the base) */
.magnetic { will-change: transform; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-card {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-top: 2px solid transparent;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  transition: border-top-color 200ms ease, background 200ms ease;
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 55%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.service-card:hover {
  border-top-color: var(--accent);
  background: var(--bg-elev);
}
.service-card:hover::after { opacity: 1; }
.service-card-top {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.service-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  flex-shrink: 0;
}
.service-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg);
}
.service-desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.75;
  margin-bottom: 28px;
  flex: 1;
}
.service-features { list-style: none; margin: 0; }
.service-features li {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
  padding: 5px 0 5px 18px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 1px;
  background: var(--accent);
}
.service-features li:last-child { border-bottom: none; }
.service-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.service-cta p {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* ---------- Section photo treatments ---------- */
.section-img-banner {
  width: 100%;
  height: 340px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.section-img-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  filter: grayscale(15%);
  transition: transform 600ms ease;
}
.section-img-banner:hover img { transform: scale(1.02); }

.section-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.section-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1;
  pointer-events: none;
}

/* Process layout with side image */
.process-layout {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.process-right {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.process-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: grayscale(10%);
}


/* Principles on dark background — use CSS bg, not inline <img> */
#principles {
  position: relative;
  overflow: hidden;
  background: #0a0a0a url('principles.jpg') center / cover no-repeat;
  border-bottom-color: transparent;
}
#principles::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}
#principles .page { position: relative; z-index: 2; }
#principles .section-header { border-left-color: var(--accent); }
#principles .section-title,
#principles .eyebrow,
#principles .section-sub { color: #fff; }
#principles .section-sub { color: rgba(255,255,255,0.75); }
#principles .eyebrow { color: var(--accent); }
#principles .principle-item {
  border-top-color: rgba(255,255,255,0.22);
  border-right-color: rgba(255,255,255,0.08);
  border-bottom-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(2px);
}
#principles .principle-item:hover { background: rgba(255,255,255,0.08); }
#principles .principle-title { color: #fff; }
#principles .principle-desc { color: rgba(255,255,255,0.7); }

/* Contact on dark background */
#contact .eyebrow { color: var(--accent); }
#contact h2 { color: #fff; }
#contact .contact-sub { color: rgba(255,255,255,0.7); }
#contact .contact-email { color: #fff; border-bottom-color: rgba(255,255,255,0.25); }
#contact .contact-email:hover { color: var(--accent); border-bottom-color: var(--accent); }
#contact .social-btn { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.2); }
#contact .social-btn:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
#contact .contact-note { color: rgba(255,255,255,0.4); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.process-step {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-top: 2px solid transparent;
  padding: 44px 32px;
  position: relative;
  overflow: hidden;
  transition: border-top-color 200ms ease, background 200ms ease;
}
.process-step::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 55%);
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.process-step:hover { background: var(--bg-elev); border-top-color: var(--accent); }
.process-step:hover::after { opacity: 1; }
.step-num {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
  position: relative;
  z-index: 1;
}
.step-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: 0;
  margin-bottom: 12px;
  position: relative;
}
.step-desc {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.7;
  position: relative;
}

/* ---------- Principles ---------- */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.principle-item {
  padding: 44px 40px;
  border-top: 3px solid var(--fg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 200ms ease;
}
.principle-item:hover { background: var(--bg-elev); }
.principle-item:nth-child(2n) { border-right: none; }
.principle-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.principle-desc {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.75;
}

/* ---------- About ---------- */
#about { padding-top: 0; }
#about .page { padding-top: 80px; }
.about-hero-wrap {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
}
#aboutCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#about .about-inner {
  max-width: 720px;
  margin: 0 auto;
}
#about h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 40px;
  text-wrap: balance;
}
.founder-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  filter: grayscale(20%);
}
.about-body p {
  font-size: 17px;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-weight: 300;
  letter-spacing: -0.005em;
}
.about-body p:last-child { margin-bottom: 0; }
.about-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  margin-top: 56px;
}
.about-meta-item {
  padding: 28px 0;
  border-right: 1px solid var(--border);
  padding-right: 40px;
}
.about-meta-item:last-child {
  border-right: none;
  padding-left: 40px;
  padding-right: 0;
}
.about-meta-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 6px;
}
.about-meta-value {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.about-meta-value a { color: var(--accent); transition: opacity 150ms ease; }
.about-meta-value a:hover { opacity: 0.7; }

/* ---------- FAQ ---------- */
.faq-list {
  border-top: 1px solid var(--border);
  margin-top: 0;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--fg);
  font-family: inherit;
  transition: color 150ms ease;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}
.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(180deg);
}
.faq-icon-plus::before { content: '+'; }
.faq-item.open .faq-icon-plus::before { content: '−'; }
.faq-item.open .faq-q { color: var(--fg); }
.faq-a {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.75;
  max-width: 68ch;
  padding: 0 0 28px;
  display: none;
  font-weight: 300;
  letter-spacing: -0.005em;
}
.faq-a a {
  color: var(--accent);
  background: linear-gradient(transparent 92%, var(--accent) 0);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-a a:hover { background-size: 100% 100%; color: var(--bg); }
.faq-item.open .faq-a { display: block; }

/* ---------- Contact ---------- */
#contact {
  text-align: center;
  position: relative;
  overflow: hidden;
}
#contact .contact-inner {
  max-width: 600px;
  margin: 0 auto;
}
#contact h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 20px;
  text-wrap: balance;
}
.contact-sub {
  font-size: 16px;
  color: var(--secondary);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 44px;
}
.contact-email {
  display: inline-block;
  font-size: clamp(22px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: border-color 150ms ease, color 150ms ease;
  margin-bottom: 36px;
}
.contact-email:hover { border-bottom-color: var(--accent); color: var(--accent); }
.contact-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
  border: 1px solid var(--border);
  padding: 8px 16px;
  transition: border-color 150ms ease, color 150ms ease;
}
.social-btn:hover { border-color: var(--fg); color: var(--fg); }
.social-btn svg { display: block; flex-shrink: 0; }
.contact-note {
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
footer.site {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
footer.site .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-copy {
  font-size: 12px;
  color: var(--secondary);
  letter-spacing: 0.01em;
}
.foot-email {
  font-size: 12px;
  color: var(--secondary);
  transition: color 150ms ease;
}
.foot-email:hover { color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  section { padding: 88px 0; }
  .page { padding: 0 28px; }

  nav.site-nav .hide-mobile { display: none; }
  .hamburger { display: flex; }
  .theme-toggle { width: 30px; height: 30px; }

  #hero { padding: 0 0 64px; min-height: 100vh; }
  .hero-inner { padding: 0 28px; grid-template-columns: 1fr; gap: 20px; }
  .hero-aside { align-items: flex-start; text-align: left; }
  .hero-aside-line::before { display: none; }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-cta { flex-direction: column; align-items: flex-start; gap: 16px; }

  .process-right { height: 240px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step:nth-child(2n) { border-right: none; }
  .section-img-banner { height: 260px; }

  .principles-grid { grid-template-columns: 1fr 1fr; }

  #about .about-inner { max-width: 100%; }
  .about-hero-wrap { height: 380px; }

  .contact-socials { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  .section-header { flex-direction: column; gap: 8px; margin-bottom: 48px; }
  .section-sub { max-width: 100%; }
}

@media (max-width: 520px) {
  section { padding: 64px 0; }
  .page { padding: 0 20px; }

  #hero {
    padding: 0;
    min-height: 100svh;
    justify-content: flex-end;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: 22% center;
    border-bottom: none;
  }
  #heroCanvas { display: none; }
  #heroParticles { display: none; }
  .hero-inner { padding: 0 24px 48px; }
  .hero-eyebrow { margin-bottom: 16px; }
  #hero h1 { font-size: clamp(44px, 12vw, 64px); letter-spacing: -0.035em; margin-bottom: 20px; line-height: 0.98; }
  .hero-sub { font-size: 14px; margin-bottom: 28px; max-width: 100%; }
  .hero-btns { gap: 10px; }
  .btn-ghost-light { font-size: 14px; padding: 11px 22px; }

  .section-header { flex-direction: column; gap: 8px; margin-bottom: 40px; border-left-width: 2px; padding-left: 16px; }
  .section-title { font-size: clamp(26px, 8vw, 36px); }

  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 28px 20px; }
  .service-name { font-size: 18px; }

  .process-right { height: 180px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; padding: 32px 20px; }
  .step-title { font-size: 15px; }
  .step-desc { font-size: 13px; }

  .principles-grid { grid-template-columns: 1fr; }
  .principle-item { border-right: none; padding: 28px 20px; }
  .principle-title { font-size: 16px; }
  .principle-desc { font-size: 13px; }

  .about-hero-wrap { height: 260px; }
  #about .page { padding-top: 56px; }
  .founder-photo { width: 80px; height: 80px; margin-bottom: 24px; }
  #about h2 { font-size: clamp(26px, 8vw, 36px); margin-bottom: 28px; }
  .about-body p { font-size: 15px; line-height: 1.7; }
  .about-meta { grid-template-columns: 1fr; margin-top: 40px; }
  .about-meta-item { border-right: none; padding-left: 0; padding-right: 0; border-bottom: 1px solid var(--border); padding: 20px 0; }
  .about-meta-item:last-child { border-bottom: none; }
  .about-meta-value { font-size: 14px; }

  .faq-q { font-size: 14px; padding: 20px 0; gap: 16px; }
  .faq-a { font-size: 13px; line-height: 1.7; }
  .faq-icon { width: 18px; height: 18px; font-size: 13px; flex-shrink: 0; }

  #contact { text-align: left; }
  #contact .contact-inner { max-width: 100%; }
  #contact h2 { font-size: clamp(28px, 8vw, 38px); }
  .contact-sub { font-size: 14px; margin-bottom: 32px; }
  .contact-email { font-size: clamp(20px, 6.5vw, 28px); }
  .contact-socials { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
  .social-btn { width: 100%; justify-content: center; font-size: 12px; }
  .contact-note { font-size: 11px; }

  footer.site .row { flex-direction: column; text-align: center; gap: 8px; }
}
