/* ---------- Tokens ---------- */
:root{
  --graphite: #1B1E1C;
  --graphite-2: #242822;
  --graphite-3: #2E332C;
  --stone: #EFEAE1;
  --paper: #F7F3EC;
  --copper: #B36A3D;
  --copper-deep: #8F4F29;
  --copper-light: #D08A5C;
  --teal: #34515A;
  --ink: #22251F;
  --ink-soft: #4B4E45;
  --line: rgba(27,30,28,0.12);
  --line-light: rgba(247,243,236,0.18);

  --font-display: 'Petrona', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --nav-h: 84px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
[id]{ scroll-margin-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3{ font-family: var(--font-display); margin:0; font-weight:600; }
p{ margin:0; }

:focus-visible{
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Available to screen readers and crawlers, not shown on screen */
.sr-only{
  position:absolute;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border:0;
}

.section__head{ max-width: 640px; margin: 0 auto 3.5rem; text-align:center; padding: 0 1.5rem; }
.section__head--light{ color: var(--paper); }
.section__title{ font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height:1.15; margin: 0.6rem 0 1rem; }
.section__title--light{ color: var(--paper); }
.section__sub{ font-size: 1.05rem; color: var(--ink-soft); line-height:1.6; }
.section__head--light .section__sub{ color: rgba(247,243,236,0.72); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-deep);
  display:inline-flex;
  align-items:center;
  gap:0.5rem;
}
.eyebrow--light{ color: var(--copper-light); }
.eyebrow__bob{ width:14px; height:20px; flex-shrink:0; }

/* ---------- Signature: plumb line ---------- */
.plumbline{
  position: fixed;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(179,106,61,0.35), rgba(179,106,61,0) 70%);
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.plumbline.is-visible{ opacity:1; }
.plumbline__bob{
  position:absolute;
  top:0; left:50%;
  width:10px; height:14px;
  transform-origin: 50% -40px;
  background: var(--copper);
  clip-path: path('M5 0C2 0 0 2.5 0 5.5C0 9 5 14 5 14S10 9 10 5.5C10 2.5 8 0 5 0Z');
  animation: plumbSettle 2.2s var(--ease) 0.3s both;
}
@keyframes plumbSettle{
  0%{ transform: translateX(-50%) rotate(-14deg); }
  40%{ transform: translateX(-50%) rotate(9deg); }
  65%{ transform: translateX(-50%) rotate(-4deg); }
  85%{ transform: translateX(-50%) rotate(2deg); }
  100%{ transform: translateX(-50%) rotate(0deg); }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.btn--lg{ padding: 1rem 2rem; font-size:1rem; }
.btn--sm{ padding: 0.55rem 1.1rem; font-size:0.85rem; }
.btn--copper{ background: var(--copper); color: var(--paper); }
.btn--copper:hover{ background: var(--copper-deep); transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(179,106,61,0.55); }
.btn--ghost-light{ border-color: rgba(247,243,236,0.45); color: var(--paper); }
.btn--ghost-light:hover{ background: rgba(247,243,236,0.1); transform: translateY(-2px); border-color: rgba(247,243,236,0.8); }

/* ---------- Nav ---------- */
.nav{
  position: fixed; top:0; left:0; right:0; z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{ background: rgba(27,30,28,0.92); backdrop-filter: blur(10px); border-color: var(--line-light); box-shadow: 0 8px 30px -12px rgba(0,0,0,0.4); }
.nav__inner{
  max-width: 1280px; margin: 0 auto; height:100%;
  display:flex; align-items:center; justify-content:space-between;
  padding: 0 1.75rem;
}
.nav__brand{ display:flex; align-items:center; gap:0.75rem; }
.nav__logo{ width:44px; height:44px; border-radius:50%; flex-shrink:0; }
.nav__wordmark{
  font-family: var(--font-display); font-weight:600; letter-spacing:0.05em;
  color: var(--paper); font-size:1.15rem; line-height:1.1; display:flex; flex-direction:column;
}
.nav__sub{ font-family: var(--font-mono); font-size:0.6rem; letter-spacing:0.1em; text-transform:uppercase; color: var(--copper-light); font-weight:400; margin-top:2px; }
.nav__links{ display:flex; gap:2rem; font-size:0.92rem; color: rgba(247,243,236,0.85); }
.nav__links a{ position:relative; padding: 0.3rem 0; }
.nav__links a::after{ content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background:var(--copper-light); transition: width 0.3s var(--ease); }
.nav__links a:hover{ color: var(--paper); }
.nav__links a:hover::after{ width:100%; }
.nav__cta{ display:flex; align-items:center; gap:0.75rem; }
.nav__toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:0.5rem; }
.nav__toggle span{ width:22px; height:2px; background: var(--paper); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__mobile{
  display:none; flex-direction:column; gap:0.25rem;
  background: var(--graphite); border-top:1px solid var(--line-light);
  padding: 1rem 1.75rem 1.5rem;
}
.nav__mobile a{ padding: 0.75rem 0; color: rgba(247,243,236,0.85); font-size:1rem; border-bottom:1px solid rgba(247,243,236,0.08); }
.nav__mobile .btn{ margin-top:0.75rem; width:100%; }
.nav.is-open .nav__mobile{ display:flex; }

@media (max-width: 880px){
  .nav__links, .nav__cta{ display:none; }
  .nav__toggle{ display:flex; }
}

/* ---------- Sticky mobile call bar ---------- */
.mobile-callbar{
  display:none;
}
@media (max-width: 780px){
  .mobile-callbar{
    display:flex; align-items:center; justify-content:center; gap:0.6rem;
    position:fixed; left:0; right:0; bottom:0; z-index:55;
    background: var(--copper);
    color: var(--paper);
    font-family: var(--font-body); font-weight:600; font-size:0.95rem;
    padding: 0.9rem 1rem calc(0.9rem + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -8px rgba(0,0,0,0.35);
  }
  .mobile-callbar__icon{ width:18px; height:18px; flex-shrink:0; }
  .mobile-callbar:active{ background: var(--copper-deep); }
  body{ padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .nav__mobile .btn{ display:none; }
}

/* ---------- Hero ---------- */
.hero{
  position: relative;
  min-height: 100svh;
  display:flex;
  align-items:flex-end;
  color: var(--paper);
  overflow:hidden;
}
.hero__media{ position:absolute; inset:0; }
.hero__img{ width:100%; height:100%; object-fit:cover; object-position: 60% center; }
.hero__scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(20,22,20,0.55) 0%, rgba(20,22,20,0.25) 30%, rgba(20,22,20,0.55) 68%, rgba(15,17,15,0.94) 100%),
    linear-gradient(90deg, rgba(15,17,15,0.55) 0%, rgba(15,17,15,0.1) 55%);
}
.hero__content{
  position:relative; z-index:1;
  max-width: 1280px; margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 1.75rem 6rem;
  width:100%;
}
.hero__title{
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  line-height: 1.02;
  margin: 1.1rem 0 1.3rem;
  max-width: 14ch;
}
.hero__sub{ max-width: 46ch; font-size: 1.1rem; line-height:1.65; color: rgba(247,243,236,0.82); margin-bottom: 2.2rem; }
/* Keep the eyebrow legible where it crosses bright areas of the photo */
.hero .eyebrow{ text-shadow: 0 1px 10px rgba(0,0,0,0.55); }
.hero__cta{ display:flex; gap:1rem; flex-wrap:wrap; }
.hero__scroll{
  position:absolute; right: 2rem; bottom: 2rem; z-index:1;
  width:1px; height:64px;
}
.hero__scroll-line{
  position:absolute; inset:0; background: rgba(247,243,236,0.4);
  animation: scrollHint 2.4s var(--ease) infinite;
}
@keyframes scrollHint{
  0%{ transform: scaleY(0); transform-origin: top; opacity:0; }
  40%{ transform: scaleY(1); transform-origin: top; opacity:1; }
  60%{ transform: scaleY(1); transform-origin: bottom; opacity:1; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity:0; }
}
@media (prefers-reduced-motion: reduce){ .hero__scroll-line{ animation:none; } }

/* ---------- Trust strip ---------- */
.trust{ background: var(--graphite); color: var(--paper); position:relative; z-index:1; }
.trust__list{
  max-width:1280px; margin:0 auto; padding: 3rem 1.75rem;
  display:grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 2.5rem;
}
.trust__list li{ position:relative; padding-top: 1.1rem; }
.trust__tick{ position:absolute; top:0; left:0; width:28px; height:2px; background: var(--copper); }
.trust__list strong{ display:block; font-size:1.02rem; margin-bottom:0.3rem; }
.trust__list span{ font-size:0.88rem; color: rgba(247,243,236,0.6); line-height:1.5; }
@media (max-width: 780px){ .trust__list{ grid-template-columns: repeat(2,1fr); } }

/* ---------- Services ---------- */
.services{ padding: 7rem 1.75rem; background: var(--stone); }
.pillars{ max-width: 1100px; margin:0 auto; display:grid; grid-template-columns: 1fr 1fr; gap:1.75rem; }
.pillar{
  background: var(--paper); border: 1px solid var(--line); border-radius: 4px;
  padding: 2.5rem 2.25rem; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pillar:hover{ transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(27,30,28,0.25); }
.pillar--copper{ background: var(--graphite); color: var(--paper); border-color: var(--graphite); }
.pillar__head{ display:flex; align-items:baseline; gap:0.9rem; margin-bottom:1.5rem; }
.pillar__mark{ font-family: var(--font-mono); font-size:0.85rem; color: var(--copper); letter-spacing:0.05em; }
.pillar h3{ font-size: 1.6rem; }
.pillar__list li{ padding: 0.65rem 0; border-top: 1px solid var(--line); font-size: 1rem; }
.pillar--copper .pillar__list li{ border-top-color: rgba(247,243,236,0.14); color: rgba(247,243,236,0.85); }
.pillar__list li:first-child{ border-top:none; }

@media (max-width: 780px){ .pillars{ grid-template-columns: 1fr; } }

/* ---------- Work / before-after projects ---------- */
.work{ padding: 7rem 1.75rem; background: var(--paper); }
.projects{
  max-width: 980px; margin: 0 auto 3.5rem;
  display:flex; flex-direction:column; gap: 3.25rem;
}
.project{ margin:0; }
.project__pair{ display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project__fig{
  position:relative; margin:0; border-radius:6px; overflow:hidden;
  box-shadow: 0 18px 38px -24px rgba(27,30,28,0.32);
}
.project__fig img{ width:100%; height:100%; aspect-ratio: 1/1; object-fit:cover; display:block; transition: transform 0.6s var(--ease); }
.project__fig:hover img{ transform: scale(1.04); }
.project__tag{
  position:absolute; left:0.75rem; bottom:0.75rem;
  font-family: var(--font-mono); font-size:0.66rem;
  letter-spacing:0.12em; text-transform:uppercase; padding: 0.35rem 0.65rem;
  background: rgba(20,22,20,0.68); color: var(--paper); border-radius:2px;
}
.project__tag--after{ background: rgba(179,106,61,0.92); }
.project__caption{
  margin-top: 1rem; font-size: 0.98rem; color: var(--ink-soft); line-height:1.5;
  display:flex; align-items:center; gap:0.65rem;
}
.project__caption::before{
  content:''; width:24px; height:2px; background: var(--copper); flex-shrink:0;
}
@media (max-width: 560px){
  .project__pair{ gap: 0.6rem; }
  .project__caption{ font-size: 0.92rem; align-items:flex-start; }
  .project__caption::before{ margin-top: 0.55rem; }
}

.work__grid{ max-width:1100px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }
.work__item{ margin:0; overflow:hidden; border-radius:6px; position:relative; }
.work__item img{ width:100%; height:100%; aspect-ratio: 4/3; object-fit:cover; transition: transform 0.6s var(--ease); }
.work__item:hover img{ transform: scale(1.05); }
.work__item figcaption{
  position:absolute; left:0; right:0; bottom:0; padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(15,17,15,0.85));
  color: var(--paper); font-size:0.92rem; font-family: var(--font-mono); letter-spacing:0.02em;
}
@media (max-width: 780px){ .work__grid{ grid-template-columns:1fr; } }

/* ---------- Testimonials ---------- */
.testimonials{ background: var(--graphite); padding: 7rem 1.75rem; }
.testimonial__grid{ max-width:1000px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:1.75rem; }
.testimonial{
  border: 1px solid rgba(179,106,61,0.35);
  background: var(--graphite-2);
  padding: 2.25rem 2rem; border-radius:4px; margin:0;
  position:relative;
}
.testimonial::before{
  content:'\201C'; position:absolute; top:0.8rem; left:1.4rem;
  font-family: var(--font-display); font-size:3.5rem; color: var(--copper); opacity:0.35; line-height:1;
}
.testimonial p{ font-family: var(--font-display); font-size:1.25rem; line-height:1.55; color: var(--paper); font-style:italic; }
.testimonial footer{ margin-top:1.3rem; font-family: var(--font-mono); font-size:0.8rem; letter-spacing:0.05em; color: var(--copper-light); }
@media (max-width: 780px){ .testimonial__grid{ grid-template-columns:1fr; } }

/* ---------- Service area ---------- */
.area{ background: var(--stone); padding: 6rem 1.75rem; }
.area__inner{ max-width:680px; margin:0 auto; text-align:center; }
.area__pills{
  display:flex; flex-wrap:wrap; justify-content:center; gap:0.6rem;
  margin-top: 1.75rem;
}
.area__pills li{
  font-family: var(--font-mono); font-size:0.78rem; letter-spacing:0.03em;
  padding: 0.5rem 1rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
}
.area__pills li:last-child{ background: transparent; border-style:dashed; color: var(--copper-deep); }

/* ---------- Final CTA ---------- */
.cta{ background: var(--graphite); color: var(--paper); padding: 7rem 1.75rem; position:relative; overflow:hidden; }
.cta::before{
  content:''; position:absolute; left:50%; top:-40%; width:1px; height:180%;
  background: linear-gradient(rgba(179,106,61,0.5), transparent 70%); transform: translateX(-50%);
}
.cta__inner{ max-width:680px; margin:0 auto; text-align:center; position:relative; }
.cta__title{ font-size: clamp(2rem, 4vw, 3rem); color: var(--paper); margin: 0.7rem 0 0.9rem; }
.cta__sub{ color: rgba(247,243,236,0.72); font-size:1.05rem; margin-bottom:2.2rem; }
.cta__buttons{ display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ---------- Footer ---------- */
.footer{ background: #14160F; color: rgba(247,243,236,0.65); padding: 4rem 1.75rem 1.5rem; }
.footer__inner{
  max-width:1200px; margin:0 auto; display:grid;
  grid-template-columns: 1.6fr 1fr 1fr; gap:2.5rem; padding-bottom: 2.5rem; border-bottom:1px solid rgba(247,243,236,0.1);
}
.footer__brand{ display:flex; flex-direction:column; gap:1rem; max-width:320px; }
.footer__logo{ width:52px; height:52px; border-radius:50%; }
.footer__brand p{ font-size:0.9rem; line-height:1.6; }
.footer__col h4{ font-family: var(--font-mono); font-size:0.75rem; text-transform:uppercase; letter-spacing:0.1em; color: var(--copper-light); margin: 0 0 1rem; font-weight:500; }
.footer__col{ display:flex; flex-direction:column; gap:0.65rem; font-size:0.92rem; }
.footer__col a:hover{ color: var(--paper); }
.footer__bottom{ max-width:1200px; margin:0 auto; padding-top:1.5rem; font-size:0.8rem; }

@media (max-width: 780px){
  .footer__inner{ grid-template-columns: 1fr; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal]{
  opacity:0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity:1; transform:none; }
}

/* ---------- Mobile refinements ---------- */
/* The plumb-line signature lives in the desktop margins; on narrow screens
   it cuts through headings and reads as a glitch, so it's desktop-only. */
@media (max-width: 900px){
  .plumbline{ display:none; }
}

@media (max-width: 780px){
  /* Tighter vertical rhythm — desktop 7rem is too airy on a phone */
  .services,
  .work,
  .testimonials,
  .cta{ padding: 4.5rem 1.5rem; }
  .area{ padding: 4.5rem 1.5rem; }
  .trust__list{ padding: 2.5rem 1.5rem; gap: 1.75rem 2rem; }
  .section__head{ margin-bottom: 2.5rem; }

  /* Hero: pull the eyebrow in and give the headline room */
  .hero__content{ padding: calc(var(--nav-h) + 2rem) 1.5rem 5.5rem; }
  .eyebrow{ letter-spacing: 0.1em; font-size: 0.68rem; }
  .hero__sub{ font-size: 1.02rem; margin-bottom: 1.9rem; }

  /* Full-width hero buttons = bigger, thumb-friendly tap targets */
  .hero__cta{ flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__cta .btn{ width: 100%; }

  /* Shorter before/after so two stacked shots don't tower */
  .before-after__item img{ aspect-ratio: 3/4; }
}
