/* Main layout styles - shared across all pages */

/* ============================================
   UNIFIED COLOR PALETTE
   Matching the warm Japandi aesthetic from additionalpages.css
   ============================================ */
:root {
  --color-bg: #faf8f5;
  --color-bg-card: rgba(255, 255, 255, 0.7);
  --color-text: #1a1a1a;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;
  
  /* Stone palette */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  
  /* Accent colors */
  --accent-clay: #c4a77d;
  --accent-primary: #11212D;
  --accent-secondary: #4A5C6A;
  
  /* Fonts */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-mono: 'Share Tech Mono', 'Courier New', monospace;
  --font-ui: 'Inter', -apple-system, sans-serif;
}

#map-container {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: auto;
}

@media only screen and (max-width: 767px) {
  #map-container {
    pointer-events: none;
  }
}

header {
  pointer-events: auto;
}

html {
  /* Ensure html covers entire viewport including safe area */
  background-color: transparent;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  /* Prevent body from creating gaps at safe area edges */
  min-height: 100vh;
  min-height: 100dvh;
}

/* Only hide overflow on pages with map */
body:has(#map-container) {
  overflow: hidden;
}

/* Allow scrolling on content pages */
.content-wrapper {
  overflow-y: auto;
  overflow-x: hidden;
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Monospace font for code elements */
code, pre, kbd, samp, tt {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
}

/* Sidebar styles - based on reference */
.nav-wrapper {
  padding: 9px;
  /* Safe area support (iOS 11.0-11.1 used constant(), 11.2+ uses env()) */
  padding-top: constant(safe-area-inset-top);
  padding-top: max(9px, env(safe-area-inset-top, 9px));
  padding-left: constant(safe-area-inset-left);
  padding-left: max(9px, env(safe-area-inset-left, 9px));
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: max(9px, env(safe-area-inset-bottom, 9px));
  width: 400px;
  max-width: 400px;
  min-width: 300px;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: auto;
  box-sizing: border-box;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, Opera */
.nav-wrapper::-webkit-scrollbar {
  display: none;
}

.sidebar {
  overflow-y: visible;
  background-color: rgba(250, 248, 245, 0.85);
  box-shadow: 0 0 0 1px var(--stone-200);
  border-radius: 11px;
  min-height: calc(100vh - 18px);
  padding: 15px;
  pointer-events: auto;
  box-sizing: border-box;
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  -moz-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

.nav-wrapper > *:last-child {
  margin-bottom: 35px;
}


/* ============================================
   SIDEBAR BEM STRUCTURE
   ============================================ */

/* Universal sidebar section - base styles with correct spacing */
.sidebar__section {
  margin-bottom: 0;
}

/* Divider between sections */
.sidebar__divider {
  border: 0;
  border-top: 1px solid var(--stone-200);
  margin: 12px 0;
  padding: 0;
}
.sidebar__section--large-projects {
  margin-top: 12px;
}
/* Section modifiers inherit base styles and can be extended here if needed */
/* .sidebar__section--header */
/* .sidebar__section--projects */
/* .sidebar__section--large-projects */
/* .sidebar__section--preferences */
/* .sidebar__section--footer */

/* ============================================
   UNIVERSAL SIDEBAR ELEMENTS
   ============================================ */

/* Title (h1) */
.sidebar__title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 12px;
  margin-top: 0;
  font-weight: bold;
  line-height: 130%;
  background: linear-gradient(to right, var(--stone-600), var(--stone-800));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtitle (h3) */
.sidebar__subtitle {
  font-family: var(--font-heading);
  padding: 0;
  margin: 0;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 18px;
  color: var(--stone-800);
}

.sidebar__subtitle .sidebar__link {
  color: inherit;
  text-decoration: none;
  opacity: 1;
  transition: 0.3s;
}

.sidebar__subtitle .sidebar__link:hover:not(.sidebar__link--disabled) {
  color: inherit;
  opacity: 1;
  text-decoration: underline;
  transition: 0s;
}

/* Text paragraph */
.sidebar__text {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 150%;
}

.sidebar__text:not(:last-child) {
  margin-bottom: 6px;
}

.sidebar__text--footer {
  margin-bottom: 5px;
}

.sidebar__text--footer-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
}

.sidebar__footer-links {
  white-space: nowrap;
  display: inline-block;
}

.sidebar__link--btc {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-block;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.sidebar__link--btc:hover {
  text-decoration: none !important;
}

.sidebar__text-title {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

/* Project container within large-projects section */
.sidebar__project {
  margin-bottom: 16px;
}

.sidebar__project:last-child {
  margin-bottom: 0;
}

/* Project title within large-projects section */
.sidebar__project-title {
  font-family: var(--font-heading);
  font-size: 16px;
  padding: 0;
  margin: 0;
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--stone-800);
}

.sidebar__project-title .sidebar__link {
  color: inherit;
  text-decoration: none;
  opacity: 1;
  transition: 0.3s;
}

.sidebar__project-title .sidebar__link:hover:not(.sidebar__link--disabled) {
  color: inherit;
  opacity: 1;
  text-decoration: underline;
  transition: 0s;
}

.sidebar__text strong .sidebar__link {
  color: inherit;
  text-decoration: none;
  opacity: 0.6;
  transition: 0.3s;
}

.sidebar__text strong .sidebar__link:hover:not(.sidebar__link--disabled) {
  color: inherit;
  opacity: 1;
  text-decoration: underline;
  transition: 0s;
}

/* Links */
.sidebar__link {
  color: var(--stone-800);
  text-decoration: none;
  opacity: 0.6;
  transition: 0.3s;
}

.sidebar__link:hover:not(.sidebar__link--disabled) {
  color: var(--stone-800);
  opacity: 1;
  text-decoration: underline;
  transition: 0s;
}

/* Splitter - centered dot */
.sidebar__splitter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px 2px 8px;
  width: 4px;
  vertical-align: middle;
}

.sidebar__splitter::before {
  content: '\2022';
  color: var(--stone-400);
  font-size: 12px;
  line-height: 1;
}

/* Menu */
.sidebar__menu {
  margin-top: 0;
  margin-bottom: 0;
  list-style-type: none;
  padding: 0;
}

.sidebar__menu-item {
  margin-left: 0;
  margin-right: 0;
  padding-top: 0;
  list-style-type: none;
  position: relative;
  display: inline-block;
}

.sidebar__menu-item:before {
  content: none;
}

.sidebar__menu-item:after {
  content: '\2022';
  color: var(--stone-400);
  font-size: 12px;
  position: relative;
  top: -1px;
  padding-right: 10px;
  left: 5px;
}

.sidebar__menu-item:last-child:after {
  content: none;
}

/* Main menu inherits base menu styles */

/* Social menu */
.sidebar__menu--social {
  padding: 3px 0px 9px 0px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.sidebar__menu--social .sidebar__menu-item:after {
  content: none;
}

.sidebar__menu--social ion-icon {
  font-size: 18px;
  vertical-align: middle;
}

/* Social links */
.sidebar__link--social {
  color: var(--stone-400);
  transition: 0.3s;
}

.sidebar__link--social:hover:not(.sidebar__link--disabled) {
  color: var(--stone-700);
  transition: 0s;
}

.sidebar__link--disabled {
  cursor: default;
  position: relative;
  color: var(--stone-400);
  opacity: 0.6;
}

.sidebar__link--disabled:hover {
  color: var(--stone-400);
  opacity: 0.6;
  text-decoration: none;
}

.sidebar__link--disabled::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 2px;
  background-color: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}

/* List */
.sidebar__list {
  margin-top: 0;
  margin-bottom: 0;
  list-style-type: none;
  padding: 0;
}

.sidebar__list-item {
  margin-left: 0;
  padding: 0;
  list-style-type: none;
  position: relative;
}

.sidebar__list-item:before {
  content: none;
}

.sidebar__list-item ion-icon {
  font-size: 16px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Project links in Projects section */
.sidebar__link--project {
  opacity: 1 !important;
  display: inline-flex;
  align-items: center;
}

.sidebar__link--project:hover:not(.sidebar__link--disabled) {
  opacity: 1 !important;
  text-decoration: none;
}

.sidebar__link--project .sidebar__link-text {
  text-decoration: none;
}

.sidebar__link--project:hover:not(.sidebar__link--disabled) .sidebar__link-text {
  text-decoration: underline;
}

.sidebar__link--project ion-icon {
  flex-shrink: 0;
}

/* Universal strong/bold */
.sidebar strong,
.sidebar b {
  font-weight: 600;
}

/* Legacy hr support (if needed) */
.sidebar hr:not(.sidebar__divider) {
  border: 1px solid var(--stone-200);
  border-width: 1px 0 0 0;
  margin: 20px 15px 0 15px;
  margin-right: 0;
}

/* Vancouver time display with breathing colon */
.vancouver-time {
  font-variant-numeric: tabular-nums;
}

.vancouver-time--hidden {
  visibility: hidden;
}

.time-colon {
  display: inline-block;
  animation: breathe 1s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Mobile styles - bottombar */
@media only screen and (max-width: 767px) {
  .nav-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    padding-top: 75vh;
    /* Safe area support for mobile - sides (iOS 11.0-11.1 used constant(), 11.2+ uses env()) */
    padding-left: 9px;
    padding-left: max(9px, constant(safe-area-inset-left));
    padding-left: max(9px, env(safe-area-inset-left, 9px));
    padding-right: 9px;
    padding-right: max(9px, constant(safe-area-inset-right));
    padding-right: max(9px, env(safe-area-inset-right, 9px));
    /* Bottom padding for safe area */
    padding-bottom: 9px;
    padding-bottom: max(9px, constant(safe-area-inset-bottom));
    padding-bottom: max(9px, env(safe-area-inset-bottom, 9px));
    min-width: 100%;
    height: auto;
    overflow-y: auto;
    z-index: 100;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    min-height: auto;
    border-radius: 11px;
    margin: 0;
    /* Safe area support - add bottom padding inside sidebar for home indicator */
    padding-bottom: 25px;
    padding-bottom: calc(25px + constant(safe-area-inset-bottom));
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px));
  }
}

/* iOS safe area - ensure content doesn't go behind home indicator */
@supports (padding: max(0px)) {
  @media only screen and (max-width: 767px) {
    .nav-wrapper {
      /* Re-apply with max() for browsers that support it */
      padding-bottom: max(9px, env(safe-area-inset-bottom));
    }
    
    .sidebar {
      /* Generous padding for home indicator area */
      padding-bottom: max(25px, calc(15px + env(safe-area-inset-bottom)));
    }
  }
}

/* ============================================
   CONTENT PAGES - JAPANDI STYLE
   ============================================ */

/* Content area for pages without map */
.content-wrapper {
  margin-left: 400px;
  min-height: 100vh;
  padding: 60px 80px;
  max-width: 1200px;
  pointer-events: auto;
  background-color: var(--color-bg);
}

/* Content wrapper with compact sidebar */
.nav-wrapper--compact ~ .content-wrapper,
.content-wrapper--with-compact-sidebar {
  margin-left: 320px;
}

/* Japandi style content container */
.content-container {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 11px;
  padding: 60px 80px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  min-height: calc(100vh - 120px);
  position: relative;
}

.content-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(17, 33, 45, 0.1), transparent);
}

