/* ============================================
   FELIX ESQUIVEL MURILLO — ESTUDIO
   Modern architectural portfolio · sage palette
   ============================================ */

:root {
  /* Brand green — #8fa390 anchors the palette */
  --sage-50:  #f0f3f0;
  --sage-100: #dde2dd;
  --sage-200: #c0c8c1;
  --sage-300: #adb8ae;
  --sage-400: #8fa390;
  --sage-500: #708470;
  --sage-600: #56685a;
  --sage-700: #3e4d40;
  --sage-800: #262f27;

  --cream:    #f4f1ec;
  --cream-2:  #ebe6dd;
  --paper:    #faf8f4;
  --ink:      #14160f;
  --ink-2:    #1f2218;
  --ink-soft: #3a3e33;
  --line:     rgba(20, 22, 15, 0.12);
  --line-light: rgba(244, 241, 236, 0.18);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --display: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Editorial italic emphasis — pairs Instrument Serif italic with Work Sans */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-600);
  letter-spacing: 0.005em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }

::selection { background: var(--sage-500); color: var(--paper); }

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

/* ============ CURSOR ============ */
.cursor, .cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 40px; height: 40px;
  border: 1px solid #f4f1ec;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
}
.cursor-dot {
  width: 5px; height: 5px;
  background: #f4f1ec;
}
.cursor.is-hover {
  width: 70px; height: 70px;
  background: rgba(244, 241, 236, 0.15);
}
@media (hover: none), (pointer: coarse) {
  .cursor, .cursor-dot { display: none; }
}

/* ============ LOADER ============ */
.loader {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner {
  width: min(420px, 70vw);
  text-align: center;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loader-logo {
  width: 92px;
  height: 92px;
  opacity: 0;
  filter: brightness(1.05) invert(0);
  animation: loaderLogo 0.9s var(--ease-out) 0.2s forwards;
}
@keyframes loaderLogo {
  0%   { opacity: 0; transform: scale(0.85) rotate(-12deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.loader-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  gap: 0.1em;
  color: var(--sage-300);
  margin-bottom: 8px;
}
.loader-text span {
  display: inline-block;
  opacity: 0;
  animation: loaderFade 0.6s var(--ease-out) forwards;
}
.loader-text span:nth-child(1) { animation-delay: 0.05s; }
.loader-text span:nth-child(2) { animation-delay: 0.2s; }
.loader-text span:nth-child(3) { animation-delay: 0.35s; }
@keyframes loaderFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-bar {
  height: 1px;
  background: rgba(244, 241, 236, 0.15);
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--sage-300);
  animation: loaderBar 1.4s var(--ease) forwards;
}
@keyframes loaderBar {
  to { width: 100%; }
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.4s var(--ease);
  mix-blend-mode: difference;
  color: #f4f1ec;
}
.nav.scrolled {
  padding: 14px 0;
  background: rgba(20, 22, 15, 0.85);
  backdrop-filter: blur(20px);
  mix-blend-mode: normal;
  color: var(--cream);
  border-bottom: 1px solid var(--line-light);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  flex-shrink: 0;
  min-width: 0;
}
.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transition: transform 0.5s var(--ease);
}
.nav-logo:hover .logo-img { transform: rotate(-8deg) scale(1.06); }
.logo-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
  min-width: 0;
}
.logo-mark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.logo-sub {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
}
.nav-links { flex-shrink: 1; min-width: 0; }
.nav-cta { flex-shrink: 0; white-space: nowrap; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  padding: 6px 0;
  display: inline-block;
  line-height: 1.4;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover { color: var(--sage-300); }
.nav-links a:hover::after { width: 100%; background: var(--sage-300); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--sage-500);
  border-color: var(--sage-500);
  color: var(--paper);
  transform: translateY(-2px);
}
.nav-cta svg { transition: transform 0.3s var(--ease); }
.nav-cta:hover svg { transform: rotate(45deg); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
  flex-shrink: 0;
}
.nav-burger span {
  width: 16px; height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger:hover { background: currentColor; }
.nav-burger:hover span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1180px) {
  .logo-block { display: none; }
  .nav-links { gap: 28px; }
}
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}


