/* ============================================================
   Thiago Argel — Portfolio. Dark-first editorial.
   ============================================================ */

:root {
  --bg: #08080A;
  --bg-2: #0C0C0F;
  --surface: #111114;
  --surface-2: #16161A;
  --surface-3: #1C1C22;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ECECEA;
  --text-soft: #B7B7B2;
  --text-mute: #6F6F6B;
  --text-faint: #45454A;
  --accent: #FFFFFF;
  --accent-soft: rgba(255, 255, 255, 0.08);

  /* warm spotlight */
  --glow-a: rgba(255, 232, 198, 0.10);
  --glow-b: rgba(255, 178, 138, 0.05);

  --traffic-red: #FF5F57;
  --traffic-yellow: #FEBC2E;
  --traffic-green: #28C840;

  --font-sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-window: 18px;
  --radius-card: 14px;
  --radius-chip: 999px;

  --max: 1280px;
  --gutter: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #F4F2EC;
  --bg-2: #EFEDE6;
  --surface: #FFFFFF;
  --surface-2: #F8F6F0;
  --surface-3: #EDEAE2;
  --border: rgba(15, 15, 15, 0.10);
  --border-strong: rgba(15, 15, 15, 0.20);
  --text: #0E0E10;
  --text-soft: #3B3B3D;
  --text-mute: #6E6E70;
  --text-faint: #A8A8A8;
  --accent: #0E0E10;
  --accent-soft: rgba(14, 14, 16, 0.08);
  --glow-a: rgba(214, 173, 130, 0.18);
  --glow-b: rgba(140, 100, 70, 0.08);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss03", "cv11";
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; padding: 0; }

::selection { background: var(--accent); color: var(--bg); }

/* Background field — page-wide subtle vignette + grain */
.bg-field {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.bg-field::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 8%, var(--glow-a) 0%, transparent 70%),
    radial-gradient(40% 30% at 75% 35%, var(--glow-b) 0%, transparent 75%);
}
.bg-field::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