/* Page title - Japandi style */
.page-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--stone-800);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Enhanced page title for whoami */
.page-title--hero {
  font-size: 72px;
  font-weight: 300;
  margin-bottom: 0;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* Page header with meta info */
.page-header {
  margin-bottom: 100px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(232, 232, 232, 0.5);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, var(--stone-800), transparent);
  opacity: 0.2;
}

.page-meta {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px;
  color: var(--stone-500);
  margin-top: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
}

.page-location,
.page-role {
  opacity: 0.7;
}

.page-divider {
  margin: 0 12px;
  opacity: 0.4;
}

/* Intro section */
.intro-section {
  margin-bottom: 120px;
  max-width: 88%;
  position: relative;
  padding-left: 40px;
}

.intro-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(17, 33, 45, 0.2), transparent);
}

.intro-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.8;
  color: var(--stone-800);
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Content text - Japandi style */
.content-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--stone-600);
  margin-bottom: 24px;
}

.content-text:last-child {
  margin-bottom: 0;
}

/* Content sections */
.content-section {
  margin-bottom: 48px;
}

.content-section:last-child {
  margin-bottom: 0;
}

/* Content grid for whoami */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 100px;
  margin-bottom: 120px;
}

.content-block {
  position: relative;
  padding-left: 100px;
  transition: all 0.4s ease;
}

