/* ==========================================================================
   ELAIOTEK — design system
   Fraunces (display) + Inter (body) + Space Mono (labels/data)
   Palette: void black, warm gold + ember, cool cyan sheen
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..700&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root{
  --void:#0b0b0c;
  --void-2:#101012;
  --panel:#17181b;
  --panel-2:#1d1f23;
  --line:rgba(244,240,232,.09);
  --line-strong:rgba(244,240,232,.16);
  --gold:#e8a33d;
  --ember:#d9762e;
  --cyan:#52d1d9;
  --ink:#f4f0e8;
  --stone:#a4a39a;
  --stone-dim:#6d6c66;

  --sweep: linear-gradient(115deg, var(--ember) 0%, var(--gold) 48%, var(--cyan) 100%);
  --sweep-soft: linear-gradient(115deg, rgba(217,118,46,.9) 0%, rgba(232,163,61,.9) 48%, rgba(82,209,217,.9) 100%);

  --r-sm:8px;
  --r-md:14px;
  --r-lg:22px;

  --container: 1180px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--void);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  position:relative;
}

/* ---- ambient plaster-grain texture, applied once to the whole page ---- */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.05;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer, section{ position:relative; z-index:1; }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

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

h1,h2,h3,h4{
  font-family:'Fraunces',serif;
  font-weight:600;
  letter-spacing:-.01em;
  margin:0;
  color:var(--ink);
}

.eyebrow{
  font-family:'Space Mono',monospace;
  font-size:.72rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--gold);
  display:inline-flex;
  align-items:center;
  gap:14px;
}
.eyebrow::before{
  content:"";
  width:28px; height:1px;
  background:var(--gold);
  display:inline-block;
}

p{ color:var(--stone); margin:0; }

/* ---------------------------------- NAV ---------------------------------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(11,11,12,.82);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  border-bottom:1px solid var(--line);
}
.nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:16px; padding-bottom:16px;
}
.brand{ display:flex; align-items:center; gap:14px; }
.brand img{ width:42px; height:auto; }
.brand-name{
  font-family:'Fraunces',serif;
  font-weight:600;
  font-size:1.35rem;
  letter-spacing:.02em;
  color:var(--ink);
}
.brand-name span{ color:var(--gold); }

.nav-links{
  display:flex; align-items:center; gap:38px;
  font-size:.94rem; font-weight:500;
}
.nav-links a{
  color:var(--stone);
  position:relative;
  padding:4px 0;
  transition:color .2s ease;
}
.nav-links a:hover{ color:var(--ink); }
.nav-links a.active{ color:var(--gold); }
.nav-links a.active::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-4px;
  height:2px; background:var(--sweep);
  border-radius:2px;
}

.nav-toggle{ display:none; background:none; border:none; color:var(--ink); font-size:1.4rem; cursor:pointer; }
.nav-mobile-cta{ display:none; }

/* ---------------------------------- BUTTONS ---------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:'Inter',sans-serif; font-weight:600; font-size:.95rem;
  padding:16px 30px;
  border-radius:var(--r-md);
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .25s ease, box-shadow .25s ease, border-color .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn-primary{
  background:var(--sweep);
  color:#141414;
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 40px -14px rgba(232,163,61,.55); }
.btn-ghost{
  border-color:var(--line-strong);
  color:var(--ink);
  background:rgba(255,255,255,.02);
}
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }

/* ---------------------------------- HERO ---------------------------------- */
.hero{
  padding:190px 0 120px;
  position:relative;
  overflow:hidden;
}
.hero-glow{
  position:absolute; z-index:0; pointer-events:none;
  width:900px; height:900px;
  top:-420px; left:50%; transform:translateX(-50%);
  background:conic-gradient(from 120deg, rgba(217,118,46,.35), rgba(232,163,61,.28), rgba(82,209,217,.22), transparent 70%);
  filter:blur(90px);
  opacity:.65;
}
.hero .wrap{ position:relative; z-index:1; }
.hero-inner{ max-width:880px; }
.hero h1{
  font-size:clamp(2.7rem, 5.4vw, 4.6rem);
  line-height:1.04;
  margin:26px 0 22px;
}
.hero h1 em{ font-style:italic; color:var(--gold); }
.hero-sub{ font-size:1.2rem; max-width:600px; color:var(--stone); }
.hero-actions{ display:flex; gap:18px; margin-top:44px; flex-wrap:wrap; }

