:root {
  --ink: #0f0e0c;
  --muted: #68615b;
  --line: rgba(15, 14, 12, 0.22);
  --paper: #f7f6f2;
  --white: #ffffff;
  --wood: #382018;
  --button: #15120f;
  --accent: #7a3b21;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Geist", "Outfit", "Satoshi", "Inter", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

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

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.site-header {
  position: absolute;
  top: 18px;
  right: max(18px, calc((100vw - 1280px) / 2 + 28px));
  left: max(18px, calc((100vw - 1280px) / 2 + 28px));
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  color: var(--white);
  font-size: 0.78rem;
}

.brand,
.site-nav,
.nav-cta {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
}

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

.site-nav a {
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  opacity: 1;
}

.nav-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition:
    transform 220ms var(--ease),
    opacity 180ms ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-5px) rotate(-45deg);
}

.hero,
.section {
  width: min(calc(100% - 28px), 1280px);
  margin: 14px auto 0;
}

.hero {
  position: relative;
  min-height: min(680px, calc(100dvh - 28px));
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, #080807 0%, rgba(17, 13, 11, 0.96) 36%, rgba(64, 35, 27, 0.86) 68%, #0b0908 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 58px);
}

.hero-image {
  position: absolute;
  top: 86px;
  left: 44%;
  width: clamp(190px, 20vw, 275px);
  height: calc(100% - 120px);
  object-fit: cover;
  object-position: center bottom;
  transform: translateX(-50%);
  filter: saturate(0.92) contrast(1.08);
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 7, 0.36), rgba(8, 8, 7, 0.08) 52%, rgba(8, 8, 7, 0.5)),
    linear-gradient(0deg, rgba(8, 8, 7, 0.66), rgba(8, 8, 7, 0.02) 58%, rgba(8, 8, 7, 0.22));
}

.hero-stat,
.hero-note,
.hero-copy,
.hero-action,
.hero-since {
  position: absolute;
  z-index: 2;
}

.hero-stat {
  top: 168px;
  display: grid;
  gap: 4px;
}

.hero-stat strong {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 520;
}

.hero-stat span,
.hero-since,
.hero-overline {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
}

.hero-stat-left {
  left: clamp(36px, 7vw, 96px);
}

.hero-stat-mid {
  left: clamp(190px, 22vw, 300px);
}

.hero-note {
  top: 166px;
  right: clamp(44px, 7vw, 96px);
  max-width: 270px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  line-height: 1.55;
  text-align: right;
}

.hero-copy {
  bottom: 132px;
  left: clamp(36px, 7vw, 96px);
  max-width: 560px;
}

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

h1,
h2 {
  font-weight: 430;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.8rem, 5.6vw, 3.55rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.04;
}

h3 {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 520;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-overline {
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
}

.hero-action {
  right: clamp(44px, 7vw, 96px);
  bottom: 142px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--white);
  font-weight: 660;
  transition: transform 220ms var(--ease);
}

.hero-action:hover {
  transform: translateY(-2px);
}

.hero-since {
  right: clamp(44px, 7vw, 96px);
  bottom: 70px;
}

.section {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: clamp(36px, 9vw, 148px);
  padding: clamp(78px, 12vw, 160px) clamp(34px, 7vw, 96px);
  background: var(--paper);
}

.section-label {
  display: grid;
  align-content: start;
  gap: 32px;
  color: var(--ink);
  font-size: 0.9rem;
}

.section-label span {
  width: max-content;
  border-bottom: 1px solid currentColor;
}

.section-label img {
  width: 74px;
  height: 74px;
  object-fit: cover;
}

.section-label small {
  max-width: 150px;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
}

.about {
  grid-template-columns: minmax(130px, 0.3fr) minmax(300px, 0.88fr) minmax(160px, 0.42fr);
  align-items: start;
}

.about-copy {
  max-width: 590px;
}

.about-copy p {
  max-width: 520px;
  margin-top: 24px;
}

.line-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 52px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 560;
}

.about-side {
  display: grid;
  justify-items: end;
  gap: 28px;
  font-size: 0.84rem;
}

.paper-card {
  width: 118px;
  height: 156px;
  padding: 16px;
  background: var(--white);
  box-shadow: 22px -22px 0 rgba(15, 14, 12, 0.08);
  transform: rotate(7deg);
}

