/* ============================================================
   Domenic Vossen — vosventures.tech
   Modern portfolio aesthetic. Two-column sticky on desktop,
   collapses cleanly on mobile.
   ============================================================ */

/* --- Fonts (self-hosted Geist Variable, OFL) ---------------- */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('./fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens ------------------------------------------------- */

:root {
  --bg:           #FAFAF7;
  --bg-elevated:  #FFFFFF;
  --bg-subtle:    #F2F1EC;
  --ink:          #0A0A0A;
  --ink-strong:   #000000;
  --ink-muted:    #525252;
  --ink-subtle:   #8A8A8A;
  --border:       #E5E4DD;
  --border-soft:  #EDECE5;
  --accent:       #FF4F00;
  --accent-hover: #E54600;
  --status:       #10B981;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* --- Reset -------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

::selection { background: var(--ink); color: var(--bg); }

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

/* --- Layout ------------------------------------------------- */

.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Two-column on desktop, single column on mobile */
@media (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: clamp(4rem, 8vw, 7rem);
    min-height: 100vh;
  }
}

/* --- Sidebar (left, sticky on desktop) ---------------------- */

.sidebar {
  padding-top: clamp(2rem, 6vh, 4rem);
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding-top: 5rem;
    padding-bottom: 3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

.brand { margin-bottom: 2rem; }

.brand .role-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.brand .role-tag::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink-muted);
}

.brand .headshot {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 18px rgba(10, 10, 10, 0.08);
}

.brand h1 {
  font-family: var(--sans);
  font-size: clamp(1.875rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink-strong);
  margin-bottom: 0.875rem;
}

.brand .tagline {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
  max-width: 22em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 11px 6px 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 1.75rem;
}
.status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status);
  position: relative;
  flex-shrink: 0;
}
.status .dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--status);
  opacity: 0.4;
  animation: pulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.6); opacity: 0; }
}

/* Sidebar nav (jump links) */
.side-nav {
  margin-top: 2.5rem;
  display: none;
}
@media (min-width: 1024px) {
  .side-nav { display: block; }
}
.side-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.side-nav a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: color 0.15s ease, gap 0.2s ease;
}
.side-nav a::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease, background 0.15s ease;
}
.side-nav a:hover {
  color: var(--ink);
  gap: 0.85rem;
}
.side-nav a:hover::before { width: 32px; background: var(--ink); }

/* Sidebar contact + footer */
.sidebar-foot {
  margin-top: auto;
  padding-top: 2.5rem;
}
.sidebar-foot .links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.sidebar-foot .links a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-foot .links a .arrow {
  font-size: 10px;
  color: var(--ink-subtle);
  transition: transform 0.15s ease, color 0.15s ease;
}
.sidebar-foot .links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sidebar-foot .links a:hover .arrow { color: var(--accent); transform: translate(2px, -2px); }

.sidebar-foot .legal {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-subtle);
  line-height: 1.6;
}
.sidebar-foot .legal a {
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}
.sidebar-foot .legal a:hover { color: var(--ink); border-bottom-color: var(--border); }

/* On mobile, separate the foot a bit and fold contact differently */
@media (max-width: 1023px) {
  .sidebar-foot { padding-top: 2rem; border-top: 1px solid var(--border-soft); margin-top: 2rem; }
}

/* --- Main column -------------------------------------------- */

.main {
  padding-top: clamp(2rem, 5vh, 5rem);
  padding-bottom: 5rem;
  max-width: 660px;
}

@media (min-width: 1024px) {
  .main { padding-top: 5rem; }
}

section { padding: 2.5rem 0; scroll-margin-top: 2rem; }
section:first-child { padding-top: 0; }
section + section { border-top: 1px solid var(--border-soft); }

/* Section eyebrow with index */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin-bottom: 1.25rem;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow .label { color: var(--ink-muted); }

h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(1.375rem, 2.5vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin-bottom: 1rem;
  max-width: 24em;
}

