/* ===== Design tokens ===== */
:root {
  --c-graphite: #1F2A2E;
  --c-graphite-2: #2B373B;
  --c-bronze: #B08147;
  --c-bronze-2: #C8965A;
  --c-cream: #F7F5F1;
  --c-paper: #FFFFFF;
  --c-text: #2B2B2B;
  --c-muted: #6E6E6E;
  --c-border: #E5E1D9;

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1240px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(31,42,46,.06);
  --shadow-md: 0 8px 24px rgba(31,42,46,.10);
  --shadow-lg: 0 20px 60px rgba(31,42,46,.18);

  --t: 240ms cubic-bezier(.4,0,.2,1);
}

/* ===== Reset ===== */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-bronze); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--c-bronze-2); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-graphite); margin: 0 0 .6em; line-height: 1.18; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); }
h3 { font-size: clamp(1.2rem, .8vw + 1rem, 1.4rem); }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

/* ===== Layout ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(28px, 7vw, 96px); }
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--tight { padding: clamp(40px, 5vw, 70px) 0; }
.section--dark { background: var(--c-graphite); color: #DDE1E2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-bronze);
  margin-bottom: 14px;
}
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--c-bronze); color: #fff; }
.btn--primary:hover { background: var(--c-bronze-2); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--c-graphite); border-color: var(--c-graphite); }
.btn--ghost:hover { background: var(--c-graphite); color: #fff; }
.btn--light { background: #fff; color: var(--c-graphite); }
.btn--light:hover { background: var(--c-bronze); color: #fff; }
.btn .arr { display: inline-block; transition: transform var(--t); }
.btn:hover .arr { transform: translateX(3px); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, .85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); color: var(--c-graphite); font-weight: 700; }
.brand img { height: 42px; width: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name b { font-size: 1.05rem; }
.brand-name span { font-size: .72rem; color: var(--c-muted); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; color: var(--c-graphite); font-family: var(--font-head);
  font-weight: 500; font-size: .95rem; border-radius: 8px;
}
.nav a:hover { background: rgba(31,42,46,.06); color: var(--c-graphite); }
.nav a.active { color: var(--c-bronze); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { color: var(--c-graphite); font-weight: 600; font-family: var(--font-head); font-size: .98rem; white-space: nowrap; }
.header-phone:hover { color: var(--c-bronze); }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--c-border); border-radius: 10px;
  cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--c-graphite); position: relative; transition: all var(--t); }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: var(--c-graphite); transition: all var(--t);
}
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .nav, .header-phone { display: none; }
  .burger { display: inline-flex; }
  .header-cta { gap: 10px; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--c-cream); border-bottom: 1px solid var(--c-border);
    padding: 14px clamp(20px, 4vw, 32px); gap: 4px;
  }
  .nav.is-open a { padding: 14px 16px; border-radius: 10px; }
}
@media (min-width: 1101px) and (max-width: 1280px) {
  .nav a { padding: 10px 10px; font-size: .9rem; }
  .header-cta { gap: 14px; }
  .header-phone { font-size: .92rem; }
}
@media (max-width: 640px) {
  .site-header .container { padding-inline: clamp(20px, 5vw, 32px); }
  .header-inner { gap: 10px; padding: 10px 8px; }
  .brand img { height: 34px; }
  .brand { gap: 10px; }
  .brand-name b { font-size: .95rem; }
  .brand-name span { display: none; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 9px 14px; font-size: .85rem; border-radius: 999px; }
  .header-cta .btn .arr { display: none; }
  .burger { width: 38px; height: 38px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: clamp(520px, 80vh, 760px);
  display: flex; align-items: center;
  background:
    linear-gradient(135deg, rgba(31,42,46,.82) 0%, rgba(31,42,46,.55) 60%, rgba(31,42,46,.28) 100%),
    url('../img/projects/1549184415_1476395015.webp') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 80% 20%, rgba(176,129,71,.18), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: none; padding-block: 60px; }
.hero-inner > .eyebrow,
.hero-inner > h1,
.hero-inner > .hero-lead,
.hero-inner > .hero-actions { max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 em { color: var(--c-bronze-2); font-style: normal; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 620px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  position: absolute; right: clamp(16px, 4vw, 60px); bottom: 40px; z-index: 2;
  display: flex; gap: clamp(20px, 4vw, 50px); color: rgba(255,255,255,.85);
  font-family: var(--font-head);
}
.hero-meta { align-items: flex-end; }
.hero-meta div { display: flex; flex-direction: column; justify-content: flex-end; }
.hero-meta div b {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.8rem); color: #fff;
  line-height: 1; margin-bottom: 10px;
  font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hero-meta div b i {
  font-style: normal; font-weight: 600;
  font-size: .5em; color: rgba(255,255,255,.7);
  letter-spacing: .02em; margin-left: 2px;
  vertical-align: baseline;
}
.hero-meta div span { font-size: .85rem; letter-spacing: .04em; line-height: 1.3; }
@media (max-width: 720px) { .hero-meta { display: none; } }

/* ===== Cards / Services ===== */
.grid-3 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.svc-card {
  background: var(--c-paper); border-radius: var(--r-lg); padding: 36px 30px;
  border: 1px solid var(--c-border);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column; gap: 18px;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--c-bronze); }