.content-block:hover {
  padding-left: 105px;
}

.content-block:hover .block-number {
  opacity: 0.25;
  transform: scale(1.05);
}

.block-number {
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 300;
  color: var(--stone-800);
  opacity: 0.12;
  line-height: 1;
  transition: all 0.4s ease;
  letter-spacing: -0.02em;
}

.block-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 400;
  margin-bottom: 40px;
  color: var(--stone-800);
  line-height: 1.2;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 20px;
  transition: all 0.3s ease;
}

.content-block:hover .block-title {
  color: var(--stone-900);
}

.block-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(to right, var(--stone-800), transparent);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.content-block:hover .block-title::after {
  width: 70px;
  opacity: 0.6;
}

.content-block .content-text {
  font-size: 18px;
  line-height: 1.9;
  max-width: 92%;
  transition: all 0.3s ease;
}

.content-block:hover .content-text {
  color: var(--stone-600);
}

/* Page footer */
.page-footer {
  margin-top: 140px;
  padding-top: 50px;
  border-top: 1px solid rgba(232, 232, 232, 0.5);
  position: relative;
}

.page-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(to right, var(--stone-800), transparent);
  opacity: 0.2;
}

.footer-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  color: var(--stone-500);
  line-height: 1.8;
  font-style: italic;
  max-width: 85%;
}

