.intro-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow: hidden;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  margin: 0;
}

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  text-align: center;
  width: 100%;
  height: 100%;
}

.greeting-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.greeting-word {
  font-family: 'Playfair Display', serif;
  font-size: clamp(48px, 10vw, 100px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  min-height: 1.2em;
  animation: fadeIn 0.3s ease-out;
  word-break: break-word;
  padding: 0 20px;
}
.cursor {
  font-size: clamp(60px, 12vw, 120px);
  color: var(--white);
  animation: blink 1s infinite;
  opacity: 0;
}

.cursor.active {
  opacity: 1;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.pill-nav-container {
  position: sticky;
  top: 1em;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .pill-nav-container {
    width: 100%;
    left: 0;
  }
}

.pill-nav {
  --nav-h: 42px;
  --logo: 36px;
  --pill-pad-x: 18px;
  --pill-gap: 3px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .pill-nav {
    width: 100%;
    justify-content: space-between;
    padding: 0 1rem;
    background: transparent;
  }
}

.pill-nav-items {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  background: var(--base, var(--black));
  border-radius: 9999px;
}

.pill-logo {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: var(--base, var(--black));
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  margin-right: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pill-logo:hover {
  transform: scale(1.05);
}

.pill-logo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pill-bg, #fff);
  font-weight: 900;
  font-family: var(--serif);
  font-size: 14px;
}

.pill-list {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: var(--pill-gap);
  margin: 0;
  padding: 3px;
  height: 100%;
}

.pill-list > li {
  display: flex;
  height: 100%;
}

.pill-nav-end {
  display: inline-flex;
  align-items: stretch;
  gap: var(--pill-gap);
  height: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 var(--pill-pad-x);
  background: var(--pill-bg, var(--white));
  color: var(--pill-text, var(--base, #000));
  text-decoration: none;
  border-radius: 9999px;
  box-sizing: border-box;
  font-weight: 600;
  font-size: 11px;
  line-height: 0;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font-family: var(--mono);
}

button.pill {
  border: none;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
}

.pill.pill-toggle {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.pill .hover-circle {
  position: absolute;
  left: 50%;
  bottom: 0;
  border-radius: 50%;
  background: var(--base, #000);
  z-index: 1;
  display: block;
  pointer-events: none;
  will-change: transform;
}

.pill .label-stack {
  position: relative;
  display: inline-block;
  line-height: 1;
  z-index: 2;
}

.pill .pill-label {
  position: relative;
  z-index: 2;
  display: inline-block;
  line-height: 1;
  will-change: transform;
}

.pill .pill-label-hover {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--hover-text, #fff);
  z-index: 3;
  display: inline-block;
  will-change: transform, opacity;
}

.pill.is-active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--base, #000);
  border-radius: 50px;
  z-index: 4;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}

.mobile-menu-button {
  width: var(--nav-h);
  height: var(--nav-h);
  border-radius: 50%;
  background: var(--base, #000);
  border: none;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  position: relative;
}

@media (max-width: 768px) {
  .mobile-menu-button {
    display: none !important;
  }
}

.hamburger-line {
  width: 16px;
  height: 2px;
  background: var(--pill-bg, var(--white));
  border-radius: 1px;
  transition: all 0.01s ease;
  transform-origin: center;
}

.mobile-menu-popover {
  position: absolute;
  top: 3em;
  left: 1rem;
  right: 1rem;
  background: var(--base, var(--black));
  border-radius: 27px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 998;
  opacity: 0;
  transform-origin: top center;
  visibility: hidden;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-menu-popover .mobile-menu-link {
  display: block;
  padding: 12px 16px;
  color: var(--pill-text, var(--black));
  background-color: var(--pill-bg, var(--white));
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.2s ease;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.mobile-menu-popover .mobile-menu-link:hover {
  cursor: pointer;
  background-color: var(--base);
  color: var(--hover-text, #fff);
}

.mobile-menu-popover .mobile-menu-link.is-active {
  background-color: var(--pill-bg);
  color: var(--base);
}
.animated-theme-toggler {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: none;
  padding: 0;
  line-height: 1;
}

/* Desktop pill-nav integration */
.animated-theme-toggler.pill {
  width: var(--nav-h);
  padding: 0;
}

/* Mobile floating action button */
.animated-theme-toggler.theme-fab {
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 9999px;
  border: 1px solid var(--line-m);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  line-height: 0;
  font-size: 0 !important;
  min-width: 44px !important;
  min-height: 44px !important;
}

/* Ensure theme-fab visuals win over global .pill styles */
.animated-theme-toggler.theme-fab.pill {
  background: var(--white) !important;
  color: var(--black) !important;
}

.animated-theme-toggler:focus-visible {
  outline: 2px solid var(--line-m);
  outline-offset: 3px;
}

.att-icons {
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
}

.animated-theme-toggler.theme-fab .att-icons {
  width: 20px;
  height: 20px;
}

.att-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: rotate(-90deg) scale(0.75);
  transition: opacity 260ms var(--ease), transform 420ms var(--ease);
}

.att-icon.att-show {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.animated-theme-toggler:hover .att-icon.att-show {
  transform: rotate(8deg) scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .att-icon {
    transition: none;
  }

  .animated-theme-toggler:hover .att-icon.att-show {
    transform: none;
  }
}
.stack-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.stack-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  font-weight: 600;
}

.stack-title {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.stack-desc {
  font-size: 14px;
  color: var(--faint);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.tech-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pillFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
  transform: translateY(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  border: none;
}

.tech-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.tech-pill-black {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.tech-pill-black:hover {
  background: #1a1a1a;
  border-color: #000000;
}

.tech-pill-white {
  background: #ffffff;
  color: #000000;
  border: 1px solid #e0e0e0;
}

.tech-pill-white:hover {
  background: #f5f5f5;
  border-color: #000000;
}

.pill-icon {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  width: 24px;
  height: 24px;
}

.pill-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tech-pill:hover .pill-icon {
  transform: scale(1.1);
}

.pill-text {
  font-family: var(--mono);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
  }
}

@keyframes pillFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .stack-header {
    margin-bottom: 40px;
  }

  .stack-label {
    font-size: 11px;
  }

  .stack-title {
    font-size: clamp(32px, 8vw, 48px);
    margin-bottom: 16px;
  }

  .stack-desc {
    font-size: 13px;
  }

  .tech-pills-wrap {
    gap: 12px;
  }

  .tech-pill {
    padding: 10px 16px;
    font-size: 11px;
  }

  .pill-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .stack-header {
    margin-bottom: 28px;
  }

  .stack-label {
    font-size: 10px;
    margin-bottom: 12px;
  }

  .stack-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 12px;
  }

  .stack-desc {
    font-size: 12px;
  }

  .tech-pills-wrap {
    gap: 10px;
  }

  .tech-pill {
    padding: 8px 12px;
    font-size: 10px;
    gap: 6px;
  }

  .pill-icon {
    font-size: 14px;
    width: 18px;
    height: 18px;
  }

  .pill-text {
    font-size: 9px;
  }
}
/* App-specific styles */
body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#root {
  width: 100%;
  min-height: 100vh;
}

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

em {
  font-style: italic;
}

/* Touch device detection */
@media (hover: none) and (pointer: coarse) {
  .c-dot, .c-ring {
    display: none !important;
  }
  
  body {
    cursor: auto !important;
  }
  
  button, a {
    -webkit-tap-highlight-color: transparent;
  }
}

/* Ensure responsive images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Improved touch targets */
@media (max-width: 768px) {
  button, a, .pill {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
/* ============================================================
   RESET & TOKENS
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   INTERACTION GUARDS
   ============================================================ */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, select, option {
  -webkit-user-select: text;
  -moz-user-select: text;
       user-select: text;
}

::-moz-selection { background: transparent; }

::selection { background: transparent; }

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

:root {
  /* Theme primitives (default: dark) */
  --black:  #0c0c0c;
  --white:  #f0ede8;
  --black-rgb: 12, 12, 12;
  --white-rgb: 240, 237, 232;
  --off:    #161616;
  --mid:    #2a2a2a;
  --faint:  #7a7a7a;
  --line:   rgba(var(--white-rgb), 0.09);
  --line-m: rgba(var(--white-rgb), 0.20);
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Barlow', sans-serif;
  --mono:  'IBM Plex Mono', monospace;
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-theme='dark'] { color-scheme: dark; }

html[data-theme='light'] {
  /* Swap black/white for light mode */
  --black:  #f0ede8;
  --white:  #0c0c0c;
  --black-rgb: 240, 237, 232;
  --white-rgb: 12, 12, 12;
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background:  var(--black);
  color:       var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x:  hidden;
  cursor: none;
}

/* Global mobile theme toggle (rendered at App level) */
.app-theme-fab {
  display: none !important;
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  bottom: calc(20px + constant(safe-area-inset-bottom)) !important;
  bottom: calc(20px + env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  margin: 0 !important;
  z-index: 1500;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar       { width: 2px; }
::-webkit-scrollbar-thumb { background: var(--white); }
::-webkit-scrollbar-track { background: var(--black); }

/* ============================================================
   CURSOR
   ============================================================ */
.c-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
}
.c-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid rgba(var(--white-rgb), 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left .1s, top .1s, width .25s, height .25s, opacity .25s;
}
.c-ring.big { width: 52px; height: 52px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 52px;
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
nav.stuck {
  border-color: var(--line);
  background: var(--black);
  backdrop-filter: blur(14px);
}

.nav-id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--white);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 5;
}

.theme-toggle {
  margin-left: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-m);
  background: transparent;
  color: var(--white);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}

.theme-toggle:hover {
  background: rgba(var(--white-rgb), 0.06);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--line-m);
  outline-offset: 3px;
}
.s-dot {
  width: 5px; height: 5px;
  background: var(--white);
  border-radius: 50%;
  animation: blink 3s ease infinite;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 100px 52px 60px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  gap: 80px;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}

.hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  gap: 60px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 280px;
}

.hero-title-wrap {
  animation: up 1s var(--ease) both;
  flex-shrink: 0;
  margin-top: 40px;
  margin-bottom: 60px;
}

.hero-h {
  font-family: var(--serif);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -.04em;
  animation: up 1s var(--ease) both;
  margin-bottom: 40px;
  text-align: left;
}
.hero-h em { font-style: italic; font-weight: 400; }

.hero-foot {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 30px;
  flex: 0 0 auto;
  animation: up 1s .2s var(--ease) both;
  max-width: 550px;
}
.hero-caption {
  font-family: var(--serif);
  font-size: clamp(20px, 2.5vw, 32px);
  line-height: 1.6;
  color: var(--faint);
  font-weight: 400;
  margin-bottom: 0;
  text-align: left;
  max-width: 550px;
}
.hero-image {
  flex: 0 0 auto;
  width: 350px;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  flex-shrink: 0;
  animation: up 1.5s .3s var(--ease) both;
  margin-bottom: 0;
  margin-top: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: inherit;
  display: block;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

html[data-theme='light'] .hero-image img {
  box-shadow: none;
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 52px;
}
.s {
  padding: 110px 0;
  border-bottom: 1px solid var(--line);
}
.s-label {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
  font-weight: 600;
}
.s-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-m);
}
.s-h {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.s-h em { font-style: italic; font-weight: 400; }

.section-desc {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .05em;
  color: rgba(var(--white-rgb), 0.84);
  margin-top: 20px;
  line-height: 1.8;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 88px;
  margin-top: 60px;
  align-items: start;
}
.about-text p {
  font-size: 18px;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(var(--white-rgb), .68);
  margin-bottom: 22px;
}
.about-text p strong { color: var(--white); font-weight: 500; }

.about-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-m);
  border: 1px solid var(--line-m);
  margin-top: 56px;
}
.abox { background: var(--black); padding: 28px 22px; }
.abox-n {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
}
.abox-l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes fall {
  0% { transform: translateY(0); }
  100% { transform: translateY(56px); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.rev {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.rev.in { opacity: 1; transform: none; }

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ============================================================
   TECH STACK
   ============================================================ */
.stack-wrap { margin-top: 60px; }
.sk-cat { border-top: 1px solid var(--line); }
.sk-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}
.sk-name {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}
.sk-count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.sk-pills { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 28px; }
.pill {
  padding: 9px 19px;
  border: 1px solid var(--line-m);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
  transition: background .18s, color .18s, border-color .18s;
  cursor: none;
  background: transparent;
  color: var(--white);
}
.pill:hover { background: var(--white); color: var(--black); border-color: var(--white); }

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-list { margin-top: 60px; }
.exp-item {
  display: grid;
  grid-template-columns: 100px 1fr 160px;
  gap: 40px;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background .2s;
  cursor: none;
}

.exp-item,
.exp-main,
.exp-head,
.exp-body {
  min-width: 0;
}
.exp-item:last-child { border-bottom: 1px solid var(--line); }
.exp-item:hover      { background: rgba(var(--white-rgb), .018); }

.exp-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .06em;
  line-height: 1.9;
  padding-top: 5px;
}
.exp-role {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 5px;
}
.exp-org {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.exp-note {
  font-size: 18px;
  color: rgba(var(--white-rgb), .74);
  line-height: 1.8;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.exp-pts { list-style: none; }
.exp-pts li {
  font-size: 18px;
  color: rgba(var(--white-rgb), .72);
  padding: 4px 0 4px 15px;
  position: relative;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.exp-pts li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--faint);
  font-size: 13px;
}
.exp-loc {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: .08em;
  text-align: right;
  padding-top: 5px;
  line-height: 1.9;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.proj-wrap    { margin-top: 60px; }
.proj-cell {
  padding: 40px;
  border-bottom: 1px solid var(--line);
  cursor: none;
  transition: background .25s;
  position: relative;
}
.proj-cell:hover { background: rgba(var(--white-rgb), .025); }

.proj-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.proj-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 14px;
}
.proj-desc {
  font-size: 18px;
  color: rgba(var(--white-rgb), .72);
  line-height: 1.85;
  margin-bottom: 24px;
}
.proj-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ============================================================
   CREDENTIALS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-m);
  border: 1px solid var(--line-m);
}
.cert-cell {
  background: var(--black);
  padding: 26px 30px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  transition: background .2s;
  cursor: none;
}
.cert-cell:hover { background: rgba(var(--white-rgb), .03); }

.cert-proof-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--black);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform .18s, background .18s, color .18s;
  cursor: none;
}

.cert-proof-btn:hover {
  transform: translateY(-1px);
  background: rgba(var(--white-rgb), 0.92);
}

.cert-proof-btn:active {
  transform: translateY(0);
}

.cert-proof-btn:focus-visible {
  outline: 2px solid var(--line-m);
  outline-offset: 3px;
}

.ach-list { margin-top: 28px; }
.ach-row {
  display: flex;
  align-items: baseline;
  gap: 32px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.ach-row:last-child { border-bottom: 1px solid var(--line); }
.ach-yr {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .1em;
  min-width: 38px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 60px;
  align-items: start;
}
.contact-quote {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 36px);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(var(--white-rgb), .65);
}
.clinks { margin-top: 44px; }
.cl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.cl-row:last-child { border-bottom: 1px solid var(--line); }
.cl-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.cl-v { font-size: 16px; color: var(--white); text-decoration: none; transition: color .2s; }
.cl-v:hover { color: var(--faint); }

.contact-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-action {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-m);
  background: transparent;
  color: var(--white);
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}

.contact-action-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.contact-action:hover {
  background: rgba(var(--white-rgb), .04);
  border-color: var(--line-m);
}

.contact-action:active {
  transform: translateY(1px);
}

.contact-action:focus-visible {
  outline: 2px solid var(--line-m);
  outline-offset: 3px;
}

.cform { display: flex; flex-direction: column; }
.cf-row { border-top: 1px solid var(--line); }
.cf-row-last { border-bottom: 1px solid var(--line); }
.cf-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(var(--white-rgb), 0.72);
  padding: 18px 0 5px;
}
.cf-inp {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 16px;
  resize: none;
  line-height: 1.6;
  caret-color: var(--white);
}
.cf-inp::-moz-placeholder {
  color: rgba(var(--white-rgb), 0.42);
  opacity: 1;
}
.cf-inp::placeholder {
  color: rgba(var(--white-rgb), 0.42);
  opacity: 1;
}