.svc-card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--c-bronze), var(--c-bronze-2));
  display: grid; place-items: center; color: #fff;
}
.svc-card h3 { margin: 0; }
.svc-card p { color: var(--c-muted); margin: 0; }
.svc-card .more { margin-top: auto; color: var(--c-graphite); font-weight: 600; font-family: var(--font-head); display: inline-flex; align-items: center; gap: 8px; }
.svc-card .more:hover { color: var(--c-bronze); }

/* ===== Projects gallery — bento grid ===== */
.proj-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
}
.proj-grid .p-1 { grid-column: span 2; grid-row: span 2; }
.proj-grid .p-2 { grid-column: span 2; grid-row: span 1; }
.proj-grid .p-3 { grid-column: span 1; grid-row: span 1; }
.proj-grid .p-4 { grid-column: span 1; grid-row: span 1; }
.proj-grid .p-5 { grid-column: span 2; grid-row: span 1; }
.proj-grid .p-6 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 880px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(200px, auto); }
  .proj-grid .p-1 { grid-column: span 2; grid-row: span 2; }
  .proj-grid .p-2, .proj-grid .p-5, .proj-grid .p-6 { grid-column: span 2; }
  .proj-grid .p-3, .proj-grid .p-4 { grid-column: span 1; }
}
@media (max-width: 540px) {
  .proj-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .proj-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
}

.proj-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--c-graphite);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
  isolation: isolate;
}
.proj-card::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 30%, rgba(31,42,46,.55) 70%, rgba(31,42,46,.92) 100%);
  transition: opacity .5s ease;
}
.proj-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1; opacity: 0;
  background: linear-gradient(135deg, rgba(176,129,71,.45), rgba(31,42,46,.7));
  transition: opacity .5s ease;
  mix-blend-mode: multiply;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.proj-card:hover::after { opacity: 1; }
.proj-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 900ms cubic-bezier(.2,.8,.2,1), filter .5s ease;
  z-index: 0;
}
.proj-card:hover img { transform: scale(1.08); filter: saturate(1.1); }
.proj-card .overlay {
  position: absolute; inset: 0; z-index: 2;
  padding: clamp(18px, 2.5vw, 28px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.proj-card .tag {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-bronze-2); font-weight: 700; margin-bottom: 8px;
  font-family: var(--font-head);
  display: inline-flex; align-items: center; gap: 6px;
  transform: translateY(0); transition: transform .5s ease;
}
.proj-card .tag::before {
  content: ''; width: 18px; height: 1px; background: var(--c-bronze-2);
  transition: width .5s ease;
}
.proj-card:hover .tag::before { width: 32px; }
.proj-card .ttl {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.3;
  max-width: 95%;
}
.proj-card .arrow-btn {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; color: #fff;
  opacity: 0; transform: translate(8px,-8px) rotate(-30deg);
  transition: all .45s cubic-bezier(.34,1.56,.64,1);
}
.proj-card:hover .arrow-btn { opacity: 1; transform: translate(0,0) rotate(0); }

/* Filter tabs */
.proj-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 32px;
}
.proj-filters button {
  font: inherit; font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  padding: 10px 18px; border-radius: 999px;
  background: transparent; color: var(--c-graphite);
  border: 1px solid var(--c-border); cursor: pointer;
  transition: all var(--t);
}
.proj-filters button:hover { border-color: var(--c-graphite); }
.proj-filters button.is-active { background: var(--c-graphite); color: #fff; border-color: var(--c-graphite); }
.proj-card.is-hidden { display: none; }

/* ===== About / Stats ===== */
.about-grid { display: grid; gap: 50px; grid-template-columns: 1.1fr 1fr; align-items: center; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }
.about-img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-md); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.stat { padding: 24px; background: var(--c-paper); border-radius: var(--r-md); border: 1px solid var(--c-border); }
.stat b {
  display: block;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(2.4rem, 3vw, 3rem); color: var(--c-graphite);
  line-height: 1; margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat b i {
  font-style: normal; font-weight: 600;
  font-size: .42em; color: var(--c-muted);
  letter-spacing: .02em; margin-left: 3px;
  vertical-align: baseline;
}
.stat span { color: var(--c-muted); font-size: .92rem; line-height: 1.45; display: block; }

/* ===== Process / Timeline ===== */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-lg); padding: 28px 24px; }
.step .num { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--c-bronze-2); display: block; margin-bottom: 10px; }
.step h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: rgba(221,225,226,.75); margin: 0; font-size: .95rem; }

