/* ==========================================================================
   bitmop Inc. — Cinematic Snow Studio Stylesheet
   Pure CSS / Zero external framework dependencies
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg-void: #05080f;
  --bg-deep: #080e1a;
  --bg-surface: rgba(13, 21, 36, 0.62);
  --bg-surface-hover: rgba(19, 30, 52, 0.78);
  --bg-input: rgba(8, 13, 24, 0.72);

  --border-subtle: rgba(204, 220, 244, 0.12);
  --border-strong: rgba(218, 233, 255, 0.28);
  --border-hairline: rgba(204, 220, 244, 0.08);

  --text-primary: #eef3fb;
  --text-secondary: #9aa9c2;
  --text-muted: #5d6e89;

  --accent-ice: #9bc8f7;
  --accent-ice-soft: rgba(155, 200, 247, 0.14);
  --accent-emerald: #7dd3c0;
  --accent-amber: #e6c68a;

  --font-serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'YuMincho', 'Yu Mincho', 'BIZ UDPMincho', serif;
  --font-sans: 'Inter', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container-max: 1080px;
  --header-h: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  line-height: 1.85;
  color: var(--text-primary);
  background:
    radial-gradient(ellipse 85% 55% at 50% -10%, rgba(56, 98, 168, 0.22), transparent 68%),
    radial-gradient(ellipse 60% 40% at 85% 35%, rgba(30, 58, 108, 0.12), transparent 65%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-deep) 52%, #060a13 100%);
  background-attachment: fixed;
  overflow-x: clip;
  position: relative;
}

/* Subtle cinematic film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.032;
  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.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Soft edge vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 12;
  background: radial-gradient(circle at 50% 45%, transparent 55%, rgba(2, 4, 10, 0.55) 100%);
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Fullscreen Snow Canvas */
#snow-sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 18;
}

/* Snow Ledge Canvas injected inside [data-snow-ledge] */
[data-snow-ledge] {
  position: relative;
  overflow: visible;
}

.snow-ledge-canvas {
  position: absolute;
  left: 0;
  top: -22px;
  width: 100%;
  height: 30px;
  pointer-events: none;
  z-index: 22;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* ==========================================================================
   Fixed Minimal Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background-color 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(5, 8, 15, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border-hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-primary);
  transition: opacity 0.25s ease;
}

.brand:hover {
  opacity: 0.8;
}

.brand-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ice);
  box-shadow: 0 0 10px rgba(155, 200, 247, 0.8);
  transform: translateY(-1px);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-ice);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Subtle HUD-style Snow Toggle */
.snow-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(13, 21, 36, 0.48);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.snow-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(20, 33, 56, 0.68);
}

.snow-toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ice);
  box-shadow: 0 0 8px rgba(155, 200, 247, 0.85);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.snow-toggle[aria-pressed="false"] .snow-toggle-dot {
  background: var(--text-muted);
  box-shadow: none;
}

/* ==========================================================================
   Hero Section (Cinematic Full Viewport)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 5.5rem;
  z-index: 10;
}

/* Delicate Viewfinder Corner Marks */
.viewfinder {
  position: absolute;
  inset: calc(var(--header-h) + 1.4rem) clamp(1.25rem, 3.5vw, 3rem) 2.2rem;
  pointer-events: none;
  z-index: 5;
}

.vf-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(204, 220, 244, 0.18);
  border-style: solid;
}

.vf-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.vf-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.vf-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.vf-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.vf-meta {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.vf-meta-tl { top: 0.2rem; left: 1.8rem; }
.vf-meta-tr { top: 0.2rem; right: 1.8rem; }
.vf-meta-bl { bottom: 0.1rem; left: 1.8rem; }
.vf-meta-br { bottom: 0.1rem; right: 1.8rem; }

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ice);
  margin: 0 0 2rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-ice);
  opacity: 0.65;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 3.85rem);
  line-height: 1.42;
  letter-spacing: 0.08em;
  margin: 0 0 2rem;
  color: var(--text-primary);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  line-height: 2.05;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 2.8rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.65rem;
  border: 1px solid var(--border-strong);
  background: rgba(13, 21, 36, 0.45);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.btn-ghost:hover {
  background: rgba(155, 200, 247, 0.12);
  border-color: var(--accent-ice);
  transform: translateY(-1px);
}

.btn-ghost .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

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

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Scroll Cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 2.4rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  z-index: 10;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(155, 200, 247, 0.75), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 60%;
  background: #ffffff;
  animation: scrollDrop 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes scrollDrop {
  0% { top: -60%; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 120%; opacity: 0; }
}

/* Snow Horizon Divider at bottom of Hero */
.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(204, 220, 244, 0.22) 20%, rgba(204, 220, 244, 0.22) 80%, transparent 100%);
  z-index: 15;
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  position: relative;
  padding: clamp(5.5rem, 11vw, 9.5rem) 0;
  z-index: 10;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: clamp(3rem, 6vw, 4.75rem);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ice);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--text-primary);
}

/* ==========================================================================
   Philosophy Section
   ========================================================================== */
.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.philosophy-aside {
  position: sticky;
  top: calc(var(--header-h) + 2.5rem);
}

.philosophy-rule {
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, var(--accent-ice), transparent);
  margin-top: 1.5rem;
  opacity: 0.5;
}

.philosophy-statement {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  line-height: 1.75;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin: 0 0 2.2rem;
  font-weight: 400;
}

.philosophy-body {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 2.15;
  max-width: 620px;
}