/* Message textarea: marked, boxed field */
.cf-textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(var(--white-rgb), 0.02);
  padding: 14px 14px;
  margin-bottom: 6px;
}

.cf-row:focus-within .cf-textarea {
  border-color: var(--line-m);
  background: rgba(var(--white-rgb), 0.03);
}
.cf-row:focus-within {
  border-top-color: var(--line-m);
}
.cf-row:focus-within + .cf-row {
  border-top-color: var(--line-m);
}
.cf-inp:focus-visible {
  outline: none;
}
.cf-btn {
  margin-top: 28px;
  background: var(--white);
  color: var(--black);
  border: none;
  padding: 16px 40px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: none;
  width: 100%;
  transition: background .2s, color .2s;
}
.cf-btn:hover { background: var(--faint); color: var(--white); }

/* ============================================================
   NAVIGATION - MOBILE & DESKTOP
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  padding: 20px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .3s, padding .3s, border-bottom .3s;
}

nav.stuck {
  background: var(--black);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 15px 52px;
}

.nav-desktop { display: flex; align-items: center; flex: 1; }
.nav-mobile { 
  display: none; 
  align-items: center; 
  gap: 20px;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}
.nav-brand { 
  font-size: 15px; 
  font-weight: 700; 
  letter-spacing: .12em;
  order: -1;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--faint);
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.hamburger:hover {
  transform: scale(1.08);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
  border-radius: 1px;
}

.hamburger span:nth-child(1),
.hamburger span:nth-child(3) {
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(10px) translateX(1px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-10px) translateX(1px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--black);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  animation: slideDownMenu 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-item {
  padding: 16px 52px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid var(--line);
  animation: slideInMenuItem 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.25s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.3s; }

@keyframes slideInMenuItem {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.mobile-menu-item:hover {
  background: rgba(var(--white-rgb), 0.05);
  color: var(--faint);
}

.mobile-menu-item:last-child {
  border-bottom: none;
}

/* ============================================================
   MEDIA QUERIES - RESPONSIVE
   ============================================================ */

