/* ==========================================================================
   SKALA VENTURES — GLOBAL CSS STYLE SHEET
   Style: Architectural Minimalism, Masculine Elegance, Berlin night aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Text:ital,wght@0,400..800;1,400..800&display=swap');

:root {
  /* Color Palette */
  --color-canvas: #0F1113;        /* Deep matte graphite black */
  --color-structure: #2B2D31;     /* Premium anthracite, cool undertone */
  --color-structure-rgb: 43, 45, 49;
  --color-dominant: #FFFFFF;      /* Pure white */
  --color-body: #94A3B8;          /* Slate gray */
  --color-accent: #FF3B30;        /* Paramedics signal red */
  
  /* Layout & Grid */
  --grid-line-color: rgba(43, 45, 49, 0.12);
  --border-width: 1px;
  
  /* Fonts */
  --font-family: 'Wix Madefor Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Nav height */
  --nav-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-canvas);
  color: var(--color-body);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Hide default cursor on desktop devices that support hover */
@media (hover: hover) and (pointer: fine) {
  body, a, button, input, textarea, select {
    cursor: none !important;
  }
}

/* Custom Selection */
::selection {
  background-color: var(--color-structure);
  color: var(--color-dominant);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-canvas);
}

::-webkit-scrollbar-thumb {
  background: var(--color-structure);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-body);
}

/* --------------------------------------------------------------------------
   Persistent Background Grid
   -------------------------------------------------------------------------- */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 4rem;
}

.bg-grid-line {
  border-right: 1px solid var(--grid-line-color);
  height: 100%;
}

.bg-grid-line:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .bg-grid {
    padding: 0 1.5rem;
    grid-template-columns: repeat(2, 1fr);
  }
  .bg-grid-line:nth-child(n+3) {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-dominant);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--color-body);
}

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

/* --------------------------------------------------------------------------
   Custom Interactive Cursor
   -------------------------------------------------------------------------- */
.custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--color-dominant);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: difference;
  display: none;
}

/* When the cursor is active on fine-pointer devices */
@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor.hovering {
  width: 24px;
  height: 24px;
  background-color: transparent;
  border: 1px solid var(--color-dominant);
  mix-blend-mode: normal;
}

/* Docked cursor state */
.custom-cursor.docked {
  width: 12px;
  height: 12px;
  border-radius: 0;
  background-color: var(--color-accent);
  mix-blend-mode: normal;
  border: none;
  box-shadow: 0 0 10px var(--color-accent);
}

/* --------------------------------------------------------------------------
   Header / Navigation
   -------------------------------------------------------------------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background-color: rgba(15, 17, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-structure);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
}

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.skala-logo {
  height: 36px;
  width: auto;
}

/* Only override fill for header and footer logos, keep native colors for venture logos */
.logo-link .skala-logo path,
footer .skala-logo path {
  fill: var(--color-dominant);
  transition: fill 0.3s ease;
}

.logo-link:hover .skala-logo path {
  fill: var(--color-body);
}

nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-body);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: var(--color-dominant);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-dominant);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-dominant);
  font-size: 1.5rem;
  cursor: none;
}

@media (max-width: 768px) {
  header {
    padding: 0 1.5rem;
  }
  nav {
    display: none; /* simple mobile drawer or vertical stack in full implementation */
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background-color: var(--color-canvas);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 3rem;
  }
  nav.active {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   Common Structural Elements
   -------------------------------------------------------------------------- */
.container {
  max-width: 100%;
  padding: 0 4rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
}

section {
  padding: 8rem 0;
  border-bottom: 1px solid var(--color-structure);
  position: relative;
  z-index: 2;
}

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

@media (max-width: 768px) {
  .section-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(15, 17, 19, 0.85), rgba(15, 17, 19, 0.95)), url('berlin_hero.jpg');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) contrast(1.1) brightness(0.7);
  z-index: 0;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  width: 100%;
}

.hero-content {
  grid-column: 1 / span 3;
}

.hero-subtitle {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-body);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-subtitle::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-body);
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 3rem;
}

/* Interactive custom button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2.5rem;
  background-color: transparent;
  border: 1px solid var(--color-structure);
  color: var(--color-dominant);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  border-color: var(--color-dominant);
  background-color: rgba(255, 255, 255, 0.03);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .hero-content {
    grid-column: 1 / -1;
  }
}

/* --------------------------------------------------------------------------
   Data Grid Section
   -------------------------------------------------------------------------- */
.data-grid-section {
  padding: 4rem 0;
  background-color: rgba(20, 22, 24, 0.5);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--color-structure);
}

