:root {
  --ink: #141719;
  --muted: #66717c;
  --line: #d8dee3;
  --paper: #f8f5f2;
  --white: #ffffff;
  --metal: #a9b5bd;
  --graphite: #1d2327;
  --accent: #c85a4c;
  --accent-dark: #8f3d34;
  --accent-soft: #f4ded8;
  --copper: #a95a4d;
  --green: #2f6b57;
  --shadow: 0 24px 70px rgba(20, 23, 25, 0.18);
  --shadow-soft: 0 18px 44px rgba(20, 23, 25, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
}

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

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

.site-header {
  align-items: center;
  background: rgba(248, 245, 242, 0.9);
  border-bottom: 1px solid rgba(143, 61, 52, 0.16);
  backdrop-filter: blur(18px);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 14px clamp(18px, 4vw, 58px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 220ms ease, box-shadow 220ms ease, padding 220ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(248, 245, 242, 0.97);
  box-shadow: 0 10px 34px rgba(20, 23, 25, 0.1);
  padding-bottom: 10px;
  padding-top: 10px;
}

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

.brand-logo {
  height: 52px;
  object-fit: contain;
  transition: transform 220ms ease;
  width: 52px;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  justify-content: center;
}

.site-nav a {
  color: #394149;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  background: linear-gradient(90deg, var(--accent-dark), #ef7565);
  bottom: 4px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
  width: 100%;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.mobile-system-link {
  display: none;
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: end;
}

.system-cta,
.header-cta,
.button {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.system-cta::before {
  background: currentColor;
  content: "";
  height: 8px;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16v12H4V4Zm2 2v8h12V6H6Zm-2 12h16v2H4v-2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  width: 14px;
}

.system-cta {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(143, 61, 52, 0.28);
  color: var(--accent-dark);
}

.header-cta::after,
.button::after {
  content: "→";
  font-size: 16px;
  line-height: 1;
  transform: translateX(0);
  transition: transform 180ms ease;
}

.header-cta,
.button.primary {
  background: linear-gradient(135deg, var(--accent-dark), #e56555);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.button.dark {
  background: linear-gradient(135deg, #2b1917, var(--accent-dark));
  border: 1px solid rgba(244, 222, 216, 0.18);
  color: var(--white);
}

.system-cta:hover,
.header-cta:hover,
.button:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.system-cta:hover {
  background: var(--accent-soft);
  border-color: rgba(143, 61, 52, 0.52);
}

.header-cta:hover::after,
.button:hover::after {
  transform: translateX(3px);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.72);
}

.button.dark:hover {
  background: linear-gradient(135deg, var(--accent-dark), #e56555);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  justify-self: end;
  padding: 0;
  width: 42px;
  z-index: 22;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 8px auto;
  transition: transform 200ms ease, opacity 200ms ease;
  width: 24px;
}

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

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

.nav-backdrop {
  display: none;
}

.hero {
  min-height: 88svh;
  overflow: hidden;
  position: relative;
}

.hero-media,
.hero-overlay {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.hero-media {
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(10, 14, 16, 0.84), rgba(10, 14, 16, 0.5) 44%, rgba(10, 14, 16, 0.05));
}

.hero-content {
  color: var(--white);
  max-width: 700px;
  padding: clamp(108px, 15vh, 142px) clamp(22px, 6vw, 82px) 136px;
  position: relative;
  z-index: 2;
}

.hero-content > * {
  animation: rise-in 680ms ease both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 90ms;
}

.hero-content > *:nth-child(3) {
  animation-delay: 180ms;
}

.hero-content > *:nth-child(4) {
  animation-delay: 270ms;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin-bottom: 24px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-strip {
  background: linear-gradient(135deg, rgba(29, 35, 39, 0.96), rgba(58, 38, 35, 0.96));
  border: 1px solid rgba(244, 222, 216, 0.14);
  bottom: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, 1fr);
  left: clamp(22px, 6vw, 82px);
  max-width: 760px;
  position: absolute;
  right: clamp(22px, 6vw, 82px);
  box-shadow: 0 18px 60px rgba(20, 23, 25, 0.13);
  z-index: 3;
}

.hero-strip div {
  border-right: 1px solid rgba(244, 222, 216, 0.12);
  padding: 24px;
}

.hero-strip div:last-child {
  border-right: 0;
}

.hero-strip strong,
.hero-strip span {
  display: block;
}

.hero-strip strong {
  color: var(--white);
  font-size: 20px;
}

.hero-strip span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  margin-top: 5px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(72px, 9vw, 124px) clamp(22px, 4vw, 42px);
}

.intro {
  align-items: start;
  display: grid;
  gap: 48px;
  grid-template-columns: 1.1fr 0.9fr;
}

h2 {
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.08;
  margin-bottom: 0;
}

.intro p:last-child,
.contact-copy p,
.timeline span {
  color: var(--muted);
  line-height: 1.75;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 740px;
}

.portfolio {
  background: var(--graphite);
  color: var(--white);
}

.portfolio-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  padding-bottom: 42px;
}

.portfolio-heading .button {
  justify-self: start;
}

.portfolio h2 {
  max-width: 760px;
}

.portfolio-copy {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
  margin: 22px 0 0;
  max-width: 820px;
}

.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.25fr 1fr 1fr;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(22px, 4vw, 42px) clamp(72px, 9vw, 124px);
}

.project {
  min-height: 260px;
  overflow: hidden;
  padding: 0;
  position: relative;
  transform: translateY(0);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.project.large {
  grid-row: span 2;
  min-height: 548px;
  padding: 0;
}

.project img {
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 240ms ease;
  width: 100%;
}

.project::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.02));
  content: "";
  inset: 0;
  position: absolute;
}

.project:hover {
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  transform: translateY(-4px);
}

.project:hover img {
  filter: saturate(1.06) contrast(1.04);
  transform: scale(1.045);
}

.project div {
  bottom: 28px;
  left: 28px;
  position: absolute;
  right: 28px;
  z-index: 2;
}

.project span {
  color: rgba(255, 255, 255, 0.76);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.project h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  align-items: start;
  border-top: 1px solid var(--line);
  counter-increment: step;
  display: grid;
  gap: 26px;
  grid-template-columns: 86px 0.7fr 1fr;
  padding: 28px 0;
  transition: background 180ms ease, padding-left 180ms ease;
}

.timeline li:hover {
  background: rgba(200, 90, 76, 0.08);
  padding-left: 14px;
}

.timeline li::before {
  color: var(--accent-dark);
  content: counter(step, decimal-leading-zero);
  font-weight: 800;
}

.timeline strong {
  font-size: 20px;
}

.clients {
  background: linear-gradient(180deg, var(--paper), #fff);
  border-top: 1px solid rgba(143, 61, 52, 0.12);
}

.clients-heading {
  align-items: end;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr 0.82fr;
  padding-bottom: 38px;
}

.clients-heading p:last-child {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.client-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 clamp(22px, 4vw, 42px) clamp(72px, 9vw, 124px);
}

.client-logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(143, 61, 52, 0.12);
  display: flex;
  justify-content: center;
  min-height: 146px;
  overflow: hidden;
  padding: 22px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.client-logo:hover {
  border-color: rgba(200, 90, 76, 0.34);
  box-shadow: var(--shadow-soft);
  transform: translateY(-3px);
}

.client-logo img {
  max-height: 92px;
  object-fit: contain;
  width: min(100%, 260px);
}

.contact {
  align-items: start;
  display: grid;
  gap: 54px;
  grid-template-columns: 0.85fr 1fr;
}

.contact-copy {
  position: sticky;
  top: 118px;
}

.contact-copy .button {
  margin-top: 18px;
}

.contact-details {
  color: var(--muted);
  display: grid;
  font-style: normal;
  gap: 8px;
  line-height: 1.55;
  margin: 24px 0 8px;
}

.contact-details a {
  color: var(--ink);
  font-weight: 800;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
}

.contact-form label {
  color: #384049;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 90, 76, 0.16);
  outline: 0;
}

.contact-form textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

.site-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  gap: 18px;
  justify-content: center;
  padding: 28px;
}

.footer-logo {
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.footer-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
}

.thanks-page {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.thanks-card {
  background: var(--white);
  box-shadow: var(--shadow);
  margin: auto;
  max-width: 560px;
  padding: clamp(28px, 5vw, 58px);
}

.thanks-card h1 {
  color: var(--ink);
  font-size: clamp(34px, 6vw, 58px);
  margin-top: 34px;
}

.thanks-card p {
  color: var(--muted);
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-right: 6px;
  }

  .header-actions .header-cta {
    display: none;
  }

  .system-cta {
    font-size: 13px;
    min-height: 40px;
    padding: 0 12px;
  }

  .site-nav.is-open {
    background: rgba(248, 245, 242, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 4px;
    grid-column: 1 / -1;
    justify-content: start;
    left: 18px;
    padding: 12px;
    position: absolute;
    right: 18px;
    top: calc(100% + 10px);
    z-index: 23;
  }

  .site-nav.is-open a {
    font-size: 16px;
    padding: 14px 12px;
    width: 100%;
  }

  .site-nav.is-open .mobile-system-link {
    align-items: center;
    background: linear-gradient(135deg, var(--accent-dark), #e56555);
    color: var(--white);
    display: flex;
    justify-content: center;
    margin-top: 4px;
    padding: 14px 16px;
  }

  .site-nav.is-open .mobile-system-link::after {
    display: none;
  }

  .site-nav.is-open a::after {
    bottom: 8px;
    left: 12px;
    width: calc(100% - 24px);
  }

  .nav-backdrop.is-open {
    background: rgba(20, 23, 25, 0.22);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 19;
  }

  .intro,
  .clients-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

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

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

  .portfolio-heading {
    align-items: start;
    display: grid;
    gap: 24px;
  }

  .timeline li {
    grid-template-columns: 62px 1fr;
  }

  .timeline span {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .brand small {
    display: none;
  }

  .brand-logo {
    height: 46px;
    width: 46px;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-content {
    padding-bottom: 230px;
  }

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

  .hero-strip div {
    padding: 16px 18px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

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

  .client-logo {
    min-height: 128px;
  }

  .project.large {
    min-height: 420px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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