.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu ul li {
  font-family: var(--display);
  font-size: clamp(40px, 9vw, 68px);
  font-weight: 600;
  padding: 8px 0;
  letter-spacing: -0.035em;
}
.mobile-meta {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  opacity: 0.7;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: -8%;
  background-image: url('1.jpeg');
  background-size: cover;
  background-position: center;
  filter: grayscale(15%) contrast(1.08) brightness(0.85);
  transform: scale(1.05);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  to { transform: scale(1); }
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,22,15,0.55) 0%, rgba(20,22,15,0.35) 45%, rgba(20,22,15,0.9) 100%),
    linear-gradient(90deg, rgba(20,22,15,0.6) 0%, transparent 60%);
}
.hero-bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  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='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero-tag {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--cream);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1.4s var(--ease-out) 1.6s forwards;
}
.hero-tag-num { color: var(--sage-300); font-family: var(--serif); font-style: italic; font-size: 14px; letter-spacing: 0.05em; text-transform: none; }
@keyframes fadeIn { to { opacity: 1; } }
@media (max-width: 600px) {
  .hero-tag { right: 16px; bottom: 16px; }
}

.hero-meta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
}
.hero-meta-left { left: 24px; }
.hero-meta-right { right: 24px; }
.vert-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .hero-meta { display: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-tagline .dot {
  width: 6px; height: 6px;
  background: var(--sage-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(60px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin-bottom: 60px;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .word {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 1.1s var(--ease-out) forwards;
  animation-delay: 0.8s;
}
.hero-title .line:nth-child(2) .word { animation-delay: 0.95s; }
.hero-title .line:nth-child(3) .word { animation-delay: 1.1s; }
.hero-title .italic .word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--sage-300);
  letter-spacing: -0.01em;
}
@keyframes wordUp {
  to { transform: translateY(0); }
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-desc {
  font-family: var(--sans);
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  max-width: 420px;
  opacity: 0.85;
  letter-spacing: 0.005em;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.7;
}
.scroll-line {
  width: 80px;
  height: 1px;
  background: rgba(244, 241, 236, 0.2);
  overflow: hidden;
}
.scroll-line-fill {
  height: 100%;
  width: 100%;
  background: var(--cream);
  animation: scrollDown 2.5s var(--ease) infinite;
}
@keyframes scrollDown {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@media (max-width: 900px) {
  .hero { padding-top: 110px; padding-bottom: 80px; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--ink);
  color: var(--sage-300);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 52px);
  letter-spacing: -0.025em;
  animation: marquee 30s linear infinite;
  align-items: center;
}
.marquee-track span { display: inline-block; }
.marquee-track .dot-sep {
  color: var(--sage-500);
  font-size: 0.5em;
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTION HEAD ============ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding-bottom: 24px;
  margin-bottom: 60px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.section-head.light { border-top-color: var(--line-light); }
.section-num {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
}
.section-title-mini {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  opacity: 0.7;
  color: var(--sage-600);
}

/* ============ MANIFESTO ============ */
.manifesto {
  padding: 140px 0 120px;
  background: var(--paper);
}
.manifesto-quote {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 1100px;
  margin-bottom: 100px;
  color: var(--ink-2);
}

.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}
@media (max-width: 800px) {
  .manifesto-pillars { grid-template-columns: 1fr; gap: 40px; }
}
.pillar { display: flex; flex-direction: column; gap: 14px; }
.pillar-num {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--sage-600);
  font-weight: 500;
  letter-spacing: 0.18em;
}
.pillar h4 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.pillar p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 320px;
}

/* ============ ABOUT ============ */
.about {
  padding: 120px 0;
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
}

.about-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}
.hl {
  position: relative;
  background: linear-gradient(transparent 65%, var(--sage-200) 65%);
  padding: 0 4px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 60px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .about-stats { grid-template-columns: 1fr; gap: 24px; }
}
.stat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.stat-val { display: flex; align-items: baseline; gap: 4px; }
.stat-num {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.stat-plus {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--sage-600);
  font-style: italic;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 200px;
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
}
.portrait-frame {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}
.portrait-bg {
  position: absolute;
  inset: 0;
  background-image: url('felix.jpg');
  background-size: cover;
  background-position: center 15%;
  background-color: #d8dcd5;
  transition: transform 0.8s var(--ease);
}
.portrait:hover .portrait-bg { transform: scale(1.03); }
.portrait-frame { transition: transform 0.8s var(--ease); }
.portrait-grain {
  position: absolute;
  inset: 0;
  background: 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.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.portrait-caption {
  position: absolute;
  bottom: -2px;
  left: 24px;
  background: var(--paper);
  padding: 20px 24px 0 0;
  display: flex;
  flex-direction: column;
}
.caption-line {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.caption-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-600);
  margin-top: 4px;
}

