:root {
  --bg: #151716;
  --bg-soft: #191c1a;
  --surface: #202220;
  --surface-raised: #272925;
  --text: #f4f2ed;
  --muted: #aaa79f;
  --muted-light: #d2cfc7;
  --accent: #c7a665;
  --accent-bright: #e0bf79;
  --border: rgba(235, 224, 203, 0.22);
  --border-strong: rgba(199, 166, 101, 0.64);
  --container: min(1180px, calc(100vw - 48px));
  --header-height: 82px;
  --section-space: clamp(88px, 10vw, 144px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #121311;
}

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

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

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

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(3.25rem, 6.4vw, 6rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.2rem);
}

h3 {
  font-size: 1.65rem;
}

p {
  color: var(--muted-light);
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color 240ms ease,
    border-color 240ms ease,
    color 240ms ease,
    transform 240ms var(--ease);
}

.button:hover {
  border-color: var(--accent-bright);
  background: rgba(199, 166, 101, 0.08);
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.desktop-nav a:focus-visible,
.mobile-menu a:focus-visible,
.project-filters button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 4px;
}

.button-filled {
  border-color: var(--accent);
  background: var(--accent);
  color: #121311;
}

.button-filled:hover {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
}

.button-small {
  min-height: 40px;
  padding: 10px 17px;
  font-size: 0.7rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-bright);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 220ms var(--ease);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    backdrop-filter 280ms ease;
}

.site-header.is-scrolled,
.site-header.menu-visible {
  border-bottom-color: var(--border);
  background: rgba(21, 23, 22, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  height: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border-strong);
  color: var(--accent-bright);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  line-height: 1;
}

.brand-name {
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.6vw, 38px);
}

.site-header .desktop-nav > a {
  position: relative;
  color: var(--muted-light);
  font-size: 1rem;
  font-weight: 550;
  transition: color 180ms ease;
}

.site-header .desktop-nav > a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms var(--ease);
}

.site-header .desktop-nav > a:hover {
  color: var(--text);
}

.site-header .desktop-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.hero-visual {
  position: absolute;
  inset: 0 0 0 33%;
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 26%),
    linear-gradient(0deg, rgba(21, 23, 22, 0.56) 0%, transparent 28%);
  content: "";
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% center;
  filter: brightness(1.06) saturate(1.02);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 630px;
  align-items: center;
  padding-top: var(--header-height);
}

.hero-copy {
  width: min(780px, 70%);
  padding-block: 64px;
}

.hero-copy > p {
  max-width: 590px;
  margin-bottom: 38px;
  color: var(--muted-light);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-features {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  min-height: 90px;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}

.services {
  padding-top: 92px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 28px 22px 0;
  color: var(--muted-light);
  font-size: 0.82rem;
}

.feature + .feature {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.feature-number {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  align-items: end;
  gap: 80px;
  margin-bottom: 58px;
}

.section-heading p {
  margin-bottom: 4px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  min-width: 0;
  background: var(--surface);
}

.service-image {
  display: block;
  height: 360px;
  overflow: hidden;
  background: #181a18;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(1.06);
  transition:
    transform 800ms var(--ease),
    filter 500ms ease;
}

.service-card:nth-child(1) .service-image img {
  object-position: 64% center;
}

.service-card:nth-child(2) .service-image img {
  object-position: 54% center;
}

.service-card:hover .service-image img {
  filter: saturate(1) brightness(1.1);
  transform: scale(1.035);
}

.service-body {
  position: relative;
  min-height: 260px;
  padding: 32px;
}

.service-index {
  position: absolute;
  top: 34px;
  right: 32px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 0.85rem;
}

.service-body h3 {
  margin-bottom: 16px;
}

.service-body p {
  min-height: 60px;
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.projects {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}

.projects-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.project-filters button {
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.project-filters button:hover,
.project-filters button.active {
  border-bottom-color: var(--accent);
  color: var(--accent-bright);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: repeat(2, 285px);
  gap: 14px;
}

.project-grid.is-filtered {
  grid-template-columns: 1fr;
  grid-template-rows: 520px;
}

.project-grid.is-filtered .project-card {
  grid-column: 1;
  grid-row: 1;
}

.project-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #181a18;
  transition:
    opacity 300ms ease,
    transform 500ms var(--ease);
}

.project-card.is-hidden {
  display: none;
}

.project-card.project-main {
  grid-row: 1 / span 2;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) brightness(0.98);
  transition:
    transform 900ms var(--ease),
    filter 500ms ease;
}

.project-main img {
  object-position: 65% center;
}

.project-card:hover img {
  filter: saturate(1) brightness(1.06);
  transform: scale(1.025);
}

.project-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 4px;
  padding: 40px 24px 20px;
  background: linear-gradient(0deg, rgba(14, 15, 14, 0.9), transparent);
}

.project-card figcaption span {
  font-size: 1rem;
}

.project-card figcaption small {
  color: var(--muted);
  font-size: 0.74rem;
}

.about {
  padding-bottom: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.88fr) minmax(400px, 1.12fr);
  min-height: 680px;
  border: 1px solid var(--border);
}

