@font-face {
  font-family: "Fusion Pixel";
  src: url("/assets/fonts/fusion-pixel-latin.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF;
}

@font-face {
  font-family: "Fusion Pixel";
  src: url("/assets/fonts/fusion-pixel-zh-hans.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+2000-206F, U+2E80-2EFF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+FF00-FFEF;
}

:root {
  --night: #0a1018;
  --night-soft: #111923;
  --paper: #f7f1e5;
  --paper-deep: #e7dfd0;
  --parchment: #f2e2bc;
  --forge: #d56836;
  --gold: #d2a44d;
  --green: #39b985;
  --blue: #3e6fa7;
  --ink: #171c21;
  --muted: #687078;
  --line: #c6bdac;
  --white: #fffdf6;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-deep);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

h1,
h2,
h3,
.pixel-type,
.seo-brand strong,
.seo-button,
.metric strong,
.case-kicker {
  font-family: "Fusion Pixel", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  color: var(--night);
  background: var(--gold);
  transform: translateY(-150%);
}

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

.seo-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--parchment);
  background: rgb(10 16 24 / 94%);
  border-bottom: 1px solid #36404a;
  backdrop-filter: blur(10px);
}

.seo-header-inner,
.seo-container,
.seo-footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.seo-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: #151e27;
  border: 1px solid #59616a;
  box-shadow: 2px 2px 0 #000;
  font: 24px "Fusion Pixel", monospace;
}

.seo-brand > span:last-child {
  display: flex;
  flex-direction: column;
}

.seo-brand strong {
  color: var(--white);
  font-size: 13px;
  line-height: 1.25;
}

.seo-brand small {
  color: #9da6ad;
  font-size: 10px;
}

.seo-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seo-nav > a {
  padding: 8px 11px;
  color: #bcc4ca;
  font-size: 13px;
  border-bottom: 2px solid transparent;
}

.seo-nav > a:hover {
  color: var(--white);
  border-color: var(--forge);
}

.language-link {
  min-height: 38px;
  padding: 0 12px !important;
  display: inline-flex;
  align-items: center;
  color: var(--night) !important;
  background: var(--parchment);
  border: 1px solid #fff4d8;
  font: 10px "Fusion Pixel", monospace;
}

.profile-hero,
.case-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--night);
}

.profile-hero {
  min-height: 620px;
  display: grid;
  align-items: end;
}

.profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(5 9 15 / 88%) 0%, rgb(5 9 15 / 62%) 48%, rgb(5 9 15 / 12%) 78%),
    linear-gradient(0deg, var(--night), transparent 36%),
    url("/assets/art/caleb-workshop-desktop.png") center / cover no-repeat;
}

.profile-hero .seo-container {
  position: relative;
  padding-block: 118px 92px;
}

.case-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .04em;
}

.profile-hero h1,
.case-hero h1 {
  max-width: 860px;
  margin: 0 0 20px;
  color: var(--parchment);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.02;
  text-shadow: 4px 4px 0 #000;
}

.profile-hero .lead,
.case-hero .lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: #d8dde0;
  font-size: clamp(18px, 2vw, 23px);
}

.case-byline {
  margin: -12px 0 25px;
  color: #9ca7ad;
  font-size: 13px;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.seo-button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--white);
  background: var(--forge);
  border: 1px solid #ec895a;
  box-shadow: 3px 3px 0 rgb(0 0 0 / 35%);
  font-size: 12px;
  line-height: 1.2;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.seo-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 rgb(0 0 0 / 35%);
}

.seo-button.secondary {
  color: var(--parchment);
  background: var(--night-soft);
  border-color: #626d76;
}

.proof-strip {
  color: #d8dadd;
  background: #121b24;
  border-block: 1px solid #303b45;
}

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

.proof-grid > div,
.metric {
  padding: 26px 24px;
  border-right: 1px solid #303b45;
}

.proof-grid > div:last-child,
.metric:last-child {
  border-right: 0;
}

.proof-grid strong,
.metric strong {
  display: block;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.proof-grid span,
.metric span {
  display: block;
  margin-top: 7px;
  color: #aeb7bd;
  font-size: 13px;
}

.seo-section {
  padding-block: 88px;
}

.seo-section.light {
  background: var(--paper);
}

.seo-section.dark {
  color: #dfe3e5;
  background: #0e151d;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.article-section h2 {
  margin: 0 0 13px;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.16;
}

.section-heading p,
.article-section p {
  color: var(--muted);
}

.dark .section-heading p {
  color: #a5afb5;
}

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

.work-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 5px 5px 0 rgb(10 16 24 / 16%);
}

.work-card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  object-position: top;
  background: #dce8ef;
}

.work-card-copy {
  padding: 23px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.work-card small {
  color: #9a512f;
  font: 9px "Fusion Pixel", monospace;
}

.work-card h3 {
  margin: 9px 0 8px;
  font-size: 25px;
}

.work-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.work-card a {
  width: max-content;
  margin-top: auto;
  color: #8f3e35;
  border-bottom: 1px solid currentColor;
  font: 11px "Fusion Pixel", monospace;
}

.about-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: 58px;
}

.about-grid img {
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: cover;
  border: 8px solid #0d1319;
  box-shadow: 18px 18px 0 #8f3e35, -16px -14px 0 var(--blue);
}

.about-grid h2 {
  margin: 0 0 16px;
  color: var(--parchment);
  font-size: clamp(31px, 4vw, 48px);
}

.about-grid p {
  color: #aeb7bd;
}