/* ============ PROJECTS ============ */
.projects {
  padding: 140px 0 120px;
  background: var(--paper);
  position: relative;
}
.projects-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
.projects-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 800px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.ghost-link:hover {
  background: var(--ink);
  color: var(--cream);
}
.ghost-link:hover svg { transform: rotate(45deg); }
.ghost-link svg { transition: transform 0.3s var(--ease); }

.projects-list {
  border-top: 1px solid var(--line);
}
.project-row {
  display: grid;
  grid-template-columns: 60px 1fr 200px 40px;
  gap: 30px;
  align-items: center;
  padding: 32px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease);
}
.project-row::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 100%;
  background: var(--sage-500);
  transition: width 0.5s var(--ease);
  z-index: 0;
}
.project-row > * { position: relative; z-index: 1; transition: color 0.4s var(--ease), transform 0.5s var(--ease); }
.project-row:hover { padding-left: 40px; }
.project-row:hover::before { width: 100%; }
.project-row:hover > * { color: var(--paper); }
.project-row:hover .proj-arrow svg { transform: rotate(0); }

.proj-num {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--sage-600);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.proj-info { display: flex; flex-direction: column; gap: 4px; }
.proj-name {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.proj-cat {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-600);
}
.proj-loc, .proj-year {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.proj-arrow svg {
  transform: rotate(-45deg);
  transition: transform 0.4s var(--ease);
}

.proj-thumb {
  display: none;
}

@media (max-width: 800px) {
  .project-row {
    grid-template-columns: 64px 28px 1fr 22px;
    gap: 14px;
    padding: 16px 4px;
    align-items: center;
  }
  .project-row:hover { padding-left: 4px; }
  .proj-thumb {
    display: block;
    width: 64px;
    height: 64px;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%) contrast(1.05);
    transition: filter 0.4s var(--ease), transform 0.4s var(--ease);
  }
  .project-row:active .proj-thumb,
  .project-row:hover .proj-thumb {
    filter: grayscale(0%) contrast(1.1);
    transform: scale(1.05);
  }
  .proj-loc, .proj-year { display: none; }
  .proj-name { font-size: 22px; }
  .proj-num { font-size: 13px; }
  .proj-arrow svg { width: 16px; height: 16px; }
}

/* PROJECT MODAL */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.project-modal.open {
  pointer-events: auto;
  opacity: 1;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.modal-close svg { width: 22px; height: 22px; }
.modal-close:hover {
  background: var(--sage-400);
  color: var(--paper);
  transform: rotate(90deg);
}
.modal-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, 92vw);
  max-height: 88vh;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  transform: translateY(40px) scale(0.97);
  transition: transform 0.6s var(--ease-out);
  box-shadow: 0 40px 100px rgba(0,0,0,0.4);
}
.project-modal.open .modal-inner {
  transform: translateY(0) scale(1);
}
.modal-image {
  position: relative;
  height: 100%;
  min-height: 460px;
  overflow: hidden;
  background: var(--ink-2);
}
.modal-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: modalImageIn 1.2s var(--ease-out) forwards;
}
@keyframes modalImageIn {
  to { transform: scale(1); }
}
.modal-info {
  padding: 48px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.modal-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.modal-num { color: var(--sage-600); font-weight: 500; }
.modal-cat { color: var(--ink-soft); }
.modal-name {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-top: 10px;
}
.modal-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-top: 4px;
}
.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-top: 24px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}
.modal-meta-item { display: flex; flex-direction: column; gap: 4px; }
.modal-meta-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-600);
}
.modal-meta-value {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 8px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.modal-cta:hover {
  background: var(--sage-600);
  transform: translateY(-2px);
}
.modal-cta svg { transition: transform 0.3s var(--ease); }
.modal-cta:hover svg { transform: rotate(45deg); }

@media (max-width: 900px) {
  .modal-inner { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
  .modal-image { min-height: 280px; height: 38vh; }
  .modal-info { padding: 32px 28px; }
  .modal-close { top: 16px; right: 16px; width: 44px; height: 44px; }
  .modal-meta { grid-template-columns: 1fr 1fr; }
}
body.modal-open { overflow: hidden; }

/* ============ SERVICES ============ */
.services {
  background: var(--ink);
  color: var(--cream);
  padding: 140px 0 120px;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-bottom: 100px;
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; gap: 40px; }
}

.service-card {
  background: var(--ink-2);
  border: 1px solid var(--line-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--sage-500);
}

.service-img {
  height: 320px;
  background-size: cover;
  background-position: center;
  filter: grayscale(30%) contrast(1.05);
  transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
  transform-origin: center;
}
.service-card:hover .service-img {
  filter: grayscale(0%) contrast(1.05);
  transform: scale(1.04);
}
.service-img-1 {
  background-image:
    linear-gradient(180deg, rgba(20,22,15,0) 50%, rgba(20,22,15,0.5) 100%),
    url('residential.jpeg');
}
.service-img-2 {
  background-image:
    linear-gradient(180deg, rgba(20,22,15,0) 50%, rgba(20,22,15,0.5) 100%),
    url('commercial.jpeg');
}

.service-body { padding: 36px 40px 44px; }
.service-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-300);
  margin-bottom: 18px;
}
.service-body h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 18px;
}
.service-body p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,241,236,0.7);
  margin-bottom: 28px;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.service-list li {
  font-size: 13px;
  color: rgba(244,241,236,0.65);
  display: flex;
  align-items: center;
  gap: 12px;
}
.service-list li::before {
  content: '';
  width: 6px; height: 1px;
  background: var(--sage-400);
}

