*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F6F2;
  --ink: #0D0D0C;
  --mid: #6B6B68;
  --faint: #C8C6BF;
  --rule: #E2E0D8;
  --olive: #6B7A5E;
  --white: #FFFFFF;
  --display: 'Space Grotesk', sans-serif;
  --sans: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --nav-h: 56px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* ── PAGES ── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; animation: pageIn 0.6s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════
   NAV
══════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav-logo {
  height: 20px; width: auto;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-center {
  display: flex; align-items: center; gap: 28px;
  flex: 1; justify-content: center;
}
.nav-btn {
  font-family: var(--mono); font-size: 10px; color: var(--mid);
  letter-spacing: 0.06em; background: none; border: none;
  cursor: pointer; padding: 0 0 4px; white-space: nowrap;
  background-image: linear-gradient(var(--olive), var(--olive));
  background-repeat: no-repeat; background-position: left bottom;
  background-size: 0% 1px;
  transition: color 0.15s, background-size 0.25s cubic-bezier(0.16,1,0.3,1);
}
.nav-btn:hover { color: var(--ink); background-size: 100% 1px; }
.nav-btn.on { color: var(--olive); background-size: 100% 1px; }
.nav-item {
  position: relative; display: flex; align-items: center;
  padding-bottom: 14px; margin-bottom: -14px;
}
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  background: var(--bg); border: 1px solid var(--rule);
  display: flex; flex-direction: column;
  min-width: 180px; padding: 4px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.15s;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.nav-item:hover .nav-btn { color: var(--ink); }
.nav-dropdown-item {
  font-family: var(--mono); font-size: 10px; color: var(--mid);
  letter-spacing: 0.06em; background: none; border: none;
  text-align: left; cursor: pointer; padding: 10px 16px;
  white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.nav-dropdown-item:hover { color: var(--ink); background: var(--rule); }
.nav-dropdown-item.on { color: var(--olive); }
.nav-right {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.lang-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  background: none; border: 1px solid var(--rule);
  padding: 5px 10px; cursor: pointer; color: var(--mid);
  transition: all 0.15s; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--olive); color: var(--olive); }
.lang-btn.on { border-color: var(--ink); color: var(--ink); }
.cv-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  background: var(--ink); color: var(--white); border: none;
  padding: 7px 14px; cursor: pointer; text-decoration: none;
  transition: background 0.15s; white-space: nowrap;
}
.cv-btn:hover { background: var(--olive); }

/* ── Hamburger (mobile only) ── */
.hamburger-btn {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 32px; padding: 0;
  background: none; border: none; cursor: pointer;
}
.hamburger-btn span {
  display: block; width: 100%; height: 1px; background: var(--ink);
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Mobile menu panel ── */
.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  z-index: 290;
  background: var(--bg); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16,1,0.3,1), transform 0.25s cubic-bezier(0.16,1,0.3,1), visibility 0.25s;
}
.mobile-menu.open {
  opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
}
.mobile-menu-item {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  letter-spacing: 0.04em; text-align: left;
  background: none; border: none; border-bottom: 1px solid var(--rule);
  padding: 16px 24px; cursor: pointer;
}
.mobile-menu-item.on { color: var(--olive); }
.mobile-menu-sub { padding-left: 40px; color: var(--mid); font-size: 11px; }
.mobile-menu-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 16px 24px 4px;
}
.mobile-menu-overlay {
  position: fixed; inset: 0; z-index: 280;
  background: rgba(13,13,12,0.25);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ══════════════════════════
   LANGUAGE SWITCHING
   Simple approach: two versions side-by-side,
   show/hide the right one via body class
══════════════════════════ */
.en { display: block; }
.es { display: none; }
.en-i { display: inline; }
.es-i { display: none; }
body.spa .en { display: none; }
body.spa .es { display: block; }
body.spa .en-i { display: none; }
body.spa .es-i { display: inline; }

/* ══════════════════════════
   HOME
══════════════════════════ */
#page-home { padding-top: var(--nav-h); }

.home-hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.home-left {
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 44px 36px 36px;
  border-right: 1px solid var(--rule);
  overflow: hidden;
}

.home-name-block { margin-bottom: 8px; }
.home-name {
  font-family: var(--display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.03em; color: var(--ink);
}
.home-title {
  font-family: var(--mono); font-size: 11px;
  color: var(--olive); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 8px;
}

.home-counter {
  font-family: var(--display);
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 700; line-height: 0.9;
  letter-spacing: -0.04em; user-select: none;
  margin: 16px 0;
}
.home-counter .total {
  color: var(--faint); font-weight: 300; font-size: 0.5em;
}

.home-tagline {
  font-family: var(--display);
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 300; line-height: 1.3;
  color: var(--mid); max-width: 300px;
}
.home-tagline strong { font-weight: 600; color: var(--ink); }

.home-nav-entries { border-top: 1px solid var(--rule); margin-top: 16px; }
.home-nav-entry {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
  cursor: pointer; transition: opacity 0.15s;
}
.home-nav-entry:hover { opacity: 0.55; }
.home-nav-label {
  font-family: var(--display); font-size: 14px; font-weight: 600;
}
.home-nav-meta {
  display: flex; align-items: center; gap: 14px;
}
.home-nav-count {
  font-family: var(--mono); font-size: 10px; color: var(--mid); letter-spacing: 0.06em;
}
.home-nav-arrow { color: var(--mid); font-size: 14px; }

.home-location {
  font-family: var(--mono); font-size: 10px;
  color: var(--mid); letter-spacing: 0.07em; line-height: 1.9;
  margin-top: 16px;
}

/* Right: image panel */
.home-right {
  position: relative; overflow: hidden; background: #C8C4BC;
}
.home-img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform 1.4s cubic-bezier(0.4,0,0.2,1),
              opacity 1.4s cubic-bezier(0.4,0,0.2,1),
              filter 1.4s cubic-bezier(0.4,0,0.2,1);
}
.home-img.is-transitioning { opacity: 0; transform: scale(1.04); filter: blur(14px); }

/* placeholder when no image */
.home-img-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #D0CEC8; gap: 10px;
}
.home-img-ph span {
  font-family: var(--mono); font-size: 10px;
  color: #8A8880; letter-spacing: 0.1em; text-align: center;
}

