/* Inter — self-hosted */
@import url('fonts/inter.css');

/* =========================================
   Vice Holdings — Design System
   Decentralized · Dark · Modern
   ========================================= */
:root {
  /* Surfaces — near-black stack */
  --bg:            #060608;
  --bg-surface:    #0c0c10;
  --bg-card:       #101015;
  --bg-elevated:   #15151b;
  --bg-overlay:    rgba(6, 6, 8, 0.92);

  /* Borders — hairline */
  --border:        rgba(255, 255, 255, 0.055);
  --border-strong: rgba(255, 255, 255, 0.10);
  --border-hover:  rgba(245, 98, 42, 0.45);

  /* Text */
  --text-primary:   #F5F5F7;
  --text-secondary: #8A8A96;
  --text-tertiary:  #5C5C66;
  --text-muted:     #3A3A42;

  /* Accent — dark orange (signature) */
  --accent:         #F5622A;
  --accent-bright:  #FF6F33;
  --accent-soft:    rgba(245, 98, 42, 0.12);
  --accent-glow:    rgba(245, 98, 42, 0.08);
  --accent-dim:     rgba(245, 98, 42, 0.30);

  /* Typography */
  --font:      'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --max-w: 1280px;
  --t: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
}

/* Ambient backdrop — extremely subtle orange warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(245, 98, 42, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(20, 20, 26, 0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a  { color: inherit; text-decoration: none; }
svg { display: block; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--accent-dim);
  color: var(--text-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* =========================================
   Layout helpers
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { padding: 0 56px; } }

.section { padding: 140px 0; }
@media (max-width: 768px) { .section { padding: 84px 0; } }

.section-header { margin-bottom: 72px; max-width: 780px; }
@media (max-width: 768px) { .section-header { margin-bottom: 48px; } }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px var(--accent);
}

.section-title {
  font-size: clamp(32px, 4.4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.030em;
  color: var(--text-primary);
  line-height: 1.06;
  margin-bottom: 22px;
}

.section-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 660px;
}

/* =========================================
   Navigation
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  transition: opacity var(--t);
}
.nav__logo:hover { opacity: 0.82; }

.nav__mark {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.nav__wordmark {
  font-size: 15px;
  letter-spacing: -0.014em;
  color: var(--text-primary);
  line-height: 1;
}
.nav__word-brand   { font-weight: 600; color: var(--text-primary); }
.nav__word-type    { font-weight: 300; color: var(--text-tertiary); }

/* Desktop links */
.nav__links {
  display: none;
  list-style: none;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) { .nav__links { display: flex; } }

.nav__links a {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--t);
  letter-spacing: 0.01em;
  position: relative;
}
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--t);
}
.nav__links a:not(.nav__cta):hover { color: var(--text-primary); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__links a.active { color: var(--text-primary); }
.nav__links a.active::after { width: 100%; background: var(--accent); }

.nav__cta {
  font-size: 13px !important;
  font-weight: 500;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-strong);
  padding: 9px 20px;
  border-radius: 2px;
  transition: border-color var(--t), background var(--t), color var(--t) !important;
}
.nav__cta:hover {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--text-primary) !important;
}
.nav__cta::after { display: none; }

/* Mobile hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
@media (min-width: 900px) { .nav__toggle { display: none; } }

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--t), opacity var(--t);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  background: rgba(6, 6, 8, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.nav__mobile.open { display: block; }

.nav__mobile ul { list-style: none; padding: 16px 0 28px; }
.nav__mobile ul li a {
  display: block;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.nav__mobile ul li a:hover,
.nav__mobile ul li a:active {
  color: var(--text-primary);
  border-left-color: var(--accent);
  background: rgba(245, 98, 42, 0.04);
}

/* =========================================
   Hero
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

/* Subtle dot grid background — more modern than line grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse 75% 60% at 50% 42%, black 5%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 42%, black 5%, transparent 75%);
}

.hero__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 960px;
  height: 960px;
  background: radial-gradient(circle, rgba(245, 98, 42, 0.13) 0%, transparent 58%);
  pointer-events: none;
  filter: blur(8px);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 56px;
  padding-bottom: 100px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: rgba(16, 16, 21, 0.6);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 48px;
  backdrop-filter: blur(8px);
}
.hero__tag::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.hero__headline {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 0.98;
  color: var(--text-primary);
  margin-bottom: 32px;
  max-width: 980px;
}

.hero__sub {
  font-size: clamp(16px, 1.95vw, 19px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 400;
}
.hero__sub-lead {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: clamp(17px, 2.1vw, 21px);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 84px;
}

.hero__pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 920px;
}

.hero__pillar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  transition: color var(--t);
}
.hero__pillar:hover { color: var(--text-secondary); }
.hero__pillar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.18));
  animation: scrollLine 2.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 2px;
  transition: all var(--t);
  cursor: pointer;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-family: var(--font);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  box-shadow: 0 8px 32px -8px var(--accent-dim);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.btn--light {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}
.btn--light:hover { background: #dcdcde; border-color: #dcdcde; }

/* =========================================
   About
   ========================================= */