.philosophy-body p {
  margin: 0 0 1.45rem;
}

.philosophy-body p:last-child {
  margin-bottom: 0;
}

.philosophy-signature {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* ==========================================================================
   Three Pillars Section (Editorial Snow-Catching Architectural Panels)
   ========================================================================== */
.pillars-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.pillars-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pillars-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.2rem, 4.5vw, 3.2rem);
}

.pillar-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4.2vw, 3.2rem);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(220, 236, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.4s ease, border-color 0.4s ease, transform 0.45s var(--ease-out-expo);
  cursor: pointer;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(155, 200, 247, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pillar-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-index-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-hairline);
  padding-right: 1.5rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(155, 200, 247, 0.72);
}

.pillar-code {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.pillar-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.pillar-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.pillar-en {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-ice);
  display: block;
  margin-bottom: 0.45rem;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--text-primary);
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(125, 211, 192, 0.32);
  background: rgba(125, 211, 192, 0.07);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

.pillar-badge--muted {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.pillar-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
  margin: 0;
  max-width: 680px;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
  padding: 0;
  list-style: none;
}

.pillar-tags li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0.22rem 0.65rem;
  border: 1px solid var(--border-hairline);
  background: rgba(5, 8, 15, 0.36);
}

/* Future Aerial Reel Placeholder Slot inside Drone Pillar */
.reel-slot {
  margin-top: 0.6rem;
  padding: 0.85rem 1.1rem;
  border: 1px dashed rgba(155, 200, 247, 0.22);
  background: rgba(5, 8, 15, 0.35);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.reel-slot strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ==========================================================================
   Company Bridge Panel (on index.html)
   ========================================================================== */
.bridge-section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.bridge-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2.2rem, 4.5vw, 3.4rem);
  background: linear-gradient(135deg, rgba(15, 24, 42, 0.72), rgba(8, 13, 24, 0.68));
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(220, 236, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bridge-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0.5rem 0 0.75rem;
}

.bridge-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 520px;
}

/* ==========================================================================
   Company Page (company.html)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(4.5rem, 9vw, 7.5rem)) 0 clamp(3rem, 5vw, 4.5rem);
  z-index: 10;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}

.page-lead {
  color: var(--text-secondary);
  font-size: 0.96rem;
  max-width: 560px;
  margin: 0;
}

.company-section {
  position: relative;
  padding: 0 0 clamp(4rem, 7vw, 6rem);
  z-index: 10;
}

.surface-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top-color: rgba(220, 236, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: clamp(2rem, 4.5vw, 3.4rem);
}

.profile-list {
  margin: 0;
  display: grid;
}

.profile-row {
  display: grid;
  grid-template-columns: minmax(140px, 210px) 1fr;
  gap: 0.75rem 2.5rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.profile-row:first-child {
  padding-top: 0;
}

.profile-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.profile-row dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.profile-row dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.96rem;
  line-height: 1.9;
}

.profile-sub {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

/* Contact Form (Compact, Static-Site POST Ready, Zero Exposed Email) */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info-title {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin: 0.6rem 0 1.2rem;
}

.contact-info-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.95;
  margin: 0 0 1.2rem;
}

.contact-meta-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  line-height: 1.75;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.field-req {
  color: var(--accent-ice);
  font-size: 0.65rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  line-height: 1.6;
  border-radius: 0;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.field select::-ms-expand {
  display: none;
}

.field select::picker-icon {
  display: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%239aa9c2' stroke-width='1.2' d='M1 1.5L6 6.5L11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field select option {
  background-color: #0b1221;
  color: var(--text-primary);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-ice);
  background: rgba(11, 18, 33, 0.9);
  box-shadow: 0 0 0 3px rgba(155, 200, 247, 0.1);
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

/* Honeypot field hidden from human users */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.35rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 2rem;
  border: 1px solid var(--accent-ice);
  background: rgba(155, 200, 247, 0.14);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.25s ease, opacity 0.25s ease;
}

.btn-submit:hover:not(:disabled) {
  background: rgba(155, 200, 247, 0.24);
  transform: translateY(-1px);
}

.btn-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.form-status {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  min-height: 1.4em;
}

.form-status.is-success {
  color: var(--accent-emerald);
}

.form-status.is-info {
  color: var(--accent-amber);
}

.form-status.is-error {
  color: #f49797;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-hairline);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.footer-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}

.footer-link,
.footer-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.footer-link:hover,
.footer-btn:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Scroll Reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .philosophy-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .philosophy-aside {
    position: static;
  }

  .philosophy-rule {
    width: 48px;
    height: 1px;
    margin-top: 1rem;
  }

  .pillar-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pillar-index-col {
    flex-direction: row;
    align-items: baseline;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    padding-right: 0;
    padding-bottom: 0.9rem;
  }

  .pillar-code {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .brand-sub,
  .vf-meta-tr,
  .vf-meta-br {
    display: none;
  }

  .header-inner {
    gap: 0.65rem;
  }

  .brand {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    gap: 0.42rem;
    flex-shrink: 0;
  }

  .site-nav {
    gap: 0.68rem;
  }

  .nav-link {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .snow-toggle {
    padding: 0.34rem 0.52rem;
    gap: 0;
    flex-shrink: 0;
  }

  .snow-toggle [data-snow-label] {
    display: none;
  }

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

  .profile-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2rem);
    padding-bottom: 4.5rem;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-line::after {
    animation: none;
  }
}