.home-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.58) 0%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: space-between;
}
.home-proj-info {
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.home-proj-info.is-transitioning { opacity: 0; transform: translateY(10px); }
.home-proj-name {
  font-family: var(--display); font-size: 18px; font-weight: 700;
  color: var(--white); line-height: 1.1;
}
.home-proj-type {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.65); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 5px;
}
.home-dots { display: flex; gap: 7px; }
.home-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: none;
  cursor: pointer; transition: background 0.3s cubic-bezier(0.16,1,0.3,1), transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.home-dot.on { background: var(--white); transform: scale(1.3); }

/* ── Statement strip ── */
.statement-strip {
  height: 220px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.statement-strip-inner { max-width: 820px; text-align: center; padding: 0 40px; }
.statement-strip-text {
  font-family: var(--display); font-size: clamp(22px, 3vw, 38px);
  font-weight: 300; color: var(--white); line-height: 1.25;
}
.statement-strip-sub {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.1em;
  margin-top: 16px;
}

/* ── Architectural Design preview ── */
.home-proj-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; background: var(--rule);
}
.home-tech-grid { grid-template-columns: repeat(3, 1fr); }
.home-proj-card {
  position: relative; height: 320px; overflow: hidden;
  background: #C8C4BC; cursor: pointer;
}
.home-proj-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.home-proj-card-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.home-proj-card-ph span {
  font-family: var(--mono); font-size: 10px; color: #8A8880;
  letter-spacing: 0.08em; text-align: center; padding: 0 20px;
}
.home-proj-card-overlay {
  position: absolute; inset: 0;
  background: rgba(13,13,12,0.55);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  padding: 20px; gap: 8px;
  opacity: 0; transition: opacity 0.25s;
}
.home-proj-card:hover .home-proj-card-overlay { opacity: 1; }
.home-proj-card-name {
  font-family: var(--display); font-size: 16px; font-weight: 700;
  color: var(--white); line-height: 1.2;
}
.home-proj-card-arrow { font-family: var(--display); color: var(--white); font-size: 16px; }
.home-viewall-row {
  display: flex; justify-content: flex-end; padding: 0 40px;
}
.home-viewall-btn {
  font-family: var(--mono); font-size: 11px; color: var(--olive);
  background: none; border: none; cursor: pointer;
  padding: 20px 0; letter-spacing: 0.04em; transition: opacity 0.15s;
}
.home-viewall-btn:hover { opacity: 0.6; }

/* ── About snapshot ── */
.home-about-snapshot {
  display: grid; grid-template-columns: 1fr 1fr;
  height: 480px; border-bottom: 1px solid var(--rule);
}
.home-about-img {
  border-right: 1px solid var(--rule);
  background: #BFBCB5;
  overflow: hidden;
}
.home-about-img span {
  font-family: var(--mono); font-size: 11px;
  color: #7C7A73; letter-spacing: 0.12em;
}
.home-about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.home-about-content {
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.home-about-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.home-about-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em;
  margin-top: 12px; margin-bottom: 20px;
}
.home-about-desc {
  font-family: var(--sans); font-size: 14px; line-height: 1.82;
  color: #3A3A36; max-width: 420px;
}

/* ── Earth teaser ── */
.home-earth-teaser {
  height: 500px; background: #1A1C18;
  position: relative; overflow: hidden;
}
.earth-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; opacity: 0.35;
}
.home-earth-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px;
}
.home-earth-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.home-earth-title {
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.03em; line-height: 0.97;
  margin-top: 14px;
}
.home-earth-desc {
  font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.8; max-width: 520px; margin-top: 20px;
}
.btn-outline-light {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--white); background: none;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 12px 24px; cursor: pointer; margin-top: 28px;
  align-self: flex-start; transition: border-color 0.15s, color 0.15s;
}
.btn-outline-light:hover { border-color: var(--olive); color: var(--olive); }

/* ── Services preview ── */
.home-services-grid { display: grid; grid-template-columns: 1fr 1fr; }
.home-service-col {
  padding: 52px 48px;
  display: flex; flex-direction: column;
}
.home-service-col:first-child { border-right: 1px solid var(--rule); }
.home-service-num {
  font-family: var(--display); font-weight: 700; color: var(--faint);
  font-size: clamp(52px, 5.5vw, 80px); line-height: 0.9; letter-spacing: -0.04em;
}
.home-service-title {
  font-family: var(--display); font-weight: 700; font-size: 19px;
  margin-top: 18px;
}
.home-service-desc {
  font-family: var(--sans); font-size: 13px; color: #4A4A46;
  line-height: 1.8; margin-top: 14px;
}
.home-service-link {
  font-family: var(--mono); font-size: 11px; color: var(--olive);
  background: none; border: none; cursor: pointer;
  margin-top: auto; padding-top: 24px; align-self: flex-start;
  letter-spacing: 0.04em; transition: opacity 0.15s;
}
.home-service-link:hover { opacity: 0.6; }

