:root {
  --ink: #16110d;
  --ink-soft: #3a3129;
  --paper: #f6f1ea;
  --paper-2: #efe6d8;
  --cream: #fbf7f1;
  --oak: #c9a06a;
  --walnut: #7a4e2a;
  --logo-t: #2d392f;
  --logo-f: #c18852;
  --line: rgba(22, 17, 13, 0.12);
  --muted: #6f655c;
  --white: #fffdf9;
  --radius: 18px;
  --max: 1180px;
  --header: 80px;
  --gutter: clamp(16px, 4vw, 24px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

img,
svg,
iframe,
video {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page {
  min-height: 100vh;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--oak);
}

h1,
h2,
h3 {
  font-family: Outfit, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(1.55rem, 5vw, 3.4rem);
}

h3 {
  font-size: 1.45rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.muted {
  color: var(--muted);
}

.mt-text {
  margin-top: 10px;
}

.mt {
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  transition: 0.2s ease;
  cursor: pointer;
  max-width: 100%;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}

.btn-primary:hover {
  background: #2a2118;
}

.btn-ghost {
  border-color: rgba(255, 253, 249, 0.35);
  color: var(--cream);
}

.btn-ghost:hover {
  background: rgba(255, 253, 249, 0.1);
}

.btn-line {
  border-color: var(--line);
  background: transparent;
}

.btn-line:hover {
  border-color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-grid,
.hero-copy,
.split,
.grid-3,
.grid-4,
.gallery,
.works-grid,
.contact-grid {
  display: grid;
}

.header-inner {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  min-height: var(--header);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  min-width: 0;
}

.site-header .logo {
  font-size: clamp(1.2rem, 4vw, 2.125rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.logo img {
  width: auto;
  height: 58px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.site-footer .logo img {
  height: 72px;
  background: var(--cream);
  border-radius: 10px;
  padding: 6px 8px;
  box-sizing: content-box;
}

.logo-word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: none;
}

.logo-trio {
  color: var(--logo-t);
}

.logo-forma {
  color: var(--logo-f);
}

.site-footer .logo-trio {
  color: color-mix(in srgb, var(--logo-t) 45%, var(--cream));
}

.logo-tag {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer .logo-tag {
  color: rgba(251, 247, 241, 0.55);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.nav-cta {
  display: none;
}

.nav a {
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
}

.nav a.active,
.nav a:hover {
  color: var(--ink);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--oak);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  color: var(--cream);
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 17, 13, 0.2), rgba(22, 17, 13, 0.72) 70%),
    linear-gradient(90deg, rgba(22, 17, 13, 0.45), transparent 55%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2 * var(--gutter)));
  margin: 0 auto 72px;
  gap: 22px;
}

.hero-copy p {
  max-width: 36rem;
  color: rgba(251, 247, 241, 0.82);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--cream);
}

.stat {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat b {
  display: block;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--paper-2);
}

.section.page-section {
  padding-top: 48px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.split {
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.split.start {
  align-items: start;
  margin-top: 80px;
}

.frame {
  position: relative;
}

.frame img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: var(--radius);
}

.caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

.grid-3,
.grid-4 {
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery .work {
  min-height: 320px;
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  min-height: 220px;
}

.card .index {
  font-family: Outfit, system-ui, sans-serif;
  color: var(--oak);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.process .card {
  min-height: 240px;
}

.works-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}

.work {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--cream);
}

.works-grid .work:first-child {
  grid-row: 1 / span 2;
}

.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.work:hover img {
  transform: scale(1.05);
}

.work figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(transparent, rgba(22, 17, 13, 0.8));
}

.work small {
  display: block;
  opacity: 0.8;
}

.cta {
  margin: 0 var(--gutter) 96px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--cream);
}

.cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(22, 17, 13, 0.62);
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 48px 24px;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.page-hero {
  padding: 72px 0 36px;
}

.page-hero h1 {
  max-width: 16ch;
}

.legal-page .page-hero h1 {
  max-width: 22ch;
}

.legal {
  max-width: 720px;
}

.legal h2 {
  margin-top: 36px;
  font-size: 1.2rem;
}

.legal p,
.legal ul {
  margin-top: 14px;
  color: var(--ink-soft);
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal .facts {
  margin-top: 36px;
}

.faq {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::after {
  content: "+";
  color: var(--oak);
  font-weight: 400;
  flex-shrink: 0;
}

.faq details[open] summary::after {
  content: "–";
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 10px;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 72px 0 28px;
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 253, 249, 0.12);
}

.site-footer a {
  color: rgba(251, 247, 241, 0.78);
}

.site-footer a:hover {
  color: var(--oak);
}

.legal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  color: rgba(251, 247, 241, 0.62);
  font-size: 0.86rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.fact dt {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 8px;
}

.fact dd {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.foot-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: rgba(251, 247, 241, 0.55);
  font-size: 0.88rem;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.form {
  display: grid;
  gap: 14px;
  background: var(--cream);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.form input,
.form textarea,
.form select {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  font-size: 16px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.map {
  width: 100%;
  max-width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.35) contrast(1.05);
  margin-top: 48px;
}

.note {
  font-size: 0.88rem;
  color: var(--muted);
}

.success {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: #e8f0e4;
  color: #2d4a28;
}

.success.show {
  display: block;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.list li {
  list-style: none;
  padding-left: 18px;
  position: relative;
}

.list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oak);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.oak {
  color: var(--oak);
}

.inner-space {
  margin: 18px 0 24px;
}

.cards-top {
  margin-top: 72px;
}

@media (max-width: 1100px) {
  .grid-4,
  .gallery,
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .nav {
    gap: 18px;
  }
}

@media (max-width: 1024px) {
  .hero-loc {
    display: none;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav,
  .header-inner > .btn {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    width: calc(100% + 2 * var(--gutter));
    background: var(--paper);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line);
    gap: 4px;
    max-height: calc(100svh - var(--header));
    overflow: auto;
    z-index: 50;
  }

  .nav.open a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav.open a.active::after {
    display: none;
  }

  .nav.open .nav-cta {
    display: inline-flex;
    margin-top: 12px;
    align-self: flex-start;
  }

  .stats,
  .split,
  .grid-3,
  .grid-4,
  .gallery,
  .facts,
  .works-grid,
  .footer-grid,
  .contact-grid,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    align-items: start;
    gap: 20px;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .works-grid .work:first-child,
  .works-grid {
    grid-row: auto;
    height: auto;
  }

  .works-grid {
    grid-template-rows: none;
  }

  .work {
    min-height: 240px;
  }

  .frame img {
    height: min(52vw, 360px);
  }

  .section {
    padding: 64px 0;
  }

  .split.start {
    margin-top: 40px;
  }

  .hero {
    min-height: min(100svh - var(--header), 640px);
  }

  .hero-copy {
    margin: 0 auto 40px;
    padding-top: 48px;
    gap: 16px;
  }

  .hero-copy p {
    font-size: 1.05rem;
  }

  .page-hero {
    padding: 40px 0 24px;
  }

  .page-hero h1 {
    max-width: none;
  }

  .cta {
    min-height: 280px;
    margin-bottom: 64px;
    border-radius: 22px;
  }

  .cta-inner {
    padding: 36px 20px;
  }

  .cards-top {
    margin-top: 40px;
  }

  .facts {
    margin-top: 36px;
  }

  .map {
    min-height: 240px;
    margin-top: 32px;
  }

  .form {
    padding: 20px;
  }

  .card,
  .process .card {
    min-height: 0;
  }

  .site-footer {
    padding: 48px 0 24px;
  }

  .foot-copy {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .section-head .btn {
    width: 100%;
  }

  .hero {
    min-height: 32rem;
  }

  .frame img {
    height: 220px;
  }

  .work {
    min-height: 200px;
  }
}