.about { border-top: 1px solid var(--border); }

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 900px) {
  .about__inner {
    grid-template-columns: 200px 1fr;
    gap: 96px;
    align-items: start;
  }
}

.about__side { padding-top: 4px; }

.about__headline {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  margin-bottom: 36px;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 64px;
  max-width: 720px;
}
.about__text p {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-secondary);
  font-weight: 400;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 24px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .about__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

.stat__value {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.034em;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ---- Treasury / AUM block ---- */
.about__treasury {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.treasury__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.treasury__label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  flex-shrink: 0;
}

.treasury__items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 0;
}

.treasury__divider {
  width: 1px;
  height: 30px;
  background: var(--border-strong);
  margin: 0 24px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .treasury__divider { display: none; }
  .treasury__items { gap: 16px; }
}

.treasury__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.treasury__icon {
  font-size: 11px;
  color: var(--text-tertiary);
  line-height: 1;
}

.treasury__ticker {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--text-primary);
  line-height: 1;
}

.treasury__type {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* =========================================
   Strategy
   ========================================= */
.strategy { border-top: 1px solid var(--border); }

.strategy__list { display: flex; flex-direction: column; }

.strategy-row {
  display: grid;
  grid-template-columns: auto 56px 1fr;
  gap: 16px 22px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background var(--t);
}
.strategy-row:first-child { border-top: 1px solid var(--border); }

.strategy-row__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.10em;
  padding-top: 4px;
}

.strategy-row__icon {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.strategy-row__icon svg { width: 22px; height: 22px; }

.strategy-row:hover .strategy-row__icon {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.strategy-row__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.strategy-row__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--text-primary);
  line-height: 1.3;
}

.strategy-row__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 640px;
}

@media (min-width: 900px) {
  .strategy-row {
    grid-template-columns: 56px 56px 280px 1fr;
    gap: 0 48px;
    padding: 48px 0;
    align-items: center;
  }
  .strategy-row__body { display: contents; }
  .strategy-row__title { grid-column: 3; margin: 0; }
  .strategy-row__text  { grid-column: 4; }
}

/* =========================================
   Services
   ========================================= */
.services { border-top: 1px solid var(--border); }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
@media (min-width: 640px)  { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services__grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--bg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background var(--t);
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}
.service-card:hover { background: var(--bg-surface); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}
.service-card__icon svg { width: 26px; height: 26px; }

.service-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--text-primary);
  line-height: 1.32;
}

.service-card__text {
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-secondary);
  font-weight: 400;
  flex: 1;
}

/* =========================================
   Portfolio (Holdings)
   ========================================= */
.portfolio { border-top: 1px solid var(--border); }

.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px)  { .portfolio__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio__grid { grid-template-columns: repeat(3, 1fr); } }

.holding-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  transition: border-color var(--t), background var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}
.holding-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 100%;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}
.holding-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated);
  transform: translateY(-2px);
}
.holding-card:hover::before { transform: scaleY(1); }

.holding-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.holding-card__name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.016em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.holding-card__sector {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.holding-card__link {
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-top: 4px;
  transition: color var(--t), transform var(--t);
}
.holding-card__link:hover {
  color: var(--accent);
  transform: translate(2px, -2px);
}
.holding-card__link--inactive { opacity: 0.3; cursor: default; pointer-events: none; }
.holding-card__link svg { width: 100%; height: 100%; }

.holding-card__desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 400;
  flex: 1;
}

.holding-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.holding-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.holding-card__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.holding-card__status--active {
  color: var(--accent);
}
.holding-card__status--active::before {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.holding-card__status--dev {
  color: var(--text-tertiary);
}
.holding-card__status--dev::before {
  background: var(--text-tertiary);
}

.holding-card__role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.portfolio__more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 56px;
  padding-top: 48px;
  position: relative;
}
.portfolio__more::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-strong), transparent);
}