/* ── Contact CTA ── */
.home-contact-cta {
  height: 280px; background: var(--bg); border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
}
.home-cta-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.02em;
}
.home-cta-sub {
  font-family: var(--mono); font-size: 11px; color: var(--mid);
  letter-spacing: 0.06em; margin-top: 10px;
}

/* ══════════════════════════
   PAGE HEADER (reused)
══════════════════════════ */
.pg-hdr {
  padding: 36px 40px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.pg-hdr-title {
  font-family: var(--display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.pg-hdr-count {
  font-family: var(--mono); font-size: 10px;
  color: var(--mid); letter-spacing: 0.06em;
}

/* ══════════════════════════
   ARCH PROJECTS
══════════════════════════ */
#page-arch { padding-top: var(--nav-h); }

.proj-hero {
  position: relative;
  height: calc(100vh - var(--nav-h) - 57px);
  min-height: 500px; overflow: hidden; background: #C4C0B8;
}
.proj-hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.7s ease; cursor: zoom-in;
}
.proj-hero:hover .proj-hero-img { transform: scale(1.02); }
.proj-hero-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: #C4C0B8;
}
.proj-hero-ph span {
  font-family: var(--mono); font-size: 11px;
  color: #8A8880; letter-spacing: 0.1em;
}
.proj-num {
  position: absolute; top: 32px; left: 40px;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 88px);
  font-weight: 700; line-height: 0.9;
  color: var(--white); letter-spacing: -0.04em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  pointer-events: none;
}
.proj-num .of {
  color: rgba(255,255,255,0.35);
  font-weight: 300; font-size: 0.5em;
}
.proj-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,8,0.72);
  backdrop-filter: blur(6px);
  padding: 22px 40px;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
}
.proj-bar-left {}
.proj-bar-name {
  font-family: var(--display);
  font-size: clamp(20px, 2.8vw, 36px);
  font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; line-height: 1.05;
}
.proj-bar-type {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.55); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 5px;
}
.proj-bar-specs { display: flex; gap: 32px; flex-shrink: 0; }
.proj-spec-k {
  font-family: var(--mono); font-size: 9px;
  color: rgba(255,255,255,0.45); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 4px;
}
.proj-spec-v {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.85); letter-spacing: 0.02em;
}

/* Project description strip */
.proj-strip {
  display: grid; grid-template-columns: 300px 1fr;
  border-bottom: 1px solid var(--rule);
}
.proj-strip-left {
  padding: 36px 36px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 14px;
}
.proj-strip-tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--olive); letter-spacing: 0.1em; text-transform: uppercase;
}
.proj-strip-role {
  font-family: var(--display); font-size: 17px;
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
}
.proj-strip-nav { display: flex; gap: 0; margin-top: auto; }
.proj-strip-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em;
  background: none; border: 1px solid var(--rule);
  padding: 9px 16px; cursor: pointer; color: var(--mid);
  transition: all 0.15s;
}
.proj-strip-btn:not(:last-child) { border-right: none; }
.proj-strip-btn:hover { border-color: var(--ink); color: var(--ink); }
.proj-strip-right { padding: 36px 48px; }
.proj-desc-text {
  font-size: 14px; line-height: 1.82; color: #3A3A36; max-width: 640px;
}


/* ══════════════════════════
   TECHNICAL SKILLS
══════════════════════════ */
#page-tech { padding-top: var(--nav-h); }

.skills-cols {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-bottom: 1px solid var(--rule);
}
.skill-col {
  padding: 48px 36px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 18px;
}
.skill-col:last-child { border-right: none; }
.skill-num {
  font-family: var(--display);
  font-size: clamp(52px, 5.5vw, 80px);
  font-weight: 700; color: var(--faint);
  line-height: 0.9; letter-spacing: -0.04em;
}
.skill-title {
  font-family: var(--display); font-size: 19px;
  font-weight: 700; line-height: 1.1; letter-spacing: -0.01em;
}
.skill-sub {
  font-family: var(--mono); font-size: 10px;
  color: var(--olive); letter-spacing: 0.08em; text-transform: uppercase;
}
.skill-desc {
  font-size: 13px; line-height: 1.8; color: #4A4A46; flex-grow: 1;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.skill-tag {
  font-family: var(--mono); font-size: 10px; color: var(--ink);
  border: 1px solid var(--rule); padding: 4px 10px;
  background: var(--white); transition: border-color 0.15s;
}
.skill-tag:hover { border-color: var(--olive); }

.tech-row {
  display: grid; grid-template-columns: 1.4fr 1fr;
  border-bottom: 1px solid var(--rule); min-height: 340px;
}
.tech-img {
  overflow: hidden; background: #161A1F; aspect-ratio: 16 / 9; height: auto; align-self: start; position: relative;
}
.tech-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s; cursor: zoom-in;
}
.tech-row:hover .tech-img img { transform: scale(1.02); }
.tech-img-ph {
  width: 100%; height: 100%; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  background: #1C2028;
}
.tech-img-ph span {
  font-family: var(--mono); font-size: 10px;
  color: #3A4050; letter-spacing: 0.1em;
}
.tech-meta {
  padding: 36px 36px; border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: space-between;
}
.tech-tag {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px;
}
.tech-title {
  font-family: var(--display); font-size: clamp(17px,1.8vw,24px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 12px;
}
.tech-desc {
  font-size: 13px; line-height: 1.75; color: #5A5A56; flex-grow: 1; margin-bottom: 22px;
}
.tech-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; border-top: 1px solid var(--rule); padding-top: 18px; }
.s-k { font-family: var(--mono); font-size: 9px; color: var(--mid); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 3px; }
.s-v { font-family: var(--mono); font-size: 11px; color: var(--ink); letter-spacing: 0.02em; line-height: 1.4; }

