:root {
  color-scheme: dark;
  --background: #15120f;
  --panel: #1f1a16;
  --ink: #fbf3e7;
  --muted: #c7b9a9;
  --gold: #e4ad73;
  --line: #3e3329;
  --header-height: 4.5rem;
  --gutter: clamp(1.25rem, 5.5vw, 5rem);
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  background: var(--background);
  color: var(--ink);
  scroll-padding-top: var(--header-height);
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  line-height: 1.7;
}

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

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.5rem 1rem;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--background);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(75rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--background);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  min-height: calc(var(--header-height) - 1px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  flex-shrink: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.05rem;
  aspect-ratio: 1;
  color: var(--gold);
  background:
    linear-gradient(currentColor, currentColor) left top / 24% 1px,
    linear-gradient(currentColor, currentColor) left top / 1px 24%,
    linear-gradient(currentColor, currentColor) right top / 24% 1px,
    linear-gradient(currentColor, currentColor) right top / 1px 24%,
    linear-gradient(currentColor, currentColor) left bottom / 24% 1px,
    linear-gradient(currentColor, currentColor) left bottom / 1px 24%,
    linear-gradient(currentColor, currentColor) right bottom / 24% 1px,
    linear-gradient(currentColor, currentColor) right bottom / 1px 24%;
  background-repeat: no-repeat;
}

.brand-mark::before {
  content: "";
  grid-area: 1 / 1;
  width: 36%;
  aspect-ratio: 1;
  transform: rotate(45deg);
  border: 1px solid currentColor;
}

.brand-mark::after {
  content: "";
  grid-area: 1 / 1;
  width: 3px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.75rem);
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-nav a,
.back-link {
  padding-block: 0.5rem;
  transition: color 160ms ease;
}

.site-nav a:is(:hover, :focus-visible),
.back-link:is(:hover, :focus-visible) {
  color: var(--gold);
}

.hero {
  position: relative;
  isolation: isolate;
  background: #261d16;
}

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

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 62% 53%;
}

.hero::after {
  content: "";
  z-index: -1;
  background:
    linear-gradient(90deg, #110e0cd9 0%, #110e0c8c 36%, #110e0c12 68%, transparent 85%),
    linear-gradient(0deg, #110e0cb3, transparent 27%);
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(36rem, 45vw, 48rem);
  padding-block: 5rem;
}

.hero-copy {
  max-width: 45rem;
}

.company-name {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.company-name::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin-block: 1.25rem 1.5rem;
  font-size: clamp(3.125rem, 5.8vw, 5.625rem);
  font-weight: 800;
  letter-spacing: 0.012em;
  line-height: 1.13;
}

.hero h1 span {
  display: block;
}

.hero h1 span + span {
  color: var(--gold);
}

.hero-description {
  max-width: 25em;
  color: #e4d7c7;
  font-size: clamp(0.975rem, 1.3vw, 1.125rem);
  line-height: 1.85;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  min-height: 3.25rem;
  margin-top: 2rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  background: var(--gold);
  color: #1d1510;
  font-weight: 700;
  font-size: 0.875rem;
  transition: background 160ms ease;
}

.primary-link:hover {
  background: #f5c593;
}

.arrow {
  position: relative;
  display: inline-block;
  width: 0.85rem;
  height: 1px;
  background: currentColor;
}

.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.4rem;
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(45deg);
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}

.arrow-up {
  transform: rotate(-90deg);
}


.section {
  padding-block: clamp(3.5rem, 6.25vw, 6rem);
}

.section-title {
  font-size: clamp(1.875rem, 3.4vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.about {
  background: #1a1613;
  border-block: 1px solid var(--line);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2rem;
}

.about-copy {
  max-width: 39em;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.95;
}

.about-copy p + p {
  margin-top: 1rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.work-card {
  border: 1px solid var(--line);
  background: var(--panel);
}

.work-image {
  position: relative;
}

.work-image img {
  display: block;
  width: 100%;
  height: auto;
}


.work-copy {
  padding: clamp(1.15rem, 2.5vw, 1.75rem);
}

.card-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
}

.work-copy h3 {
  font-size: clamp(1.375rem, 2.25vw, 1.75rem);
  line-height: 1.35;
}

.project-status {
  padding: 0.05rem 0.5rem;
  border: 1px solid #715236;
  color: var(--gold);
  font-size: 0.75rem;
}

.work-copy p,
.section-description,
.process-list p {
  color: var(--muted);
  line-height: 1.85;
}

.work-copy p {
  margin-top: 0.65rem;
}

.process {
  border-top: 1px solid var(--line);
  background: #1a1613;
}

.section-description {
  margin-block: 1rem 2rem;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  padding-top: 1.25rem;
  border-top: 1px solid #745538;
}

.process-list h3 {
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-size: 1.05rem;
}

.process-list p {
  font-size: 0.925rem;
}

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

.footer-inner {
  min-height: 6rem;
  padding-block: 1.25rem;
}

.footer-brand {
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-brand .brand-mark {
  width: 1.6rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

@media (max-width: 48em) {
  :root {
    --header-height: 3.875rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 1rem;
    letter-spacing: 0.055em;
  }

  .brand-mark {
    width: 1.65rem;
  }

  .site-nav {
    gap: clamp(0.55rem, 2.8vw, 1.25rem);
    font-size: 0.8125rem;
    letter-spacing: 0;
  }

  .hero-inner {
    min-height: 34rem;
  }

  .hero h1 {
    font-size: clamp(2.625rem, 8vw, 3.75rem);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

@media (max-width: 36em) {
  .hero::after {
    background:
      linear-gradient(0deg, #110e0cf5 4%, #110e0cd4 35%, #110e0c38 75%, transparent 100%),
      linear-gradient(90deg, #110e0c52, transparent 75%);
  }

  .hero-image {
    object-position: 83% 50%;
  }

  .hero-inner {
    min-height: clamp(33rem, 78svh, 39rem);
    align-items: flex-end;
    padding-block: 11rem 4.25rem;
  }

  .company-name {
    gap: 0.55rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
  }

  .company-name::before {
    width: 1.1rem;
  }

  .hero h1 {
    margin-block: 0.95rem 1rem;
  }

  .hero-description {
    max-width: 23em;
  }

  .primary-link {
    margin-top: 1.5rem;
  }

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

  .footer-inner {
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
  }
}

@media (max-width: 22em) {
  .header-inner {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 1.35rem;
  }

  .site-nav {
    font-size: 0.75rem;
    gap: 0.5rem;
  }
}
