:root{
  --cream:#DDD5C9;
  --cream-deep:#D6CCBC;
  --ink:#000000;
  --taupe:#8B8275;
  --rust:#000000;
  --line:#D9D2C0;
}

*{box-sizing:border-box; margin:0; padding:0;}
h1,h2,h3,h4,h5,h6{ font-weight:400; }
html{scroll-behavior:smooth;}
body{
  background:var(--cream);
  color:var(--ink);
  font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size:16px;
  line-height:1.6;
  overflow-x:hidden;
  opacity:0;
  animation:fadeInPage .6s ease forwards;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
main{ flex:1 0 auto; }
@keyframes fadeInPage{ from{opacity:0;} to{opacity:1;} }

a{color:inherit; text-decoration:none;}
a:focus-visible, button:focus-visible{ outline:2px solid var(--rust); outline-offset:3px; }

.wrap{ max-width:1240px; margin:0 auto; padding:0 48px; }

/* ---------- header ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:28px 0;
  transition:background .4s ease, padding .4s ease, box-shadow .4s ease;
}
header.scrolled{
  background:rgba(221,213,201,0.92);
  backdrop-filter:blur(8px);
  padding:18px 0;
  box-shadow:0 1px 0 var(--line);
}
header .wrap{ display:flex; align-items:center; justify-content:space-between; }
.logo{ font-weight:400; font-size:1.1rem; letter-spacing:-0.01em; display:block; }
.logo-img{ height:96px; width:auto; display:block; transition:height .4s ease; }
header.scrolled .logo-img{ height:64px; }
nav{ display:flex; gap:36px; }
nav a{
  font-size:0.82rem; letter-spacing:0.08em; text-transform:uppercase;
  position:relative; padding-bottom:4px; transition:color .3s ease;
}
nav a::after{
  content:''; position:absolute; left:0; bottom:0; width:0%; height:1px;
  background:var(--rust); transition:width .3s ease;
}
nav a:hover::after, nav a.current::after{ width:100%; }
nav a.current{ color:var(--rust); }
.menu-btn{ display:none; }

/* ---------- hero / page intro ---------- */
.hero{ padding-top:80px; padding-bottom:40px; position:relative; overflow:hidden; }
.hero-lower{ display:grid; grid-template-columns:1.4fr 1fr; gap:40px; align-items:start; position:relative; z-index:1; }
.tagline{ font-size:clamp(1.4rem, 2.6vw, 1.9rem); opacity:0; animation:rise 1.3s cubic-bezier(.2,.7,.3,1) forwards; animation-delay:.9s; }
@keyframes rise{ from{opacity:0; transform:translateY(18px);} to{opacity:1; transform:translateY(0);} }
.tagline em{ font-style:italic; font-weight:400; color:var(--rust); }
.hero-services a{
  display:flex; align-items:center; font-size:1.05rem; padding:8px 0; border-bottom:1px solid transparent;
  opacity:0; animation:rise 1.1s cubic-bezier(.2,.7,.3,1) forwards;
  transition:color .3s ease, border-color .3s ease, padding-left .3s ease;
}
.hero-services .arrow{
  display:inline-block;
  width:0;
  margin-right:0;
  opacity:0;
  overflow:hidden;
  transition:width .3s ease, margin-right .3s ease, opacity .3s ease;
}
.hero-services a:hover .arrow{ width:1em; margin-right:8px; opacity:1; }
.hero-services a:nth-child(1){ animation-delay:1.5s; }
.hero-services a:nth-child(2){ animation-delay:1.75s; }
.hero-services a:nth-child(3){ animation-delay:2s; }
.hero-services a:nth-child(4){ animation-delay:2.25s; }
.hero-services a:hover{ color:var(--rust); border-bottom-color:var(--line); padding-left:6px; }

/* ---------- page header (sub-pages) ---------- */
.page-head{ padding-top:160px; }
.page-head h1{ font-size:clamp(2.4rem, 5vw, 3.6rem); max-width:20ch; opacity:0; animation:rise .7s ease forwards; }

/* ---------- section shared ---------- */
section{ padding:120px 0; }
.section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  border-bottom:1px solid var(--line);
  padding-bottom:24px; margin-bottom:64px;
}
.section-head h2{ font-size:1.9rem; }
.section-head span{ font-size:0.8rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--taupe); }

/* ---------- intro statement ---------- */
#intro{ background:var(--cream); padding-top:240px; }
.intro-text{ font-weight:400; font-size:clamp(1.9rem, 4.2vw, 3.2rem); line-height:1.35; max-width:960px; color:var(--ink); opacity:0; animation:riseUp 1.3s cubic-bezier(.2,.7,.3,1) forwards; }
.intro-text + .intro-text{ margin-top:32px; animation-delay:.4s; }

/* ---------- process ---------- */
.process{ display:grid; grid-template-columns:repeat(3, 1fr); gap:48px; }
.process-step{ opacity:0; animation:riseUp .6s ease forwards; }
.process-step:nth-child(1){ animation-delay:.05s; }
.process-step:nth-child(2){ animation-delay:.15s; }
.process-step:nth-child(3){ animation-delay:.25s; }
.process-step .num{ font-style:italic; font-weight:400; font-size:1.1rem; color:var(--rust); display:block; margin-bottom:16px; }
.process-step h3{ font-size:1.3rem; font-weight:400; margin-bottom:12px; }
.process-step p{ color:var(--taupe); max-width:32ch; }

