:root{
  --bg:#f7f3ec;
  --bg-alt:#f1ece4;
  --surface:#fffdf9;
  --text:#1b2440;
  --muted:#67728b;
  --line:#ddd3c5;
  --shadow:0 18px 50px rgba(20,28,45,.06);
  --radius:28px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}

.container{
  width:min(1200px, calc(100% - 48px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(247,243,236,.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-row{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.brand{
  font-size:28px;
  font-weight:800;
  letter-spacing:-0.04em;
}
.nav{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.nav a{
  font-size:15px;
  font-weight:600;
  color:#55607a;
}
.nav a:hover{color:var(--text)}

.section{padding:92px 0}
.alt{background:var(--bg-alt)}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:72px;
  align-items:center;
}
.hero-split{grid-template-columns:1.08fr .92fr}

.eyebrow{
  margin:0 0 16px;
  font-size:14px;
  font-weight:800;
  letter-spacing:.20em;
  text-transform:uppercase;
  color:#667392;
  line-height:1.5;
}
h1,h2,h3{
  margin:0;
  letter-spacing:-0.05em;
  color:var(--text);
}
h1{
  font-size:clamp(60px, 7vw, 88px);
  line-height:.96;
  margin-bottom:24px;
}
.section-title{
  font-size:clamp(34px, 4vw, 50px);
  line-height:1.03;
  max-width:11ch;
  margin-bottom:20px;
}
.projects-title,
.gallery-title{
  font-size:clamp(38px, 5vw, 58px);
  line-height:1.03;
  max-width:none;
}
.contact-title{
  font-size:clamp(32px, 3.6vw, 42px);
  line-height:1.05;
  margin-bottom:8px;
}
h3{
  font-size:20px;
  line-height:1.22;
  letter-spacing:-0.03em;
}

.content p{
  margin:0 0 20px;
  font-size:18px;
  line-height:1.68;
  color:var(--muted);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:28px;
}
.btn{
  min-height:52px;
  padding:0 22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  font-weight:700;
  border:1px solid transparent;
}
.btn-dark{
  background:var(--text);
  color:#fff;
}
.btn-light{
  background:transparent;
  border-color:var(--line);
  color:var(--text);
}

.hero-image-frame{
  background:#ece5d8;
  border:1px solid var(--line);
  border-radius:34px;
  padding:18px;
  box-shadow:var(--shadow);
}
.hero-image{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  border-radius:24px;
  background:#efe8db;
}

.card-visual{
  min-height:390px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:34px;
  box-shadow:var(--shadow);
  padding:28px;
  display:flex;
}
.centered-card{
  align-items:center;
  justify-content:center;
}
.card-copy{
  width:min(420px, 100%);
}
.center-copy{
  text-align:center;
  margin-inline:auto;
}
.card-label{
  margin:0 0 14px;
  font-size:13px;
  font-weight:800;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#667392;
}
.center-copy h3,
.center-copy p{
  text-align:center;
}
.center-copy p{
  margin:0;
  font-size:17px;
  line-height:1.65;
  color:var(--muted);
}

.simple-list{
  margin:18px 0 0;
  padding-left:20px;
  color:var(--muted);
  font-size:18px;
  line-height:1.9;
}

.practice-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
  margin-top:32px;
}
.practice-item{
  border-top:1px solid var(--line);
  padding-top:18px;
  min-height:180px;
}
.practice-item h3{
  margin-bottom:10px;
  font-size:17px;
}
.practice-item p{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:var(--muted);
}

.section-head{margin-bottom:34px}
.section-head.center{text-align:center}

.project-logo-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:20px;
}
.project-logo-tile{
  min-height:168px;
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.56);
  box-shadow:var(--shadow);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.project-logo-img{
  width:100%;
  max-height:110px;
  object-fit:cover;
  border-radius:14px;
}
.project-logo-img.contain{
  object-fit:contain;
  background:#fff;
  padding:8px;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.gallery-item{
  margin:0;
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:#ece4d6;
  min-height:260px;
}
.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.gallery-item.wide{
  grid-column:span 2;
  min-height:320px;
}

.contact-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}
.contact-box p{max-width:56ch}
.contact-actions{
  display:flex;
  align-items:center;
}

.reverse-on-desktop .content{order:2}
.reverse-on-desktop .visual{order:1}

@media (max-width:1100px){
  .split,
  .hero-split{
    grid-template-columns:1fr;
    gap:40px;
  }

  .reverse-on-desktop .content,
  .reverse-on-desktop .visual{
    order:initial;
  }

  .practice-grid{
    grid-template-columns:1fr;
  }

  .project-logo-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .gallery-grid{
    grid-template-columns:1fr 1fr;
  }

  .gallery-item.wide{
    grid-column:span 2;
  }

  .contact-box{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:760px){
  .container{
    width:min(100% - 28px, 1200px);
  }

  .site-header{
    position:static;
  }

  .header-row{
    min-height:auto;
    padding:18px 0;
    flex-direction:column;
    align-items:flex-start;
  }

  .brand{
    font-size:24px;
  }

  .nav{
    gap:12px 18px;
    justify-content:flex-start;
  }

  .nav a{
    font-size:14px;
  }

  .section{
    padding:64px 0;
  }

  h1{
    font-size:48px;
  }

  .section-title{
    font-size:34px;
    max-width:none;
  }

  .projects-title,
  .gallery-title{
    font-size:38px;
  }

  .content p{
    font-size:17px;
    line-height:1.72;
    text-align:left;
  }

  .eyebrow{
    font-size:12px;
    line-height:1.6;
    letter-spacing:.16em;
  }

  .hero-image-frame{
    padding:12px;
  }

  .card-visual{
    min-height:280px;
    padding:20px;
  }

  .simple-list{
    font-size:17px;
  }

  .project-logo-grid{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }

  .project-logo-tile{
    min-height:128px;
    padding:12px;
  }

  .project-logo-img{
    max-height:88px;
  }

  .gallery-grid{
    grid-template-columns:1fr;
  }

  .gallery-item,
  .gallery-item.wide{
    grid-column:span 1;
    min-height:240px;
  }
}

/* ===== premium brand pass ===== */

.section{
  padding:84px 0 !important;
}

.split{
  gap:56px !important;
}

.section-title{
  font-size:clamp(32px, 3.5vw, 46px) !important;
  max-width:12ch !important;
  line-height:1.05 !important;
}

.projects-title,
.gallery-title{
  font-size:clamp(36px, 4.4vw, 56px) !important;
  line-height:1.02 !important;
}

.hero-image-frame,
.card-visual,
.project-brand-card,
.gallery-item{
  box-shadow:0 20px 60px rgba(18, 26, 44, 0.06) !important;
}

.card-visual{
  background:linear-gradient(180deg, rgba(255,255,255,.70), rgba(255,255,255,.46)) !important;
}

.project-showcase{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:22px;
  align-items:stretch;
}

.project-brand-card{
  border:1px solid var(--line);
  border-radius:24px;
  background:rgba(255,255,255,.60);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  min-height:245px;
}

.project-brand-media{
  min-height:138px;
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,243,236,.86));
  border-bottom:1px solid var(--line);
}

.project-brand-media img{
  width:100%;
  max-height:92px;
  object-fit:cover;
  border-radius:12px;
}

.project-brand-media img.contain{
  object-fit:contain;
  background:#fff;
  padding:8px;
}

.project-brand-meta{
  padding:16px 16px 18px;
  text-align:center;
}

.project-brand-meta h3{
  font-size:17px;
  line-height:1.25;
  margin:0 0 8px;
  letter-spacing:-0.03em;
}

.project-brand-meta p{
  margin:0;
  font-size:14px;
  line-height:1.5;
  color:var(--muted);
}

.hero .content p{
  max-width:62ch;
}

.practice-item{
  min-height:auto !important;
}

.practice-item p{
  font-size:16px !important;
}

.center-copy{
  max-width:28ch !important;
}

@media (max-width:1100px){
  .project-showcase{
    grid-template-columns:repeat(3, 1fr);
  }
}

@media (max-width:760px){
  .section{
    padding:64px 0 !important;
  }

  .projects-title,
  .gallery-title{
    font-size:38px !important;
  }

  .project-showcase{
    grid-template-columns:1fr 1fr;
    gap:14px;
  }

  .project-brand-card{
    min-height:200px;
  }

  .project-brand-media{
    min-height:108px;
    padding:12px;
  }

  .project-brand-media img{
    max-height:72px;
  }

  .project-brand-meta{
    padding:12px;
  }

  .project-brand-meta h3{
    font-size:15px;
  }

  .project-brand-meta p{
    font-size:12px;
  }
}
