/* ==========================================================================
   BAYA ARC — Design System
   Fonts: Montserrat (display/headings), Poppins (body)
   Palette: pure black / white, per brand guideline
   ========================================================================== */

:root{
  --black: #0a0a0a;
  --true-black: #000000;
  --white: #ffffff;
  --off-white: #131313;
  --gray-100: #ececea;
  --gray-300: #c9c8c4;
  --gray-500: #9b9a96;
  --gray-700: #b9b8b4;
  --dim: rgba(255,255,255,0.14);
  --line: rgba(255,255,255,0.14);
  --line-dark: rgba(255,255,255,0.14);

  --font-display: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;

  --container: 1360px;
  --gutter: clamp(24px, 5vw, 72px);

  --ease: cubic-bezier(.16,.8,.24,1);
  --dur: .7s;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; color-scheme: dark; overflow-x: hidden; }
html,body{ margin:0; padding:0; width:100%; }

body{
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
:where(a:visited){ color: inherit; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.05;
}

.eyebrow{
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before{
  content:"";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}

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

.section{ padding: clamp(72px, 10vw, 160px) 0; }
.section-tight{ padding: clamp(48px, 6vw, 96px) 0; }

/* ---------------------------------- Buttons ---------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 17px 30px;
  border: 1px solid currentColor;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  position: relative;
}
.btn-dark{ color:var(--black); background:var(--white); border-color:var(--white); }
.btn-dark:hover{ background:transparent; color:var(--white); }
.btn-light{ color:var(--black); background:var(--white); border-color:var(--white); }
.btn-light:hover{ background:transparent; color:var(--white); }
.btn-outline{ color: currentColor; background: transparent; }
.btn-outline.on-dark:hover{ background:var(--white); color:var(--black); }
.btn-outline.on-light:hover{ background:var(--black); color:var(--white); }
.btn svg{ width:14px; height:14px; transition: transform .4s var(--ease); }
.btn:hover svg{ transform: translateX(5px); }

/* ---------------------------------- Header ---------------------------------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 500;
  padding: 26px 0;
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.site-header.is-scrolled{
  padding: 16px 0;
  background: rgba(10,10,10,0.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.brand{ display:flex; align-items:center; }
.brand img{ height: 26px; width:auto; }

.nav-desktop{ display:flex; align-items:center; gap:44px; }
.nav-desktop a{
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.nav-desktop a::after{
  content:"";
  position:absolute; left:0; right:100%; bottom:0;
  height:1px; background: currentColor;
  transition: right .4s var(--ease);
}
.nav-desktop a:hover::after,
.nav-desktop a.is-active::after{ right:0; }

.header-cta{ display:flex; align-items:center; gap:28px; }
.header-cta .btn{ color:var(--white); border-color: rgba(255,255,255,.7); padding: 13px 24px; font-size:.72rem; }
.header-cta .btn:hover{ background: var(--white); color:var(--black); }

.menu-toggle{
  display:none;
  flex-direction:column;
  gap:6px;
  width:30px;
  background:none; border:none; padding:6px 0;
}
.menu-toggle span{
  height:1px; width:100%; background: var(--white);
  transition: background var(--dur) var(--ease), transform .35s var(--ease), opacity .3s;
}

/* Non-transparent header pages (no hero image behind the header) */
.header-solid{ background: rgba(10,10,10,0.92); box-shadow: 0 1px 0 rgba(255,255,255,0.08); padding: 16px 0; }

/* Mobile nav drawer */
.nav-mobile{
  position: fixed; inset:0;
  background: var(--black);
  color: var(--white);
  z-index: 600;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: var(--gutter);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s linear .6s;
}
.nav-mobile.is-open{
  transform: translateY(0);
  visibility: visible;
  transition: transform .6s var(--ease), visibility 0s linear 0s;
}
.nav-mobile ul{ display:flex; flex-direction:column; gap:22px; }
.nav-mobile a{
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.4rem);
  text-transform: uppercase;
  font-weight: 700;
}
.nav-mobile-close{
  position:absolute; top:26px; right:var(--gutter);
  background:none; border:none; color:var(--white);
  width:30px; height:30px;
}
.nav-mobile-foot{ margin-top:48px; display:flex; flex-direction:column; gap:6px; font-size:.85rem; color: var(--gray-300); }

/* ---------------------------------- Hero ---------------------------------- */
.hero{
  position:relative;
  min-height: 100svh;
  display:flex;
  flex-direction: column;
  justify-content:flex-end;
  color: var(--white);
  overflow:hidden;
  background: var(--black);
}
.hero-media{ position:absolute; inset:0; z-index:0; }
.hero-media img{ width:100%; height:100%; object-fit:cover; transform: scale(1.06); animation: heroZoom 16s var(--ease) forwards; }
@keyframes heroZoom{ to{ transform: scale(1); } }
.hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 32%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.86) 100%);
}
.hero-content{
  position:relative; z-index:1;
  width:100%;
  padding-top: 168px;
  padding-bottom: 48px;
}
.hero-kicker{
  display:flex; align-items:center; gap:16px;
  font-size:.76rem; letter-spacing:.32em; text-transform:uppercase;
  color: var(--gray-300); margin-bottom: 20px;
}
.hero-kicker span.dot{ width:6px; height:6px; border-radius:50%; background: var(--white); }
.hero h1{
  font-size: clamp(2.6rem, 6.6vw, 6.4rem);
  max-width: 16ch;
}
.hero h1 em{
  font-style:normal; font-weight:300; font-family: var(--font-display);
  display:block;
}
.hero-sub{
  font-family: var(--font-body);
  font-weight:300;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--gray-100);
  max-width: 46ch;
  margin: 20px 0 34px;
}
.hero-actions{ display:flex; gap:20px; flex-wrap:wrap; align-items:center; }

