/* ── AuXMono — place AuxMono-Regular.woff2 next to this file ── */
@font-face {
  font-family: 'AuXMono';
  src: url('AuxMono-Regular.woff2') format('woff2'),
       url('AuxMono-Regular.woff') format('woff'),
       url('AuxMono-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light !important;
  --bg:           #F7F6F3;
  --ink:          #111110;
  --mid:          #6B6860;
  --line:         #E2E0DA;
  --tag-bg:       #ECEAE4;
  --beta:         #CA8A04;
  --orange:       #E8621C;
  --teal:         #0E8A6E;
  --orange-muted: #FDF0EA;
  --teal-muted:   #E6F4F0;
  --mono: 'AuXMono', 'Space Mono', monospace;
}

/* Block dark-mode at OS level */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light !important; }
  html  { background: #F7F6F3 !important; color: #111110 !important; }
  body  { background: #F7F6F3 !important; color: #111110 !important; }
}

/* Hard-lock every element */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-color-adjust: exact !important;
  color-adjust: exact !important;
  forced-color-adjust: none !important;
}

html {
  color-scheme: light !important;
  scroll-behavior: smooth;
  background: #F7F6F3 !important;
}

body {
  background: #F7F6F3 !important;
  color: #111110 !important;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav-wrapper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  pointer-events: none; padding: 16px 24px;
  display: flex; justify-content: center;
  animation: navDrop 0.6s cubic-bezier(0.16,1,0.3,1) both;
  transition: padding-top 0.3s;
}

nav {
  pointer-events: all;
  display: flex; align-items: center;
  background: rgba(14,13,11,0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 8px 8px 8px 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
  width: fit-content; max-width: calc(100vw - 48px);
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; margin-right: 8px; }
.nav-logo svg { transition: opacity 0.2s; }
.nav-logo:hover svg { opacity: 0.8; }

.nav-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.1); margin: 0 4px; flex-shrink: 0; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55); padding: 7px 14px; border-radius: 100px;
  transition: color 0.15s, background 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.07); }

.nav-cta {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: #fff; background: #E8621C; padding: 8px 18px;
  border-radius: 100px; white-space: nowrap; margin-left: 4px; flex-shrink: 0;
  transition: background 0.2s;
}
.nav-cta:hover { background: #D4571A; color: #fff; }

/* ── Hamburger ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 4.5px;
  width: 34px; height: 34px; padding: 7px;
  border: none; cursor: pointer; margin-left: 8px;
  border-radius: 100px; flex-shrink: 0;
  background: transparent;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.1); }
.nav-hamburger span {
  display: block; width: 100%; height: 2px;
  border-radius: 2px; background: #E8621C;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.2s, background 0.2s;
  transform-origin: center;
}
.nav-hamburger.is-open span                { background: #0E8A6E; }
.nav-hamburger.is-open span:nth-child(1)   { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2)   { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3)   { transform: translateY(-6.5px) rotate(-45deg); }

/* ══════════════════════════════════════════
   BOTTOM SHEET
══════════════════════════════════════════ */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 149;
  background: transparent; pointer-events: none;
  transition: background 0.3s;
}
.sheet-backdrop.is-open { background: rgba(0,0,0,0.5); pointer-events: all; }

.mobile-drawer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  background: rgba(18,17,15,0.97);
  backdrop-filter: blur(32px) saturate(1.6);
  -webkit-backdrop-filter: blur(32px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.08); border-bottom: none;
  border-radius: 20px 20px 0 0; padding: 12px 0 0;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
}
.mobile-drawer.is-open { transform: translateY(0); }

.sheet-handle { width: 36px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; margin: 0 auto 20px; }

.sheet-links { display: flex; flex-direction: column; padding: 0 16px; gap: 4px; }
.sheet-links a {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55); padding: 14px 16px; border-radius: 12px;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.sheet-links a:active,
.sheet-links a:hover { color: rgba(255,255,255,0.95); background: rgba(255,255,255,0.07); }
.sheet-arrow { color: rgba(255,255,255,0.2); font-size: 0.75rem; }