/* ===== Licenses ===== */
.lic-grid { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.lic-card { background: var(--c-paper); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: 16px; transition: transform var(--t), box-shadow var(--t); }
.lic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.lic-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-sm); background: #f0ede6; }
.lic-card p { margin: 12px 4px 4px; font-family: var(--font-head); font-weight: 600; color: var(--c-graphite); font-size: .95rem; }
@media (max-width: 980px) {
  .lic-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .lic-card { padding: 12px; }
  .lic-card p { font-size: .85rem; }
}
@media (max-width: 380px) {
  .lic-grid { gap: 10px; }
  .lic-card { padding: 8px; }
  .lic-card p { font-size: .78rem; margin: 6px 2px 2px; }
}

/* ===== CTA / Form ===== */
.cta-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: start; }
@media (max-width: 880px) { .cta-wrap { grid-template-columns: 1fr; } }
.cta-info p { color: var(--c-muted); }
.cta-info .contact-line { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; color: var(--c-graphite); font-family: var(--font-head); font-weight: 500; }
.cta-info .contact-line .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--c-cream); display: grid; place-items: center; color: var(--c-bronze); flex-shrink: 0; }

.form {
  background: var(--c-paper); border: 1px solid var(--c-border);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm);
}
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; color: var(--c-muted); font-family: var(--font-head); font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-cream); color: var(--c-text); transition: border-color var(--t), background var(--t);
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-bronze); background: #fff; }
.field--hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-foot small { color: var(--c-muted); font-size: .82rem; max-width: 380px; }

/* ===== Footer ===== */
.site-footer { background: var(--c-graphite); color: #C8CDCF; padding: 70px 0 30px; margin-top: auto; }
.foot-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { color: #fff; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; font-family: var(--font-head); }
.foot-col a { color: #C8CDCF; }
.foot-col a:hover { color: var(--c-bronze-2); }
.foot-col ul li { margin-bottom: 10px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; font-size: .85rem; color: rgba(200,205,207,.7); }

/* ===== Map ===== */
.map-wrap { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); }
.map-wrap iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ===== Page header ===== */
.page-header {
  background: var(--c-graphite); color: #fff;
  padding: clamp(70px, 12vw, 130px) 0 clamp(50px, 8vw, 80px);
  position: relative; overflow: hidden;
}
.page-header::after { content:''; position:absolute; inset:0; background: radial-gradient(60% 80% at 90% 0%, rgba(176,129,71,.25), transparent 70%); pointer-events:none; }
.page-header .eyebrow { color: var(--c-bronze-2); }
.page-header h1 { color: #fff; margin: 0; max-width: 800px; }
.crumbs { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 16px; }
.crumbs a { color: rgba(255,255,255,.6); }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* ===== Magnetic button wrapper ===== */
.magnetic { display: inline-block; will-change: transform; transition: transform .3s cubic-bezier(.2,.8,.2,1); }

/* ===== Marquee / ticker ===== */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--c-border);
  background: var(--c-paper);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; gap: 60px; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 600;
  color: var(--c-graphite); font-size: 1.05rem;
  white-space: nowrap;
}
.marquee-item b { color: var(--c-bronze); font-weight: 800; font-size: 1.15rem; }
.marquee-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c-bronze-2); flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== Noise texture overlay ===== */
.noise::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .07; mix-blend-mode: overlay;
}

/* ===== Decorative blobs ===== */
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; opacity: .55; z-index: 0;
  animation: blob-float 18s ease-in-out infinite;
}
.blob--bronze { background: radial-gradient(circle, var(--c-bronze) 0%, transparent 70%); }
.blob--graphite { background: radial-gradient(circle, var(--c-graphite-2) 0%, transparent 70%); }
@keyframes blob-float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(40px,-30px) scale(1.1); }
}