.data-col {
  padding: 3rem 4rem;
  border-right: 1px solid var(--color-structure);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.data-num {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-dominant);
  line-height: 1;
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.data-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-dominant);
  margin-bottom: 0.5rem;
}

.data-desc {
  font-size: 0.9rem;
  color: var(--color-body);
}

@media (max-width: 992px) {
  .data-grid {
    grid-template-columns: 1fr;
    border-left: none;
    border-top: 1px solid var(--color-structure);
  }
  .data-col {
    border-right: none;
    border-bottom: 1px solid var(--color-structure);
    padding: 2.5rem 1.5rem;
  }
  .data-col:last-child {
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   Kodex Section
   -------------------------------------------------------------------------- */
.kodex-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.kodex-sticky {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.kodex-list {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.kodex-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  opacity: 0.2;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(20px);
}

.kodex-item.active {
  opacity: 1;
  transform: translateY(0);
}

.kodex-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-dominant);
  line-height: 1;
}

.kodex-content h3 {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.kodex-content p {
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .kodex-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .kodex-sticky {
    position: static;
  }
  .kodex-logo-container {
    display: none !important;
  }
  .kodex-list {
    gap: 4rem;
  }
  .kodex-item {
    grid-template-columns: 50px 1fr;
    gap: 1rem;
    opacity: 0.5; /* more visible by default on mobile since scrolling behavior is fast */
  }
}

/* --------------------------------------------------------------------------
   Portfolio Section (Asymmetric Grid)
   -------------------------------------------------------------------------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  align-items: stretch;
}

.portfolio-card {
  background-color: rgba(20, 22, 24, 0.4);
  border: 1px solid var(--color-structure);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* The light-edge line that follows the cursor on hover */
.light-edge-line {
  position: absolute;
  background-color: var(--color-dominant);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 5;
}

.portfolio-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(20, 22, 24, 0.7);
}

.portfolio-card.paramedics {
  border-bottom: 2px solid var(--color-accent);
}

.portfolio-card.paramedics::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  box-shadow: 0 0 15px var(--color-accent);
}

.portfolio-card.security {
  border-bottom: 2px solid #0D294E;
}

.portfolio-card.security::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #0D294E;
  box-shadow: 0 0 15px #0D294E;
}

.portfolio-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--color-structure);
  width: fit-content;
  margin-bottom: 4rem;
}

.paramedics .portfolio-tag {
  color: var(--color-accent);
  border-color: rgba(255, 56, 56, 0.3);
  background-color: rgba(255, 56, 56, 0.05);
}

.security .portfolio-tag {
  color: #0D294E;
  border-color: rgba(13, 41, 78, 0.4);
  background-color: rgba(13, 41, 78, 0.08);
}

.portfolio-card-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.portfolio-desc {
  font-size: 1rem;
  margin-bottom: 3rem;
  max-width: 90%;
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-structure);
  padding-top: 2rem;
  margin-top: auto;
}

.portfolio-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-body);
  letter-spacing: 0.05em;
}

/* Empty Premium Card */
.portfolio-card.empty-structure {
  background: repeating-linear-gradient(
    45deg,
    rgba(43, 45, 49, 0.1),
    rgba(43, 45, 49, 0.1) 10px,
    rgba(43, 45, 49, 0.2) 10px,
    rgba(43, 45, 49, 0.2) 20px
  );
  border: 1px dashed var(--color-structure);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(148, 163, 184, 0.5);
  font-weight: 700;
}

@media (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Consulting Section
   -------------------------------------------------------------------------- */
.consulting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; /* creates thin line spacing combined with container background */
  background-color: var(--color-structure);
  border: 1px solid var(--color-structure);
}

.consulting-box {
  background-color: var(--color-canvas);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: background-color 0.3s ease;
}

.consulting-box:hover {
  background-color: rgba(20, 22, 24, 0.6);
}

.consulting-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-body);
  margin-bottom: 2rem;
  font-family: monospace;
}

.consulting-box h3 {
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.consulting-box p {
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .consulting-grid {
    grid-template-columns: 1fr;
    gap: 1px;
  }
  .consulting-box {
    padding: 3rem 2rem;
  }
}

/* Client Spotlight (Advisory) Styling */
.client-spotlight {
  margin-top: 5rem;
  border: 1px solid var(--color-structure);
  background-color: rgba(20, 22, 24, 0.2);
  padding: 4rem;
}

.client-spotlight-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-body);
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
  opacity: 0.8;
}

.client-spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.client-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  background-color: rgba(15, 17, 19, 0.4);
  border: 1px solid var(--color-structure);
  height: 180px;
}