/* ---------------------------------- SKYLINE DIVIDER ---------------------------------- */
.skyline{
  width:100%; height:auto; display:block;
}
.skyline path, .skyline polyline{
  fill:none;
  stroke-width:1.4;
  opacity:.55;
}
.skyline-draw{
  stroke-dasharray:1400;
  stroke-dashoffset:1400;
  transition:stroke-dashoffset 1.6s ease;
}
.skyline-draw.in{ stroke-dashoffset:0; }

.page-header{
  padding:170px 0 70px;
  position:relative;
  overflow:hidden;
}
.page-header .hero-glow{ width:700px; height:700px; top:-380px; opacity:.5; }
.page-header h1{ font-size:clamp(2.4rem,4.6vw,3.6rem); margin:22px 0 18px; }
.page-header p{ max-width:600px; font-size:1.08rem; }

/* ---------------------------------- STATS ---------------------------------- */
.stats{
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--void-2);
}
.stats .wrap{
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px;
  padding:64px 32px;
}
.stat-num{
  font-family:'Space Mono',monospace;
  font-size:2.5rem; font-weight:700;
  background:var(--sweep); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.stat-label{
  font-size:.85rem; color:var(--stone-dim);
  text-transform:uppercase; letter-spacing:.08em; margin-top:8px;
}

/* ---------------------------------- SECTION ---------------------------------- */
.section{ padding:110px 0; }
.section-head{ max-width:640px; margin-bottom:64px; }
.section-head h2{ font-size:clamp(2rem,3.6vw,2.9rem); margin-top:18px; }
.section-head p{ margin-top:16px; font-size:1.08rem; }
.section-tight .section-head{ margin-bottom:44px; }

/* ---------------------------------- SWATCH CARDS (services) ---------------------------------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; }
.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; }

.swatch-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  overflow:hidden;
  transition:transform .3s ease, border-color .3s ease;
}
.swatch-card:hover{ transform:translateY(-6px); border-color:var(--line-strong); }
.swatch{
  height:150px;
  position:relative;
  overflow:hidden;
}
.swatch::after{
  content:"";
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.18;
  mix-blend-mode:overlay;
}
.swatch-plaster{ background:linear-gradient(135deg,#3a332b,#8a7a5c 55%,#c9b48c); }
.swatch-metallic{ background:linear-gradient(120deg,#2a2a2a,#e8a33d 40%,#f4e3b8 55%,#52d1d9 100%); }
.swatch-facade{ background:linear-gradient(135deg,#1c2a33,#2f5a63 45%,#d9762e 100%); }

.swatch-card-body{ padding:34px 30px 38px; }
.swatch-card-body i{ color:var(--gold); font-size:1.5rem; margin-bottom:14px; display:block; }
.swatch-card-body h3{ font-size:1.4rem; margin-bottom:12px; }
.swatch-card-body p{ font-size:.98rem; }

/* ---------------------------------- PROCESS (numbered — real sequence) ---------------------------------- */
.process{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.process::before{
  content:"";
  position:absolute; top:20px; left:0; right:0; height:1px;
  background:var(--line-strong);
}
.process-step{ padding:0 24px 0 0; position:relative; }
.process-step:first-child{ padding-left:0; }
.step-num{
  font-family:'Space Mono',monospace;
  font-size:.95rem;
  width:40px; height:40px;
  border-radius:50%;
  background:var(--void);
  border:1px solid var(--line-strong);
  display:flex; align-items:center; justify-content:center;
  color:var(--gold);
  margin-bottom:24px;
  position:relative; z-index:1;
}
.process-step h4{ font-size:1.15rem; margin-bottom:10px; }
.process-step p{ font-size:.94rem; }

/* ---------------------------------- QUOTE / CTA BAND ---------------------------------- */
.cta-band{
  background:var(--panel);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:90px 0;
  text-align:center;
  position:relative;
  overflow:hidden;
}
.cta-band h2{ font-size:clamp(2rem,4vw,3.1rem); max-width:760px; margin:0 auto 34px; }

/* ---------------------------------- FOOTER ---------------------------------- */
footer{
  background:var(--void-2);
  border-top:1px solid var(--line);
  padding:70px 0 34px;
}
.footer-grid{
  display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:48px;
  padding-bottom:50px;
}
.footer-brand .brand{ margin-bottom:16px; }
.footer-brand p{ max-width:320px; font-size:.94rem; }
.footer-col h5{
  font-family:'Space Mono',monospace;
  font-size:.75rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--stone-dim); margin-bottom:18px;
}
.footer-col a, .footer-col p{
  display:block; font-size:.95rem; color:var(--stone);
  margin-bottom:12px;
}
.footer-col a:hover{ color:var(--gold); }
.footer-bottom{
  border-top:1px solid var(--line);
  padding-top:28px;
  display:flex; justify-content:space-between; align-items:center;
  font-size:.8rem; color:var(--stone-dim);
  flex-wrap:wrap; gap:12px;
}

/* ---------------------------------- FORM ---------------------------------- */
.field{
  width:100%;
  padding:18px 20px;
  background:var(--panel);
  border:1px solid var(--line-strong);
  border-radius:var(--r-md);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  font-size:1rem;
  outline:none;
  transition:border-color .2s ease;
}
.field::placeholder{ color:var(--stone-dim); }
.field:focus{ border-color:var(--gold); }

.contact-info-card{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:36px;
}
.contact-info-card .row{ display:flex; gap:16px; align-items:flex-start; margin-bottom:26px; }
.contact-info-card .row:last-child{ margin-bottom:0; }
.contact-info-card i{ color:var(--gold); font-size:1.15rem; margin-top:3px; width:22px; }
.contact-info-card .label{ font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--stone-dim); margin-bottom:4px; }
.contact-info-card .value{ font-size:1.05rem; color:var(--ink); }