/* Minimal hero — bird watermark, no photo */
.hero-minimal{ justify-content:center; }
.hero-bird-bg{
  position:absolute; z-index:0;
  top:50%; left:50%;
  transform:translate(-50%,-50%);
  width:min(58vw, 760px);
  opacity:.07;
  pointer-events:none;
  user-select:none;
}
.hero-minimal .hero-content{
  padding-top:120px; padding-bottom:64px;
  text-align:center;
}
.hero-minimal .hero-kicker{ justify-content:center; }
.hero-minimal h1{ margin:0 auto; }
.hero-minimal .hero-actions{ justify-content:center; margin-top:8px; }
.hero-stats{
  position:relative; z-index:1;
  border-top: 1px solid rgba(255,255,255,.18);
  margin-top: 36px;
}
.hero-stats .container{ display:grid; grid-template-columns:repeat(3,1fr); }
.hero-stats .stat{ min-width:0; padding: 18px 20px 18px 0; border-right:1px solid rgba(255,255,255,.18); }
.hero-stats .stat b, .hero-stats .stat span{ overflow-wrap:break-word; }
.hero-stats .stat:not(:first-child){ padding-left: 28px; }
.hero-stats .stat:last-child{ border-right:none; padding-right:0; }
.hero-stats .stat b{
  display:block; font-family:var(--font-display); font-weight:700;
  font-size: clamp(1.6rem,2.4vw,2.2rem);
}
.hero-stats .stat span{ font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color: var(--gray-300); }

/* ---------------------------------- Page header (non-home) ---------------------------------- */
.page-hero{
  position:relative;
  min-height: 62vh;
  display:flex; align-items:flex-end;
  color:var(--white);
  background: var(--black);
  overflow:hidden;
}
.page-hero .hero-media img{ animation:none; transform:scale(1.02); }
.page-hero-content{ position:relative; z-index:1; padding-top:220px; padding-bottom:56px; width:100%; }
.page-hero h1{ font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 18ch; }
.breadcrumb{
  display:flex; gap:10px; align-items:center;
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; color: var(--gray-300);
  margin-bottom:20px;
}