/* ══════════════════════════
   ABOUT
══════════════════════════ */
#page-about { padding-top: var(--nav-h); }

.about-split {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule); min-height: 500px;
}
.about-img {
  background: #BFBCB5; overflow: hidden;
  border-right: 1px solid var(--rule); min-height: 440px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; cursor: zoom-in; }
.about-img-ph {
  width: 100%; height: 100%; min-height: 440px;
  display: flex; align-items: center; justify-content: center; background: #BFBCB5;
}
.about-img-ph span { font-family: var(--mono); font-size: 11px; color: #8A8880; letter-spacing: 0.1em; }

.about-text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.about-hl {
  font-family: var(--display); font-size: clamp(26px,3vw,42px);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 24px;
}
.about-hl em { font-style: normal; color: var(--olive); }
.about-body { font-size: 14px; line-height: 1.82; color: #3A3A36; }
.about-body p { margin-bottom: 14px; }
.about-body p:last-child { margin-bottom: 0; }
.about-pills {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; border-top: 1px solid var(--rule); margin-top: 32px;
}
.about-pill { padding: 16px 0; border-right: 1px solid var(--rule); }
.about-pill:last-child { border-right: none; }
.about-pill-k { font-family: var(--mono); font-size: 9px; color: var(--mid); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.about-pill-v { font-family: var(--display); font-size: 14px; font-weight: 700; }

.about-exp-tools {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.about-col { padding: 52px 40px; }
.about-col:first-child { border-right: 1px solid var(--rule); }
.col-lbl { font-family: var(--mono); font-size: 10px; color: var(--olive); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }

.exp-row { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); gap: 10px; }
.exp-row:last-child { border-bottom: none; }
.exp-firm { font-family: var(--display); font-size: 14px; font-weight: 600; }
.exp-role { font-family: var(--mono); font-size: 10px; color: var(--mid); letter-spacing: 0.03em; margin-top: 3px; }
.exp-yr { font-family: var(--mono); font-size: 10px; color: var(--mid); letter-spacing: 0.06em; white-space: nowrap; }

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tool-pill { padding: 11px 14px; border: 1px solid var(--rule); background: var(--white); display: flex; align-items: center; gap: 10px; }
.tool-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--olive); flex-shrink: 0; }
.tool-name { font-family: var(--mono); font-size: 11px; color: var(--ink); }
.tool-cat { font-family: var(--mono); font-size: 9px; color: var(--mid); letter-spacing: 0.04em; }

.lang-pills { display: flex; gap: 10px; margin-top: 24px; }
.lang-pill { flex: 1; padding: 14px 16px; border: 1px solid var(--rule); background: var(--white); }
.lang-name { font-family: var(--display); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.lang-level { font-family: var(--mono); font-size: 9px; color: var(--olive); letter-spacing: 0.08em; }

/* ── About page: hero ── */
.about-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; border-bottom: 1px solid var(--rule); }
.about-hero-img { background: #BFBCB5; border-right: 1px solid var(--rule); overflow: hidden; }
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-hero-img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.about-hero-img-ph span {
  font-family: var(--mono); font-size: 11px; color: #8A8880;
  letter-spacing: 0.1em; text-align: center; padding: 0 24px;
}
.about-hero-right {
  padding: 72px 48px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.about-hero-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.about-hero-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 6vw, 82px); line-height: 0.88;
  letter-spacing: -0.04em; color: var(--ink); margin-top: 20px;
}
.about-hero-sub {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(16px, 1.8vw, 22px); color: var(--mid);
  margin-top: 14px;
}
.about-hero-statement {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(18px, 2vw, 26px); color: var(--ink);
  line-height: 1.2; letter-spacing: -0.01em; max-width: 440px;
}

/* ── About page: manifesto ── */
.about-manifesto {
  background: var(--ink); padding: 80px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: grid; grid-template-columns: 280px 1fr; gap: 80px;
}
.about-manifesto-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  letter-spacing: 0.12em; text-transform: uppercase;
  position: sticky; top: 80px; align-self: start;
}
.about-manifesto-quote {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px); color: var(--white);
  line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 36px;
}
.about-manifesto-text { font-family: var(--sans); font-size: 15px; color: rgba(255,255,255,0.68); line-height: 1.88; }
.about-manifesto-text p { margin-bottom: 20px; }
.about-manifesto-text p:last-child { margin-bottom: 0; }