.client-logo-img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.85) contrast(1.15);
  transition: filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-spotlight:hover .client-logo-img {
  filter: grayscale(0%) brightness(1.0) contrast(1.0);
  transform: scale(1.03);
}

.client-details h3 {
  font-size: 1.75rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.client-details p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-body);
  max-width: 90%;
}

.client-details p strong {
  color: var(--color-dominant);
  font-weight: 700;
}

@media (max-width: 768px) {
  .client-spotlight-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .client-spotlight {
    padding: 2.5rem;
    margin-top: 3rem;
  }
  .client-logo-box {
    height: 140px;
    padding: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Gründer / Founder Section
   -------------------------------------------------------------------------- */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.founders-intro-col {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-right: 1.5rem;
}

.founders-intro-col h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.founders-intro-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-body);
}

.founder-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-structure);
  background-color: rgba(20, 22, 24, 0.2);
}

.founder-image-wrapper {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--color-structure);
  position: relative;
}

.founder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.1) brightness(0.85);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.founder-card:hover .founder-image {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.0) brightness(1.0);
}

.founder-info {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.founder-role {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-body);
  letter-spacing: 0.2em;
  margin-bottom: 0.75rem;
}

.founder-name {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.founder-bio {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.founder-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-dominant);
  margin-top: auto;
}

.founder-link svg {
  transition: transform 0.3s ease;
}

.founder-link:hover svg {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .founders-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .founders-intro-col {
    grid-column: span 1;
    padding-right: 0;
  }
}

/* --------------------------------------------------------------------------
   Profile Page Layout
   -------------------------------------------------------------------------- */
.profile-hero {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 6rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 5rem;
}

.profile-portrait-column {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.profile-portrait-box {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--color-structure);
  overflow: hidden;
  background-color: rgba(20, 22, 24, 0.4);
}

.profile-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.15) brightness(0.9);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-portrait-box:hover .profile-portrait {
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.0) brightness(1.0);
}

.profile-details-column {
  display: flex;
  flex-direction: column;
}

.profile-meta-header {
  border-bottom: 1px solid var(--color-structure);
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
}

.profile-company {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-body);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.profile-name {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.profile-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-body);
}

.profile-content h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-structure);
  padding-bottom: 1rem;
}

.profile-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 4rem;
}

.focus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.focus-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-dominant);
}

.focus-icon {
  width: 12px;
  height: 12px;
  border: 1px solid var(--color-body);
  display: inline-block;
}

.vcard-section {
  border-top: 1px solid var(--color-structure);
  padding-top: 3rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .profile-portrait-column {
    position: static;
  }
  .profile-portrait-box {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Contact Form Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-subtitle {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 4rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-body);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

.contact-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dominant);
}

.contact-value a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-structure);
  padding-bottom: 0.75rem;
  position: relative;
}

.form-group::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-dominant);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group:focus-within::after {
  width: 100%;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-body);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.form-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-dominant);
  font-family: var(--font-family);
  font-size: 1rem;
  padding: 0.25rem 0;
  width: 100%;
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.3);
}

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

.form-submit-btn {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--color-structure);
  color: var(--color-dominant);
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1.25rem 2.5rem;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.3s, background-color 0.3s;
}

.form-submit-btn:hover {
  border-color: var(--color-dominant);
  background-color: rgba(255, 255, 255, 0.03);
}

.form-submit-btn svg {
  transition: transform 0.3s ease;
}

.form-submit-btn:hover svg {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--color-structure);
  background-color: var(--color-canvas);
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-body);
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-link-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-dominant);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--color-body);
}

.footer-link:hover {
  color: var(--color-dominant);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Legal Page Style
   -------------------------------------------------------------------------- */
.legal-section {
  padding-top: calc(var(--nav-height) + 6rem);
  padding-bottom: 8rem;
}

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

.legal-container h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--color-structure);
  padding-bottom: 2rem;
}

.legal-container h2 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-structure);
  padding-bottom: 0.75rem;
}

.legal-container h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.legal-container p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-container ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.legal-container li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

/* Outbound Project Link Buttons Styling */
.portfolio-link-btn,
.client-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-body);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.portfolio-link-btn svg,
.client-link-btn svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-link-btn:hover,
.client-link-btn:hover {
  color: var(--color-dominant);
}

.portfolio-link-btn:hover svg,
.client-link-btn:hover svg {
  transform: translate(2px, -2px);
}

/* Specific Accent colors on hover */
.paramedics .portfolio-link-btn:hover {
  color: var(--color-accent) !important;
}

.security .portfolio-link-btn:hover {
  color: #0D294E !important;
}

.client-link-btn {
  margin-top: 1.5rem;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.client-link-btn:hover {
  border-color: var(--color-dominant);
}