/* ---------------------------------- PROJECTS GRID ---------------------------------- */
.project-tile{
  border-radius:var(--r-lg);
  border:1px solid var(--line);
  overflow:hidden;
  background:var(--panel);
}
.project-media{
  height:280px;
  position:relative;
  display:flex; align-items:flex-end;
  padding:26px;
  overflow:hidden;
}
.pm-1{ background:linear-gradient(150deg,#241d16,#8a7a5c 60%,#d9c7a0); }
.pm-2{ background:linear-gradient(135deg,#1c1c1c,#e8a33d 45%,#f7ecd0 60%,#52d1d9 100%); }
.pm-3{ background:linear-gradient(150deg,#152229,#2f5a63 50%,#d9762e 100%); }
.pm-4{ background:linear-gradient(160deg,#2a1f14,#b98f52 55%,#52d1d9); }
.pm-5{ background:linear-gradient(140deg,#101418,#3a4750 45%,#e8a33d 100%); }
.pm-6{ background:linear-gradient(150deg,#1a1512,#6d5a3c 50%,#c9b48c 75%,#52d1d9 100%); }
.project-media::after{
  content:"";
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity:.16;
  mix-blend-mode:overlay;
}
.project-tag{
  position:relative; z-index:1;
  font-family:'Space Mono',monospace;
  font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
  background:rgba(11,11,12,.55);
  backdrop-filter:blur(6px);
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(244,240,232,.18);
}
.project-body{ padding:26px 28px 30px; }
.project-body .loc{ font-family:'Space Mono',monospace; font-size:.78rem; color:var(--gold); letter-spacing:.06em; }
.project-body h3{ font-size:1.3rem; margin-top:10px; }

/* ---------------------------------- VALUES (about) ---------------------------------- */
.value-row{
  display:flex; gap:28px;
  padding:32px 0;
  border-top:1px solid var(--line);
}
.value-row:last-child{ border-bottom:1px solid var(--line); }
.value-index{
  font-family:'Space Mono',monospace;
  color:var(--stone-dim);
  font-size:.9rem;
  min-width:44px;
}
.value-row h4{ font-size:1.2rem; margin-bottom:8px; }
.value-row p{ font-size:.98rem; max-width:520px; }

/* ---------------------------------- REVEAL ANIM ---------------------------------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }

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

/* ---------------------------------- RESPONSIVE ---------------------------------- */
@media (max-width: 980px){
  .nav-cta{ display:none; }
  .nav-links{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; align-items:flex-start; gap:0;
    background:var(--void-2);
    border-bottom:1px solid var(--line);
    padding:8px 32px 20px;
  }
  .nav-links a{ padding:14px 0; width:100%; border-bottom:1px solid var(--line); }
  .nav-mobile-cta{
    display:block;
    color:var(--gold) !important;
    font-weight:600;
    border-bottom:none !important;
  }
  .nav-links-open{ display:flex; }
  .nav-toggle{ display:block; }
  .stats .wrap{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:1fr; }
  .grid-2{ grid-template-columns:1fr; }
  .process{ grid-template-columns:1fr; gap:36px; }
  .process::before{ display:none; }
  .process-step{ padding-left:0; }
  .footer-grid{ grid-template-columns:1fr; gap:36px; }
}
@media (max-width: 560px){
  .hero{ padding:150px 0 80px; }
  .section{ padding:76px 0; }
  .wrap{ padding:0 22px; }
}