.paper-card span {
  display: block;
  height: 1px;
  margin-bottom: 14px;
  background: var(--line);
}

.services {
  padding-top: clamp(56px, 8vw, 110px);
}

.services-head {
  display: grid;
  grid-template-columns: minmax(0, 680px) auto;
  align-items: start;
  gap: 28px;
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.arrow-link {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  justify-self: end;
  color: #7a3b21;
}

.service-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: clamp(34px, 8vw, 120px);
  margin-top: 30px;
}

.service-media {
  display: grid;
  gap: 18px;
}

.service-media img {
  width: 112px;
  height: 154px;
  object-fit: cover;
}

.service-stack {
  display: grid;
  gap: 16px;
}

.service-stack span {
  display: block;
  width: 88px;
  height: 58px;
  background:
    linear-gradient(rgba(15, 14, 12, 0.2), rgba(15, 14, 12, 0.2)),
    url("assets/001-service-main.png") center / cover;
}

.service-list {
  display: grid;
}

.service-row {
  display: grid;
  grid-template-columns: 70px minmax(120px, 0.28fr) minmax(260px, 1fr) auto;
  gap: clamp(22px, 4vw, 70px);
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.service-row > span {
  font-size: 1rem;
}

.service-tags {
  display: grid;
  gap: 7px;
  color: var(--muted);
}

.service-tags small {
  font-size: 0.76rem;
}

.service-row p {
  max-width: 420px;
  margin-top: 10px;
  font-size: 0.86rem;
}

.service-row > a {
  align-self: end;
  padding: 10px 14px;
  color: var(--white);
  background: var(--button);
  font-size: 0.78rem;
  transition: transform 180ms ease;
}

.service-row > a:hover {
  transform: translateY(-1px);
}

.service-row-compact {
  grid-template-columns: 70px minmax(90px, 0.32fr) minmax(0, 1fr);
  align-items: center;
  min-height: 92px;
}

.advantage {
  padding-top: clamp(60px, 9vw, 120px);
}

.advantage-copy {
  display: grid;
  gap: 60px;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.advantage-grid article {
  min-height: 138px;
  padding: 30px 34px 30px 0;
  border-bottom: 1px solid var(--line);
}

.advantage-grid article:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.advantage-grid article:nth-child(even) {
  padding-left: 34px;
}

.advantage-grid p {
  margin-top: 12px;
  font-size: 0.84rem;
}

.contact {
  margin-bottom: 14px;
  padding-top: clamp(60px, 8vw, 110px);
  border-top: 1px solid var(--line);
}

.contact-copy {
  max-width: 680px;
}

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

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
  padding: 16px 22px;
  color: var(--white);
  background: var(--button);
  font-weight: 560;
  transition: transform 180ms ease;
}

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

.contact-extra {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--ink);
}

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

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 54px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    background: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 200ms ease,
      transform 220ms var(--ease);
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: 720px;
  }

  .hero-stat,
  .hero-note {
    display: none;
  }

  .hero-copy {
    right: 28px;
    bottom: 180px;
    left: 28px;
  }

  .hero-action {
    right: auto;
    bottom: 102px;
    left: 28px;
  }

  .hero-since {
    right: 28px;
    bottom: 42px;
  }

  .section,
  .about {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .section-label {
    grid-template-columns: auto 74px;
    align-items: start;
  }

  .section-label small {
    grid-column: 1 / -1;
  }

  .about-side {
    justify-items: start;
  }

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

  .service-media {
    grid-template-columns: 112px 1fr;
    align-items: end;
  }

  .service-stack {
    grid-template-columns: repeat(2, 88px);
  }

  .service-row,
  .service-row-compact {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
  }

  .service-tags,
  .service-row > a {
    grid-column: 2;
  }

}

@media (max-width: 560px) {
  .hero,
  .section {
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .site-header {
    top: 20px;
    right: 24px;
    left: 24px;
  }

  .brand {
    max-width: 210px;
  }

  .hero {
    min-height: 680px;
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .hero-action {
    right: 28px;
    justify-content: center;
  }

  .services-head {
    grid-template-columns: 1fr;
  }

  .arrow-link {
    justify-self: start;
  }

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

  .advantage-grid article,
  .advantage-grid article:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }
}