/* ── About page: three beliefs ── */
.about-beliefs { background: var(--bg); border-bottom: 1px solid var(--rule); }
.about-beliefs-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.about-belief-col { padding: 52px 40px; border-right: 1px solid var(--rule); }
.about-belief-col:last-child { border-right: none; }
.about-belief-num {
  font-family: var(--display); font-weight: 700; color: var(--faint);
  font-size: clamp(48px, 5vw, 72px); line-height: 0.9; letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.about-belief-title { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin-bottom: 14px; }
.about-belief-text { font-family: var(--sans); font-size: 14px; color: #4A4A46; line-height: 1.8; }

/* ── About page: process ── */
.about-process { background: var(--bg); border-bottom: 1px solid var(--rule); }
.about-process-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.about-process-left { padding: 64px 48px; border-right: 1px solid var(--rule); }
.about-process-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px;
}
.about-process-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -0.02em; margin-bottom: 24px;
}
.about-process-right { padding: 64px 48px; display: flex; flex-direction: column; gap: 0; }
.about-step {
  padding: 20px 0; border-bottom: 1px solid var(--rule);
  display: flex; gap: 20px; align-items: flex-start;
}
.about-step:last-child { border-bottom: none; }
.about-step-num {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  letter-spacing: 0.08em; width: 28px; flex-shrink: 0; margin-top: 3px;
}
.about-step-body { display: flex; flex-direction: column; gap: 5px; }
.about-step-title { font-family: var(--display); font-weight: 700; font-size: 14px; }
.about-step-text { font-family: var(--sans); font-size: 13px; color: var(--mid); line-height: 1.65; }

/* ── About page: CTA ── */
.about-cta {
  padding: 56px 48px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule); flex-wrap: wrap; gap: 24px;
}
.about-cta-text { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.5vw, 36px); letter-spacing: -0.02em; }
.about-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-outline {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  background: none; color: var(--ink); border: 1px solid var(--rule);
  padding: 13px 26px; letter-spacing: 0.04em; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--olive); color: var(--olive); }

/* ══════════════════════════
   CONTACT
══════════════════════════ */
#page-contact { padding-top: var(--nav-h); }
#page-earth, #page-services, #page-skills { padding-top: var(--nav-h); }

/* ══════════════════════════
   EARTH (dark identity)
══════════════════════════ */
.earth-hero {
  height: 100vh; position: relative; overflow: hidden;
  background: #1A1C18; margin-top: calc(-1 * var(--nav-h));
}
.earth-hero-ph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  background: #1A1C18; opacity: 0.3; z-index: 0;
  display: flex; align-items: center; justify-content: center;
}
.earth-hero-ph span {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.4); letter-spacing: 0.15em;
}
.earth-hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.3; z-index: 0;
}
.earth-hero-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 48px 64px;
}
.earth-hero-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.earth-hero-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(52px, 8vw, 110px); color: var(--white);
  line-height: 0.88; letter-spacing: -0.04em; margin-top: 16px;
}
.earth-hero-sub {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(18px, 2vw, 26px); color: rgba(255,255,255,0.5);
  margin-top: 16px;
}

.earth-declaration {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #1A1C18; border-top: 1px solid rgba(255,255,255,0.08);
}
.earth-decl-col { padding: 72px 48px; }
.earth-decl-col:first-child { border-right: 1px solid rgba(255,255,255,0.08); }
.earth-decl-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 24px;
}
.earth-decl-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 38px); color: var(--white);
  line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 28px;
}
.earth-decl-text { font-family: var(--sans); font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.85; }
.earth-decl-text p { margin-bottom: 16px; }
.earth-decl-text p:last-child { margin-bottom: 0; }

.earth-projects {
  background: #1A1C18; border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 48px;
}
.earth-projects-text {
  font-family: var(--sans); font-size: 14px; color: rgba(255,255,255,0.55);
  max-width: 560px; line-height: 1.75; margin-bottom: 36px;
}
.earth-btn-outline {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--white); background: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 22px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.earth-btn-outline:hover { border-color: var(--olive); color: var(--olive); }
.earth-projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 8px; }
.earth-project-item .earth-projects-text { max-width: none; }

.earth-refs { background: var(--bg); border-top: 1px solid var(--rule); padding: 64px 48px; }
.earth-refs-text {
  font-family: var(--sans); font-size: 14px; color: var(--mid);
  max-width: 560px; line-height: 1.7; margin-bottom: 8px;
}

/* ══════════════════════════
   SERVICES
══════════════════════════ */
.svc-opening {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule); padding: 64px 48px;
}
.svc-opening-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1;
}
.svc-opening-right { padding-left: 48px; border-left: 1px solid var(--rule); }
.svc-opening-text { font-family: var(--sans); font-size: 15px; color: #3A3A36; line-height: 1.82; }

.svc-block { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.svc-block-border { border-bottom: 1px solid var(--rule); }
.svc-left {
  padding: 56px 48px; border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; justify-content: space-between;
}
.svc-left .btn-dark { margin-top: auto; align-self: flex-start; }
.svc-num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 7vw, 96px); color: var(--faint);
  line-height: 0.9; letter-spacing: -0.04em;
}
.svc-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.02em; margin-top: 16px;
}
.svc-tag {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  letter-spacing: 0.1em; margin-top: 8px;
}
.svc-desc {
  font-family: var(--sans); font-size: 14px; color: #3A3A36;
  line-height: 1.8; margin-top: 20px; max-width: 440px;
}
.svc-right { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.svc-right-label {
  font-family: var(--mono); font-size: 10px; color: var(--olive);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px;
}
.svc-list-item { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 14px; }
.svc-list-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--olive); margin-top: 7px; flex-shrink: 0;
}
.svc-list-text { font-family: var(--display); font-size: 14px; font-weight: 500; }