p {
  margin-bottom: 0.875rem;
  color: var(--ink-muted);
  max-width: 38em;
}
p:last-child { margin-bottom: 0; }
p strong { color: var(--ink); font-weight: 500; }
p a {
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease, border-bottom-color 0.15s ease;
}
p a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* --- Module grid -------------------------------------------- */

.modules {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 1.25rem 0 1.25rem;
  border-top: 1px solid var(--border-soft);
}
@media (min-width: 600px) {
  .modules { grid-template-columns: 1fr 1fr; }
}

.modules li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
@media (min-width: 600px) {
  .modules li:nth-child(odd) { padding-right: 1.25rem; border-right: 1px solid var(--border-soft); }
  .modules li:nth-child(even) { padding-left: 1.25rem; }
}

.modules .num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  padding-top: 2px;
  flex-shrink: 0;
}
.modules h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.modules p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  margin: 0;
  letter-spacing: -0.005em;
}

.format {
  font-size: 13px;
  color: var(--ink-subtle);
  font-family: var(--mono);
  letter-spacing: -0.005em;
  line-height: 1.5;
  margin-top: 0.75rem;
}

/* --- Signal / fit list -------------------------------------- */

.signals {
  list-style: none;
  margin: 1rem 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.signals li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}
.signals li::before {
  content: "—";
  font-family: var(--mono);
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 1px;
}
.closing {
  font-size: 14px;
  color: var(--ink);
  margin-top: 0.5rem;
  max-width: 38em;
}

/* --- Contact CTA -------------------------------------------- */

.cta-block {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  align-items: flex-start;
  margin-top: 0.5rem;
}
.cta-email {
  font-family: var(--sans);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--ink-strong);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-bottom-color 0.15s ease, gap 0.2s ease;
}
.cta-email .arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-subtle);
  transition: transform 0.2s ease, color 0.15s ease;
}
.cta-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
  gap: 0.7rem;
}
.cta-email:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }

.cta-meta {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

/* --- About text variant ------------------------------------- */

.about p { color: var(--ink); }
.about p + p { margin-top: 0.875rem; }

/* --- Hero entry animation ----------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .sidebar > *,
  .main section {
    opacity: 0;
    transform: translateY(6px);
    animation: fadeIn 0.55s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .sidebar > *:nth-child(1) { animation-delay: 0.05s; }
  .sidebar > *:nth-child(2) { animation-delay: 0.13s; }
  .sidebar > *:nth-child(3) { animation-delay: 0.21s; }
  .sidebar > *:nth-child(4) { animation-delay: 0.29s; }
  .main section:nth-child(1) { animation-delay: 0.18s; }
  .main section:nth-child(2) { animation-delay: 0.26s; }
  .main section:nth-child(3) { animation-delay: 0.34s; }
  .main section:nth-child(4) { animation-delay: 0.42s; }
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Legal pages (Impressum / Datenschutz) ------------------ */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 4vw, 3rem) 5rem;
}
.legal-page .back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease;
}
.legal-page .back:hover { color: var(--accent); }
.legal-page h1 {
  font-family: var(--sans);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  margin-bottom: 0.5rem;
}
.legal-page > .meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-subtle);
  margin-bottom: 2.5rem;
}
.legal-page h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink-strong);
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  text-transform: none;
  max-width: none;
}
.legal-page p,
.legal-page address {
  font-size: 14px;
  font-style: normal;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 42em;
  margin-bottom: 0.875rem;
}
.legal-page address { margin-bottom: 1rem; }
.legal-page a { color: var(--ink); border-bottom: 1px solid var(--border); }
.legal-page a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.legal-page .placeholder {
  background: var(--bg-subtle);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.legal-page ul.signals { margin: 0.5rem 0 1.25rem; }

/* --- Mobile tightening -------------------------------------- */

@media (max-width: 1023px) {
  .main { max-width: none; padding-bottom: 3rem; }
  .layout { padding-bottom: 2rem; }
  .brand h1 { font-size: 2rem; }
  section { padding: 2rem 0; }
}
