:root {
  --ink: #161a17;
  --paper: #f3f0e8;
  --paper-deep: #e5ded0;
  --green: #153a30;
  --acid: #c8a96b;
  --gold: #c8a96b;
  --line: rgba(22, 26, 23, .18);
  --sans: "DM Sans", sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  content: "";
  inset: 0;
  opacity: .16;
  pointer-events: none;
  position: fixed;
  z-index: 9998;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
::selection { background: var(--acid); color: var(--ink); }

.skip-link {
  background: var(--acid);
  left: 1rem;
  padding: .75rem 1rem;
  position: fixed;
  top: -100px;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

.container { max-width: 1320px; }
.section-pad { padding: 9rem 0; }
.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .17em;
  margin: 0;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .93;
}
.body-large {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.5vw, 2.4rem);
  letter-spacing: -.025em;
  line-height: 1.15;
}

.navbar {
  border-bottom: 1px solid transparent;
  padding: 1.25rem 0;
  transition: background .3s, border-color .3s, padding .3s;
}
.navbar.scrolled {
  backdrop-filter: blur(16px);
  background: rgba(242, 239, 230, .9);
  border-color: var(--line);
  padding: .7rem 0;
}
.navbar-brand { align-items: center; display: flex; gap: .7rem; }
.brand-mark {
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  font-size: .72rem;
  font-weight: 600;
  height: 48px;
  line-height: .8;
  place-items: center;
  text-align: center;
  transition: height .3s, width .3s, font-size .3s;
  width: 48px;
}
.brand-label { font-size: .68rem; font-weight: 600; line-height: 1.05; transition: font-size .3s; }
.navbar:not(.scrolled) .brand-mark {
  font-size: .88rem;
  height: 64px;
  width: 64px;
}
.navbar:not(.scrolled) .brand-label { font-size: .82rem; }
.nav-link { font-size: .78rem; font-weight: 500; letter-spacing: .035em; }
.nav-link span { color: var(--gold); font-size: .58rem; margin-right: .35rem; vertical-align: .1rem; }
.nav-link:hover { opacity: .55; }
.btn {
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  padding: .9rem 1.35rem;
}
.btn-dark { background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 30px rgba(22,26,23,.12); }
.btn-dark:hover { background: var(--green); border-color: var(--green); transform: translateY(-1px); }
.navbar-toggler {
  border: 0;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: .6rem 0 .6rem .8rem;
}
.navbar-toggler span { background: var(--ink); display: block; height: 1px; width: 28px; }