.svc-process { border-top: 1px solid var(--rule); padding: 64px 48px; }
.svc-process-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -0.02em; margin-bottom: 40px;
}
.svc-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.svc-step-num { font-family: var(--mono); font-size: 10px; color: var(--olive); letter-spacing: 0.1em; margin-bottom: 10px; }
.svc-step-title { font-family: var(--display); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.svc-step-text { font-family: var(--sans); font-size: 13px; color: var(--mid); line-height: 1.7; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--rule);
}
.contact-left { padding: 64px 48px; border-right: 1px solid var(--rule); }
.contact-hl {
  font-family: var(--display); font-size: clamp(34px,4.5vw,62px);
  font-weight: 700; line-height: 0.97; letter-spacing: -0.03em; margin-bottom: 24px;
}
.contact-hl em { font-style: normal; color: var(--olive); }
.contact-sub { font-size: 14px; line-height: 1.8; color: #5A5A56; max-width: 380px; }
.contact-right { padding: 64px 48px; display: flex; flex-direction: column; justify-content: space-between; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--rule); gap: 16px; }
.info-row:first-child { border-top: 1px solid var(--rule); }
.info-k { font-family: var(--mono); font-size: 10px; color: var(--mid); letter-spacing: 0.1em; text-transform: uppercase; }
.info-v { font-family: var(--mono); font-size: 12px; color: var(--ink); text-decoration: none; transition: color 0.15s; text-align: right; }
.info-v:hover { color: var(--olive); }
.info-v.avail { color: var(--olive); }
.btn-dark { font-family: var(--display); font-size: 13px; font-weight: 600; background: var(--ink); color: var(--white); padding: 13px 26px; text-decoration: none; letter-spacing: 0.04em; transition: background 0.15s; border: none; cursor: pointer; }
.btn-dark:hover { background: var(--olive); }

.cv-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--rule); }
.cv-cell { padding: 40px 48px; display: flex; flex-direction: column; gap: 12px; }
.cv-cell:first-child { border-right: 1px solid var(--rule); }
.cv-lang { font-family: var(--mono); font-size: 10px; color: var(--olive); letter-spacing: 0.1em; text-transform: uppercase; }
.cv-title { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.cv-note { font-size: 13px; color: var(--mid); line-height: 1.65; }
.cv-dl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); padding: 9px 16px; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; transition: all 0.15s; margin-top: 4px; }
.cv-dl::before { content: '↓'; }
.cv-dl:hover { border-color: var(--olive); color: var(--olive); }