.services-foot {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 32px);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: rgba(244,241,236,0.85);
}

/* ============ PROCESS ============ */
.process {
  background: var(--cream-2);
  padding: 140px 0 120px;
}
.process-rows {
  display: flex;
  flex-direction: column;
}
.process-row {
  display: grid;
  grid-template-columns: 90px 240px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid var(--line);
  transition: padding 0.5s var(--ease);
}
.process-row:hover { padding-left: 16px; }
.process-row:last-child { border-bottom: 1px solid var(--line); }
.process-step {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  color: var(--sage-600);
  line-height: 1;
  letter-spacing: -0.04em;
}
.process-row h3 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
}
.process-row p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 500px;
}
@media (max-width: 800px) {
  .process-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
}

/* ============ CONTACT ============ */
.contact {
  background: var(--sage-700);
  color: var(--cream);
  padding: 140px 0 120px;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--sage-500) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.contact-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 76px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 80px;
  max-width: 1100px;
}
.contact-title em { color: var(--sage-200); }
.hl-light {
  background: linear-gradient(transparent 65%, rgba(244,241,236,0.2) 65%);
  padding: 0 4px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-top: 40px;
  margin-bottom: 80px;
  border-top: 1px solid var(--line-light);
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-200);
}
.contact-big {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.contact-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(244, 241, 236, 0.25);
  border-radius: 999px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.35s var(--ease);
  width: fit-content;
}
.social-btn svg {
  width: 20px;
  height: 20px;
  color: var(--cream);
  transition: transform 0.4s var(--ease);
}
.social-btn:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--sage-700);
  transform: translateX(4px);
}
.social-btn:hover svg {
  color: var(--sage-700);
  transform: scale(1.1) rotate(-4deg);
}

.big-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 28px 40px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 600;
  letter-spacing: -0.025em;
  transition: all 0.4s var(--ease);
}
.big-cta:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.big-cta svg { transition: transform 0.4s var(--ease); }
.big-cta:hover svg { transform: rotate(45deg); }

/* ============ FOOTER ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-light);
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

.footer-brand h3 {
  font-family: var(--display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 20px;
}
.footer-brand h3 em { color: var(--sage-300); }
.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.footer-logo { width: 60px; height: 60px; }
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(244,241,236,0.6);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-links > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage-300);
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 14px;
  color: rgba(244,241,236,0.75);
  transition: color 0.3s var(--ease), padding 0.3s var(--ease);
}
.footer-links a:hover { color: var(--cream); padding-left: 6px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244,241,236,0.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-words {
  display: block;
}
.reveal-words .rw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.reveal-words .rw > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal-words.in-view .rw > span {
  transform: translateY(0);
}
.reveal-words .rw:nth-child(n+1) > span { transition-delay: calc(var(--i, 0) * 35ms); }