/* Legacy card styles - keeping for other pages */
.content-card {
  background-color: rgba(250, 250, 250, 0.6);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid rgba(232, 232, 232, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(17, 33, 45, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.content-card:hover {
  border-color: rgba(17, 33, 45, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}

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

.content-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
  position: relative;
  padding-left: 16px;
}

.content-card h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(to bottom, var(--stone-800), rgba(41, 37, 36, 0.3));
  border-radius: 2px;
}

.content-highlight {
  font-size: 20px;
  line-height: 1.7;
  color: var(--stone-800);
  font-weight: 400;
  margin-bottom: 32px;
  padding-left: 24px;
  border-left: 2px solid var(--stone-800);
  opacity: 0.8;
  position: relative;
}

.content-highlight::before {
  content: '“';
  position: absolute;
  left: -8px;
  top: -8px;
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: var(--stone-800);
  opacity: 0.15;
  line-height: 1;
}

/* Decorative line separator */
.content-separator {
  width: 80px;
  height: 1px;
  background: linear-gradient(to right, var(--stone-800), transparent);
  margin: 48px 0;
  opacity: 0.3;
}

/* Enhanced link styles */
.content-text a,
.content-section a,
.content-card a {
  color: var(--stone-800);
  text-decoration: none;
  opacity: 0.7;
  border-bottom: 1px solid rgba(17, 33, 45, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.content-text a:hover,
.content-section a:hover,
.content-card a:hover {
  opacity: 1;
  border-bottom-color: var(--stone-800);
  padding-bottom: 1px;
}

/* Subtle animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.content-card:nth-of-type(1) {
  animation-delay: 0.1s;
}

.content-card:nth-of-type(2) {
  animation-delay: 0.2s;
}

.content-card:nth-of-type(3) {
  animation-delay: 0.3s;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced content text spacing */
.content-text + .content-text {
  margin-top: 20px;
}

/* Better visual hierarchy for featured section */
.content-section--featured .content-text {
  font-size: 17px;
  line-height: 1.75;
}

/* Section headings */
.content-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--stone-800);
  line-height: 1.3;
}

.content-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
  margin-top: 32px;
  color: var(--stone-800);
  line-height: 1.4;
}

/* Lists - Japandi style */
.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--stone-200);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--stone-600);
}

.content-list-item:last-child {
  border-bottom: none;
}

.content-list-item a {
  color: var(--stone-800);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.content-list-item a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Links in content */
.content-text a,
.content-section a {
  color: var(--stone-800);
  text-decoration: none;
  opacity: 0.7;
  border-bottom: 1px solid rgba(17, 33, 45, 0.3);
  transition: opacity 0.3s, border-color 0.3s;
}

.content-text a:hover,
.content-section a:hover {
  opacity: 1;
  border-bottom-color: var(--stone-800);
}

/* Mobile styles for content pages */
@media only screen and (max-width: 767px) {
  .content-wrapper {
    margin-left: 0;
    padding: 20px;
    margin-top: 0;
  }

  .content-container {
    padding: 40px 24px;
    min-height: auto;
  }

  .page-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .page-title--hero {
    font-size: 42px;
  }

  .page-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .content-section h2 {
    font-size: 28px;
  }

  .content-section h3 {
    font-size: 22px;
  }

  .content-card {
    padding: 24px;
  }

  .content-highlight {
    font-size: 18px;
    padding-left: 16px;
  }

  .content-section--featured {
    padding: 24px 0;
    margin-bottom: 48px;
  }

  .page-title--hero {
    font-size: 48px;
  }

  .page-header {
    margin-bottom: 60px;
    padding-bottom: 30px;
  }

  .intro-section {
    margin-bottom: 60px;
    max-width: 100%;
  }

  .intro-text {
    font-size: 20px;
  }

  .content-grid {
    gap: 60px;
    margin-bottom: 80px;
  }

  .content-block {
    padding-left: 60px;
  }

  .block-number {
    font-size: 36px;
  }

  .block-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .content-block .content-text {
    max-width: 100%;
  }

  .page-footer {
    margin-top: 80px;
    padding-top: 30px;
  }
}

/* Desktop: adjust for sidebar */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .content-wrapper {
    margin-left: 400px;
    padding: 40px 60px;
  }

  .content-container {
    padding: 50px 60px;
  }
}