.about-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 86px);
  background: var(--surface);
}

.about-copy h2 {
  margin-bottom: 32px;
  font-size: clamp(2.35rem, 4.2vw, 4rem);
}

.about-lead {
  color: var(--text);
  font-size: 1.16rem;
}

.about-copy p:not(.about-lead) {
  margin-bottom: 36px;
}

.about-image {
  min-height: 560px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.04);
}

.process-list {
  display: grid;
  margin: 58px 0 0;
  padding: 0;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  border-top: 1px solid var(--border);
}

.process-list li {
  position: relative;
  padding: 34px 28px 0 0;
}

.process-list li + li {
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.process-number {
  display: block;
  margin-bottom: 58px;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.process-number::before {
  position: absolute;
  top: -4px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--accent);
  background: var(--bg);
  content: "";
  transform: rotate(45deg);
}

.process-list li + li .process-number::before {
  left: 28px;
}

.process-list h3 {
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.process-list p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.contact {
  padding-top: 0;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(350px, 0.85fr);
  border: 1px solid var(--border);
}

.contact-copy {
  padding: clamp(40px, 6vw, 84px);
  background: var(--surface-raised);
}

.contact-copy > h2 {
  margin-bottom: 24px;
}

.contact-copy > p {
  max-width: 600px;
  margin-bottom: 42px;
}

.contact-form {
  max-width: 670px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px 18px;
}

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

.form-grid label > span {
  color: var(--muted-light);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.form-wide {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  outline: 0;
  background: transparent;
  font-size: 0.95rem;
  transition: border-color 180ms ease;
}

input,
select {
  height: 48px;
}

textarea {
  min-height: 92px;
  padding: 12px 0;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover,
input:focus,
select:focus,
textarea:focus {
  border-bottom-color: var(--accent);
}

input::placeholder,
textarea::placeholder {
  color: #8e8b83;
}

select {
  color-scheme: dark;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.form-footer p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.form-status {
  min-height: 26px;
  margin: 18px 0 0;
  color: var(--accent-bright);
  font-size: 0.84rem;
}

.contact-image {
  min-height: 680px;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% center;
  filter: brightness(1.04);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  min-height: 150px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.footer-main > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-main > .text-link {
  justify-self: end;
}

.footer-bottom {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 720ms var(--ease),
    transform 720ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  :root {
    --container: min(100% - 40px, 940px);
  }

  .desktop-nav {
    gap: 18px;
  }

  .header-inner {
    gap: 22px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    width: 72%;
  }

  .service-image {
    height: 300px;
  }

  .service-body {
    min-height: 280px;
    padding: 26px;
  }

  .service-index {
    top: 28px;
    right: 26px;
  }

  .about-grid,
  .contact-shell {
    grid-template-columns: 1fr 1fr;
  }

  .process-list {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 44px;
  }

  .process-list li:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }

  .process-list li:nth-child(4) .process-number::before {
    left: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-content: center;
    gap: 7px;
    border: 1px solid var(--border);
    background: rgba(21, 23, 22, 0.76);
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--text);
    transition: transform 240ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: fixed;
    z-index: 49;
    inset: var(--header-height) 0 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 23px;
    padding: 30px;
    background: rgba(21, 23, 22, 0.985);
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 240ms ease,
      transform 240ms var(--ease),
      visibility 240ms;
  }

  .mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu > a:not(.button) {
    font-size: 1.25rem;
  }

  .mobile-menu .button {
    margin-top: 15px;
  }

  .hero {
    min-height: 940px;
  }

  .hero-visual {
    inset: 360px 0 90px;
  }

  .hero-visual::after {
    background:
      linear-gradient(180deg, var(--bg) 0%, transparent 20%),
      linear-gradient(0deg, rgba(21, 23, 22, 0.72) 0%, transparent 25%);
  }

  .hero-inner {
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--header-height) + 90px);
  }

  .hero-copy {
    width: 100%;
    padding: 0;
  }

  h1 {
    max-width: 700px;
    font-size: clamp(3rem, 11vw, 5rem);
  }

  .hero-copy > p {
    max-width: 610px;
  }

  .hero-features {
    min-height: 90px;
  }

  .feature {
    padding: 18px 16px 18px 0;
    font-size: 0.74rem;
  }

  .feature + .feature {
    padding-left: 16px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

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

  .service-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
  }

  .service-image {
    height: 100%;
    min-height: 340px;
  }

  .service-body {
    min-height: 340px;
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 420px 280px;
  }

  .project-main {
    grid-column: 1 / -1;
    grid-row: auto !important;
  }

  .about-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .about-copy,
  .contact-copy {
    padding: 56px 42px;
  }

  .about-image {
    min-height: 480px;
  }

  .contact-image {
    min-height: 430px;
  }

  .footer-main {
    grid-template-columns: 1fr auto;
  }

  .footer-main > p {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --container: calc(100% - 32px);
    --section-space: 78px;
  }

  .brand-mark {
    width: 30px;
    height: 36px;
  }

  .brand-name {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 900px;
  }

  .hero-visual {
    inset: 430px 0 160px;
  }

  .hero-visual img {
    object-position: 64% center;
  }

  .hero-inner {
    padding-top: calc(var(--header-height) + 66px);
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.25rem);
  }

  .hero-copy > p {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .hero-features {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 53px;
    padding: 10px 0;
  }

  .feature + .feature {
    padding-left: 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .service-card {
    display: block;
  }

  .service-image {
    min-height: 0;
    height: 310px;
  }

  .service-body {
    min-height: 250px;
  }

  .projects-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-filters {
    justify-content: flex-start;
    gap: 18px;
  }

  .project-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .project-card,
  .project-card.project-main {
    min-height: 330px;
    grid-column: auto;
    grid-row: auto;
  }

  .about-grid,
  .contact-shell {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  .about-copy,
  .contact-copy {
    padding: 46px 24px;
  }

  .about-image,
  .contact-image {
    min-height: 380px;
  }

  .process-list {
    grid-template-columns: 1fr;
    border-top: 0;
  }

  .process-list li,
  .process-list li + li,
  .process-list li:nth-child(4) {
    display: grid;
    padding: 24px 0;
    grid-template-columns: 64px 1fr;
    column-gap: 14px;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .process-number {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .process-number::before,
  .process-list li + li .process-number::before,
  .process-list li:nth-child(4) .process-number::before {
    top: -4px;
    left: 0;
  }

  .process-list h3 {
    margin-bottom: 8px;
  }

  .process-list p {
    grid-column: 2;
  }

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

  .form-wide {
    grid-column: auto;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-main {
    min-height: 190px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .footer-main > .text-link {
    justify-self: start;
  }

  .footer-bottom {
    min-height: 100px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