/* ── FOOTER ── */
footer { padding: 18px 40px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.ft-copy { font-family: var(--mono); font-size: 10px; color: var(--mid); letter-spacing: 0.06em; }
.ft-contact { font-family: var(--mono); font-size: 10px; color: var(--mid); letter-spacing: 0.06em; }
.ft-contact a { color: inherit; text-decoration: none; }
.ft-contact a:hover { color: var(--ink); text-decoration: underline; }
.ft-coord { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: 0.06em; }

/* ── MOBILE ── */
@media (max-width: 860px) {
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  .hamburger-btn { display: flex; }
  .home-hero { grid-template-columns: 1fr; height: auto; }
  .home-left { min-height: 55vh; border-right: none; border-bottom: 1px solid var(--rule); }
  .home-right { min-height: 45vh; }
  .about-split, .contact-grid, .cv-grid, .about-exp-tools { grid-template-columns: 1fr; }
  .about-col:first-child, .contact-left, .cv-cell:first-child, .about-img { border-right: none; border-bottom: 1px solid var(--rule); }
  .proj-strip { grid-template-columns: 1fr; }
  .proj-strip-left { border-right: none; border-bottom: 1px solid var(--rule); }
  .skills-cols { grid-template-columns: 1fr; }
  .skill-col { border-right: none; border-bottom: 1px solid var(--rule); }
  .tech-row { grid-template-columns: 1fr; }
  .tech-meta { border-left: none; border-top: 1px solid var(--rule); }
  .about-pills { grid-template-columns: repeat(2,1fr); }
  .proj-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer { flex-direction: column; gap: 6px; text-align: center; padding: 16px 20px; }
  .pg-hdr, .contact-left, .contact-right, .about-col, .cv-cell { padding: 32px 24px; }
  .home-proj-grid { grid-template-columns: repeat(2, 1fr); }
  .home-viewall-row { padding: 0 24px; }
  .home-about-snapshot { grid-template-columns: 1fr; height: auto; }
  .home-about-img { border-right: none; border-bottom: 1px solid var(--rule); min-height: 260px; }
  .home-about-content { padding: 32px 24px; }
  .home-earth-content { padding: 0 24px; }
  .home-services-grid { grid-template-columns: 1fr; }
  .home-service-col:first-child { border-right: none; border-bottom: 1px solid var(--rule); }
  .home-service-col { padding: 32px 24px; }
  .home-contact-cta { flex-direction: column; align-items: flex-start; justify-content: center; gap: 20px; height: auto; padding: 40px 24px; }
  .about-hero { grid-template-columns: 1fr; min-height: auto; }
  .about-hero-img { border-right: none; border-bottom: 1px solid var(--rule); min-height: 320px; }
  .about-hero-right { padding: 40px 24px; }
  .about-manifesto { grid-template-columns: 1fr; padding: 48px 24px; gap: 24px; }
  .about-manifesto-label { position: static; }
  .about-beliefs-grid { grid-template-columns: 1fr; }
  .about-belief-col { border-right: none; border-bottom: 1px solid var(--rule); padding: 40px 24px; }
  .about-belief-col:last-child { border-bottom: none; }
  .about-process-grid { grid-template-columns: 1fr; }
  .about-process-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 40px 24px; }
  .about-process-right { padding: 40px 24px; }
  .about-cta { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .earth-hero-content { padding: 0 24px 40px; }
  .earth-declaration { grid-template-columns: 1fr; }
  .earth-decl-col:first-child { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .earth-decl-col { padding: 40px 24px; }
  .earth-projects, .earth-refs { padding: 40px 24px; }
  .earth-projects-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-opening { grid-template-columns: 1fr; padding: 40px 24px; gap: 24px; }
  .svc-opening-right { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px solid var(--rule); }
  .svc-block { grid-template-columns: 1fr; min-height: auto; }
  .svc-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 40px 24px; }
  .svc-right { padding: 40px 24px; }
  .svc-process { padding: 40px 24px; }
  .svc-process-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── CONTACT FORM ── */
.contact-form-wrap {
  padding: 52px 48px;
  border-bottom: 1px solid var(--rule);
}
#contact-form { display: flex; flex-direction: column; gap: 20px; }
.cf-field { display: block; }
.cf-label {
  font-family: var(--mono); font-size: 10px; color: var(--mid);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px; display: block;
}
.cf-input, .cf-textarea {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  background: var(--white); border: 1px solid var(--rule);
  padding: 14px 16px; outline: none; width: 100%;
  transition: border-color 0.15s; appearance: none;
}
.cf-input:focus, .cf-textarea:focus { border-color: var(--olive); }
.cf-textarea { resize: vertical; }
.cf-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B68' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 11px 8px;
  padding-right: 40px;
}
.cf-submit-btn { width: 100%; margin-top: 8px; }
.cf-response-note {
  font-family: var(--mono); font-size: 10px; color: var(--mid);
  letter-spacing: 0.06em; margin-top: 16px;
}
.cf-feedback {
  margin-top: 14px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.04em; padding: 13px 16px; display: none;
}
.cf-success { background: #F0F4EC; color: var(--olive); }
.cf-error { background: #FDF0EF; color: #B85450; }
@media (max-width: 860px) {
  .contact-form-wrap { padding: 36px 24px; }
}

/* ══════════════════════════════════════
   PROJECT DETAIL PAGES
══════════════════════════════════════ */
.proj-detail { padding-top: var(--nav-h); }

/* Back button */
.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--mid);
  letter-spacing: 0.08em; text-transform: uppercase;
  background: none; border: none; cursor: pointer;
  padding: 20px 40px; transition: color 0.15s;
}
.back-btn:hover { color: var(--ink); }
.back-btn::before { content: '←'; }

/* Detail hero — full bleed */
.detail-hero {
  position: relative;
  height: calc(100vh - var(--nav-h) - 60px);
  min-height: 500px; overflow: hidden; background: #C4C0B8;
}
.detail-hero img {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
}
.detail-hero-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.detail-hero-ph span {
  font-family: var(--mono); font-size: 12px;
  color: rgba(255,255,255,0.3); letter-spacing: 0.12em;
  text-align: center; padding: 0 24px;
}
.gimg-ph-label {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.3); letter-spacing: 0.1em;
  text-align: center; padding: 0 24px;
}
.detail-hero-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(10,10,8,0.72);
  backdrop-filter: blur(6px);
  padding: 28px 40px;
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
}
.detail-hero-name {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; line-height: 1;
}
.detail-hero-type {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.55); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 8px;
}
.detail-hero-specs { display: flex; gap: 32px; flex-shrink: 0; }
.dspec-k {
  font-family: var(--mono); font-size: 9px;
  color: rgba(255,255,255,0.45); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 4px;
}
.dspec-v {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255,255,255,0.85); letter-spacing: 0.02em;
}

/* Detail body */
.detail-body {
  display: grid; grid-template-columns: 300px 1fr;
  border-bottom: 1px solid var(--rule);
}
.detail-sidebar {
  padding: 44px 36px;
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 32px;
}
.detail-specs-block {}
.detail-spec-row {
  padding: 12px 0; border-bottom: 1px solid var(--rule);
}
.detail-spec-row:first-child { border-top: 1px solid var(--rule); }
.detail-spec-k {
  font-family: var(--mono); font-size: 9px; color: var(--mid);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px;
}
.detail-spec-v {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  letter-spacing: 0.02em; line-height: 1.4;
}
.detail-text {
  padding: 44px 48px;
}
.detail-desc {
  font-size: 15px; line-height: 1.85; color: #3A3A36;
  max-width: 680px; margin-bottom: 32px;
}
.detail-desc:last-child { margin-bottom: 0; }

/* ── ADAPTIVE GALLERY ── */
.gallery-section {
  border-top: 1px solid var(--rule);
  padding: 0;
}
.gallery-header {
  padding: 32px 40px 28px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}