/* ---------------------------------- Marquee ---------------------------------- */
.marquee{
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  overflow:hidden; white-space:nowrap; padding: 38px 0;
}
.marquee-track{ display:inline-flex; gap:64px; animation: marquee 32s linear infinite; }
.marquee span{
  font-family: var(--font-display); font-weight:700; text-transform:uppercase;
  font-size: clamp(1rem,1.6vw,1.3rem); color: var(--gray-300); letter-spacing:.02em;
  display:inline-flex; align-items:center; gap:64px;
}
.marquee span i{ font-style:normal; color: var(--gray-500); }
@keyframes marquee{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }

/* ---------------------------------- Intro / Split ---------------------------------- */
.split{ display:grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px,6vw,96px); align-items:center; }
.split.reverse{ grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-media{ order:2; }
.split-media{ position:relative; overflow:hidden; }
.split-media img{ width:100%; height:100%; object-fit:cover; transition: transform 1.1s var(--ease); }
.split-media:hover img{ transform: scale(1.05); }
.split-eyebrow{ margin-bottom:22px; }
.split h2{ font-size: clamp(1.8rem, 3.6vw, 3rem); margin-bottom:26px; }
.split p{ color: var(--gray-700); font-size:1.02rem; max-width:52ch; margin: 0 0 18px; }
.split .btn{ margin-top: 20px; }

.stat-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-top:48px; padding-top:36px; border-top:1px solid var(--line); }
.stat-row b{ display:block; font-family:var(--font-display); font-size:clamp(1.6rem,2.6vw,2.4rem); font-weight:700; }
.stat-row span{ font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--gray-500); }

/* ---------------------------------- Philosophy pillars ---------------------------------- */
.pillar-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.pillar{ background:var(--off-white); padding:44px 40px; }
.pillar h3{ font-size:1.5rem; margin:16px 0 10px; }
.pillar-tag{ font-family:var(--font-body); font-weight:500; font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--gray-500); margin:0 0 16px; }
.pillar > p:last-child{ color:var(--gray-700); font-size:.95rem; line-height:1.7; margin:0; }

/* ---------------------------------- Section headings ---------------------------------- */
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom: 56px; flex-wrap:wrap; }
.section-head h2{ font-size: clamp(1.9rem, 4vw, 3.2rem); margin-top:20px; max-width: 16ch; }
.section-head p{ color: var(--gray-700); max-width:38ch; font-size:1rem; }
.section-head.center{ text-align:center; justify-content:center; flex-direction:column; align-items:center; }
.section-head.center h2{ max-width:20ch; }
.section-head.on-dark p{ color: var(--gray-300); }

/* ---------------------------------- Services ---------------------------------- */
.service-list{ border-top:1px solid var(--line); }
.service-row{
  display:grid; grid-template-columns: 90px 1fr 1.4fr 140px;
  gap: 32px; align-items:center;
  padding: 38px 0;
  border-bottom:1px solid var(--line);
  transition: background var(--dur) var(--ease);
  position:relative;
}
.service-row:hover{ background: var(--off-white); }
.service-num{ font-family:var(--font-display); font-weight:700; font-size:1rem; color: var(--gray-300); }
.service-row h3{ font-size: clamp(1.2rem, 2vw, 1.6rem); }
.service-row p{ color: var(--gray-700); margin:0; font-size:.95rem; max-width:56ch; }
.service-arrow{
  justify-self:end; width:44px; height:44px; border-radius:50%;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  transition: all var(--dur) var(--ease);
}
.service-row:hover .service-arrow{ background:var(--white); border-color:var(--white); }
.service-row:hover .service-arrow svg{ stroke: var(--black); transform: rotate(45deg); }
.service-arrow svg{ width:16px; height:16px; transition: all var(--dur) var(--ease); }