/* ============================================
   COMPACT SIDEBAR FOR CONTENT PAGES
   ============================================ */

.sidebar--compact {
  padding: 20px 15px;
}

.sidebar--compact .sidebar__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.sidebar--compact .sidebar__text {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.sidebar--compact .sidebar__section {
  margin-bottom: 16px;
}

.sidebar--compact .sidebar__section--header {
  margin-bottom: 20px;
}

.sidebar--compact .sidebar__subtitle {
  font-size: 16px;
  margin-bottom: 8px;
}

.sidebar--compact .sidebar__list-item {
  margin-bottom: 4px;
}

.sidebar--compact .sidebar__list-item ion-icon {
  font-size: 14px;
}

.sidebar--compact .sidebar__link-text {
  font-size: 14px;
}

.sidebar--compact .sidebar__menu--social {
  padding: 6px 0px;
}

.sidebar--compact .sidebar__menu--social ion-icon {
  font-size: 16px;
}

.sidebar--compact .sidebar__divider {
  margin: 16px 0;
}

/* Compact sidebar wrapper */
.nav-wrapper--compact {
  width: 320px;
  max-width: 320px;
  min-width: 280px;
}

/* ============================================
   NEW WHOAMI PAGE DESIGN
   ============================================ */

/* New Sidebar for Whoami */
.whoami-sidebar {
  width: 120px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  background: linear-gradient(to bottom, var(--color-bg), var(--stone-50));
  border-right: 1px solid rgba(232, 232, 232, 0.6);
  z-index: 100;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.whoami-sidebar__inner {
  padding: 40px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.whoami-sidebar__header {
  margin-bottom: 60px;
}

.whoami-sidebar__logo {
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.whoami-sidebar__logo:hover {
  transform: scale(1.05);
}

.whoami-sidebar__logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--stone-800);
  letter-spacing: -0.02em;
  display: block;
}

.whoami-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.whoami-sidebar__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 12px 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.whoami-sidebar__nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 0;
  background: var(--stone-800);
  transition: height 0.3s ease;
  border-radius: 0 2px 2px 0;
}

.whoami-sidebar__nav-item:hover::before,
.whoami-sidebar__nav-item--active::before {
  height: 60%;
}

.whoami-sidebar__nav-number {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--stone-500);
  margin-bottom: 4px;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.whoami-sidebar__nav-label {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  color: var(--stone-600);
  font-weight: 400;
  transition: color 0.3s ease;
}

.whoami-sidebar__nav-item:hover .whoami-sidebar__nav-number,
.whoami-sidebar__nav-item--active .whoami-sidebar__nav-number {
  color: var(--stone-800);
}

.whoami-sidebar__nav-item:hover .whoami-sidebar__nav-label,
.whoami-sidebar__nav-item--active .whoami-sidebar__nav-label {
  color: var(--stone-800);
  font-weight: 500;
}

.whoami-sidebar__footer {
  margin-top: auto;
}

.whoami-sidebar__social {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.whoami-sidebar__social-link {
  color: var(--stone-500);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.whoami-sidebar__social-link:hover {
  color: var(--stone-800);
  background-color: rgba(17, 33, 45, 0.05);
  transform: scale(1.1);
}

/* Main Content Area */
.whoami-main {
  margin-left: 120px;
  min-height: 100vh;
  pointer-events: auto;
  background: var(--color-bg);
}

.whoami-main__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 60px;
}

/* Hero Section */
.whoami-hero {
  margin-bottom: 120px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(232, 232, 232, 0.5);
}

.whoami-hero__content {
  max-width: 700px;
}

.whoami-hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 96px;
  font-weight: 300;
  line-height: 1.05;
  color: var(--stone-800);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.whoami-hero__title-line {
  display: block;
}

.whoami-hero__subtitle {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  color: var(--stone-600);
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.whoami-hero__location {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  color: var(--stone-500);
  font-weight: 400;
  font-style: italic;
}

/* About Section */
.whoami-about {
  padding-top: 40px;
}

.whoami-about__intro {
  margin-bottom: 100px;
  max-width: 85%;
}

.whoami-about__intro-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  line-height: 1.75;
  color: var(--stone-800);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.whoami-about__sections {
  display: flex;
  flex-direction: column;
  gap: 100px;
  margin-bottom: 120px;
}

.whoami-about__section {
  position: relative;
}

.whoami-about__section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(232, 232, 232, 0.5);
}

.whoami-about__section-number {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 14px;
  color: var(--stone-500);
  font-weight: 400;
  letter-spacing: 0.1em;
  min-width: 32px;
}

.whoami-about__section-title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--stone-800);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0;
}

