:root {
  /* Font Family */
  --font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Font Sizes */
  --font-size-h1: 39px;
  --font-size-h2: 31px;
  --font-size-h3: 25px;
  --font-size-b1: 20px;
  --font-size-b2: 16px;
  --font-size-b3: 13px;
  --font-size-caption: 10px;

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-light: 300;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Color Styles */
  --bg-color: #FFFFFF; /* Using 'white 0' background */
  --bg-alt-color: #F8F9FA; /* Off-white for section variation */
  
  /* White Palette */
  --color-white-0: #FFFFFF;
  --color-white-100: #F5F5F5;
  --color-white-200: #E0E0E0;
  --color-white-300: #CCCCCC;
  --color-white-400: #B0B0B0;

  /* Black Palette */
  --color-black-0: #1E1E1E;
  --color-black-100: #1A1A1A;
  --color-black-200: #121212;
  --color-black-300: #0A0A0A;
  --color-black-400: #000000;

  /* Transitions */
  --transition-speed-fast: 0.15s;
  --transition-speed-normal: 0.25s;
  --transition-speed-slow: 0.6s;
  --transition-bezier: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  color: var(--color-black-400); /* Dark text on white background */
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  height: auto;
  line-height: 1.5;
}

/* Typography Styles */
h1, .h1 {
  font-family: var(--font-family);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

h2, .h2 {
  font-family: var(--font-family);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

h3, .h3 {
  font-family: var(--font-family);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.b1 {
  font-family: var(--font-family);
  font-size: var(--font-size-b1);
  font-weight: var(--font-weight-regular);
}

p, .b2 {
  font-family: var(--font-family);
  font-size: var(--font-size-b2);
  font-weight: var(--font-weight-regular);
}

.b3 {
  font-family: var(--font-family);
  font-size: var(--font-size-b3);
  font-weight: var(--font-weight-regular);
}

.caption {
  font-family: var(--font-family);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-regular);
}

/* Layout Utilities */
.section-container {
  padding: 6rem 2rem;
  width: 100%;
}

.bg-alt {
  background-color: var(--bg-alt-color);
}

.content-width {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  margin-bottom: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   MINIMAL NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 150;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-b2);
  text-decoration: none;
  color: var(--color-black-400);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-size: var(--font-size-b3);
  color: #666;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-speed-fast) ease;
}

.nav-links a:hover {
  color: var(--color-black-400);
}

/* ==========================================================================
   BUTTON COMPONENT & VARIANT STYLES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  text-align: center;
  vertical-align: middle;
  transition: 
    background-color var(--transition-speed-fast) var(--transition-bezier),
    border-color var(--transition-speed-fast) var(--transition-bezier),
    color var(--transition-speed-fast) var(--transition-bezier),
    box-shadow var(--transition-speed-fast) var(--transition-bezier),
    transform var(--transition-speed-fast) var(--transition-bezier);
}

.btn:focus-visible {
  outline: 2px solid var(--color-black-400);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-lg {
  font-size: var(--font-size-b2);
  padding: 12px 24px;
  border-radius: 8px;
  gap: 8px;
}

.btn-md {
  font-size: var(--font-size-b3);
  padding: 10px 20px;
  border-radius: 8px;
  gap: 6px;
}

.btn-sm {
  font-size: var(--font-size-caption);
  padding: 6px 12px;
  border-radius: 4px;
  gap: 4px;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background-color: var(--color-black-400);
  color: var(--color-white-0);
}

.btn-primary:hover {
  background-color: var(--color-black-200);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  background-color: var(--color-black-0);
}

.btn-secondary {
  background-color: transparent;
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--color-black-400);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.04);
  border-color: var(--color-black-400);
}

.btn-secondary:active {
  background-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   HERO SCATTERED CARDS DESIGN
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-container {
  position: relative;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-center-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
  padding: 3rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.welcome-text {
  color: var(--color-black-400);
  margin-bottom: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.subtitle {
  color: #666;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.ai-credit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -0.2rem;
  margin-bottom: 2.2rem;
  font-family: var(--font-family);
  font-size: var(--font-size-caption);
  color: #666;
}

.ai-note-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  object-fit: contain;
}

.ai-details-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: opacity var(--transition-speed-fast) ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ai-details-link:hover {
  opacity: 0.8;
}

.ai-details-link .arrow {
  transition: transform var(--transition-speed-fast) ease;
  font-family: var(--font-family);
}

.ai-details-link:hover .arrow {
  transform: translateX(3px);
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.hero-socials a {
  font-size: 18px;
  color: #777;
  transition: color var(--transition-speed-fast) ease, transform var(--transition-speed-fast) ease;
  display: inline-block;
}

.hero-socials a:hover {
  color: var(--color-black-400);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SCATTERED CARDS DESIGN
   ========================================================================== */
.cards-space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tool-card {
  position: absolute;
  pointer-events: auto;
  width: 100px;
  height: 100px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  left: var(--left);
  top: var(--top);
  transform: translate(-50%, -50%) rotate(var(--card-tilt)) scale(1);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12), 0 6px 18px rgba(0, 0, 0, 0.05);
  transition: 
    transform var(--transition-speed-slow) var(--transition-bezier),
    box-shadow var(--transition-speed-slow) var(--transition-bezier),
    border-color var(--transition-speed-slow) var(--transition-bezier);
  animation: float-shake 8s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.tool-label {
  font-size: 10px;
  font-weight: var(--font-weight-semibold);
  margin-top: 0.4rem;
  letter-spacing: -0.01em;
  opacity: 0.8;
}

.icon-container {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-icon-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Card Theme Configurations */
.card-java, .card-tableau, .card-claude, .card-claude-code, .card-database, .card-bitbybit {
  background-color: var(--color-white-0);
  color: var(--color-black-400);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.card-java .tool-label, .card-tableau .tool-label, .card-claude .tool-label, .card-claude-code .tool-label, .card-database .tool-label, .card-bitbybit .tool-label {
  color: rgba(0, 0, 0, 0.6);
}

.card-capcut, .card-figma {
  background-color: #18181B;
  color: var(--color-white-0);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.card-capcut .tool-label, .card-figma .tool-label {
  color: rgba(255, 255, 255, 0.6);
}

.card-office {
  background-color: #D83B01;
  color: var(--color-white-0);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-codex {
  background-color: #0F172A;
  color: var(--color-white-0);
  border: 1px solid rgba(59, 130, 246, 0.2);
}
.codex-tool-icon { color: #fff; font-size: 29px; }

.card-framer {
  background-color: #00A3FF;
  color: var(--color-white-0);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-github {
  background-color: #6F42C1;
  color: var(--color-white-0);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-canva {
  background: linear-gradient(135deg, #00C4CC, #7D2AE8);
  color: var(--color-white-0);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-card:hover {
  transform: translate(-50%, -62%) rotate(0deg) scale(1.15) !important;
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.22), 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 100;
  cursor: pointer;
  animation-play-state: paused;
}

@keyframes float-shake {
  0% { transform: translate(-50%, -50%) rotate(var(--card-tilt)) translateY(0px) translateX(0px); }
  25% { transform: translate(-50%, -50%) rotate(calc(var(--card-tilt) + 3deg)) translateY(-4px) translateX(-2px); }
  50% { transform: translate(-50%, -50%) rotate(calc(var(--card-tilt) - 2.5deg)) translateY(-15px) translateX(3px); }
  75% { transform: translate(-50%, -50%) rotate(calc(var(--card-tilt) + 2deg)) translateY(-6px) translateX(-1px); }
  100% { transform: translate(-50%, -50%) rotate(var(--card-tilt)) translateY(0px) translateX(0px); }
}


/* ==========================================================================
   ABOUT ME & EXPERIENCE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.bio-lead {
  font-size: var(--font-size-b1);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.bio-body {
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.subtitle-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--font-size-caption);
  color: #888;
  margin-bottom: 0.8rem;
  font-weight: var(--font-weight-semibold);
}

/* Tools badges grid */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tool-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-alt-color);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  font-size: var(--font-size-b3);
  font-weight: var(--font-weight-medium);
  color: #444;
}

.about-experience {
  background: var(--bg-alt-color);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.block-title {
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-b2);
}

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

.timeline-item {
  display: flex;
  gap: 1rem;
}

.timeline-badge {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-semibold);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-white-0);
  border: 1px solid rgba(0, 0, 0, 0.1);
  height: fit-content;
  white-space: nowrap;
}

.timeline-role {
  font-weight: var(--font-weight-semibold);
}

.timeline-company {
  color: #666;
}

.timeline-date {
  color: #999;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  cursor: pointer;
  background: var(--color-white-0);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-speed-normal) var(--transition-bezier), box-shadow var(--transition-speed-normal) var(--transition-bezier);
}

.project-card-layout:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.project-card-layout:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.project-card-layout.reverse {
  direction: rtl;
}

.project-card-layout.reverse .project-info-side {
  direction: ltr;
}

.project-info-side {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tag-accent {
  color: #888;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-weight: 800;
  margin-bottom: 1rem;
}

.project-meta-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.pill {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  padding: 4px 10px;
  background: var(--bg-alt-color);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-section-block {
  margin-bottom: 1.5rem;
}

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

.label-title {
  font-weight: var(--font-weight-bold);
  color: var(--color-black-100);
  margin-bottom: 0.4rem;
}

.bullet-list {
  list-style: none;
  padding-left: 0;
}

.bullet-list li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.4rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0.2rem;
  color: #888;
}

.project-visual-side {
  position: relative;
  background: #F3F4F6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  transition: transform var(--transition-speed-slow) var(--transition-bezier);
}

.project-card-layout:hover .visual-placeholder {
  transform: scale(1.03);
}

.and-visual {
  background: radial-gradient(circle, #2E2E2E 0%, #111111 100%);
  color: #FFFFFF;
}

.aesthetic-scent-logo {
  font-family: var(--font-family);
  font-size: 48px;
  letter-spacing: -0.05em;
  font-weight: 300;
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.spotify-visual {
  background: #19E68C; /* Spotify Green variant */
  color: #000000;
}

.aesthetic-spotify-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-size: 20px;
}

.aesthetic-spotify-screen i {
  font-size: 64px;
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.footer-section {
  padding: 4rem 2rem 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background-color: var(--color-white-0);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 868px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .project-card-layout,
  .project-card-layout.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  
  .project-card-layout.reverse .project-info-side {
    direction: ltr;
  }
  
  .project-visual-side {
    order: -1;
  }
  
  .visual-placeholder {
    min-height: 250px;
  }
}

/* ==========================================================================
   FLOATING AI PROCESS BUTTON & MODAL
   ========================================================================== */


/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card Box */
.modal-box {
  background: var(--color-white-0);
  border-radius: 24px;
  width: 500px;
  max-width: 90%;
  padding: 2.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s var(--transition-bezier);
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-speed-fast) ease;
}

.modal-close-btn:hover {
  color: var(--color-black-400);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 1.5rem;
}

.modal-icon {
  font-size: 36px;
  color: #a78bfa;
  margin-bottom: 0.8rem;
}

/* Timeline in Modal */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  font-size: var(--font-size-b2);
  font-weight: var(--font-weight-bold);
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.step-title {
  font-weight: var(--font-weight-semibold);
  color: var(--color-black-400);
  margin-bottom: 0.2rem;
}

.step-desc {
  color: #666;
  line-height: 1.4;
}

/* ========================================================================
   PORTFOLIO DESIGN SYSTEM — Apple-inspired gallery
   ======================================================================== */
:root {
  color-scheme: light;
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family: var(--font-text);
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --ink-muted: #333333;
  --body-muted: #cccccc;
  --muted: #7a7a7a;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --dark-tile: #272729;
  --dark-tile-2: #2a2a2c;
  --dark-tile-3: #252527;
  --hairline: #e0e0e0;
  --bg-color: var(--canvas);
  --bg-alt-color: var(--parchment);
  --color-white-0: #ffffff;
  --color-black-400: var(--ink);
  --font-size-h1: 56px;
  --font-size-h2: 40px;
  --font-size-h3: 21px;
  --font-size-b1: 24px;
  --font-size-b2: 17px;
  --font-size-b3: 14px;
  --font-size-caption: 12px;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 600;
}

html { scroll-padding-top: 60px; }
body {
  color: var(--ink);
  background: var(--canvas);
  font: 400 17px/1.47 var(--font-text);
  letter-spacing: -0.374px;
}
h1, h2, h3, h4, .h1, .h2, .h3 { font-family: var(--font-display); }
h1, .h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 600; line-height: 1.07; letter-spacing: -0.028em; }
h2, .h2 { font-size: clamp(30px, 3.5vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; }
h3, .h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
p, .b2 { font: 400 17px/1.47 var(--font-text); letter-spacing: -0.374px; }
.b1 { font: 300 24px/1.5 var(--font-text); letter-spacing: 0; }
.b3 { font: 400 14px/1.43 var(--font-text); letter-spacing: -0.224px; }
.caption { font: 400 12px/1.3 var(--font-text); letter-spacing: -0.12px; }
.section-container { padding: 80px 32px; }
.content-width { max-width: 1200px; }
.section-title { margin-bottom: 48px; letter-spacing: -0.025em; }

.navbar {
  height: 44px;
  background: rgba(0, 0, 0, 0.92);
  border: 0;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-container { max-width: 1264px; padding: 0 32px; }
.logo { color: #fff; font: 600 18px/1 var(--font-display); letter-spacing: -.035em; }
.logo span { color: var(--primary); }
.nav-links { gap: 32px; }
.nav-links a { display: flex; min-height: 44px; align-items: center; color: rgba(255,255,255,.8); font: 400 14px/1.43 var(--font-text); }
.nav-links a:hover, .logo:hover { color: #fff; }
.nav-links a.nav-contact-link { min-height: 40px; gap: 8px; padding: 0 18px; border-radius: 9999px; background: var(--primary); color: #fff; font-weight: 600; }
.nav-links a.nav-contact-link span { font-size: 18px; line-height: 1; }
.nav-links a.nav-contact-link:hover { background: var(--primary-focus); color: #fff; }
.nav-menu-toggle { display: none; }

.btn { font-family: var(--font-text); font-weight: 400; box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 3px;
}
.btn:active { transform: scale(.95); }
.btn-lg, .btn-md { min-height: 44px; padding: 11px 22px; border-radius: 9999px; font-size: 17px; }
.btn-primary, .btn-primary:hover, .btn-primary:active { color: #fff; background: var(--primary); }
.btn-primary:hover { opacity: .9; }
.btn-secondary { color: var(--primary); background: #fff; border-color: transparent; border-radius: 9999px; }
.btn-secondary:hover, .btn-secondary:active { color: var(--primary); background: var(--parchment); border-color: transparent; }

.hero-wrapper { min-height: 720px; height: 100svh; background: var(--canvas); }
.hero-container { max-width: 1440px; padding: 44px 32px 24px; }
.hero-center-content { max-width: 720px; padding: 24px; }
.welcome-text { color: var(--ink); margin-bottom: 12px; font-weight: 600; }
.subtitle { color: var(--muted); font-size: 21px; font-weight: 400; letter-spacing: 0; margin-bottom: 24px; }
.hero-actions { gap: 12px; margin-bottom: 14px; }
.ai-credit-note { color: var(--muted); font: 400 12px/1.4 var(--font-text); margin: 0 0 28px; }
.ai-details-link { color: var(--primary); font-weight: 400; }
.ai-details-link:hover { opacity: 1; text-decoration: underline; }
.hero-socials { gap: 24px; }
.hero-socials a { color: var(--muted); font-size: 17px; }
.hero-socials a:hover { color: var(--primary); transform: none; }

/* Hero style prototype controller */
.hero-style-controller {
  position: absolute;
  z-index: 30;
  top: 72px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(29, 29, 31, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 18px rgba(29, 29, 31, .06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.hero-style-controller-label { padding: 0 8px; color: var(--muted); font: 600 11px/1 var(--font-text); }
.hero-style-controller button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 999px; color: var(--ink-muted); background: transparent; font: 500 11px/1 var(--font-text); cursor: pointer; transition: color 180ms ease, background 180ms ease; }
.hero-style-controller button[aria-pressed="true"] { color: #fff; background: var(--ink); }
.hero-style-controller button:focus-visible { outline: 2px solid var(--primary-focus); outline-offset: 2px; }
.hero-new-layout { display: none; }

/* Portrait-led hero preview */
#home[data-hero-mode="new"] {
  height: auto;
  min-height: 100svh;
  overflow: visible;
  background: #f4f4f2;
}
#home[data-hero-mode="new"] .hero-container {
  height: auto;
  min-height: 100svh;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 112px 48px 36px;
}
#home[data-hero-mode="new"] .hero-center-content,
#home[data-hero-mode="new"] .cards-space { display: none; }
#home[data-hero-mode="new"] .hero-new-layout {
  width: 100%;
  max-width: 1240px;
  flex: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(280px, 360px) minmax(230px, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 18px 48px;
}
.hero-new-heading { grid-column: 1 / -1; text-align: center; }
.hero-new-eyebrow { margin-bottom: 12px; color: var(--muted); font: 600 11px/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.hero-new-heading h2 { color: #202020; font: 600 clamp(52px, 7vw, 88px)/.98 "Arial Narrow", "Aptos Narrow", var(--font-display); letter-spacing: -.045em; }
.hero-new-services { grid-column: 1; grid-row: 2; align-self: center; }
.hero-new-services > h3 { margin-bottom: 24px; color: #202020; font: 600 18px/1.2 var(--font-display); }
.hero-service-item { display: grid; grid-template-columns: 36px 1fr; align-items: start; gap: 12px; margin: 0 0 20px; }
.hero-service-icon { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(29,29,31,.1); border-radius: 8px; color: #343434; background: rgba(255,255,255,.66); }
.hero-service-item h4 { margin: 1px 0 4px; color: #242424; font: 600 13px/1.25 var(--font-text); }
.hero-service-item p { max-width: 220px; color: #777; font: 400 12px/1.5 var(--font-text); letter-spacing: 0; }
.hero-new-portrait { position: relative; grid-column: 2; grid-row: 2; align-self: end; width: 100%; height: clamp(330px, 48vh, 470px); margin: 0; overflow: hidden; border: 1px solid rgba(29,29,31,.08); border-bottom: 0; border-radius: 18px 18px 0 0; background: #e6e4de; box-shadow: 0 18px 42px rgba(29,29,31,.08); }
.hero-new-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.hero-new-portrait figcaption { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; color: #3b3b3b; background: rgba(255,255,255,.75); font: 500 10px/1 var(--font-text); backdrop-filter: blur(8px); }
.hero-new-intro { grid-column: 3; grid-row: 2; align-self: center; }
.hero-new-kicker { margin-bottom: 12px; color: var(--muted); font: 500 10px/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.hero-new-intro h3 { margin-bottom: 12px; color: #202020; font: 600 clamp(20px, 2vw, 25px)/1.2 var(--font-display); }
.hero-new-summary { max-width: 360px; margin-bottom: 20px; color: #747474; font: 400 13px/1.65 var(--font-text); letter-spacing: 0; }
.hero-new-intro .btn { min-height: 40px; padding: 9px 16px; font-size: 13px; }
.hero-new-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(29,29,31,.13); }
.hero-new-stats div { display: grid; gap: 6px; }
.hero-new-stats dt { color: #808080; font: 400 10px/1.25 var(--font-text); }
.hero-new-stats dd { color: #252525; font: 600 21px/1 var(--font-display); letter-spacing: -.03em; }
.hero-new-stats dd span { font: 400 10px/1 var(--font-text); letter-spacing: 0; }
.hero-new-socials { justify-content: flex-start; gap: 18px; margin-top: 24px; }
.hero-new-socials a { color: #777; font-size: 15px; }
.hero-new-socials a:hover { color: var(--primary); }

/* Floating tool marks remain part of the hero, with quiet gallery surfaces. */
.tool-card {
  width: 88px;
  height: 88px;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 18px;
  background: rgba(250,250,252,.94) !important;
  color: var(--ink) !important;
  box-shadow: none;
  animation: float-shake 12s ease-in-out infinite alternate;
}
.tool-card .tool-label, .card-java .tool-label, .card-tableau .tool-label,
.card-claude .tool-label, .card-claude-code .tool-label, .card-database .tool-label,
.card-bitbybit .tool-label, .card-capcut .tool-label, .card-figma .tool-label { color: var(--muted); }
.tool-card:hover { transform: translate(-50%, -55%) rotate(0) scale(1.04) !important; box-shadow: none; }
.tool-label { font-size: 10px; font-weight: 600; }
.icon-container { width: 40px; height: 40px; }

.bg-alt, .about-experience { background: var(--parchment); }
.about-grid { gap: 48px; }
.bio-lead { font-size: 24px; line-height: 1.5; }
.bio-body { color: #424245; line-height: 1.47; }
.subtitle-uppercase, .tag-accent { color: var(--muted); font-size: 12px; letter-spacing: .02em; }
.tool-badge, .timeline-badge, .pill {
  color: var(--ink-muted);
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 400;
}
.about-experience { padding: 24px; border: 0; border-radius: 18px; }
.timeline { gap: 24px; }
.timeline-role { font-weight: 600; }
.timeline-company { color: #424245; }
.timeline-date { color: var(--muted); }

#projects.section-container { padding: 0 32px 80px; }
.selected-work-intro {
  position: sticky;
  top: 44px;
  z-index: 0;
  pointer-events: none;
  height: calc(100svh - 44px);
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
  will-change: opacity, transform;
  transition: opacity 80ms linear;
}
.selected-work-intro-content { max-width: 900px; padding: 40px 24px 56px; }
.selected-work-kicker { margin-bottom: 24px; color: var(--muted); font: 600 12px/1.3 var(--font-text); letter-spacing: .08em; text-transform: uppercase; }
.selected-work-title { margin: 0; font: 600 clamp(76px, 14vw, 184px)/.82 var(--font-display); letter-spacing: -.075em; }
.selected-work-title span { color: var(--primary); }
.selected-work-subtitle { max-width: 520px; margin: 28px auto 0; color: #424245; font: 400 clamp(16px, 2vw, 21px)/1.45 var(--font-text); letter-spacing: 0; }
.selected-work-scroll { display: inline-flex; align-items: center; gap: 10px; margin-top: 48px; color: var(--muted); font: 400 12px/1.3 var(--font-text); }
.project-content { margin: 0 auto; }
.projects-list { display: flex; flex-direction: column; gap: 0; padding-bottom: 8vh; }
.project-card-layout, .project-card-layout:hover {
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, .08);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(29, 29, 31, .035);
  transform: translateY(0);
  transition: opacity 100ms linear, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.project-card-layout:hover { border-color: rgba(29, 29, 31, .14); box-shadow: 0 12px 28px rgba(29, 29, 31, .08); transform: translateY(-3px); }
@media (hover: none), (pointer: coarse) {
  .project-card-layout:hover,
  .project-card-layout:active { border-color: rgba(29, 29, 31, .08); box-shadow: 0 2px 12px rgba(29, 29, 31, .035); transform: none; }
  .project-card-layout:hover .project-card-image img { opacity: 1; }
}
.project-card-layout { position: sticky; z-index: 1; top: 76px; margin-bottom: 32px; align-self: start; }
.project-card-layout:nth-child(2) { top: 88px; }
.project-card-layout:nth-child(3) { top: 100px; }
.project-card-layout:nth-child(4) { top: 112px; }
.project-card-layout:nth-child(5) { top: 124px; }
.project-card-layout:nth-child(6) { top: 136px; }
.project-card-layout.reverse { direction: rtl; }
.project-info-side { padding: clamp(28px, 4vw, 48px); }
.project-title { font-weight: 600; letter-spacing: -.025em; }
.project-meta-pills { margin-bottom: 24px; }
.pill { padding: 5px 12px; background: var(--parchment); border: 0; }
.project-section-block { margin-bottom: 20px; }
.label-title { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
.case-study-link { align-self: flex-start; margin-top: 8px; }
.project-visual-side { min-height: 420px; margin: 12px; background: var(--parchment); border-radius: 14px; overflow: hidden; }
.visual-placeholder { min-height: 420px; }
.and-visual, .and-visual:hover { color: #fff; background: var(--dark-tile); }
.aesthetic-scent-logo { font-family: var(--font-display); font-size: 56px; font-weight: 400; letter-spacing: -.04em; text-shadow: none; }
.spotify-visual, .spotify-visual:hover { color: #fff; background: var(--dark-tile-2); }
.aesthetic-spotify-screen { font: 600 21px/1.2 var(--font-display); }
.aesthetic-spotify-screen i { color: var(--primary-on-dark); }
.bitcrm-visual, .bitcrm-visual:hover { color: #fff; background: var(--dark-tile-3); }
.satudata-visual, .satudata-visual:hover { color: var(--ink); background: var(--parchment); }
.satudata-visual .aesthetic-scent-logo { font-size: 44px; }
.bullet-list li::before { content: "•"; color: var(--muted); }

.footer-section { padding: 64px 32px; background: var(--parchment); border: 0; }
.footer-section .caption { color: var(--muted); }
.modal-overlay { background: rgba(0,0,0,.48); backdrop-filter: blur(8px); }
.modal-box { border-radius: 18px; padding: 32px; box-shadow: 0 5px 30px rgba(0,0,0,.22); }
.modal-header { border-color: rgba(0,0,0,.08); }
.modal-icon, .step-num { color: var(--primary); }
.step-num { background: var(--parchment); border-radius: 50%; }
.step-title { font-weight: 600; }
.step-desc { color: #424245; line-height: 1.47; }

/* Dedicated project case-study pages */
.case-study-page { padding-top: 44px; }
.case-study-hero { padding-top: 64px; padding-bottom: 64px; background: var(--canvas); }
.case-study-hero .content-width { max-width: 1040px; }
.case-study-back { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font: 400 14px/1.4 var(--font-text); text-decoration: none; }
.case-study-back:hover { text-decoration: underline; }
.case-study-eyebrow { margin: 40px 0 12px; color: var(--muted); font: 600 12px/1.3 var(--font-text); letter-spacing: .02em; }
.case-study-hero h1 { max-width: 900px; margin-bottom: 16px; }
.case-study-deck { max-width: 760px; color: #424245; font: 300 24px/1.5 var(--font-text); letter-spacing: 0; }
.case-study-meta { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 32px; }
.case-study-meta div { display: grid; gap: 6px; }
.case-study-meta dt { color: var(--muted); font: 400 12px/1.3 var(--font-text); }
.case-study-meta dd { color: var(--ink); font: 600 14px/1.3 var(--font-text); }
.case-study-content { padding: 8px 32px 64px; background: var(--canvas); }
.case-study-content .content-width { max-width: 1040px; }
.case-study-hero-visual { max-width: 1200px; margin: 0 auto 48px; padding: 0 32px; }
.case-study-hero-visual img { display: block; width: 100%; max-height: 680px; object-fit: cover; border-radius: 18px; background: var(--parchment); }
.case-study-hero-visual figcaption { margin-top: 10px; color: var(--muted); font: 400 12px/1.4 var(--font-text); }
.case-study-process-visual { max-width: 960px; margin: 24px auto 40px; padding: 0 32px; }
.case-study-process-visual img { display: block; width: 100%; height: auto; border: 1px solid var(--divider-soft); border-radius: 14px; background: #fff; }
.case-study-process-visual figcaption { margin-top: 10px; color: var(--muted); font: 400 12px/1.4 var(--font-text); }
.project-card-image { overflow: hidden; background: var(--parchment); border-radius: 14px; }
.project-card-image img { display: block; width: 100%; height: 100%; min-height: 396px; object-fit: cover; transition: opacity 250ms ease; }
.project-card-layout:hover .project-card-image img { opacity: .96; }
.case-study-section { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 48px; padding: 40px 0; border-top: 1px solid var(--divider-soft); }
.case-study-section > h2 { margin: 0; font: 600 21px/1.25 var(--font-display); letter-spacing: -.2px; }
.case-study-body { display: grid; gap: 16px; max-width: 720px; }
.case-study-body p, .case-study-body li { color: #424245; font: 400 17px/1.55 var(--font-text); letter-spacing: -.2px; }
.case-study-body ul, .case-study-body ol { display: grid; gap: 10px; padding-left: 22px; }
.case-study-body strong { color: var(--ink); font-weight: 600; }
.case-study-body blockquote { padding: 24px; color: var(--ink); background: var(--parchment); font: 400 21px/1.45 var(--font-display); letter-spacing: -.2px; }
.case-study-confidentiality { color: var(--muted) !important; font-size: 14px !important; }
.case-study-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

@media (max-width: 868px) {
  .section-container { padding: 64px 24px; }
  .hero-wrapper { min-height: 660px; }
  .tool-card { width: 72px; height: 72px; }
  .project-card-layout, .project-card-layout.reverse { grid-template-columns: 1fr; direction: ltr; }
  .project-card-layout:hover, .project-card-layout.reverse:hover { grid-template-columns: minmax(0, 1fr); }
  .project-card-layout.reverse .project-info-side { direction: ltr; }
  .project-visual-side { order: -1; }
  .project-info-side { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .section-container { padding: 48px 20px; }
  .nav-container { padding: 0 20px; }
  .hero-wrapper { min-height: 640px; height: 100svh; }
  .hero-container { padding: 44px 12px 20px; }
  .hero-center-content { padding: 20px 8px; }
  .welcome-text { font-size: 34px; }
  .subtitle { font-size: 18px; }
  .ai-credit-note { max-width: 320px; margin-left: auto; margin-right: auto; }
  .tool-card { width: 58px; height: 58px; padding: 6px; border-radius: 14px; }
  .icon-container { width: 30px; height: 30px; }
  .tool-label { font-size: 9px; margin-top: 2px; }
  .about-grid { gap: 32px; }
  #projects.section-container { padding: 0 20px 48px; }
  .selected-work-intro { height: calc(100svh - 44px); min-height: 460px; }
  .selected-work-intro-content { padding: 32px 12px 48px; }
  .selected-work-title { font-size: clamp(68px, 17vw, 118px); }
  .selected-work-subtitle { max-width: 360px; }
  .selected-work-scroll { margin-top: 36px; }
  .projects-list { gap: 24px; }
  .project-card-layout { top: 64px; margin-bottom: 20px; }
  .project-card-layout:nth-child(2) { top: 72px; }
  .project-card-layout:nth-child(3) { top: 80px; }
  .project-card-layout:nth-child(4) { top: 88px; }
  .project-card-layout:nth-child(5) { top: 96px; }
  .project-card-layout:nth-child(6) { top: 104px; }
  .project-card-layout, .project-card-layout.reverse { grid-template-columns: 1fr; }
  .project-info-side { padding: 28px clamp(16px, 4vw, 24px); }
  .project-visual-side, .visual-placeholder { min-height: 280px; }
  .project-visual-side { margin: 8px clamp(16px, 4vw, 24px) 0; }
  .footer-section { padding: 48px 20px; }
  .modal-box { max-height: 85vh; overflow-y: auto; padding: 28px 22px; }
  .case-study-page { padding-top: 44px; }
  .case-study-hero { padding: 48px 20px; }
  .case-study-eyebrow { margin-top: 32px; }
  .case-study-deck { font-size: 21px; }
  .case-study-meta { gap: 20px 28px; }
  .case-study-content { padding: 0 20px 48px; }
  .case-study-hero-visual { padding: 0 20px; margin-bottom: 32px; }
  .case-study-hero-visual img { max-height: 440px; border-radius: 12px; }
  .case-study-process-visual { margin: 16px auto 28px; padding: 0 20px; }
  .project-card-image img { min-height: 264px; }
  .case-study-section { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
  .case-study-section > h2 { font-size: 18px; }
  .case-study-body p, .case-study-body li { font-size: 16px; }
  .case-study-body blockquote { padding: 20px; font-size: 18px; }
  .case-study-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 868px) {
  #home[data-hero-mode="new"] { min-height: auto; }
  #home[data-hero-mode="new"] .hero-container { min-height: auto; padding: 120px 32px 36px; }
  #home[data-hero-mode="new"] .hero-new-layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); grid-template-rows: auto auto auto; gap: 28px 32px; }
  #home[data-hero-mode="new"] .hero-new-heading { grid-column: 1 / -1; grid-row: 1; }
  #home[data-hero-mode="new"] .hero-new-services { grid-column: 1; grid-row: 2; }
  #home[data-hero-mode="new"] .hero-new-portrait { grid-column: 2; grid-row: 2; height: min(440px, 52vh); }
  #home[data-hero-mode="new"] .hero-new-intro { grid-column: 1 / -1; grid-row: 3; }
  #home[data-hero-mode="new"] .hero-new-summary { max-width: 620px; }
}
@media (max-width: 640px) {
  #home[data-hero-mode="new"] .hero-style-controller { top: 64px; right: 50%; transform: translateX(50%); gap: 1px; }
  #home[data-hero-mode="new"] .hero-style-controller-label { display: none; }
  #home[data-hero-mode="new"] .hero-style-controller button { padding: 0 10px; font-size: 10px; }
  #home[data-hero-mode="new"] .hero-container { padding: 112px 20px 32px; }
  #home[data-hero-mode="new"] .hero-new-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; gap: 24px; }
  #home[data-hero-mode="new"] .hero-new-heading { grid-column: 1; grid-row: 1; }
  #home[data-hero-mode="new"] .hero-new-heading h2 { font-size: clamp(42px, 12vw, 64px); }
  #home[data-hero-mode="new"] .hero-new-portrait { grid-column: 1; grid-row: 2; justify-self: center; width: min(100%, 300px); height: min(370px, 92vw); }
  #home[data-hero-mode="new"] .hero-new-intro { grid-column: 1; grid-row: 3; }
  #home[data-hero-mode="new"] .hero-new-services { grid-column: 1; grid-row: 4; }
  #home[data-hero-mode="new"] .hero-new-services > h3 { margin-bottom: 18px; }
  #home[data-hero-mode="new"] .hero-new-stats { gap: 8px; }
  #home[data-hero-mode="new"] .hero-new-stats dd { font-size: 18px; }
}
/* Option 2: cinematic portrait with oversized name */
#home[data-hero-mode="new"] { min-height: 100svh; height: auto; overflow: hidden; color: #f4f1eb; background: #171817; }
#home[data-hero-mode="new"] .hero-container { position: relative; min-height: 100svh; height: auto; padding: 108px 5vw 0; justify-content: center; }
#home[data-hero-mode="new"] .hero-style-controller { border-color: rgba(255,255,255,.15); background: rgba(35,36,35,.88); }
#home[data-hero-mode="new"] .hero-style-controller-label { color: #b4b4ae; }
#home[data-hero-mode="new"] .hero-style-controller button { color: #d7d7d1; }
#home[data-hero-mode="new"] .hero-style-controller button[aria-pressed="true"] { color: #1b1b1b; background: #f5f3ed; }
#home[data-hero-mode="new"] .hero-new-layout { position: relative; display: block; width: 100%; max-width: 1400px; height: calc(100svh - 108px); min-height: 620px; margin: 0 auto; }
#home[data-hero-mode="new"] .hero-new-heading { position: absolute; z-index: 3; inset: auto 0 -0.12em; text-align: center; pointer-events: none; }
#home[data-hero-mode="new"] .hero-new-eyebrow { display: none; }
#home[data-hero-mode="new"] .hero-new-heading h2 { color: #f4f1eb; font: 500 clamp(112px, 22vw, 330px)/.78 var(--font-display); letter-spacing: -.085em; white-space: nowrap; }
#home[data-hero-mode="new"] .hero-new-portrait { position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(43vw, 540px); height: min(76vh, 700px); transform: translateX(-50%); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#home[data-hero-mode="new"] .hero-new-portrait img { object-fit: contain; object-position: center bottom; filter: drop-shadow(0 15px 36px rgba(0,0,0,.32)); }
#home[data-hero-mode="new"] .hero-new-portrait figcaption { display: none; }
#home[data-hero-mode="new"] .hero-new-services { position: absolute; z-index: 4; top: 30%; left: 0; width: min(230px, 24%); }
#home[data-hero-mode="new"] .hero-new-services > h3,
#home[data-hero-mode="new"] .hero-service-item h4 { color: #f4f1eb; }
#home[data-hero-mode="new"] .hero-service-icon { color: #f4f1eb; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); }
#home[data-hero-mode="new"] .hero-service-item p,
#home[data-hero-mode="new"] .hero-new-summary { color: #aaa9a3; }
#home[data-hero-mode="new"] .hero-new-intro { position: absolute; z-index: 4; top: 31%; right: 0; width: min(245px, 25%); }
#home[data-hero-mode="new"] .hero-new-kicker { color: #aaa9a3; }
#home[data-hero-mode="new"] .hero-new-intro h3 { color: #f4f1eb; }
#home[data-hero-mode="new"] .hero-new-stats { gap: 8px; border-color: rgba(255,255,255,.2); }
#home[data-hero-mode="new"] .hero-new-stats dt { color: #aaa9a3; }
#home[data-hero-mode="new"] .hero-new-stats dd { color: #f4f1eb; font-size: 18px; }
#home[data-hero-mode="new"] .hero-new-socials a { color: #d2d0ca; }

/* Option 3: quiet editorial portrait treatment */
#home[data-hero-mode="editorial"] { min-height: 100svh; height: auto; overflow: hidden; color: #17211d; background: #a9c2b4; }
#home[data-hero-mode="editorial"] .hero-container { position: relative; min-height: 100svh; height: auto; padding: 108px 5vw 28px; justify-content: center; }
#home[data-hero-mode="editorial"] .hero-new-layout { position: relative; display: block; width: 100%; max-width: 1400px; height: calc(100svh - 120px); min-height: 620px; margin: 0 auto; }
#home[data-hero-mode="editorial"] .hero-new-heading { position: absolute; z-index: 1; top: 13%; left: 0; width: 100%; text-align: center; }
#home[data-hero-mode="editorial"] .hero-new-eyebrow { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); color: rgba(23,33,29,.65); }
#home[data-hero-mode="editorial"] .hero-new-heading h2 { color: #e4e8dd; font: 500 clamp(68px, 13vw, 190px)/.9 Georgia, serif; letter-spacing: -.08em; white-space: nowrap; }
#home[data-hero-mode="editorial"] .hero-new-portrait { position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(42vw, 490px); height: min(72vh, 660px); transform: translateX(-50%); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#home[data-hero-mode="editorial"] .hero-new-portrait img { object-fit: contain; object-position: center bottom; filter: saturate(.86); }
#home[data-hero-mode="editorial"] .hero-new-portrait figcaption { display: none; }
#home[data-hero-mode="editorial"] .hero-new-services { display: none; }
#home[data-hero-mode="editorial"] .hero-new-intro { position: absolute; z-index: 3; right: 2%; bottom: 8%; width: min(300px, 28%); padding: 20px; border: 1px solid rgba(23,33,29,.18); background: rgba(222,231,221,.7); backdrop-filter: blur(12px); }
#home[data-hero-mode="editorial"] .hero-new-kicker { color: rgba(23,33,29,.65); }
#home[data-hero-mode="editorial"] .hero-new-intro h3 { color: #f5f3ee; font-size: clamp(23px, 2vw, 30px); }
#home[data-hero-mode="editorial"] .hero-new-summary { color: #aaa9a3; font-size: 15px; line-height: 1.75; }
#home[data-hero-mode="editorial"] .hero-new-intro .btn { color: #fff; background: #0866d5; border-radius: 999px; }
#home[data-hero-mode="editorial"] .hero-new-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 36px; padding-top: 20px; border-color: rgba(255,255,255,.2); }
#home[data-hero-mode="editorial"] .hero-new-stats dt { color: #aaa9a3; font-size: 12px; }
#home[data-hero-mode="editorial"] .hero-new-stats dd { color: #f5f3ee; font-size: 20px; }
#home[data-hero-mode="editorial"] .hero-new-socials { justify-content: flex-start; gap: 20px; margin-top: 24px; }
#home[data-hero-mode="editorial"] .hero-new-socials a { color: #aaa9a3; }
#home[data-hero-mode="editorial"] .hero-style-controller button[aria-pressed="true"] { color: #f4f2e8; background: #263c31; }

@media (max-width: 760px) {
  #home[data-hero-mode="new"] .hero-container,
  #home[data-hero-mode="editorial"] .hero-container { padding: 112px 24px 0; }
  #home[data-hero-mode="new"] .hero-new-layout,
  #home[data-hero-mode="editorial"] .hero-new-layout { height: calc(100svh - 112px); min-height: 620px; }
  #home[data-hero-mode="new"] .hero-new-heading h2 { font-size: clamp(100px, 23vw, 180px); }
  #home[data-hero-mode="new"] .hero-new-portrait { width: min(64vw, 430px); height: min(66vh, 580px); }
  #home[data-hero-mode="new"] .hero-new-services { top: 11%; width: 40%; }
  #home[data-hero-mode="new"] .hero-new-intro { top: auto; right: 0; bottom: 7%; width: min(270px, 54%); }
  #home[data-hero-mode="new"] .hero-service-item { grid-template-columns: 30px 1fr; gap: 8px; margin-bottom: 12px; }
  #home[data-hero-mode="new"] .hero-service-icon { width: 28px; height: 28px; }
  #home[data-hero-mode="new"] .hero-service-item p { display: none; }
  #home[data-hero-mode="editorial"] .hero-new-heading { top: 22%; }
  #home[data-hero-mode="editorial"] .hero-new-heading h2 { font-size: clamp(52px, 12vw, 100px); }
  #home[data-hero-mode="editorial"] .hero-new-portrait { width: min(70vw, 400px); height: min(65vh, 540px); }
  #home[data-hero-mode="editorial"] .hero-new-intro { right: 0; bottom: 4%; width: min(280px, 75%); padding: 16px; }
}
@media (max-width: 480px) {
  #home[data-hero-mode="new"] .hero-style-controller,
  #home[data-hero-mode="editorial"] .hero-style-controller { top: 64px; right: 50%; transform: translateX(50%); }
  #home[data-hero-mode="new"] .hero-new-services { top: 6%; }
  #home[data-hero-mode="new"] .hero-new-services > h3 { font-size: 15px; margin-bottom: 12px; }
  #home[data-hero-mode="new"] .hero-new-intro { width: 70%; }
  #home[data-hero-mode="new"] .hero-new-intro h3 { font-size: 19px; }
  #home[data-hero-mode="new"] .hero-new-summary { font-size: 12px; margin-bottom: 12px; }
  #home[data-hero-mode="new"] .hero-new-stats { margin-top: 16px; padding-top: 12px; }
  #home[data-hero-mode="new"] .hero-new-stats dd { font-size: 15px; }
  #home[data-hero-mode="editorial"] .hero-new-heading h2 { font-size: 13vw; }
  #home[data-hero-mode="editorial"] .hero-new-intro { width: 88%; }
}
/* Option 3: compact navigation, side copy, portrait and oversized signature */
#home[data-hero-mode="editorial"] { color: #f8f7f3; background: #1b1b1b; }
#home[data-hero-mode="editorial"] .hero-container { flex-direction: column; align-items: stretch; padding: 92px 4vw 0; }
#home[data-hero-mode="editorial"] .hero-center-content,
#home[data-hero-mode="editorial"] .cards-space { display: none; }
#home[data-hero-mode="editorial"] .hero-new-heading,
#home[data-hero-mode="editorial"] .hero-new-services,
#home[data-hero-mode="editorial"] .hero-new-portrait,
#home[data-hero-mode="editorial"] .hero-reference-right { display: none; }
#home[data-hero-mode="editorial"] .hero-style-controller { top: 64px; right: 22px; border-color: rgba(255,255,255,.14); background: rgba(37,38,36,.9); }
#home[data-hero-mode="editorial"] .hero-style-controller-label,
#home[data-hero-mode="editorial"] .hero-style-controller button { color: #d3d1ca; }
#home[data-hero-mode="editorial"] .hero-style-controller button[aria-pressed="true"] { color: #171816; background: #f4f1e9; }
#home[data-hero-mode="editorial"] .hero-reference-layout { position: relative; display: block; width: 100%; max-width: 1440px; height: calc(100svh - 92px); min-height: 610px; margin: 0 auto; overflow: hidden; }
#home[data-hero-mode="editorial"] .hero-reference-layout { display: block; }
.hero-reference-layout { display: none; }
.hero-reference-brand { position: absolute; z-index: 5; top: 16px; left: 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; color: #f8f7f3; background: rgba(70,70,67,.5); font: 500 12px/1 var(--font-text); }
.hero-reference-brand i { margin-left: 12px; }
.hero-reference-mark { display: block; width: 8px; height: 8px; border-radius: 50%; background: #ff743b; }
.hero-reference-left { position: absolute; z-index: 4; top: 39%; left: 1.5%; width: 29%; }
.hero-reference-availability { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #e6e3dc; background: rgba(255,255,255,.08); font: 500 10px/1 var(--font-text); }
.hero-reference-availability i { width: 6px; height: 6px; border-radius: 50%; background: #ff743b; }
.hero-reference-left p { color: #f8f7f3; font: 500 clamp(20px, 2.7vw, 36px)/1.1 var(--font-text); letter-spacing: -.04em; }
.hero-reference-portrait { position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(52vw, 690px); height: min(82vh, 760px); object-fit: contain; object-position: center bottom; transform: translateX(-50%); filter: drop-shadow(0 16px 40px rgba(0,0,0,.35)); }
.hero-reference-right { position: absolute; z-index: 4; top: 39%; right: 1%; width: 25%; }
.hero-reference-right p { margin-bottom: 18px; color: #c0beb8; font: 400 13px/1.5 var(--font-text); letter-spacing: 0; }
.hero-reference-right a { display: inline-flex; align-items: center; gap: 12px; min-height: 42px; padding: 5px 20px 5px 6px; border-radius: 999px; color: #fff; background: #ff743b; font: 500 12px/1 var(--font-text); text-decoration: none; }
.hero-reference-right a span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: #ff743b; background: #fff; }
.hero-reference-name { position: absolute; z-index: 1; top: 3%; right: -4%; left: -4%; bottom: auto; color: rgba(250,249,246,.22); font: 500 clamp(76px, 12vw, 180px)/.9 var(--font-text); letter-spacing: -.055em; font-variant-ligatures: none; text-align: center; white-space: nowrap; pointer-events: none; }
@media (max-width: 700px) {
  #home[data-hero-mode="editorial"] .hero-container { padding: 96px 20px 0; }
  #home[data-hero-mode="editorial"] .hero-reference-layout { height: calc(100svh - 96px); min-height: 650px; }
  #home[data-hero-mode="editorial"] .hero-style-controller { top: 16px; right: 50%; transform: translateX(50%); }
  .hero-reference-left { top: 24%; left: 0; width: 58%; }
  .hero-reference-left p { font-size: clamp(21px, 6vw, 32px); }
  .hero-reference-right { top: 39%; right: 0; width: 44%; }
  .hero-reference-right p { font-size: 11px; }
  .hero-reference-portrait { width: 86vw; height: 67vh; }
  .hero-reference-name { bottom: -.04em; font-size: clamp(118px, 27vw, 200px); }
}
@media (max-width: 440px) {
  .hero-reference-brand { top: 12px; left: 0; }
  .hero-reference-left { top: 20%; width: 67%; }
  .hero-reference-right { top: auto; right: 0; bottom: 24%; width: 48%; }
  .hero-reference-right p { font-size: 10px; }
  .hero-reference-right a { min-height: 36px; padding-right: 12px; font-size: 10px; }
  .hero-reference-right a span { width: 26px; height: 26px; }
  .hero-reference-portrait { width: 100vw; height: 62vh; }
  .hero-reference-name { top: 7%; right: 0; left: 0; font-size: clamp(32px, 10vw, 42px); }
}
#home[data-hero-mode="editorial"] .hero-new-intro { display: block; position: absolute; z-index: 4; top: 32%; right: 1%; bottom: auto; width: min(330px, 27%); padding: 0; border: 0; background: transparent; backdrop-filter: none; }
#home[data-hero-mode="editorial"] .hero-new-kicker { color: #aaa9a3; font-size: 11px; }
#home[data-hero-mode="editorial"] .hero-new-intro .btn { border: 0; }
@media (max-width: 700px) {
  #home[data-hero-mode="editorial"] .hero-new-intro { top: auto; right: 0; bottom: 24%; width: min(300px, 54%); padding: 0; }
  #home[data-hero-mode="editorial"] .hero-new-stats { margin-top: 22px; padding-top: 14px; }
  #home[data-hero-mode="editorial"] .hero-new-summary { font-size: 12px; }
}
@media (max-width: 700px) {
  #home[data-hero-mode="editorial"] .hero-reference-name { top: 6%; right: 0; bottom: auto; left: 0; font-size: clamp(48px, 10vw, 76px); }
}
@media (max-width: 440px) {
  #home[data-hero-mode="editorial"] .hero-reference-name { top: 7%; font-size: clamp(38px, 10vw, 54px); }
}
#home[data-hero-mode="editorial"] .hero-reference-left { display: none; }
#home[data-hero-mode="editorial"] .hero-new-services { display: block; position: absolute; z-index: 4; top: 32%; left: 1.5%; width: min(330px, 28%); }
#home[data-hero-mode="editorial"] .hero-new-services > h3 { margin-bottom: 22px; color: #f5f3ee; font-size: 21px; }
#home[data-hero-mode="editorial"] .hero-service-item { grid-template-columns: 40px 1fr; gap: 12px; margin-bottom: 20px; }
#home[data-hero-mode="editorial"] .hero-service-icon { width: 38px; height: 38px; color: #f5f3ee; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); }
#home[data-hero-mode="editorial"] .hero-service-item h4 { color: #f5f3ee; font-size: 14px; }
#home[data-hero-mode="editorial"] .hero-service-item p { color: #aaa9a3; font-size: 13px; }
@media (max-width: 700px) {
  #home[data-hero-mode="editorial"] .hero-new-services { top: 20%; left: 0; width: 56%; }
  #home[data-hero-mode="editorial"] .hero-new-services > h3 { margin-bottom: 14px; font-size: 18px; }
  #home[data-hero-mode="editorial"] .hero-service-item { grid-template-columns: 32px 1fr; gap: 8px; margin-bottom: 12px; }
  #home[data-hero-mode="editorial"] .hero-service-icon { width: 30px; height: 30px; }
  #home[data-hero-mode="editorial"] .hero-service-item p { font-size: 10px; line-height: 1.35; }
}
@keyframes hero-rise-in {
  from { transform: translateY(44px); }
  to { transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hero-rise-in-centered {
  from { transform: translate(-50%, 44px); }
  to { transform: translate(-50%, 0); }
}
#home[data-hero-mode="editorial"] .hero-reference-name { opacity: 1; animation: none; }
#home[data-hero-mode="editorial"] .hero-reference-portrait { animation: hero-fade-in 1000ms ease-out 300ms both; }
#home[data-hero-mode="editorial"] .hero-new-services,
#home[data-hero-mode="editorial"] .hero-new-intro { animation: hero-fade-in 1000ms ease-out 300ms both; }
#home[data-hero-mode="editorial"] .hero-new-services { animation: hero-fade-in 1000ms ease-out 300ms both; }
/* Option 3: apply the documented color, type, and surface tokens */
#home[data-hero-mode="editorial"] { color: #fff; background: var(--dark-tile); }
#home[data-hero-mode="editorial"] .hero-container { background: var(--dark-tile); }
#home[data-hero-mode="editorial"] .hero-style-controller { border: 1px solid var(--hairline); border-radius: 9999px; background: #fff; box-shadow: none; backdrop-filter: none; }
#home[data-hero-mode="editorial"] .hero-style-controller-label { color: var(--muted); font: 600 12px/1.3 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-style-controller button { color: var(--ink); font: 400 12px/1.3 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-style-controller button[aria-pressed="true"] { color: #fff; background: var(--primary); }
#home[data-hero-mode="editorial"] .hero-reference-name { color: rgba(255,255,255,.33); font-family: var(--font-display); font-weight: 600; letter-spacing: -.055em; }
#home[data-hero-mode="editorial"] .hero-reference-portrait { filter: drop-shadow(0 5px 30px rgba(0,0,0,.22)); }
#home[data-hero-mode="editorial"] .hero-new-kicker { margin-bottom: 12px; color: var(--muted); font: 600 14px/1.43 var(--font-text); letter-spacing: .04em; }
#home[data-hero-mode="editorial"] .hero-new-intro h3 { margin-bottom: 12px; color: var(--ink); font: 600 clamp(24px,2.4vw,34px)/1.1 var(--font-display); letter-spacing: -.03em; }
#home[data-hero-mode="editorial"] .hero-new-summary { max-width: 36ch; margin-bottom: 20px; color: var(--ink-muted); font: 400 17px/1.47 var(--font-text); letter-spacing: -.374px; }
#home[data-hero-mode="editorial"] .hero-new-intro .btn { min-height: 44px; padding: 11px 22px; border: 0; border-radius: 9999px; color: #fff; background: var(--primary); font: 400 15px/1.2 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-new-intro .btn:hover { background: var(--primary-focus); }
#home[data-hero-mode="editorial"] .hero-new-stats { gap: 10px; margin-top: 24px; padding-top: 16px; border-color: var(--hairline); }
#home[data-hero-mode="editorial"] .hero-new-stats dt { color: var(--muted); font: 400 12px/1.4 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-new-stats dd { color: var(--ink); font: 600 17px/1.24 var(--font-display); letter-spacing: -.02em; }
#home[data-hero-mode="editorial"] .hero-new-stats dd span { color: var(--ink-muted); font: 400 12px/1.4 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-new-socials { gap: 8px; margin-top: 12px; }
#home[data-hero-mode="editorial"] .hero-new-socials a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-muted); font-size: 22px; }
#home[data-hero-mode="editorial"] .hero-new-socials a:hover { color: var(--primary); background: var(--parchment); }
#home[data-hero-mode="editorial"] .hero-new-services > h3 { margin-bottom: 20px; color: var(--ink); font: 600 21px/1.19 var(--font-display); letter-spacing: .231px; }
#home[data-hero-mode="editorial"] .hero-service-item { grid-template-columns: 40px minmax(0,1fr); gap: 12px; margin-bottom: 18px; }
#home[data-hero-mode="editorial"] .hero-service-icon { width: 38px; height: 38px; border: 1px solid var(--hairline); border-radius: 8px; color: var(--ink-muted); background: var(--parchment); }
#home[data-hero-mode="editorial"] .hero-service-item h4 { margin: 1px 0 4px; color: var(--ink); font: 600 14px/1.29 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-service-item p { max-width: 29ch; color: var(--ink-muted); font: 400 14px/1.47 var(--font-text); letter-spacing: -.2px; }
@media (max-width: 700px) {
  #home[data-hero-mode="editorial"] .hero-container { padding: 96px 20px 40px; }
  #home[data-hero-mode="editorial"] .hero-new-layout { display: flex; height: auto; min-height: 0; flex-direction: column; gap: 24px; overflow: visible; }
  #home[data-hero-mode="editorial"] .hero-reference-layout { order: 1; width: 100%; height: min(66svh,540px); min-height: 420px; margin: 0; }
  #home[data-hero-mode="editorial"] .hero-new-intro,
  #home[data-hero-mode="editorial"] .hero-new-services { position: relative; inset: auto; order: 2; width: 100%; max-width: 520px; padding: 24px; }
  #home[data-hero-mode="editorial"] .hero-new-services { order: 3; }
  #home[data-hero-mode="editorial"] .hero-new-summary { font-size: 17px; }
  #home[data-hero-mode="editorial"] .hero-service-item p { font-size: 14px; line-height: 1.47; }
  #home[data-hero-mode="editorial"] .hero-reference-name { top: 8%; right: 0; bottom: auto; left: 0; font-size: clamp(42px,11vw,72px); }
  #home[data-hero-mode="editorial"] .hero-reference-portrait { left: 50%; width: 100%; height: 100%; }
}
/* Preserve the plain three-column composition shown in the chosen reference */
#home[data-hero-mode="editorial"] .hero-container { min-height: 100svh; padding: 92px 4vw 0; background: var(--dark-tile); }
#home[data-hero-mode="editorial"] .hero-new-layout { position: relative; display: block; width: 100%; max-width: 1440px; height: calc(100svh - 92px); min-height: 610px; margin: 0 auto; }
#home[data-hero-mode="editorial"] .hero-reference-layout { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; min-height: 0; margin: 0; overflow: hidden; }
#home[data-hero-mode="editorial"] .hero-new-intro { position: absolute; z-index: 4; top: 32%; right: auto; bottom: auto; left: 1.5%; width: min(330px,27%); max-width: none; padding: 0; border: 0; border-radius: 0; color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
#home[data-hero-mode="editorial"] .hero-new-services { position: absolute; z-index: 4; top: 32%; right: 1.5%; bottom: auto; left: auto; width: min(330px,27%); max-width: none; padding: 0; border: 0; border-radius: 0; color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; }
#home[data-hero-mode="editorial"] .hero-reference-name { top: 3%; right: -4%; bottom: auto; left: -4%; color: rgba(255,255,255,.33); font: 600 clamp(76px,12vw,180px)/.9 var(--font-display); letter-spacing: -.055em; text-align: center; white-space: nowrap; }
#home[data-hero-mode="editorial"] .hero-reference-portrait { left: 50%; bottom: 0; width: min(52vw,690px); height: min(82vh,760px); transform: translateX(-50%); object-fit: contain; object-position: center bottom; filter: none; }
#home[data-hero-mode="editorial"] .hero-new-kicker { margin-bottom: 12px; color: var(--body-muted); font: 600 14px/1.43 var(--font-text); letter-spacing: .04em; }
#home[data-hero-mode="editorial"] .hero-open-status { position: absolute; z-index: 6; bottom: 18px; left: 50%; display: inline-flex; width: fit-content; min-height: 44px; align-items: center; gap: 10px; margin: 0; padding: 10px 16px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(24,29,27,.78); color: #fff; font: 600 14px/1.35 var(--font-text); text-decoration: none; box-shadow: 0 6px 24px rgba(0,0,0,.18); backdrop-filter: blur(10px); transform: translateX(-50%); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
#home[data-hero-mode="editorial"] .hero-status-dot { position: relative; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52,199,89,.2); animation: hero-status-pulse 1.8s ease-out infinite; }
#home[data-hero-mode="editorial"] .hero-status-copy { display: grid; flex: 1; min-width: 178px; text-align: center; }
#home[data-hero-mode="editorial"] .hero-status-copy > span { grid-area: 1 / 1; transition: opacity .18s ease, transform .18s ease; }
#home[data-hero-mode="editorial"] .hero-status-copy > span:last-child { opacity: 0; transform: translateY(4px); }
#home[data-hero-mode="editorial"] .hero-open-status:hover,
#home[data-hero-mode="editorial"] .hero-open-status:focus-visible { border-color: rgba(255,255,255,.5); background: rgba(24,29,27,.94); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
#home[data-hero-mode="editorial"] .hero-open-status:hover .hero-status-copy > span:first-child,
#home[data-hero-mode="editorial"] .hero-open-status:focus-visible .hero-status-copy > span:first-child { opacity: 0; transform: translateY(-4px); }
#home[data-hero-mode="editorial"] .hero-open-status:hover .hero-status-copy > span:last-child,
#home[data-hero-mode="editorial"] .hero-open-status:focus-visible .hero-status-copy > span:last-child { opacity: 1; transform: translateY(0); }
@keyframes hero-status-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,199,89,.42); } 70%, 100% { box-shadow: 0 0 0 7px rgba(52,199,89,0); } }
@media (prefers-reduced-motion: reduce) { #home[data-hero-mode="editorial"] .hero-status-dot { animation: none; } #home[data-hero-mode="editorial"] .hero-status-copy > span { transition: none; } }
#home[data-hero-mode="editorial"] .hero-new-intro h3 { margin-bottom: 12px; color: #fff; font: 600 clamp(40px,4vw,56px)/1.07 var(--font-display); letter-spacing: -.03em; }
#home[data-hero-mode="editorial"] .hero-new-intro h3 { white-space: nowrap; }
#home[data-hero-mode="editorial"] .hero-new-summary { max-width: 36ch; margin-bottom: 20px; color: var(--body-muted); font: 400 17px/1.47 var(--font-text); letter-spacing: -.374px; }
#home[data-hero-mode="editorial"] .hero-new-intro .btn { min-height: 44px; padding: 11px 22px; border: 0; border-radius: 9999px; color: #fff; background: var(--primary); font: 400 15px/1.2 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-new-intro .btn:hover { background: var(--primary-focus); }
#home[data-hero-mode="editorial"] .hero-new-services > h3 { margin-bottom: 20px; color: #fff; font: 600 21px/1.19 var(--font-display); letter-spacing: .231px; }
#home[data-hero-mode="editorial"] .hero-service-item { grid-template-columns: 40px minmax(0,1fr); gap: 12px; margin-bottom: 26px; }
#home[data-hero-mode="editorial"] .hero-service-icon { width: 38px; height: 38px; border: 0; border-radius: 0; color: #ddd; background: transparent; }
#home[data-hero-mode="editorial"] .hero-service-item h4 { margin: 1px 0 5px; color: #fff; font: 600 16px/1.29 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-service-item p { max-width: 29ch; color: var(--body-muted); font: 400 15px/1.47 var(--font-text); letter-spacing: -.2px; }
#home[data-hero-mode="editorial"] .hero-new-stats { position: absolute; z-index: 4; bottom: 5%; left: 0; display: grid; width: 78%; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin: 0; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.2); }
#home[data-hero-mode="editorial"] .hero-new-stats div { display: grid; gap: 4px; }
#home[data-hero-mode="editorial"] .hero-new-stats dt { color: var(--body-muted); font: 400 14px/1.43 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-new-stats dd { color: #fff; font: 600 17px/1.24 var(--font-display); letter-spacing: -.02em; }
#home[data-hero-mode="editorial"] .hero-new-stats dd span { color: var(--body-muted); font: 400 13px/1.43 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-new-socials { position: static; z-index: 4; display: flex; gap: 0; margin: 20px 0 0; }
#home[data-hero-mode="editorial"] .hero-new-socials a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; color: var(--body-muted); font-size: 22px; text-decoration: none; }
#home[data-hero-mode="editorial"] .hero-new-socials a:hover { color: var(--primary-on-dark); background: var(--dark-tile-2); }
#home[data-hero-mode="editorial"] .hero-new-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#home[data-hero-mode="editorial"] .hero-new-actions .hero-work-btn { color: #fff; background: var(--primary); }
#home[data-hero-mode="editorial"] .hero-new-actions .hero-resume-btn { border: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; }
#home[data-hero-mode="editorial"] .hero-new-actions .hero-resume-btn span { margin-left: 6px; font-size: 18px; line-height: 1; }
#home[data-hero-mode="editorial"] .hero-new-actions .hero-resume-btn:hover { border-color: #fff; background: rgba(255,255,255,.08); }
#home[data-hero-mode="editorial"] .hero-ai-note { display: flex; width: min(620px,42%); gap: 12px; align-items: center; margin: 0; color: var(--body-muted); font: 400 14px/1.45 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-ai-note img { display: block; flex: 0 0 30px; width: 30px; height: 30px; object-fit: contain; filter: brightness(0) invert(1); }
#home[data-hero-mode="editorial"] .hero-ai-note a { color: var(--primary-on-dark); text-decoration: underline; text-underline-offset: 3px; }
#home[data-hero-mode="editorial"] .hero-new-stats dt { color: #fff; font: 600 17px/1.24 var(--font-display); }
#home[data-hero-mode="editorial"] .hero-new-stats dd { color: var(--body-muted); font: 400 14px/1.43 var(--font-text); }
#home[data-hero-mode="editorial"] .hero-new-stats dd span { color: inherit; font: inherit; }
.footer-ai-note { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 0 auto 20px; color: var(--ink-muted); font: 400 14px/1.45 var(--font-text); }
.footer-ai-note img { display: block; flex: 0 0 30px; width: 30px; height: 30px; object-fit: contain; }
.footer-ai-note a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-ai-note a:hover { color: var(--primary-focus); }
/* Option 3 follows the supplied plain, three-column reference. */
@media (min-width: 701px) {
  #home[data-hero-mode="editorial"] { height: 100vh; min-height: 100vh; }
  #home[data-hero-mode="editorial"] .hero-container { min-height: 100vh; padding: 0 clamp(20px,5.56vw,80px); }
  #home[data-hero-mode="editorial"] .hero-new-layout { height: 100svh; min-height: 500px; }
  #home[data-hero-mode="editorial"] .hero-new-intro { top: calc(50% + 40px); left: 0; right: auto; bottom: auto; width: 31%; translate: 0 -50%; }
  #home[data-hero-mode="editorial"] .hero-new-intro h3 { white-space: nowrap; }
  #home[data-hero-mode="editorial"] .hero-new-services { top: calc(50% + 40px); left: 73%; right: auto; bottom: auto; width: 27%; translate: 0 -50%; }
  #home[data-hero-mode="editorial"] .hero-reference-name { display: block; top: 9%; right: -4%; bottom: auto; left: -4%; width: auto; color: rgba(255,255,255,.33); font-size: clamp(76px,10vw,180px); text-align: center; }
  #home[data-hero-mode="editorial"] .hero-reference-portrait { bottom: 0; width: min(52vw,740px); height: 91vh; filter: none; -webkit-mask-image: none; mask-image: none; }
  #home[data-hero-mode="editorial"] .hero-reference-layout::before { position: absolute; z-index: 0; inset: 0; background: radial-gradient(ellipse 34% 56% at 50% 58%, rgba(122,140,163,.2) 0%, rgba(102,120,143,.14) 42%, rgba(76,89,107,.065) 70%, transparent 100%); content: ""; pointer-events: none; }
  #home[data-hero-mode="editorial"] .hero-new-socials { margin-top: 20px; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  #home[data-hero-mode="editorial"] .hero-new-intro { width: 31%; }
  #home[data-hero-mode="editorial"] .hero-new-services { left: 73%; width: 27%; }
  #home[data-hero-mode="editorial"] .hero-reference-portrait { width: min(34vw,440px); height: 91vh; }
}
@media (max-width: 700px) {
  #home[data-hero-mode="editorial"] { height: auto; min-height: 100vh; overflow: visible; }
  #home[data-hero-mode="editorial"] .hero-container { min-height: 100vh; padding: 96px 20px 40px; }
  #home[data-hero-mode="editorial"] .hero-new-layout { display: flex; height: auto; min-height: 0; flex-direction: column; gap: 24px; }
  #home[data-hero-mode="editorial"] .hero-reference-layout { position: relative; order: 1; width: 100%; height: min(66svh,540px); min-height: 420px; margin: 0; }
  #home[data-hero-mode="editorial"] .hero-new-intro,
  #home[data-hero-mode="editorial"] .hero-new-services { position: relative; inset: auto; width: 100%; max-width: 520px; padding: 0; translate: none; }
  #home[data-hero-mode="editorial"] .hero-new-intro { order: 2; }
  #home[data-hero-mode="editorial"] .hero-new-services { order: 3; }
  #home[data-hero-mode="editorial"] .hero-open-status { position: absolute; right: auto; bottom: 16px; left: 50%; margin: 0; transform: translateX(-50%); }
  #home[data-hero-mode="editorial"] .hero-new-socials { margin-top: 20px; }
  #home[data-hero-mode="editorial"] .hero-new-stats { display: none; }
  #home[data-hero-mode="editorial"] .hero-new-stats dt { font-size: 12px; }
  #home[data-hero-mode="editorial"] .hero-new-stats dd { font-size: 15px; }
  #home[data-hero-mode="editorial"] .hero-new-stats dd span { font-size: 12px; }
  #home[data-hero-mode="editorial"] .hero-new-socials { position: static; order: 5; }
  #home[data-hero-mode="editorial"] .hero-reference-name { display: block; top: 8%; right: 0; bottom: auto; left: 0; font-size: clamp(48px,14vw,76px); }
  #home[data-hero-mode="editorial"] .hero-reference-portrait { left: 50%; bottom: 0; width: 100%; height: 100%; filter: none; -webkit-mask-image: none; mask-image: none; }
}
/* Keep the top navigation out of the hero until the visitor scrolls */
.navbar { height: 64px; background: #fff; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: translateY(-110%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform 300ms ease, opacity 220ms ease, visibility 0s linear 300ms; }
.navbar.nav-visible { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform 300ms ease, opacity 220ms ease, visibility 0s; }
.navbar.nav-visible .logo, .navbar.nav-visible .nav-links a { color: #111; }
.navbar.nav-visible .nav-links a:hover, .navbar.nav-visible .logo:hover { color: #000; }
.navbar.nav-visible .logo span { color: var(--primary); }
.navbar.nav-visible .nav-links a.nav-contact-link { color: #fff; }
@media (max-width: 868px) {
  .nav-container { padding: 0 24px; }
}
@media (max-width: 640px) {
  .navbar { height: 56px; }
  .nav-container { padding: 0 20px; }
  .logo { font-size: 17px; }
  .nav-links { gap: 12px; }
  .nav-links a.nav-contact-link { min-height: 44px; padding: 0 12px; }
}
@media (min-width: 320px) and (max-width: 768px) {
  .nav-container { position: relative; }
  .nav-menu-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(29,29,31,.12);
    border-radius: 999px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
  }
  .nav-menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }
  .nav-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    width: auto;
    max-width: none;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(29,29,31,.08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
  }
  .navbar.menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .nav-links a,
  .navbar.nav-visible .nav-links a { min-height: 44px; justify-content: flex-start; padding: 0 14px; border-radius: 10px; color: var(--ink); }
  .nav-links a.nav-contact-link,
  .navbar.nav-visible .nav-links a.nav-contact-link { justify-content: center; margin-top: 4px; color: #fff; }
  .nav-links a:hover { background: var(--parchment); }
  .nav-links a.nav-contact-link:hover { background: var(--primary-focus); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


#home[data-hero-mode="editorial"] .hero-reference-brand { display: none; }

/* Keep portfolio navigation visible on project detail pages. */
.project-detail-page .navbar {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}
.project-detail-page .navbar .logo,
.project-detail-page .navbar .nav-links a { color: #111; }
.project-detail-page .navbar .nav-links a.nav-contact-link { color: #fff; }
.project-detail-page .navbar .nav-links a.nav-contact-link:hover { color: #fff; background: var(--primary-focus); }
.project-detail-page .navbar .nav-links a:hover,
.project-detail-page .navbar .logo:hover { color: #000; }

.navbar .logo:hover,
.navbar .logo:focus-visible,
.navbar .nav-links a:not(.nav-contact-link):hover,
.navbar .nav-links a:not(.nav-contact-link):focus-visible {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Selected Work testimonials */
.feedback-section {
  padding: 80px 0;
  background: #272729;
  color: #fff;
}
.feedback-inner { width: min(1200px, calc(100% - 96px)); margin: 0 auto; }
.feedback-heading { margin-bottom: 40px; }
.feedback-heading > p {
  max-width: 680px;
  margin: 0;
  color: #cccccc;
  font: 300 24px/1.5 var(--font-text);
}
.feedback-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.feedback-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border-radius: 18px;
  background: #f5f5f7;
}
.feedback-card h3 { margin: 0 0 16px; color: #1d1d1f; font: 600 17px/1.29 var(--font-display); letter-spacing: -.01em; }
.feedback-card blockquote { margin: 0; color: #333333; font: italic 400 17px/1.47 var(--font-text); }
.feedback-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.feedback-avatar { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font: 500 15px/1 var(--font-text); }
.feedback-avatar-alt { background: #66666b; }
.feedback-avatar-pr { background: #ff781f; }
.feedback-author p { display: grid; gap: 4px; margin: 0; color: #1d1d1f; font: 400 14px/1.43 var(--font-text); }
.feedback-author strong { font-weight: 600; }
.feedback-author p span { color: #7a7a7a; }

@media (max-width: 1024px) {
  .feedback-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feedback-card { min-height: 260px; }
}
@media (max-width: 833px) {
  .feedback-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feedback-section { padding: 48px 0; }
  .feedback-inner { width: calc(100% - 48px); }
  .feedback-heading { margin-bottom: 32px; }
  .feedback-heading > p { font-size: 20px; }
  .feedback-grid { gap: 32px; }
  .feedback-card { min-height: 260px; padding: 20px; border-radius: 18px; }
}

/* Homepage variant of the selected project carousel. */
.home-other-gallery { position: relative; width: 100%; margin: 0; padding: 80px 0 88px; background: var(--parchment); color: var(--ink); }
.home-other-gallery .cs-project-gallery-heading { display: flex; width: min(1200px, calc(100% - 64px)); align-items: center; justify-content: space-between; gap: 32px; margin: 0 auto 36px; }
.home-other-gallery .cs-project-gallery-heading h2 { margin: 0; color: var(--ink); font: 400 40px/1.15 var(--font-display); letter-spacing: -.04em; }
.home-other-gallery .cs-project-gallery-viewport { box-sizing: border-box; width: 100%; padding: 0 clamp(24px, 3.2vw, 40px) 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
.home-other-gallery .cs-project-gallery-viewport::-webkit-scrollbar { display: none; }
.home-other-gallery .cs-project-gallery-viewport:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.home-other-gallery .cs-project-gallery-track { display: flex; align-items: flex-start; gap: 22px; width: max-content; }
.home-other-gallery .cs-project-slide { display: grid; flex: 0 0 min(40vw, 500px); grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; min-width: 0; color: var(--ink-muted); scroll-snap-align: start; }
.home-other-gallery .cs-project-slide-image { position: relative; display: block; overflow: hidden; aspect-ratio: 1.54; border-radius: 24px; background: #e5e5e7; }
.home-other-gallery .cs-project-slide-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-other-gallery .cs-project-slide-image::after { display: none; }
.home-other-gallery .cs-project-slide-image img { transition: none; }
.home-other-gallery .cs-project-slide-copy { padding: 0 12px; color: #424245; font: 400 16px/1.45 var(--font-text); }
.home-other-gallery .cs-project-slide-copy strong { color: var(--ink); font: 500 20px/1.3 var(--font-display); }
.home-other-gallery .cs-project-gallery-controls { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 12px; }
.home-other-gallery .cs-project-gallery-controls button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #fff; color: #636366; cursor: pointer; transition: transform 140ms ease, background 160ms ease; }
.home-other-gallery .cs-project-gallery-controls button:hover:not(:disabled) { background: #e5e5e7; }
.home-other-gallery .cs-project-gallery-controls button:active:not(:disabled) { transform: scale(.95); }
.home-other-gallery .cs-project-gallery-controls button:disabled { background: #f1f1f3; color: #b8b8bc; cursor: default; }
.home-other-gallery .cs-project-gallery-controls button:focus-visible { outline-color: #fff; }
.home-other-gallery .cs-gallery-chevron { display: block; width: 10px; height: 10px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; }
.home-other-gallery .cs-gallery-chevron.is-left { transform: rotate(-135deg) translate(-1px, -1px); }
.home-other-gallery .cs-gallery-chevron.is-right { transform: rotate(45deg) translate(-1px, -1px); }
@media (max-width: 1024px) {
  .home-other-gallery .cs-project-gallery-heading { width: min(1200px, calc(100% - 64px)); }
  .home-other-gallery .cs-project-slide { flex-basis: 52vw; }
}
@media (max-width: 640px) {
  .home-other-gallery { padding: 56px 0 64px; }
  .home-other-gallery .cs-project-gallery-heading { width: calc(100% - 48px); align-items: flex-end; gap: 16px; margin-bottom: 28px; }
  .home-other-gallery .cs-project-gallery-heading h2 { font-size: 34px; }
  .home-other-gallery .cs-project-gallery-controls { gap: 8px; }
  .home-other-gallery .cs-project-gallery-controls button { width: 44px; height: 44px; }
  .home-other-gallery .cs-project-gallery-track { gap: 16px; }
  .home-other-gallery .cs-project-slide { flex-basis: 82vw; gap: 12px; }
  .home-other-gallery .cs-project-slide-image { border-radius: 18px; }
  .home-other-gallery .cs-project-slide-copy { padding: 0 8px; font-size: 15px; }
  .home-other-gallery .cs-project-slide-copy strong { font-size: 18px; }
}

/* Contact footer */
.designed-footer { padding: 64px 48px 24px; background: #272729; color: #fff; }
.footer-inner { width: min(1200px, 100%); margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 80px; padding: 0 0 48px; }
.footer-eyebrow { margin: 0 0 20px; color: #b0b0b3; font: 600 12px/1.3 var(--font-text); letter-spacing: .08em; }
.footer-invitation h2 { margin: 0; color: #fff; font: 600 clamp(48px, 6vw, 64px)/1.07 var(--font-display); letter-spacing: -.02em; }
.footer-description { max-width: 440px; margin: 24px 0 26px; color: #cccccc; font: 400 17px/1.47 var(--font-text); }
.footer-contact-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--primary); color: #fff; font: 600 14px/1.29 var(--font-text); text-decoration: none; transition: background .2s ease, transform .2s ease; }
.footer-contact-link:hover { transform: translateY(-1px); background: #0071e3; }
.footer-contact-link span { font-size: 18px; }
.footer-link-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-content: start; padding-top: 32px; }
.footer-link-group { display: grid; align-content: start; justify-items: start; gap: 14px; }
.footer-link-group h3 { margin: 0 0 8px; color: #fff; font: 600 14px/1.29 var(--font-text); }
.footer-link-group a { display: inline-flex; align-items: center; gap: 7px; color: #2997ff; font: 400 14px/1.43 var(--font-text); text-decoration: none; transition: color .18s ease; }
.footer-link-group a:hover { color: #66b5ff; text-decoration: underline; text-underline-offset: 3px; }
.footer-link-group a span { color: inherit; font-size: 12px; }
.footer-bottom { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.footer-wordmark { color: #fff; font: 600 19px/1 var(--font-display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.footer-wordmark span { color: var(--primary); }
.designed-footer .footer-ai-note { margin: 0; color: #b0b0b3; font: 400 12px/1.43 var(--font-text); }
.designed-footer .footer-ai-note img { width: 15px; height: 15px; filter: brightness(0) invert(1); }
.designed-footer .footer-ai-note a { color: #2997ff; text-decoration: underline; text-underline-offset: 3px; }
.footer-copyright { margin: 0; color: #b0b0b3; font: 400 12px/1.43 var(--font-text); white-space: nowrap; }
@media (max-width: 800px) {
  .designed-footer { padding: 48px 32px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; padding-bottom: 52px; }
  .footer-link-columns { max-width: 500px; padding-top: 0; }
  .footer-link-group a { min-height: 44px; }
  .footer-bottom { flex-wrap: wrap; justify-content: space-between; }
  .designed-footer .footer-ai-note { order: 3; flex-basis: 100%; }
}
@media (max-width: 520px) {
  .designed-footer { padding: 48px 24px 22px; }
  .footer-invitation h2 { font-size: 56px; }
  .footer-description { font-size: 16px; }
  .footer-link-columns { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-link-group { gap: 12px; }
  .footer-link-group a { font-size: 14px; }
  .footer-bottom { gap: 14px; }
  .footer-copyright { font-size: 11px; }
}
@media (max-width: 360px) {
  #home[data-hero-mode="editorial"] .hero-new-intro h3 { font-size: 32px; white-space: normal; }
  .footer-link-columns { grid-template-columns: 1fr; gap: 28px; }
}

/* About Me section layout and content */
#about .about-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 48px; align-items: start; }
#about .about-bio { display: flex; flex-direction: column; }
#about .about-bio > .bio-lead { margin: 0 0 24px; }
#about .about-bio > .bio-body { margin: 0; }
#about .about-bio > .bio-body + .bio-body { margin-top: 17px; }
#about .about-skills { margin-top: 32px; }
#about .about-skills .block-title,
#about .tools-container .block-title { margin: 0 0 24px; }
#about .about-skills-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0; padding: 0 0 0 20px; list-style: disc; color: var(--ink-muted); font: 400 17px/1.47 var(--font-text); letter-spacing: -.374px; }
#about .about-skills-list li { padding-left: 2px; }
#about .about-skills-list li::marker { color: var(--primary); font-size: 12px; }
#about .tools-container { margin-top: 32px; }
#about .tools-grid { display: flex; flex-wrap: wrap; gap: 8px; }
#about .tool-badge { display: inline-flex; min-height: 32px; align-items: center; padding: 4px 12px; border: 1px solid var(--hairline); border-radius: 9999px; background: #fff; color: var(--ink-muted); font: 400 14px/1.43 var(--font-text); letter-spacing: -.224px; }
#about .about-experience { display: flex; flex-direction: column; box-sizing: border-box; padding: 24px; border: 0; border-radius: 18px; background: var(--parchment); }
#about .about-experience .block-title { margin: 0 0 24px; }
#about .timeline { flex: initial; justify-content: flex-start; gap: 12px; }
#about .timeline-item { display: grid; flex: initial; grid-template-columns: minmax(0, 1fr) auto; align-content: start; align-items: start; gap: 12px; padding: 0 0 16px; border-bottom: 1px solid var(--hairline); }
#about .timeline-item:last-child { padding-bottom: 0; border-bottom: 0; }
#about .timeline-content { min-width: 0; }
#about .timeline-role { margin: 0 0 4px; color: var(--ink); font: 600 17px/1.24 var(--font-text); letter-spacing: -.374px; }
#about .timeline-company { margin: 0 0 4px; color: var(--ink-muted); font: 400 14px/1.43 var(--font-text); letter-spacing: -.224px; }
#about .timeline-date { display: inline-flex; min-height: 30px; align-items: center; justify-self: end; margin: 0; padding: 4px 12px; border-radius: 9999px; background: #fff; color: var(--muted); font: 400 14px/1.43 var(--font-text); letter-spacing: -.224px; white-space: nowrap; }
@media (max-width: 1024px) {
  #about .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  #about .timeline-date { justify-self: start; }
}
@media (max-width: 868px) {
  #about .about-grid { grid-template-columns: 1fr; gap: 32px; }
  #about .timeline { gap: 12px; }
}
@media (max-width: 640px) {
  #about .about-skills-list { grid-template-columns: 1fr; gap: 8px; }
}

#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="LinkedIn"]:hover,
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="LinkedIn"]:focus-visible { color: #0a66c2; }
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Behance"]:hover,
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Behance"]:focus-visible { color: #1769ff; }
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Dribbble"]:hover,
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Dribbble"]:focus-visible { color: #ea4c89; }
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Instagram"]:hover,
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Instagram"]:focus-visible { color: #e4405f; }
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Instagram"]:hover i,
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Instagram"]:focus-visible i {
  color: transparent;
  background: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 55%, #962fbf 78%, #4f5bd5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Spotify"]:hover,
#home[data-hero-mode="editorial"] .hero-new-socials a[aria-label="Spotify"]:focus-visible { color: #1db954; }

/* Option 3 at-a-glance stats */
@media (min-width: 701px) {
  #home[data-hero-mode="editorial"] .hero-new-services {
    top: calc(50% + 40px);
    right: 0;
    left: auto;
    width: min(340px, 27%);
    translate: 0 -50%;
  }
  #home[data-hero-mode="editorial"] .hero-new-services > h3 {
    margin: 0 0 28px;
    color: rgba(255,255,255,.7);
    font: 600 14px/1.43 var(--font-text);
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  #home[data-hero-mode="editorial"] .hero-glance-stat {
    max-width: 340px;
    margin: 0;
    color: #fff;
    font: 500 clamp(24px,1.8vw,26px)/1.3 var(--font-text);
    text-wrap: balance;
  }
  #home[data-hero-mode="editorial"] .hero-glance-stat + .hero-glance-stat {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
}
@media (max-width: 700px) {
  #home[data-hero-mode="editorial"] .hero-new-services { width: 100%; }
  #home[data-hero-mode="editorial"] .hero-new-services > h3 {
    margin: 0 0 18px;
    color: rgba(255,255,255,.7);
    font: 600 14px/1.43 var(--font-text);
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  #home[data-hero-mode="editorial"] .hero-glance-stat {
    max-width: 100%;
    margin: 0;
    color: #fff;
    font: 500 18px/1.4 var(--font-text);
  }
  #home[data-hero-mode="editorial"] .hero-glance-stat + .hero-glance-stat {
    margin-top: 12px;
    padding-top: 0;
    border-top: 0;
  }
}

/* Tablet widths use a vertical hero flow so the portrait does not overlap the copy. */
@media (min-width: 701px) and (max-width: 1100px) {
  #home[data-hero-mode="editorial"] { height: auto; min-height: 100svh; overflow: visible; }
  #home[data-hero-mode="editorial"] .hero-container { min-height: 100svh; height: auto; justify-content: flex-start; padding: 92px 32px 48px; }
  #home[data-hero-mode="editorial"] .hero-new-layout { display: flex; width: 100%; max-width: 760px; height: auto; min-height: 0; flex-direction: column; gap: 32px; }
  #home[data-hero-mode="editorial"] .hero-reference-layout { position: relative; order: 1; width: 100%; height: min(58svh, 700px); min-height: 420px; margin: 0; }
  #home[data-hero-mode="editorial"] .hero-reference-name { top: 0; right: 0; left: 0; font-size: clamp(44px, 5.2vw, 56px); }
  #home[data-hero-mode="editorial"] .hero-reference-portrait { width: min(62vw, 560px); height: 100%; }
  #home[data-hero-mode="editorial"] .hero-new-intro,
  #home[data-hero-mode="editorial"] .hero-new-services { position: relative; inset: auto; width: 100%; max-width: 680px; margin: 0 auto; translate: none; }
  #home[data-hero-mode="editorial"] .hero-new-intro { order: 2; }
  #home[data-hero-mode="editorial"] .hero-new-services { order: 3; }
  #home[data-hero-mode="editorial"] .hero-open-status { position: absolute; right: auto; bottom: 16px; left: 50%; margin: 0; transform: translateX(-50%); }
}

/* Smooth same-origin page changes where the browser supports cross-document View Transitions. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-transition-out 160ms ease both;
}

::view-transition-new(root) {
  animation: page-transition-in 240ms cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes page-transition-out {
  to { opacity: 0; }
}

@keyframes page-transition-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}