/* ---------------------------------- Process ---------------------------------- */
.process-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-dark); border:1px solid var(--line-dark); }
.process-step{ background: var(--black); color:var(--white); padding: 44px 32px; }
.process-step .service-num{ color: var(--gray-500); }
.process-step h3{ font-size:1.2rem; margin:18px 0 14px; }
.process-step p{ color: var(--gray-300); font-size:.92rem; margin:0; }

/* ---------------------------------- Project grid ---------------------------------- */
.filter-bar{ display:flex; gap:12px; flex-wrap:wrap; margin-bottom:48px; }
.filter-btn{
  padding: 11px 22px; border:1px solid var(--line); font-size:.76rem;
  letter-spacing:.1em; text-transform:uppercase; background:transparent;
  transition: all var(--dur) var(--ease);
}
.filter-btn.is-active, .filter-btn:hover{ background:var(--white); color:var(--black); border-color:var(--white); }

.project-grid{ display:grid; grid-template-columns:repeat(12,1fr); gap: 28px; }
.project-card{
  position:relative; overflow:hidden; grid-column: span 6;
  aspect-ratio: 4/5; background: var(--off-white);
}
.project-card.wide{ grid-column: span 8; aspect-ratio: 16/10; }
.project-card.narrow{ grid-column: span 4; aspect-ratio: 3/4; }
.project-card img{ width:100%; height:100%; object-fit:cover; transition: transform 1s var(--ease); }
.project-card:hover img{ transform: scale(1.08); }
.project-card-overlay{
  position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 46%);
  display:flex; flex-direction:column; justify-content:flex-end;
  padding: 30px; color:var(--white);
}
.project-card-tag{ font-size:.68rem; letter-spacing:.2em; text-transform:uppercase; color: var(--gray-300); margin-bottom:10px; }
.project-card h3{ font-size: clamp(1.1rem,1.8vw,1.5rem); font-weight:600; text-transform:none; letter-spacing:0; }
.project-card-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:14px; }
.project-card-meta span{ font-size:.76rem; color: var(--gray-300); }
.project-card-plus{
  width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.5);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition: all .4s var(--ease);
}
.project-card:hover .project-card-plus{ background:var(--white); border-color:var(--white); }
.project-card:hover .project-card-plus svg{ stroke:var(--black); }
.project-card-plus svg{ width:14px; height:14px; }

/* ---------------------------------- Testimonial / Quote ---------------------------------- */
.quote-block{ text-align:center; max-width: 900px; margin:0 auto; }
.quote-mark{ font-family: var(--font-display); font-size: 5rem; line-height:1; color: var(--dim); margin-bottom:8px; }
.quote-block p{ font-family: var(--font-display); font-weight:500; text-transform:none; letter-spacing:0;
  font-size: clamp(1.4rem, 3vw, 2.2rem); line-height:1.4; color:var(--white); }
.quote-attr{ margin-top:28px; font-size:.85rem; letter-spacing:.08em; text-transform:uppercase; color: var(--gray-500); }

/* ---------------------------------- CTA band ---------------------------------- */
.cta-band{ position:relative; background:var(--black); color:var(--white); overflow:hidden; }
.cta-band .container{ position:relative; z-index:1; text-align:center; padding: 100px var(--gutter); }
.cta-band h2{ font-size: clamp(2rem, 5vw, 4rem); max-width:18ch; margin:0 auto 34px; }
.cta-band .bird-bg{ position:absolute; opacity:.05; width:900px; top:50%; left:50%; transform:translate(-50%,-50%); }