.whoami-about__section-content {
  padding-left: 56px;
}

.whoami-about__section-content p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.85;
  color: var(--stone-600);
  margin-bottom: 24px;
}

.whoami-about__section-content p:last-child {
  margin-bottom: 0;
}

.whoami-about__section-content a {
  color: var(--stone-800);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 33, 45, 0.3);
  transition: all 0.3s ease;
}

.whoami-about__section-content a:hover {
  border-bottom-color: var(--stone-800);
  opacity: 0.8;
}

.whoami-about__footer {
  padding-top: 60px;
  border-top: 1px solid rgba(232, 232, 232, 0.5);
  max-width: 85%;
}

.whoami-about__footer p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--stone-500);
  font-style: italic;
}

.whoami-about__footer a {
  color: var(--stone-800);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 33, 45, 0.3);
  transition: all 0.3s ease;
}

.whoami-about__footer a:hover {
  border-bottom-color: var(--stone-800);
}

/* Mobile Styles */
@media only screen and (max-width: 1024px) {
  .whoami-sidebar {
    width: 80px;
  }

  .whoami-sidebar__inner {
    padding: 30px 16px;
  }

  .whoami-sidebar__logo-text {
    font-size: 24px;
  }

  .whoami-sidebar__nav-number {
    font-size: 10px;
  }

  .whoami-sidebar__nav-label {
    font-size: 11px;
  }

  .whoami-main {
    margin-left: 80px;
  }

  .whoami-main__inner {
    padding: 60px 40px;
  }

  .whoami-hero__title {
    font-size: 64px;
  }
}

@media only screen and (max-width: 767px) {
  .whoami-sidebar {
    width: 100%;
    height: auto;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    border-right: none;
    border-top: 1px solid rgba(232, 232, 232, 0.6);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
  }

  .whoami-sidebar__inner {
    padding: 16px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .whoami-sidebar__header {
    margin-bottom: 0;
  }

  .whoami-sidebar__logo-text {
    font-size: 20px;
  }

  .whoami-sidebar__nav {
    flex-direction: row;
    gap: 4px;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    padding: 0 16px;
  }

  .whoami-sidebar__nav-item {
    padding: 8px 12px;
    min-width: 60px;
  }

  .whoami-sidebar__nav-item::before {
    left: auto;
    top: 0;
    right: 0;
    width: 100%;
    height: 2px;
    transform: none;
    border-radius: 2px 2px 0 0;
  }

  .whoami-sidebar__nav-item:hover::before,
  .whoami-sidebar__nav-item--active::before {
    height: 2px;
    width: 100%;
  }

  .whoami-sidebar__nav-number {
    margin-bottom: 2px;
  }

  .whoami-sidebar__social {
    flex-direction: row;
    gap: 12px;
  }

  .whoami-main {
    margin-left: 0;
    margin-bottom: 80px;
  }

  .whoami-main__inner {
    padding: 40px 24px;
  }

  .whoami-hero {
    margin-bottom: 80px;
    padding-bottom: 60px;
  }

  .whoami-hero__title {
    font-size: 48px;
  }

  .whoami-hero__subtitle {
    font-size: 18px;
  }

  .whoami-about__intro {
    margin-bottom: 60px;
    max-width: 100%;
  }

  .whoami-about__intro-text {
    font-size: 20px;
  }

  .whoami-about__sections {
    gap: 60px;
    margin-bottom: 80px;
  }

  .whoami-about__section-header {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
  }

  .whoami-about__section-title {
    font-size: 32px;
  }

  .whoami-about__section-content {
    padding-left: 0;
  }

  .whoami-about__section-content p {
    font-size: 16px;
  }

  .whoami-about__footer {
    max-width: 100%;
    padding-top: 40px;
  }
}