.gallery-title {
  font-family: var(--display); font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.gallery-count {
  font-family: var(--mono); font-size: 10px; color: var(--mid);
  letter-spacing: 0.06em;
}

/* True masonry: any number of images (2 or 20), each shown at its own
   original aspect ratio — no cropping, columns reflow automatically. */
.gallery-grid {
  columns: 3 280px;
  column-gap: 2px;
  padding: 2px;
  background: var(--rule);
}
.gimg {
  display: block; width: 100%;
  break-inside: avoid; margin-bottom: 2px;
  overflow: hidden; background: #C4C0B8;
  position: relative; cursor: zoom-in;
}
.gimg img {
  width: 100%; height: auto; object-fit: contain; display: block;
  transition: transform 0.5s ease;
}
.gimg:hover img { transform: scale(1.02); }
.gimg-cap {
  position: absolute; bottom: 12px; left: 16px;
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.7); letter-spacing: 0.08em;
  opacity: 0; transition: opacity 0.2s;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.gimg:hover .gimg-cap { opacity: 1; }

/* Lightbox */
#lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.92);
  display: none; align-items: center; justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img {
  max-width: 92vw; max-height: 90vh;
  object-fit: contain; display: block;
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}
#lb-close {
  position: absolute; top: 24px; right: 32px;
  font-family: var(--mono); font-size: 13px; color: rgba(255,255,255,0.6);
  background: none; border: none; cursor: pointer; letter-spacing: 0.06em;
  transition: color 0.15s;
}
#lb-close:hover { color: white; }
#lb-prev, #lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 28px; color: rgba(255,255,255,0.5);
  background: none; border: none; cursor: pointer;
  transition: color 0.15s; padding: 16px;
}
#lb-prev:hover, #lb-next:hover { color: white; }
#lb-prev { left: 24px; }
#lb-next { right: 24px; }
#lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
}

@media (max-width: 860px) {
  .detail-body { grid-template-columns: 1fr; }
  .detail-sidebar { border-right: none; border-bottom: 1px solid var(--rule); padding: 32px 24px; }
  .detail-text { padding: 32px 24px; }
  .back-btn { padding: 16px 24px; }
  .gallery-grid { columns: 1; }
  .detail-hero-bar { flex-direction: column; align-items: flex-start; gap: 14px; }
}

.detail-info { display:grid; grid-template-columns:1fr 340px; border-bottom:1px solid var(--rule); }
.detail-info-left { padding:52px 48px; border-right:1px solid var(--rule); display:flex; flex-direction:column; gap:24px; }
.detail-project-title { font-family:var(--display); font-size:clamp(28px,3.5vw,46px); font-weight:700; line-height:1.05; letter-spacing:-0.02em; }
.detail-project-desc { font-size:15px; line-height:1.85; color:#3A3A36; max-width:620px; }
.detail-project-desc p { margin:0; }
.detail-info-right { padding:52px 40px; }
.detail-spec-row { padding:13px 0; border-bottom:1px solid var(--rule); }
.detail-spec-row:first-child { border-top:1px solid var(--rule); }
.detail-spec-k { font-family:var(--mono); font-size:9px; color:var(--mid); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:4px; }
.detail-spec-v { font-family:var(--mono); font-size:12px; color:var(--ink); letter-spacing:0.02em; line-height:1.4; }
@media(max-width:860px){ .detail-info{grid-template-columns:1fr;} .detail-info-left{border-right:none;border-bottom:1px solid var(--rule);padding:36px 24px;} .detail-info-right{padding:36px 24px;} }

/* ══════════════════════════
   WHATSAPP CHAT WIDGET
══════════════════════════ */
.wa-widget {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}
.wa-toggle {
  width: 52px; height: 52px; flex-shrink: 0;
  background: var(--ink); color: var(--white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.wa-toggle:hover { background: var(--olive); }
.wa-icon { width: 24px; height: 24px; }
.wa-panel {
  width: 280px;
  background: var(--white);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.wa-widget.open .wa-panel { display: flex; }
.wa-panel-hdr { display: flex; align-items: center; justify-content: space-between; }
.wa-panel-title { font-family: var(--display); font-size: 14px; font-weight: 700; }
.wa-panel-close {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--mono); font-size: 12px; color: var(--mid);
}
.wa-panel-close:hover { color: var(--ink); }
.wa-panel-text { font-size: 13px; line-height: 1.6; color: var(--mid); }
.wa-panel-btn {
  font-family: var(--display); font-size: 13px; font-weight: 600;
  background: var(--ink); color: var(--white);
  padding: 12px 18px; text-align: center; text-decoration: none;
  letter-spacing: 0.04em; transition: background 0.15s;
}
.wa-panel-btn:hover { background: var(--olive); }
@media (max-width: 860px) {
  .wa-widget { right: 16px; bottom: 16px; }
  .wa-panel { width: calc(100vw - 32px); max-width: 300px; }
}

/* ══════════════════════════
   CUSTOM CURSOR
══════════════════════════ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 2000;
  border-radius: 50%; transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot {
  width: 6px; height: 6px; background: var(--olive);
  transition: opacity 0.2s ease, background-color 0.2s ease;
}
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid var(--olive);
  transition: opacity 0.2s ease, width 0.35s cubic-bezier(0.16,1,0.3,1),
              height 0.35s cubic-bezier(0.16,1,0.3,1),
              background-color 0.35s cubic-bezier(0.16,1,0.3,1),
              border-color 0.35s ease;
}
body.has-custom-cursor, body.has-custom-cursor * { cursor: none; }
body.has-custom-cursor input, body.has-custom-cursor textarea, body.has-custom-cursor select { cursor: text; }
body.has-custom-cursor.cursor-visible .cursor-dot,
body.has-custom-cursor.cursor-visible .cursor-ring { opacity: 1; }
.cursor-ring.cursor-hover {
  width: 58px; height: 58px;
  background: rgba(107,122,94,0.1);
}
.cursor-dot.cursor-hover { opacity: 0; }
.cursor-dot.cursor-hidden, .cursor-ring.cursor-hidden { opacity: 0 !important; }

@media (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