/* ---------------------------------- Footer ---------------------------------- */
.site-footer{ background: var(--black); color: var(--gray-300); padding-top: clamp(64px,8vw,110px); }
.footer-top{ display:grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 40px; padding-bottom:64px; border-bottom:1px solid var(--line-dark); }
.footer-brand img{ height:30px; margin-bottom:22px; }
.footer-brand p{ max-width:34ch; font-size:.92rem; color: var(--gray-500); }
.footer-social{ display:flex; gap:14px; margin-top:26px; }
.footer-social a{
  width:38px; height:38px; border:1px solid var(--line-dark); border-radius:50%;
  display:flex; align-items:center; justify-content:center; transition: all .3s;
}
.footer-social a:hover{ background:var(--white); border-color:var(--white); }
.footer-social a:hover svg{ stroke:var(--black); }
.footer-social svg{ width:15px; height:15px; }
.footer-col h4{ color:var(--white); font-size:.76rem; letter-spacing:.14em; margin-bottom:22px; }
.footer-col ul{ display:flex; flex-direction:column; gap:13px; }
.footer-col a{ font-size:.92rem; transition: color .3s; }
.footer-col a:hover{ color:var(--white); }
.footer-col address{ font-style:normal; font-size:.92rem; line-height:1.8; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding: 26px 0; font-size:.78rem; color: var(--gray-500); flex-wrap:wrap; gap:12px; }
.footer-bottom a:hover{ color:var(--white); }

/* ---------------------------------- Reveal animation ---------------------------------- */
[data-reveal]{ opacity:0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-visible{ opacity:1; transform:none; }
[data-reveal-stagger] > *{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal-stagger].is-visible > *{ opacity:1; transform:none; }
[data-reveal-stagger].is-visible > *:nth-child(1){ transition-delay:.05s; }
[data-reveal-stagger].is-visible > *:nth-child(2){ transition-delay:.14s; }
[data-reveal-stagger].is-visible > *:nth-child(3){ transition-delay:.23s; }
[data-reveal-stagger].is-visible > *:nth-child(4){ transition-delay:.32s; }
[data-reveal-stagger].is-visible > *:nth-child(5){ transition-delay:.41s; }
[data-reveal-stagger].is-visible > *:nth-child(6){ transition-delay:.5s; }

@media (prefers-reduced-motion: reduce){
  [data-reveal],[data-reveal-stagger] > *{ opacity:1 !important; transform:none !important; transition:none !important; }
  .hero-media img{ animation:none; transform:none; }
}

/* ---------------------------------- Utility ---------------------------------- */
.on-dark{ background:var(--black); color:var(--white); }
.on-off{ background: var(--off-white); }
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }

/* ---------------------------------- Responsive ---------------------------------- */
@media (max-width: 1080px){
  .nav-desktop, .header-cta .btn{ display:none; }
  .menu-toggle{ display:flex; }
  .footer-top{ grid-template-columns: 1fr 1fr; row-gap:44px; }
  .split, .split.reverse{ grid-template-columns:1fr; }
  .split.reverse .split-media{ order:0; }
  .hero-stats .container{ grid-template-columns:repeat(2,1fr); }
  .hero-stats .stat:nth-child(2){ border-right:none; }
  .hero-stats .stat:nth-child(3){ padding-left:0; border-top:1px solid rgba(255,255,255,.18); margin-top:18px; padding-top:28px; }
  .process-grid{ grid-template-columns:repeat(2,1fr); }
  .service-row{ grid-template-columns: 50px 1fr; }
  .service-row p{ grid-column: 1 / -1; }
  .service-arrow{ display:none; }
}
@media (max-width: 720px){
  .project-card, .project-card.wide, .project-card.narrow{ grid-column: span 12; aspect-ratio: 4/5; }
  .stat-row{ grid-template-columns:repeat(3,1fr); gap:16px; }
  .footer-top{ grid-template-columns:1fr; }
  .process-grid{ grid-template-columns:1fr; }
  .hero-stats .container{ grid-template-columns:1fr 1fr; }
  .section-head{ flex-direction:column; align-items:flex-start; }
  .pillar-grid{ grid-template-columns:1fr; }
}