/* Small phones - 320px to 479px */
@media (max-width: 479px) {
  .c-dot, .c-ring { display: none; }
  body { cursor: auto; }

  nav {
    padding: 16px 20px;
  }

  nav.stuck {
    padding: 12px 20px;
  }

  .nav-desktop { display: none; }
  .nav-mobile { display: flex; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.active { display: flex; }
  .nav-status { display: none; }

  .app-theme-fab {
    display: inline-flex !important;
    z-index: 1500;
  }

  .mobile-menu-item {
    padding-left: 20px;
    padding-right: 20px;
  }

  .wrap {
    padding: 0 20px;
  }

  #hero {
    padding: 80px 20px 40px;
    flex-direction: column;
    gap: 30px;
    height: auto;
    min-height: auto;
  }

  .hero-body {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
  }

  .hero-text {
    min-width: 0;
    width: 100%;
  }

  .hero-title-wrap {
    margin-top: 0;
    margin-bottom: 18px;
  }

  .hero-h {
    font-size: clamp(36px, 8vw, 56px);
    margin-bottom: 20px;
    text-align: center;
  }

  .hero-caption {
    font-size: clamp(16px, 2vw, 20px);
    text-align: center;
  }

  .hero-image {
    width: min(320px, 100%);
    height: auto;
    aspect-ratio: 7 / 9;
    display: flex;
    justify-content: center;
  }

  .hero-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
  }

  .s {
    padding: 60px 0;
  }

  .s-label {
    font-size: 11px;
    gap: 12px;
    margin-bottom: 30px;
  }

  .s-h {
    font-size: clamp(28px, 6vw, 48px);
  }

  .section-desc {
    font-size: 14px !important;
  }

  .about-nums {
    grid-template-columns: 1fr;
  }

  .exp-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .exp-head { order: 1; }
  .exp-period { order: 2; padding-top: 0; }
  .exp-loc { order: 3; padding-top: 0; text-align: left; }
  .exp-body { order: 4; }

  .exp-role {
    font-size: 22px;
    line-height: 1.15;
  }

  .exp-org {
    margin-bottom: 0;
    line-height: 1.6;
  }

  .exp-note, .exp-pts li {
    font-size: 16px;
    line-height: 1.7;
  }

  .proj-cell {
    padding: 24px;
  }

  .proj-name {
    font-size: 22px;
  }

  .proj-desc {
    font-size: 16px;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .cert-cell {
    padding: 16px 20px;
    gap: 12px;
  }

  .contact-cols {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .contact-form-wrap { order: 1; }
  .contact-left { order: 2; }

  .contact-form-wrap,
  .contact-left {
    text-align: center;
  }

  /* Center the form container (max-w-md + mx-auto equivalent) */
  .contact-form-wrap {
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  /* Keep input text readable (not centered) */
  .cf-inp {
    text-align: left;
  }

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

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

  .contact-actions {
    justify-content: center;
    width: 100%;
    justify-content: flex-start;
  }

  .cf-btn {
    margin-top: 20px;
  }

  .contact-quote {
    font-size: clamp(16px, 3vw, 24px);
  }

  .cform {
    gap: 0;
  }

  .cf-inp {
    font-size: 15px;
  }

  .pill {
    font-size: 12px;
    padding: 8px 14px;
  }
}

/* Tablets - 480px to 768px */
@media (min-width: 480px) and (max-width: 768px) {
  .c-dot, .c-ring { display: none; }
  body { cursor: auto; }

  nav {
    padding: 18px 32px;
  }

  nav.stuck {
    padding: 14px 32px;
  }

  .nav-desktop { display: none; }
  .nav-mobile { display: flex; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; }
  .mobile-menu.active { display: flex; }
  .nav-status { display: none; }

  .app-theme-fab {
    display: inline-flex !important;
    z-index: 1500;
  }

@media (min-width: 769px) {
  .app-theme-fab {
    display: none !important;
  }
}

  .mobile-menu-item {
    padding-left: 32px;
    padding-right: 32px;
  }

  .wrap {
    padding: 0 32px;
  }

  #hero {
    padding: 90px 32px 50px;
    flex-direction: column;
    gap: 40px;
    height: auto;
    min-height: auto;
  }

  .hero-body {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 26px;
  }

  .hero-text {
    min-width: 0;
    width: 100%;
  }

  .hero-title-wrap {
    margin-top: 0;
    margin-bottom: 22px;
  }

  .hero-h {
    font-size: clamp(48px, 8vw, 80px);
    margin-bottom: 30px;
    text-align: center;
  }

  .hero-caption {
    font-size: clamp(18px, 2.5vw, 26px);
    text-align: center;
  }

  .hero-image {
    width: min(350px, 100%);
    height: auto;
    aspect-ratio: 7 / 9;
  }

  .hero-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
  }

  .s {
    padding: 80px 0;
  }

  .s-label {
    font-size: 12px;
    gap: 16px;
    margin-bottom: 40px;
  }

  .s-h {
    font-size: clamp(36px, 6vw, 64px);
  }

  .about-cols {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-nums {
    grid-template-columns: repeat(2, 1fr);
  }

  .exp-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .exp-head { order: 1; }
  .exp-period { order: 2; padding-top: 0; }
  .exp-loc { order: 3; padding-top: 0; text-align: left; }
  .exp-body { order: 4; }

  .exp-role {
    font-size: 26px;
    line-height: 1.15;
  }

  .exp-org {
    margin-bottom: 0;
    line-height: 1.6;
  }

  .proj-cell {
    padding: 32px;
  }

  .proj-name {
    font-size: 26px;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .contact-cols {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .contact-form-wrap { order: 1; }
  .contact-left { order: 2; }

  .contact-form-wrap,
  .contact-left {
    text-align: center;
  }

  /* Center the form container (max-w-md + mx-auto equivalent) */
  .contact-form-wrap {
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    align-self: center;
  }

  /* Keep input text readable (not centered) */
  .cf-inp {
    text-align: left;
  }

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

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

  .contact-actions {
    justify-content: center;
    width: 100%;
  }

  .contact-quote {
    font-size: clamp(18px, 3vw, 28px);
  }

  .pill {
    font-size: 13px;
  }
}

/* Desktops - 769px and up */
@media (min-width: 769px) {
  .nav-mobile { display: none; }
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .nav-status { display: flex; }

  nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Small desktops - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  nav {
    padding: 18px 40px;
  }

  nav.stuck {
    padding: 14px 40px;
  }

  .wrap {
    padding: 0 40px;
  }

  #hero {
    padding: 90px 40px 50px;
    gap: 60px;
  }

  .about-nums {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-cols {
    gap: 60px;
  }
}

/* Large desktops - 1025px and up */
@media (min-width: 1025px) {
  nav {
    padding: 20px 52px;
  }

  .wrap {
    padding: 0 52px;
  }

  #hero {
    padding: 100px 52px 60px;
  }
}
/* ============================================================
   MOBILE RESPONSIVE STYLES
   ============================================================ */

/* TABLET & MOBILE (768px and below) */
@media (max-width: 768px) {
  /* CURSOR */
  .c-dot, .c-ring {
    display: none !important;
  }
  
  body {
    cursor: auto !important;
  }

  /* NAVIGATION */
  nav {
    padding: 16px 24px;
    flex-wrap: wrap;
  }

  .nav-id {
    font-size: 10px;
  }

  .nav-links {
    display: none;
  }

  .nav-status {
    font-size: 9px;
  }

  /* HERO */
  #hero {
    padding: 60px 24px 40px;
    height: auto;
    min-height: 500px;
    justify-content: center;
  }

  #hero-canvas {
    opacity: 0.3;
  }

  .hero-body {
    width: 100%;
  }

  .hero-h {
    font-size: clamp(36px, 10vw, 56px);
    line-height: 1;
    margin-bottom: 24px;
  }

  .hero-foot {
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
  }

  .hero-caption {
    font-size: clamp(14px, 4vw, 18px);
    max-width: 100%;
  }

  .hero-image {
    margin-top: 0;
    width: 100%;
  }

  .hero-image img {
    width: 100%;
    height: auto;
    max-width: 300px;
  }

  /* SECTION LAYOUT */
  .wrap {
    padding: 0 24px;
    max-width: 100%;
  }

  .s {
    padding: 60px 0;
  }

  .s-label {
    margin-bottom: 32px;
    font-size: 11px;
  }

  .s-label::after {
    display: none;
  }

  .s-h {
    font-size: clamp(32px, 8vw, 56px);
  }

  /* ABOUT */
  .about-cols {
    grid-template-columns: 1fr;
    gap: 48px;
    margin-top: 40px;
  }

  .about-text p {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .about-nums {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .abox {
    padding: 20px 16px;
  }

  .abox-n {
    font-size: 36px;
  }

  /* TECH LOOP CAROUSEL */
  #tech-loop {
    padding: 40px 0;
  }

  /* LOGOLOOP RESPONSIVE */
  .logoloop--horizontal {
    height: 100px;
  }

  .logoloop__item img {
    height: 50px !important;
    width: auto !important;
  }

  /* TECH STACK */
  .stack-wrap {
    margin-top: 40px;
  }

  .sk-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
  }

  .sk-pills {
    gap: 8px;
  }

  .pill {
    padding: 8px 14px;
    font-size: 11px;
  }

  /* EXPERIENCE */
  .exp-list {
    margin-top: 40px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 32px 0;
  }

  .exp-period {
    font-size: 9px;
  }

  .exp-role {
    font-size: 20px;
  }

  .exp-org {
    font-size: 9px;
  }

  .exp-note {
    font-size: 12px;
  }

  .exp-pts li {
    font-size: 12px;
    padding: 4px 0 4px 12px;
  }

  .exp-loc {
    text-align: left;
  }

  /* PROJECTS */
  .proj-wrap {
    margin-top: 40px;
  }

  .proj-cell {
    padding: 28px 20px;
  }

  .proj-name {
    font-size: 20px;
  }

  .proj-desc {
    font-size: 12px;
  }

  .proj-kind {
    font-size: 8px;
  }

  /* CREDENTIALS */
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .cert-cell {
    padding: 20px 18px;
    gap: 14px;
  }

  .ach-list {
    margin-top: 20px;
  }

  .ach-row {
    gap: 20px;
    padding: 20px 0;
  }

  /* CONTACT */
  .contact-cols {
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
  }

  .contact-links {
    flex-direction: column;
    gap: 12px;
  }

  .contact-link {
    padding: 12px 16px;
    font-size: 13px;
  }

  /* FORM */
  .contact-form {
    width: 100%;
  }

  input,
  textarea {
    font-size: 16px !important;
    padding: 12px 16px !important;
  }

  textarea {
    min-height: 120px;
  }

  button {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }

  /* INTRO */
  .intro-container {
    padding: 0 24px;
  }

  .greeting-text {
    font-size: clamp(36px, 10vw, 52px);
  }
}

