:root {
  --bg: #181311;
  --bg-soft: #211916;
  --bg-panel: #261d1a;
  --bg-panel-2: #2c211d;
  --paper: #efe3d2;
  --text: #eadfce;
  --muted: #bda996;
  --line: #4f3e35;
  --line-strong: #705746;
  --accent: #c4a06c;
  --accent-deep: #a98353;
  --shadow: 0 20px 40px rgba(10, 7, 6, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "PT Sans", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(196, 160, 108, 0.08), transparent 18rem),
    radial-gradient(circle at left 60%, rgba(122, 91, 62, 0.08), transparent 22rem),
    linear-gradient(180deg, #1d1613 0%, #16110f 52%, #120e0d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("./assets/background.svg");
  background-size: min(1900px, 154vw) auto;
  background-position: center 18px;
  background-repeat: repeat-y;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.58) 72%, rgba(0, 0, 0, 0.22) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-shell {
  position: relative;
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(196, 160, 108, 0.12);
  background: #191411;
}

.header-row,
.footer-row {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: auto;
  height: 30px;
  max-width: 118px;
  object-fit: contain;
}

.brand-mark {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(196, 160, 108, 0.08);
}

.brand-copy {
  display: grid;
  gap: 1px;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a:not(.button) {
  color: var(--muted);
  font-size: 1rem;
}

.site-nav a:not(.button):hover,
.footer-nav a:hover {
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: #201815;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto 5px;
  background: var(--paper);
}

.menu-toggle span:last-child {
  margin-bottom: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid #8b6c4c;
  background: linear-gradient(180deg, #d4b180 0%, #bc925d 100%);
  color: #201712;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 245, 227, 0.24);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--ghost {
  background: #261d1a;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--paper);
}

.text-link {
  display: inline-block;
  margin: 16px 0 22px;
  color: var(--accent);
  font-weight: 700;
}

.text-link:hover {
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero,
.portfolio-hero {
  padding: 86px 0 40px;
}

.hero-layout,
.portfolio-hero__layout,
.split-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-copy h1,
.portfolio-hero h1,
.section-head h2,
.about-quote h2,
.contact-panel h2,
.manifesto-card h2 {
  margin: 0;
  font-family: "Forum", serif;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #f0e2d1;
}

.hero-copy h1 {
  max-width: 9.5ch;
  font-size: clamp(3.4rem, 5.4vw, 5.9rem);
}

.portfolio-hero h1,
.section-head h2,
.about-quote h2,
.contact-panel h2,
.manifesto-card h2 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 4vw, 4.6rem);
}

.hero-text,
.portfolio-hero p,
.section-head p,
.manifesto-card p,
.services-card p,
.portfolio-card p,
.about-quote p,
.stack-card strong,
.process-card p,
.contact-panel p,
.contact-form span,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 50ch;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 24px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-notes span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #221916;
  color: var(--muted);
  font-size: 0.85rem;
  border-radius: 4px;
}

.hero-scene {
  position: relative;
}

.hero-board {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(196, 160, 108, 0.14);
  background:
    radial-gradient(circle at top right, rgba(196, 160, 108, 0.09), transparent 12rem),
    linear-gradient(180deg, #241b18 0%, #1e1714 100%);
  padding: 36px;
}

.hero-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(196, 160, 108, 0.14);
  background: #1b1512;
  box-shadow: var(--shadow);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame--main {
  top: 56px;
  right: 36px;
  width: 60%;
  aspect-ratio: 0.88;
}

.hero-frame--left {
  left: 28px;
  bottom: 34px;
  width: 34%;
  aspect-ratio: 0.82;
}

.hero-frame--right {
  right: 22px;
  bottom: 18px;
  width: 28%;
  aspect-ratio: 0.82;
}

.manifesto {
  padding: 0 0 54px;
}

.manifesto-grid,
.services-grid,
.portfolio-grid,
.process-grid,
.contact-cards,
.archive-grid {
  display: grid;
  gap: 22px;
}

.manifesto-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manifesto-card,
.services-card,
.portfolio-card,
.stack-card,
.process-card,
.contact-panel,
.contact-form,
.contact-cards article,
.archive-group {
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.manifesto-card,
.stack-card,
.process-card,
.contact-panel,
.contact-form,
.archive-group {
  padding: 28px;
}

.manifesto-card__label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.manifesto-card h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head--balanced h2 {
  max-width: 14ch;
}

.section-head--balanced p {
  max-width: 62ch;
}

.section-head--row {
  max-width: none;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}

.services-grid,
.portfolio-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.services-card,
.portfolio-card {
  display: block;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.services-card--link:hover,
.portfolio-card--link:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--bg-panel-2);
}

.services-card__media,
.portfolio-card__cover,
.archive-tile {
  background: #140f0d;
}

.services-card__media,
.portfolio-card__cover {
  aspect-ratio: 0.96;
  border-bottom: 1px solid var(--line);
}

.services-card__media img,
.portfolio-card__cover img,
.archive-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-card__body,
.portfolio-card__body {
  padding: 18px 18px 22px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.services-card h3,
.portfolio-card h3,
.process-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

.card-task {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(196, 160, 108, 0.14);
  color: #d6c1ab;
  font-size: 0.95rem;
  line-height: 1.6;
}

.section--portfolio {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding-top: 72px;
}

.split-layout {
  align-items: start;
  gap: 42px;
}

.section--split {
  padding-top: 72px;
  padding-bottom: 64px;
}

.about-stack {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

.stack-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack-card strong {
  display: block;
  font-size: 1.04rem;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.section--contact {
  padding-top: 64px;
}

.contact-grid {
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(196, 160, 108, 0.06), transparent 16rem),
    linear-gradient(180deg, #231916 0%, #1f1714 100%);
  padding: 24px;
}

.contact-panel,
.contact-form {
  padding: 24px;
  border: 0;
  background: transparent;
}

.contact-panel {
  padding-right: 36px;
}

.contact-panel h2 {
  max-width: 8.5ch;
  margin-bottom: 18px;
}

.contact-form {
  padding-left: 36px;
  border-left: 1px solid rgba(196, 160, 108, 0.14);
}

.contact-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  gap: 14px;
}

.contact-cards article {
  padding: 16px;
  background: rgba(32, 24, 21, 0.72);
  min-height: 112px;
}

.contact-cards span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-cards strong {
  font-size: 1.05rem;
  word-break: normal;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .button {
  width: 100%;
  margin-top: 6px;
}

.contact-form label {
  display: grid;
  gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #1b1512;
  color: var(--text);
  border-radius: 4px;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #d8bf9a;
}

.site-footer {
  padding: 28px 0 20px;
  border-top: 1px solid rgba(196, 160, 108, 0.12);
  background: #15100e;
}

.brand--footer {
  margin-bottom: 10px;
}

.brand--footer .brand-logo {
  height: 32px;
  max-width: 126px;
}

.footer-nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
}

.portfolio-hero__layout {
  align-items: end;
}

.portfolio-hero p {
  max-width: 54ch;
}

.portfolio-toolbar {
  padding: 8px 0 0;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: #261d1a;
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
}

.filter-button.is-active {
  background: #3a2b21;
  border-color: var(--accent-deep);
  color: #f0e2d1;
}

.section--archive {
  padding-top: 36px;
}

.archive-group + .archive-group {
  margin-top: 30px;
}

.archive-group__head {
  max-width: 720px;
  margin-bottom: 22px;
}

.archive-group__meta {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-group h2 {
  margin: 0 0 10px;
  font-family: "Forum", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
}

.archive-group p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.archive-group__lead {
  margin-bottom: 20px;
}

.archive-highlights {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.archive-highlights li {
  display: grid;
  gap: 6px;
  padding-left: 16px;
  border-left: 1px solid rgba(196, 160, 108, 0.2);
}

.archive-highlights strong {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.archive-highlights span {
  color: var(--text);
  line-height: 1.7;
}

.archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section--portfolio .section-head--row {
  margin-bottom: 24px;
}

.section--portfolio .portfolio-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.section--portfolio .portfolio-card__cover {
  aspect-ratio: 1.08;
}

.section--portfolio .portfolio-card__body {
  padding: 22px 22px 24px;
}

.section--portfolio .portfolio-card h3 {
  font-size: 1.6rem;
}

.archive-tile {
  aspect-ratio: 0.94;
  overflow: hidden;
  border: 1px solid rgba(196, 160, 108, 0.14);
}

.service-detail {
  padding: 80px 0 44px;
}

.service-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 52px;
  align-items: end;
}

.service-detail h1,
.service-detail h2 {
  margin: 0;
  color: #f0e2d1;
  font-family: "Forum", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.service-detail h1 {
  max-width: 12ch;
  font-size: clamp(3.4rem, 6vw, 6.4rem);
}

.service-detail h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.service-showcase h2,
.service-faq-section h2 {
  margin: 0;
  color: #f0e2d1;
  font-family: "Forum", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.service-detail p {
  color: var(--muted);
  line-height: 1.75;
}

.service-detail__lead {
  max-width: 58ch;
  font-size: 1.08rem;
}

.service-detail__aside,
.service-benefit,
.service-faq article {
  border: 1px solid var(--line);
  background: var(--bg-panel);
}

.service-detail__aside {
  padding: 26px;
}

.service-detail__aside strong {
  display: block;
  color: var(--paper);
  font-size: 1.18rem;
  line-height: 1.5;
}

.service-benefits,
.service-gallery,
.service-faq {
  display: grid;
  gap: 18px;
}

.service-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 54px;
}

.service-benefit {
  padding: 24px;
}

.service-benefit h2 {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "PT Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.service-benefit p {
  margin: 0;
}

.service-showcase,
.service-faq-section,
.related-services {
  padding: 62px 0;
}

.service-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 26px;
}

.service-gallery__item {
  aspect-ratio: 0.94;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(196, 160, 108, 0.18);
  background: #140f0d;
}

.service-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-faq {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.service-faq article {
  padding: 24px;
}

.service-faq h3 {
  margin: 0 0 10px;
  color: var(--paper);
  font-size: 1.1rem;
}

.service-faq p {
  margin: 0;
}

.related-services__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.related-services h2 {
  margin: 0;
  color: #f0e2d1;
  font-family: "Forum", serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.related-services__links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: #221916;
  color: var(--muted);
  font-size: 0.9rem;
}

.related-services__links a:hover {
  border-color: var(--line-strong);
  color: var(--paper);
}

@media (max-width: 1200px) {
  .services-grid,
  .portfolio-grid,
  .archive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    background: #201815;
  }

  .menu-open .site-nav {
    display: flex;
  }

  body[data-page="service"] .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-page="service"] .site-nav a:not(.button) {
    font-size: 0.9rem;
  }

  .hero-layout,
  .portfolio-hero__layout,
  .split-layout,
  .contact-grid,
  .service-detail__hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-grid {
    padding: 18px;
  }

  .contact-panel,
  .contact-form {
    padding: 18px;
  }

  .contact-form {
    padding-left: 18px;
    border-left: 0;
    border-top: 1px solid rgba(196, 160, 108, 0.14);
  }

  .hero-board {
    min-height: 520px;
  }

  .hero-frame--main {
    width: 58%;
  }

  .hero-frame--left {
    width: 32%;
  }

  .hero-frame--right {
    width: 26%;
  }

  .section-head--row,
  .footer-row {
    flex-direction: column;
    align-items: start;
  }

  .manifesto-grid,
  .services-grid,
  .contact-cards,
  .archive-grid,
  .service-gallery,
  .service-faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section--portfolio .portfolio-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero,
  .portfolio-hero,
  .section {
    padding: 72px 0;
  }

  .container {
    width: min(100% - 28px, 1220px);
  }

  .brand-logo {
    height: 26px;
    max-width: 104px;
  }

  body[data-page="service"] .site-nav {
    gap: 10px;
  }

  body[data-page="service"] .site-nav a:not(.button) {
    font-size: 0.76rem;
  }

  .hero-copy h1,
  .portfolio-hero h1,
  .section-head h2,
  .about-quote h2,
  .contact-panel h2,
  .manifesto-card h2 {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .hero-board {
    min-height: 420px;
    padding: 20px;
  }

  .hero-frame--main {
    top: 28px;
    right: 18px;
    width: 62%;
  }

  .hero-frame--left {
    left: 16px;
    bottom: 26px;
    width: 36%;
  }

  .hero-frame--right {
    right: 12px;
    bottom: 12px;
    width: 30%;
  }

  .manifesto-grid,
  .services-grid,
  .process-grid,
  .contact-cards,
  .archive-grid,
  .service-gallery,
  .service-faq,
  .service-benefits {
    grid-template-columns: 1fr;
  }

  .section--portfolio .portfolio-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