.portfolio__more-btn {
  padding: 14px 32px;
}

.portfolio__more-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* =========================================
   Principles
   ========================================= */
.principles { border-top: 1px solid var(--border); }

.principle-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px 32px;
  padding: 44px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.principle-item:first-child { border-top: 1px solid var(--border); }

@media (min-width: 768px) {
  .principle-item {
    grid-template-columns: 80px 1fr 1.4fr;
    gap: 24px 56px;
    align-items: baseline;
  }
}

.principle-item__number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  padding-top: 5px;
  letter-spacing: 0.10em;
  font-weight: 500;
  transition: color var(--t);
}

.principle-item__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--text-primary);
  line-height: 1.3;
}
@media (max-width: 767px) { .principle-item__title { grid-column: 2; } }

.principle-item__text {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-secondary);
  font-weight: 400;
}
@media (max-width: 767px) { .principle-item__text { grid-column: 2; } }

/* =========================================
   Contact
   ========================================= */
.contact { border-top: 1px solid var(--border); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact__grid {
    grid-template-columns: 1fr 1.35fr;
    gap: 96px;
  }
}

.contact__headline {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.02;
  margin-top: 22px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.contact__sub {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-secondary);
  margin-bottom: 44px;
  max-width: 420px;
  font-weight: 400;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__email {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.014em;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 4px;
  width: fit-content;
  transition: color var(--t), border-color var(--t);
}
.contact__email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.contact__location,
.contact__assurance {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ---- Contact Form ---- */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.6;
}
@media (max-width: 600px) { .contact-form { padding: 32px 26px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.form-field input,
.form-field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font);
  font-weight: 400;
  color: var(--text-primary);
  transition: border-color var(--t), background var(--t);
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(245, 98, 42, 0.04);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

.form-success,
.form-error {
  display: none;
  padding: 16px 18px;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.5;
}
.form-success {
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
}
.form-error {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ff6b6b;
}
.form-error a {
  color: #ff9a9a;
  border-bottom: 1px solid rgba(255, 80, 80, 0.35);
  transition: color var(--t);
}
.form-error a:hover { color: #fff; }

/* =========================================
   Footer
   ========================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 36px;
  background: var(--bg-surface);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .footer__top {
    grid-template-columns: 1.3fr 2fr;
    gap: 80px;
  }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer__mark { height: 26px; width: auto; opacity: 0.85; }

.footer__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.014em;
}

.footer__tagline {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 280px;
  line-height: 1.6;
}

.footer__location {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 6px;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 480px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}

.footer__col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--t);
  font-weight: 400;
}
.footer__col ul li a:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
@media (min-width: 640px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer__bottom-meta {
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* =========================================
   Sticky Mobile CTA bar
   ========================================= */
.cta-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(6, 6, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  transform: translateY(120%);
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}
.cta-sticky.visible { transform: translateY(0); }

@media (min-width: 900px) {
  .cta-sticky { display: none; }
}

.cta-sticky__btn {
  width: 100%;
  font-size: 14px;
  padding: 14px 24px;
}

/* =========================================
   Legal pages (imprint, privacy)
   ========================================= */
.legal {
  padding-top: calc(72px + 84px);
  padding-bottom: 128px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .legal { padding-top: calc(72px + 52px); padding-bottom: 80px; }
}

.legal__header { margin-bottom: 72px; }

.legal__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.034em;
  line-height: 1.06;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.legal__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

.legal__body {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.legal__block-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.legal__block-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.legal__body p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-weight: 400;
}
.legal__body p:last-child { margin-bottom: 0; }

.legal__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}

.legal__body ul li {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  font-weight: 400;
}

.legal__body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1px;
  background: var(--accent);
}

.legal__body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.legal__body a {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-strong);
  transition: color var(--t), border-color var(--t);
}
.legal__body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================================
   Scroll fade-in
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-up.visible       { opacity: 1; transform: translateY(0); }
.fade-up.delay-1       { transition-delay: 100ms; }
.fade-up.delay-2       { transition-delay: 200ms; }
.fade-up.delay-3       { transition-delay: 300ms; }
.fade-up.delay-4       { transition-delay: 400ms; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-up { opacity: 1; transform: none; }
}