/* SMALL PHONES (480px and below) */
@media (max-width: 480px) {
  /* NAVIGATION */
  nav {
    padding: 12px 16px;
  }

  .nav-id {
    font-size: 9px;
  }

  /* HERO */
  #hero {
    padding: 40px 16px;
    min-height: 400px;
  }

  .hero-h {
    font-size: clamp(28px, 9vw, 42px);
  }

  .hero-caption {
    font-size: clamp(12px, 3vw, 14px);
  }

  .hero-foot {
    gap: 20px;
    margin-top: 30px;
  }

  .hero-image img {
    max-width: 240px;
  }

  /* LAYOUT */
  .wrap {
    padding: 0 16px;
  }

  .s {
    padding: 40px 0;
  }

  .s-h {
    font-size: clamp(24px, 7vw, 36px);
  }

  .s-label {
    font-size: 10px;
    margin-bottom: 20px;
  }

  /* ABOUT */
  .about-cols {
    gap: 32px;
    margin-top: 28px;
  }

  .about-text p {
    font-size: 14px;
  }

  .about-nums {
    grid-template-columns: 1fr;
  }

  .abox {
    padding: 16px 12px;
  }

  .abox-n {
    font-size: 28px;
  }

  /* TECH STACK */
  .tech-pills-wrap {
    gap: 10px;
  }

  .tech-pill {
    padding: 8px 12px;
    font-size: 10px;
  }

  .pill-icon {
    font-size: 14px;
    width: 18px;
    height: 18px;
  }

  /* LOGOLOOP */
  .logoloop--horizontal {
    height: 80px;
  }

  .logoloop__item img {
    height: 40px !important;
  }

  /* EXPERIENCE */
  .exp-item {
    padding: 24px 0;
  }

  .exp-period {
    font-size: 8px;
  }

  .exp-role {
    font-size: 18px;
  }

  .exp-note {
    font-size: 11px;
  }

  .exp-pts li {
    font-size: 11px;
  }

  /* PROJECTS */
  .proj-cell {
    padding: 20px 16px;
  }

  .proj-name {
    font-size: 18px;
  }

  .proj-desc {
    font-size: 11px;
  }

  /* CREDENTIALS */
  .cert-cell {
    padding: 16px 12px;
    flex-direction: column;
  }

  .ach-row {
    gap: 16px;
    padding: 16px 0;
  }

  /* CONTACT */
  .contact-cols {
    gap: 40px;
  }

  .contact-link {
    padding: 10px 14px;
    font-size: 12px;
  }

  input,
  textarea {
    font-size: 16px !important;
  }

  button {
    width: 100%;
  }

  /* INTRO */
  .intro-container {
    padding: 0 16px;
  }

  .greeting-text {
    font-size: clamp(28px, 8vw, 40px);
  }
}