/* ---------- services ---------- */
.service-row{
  display:grid; grid-template-columns:1.2fr 2fr; gap:40px;
  padding:36px 0; border-bottom:1px solid var(--line);
  transition:opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.service-row.pre-animate{ opacity:0; transform:translateY(36px); }
.service-row.in-view{ opacity:1; transform:translateY(0); }
@keyframes riseUp{ from{opacity:0; transform:translateY(24px);} to{opacity:1; transform:translateY(0);} }
.service-row:first-of-type{ border-top:1px solid var(--line); }
.service-row h3{ font-size:1.5rem; font-weight:400; letter-spacing:-0.01em; transition:color .3s ease; }
.service-row:hover h3{ color:var(--rust); }
.service-row p{ color:var(--taupe); max-width:48ch; }
.tag{
  font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--taupe); margin-top:10px; display:inline-block;
}

/* ---------- case studies (mockup-style, image-led) ---------- */
#case-studies{ background:var(--cream); padding-top:20px; }
.case-block{
  margin-bottom:120px;
  transition:opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.case-block.pre-animate{ opacity:0; transform:translateY(36px); }
.case-block.in-view{ opacity:1; transform:translateY(0); }
.case-block:last-child{ margin-bottom:0; }
.case-image{
  aspect-ratio:16/11;
  border-radius:2px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg, #C9BFAC, #E4DCCB);
  margin-bottom:36px;
  cursor:default;
  transition:transform .5s ease, box-shadow .5s ease;
}
.case-image-tight{ margin-bottom:36px; }
.case-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top;
  display:block;
}
.case-image:not(:has(img))::before{
  content:'';
  position:absolute; inset:0;
  background-image:
    radial-gradient(circle at 25% 30%, rgba(0,0,0,0.18), transparent 55%),
    radial-gradient(circle at 80% 75%, rgba(0,0,0,0.12), transparent 50%);
  transition:opacity .5s ease;
}
.case-block:hover .case-image{ transform:scale(1.015); box-shadow:0 18px 40px rgba(0,0,0,0.12); }
.case-meta{ display:grid; grid-template-columns:1.3fr 1fr; gap:48px; align-items:start; }
.case-title{
  font-size:clamp(1.6rem, 3.8vw, 2.4rem);
  text-transform:uppercase;
  letter-spacing:-0.01em;
  line-height:1.1;
}
.case-stat-line{ font-size:1rem; color:var(--rust); margin-top:14px; font-style:italic; }
.case-desc{ color:var(--taupe); max-width:48ch; }
.case-desc .case-cat{
  display:block; font-size:0.78rem; letter-spacing:0.1em; text-transform:uppercase;
  color:var(--ink); margin-bottom:10px;
}

/* ---------- contact ---------- */
.contact{
  text-align:left;
  padding:220px 0 160px;
}
.contact-link{
  display:inline-block;
  font-size:clamp(2rem, 6vw, 3.8rem);
  line-height:1.25;
  letter-spacing:-0.01em;
  max-width:18ch;
  opacity:0;
  animation:riseUp .8s ease forwards;
}
.contact-link .underline-part{
  display:inline-block;
  border-bottom:3px solid var(--ink);
  padding-bottom:6px;
  transition:letter-spacing .3s ease, padding-bottom .3s ease;
}
.contact-link:hover .underline-part{ letter-spacing:0.01em; padding-bottom:12px; }
.contact-location{
  margin-top:32px;
  font-size:1rem;
  color:var(--taupe);
  opacity:0;
  animation:rise .7s ease forwards;
  animation-delay:.2s;
}

/* ---------- footer ---------- */
footer{
  border-top:1px solid var(--line);
  padding:32px 0 48px;
  font-size:0.82rem; color:var(--taupe);
}
footer a{ transition:color .3s ease; }
footer a:hover{ color:var(--ink); }
.footer-row{ display:flex; justify-content:space-between; width:100%; }
.footer-location{
  margin-top:14px;
  font-size:0.76rem;
  color:var(--taupe);
  opacity:0.75;
}

/* ---------- responsive ---------- */
@media (max-width:860px){
  .wrap{ padding:0 24px; }
  nav{
    position:fixed; top:0; right:0; height:100vh; width:78%;
    background:var(--cream);
    flex-direction:column; justify-content:center; align-items:flex-start;
    gap:28px; padding:0 36px;
    transform:translateX(100%);
    transition:transform .4s ease;
    box-shadow:-4px 0 24px rgba(0,0,0,0.08);
  }
  nav.open{ transform:translateX(0); }
  nav a{ font-size:1rem; }
  .menu-btn{
    display:block; background:none; border:none;
    font-size:0.82rem; letter-spacing:0.08em; text-transform:uppercase;
    cursor:pointer; color:var(--ink); z-index:200;
  }
  .hero{ padding-top:120px; }
  .hero-lower{ grid-template-columns:1fr; gap:32px; }
  section{ padding:80px 0; }
  .process{ grid-template-columns:1fr; gap:36px; }
  .service-row{ grid-template-columns:1fr; gap:12px; }
  .case-meta{ grid-template-columns:1fr; gap:16px; }
  .footer-row{ flex-direction:column; gap:8px; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
  html{ scroll-behavior:auto; }
  body{ opacity:1; }
}