.sheet-cta-row { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,0.07); margin-top: 8px; }
.sheet-cta-row a {
  display: block; font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.04em;
  text-align: center; color: #fff; background: #E8621C; padding: 15px; border-radius: 12px;
  transition: background 0.2s; -webkit-tap-highlight-color: transparent;
}
.sheet-cta-row a:active,
.sheet-cta-row a:hover { background: #D4571A; }
.sheet-safe { height: env(safe-area-inset-bottom, 16px); min-height: 16px; }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero { padding: 120px 40px 80px; max-width: 760px; }

.hero-label {
  font-family: var(--mono); font-size: 0.7rem; color: #E8621C;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
  animation: fadeUp 0.7s 0.2s both;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 300;
  line-height: 1.2; letter-spacing: -0.02em; color: #111110;
  margin-bottom: 24px; animation: fadeUp 0.7s 0.35s both;
}
h1 em { font-style: italic; font-weight: 300; }

.hero-desc {
  font-size: 1.05rem; color: #6B6860; max-width: 520px;
  font-weight: 400; line-height: 1.7; margin-bottom: 36px;
  animation: fadeUp 0.7s 0.5s both;
}
.hero-meta { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; animation: fadeUp 0.7s 0.65s both; }
.meta-item { font-family: var(--mono); font-size: 0.68rem; color: #6B6860; }
.meta-item strong { display: block; font-family: 'DM Sans', sans-serif; font-size: 1.5rem; font-weight: 500; color: #111110; line-height: 1.1; letter-spacing: -0.02em; }

/* ══════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════ */
section { padding: 64px 40px; border-top: 1px solid #E2E0DA; }

.section-label {
  font-family: var(--mono); font-size: 0.65rem; color: #0E8A6E;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 36px; display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: rgba(14,138,110,0.2); }

/* ══════════════════════════════════════════
   PROJECTS
══════════════════════════════════════════ */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; background: #E2E0DA; border: 1px solid #E2E0DA;
}
.project-card {
  background: #F7F6F3; padding: 28px 28px 24px;
  display: flex; flex-direction: column;
  transition: background 0.2s; position: relative; overflow: hidden;
}
.project-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: #0E8A6E; transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.project-card:hover::after { width: 100%; }
.project-card:hover { background: #F0EEE8; }
.project-card.featured::after { background: rgba(255,255,255,0.5); }

.pc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.pc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; background: #ECEAE4; color: #6B6860; border-radius: 2px; }
.tag.live { background: #E6F4F0; color: #0E8A6E; }
.tag.new  { background: #FDF0EA; color: #E8621C; }
.tag.beta { background: #FEF9C3; color: #CA8A04; }

.pc-ext { font-size: 0.85rem; color: #6B6860; opacity: 0.4; transition: opacity 0.15s, transform 0.2s; flex-shrink: 0; margin-left: 8px; }
.project-card:hover .pc-ext { opacity: 1; transform: translate(2px, -2px); }
.pc-name { font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; color: #111110; margin-bottom: 6px; }
.pc-desc { font-size: 0.875rem; color: #6B6860; line-height: 1.6; flex-grow: 1; margin-bottom: 20px; }
.pc-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #E2E0DA; padding-top: 14px; }
.pc-lang { font-family: var(--mono); font-size: 0.62rem; color: #6B6860; display: flex; align-items: center; gap: 6px; }
.lang-dot { width: 8px; height: 8px; border-radius: 50%; }
.lang-js { background: #F1E05A; }
.lang-ts { background: #2B7489; }
.pc-source { font-family: var(--mono); font-size: 0.6rem; color: #6B6860; opacity: 0.6; }

.project-card.featured { grid-column: span 2; background: #E8621C; color: #fff; }
.project-card.featured:hover { background: #D4571A; }
.project-card.featured .pc-name   { color: #fff; }
.project-card.featured .pc-desc   { color: rgba(255,255,255,0.72); }
.project-card.featured .pc-footer { border-color: rgba(255,255,255,0.2); }
.project-card.featured .pc-lang   { color: rgba(255,255,255,0.6); }
.project-card.featured .pc-ext    { color: rgba(255,255,255,0.6); }
.project-card.featured .pc-source { color: rgba(255,255,255,0.4); }
.project-card.featured .tag       { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); }

/* ══════════════════════════════════════════
   CLIENT LIST
══════════════════════════════════════════ */
.client-list { display: flex; flex-direction: column; border: 1px solid #E2E0DA; }
.client-row {
  display: grid; grid-template-columns: 40px 1fr 180px 148px 110px;
  align-items: center; padding: 15px 24px; border-bottom: 1px solid #E2E0DA;
  gap: 24px; transition: background 0.2s, padding-left 0.2s;
  border-left: 2px solid transparent;
}
.client-row:last-child { border-bottom: none; }
.client-row:hover { background: #F0EEE8; border-left-color: #0E8A6E; padding-left: 22px; }
.client-num  { font-family: var(--mono); font-size: 0.62rem; color: #6B6860; opacity: 0.5; }
.client-name { font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em; color: #111110; }
.client-link { color: inherit; border-bottom: 1px solid #E2E0DA; padding-bottom: 1px; transition: color 0.2s, border-color 0.2s; }
.client-link:hover { color: #E8621C; border-color: #E8621C; }

/* ── Screenshot preview tooltip ── */
.client-preview {
  position: relative;
  display: inline-block;
  cursor: default;
  border-bottom: 1px dashed #E2E0DA;
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.client-preview:hover {
  color: #E8621C;
  border-color: #E8621C;
}

.preview-tooltip {
  position: fixed;
  z-index: 999;
  width: 280px;
  background: #fff;
  border: 1px solid #E2E0DA;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16,1,0.3,1),
              transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
.preview-tooltip img {
  display: block;
  width: 100%;
  height: auto;
}
.preview-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.client-type { font-family: var(--mono); font-size: 0.62rem; color: #6B6860; }
.client-study { font-family: var(--mono); font-size: 0.6rem; color: #6B6860; opacity: 0.4; letter-spacing: 0.06em; text-transform: uppercase; text-align: right; }
.client-status { text-align: right; }

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
#about { padding: 64px 40px 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 900px; }
.about-text p { font-size: 1rem; color: #6B6860; line-height: 1.8; font-weight: 400; margin-bottom: 16px; }
.about-text p:last-child { margin-bottom: 0; }
.about-text p em { color: #111110; font-style: normal; font-weight: 500; }
.stack-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #E2E0DA; font-size: 0.85rem; transition: padding-left 0.2s; }
.stack-row:first-child { border-top: 1px solid #E2E0DA; }
.stack-row:hover { padding-left: 6px; }
.stack-name { color: #111110; font-weight: 400; }
.stack-role { font-family: var(--mono); font-size: 0.62rem; color: #6B6860; text-transform: uppercase; letter-spacing: 0.06em; }

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
#contact {
  border-top: 1px solid #E2E0DA; padding: 64px 40px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.contact-left h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.contact-left h2 em { font-style: italic; }
.contact-left p { font-size: 0.9rem; color: #6B6860; max-width: 400px; line-height: 1.7; }
.contact-right { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.contact-link { font-family: var(--mono); font-size: 0.78rem; color: #111110; border-bottom: 1px solid #E2E0DA; padding-bottom: 2px; transition: border-color 0.2s, color 0.2s; }
.contact-link:hover { border-color: #E8621C; color: #E8621C; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { border-top: 1px solid #E2E0DA; padding: 20px 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo { font-family: var(--mono); font-size: 0.75rem; color: #6B6860; }
.footer-logo span { color: #0E8A6E; }
.footer-copy { font-family: var(--mono); font-size: 0.68rem; color: #6B6860; opacity: 0.6; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes navDrop { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 1; transform: none; transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1); }
.js-ready .reveal       { opacity: 0; transform: translateY(20px); }
.js-ready .reveal.shown { opacity: 1; transform: translateY(0); }

.js-ready .projects-grid .reveal:nth-child(1) { transition-delay: 0.04s; }
.js-ready .projects-grid .reveal:nth-child(2) { transition-delay: 0.10s; }
.js-ready .projects-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.js-ready .projects-grid .reveal:nth-child(4) { transition-delay: 0.22s; }
.js-ready .client-list   .reveal:nth-child(1) { transition-delay: 0.04s; }
.js-ready .client-list   .reveal:nth-child(2) { transition-delay: 0.08s; }
.js-ready .client-list   .reveal:nth-child(3) { transition-delay: 0.12s; }
.js-ready .client-list   .reveal:nth-child(4) { transition-delay: 0.16s; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (min-width: 769px) {
  .mobile-drawer,
  .sheet-backdrop { display: none !important; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .nav-divider { display: none !important; }
  .nav-hamburger { display: flex; }
  #hero    { padding: 100px 20px 56px; }
  section  { padding: 48px 20px; }
  #contact { padding: 48px 20px; flex-direction: column; align-items: flex-start; }
  footer   { padding: 16px 20px; }
  .project-card.featured { grid-column: span 1; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .client-row { grid-template-columns: 1fr auto; gap: 12px; }
  .client-num, .client-type, .client-study { display: none; }
  h1 { font-size: 2.2rem; }
}