/* ===== Hero parallax & enhancements ===== */
.hero { position: relative; }
.hero-bg {
  position: absolute; inset: -10%; z-index: 0;
  background: url('../img/projects/1549184415_1476395015.webp') center/cover no-repeat;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(135deg, rgba(31,42,46,.85) 0%, rgba(31,42,46,.55) 60%, rgba(31,42,46,.25) 100%),
    radial-gradient(120% 60% at 80% 20%, rgba(176,129,71,.22), transparent 60%);
}
/* Override original hero bg since we now use .hero-bg */
.hero { background: var(--c-graphite) !important; }
.hero-inner { z-index: 3 !important; }
.hero h1 .word {
  display: inline-block; overflow: hidden; vertical-align: bottom;
}
.hero h1 .word > span {
  display: inline-block; transform: translateY(110%);
  animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .word:nth-child(1) > span { animation-delay: .1s; }
.hero h1 .word:nth-child(2) > span { animation-delay: .2s; }
.hero h1 .word:nth-child(3) > span { animation-delay: .3s; }
.hero h1 .word:nth-child(4) > span { animation-delay: .4s; }
.hero h1 .word:nth-child(5) > span { animation-delay: .5s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3; color: rgba(255,255,255,.6);
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .15em;
  text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0% { transform: scaleY(.3); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(.3); transform-origin: bottom; }
}
@media (max-width: 720px) { .hero-scroll { display: none; } }

/* ===== Service cards — premium hover ===== */
.svc-card { position: relative; overflow: hidden; }
.svc-card::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(176,129,71,.10), transparent 40%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.svc-card:hover::after { opacity: 1; }
.svc-card > * { position: relative; z-index: 1; }
.svc-card .icon { transition: transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .5s ease; }
.svc-card:hover .icon { transform: rotate(-8deg) scale(1.08); box-shadow: 0 12px 30px rgba(176,129,71,.35); }

/* Animated number counter */
.stat b { font-variant-numeric: tabular-nums; }

/* Section badge */
.section--dark { position: relative; overflow: hidden; }

/* ===== Utility ===== */
.text-muted { color: var(--c-muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ===== Accessibility and production states ===== */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--c-graphite); color: #fff;
  transform: translateY(-160%); transition: transform var(--t);
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--c-bronze-2);
  outline-offset: 3px;
}
.btn:active, .proj-filters a:active, .proj-filters button:active { transform: translateY(1px) scale(.98); }

/* Filter links share the same visual language as the original buttons. */
.proj-filters a {
  display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 500; font-size: .92rem;
  padding: 10px 18px; border-radius: 999px;
  background: transparent; color: var(--c-graphite);
  border: 1px solid var(--c-border); cursor: pointer;
  transition: all var(--t);
}
.proj-filters a:hover { border-color: var(--c-graphite); color: var(--c-graphite); }
.proj-filters a.is-active { background: var(--c-graphite); color: #fff; border-color: var(--c-graphite); }

.projects-catalog.is-loading .proj-grid { opacity: .58; }
.projects-catalog .proj-grid { transition: opacity var(--t); }
.catalog-actions { margin: 38px 0 0; text-align: center; }
.catalog-empty { padding: 60px 24px; text-align: center; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; }
.catalog-empty p { color: var(--c-muted); margin-bottom: 0; }
.page-header--projects p, .project-hero p, .error-page p { max-width: 720px; color: rgba(255,255,255,.72); font-size: 1.06rem; }

/* ===== Project detail ===== */
.project-cover { margin: 0 0 clamp(42px,7vw,80px); border-radius: var(--r-lg); overflow: hidden; background: var(--c-graphite); box-shadow: var(--shadow-md); aspect-ratio: 16/9; }
.project-cover img { width: 100%; height: 100%; object-fit: cover; }
.project-info-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: clamp(36px,7vw,90px); align-items: start; }
.project-copy p { max-width: 68ch; font-size: 1.08rem; color: var(--c-muted); white-space: pre-line; }
.project-facts { padding: 30px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); }
.project-facts dl { margin: 0 0 28px; }
.project-facts dl div { padding: 0 0 17px; margin: 0 0 17px; border-bottom: 1px solid var(--c-border); }
.project-facts dt { color: var(--c-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }
.project-facts dd { margin: 5px 0 0; color: var(--c-graphite); font-weight: 600; }
.project-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-top: clamp(52px,8vw,100px); }
.project-gallery figure { margin: 0; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; background: var(--c-graphite); }
.project-gallery figure:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16/8; }
.project-gallery img { width: 100%; height: 100%; object-fit: cover; }
.project-next h2 { color: #fff; }

/* ===== Form feedback ===== */
.consent { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; color: var(--c-muted); font-size: .84rem; line-height: 1.45; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--c-bronze); flex: 0 0 auto; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: #fff3e7; color: #7a4a19; font-size: .9rem; }
.form-status.is-error { border-left: 3px solid var(--c-bronze); }

@media (max-width: 880px) {
  .project-info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery figure, .project-gallery figure:nth-child(3n+1) { grid-column: span 1; min-height: 240px; aspect-ratio: 4/3; }
  .project-facts { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .word > span { transform: none; }
}