.app { position: relative; z-index: 1; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 20px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s var(--ease), background-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.header.is-scrolled {
  padding: 14px 32px;
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; flex-direction: column; gap: 2px; line-height: 1.15; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.brand-role { color: var(--text-mute); font-size: 12.5px; }

.nav-inline {
  display: flex; align-items: center; gap: 4px;
  background: color-mix(in oklab, var(--surface) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  backdrop-filter: blur(12px);
}
.nav-inline button {
  position: relative;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: 999px;
  transition: color 0.2s var(--ease);
}
.nav-inline button:hover { color: var(--text); }
.nav-inline button.is-active { color: var(--text); }
.nav-pill-bg {
  position: absolute;
  top: 5px; bottom: 5px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: left 0.35s var(--ease), width 0.35s var(--ease);
  z-index: 0;
}
.nav-inline button > span { position: relative; z-index: 1; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.toggle-group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  background: color-mix(in oklab, var(--surface) 40%, transparent);
}
.toggle-group button {
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
  min-width: 28px;
  transition: color 0.2s, background 0.2s;
}
.toggle-group button.is-active {
  color: var(--text);
  background: var(--surface-3);
}

.icon-btn {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn:active { transform: scale(0.95); }

.header-link {
  font-size: 13px;
  color: var(--text-soft);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.header-link:hover { color: var(--text); background: var(--accent-soft); }
.header-link .arrow { transition: transform 0.2s var(--ease); }
.header-link:hover .arrow { transform: translate(2px, -2px); }

.mobile-menu-btn { display: none; }

/* ============================================================
   HERO — Window Frame
   ============================================================ */

.hero {
  padding: 120px 0 48px;
  position: relative;
}

.window {
  position: relative;
  margin: 0 auto;
  max-width: 1180px;
  border-radius: var(--radius-window);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 30px 80px -20px rgba(0,0,0,0.6),
    0 60px 140px -40px rgba(0,0,0,0.5);
}

[data-theme="light"] .window {
  box-shadow:
    0 1px 0 rgba(255,255,255,1) inset,
    0 30px 80px -30px rgba(0,0,0,0.18),
    0 60px 140px -40px rgba(0,0,0,0.12);
}

.window-chrome {
  height: 38px;
  display: flex; align-items: center;
  padding: 0 14px;
  background: linear-gradient(180deg, #2a2a2e 0%, #1c1c1f 50%, #16161A 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
}
[data-theme="light"] .window-chrome {
  background: linear-gradient(180deg, #E8E5DE 0%, #D8D4CC 50%, #C9C5BD 100%);
}
.traffic { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 0.5px rgba(0,0,0,0.25) inset; }
.dot.red    { background: var(--traffic-red); }
.dot.yellow { background: var(--traffic-yellow); }
.dot.green  { background: var(--traffic-green); }

.window-title {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.window-body {
  padding: 80px 80px 70px;
  position: relative;
  min-height: 540px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.window-body::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 25% 35%, rgba(255, 232, 198, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="light"] .window-body::before {
  background: radial-gradient(50% 60% at 25% 35%, rgba(214, 173, 130, 0.20) 0%, transparent 70%);
}

.hero-availability {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 9px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface-2) 50%, transparent);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-soft);
  width: max-content;
  position: relative;
  z-index: 1;
}
.hero-availability .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero-headline {
  position: relative; z-index: 1;
  margin: 36px 0 0;
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--text);
}
.hero-headline .italic-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, var(--text) 0%, color-mix(in oklab, var(--text) 70%, transparent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}

.hero-footer {
  position: relative; z-index: 1;
  margin-top: 64px;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-meta { display: flex; flex-direction: column; gap: 4px; max-width: 360px; }
.hero-meta-primary { color: var(--text); font-weight: 500; font-size: 15px; }
.hero-meta-secondary { color: var(--text-mute); font-size: 14px; }

.hero-ctas { display: flex; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn.primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn.ghost:hover {
  background: var(--accent-soft);
}

.scroll-indicator {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 28px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-indicator .line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, var(--text-mute));
  animation: scroll-down 2.4s var(--ease) infinite;
}
@keyframes scroll-down {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   SECTION SHELL
   ============================================================ */
section.block { padding: 72px 0; position: relative; }
.section-label {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.section-label .glyph { color: var(--text-soft); }
.section-label .num { color: var(--text); font-weight: 600; }
.section-label .rule {
  flex: 1; height: 1px; background: var(--border); margin-left: 4px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  max-width: 760px;
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-title .italic-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section-lede {
  color: var(--text-soft);
  font-size: 16px;
  max-width: 560px;
  margin: 0 0 40px;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  margin-top: 30px;
}
.trust-strip-track {
  display: flex; gap: 56px;
  align-items: center;
  overflow: hidden;
  flex-wrap: wrap;
  justify-content: space-between;
}
.trust-item {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-soft);
  font-size: 13px;
}
.trust-item .glyph {
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* ============================================================
   WORK / PROJECTS
   ============================================================ */
.projects {
  display: flex; flex-direction: column;
  gap: 56px;
}
.project {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.project.reverse { grid-template-columns: 1.2fr 1fr; }
.project.reverse .project-frame { order: 2; }
.project.reverse .project-info { order: 1; }

.project-info { display: flex; flex-direction: column; gap: 14px; }
.project-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-tag .dot-sm {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-faint);
}
.project-tag.in-progress .dot-sm { background: #FEBC2E; }
.project-tag.demo .dot-sm { background: #6F6F6B; }

.project-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin: 0;
}
.project-category {
  color: var(--text-mute);
  font-size: 14px;
  margin: -8px 0 0;
}
.project-desc {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 480px;
  margin: 6px 0 0;
}
.project-stack {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.chip {
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  background: color-mix(in oklab, var(--surface-2) 30%, transparent);
}
.project-meta-row {
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 16px; row-gap: 6px;
  margin-top: 14px;
  font-size: 13px;
}
.project-meta-row dt { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 3px; }
.project-meta-row dd { margin: 0; color: var(--text); }
.project-cta-row { display: flex; gap: 12px; margin-top: 22px; }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.text-link:hover { border-color: var(--text); }
.text-link.muted { color: var(--text-soft); }

/* Project frame — mini browser preview */
.project-frame {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 50px -25px rgba(0,0,0,0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.project-frame:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -25px rgba(0,0,0,0.65); }
.project-frame-bar {
  height: 28px;
  background: linear-gradient(180deg, #222226, #1A1A1E);
  display: flex; align-items: center; padding: 0 10px;
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .project-frame-bar { background: linear-gradient(180deg, #E8E5DE, #D8D4CC); }
.project-frame-bar .traffic .dot { width: 9px; height: 9px; }
.project-frame-body {
  position: absolute; inset: 28px 0 0 0;
  padding: 0;
  background: var(--surface-3);
  overflow: hidden;
}
.project-preview {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 28px 32px;
  color: var(--text);
  background:
    radial-gradient(60% 50% at 30% 20%, color-mix(in oklab, var(--accent-soft) 200%, transparent) 0%, transparent 70%),
    var(--surface-3);
}
.preview-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); }
.preview-h {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 8px;
  max-width: 88%;
}
.preview-h .italic { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.preview-row {
  margin-top: auto;
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
}

.preview-pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.preview-pill {
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: color-mix(in oklab, var(--surface) 40%, transparent);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---- Marketplace preview ---- */
.preview-marketplace .preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.preview-marketplace .preview-tile {
  border-radius: 8px;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.preview-tile.scene-lake {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, #6B8FA8 0%, #3A5773 55%, #1F3A52 100%);
}
.preview-tile.scene-forest {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 40%, rgba(0,0,0,0.6) 100%),
    linear-gradient(180deg, #4D6E5A 0%, #2C4A38 50%, #15291F 100%);
}
.preview-tile.scene-alpine {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, #B7A88E 0%, #7B6A52 50%, #3D3325 100%);
}
.tile-overlay {
  position: absolute; inset: 0;
  padding: 8px 9px;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.tile-label { font-weight: 500; }
.tile-meta { color: rgba(255,255,255,0.7); font-size: 9px; }

/* ---- Shop preview ---- */
.preview-shop .shop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.shop-card { display: flex; flex-direction: column; gap: 6px; }
.shop-swatch {
  aspect-ratio: 3/4;
  border-radius: 6px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.shop-swatch::before {
  /* hanger illusion + garment silhouette */
  content: "";
  position: absolute; inset: 14% 22% 0;
  background:
    radial-gradient(50% 8% at 50% 0%, rgba(0,0,0,0.4) 0%, transparent 70%),
    linear-gradient(180deg, transparent 0 8%, rgba(255,255,255,0.06) 8% 8.6%, transparent 8.6%);
}
.shop-swatch::after {
  content: ""; position: absolute;
  left: 18%; right: 18%; top: 22%; bottom: 8%;
  background: currentColor;
  clip-path: polygon(0% 0%, 100% 0%, 92% 18%, 100% 30%, 100% 100%, 0% 100%, 0% 30%, 8% 18%);
  opacity: 0.85;
}
.sw-linen { background: #28231D; color: #6E5E48; }
.sw-cream { background: #2A2620; color: #C4B69A; }
.sw-indigo { background: #1A1D2B; color: #2E3F66; }
[data-theme="light"] .sw-linen { background: #E8E2D6; color: #A0876A; }
[data-theme="light"] .sw-cream { background: #F2EDE2; color: #8C7E63; }
[data-theme="light"] .sw-indigo { background: #DDE0EB; color: #4A5980; }

.shop-tag {
  position: absolute; top: 6px; left: 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.1em;
  padding: 1px 5px;
  background: rgba(0,0,0,0.4);
  border-radius: 3px;
  z-index: 2;
}
[data-theme="light"] .shop-tag { background: rgba(255,255,255,0.7); color: #333; }
.shop-tag:empty { display: none; }

.shop-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10.5px;
  color: var(--text-soft);
}
.shop-name { font-family: var(--font-serif); font-style: italic; font-size: 12px; color: var(--text); }
.shop-price { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }

/* ---- Estate preview ---- */
.preview-estate .estate-card {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in oklab, var(--surface) 50%, transparent);
}
.estate-photo {
  aspect-ratio: 12/5;
  background:
    linear-gradient(180deg, #2A3B52 0%, #182434 100%);
  display: block;
}
[data-theme="light"] .estate-photo { background: linear-gradient(180deg, #C9D3DD, #97A6B6); }
.estate-photo svg { width: 100%; height: 100%; display: block; }

.estate-meta { padding: 10px 12px; }
.estate-meta-top { display: flex; justify-content: space-between; align-items: baseline; }
.estate-name { font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--text); }
.estate-price { font-family: var(--font-mono); font-size: 11px; color: var(--text); letter-spacing: 0.02em; }
.estate-meta-bot {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
  display: flex; gap: 6px;
}
.estate-meta-bot .dot-sep { opacity: 0.5; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.service-card {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 0.3s var(--ease);
  min-height: 280px;
}
.service-card:hover { background: color-mix(in oklab, var(--surface-2) 50%, transparent); }
.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.service-title {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0;
}
.service-desc { color: var(--text-soft); font-size: 14px; line-height: 1.55; margin: 0; }
.service-deliverables {
  list-style: none; padding: 0; margin: 6px 0 0;
  display: flex; flex-direction: column; gap: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
}
.service-deliverables li::before {
  content: "—  ";
  color: var(--text-faint);
}

.services-note {
  margin-top: 32px;
  padding: 18px 22px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  color: var(--text-soft);
  font-size: 13.5px;
  max-width: 720px;
}
.services-note strong { color: var(--text); font-weight: 600; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.skill-col {
  display: flex; flex-direction: column; gap: 10px;
}
.skill-cat {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--text-mute);
  text-transform: uppercase;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.skill-item {
  font-size: 14px;
  color: var(--text);
  padding: 6px 0;
  transition: padding-left 0.25s var(--ease), color 0.25s;
  cursor: default;
}
.skill-item:hover { padding-left: 8px; color: var(--text-soft); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.process-step {
  background: var(--bg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 200px;
  transition: background 0.3s var(--ease);
}
.process-step:hover { background: var(--surface); }
.process-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  color: var(--text-soft);
}
.process-title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin: 0; }
.process-desc { color: var(--text-soft); font-size: 13.5px; line-height: 1.55; margin: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.about-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 26px; }
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--surface);
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.8s var(--ease);
}
.about-portrait:hover img { transform: scale(1.02); }
.about-portrait::after {
  /* subtle vignette + faint editorial overlay */
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(0,0,0,0.45) 100%),
    radial-gradient(120% 80% at 50% 0%, transparent 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
[data-theme="light"] .about-portrait::after {
  background:
    linear-gradient(180deg, transparent 0%, transparent 65%, rgba(0,0,0,0.25) 100%);
}
.ph-overlay {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.9);
  z-index: 1;
}
.about-fact-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
.about-fact {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.about-fact .k { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.about-fact .v { color: var(--text); }

.about-body { max-width: 620px; }
.about-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 22px;
  text-wrap: pretty;
}
.about-body p:first-of-type { color: var(--text); font-size: 19px; }
.about-body p .italic { font-family: var(--font-serif); font-style: italic; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--border-strong);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field select { appearance: none; cursor: pointer; }

.contact-aside { display: flex; flex-direction: column; gap: 24px; }
.contact-channel {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
}
.contact-channel:hover { background: var(--accent-soft); border-color: var(--border-strong); }
.contact-channel .k { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.contact-channel .v { color: var(--text); font-size: 14.5px; margin-top: 4px; }
.contact-channel .arrow { color: var(--text-mute); transition: transform 0.25s var(--ease), color 0.2s; }
.contact-channel:hover .arrow { transform: translate(2px, -2px); color: var(--text); }

.contact-success {
  grid-column: 1 / -1;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  display: flex; gap: 18px; align-items: start;
}
.contact-success .check {
  width: 36px; height: 36px; border-radius: 999px;
  background: #4ADE80; color: #052E16;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-success h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
.contact-success p { margin: 0; color: var(--text-soft); font-size: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand .name { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; }
.footer-brand .meta { color: var(--text-mute); font-size: 13px; }
.footer-col h5 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--text-soft); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  color: var(--text-mute);
  font-size: 12.5px;
}
.footer-bottom .mono { font-family: var(--font-mono); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.in.delay-1 { transition-delay: 0.08s; }
.reveal.in.delay-2 { transition-delay: 0.16s; }
.reveal.in.delay-3 { transition-delay: 0.24s; }
.reveal.in.delay-4 { transition-delay: 0.32s; }
.reveal.in.delay-5 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .scroll-indicator .line { animation: none; }
  .hero-availability .pulse { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .skills-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .window-body { padding: 60px 50px 50px; }
  .header-link.linkedin, .header-link.resume { display: none; }
}

@media (max-width: 900px) {
  .nav-inline { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .header { gap: 12px; }
  .brand-role { display: none; }
}

@media (max-width: 820px) {
  :root { --gutter: 22px; }
  .header { padding: 14px 18px; }
  .header.is-scrolled { padding: 12px 18px; }
  .toggle-group { padding: 2px; }
  .toggle-group button { padding: 4px 7px; min-width: 26px; }

  .hero { padding: 96px 0 32px; }
  .window-body { padding: 38px 26px 30px; min-height: 0; }
  .hero-availability { font-size: 11.5px; padding: 5px 10px 5px 8px; }
  .hero-headline { font-size: clamp(30px, 9.2vw, 52px); margin-top: 28px; }
  .hero-footer { flex-direction: column; align-items: flex-start; gap: 22px; margin-top: 40px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; justify-content: center; }

  section.block { padding: 56px 0; }
  .section-title { font-size: clamp(26px, 6vw, 36px); }
  .section-lede { margin-bottom: 28px; font-size: 14.5px; }

  .project { grid-template-columns: 1fr; gap: 24px; }
  .project.reverse { grid-template-columns: 1fr; }
  .project.reverse .project-frame { order: 0; }
  .project.reverse .project-info { order: 1; }
  .project-title { font-size: clamp(26px, 6.4vw, 34px); }
  .project-frame { aspect-ratio: 16/12; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 26px 22px; }
  .services-note { margin-top: 24px; }

  .skills-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { min-height: 0; padding: 22px; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about-aside { position: static; flex-direction: row; gap: 18px; align-items: stretch; }
  .about-portrait { aspect-ratio: 1/1; max-width: 160px; flex-shrink: 0; }
  .about-fact-list { flex: 1; border-top: 0; }
  .about-fact:first-child { padding-top: 0; }
  .about-body p:first-of-type { font-size: 17px; }
  .about-body p { font-size: 15.5px; }

  .contact { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-aside { order: 2; }

  .footer { margin-top: 24px; padding: 36px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { margin-top: 36px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .header { padding: 12px 14px; }
  .header.is-scrolled { padding: 10px 14px; }
  .brand-name { font-size: 14px; }
  .header-actions { gap: 4px; }
  .toggle-group button { font-size: 11px; padding: 4px 6px; min-width: 22px; }
  .icon-btn { width: 32px; height: 32px; }

  .hero { padding: 84px 0 28px; }
  .window-chrome { height: 32px; padding: 0 10px; }
  .window-title { display: none; }
  .dot { width: 10px; height: 10px; }
  .window-body { padding: 28px 20px 24px; border-radius: 0 0 var(--radius-window) var(--radius-window); }
  .hero-headline { font-size: clamp(28px, 10vw, 44px); letter-spacing: -0.03em; }
  .hero-meta-primary { font-size: 14px; }
  .hero-meta-secondary { font-size: 13px; }

  .trust-strip { padding: 16px 0; }
  .trust-strip-track { gap: 18px 28px; }
  .trust-item { font-size: 12px; }

  .section-label { font-size: 10.5px; gap: 8px; }
  .section-title { font-size: clamp(24px, 7vw, 30px); }
  .section-lede { font-size: 14px; margin-bottom: 24px; }

  .project-info { gap: 10px; }
  .project-desc { font-size: 14.5px; }
  .chip { font-size: 10.5px; padding: 4px 9px; }
  .project-frame { aspect-ratio: 16/13; }
  .project-preview { padding: 18px 18px; }
  .preview-h { font-size: clamp(16px, 5vw, 22px); }
  .preview-marketplace .preview-grid { gap: 6px; margin-top: 12px; }
  .preview-shop .shop-grid { gap: 8px; margin-top: 12px; }
  .preview-estate .estate-card { margin-top: 12px; }
  .tile-label { font-size: 8.5px; }
  .tile-meta { font-size: 8px; }

  .service-title { font-size: 19px; }
  .service-desc { font-size: 13.5px; }

  .skills-grid { grid-template-columns: 1fr; gap: 14px; }
  .skill-col { padding-bottom: 14px; border-bottom: 1px solid var(--border); }
  .skill-col:last-child { border-bottom: 0; }

  .process-step { padding: 20px; }
  .process-num { font-size: 32px; }

  .about-aside { flex-direction: column; }
  .about-portrait { aspect-ratio: 4/5; max-width: 100%; }
  .about-body p:first-of-type { font-size: 16px; }

  .contact-channel { padding: 12px 14px; }
  .contact-channel .v { font-size: 13.5px; }

  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .mobile-menu nav a { font-size: 26px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(24px);
  display: flex; flex-direction: column;
  padding: 30px 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 36px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-foot {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 16px;
}