/* EXTRA SMALL PHONES (360px and below) */
@media (max-width: 360px) {
  .wrap {
    padding: 0 12px;
  }

  .hero-h {
    font-size: clamp(24px, 8vw, 36px);
  }

  .s-h {
    font-size: clamp(20px, 6vw, 28px);
  }

  nav {
    padding: 10px 12px;
  }

  .about-nums {
    gap: 0;
  }

  .tech-pill {
    padding: 6px 10px;
    font-size: 9px;
  }

  .pill {
    padding: 6px 10px;
    font-size: 10px;
  }
}

/* STATE FOR TOUCH DEVICES */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover effects on touch devices */
  .pill:hover,
  .exp-item:hover,
  .proj-cell:hover,
  .cert-cell:hover {
    background: transparent;
  }

  button:hover {
    background: var(--white);
  }

  /* Optimize for touch targets */
  button,
  input,
  a {
    min-height: 44px;
    min-width: 44px;
  }
}

/* LANDSCAPE MODE */
@media (max-height: 500px) and (orientation: landscape) {
  #hero {
    min-height: 300px;
    padding: 40px 24px;
  }

  .hero-foot {
    margin-top: 20px;
  }

  .s {
    padding: 40px 0;
  }
}

/* PRINT STYLES */
@media print {
  nav,
  .c-dot,
  .c-ring,
  button {
    display: none !important;
  }

  .s {
    page-break-inside: avoid;
  }
}