.hero {
  background: var(--paper);
  min-height: 720px;
  overflow: hidden;
  position: relative;
}
.eyebrow {
  align-items: center;
  display: flex;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  margin-bottom: 2.2rem;
  text-transform: uppercase;
}
.eyebrow::before { background: var(--gold); content: ""; height: 1px; margin-right: .8rem; width: 42px; }
.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item { height: max(720px, 100vh); }
.hero .carousel-item { background: var(--paper); position: relative; }
.hero-slide-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  position: absolute;
  width: 100%;
}
.hero-slide-shade {
  background: linear-gradient(90deg, rgba(243,240,232,.98) 0%, rgba(243,240,232,.92) 35%, rgba(243,240,232,.2) 63%, transparent 100%);
  inset: 0;
  position: absolute;
}
.hero-slide-content {
  align-items: center;
  display: flex;
  height: 100%;
  position: relative;
  z-index: 2;
}
.hero-slide-copy { max-width: 650px; padding-top: 5rem; }
.hero-slide-copy h1,
.hero-slide-copy h2 {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 7.8vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -.06em;
  line-height: .78;
  margin: 2rem 0 2.5rem;
}
.hero-slide-copy h1 em,
.hero-slide-copy h2 em { color: var(--green); font-weight: 400; }
.hero-slide-copy > p:not(.eyebrow) { font-size: 1.05rem; max-width: 510px; }
.hero-cta {
  border-bottom: 1px solid var(--ink);
  display: inline-flex;
  font-size: .7rem;
  font-weight: 600;
  gap: 2.5rem;
  letter-spacing: .12em;
  margin-top: 1.5rem;
  padding-bottom: .65rem;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-cta span { color: var(--gold); font-size: 1rem; }
.hero-cta:hover { border-color: var(--gold); }
.hero-controls {
  align-items: center;
  bottom: 2.2rem;
  display: flex;
  justify-content: space-between;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 5;
}
.hero .carousel-indicators {
  gap: 1.2rem;
  justify-content: flex-start;
  margin: 0;
  position: static;
}
.hero .carousel-indicators button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22,26,23,.3);
  color: var(--ink);
  height: auto;
  margin: 0;
  opacity: .55;
  padding: 0 0 .4rem;
  text-indent: 0;
  width: 36px;
}
.hero .carousel-indicators button.active { border-color: var(--gold); opacity: 1; }
.hero .carousel-indicators span { font-size: .62rem; letter-spacing: .1em; }
.hero-arrows { display: flex; gap: .5rem; }
.hero-arrows button {
  background: rgba(243,240,232,.82);
  border: 1px solid rgba(22,26,23,.4);
  border-radius: 50%;
  height: 44px;
  transition: background .25s, color .25s;
  width: 44px;
}
.hero-arrows button:hover { background: var(--ink); color: #fff; }
.carousel-item.active .hero-slide-copy > * { animation: heroIn .9s both; }
.carousel-item.active .hero-slide-copy > :nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-slide-copy > :nth-child(3) { animation-delay: .22s; }
.carousel-item.active .hero-slide-copy > :nth-child(4) { animation-delay: .3s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.editorial-ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 1.05rem 0;
  white-space: nowrap;
}
.editorial-ticker div { animation: ticker 28s linear infinite; display: inline-flex; min-width: max-content; }
.editorial-ticker span { font-family: var(--serif); font-size: 1.2rem; font-style: italic; }
.editorial-ticker i { color: var(--gold); font-size: .55rem; font-style: normal; margin: .45rem 2rem 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

.intro-section { border-top: 1px solid var(--line); position: relative; }
.intro-section::before { background: var(--gold); content: ""; height: 1px; left: 0; position: absolute; top: 0; width: 12.5%; }
.stat { align-items: end; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 1.3rem 0 2.4rem; }
.stat strong { font-family: var(--serif); font-size: 3rem; font-weight: 400; line-height: 1; }
.stat strong span { color: var(--green); }
.stat p { font-size: .72rem; line-height: 1.25; margin: 0; text-align: right; text-transform: uppercase; }

.services-section { background: var(--green); color: rgba(255,255,255,.7); }
.service-list { border-top: 1px solid rgba(255,255,255,.25); }
.service-item {
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.25);
  display: grid;
  gap: 2rem;
  grid-template-columns: 60px 1fr minmax(260px, 420px);
  padding: 2.5rem 0;
  transition: color .3s, padding .3s;
}
.service-item { position: relative; }
.service-item::before { background: var(--gold); bottom: -1px; content: ""; height: 1px; left: 0; position: absolute; transition: width .5s; width: 0; }
.service-item:hover { color: #fff; padding-left: 1rem; }
.service-item:hover::before { width: 100%; }
.service-item span { color: var(--acid); font-family: var(--serif); font-size: 1.4rem; }
.service-item h3 { color: #fff; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.7rem); font-weight: 400; margin: 0; }
.service-item p { margin: 0; }

.portfolio-section { background: var(--paper); }
.portfolio-filters { border-bottom: 1px solid var(--line); display: flex; gap: 2.2rem; margin-bottom: 3rem; overflow-x: auto; }
.portfolio-filters button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: rgba(22,26,23,.48);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 0 0 1rem;
  text-transform: uppercase;
  white-space: nowrap;
}
.portfolio-filters button.active { border-color: var(--ink); color: var(--ink); }
.portfolio-grid {
  align-items: stretch;
  display: grid;
  gap: 1.5rem;
  grid-auto-rows: 260px;
  grid-template-columns: repeat(12, 1fr);
}
.project-wrap { height: 100%; min-height: 0; min-width: 0; overflow: hidden; transition: opacity .35s, transform .35s; }
.project-wrap:nth-child(1) { grid-column: 1 / 8; grid-row: span 2; }
.project-wrap:nth-child(2) { grid-column: 8 / 13; }
.project-wrap:nth-child(3) { grid-column: 8 / 13; }
.project-wrap:nth-child(4) { grid-column: 1 / 5; }
.project-wrap:nth-child(5) { grid-column: 5 / 9; }
.project-wrap:nth-child(6) { grid-column: 9 / 13; }
.project-wrap:nth-child(n+7) { grid-column: span 4; }
.portfolio-grid.is-filtered {
  grid-auto-rows: 440px;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.portfolio-grid.is-filtered .project-wrap { grid-column: auto; grid-row: auto; }
.project-wrap.is-hidden { display: none; }
.project-card {
  background: var(--paper-deep);
  border: 0;
  display: block;
  height: 100%;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
  width: 100%;
}
.project-wide,
.project-tall { height: 100%; }
.project-card img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); width: 100%; }
.project-card:hover img { transform: scale(1.035); }
.project-overlay {
  align-items: flex-end;
  background: linear-gradient(transparent 50%, rgba(0,0,0,.82));
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  inset: 0;
  padding: 2rem;
  position: absolute;
}
.project-overlay small { font-size: .65rem; grid-column: 1; letter-spacing: .14em; text-transform: uppercase; }
.project-overlay strong { font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 400; grid-column: 1; line-height: 1; }
.project-overlay i { font-size: 1.7rem; font-style: normal; grid-column: 2; grid-row: 1 / 3; }

.clients-section { border-top: 1px solid var(--line); padding: 6rem 0; }
.client-grid { align-items: center; display: grid; gap: 2rem; grid-template-columns: repeat(6, 1fr); margin-top: 3rem; }
.client-grid img { filter: grayscale(1); margin: auto; max-height: 82px; mix-blend-mode: multiply; object-fit: contain; opacity: .55; transition: opacity .3s; }
.client-grid img:hover { opacity: .9; }

.contact-section { background: var(--ink); color: rgba(255,255,255,.64); }
.contact-title { color: #fff; font-family: var(--serif); font-size: clamp(3.5rem, 6vw, 6.8rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; margin: 2.5rem 0; }
.contact-intro { font-size: 1.05rem; max-width: 470px; }
.contact-details { display: flex; flex-direction: column; margin-top: 4rem; }
.contact-details a { color: var(--gold); font-family: var(--serif); font-size: 2rem; text-decoration: none; width: fit-content; }
.contact-details address { font-size: .78rem; font-style: normal; letter-spacing: .04em; margin-top: 2rem; }
.contact-form label { color: rgba(255,255,255,.62); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; }
.contact-form .form-control {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.3);
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  padding: .7rem 0 1rem;
}
.contact-form .form-control:focus { border-color: var(--acid); }
.contact-form .form-control.is-invalid { border-color: #ff8274; }
.btn-accent { background: var(--acid); color: var(--ink); margin-top: 1rem; padding: 1rem 1.6rem; }
.btn-accent:hover { background: #fff; }
.btn-accent span { margin-left: .7rem; }
.form-status { font-size: .8rem; margin-top: 1rem; }

footer { background: var(--ink); border-top: 1px solid rgba(255,255,255,.15); color: #fff; padding: 5rem 0 2rem; }
.footer-brand { display: inline-block; font-size: 2.6rem; font-weight: 600; line-height: .75; text-decoration: none; }
.footer-brand span { color: var(--acid); font-size: .7rem; vertical-align: top; }
footer p { color: rgba(255,255,255,.55); font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; margin: 0; }
footer .text-md-end a { font-size: .75rem; letter-spacing: .1em; margin-left: 1.2rem; text-decoration: none; text-transform: uppercase; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.4); display: flex; font-size: .68rem; justify-content: space-between; letter-spacing: .1em; margin-top: 4rem; padding-top: 1.5rem; text-transform: uppercase; }

.modal-content { background: var(--paper); border: 0; border-radius: 0; }
.modal-close { background: var(--acid); border: 0; border-radius: 50%; font-size: 1.7rem; height: 48px; line-height: 1; position: absolute; right: 1rem; top: 1rem; width: 48px; z-index: 3; }
.modal-visual { background: var(--paper-deep); min-height: 620px; }
.modal-visual img { height: 100%; object-fit: contain; width: 100%; }
.modal-copy { align-self: center; padding: 4rem; }
.modal-copy h2 { font-family: var(--serif); font-size: 3rem; line-height: .95; margin: 2rem 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .section-pad { padding: 6.5rem 0; }
  .navbar-collapse {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    margin: .7rem -1rem -1rem;
    padding: 1.5rem;
  }
  .hero-slide-image { object-position: 62% center; }
  .hero-slide-shade { background: linear-gradient(90deg, rgba(243,240,232,.98), rgba(243,240,232,.82) 55%, rgba(243,240,232,.18)); }
  .service-item { grid-template-columns: 45px 1fr; }
  .service-item p { grid-column: 2; }
  .client-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767.98px) {
  .section-pad { padding: 5rem 0; }
  .hero .carousel,
  .hero .carousel-inner,
  .hero .carousel-item { height: 760px; }
  .hero-slide-image { object-position: 68% center; }
  .hero-slide-shade { background: linear-gradient(90deg, rgba(243,240,232,.98) 0%, rgba(243,240,232,.9) 68%, rgba(243,240,232,.35)); }
  .hero-slide-copy { max-width: 350px; padding: 5.5rem 0 2rem; }
  .hero-slide-copy h1,
  .hero-slide-copy h2 { font-size: clamp(4rem, 18vw, 5.3rem); line-height: .82; margin: 1.6rem 0 2rem; }
  .hero-slide-copy > p:not(.eyebrow) { font-size: .94rem; max-width: 310px; }
  .hero-controls { bottom: 1.4rem; }
  .section-title { font-size: 3.4rem; }
  .service-item { align-items: start; gap: 1rem; padding: 2rem 0; }
  .service-item h3 { font-size: 2.2rem; }
  .service-item:hover { padding-left: 0; }
  .portfolio-grid,
  .portfolio-grid.is-filtered {
    display: grid;
    gap: 1rem;
    grid-auto-rows: 440px;
    grid-template-columns: 1fr;
  }
  .portfolio-grid .project-wrap,
  .portfolio-grid.is-filtered .project-wrap { grid-column: auto; grid-row: auto; }
  .project-wide, .project-tall { height: 100%; }
  .project-overlay { padding: 1.4rem; }
  .client-grid { gap: 1rem; grid-template-columns: repeat(2, 1fr); }
  .client-grid img { max-height: 70px; }
  .contact-title { font-size: 3.8rem; }
  .editorial-ticker span { font-size: 1rem; }
  .modal-visual { min-height: 370px; }
  .modal-copy { padding: 2rem; }
  footer .text-md-end a { margin-left: 0; margin-right: 1rem; }
}

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