.case-hero {
  padding-block: 80px 72px;
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background:
    linear-gradient(90deg, transparent 19px, rgb(62 111 167 / 28%) 20px, transparent 21px),
    linear-gradient(transparent 19px, rgb(62 111 167 / 28%) 20px, transparent 21px);
  background-size: 40px 40px;
}

.case-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .75fr);
  align-items: center;
  gap: 54px;
}

.case-hero h1 {
  font-size: clamp(39px, 5.8vw, 68px);
}

.case-hero-media {
  position: relative;
  padding: 18px;
  background: #15212d;
  border: 1px solid #51606b;
  box-shadow: 12px 12px 0 rgb(0 0 0 / 35%);
}

.case-hero-media img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

.breadcrumb {
  margin-bottom: 26px;
  color: #9ca7ad;
  font-size: 12px;
}

.breadcrumb a {
  color: var(--gold);
}

.metric-grid {
  background: #111923;
  border: 1px solid #3f4b55;
}

.metric {
  min-height: 145px;
}

.article {
  padding-block: 84px;
  background: var(--paper);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 78px;
}

.article-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.article-sidebar img {
  margin-bottom: 18px;
  border: 1px solid #a89f90;
  box-shadow: 6px 6px 0 rgb(10 16 24 / 16%);
}

.article-sidebar p {
  color: var(--muted);
  font-size: 13px;
}

.article-section {
  padding-bottom: 46px;
  border-bottom: 1px solid var(--line);
}

.article-section + .article-section {
  padding-top: 46px;
}

.article-section:last-child {
  padding-bottom: 0;
  border: 0;
}

.article-section p {
  font-size: 17px;
}

.feature-list {
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.feature-list li {
  padding: 16px 18px;
  color: #3f474d;
  background: #eee5d7;
  border-left: 3px solid var(--blue);
}

.feature-list strong {
  color: var(--ink);
}

.quote-card {
  margin-top: 26px;
  padding: 24px;
  color: #dbe1e4;
  background: var(--night-soft);
  border: 1px solid #47535d;
  border-left: 4px solid var(--gold);
}

.quote-card p {
  margin: 0;
  color: inherit;
}

.case-gallery {
  padding-block: 72px;
  color: #dfe3e5;
  background: #0e151d;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-gallery img {
  width: 100%;
  border: 1px solid #4f5961;
  box-shadow: 5px 6px 0 rgb(0 0 0 / 35%);
}

.case-cta {
  padding-block: 84px;
  text-align: center;
  color: var(--white);
  background: #171f27;
}

.case-cta h2 {
  max-width: 760px;
  margin: 0 auto 15px;
  color: var(--parchment);
  font-size: clamp(31px, 5vw, 50px);
}

.case-cta p {
  max-width: 660px;
  margin: 0 auto 28px;
  color: #aeb7bd;
}

.case-cta .seo-actions {
  justify-content: center;
}

.seo-footer {
  padding-block: 30px;
  color: #89949b;
  background: #090e14;
  border-top: 1px solid #333c45;
}

.seo-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  font-size: 12px;
}

.seo-footer strong {
  color: var(--parchment);
  font: 12px "Fusion Pixel", monospace;
}

.not-found {
  min-height: calc(100svh - 68px);
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--night);
}

.not-found-card {
  width: min(calc(100% - 40px), 720px);
  padding: 54px;
  text-align: center;
  background: var(--night-soft);
  border: 1px solid #47535d;
  box-shadow: 10px 10px 0 #030507;
}

.not-found-card strong {
  display: block;
  color: var(--gold);
  font: clamp(58px, 12vw, 110px) "Fusion Pixel", monospace;
  line-height: 1;
}

.not-found-card h1 {
  margin: 20px 0 10px;
  color: var(--parchment);
  font-size: 32px;
}

.not-found-card p {
  margin-bottom: 28px;
  color: #aeb7bd;
}

@media (max-width: 860px) {
  .seo-nav > a:not(.language-link) {
    display: none;
  }

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

  .work-card {
    min-height: 0;
  }

  .work-card img {
    height: 280px;
  }

  .case-hero-grid,
  .article-layout,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .seo-header-inner,
  .seo-container,
  .seo-footer-inner {
    width: calc(100% - 36px);
  }

  .seo-header-inner {
    min-height: 62px;
  }

  .seo-brand small {
    display: none;
  }

  .seo-brand strong {
    font-size: 11px;
  }

  .seo-brand-mark {
    width: 34px;
    height: 34px;
  }

  .profile-hero {
    min-height: 610px;
  }

  .profile-hero::before {
    background:
      linear-gradient(0deg, var(--night) 0%, rgb(5 9 15 / 72%) 52%, rgb(5 9 15 / 24%) 100%),
      url("/assets/art/caleb-workshop-mobile.png") center top / cover no-repeat;
  }

  .profile-hero .seo-container {
    padding-block: 300px 58px;
  }

  .profile-hero h1,
  .case-hero h1 {
    font-size: 38px;
  }

  .profile-hero .lead,
  .case-hero .lead {
    font-size: 17px;
  }

  .proof-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid > div,
  .metric {
    min-height: 0;
    padding: 19px 18px;
    border-right: 0;
    border-bottom: 1px solid #303b45;
  }

  .proof-grid > div:last-child,
  .metric:last-child {
    border-bottom: 0;
  }

  .seo-section,
  .article,
  .case-gallery,
  .case-cta {
    padding-block: 64px;
  }

  .work-card img {
    height: 220px;
  }

  .case-hero {
    padding-block: 48px 58px;
  }

  .case-hero-media {
    padding: 10px;
  }

  .article-section p {
    font-size: 16px;
  }

  .seo-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .not-found-card {
    padding: 38px 24px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
