:root {
  --ink: #09090b;
  --surface: #ffffff;
  --paper: #f4f2eb;
  --muted: #e6e1d4;
  --line: #d7d1c4;
  --carbon: #171717;
  --graphite: #3f3f46;
  --accent: #f4c21f;
  --accent-strong: #111111;
  --focus: #2563eb;
  --shadow: 0 24px 70px rgba(0, 0, 0, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

body.no-motion *,
body.no-motion *::before,
body.no-motion *::after {
  animation: none !important;
  transition: none !important;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--accent);
  color: #000;
  padding: 12px 16px;
  font-weight: 800;
}

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

.wrap {
  width: min(100% - 40px, 1260px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 242, 235, .92);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  backdrop-filter: blur(16px);
}

.site-header.is-elevated {
  box-shadow: 0 14px 40px rgba(0, 0, 0, .08);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--ink);
  color: var(--accent);
  border: 2px solid var(--ink);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
}

.brand-copy {
  font-size: 13px;
  line-height: .95;
}

.nav-links {
  display: inline-flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #715300;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #000;
  border: 2px solid #000;
  padding: 13px 18px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #ffe05a;
}

.button-dark {
  background: #000;
  color: #fff;
}

.button-dark:hover {
  background: var(--accent);
  color: #000;
}

.button-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}

.button-ghost:hover {
  background: #fff;
  color: #000;
}

.hero {
  position: relative;
  min-height: calc(100dvh - 78px);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .44) 54%, rgba(0, 0, 0, .72)),
    url("/hanseng-portfolio-assets/media/hero.webp") center / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: .38;
  z-index: -1;
}

.hero-grid {
  min-height: calc(100dvh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: end;
  padding: 86px 0 70px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #836100;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow,
.section-current .eyebrow,
.feature-copy .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: "Archivo", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin: 0;
  font-size: clamp(56px, 10vw, 142px);
  line-height: .82;
  text-transform: uppercase;
  color: #fff;
  overflow-wrap: break-word;
}

.lead {
  max-width: 720px;
  margin: 26px 0 0;
  color: #efefef;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.45;
}

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

.hero-panel {
  display: grid;
  gap: 10px;
}

.hero-panel div {
  background: rgba(255, 255, 255, .92);
  color: #000;
  border-left: 8px solid var(--accent);
  padding: 22px;
  box-shadow: var(--shadow);
}

.hero-panel span {
  display: block;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.hero-panel p {
  margin: 10px 0 0;
  color: #3f3f46;
  font-weight: 600;
}

.marquee {
  overflow: hidden;
  background: var(--accent);
  color: #000;
  border-block: 2px solid #000;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll-x 34s linear infinite;
}

.marquee span {
  padding: 15px 26px;
  font-family: "Archivo", Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section {
  padding: 104px 0;
  background: var(--paper);
}

.section-light {
  background: #fff;
}

.section-dark {
  background: #050505;
  color: #fff;
}

.split,
.section-head,
.method-grid,
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 58px;
  align-items: start;
}

.split > *,
.section-head > *,
.method-grid > *,
.contact-grid > *,
.feature-band > * {
  min-width: 0;
}

.intro h2,
.section-head h2,
.method-copy h2,
.contact-grid h2,
.feature-copy h2 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 84px);
  line-height: .9;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.intro-copy p,
.section-note,
.method-copy p,
.contact-grid p,
.feature-copy p {
  margin: 0 0 18px;
  color: #585f63;
  font-size: 18px;
  line-height: 1.72;
}

.section-dark .method-copy p {
  color: #d4d4d4;
}

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

.section-current {
  background: #050505;
  color: #fff;
}

.section-current .section-note {
  color: #d8d8d8;
}

.section-current .section-head h2 {
  color: #fff;
}

.current-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
  margin-top: 44px;
}

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

.current-card {
  min-height: 336px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #111;
  color: #fff;
  isolation: isolate;
}

.current-card-large {
  min-height: 688px;
}

.current-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.current-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .32) 58%, rgba(0, 0, 0, .08));
  z-index: -1;
}

.current-content {
  width: 100%;
  padding: 30px;
}

.current-content h3 {
  max-width: 760px;
  margin: 12px 0 14px;
  font-size: clamp(28px, 3.7vw, 58px);
  line-height: .9;
  text-transform: uppercase;
}

.current-content p {
  max-width: 720px;
  margin: 0 0 18px;
  color: #f2f2f2;
}

.current-content dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.current-content dl div {
  border-top: 1px solid rgba(255, 255, 255, .28);
  padding-top: 10px;
}

.current-content dt {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.current-content dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  background: var(--accent);
  color: #000;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.filter {
  min-height: 44px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  font: 900 12px/1 "Space Grotesk", Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  background: #000;
  color: #fff;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.project-card {
  min-height: 520px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #111;
  color: #fff;
  isolation: isolate;
  transition: transform .2s ease, opacity .2s ease;
}

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

.project-card.large {
  grid-column: span 2;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.08) contrast(1.04);
  z-index: -2;
  transition: transform .45s ease, filter .45s ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .18) 62%, rgba(0, 0, 0, .08));
  z-index: -1;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card:hover img {
  transform: scale(1.045);
  filter: grayscale(0) contrast(1.08);
}

.project-content {
  width: 100%;
  padding: 30px;
}

.project-content span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  background: var(--accent);
  color: #000;
  padding: 7px 10px;
  font-weight: 900;
  font-size: 11px;
  text-transform: uppercase;
}

.project-content h3 {
  margin: 18px 0 12px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: .9;
  text-transform: uppercase;
}

.project-content p {
  max-width: 620px;
  margin: 0 0 20px;
  color: #f2f2f2;
}

.project-content dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.project-content dl div {
  border-top: 1px solid rgba(255, 255, 255, .28);
  padding-top: 10px;
}

.project-content dt {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-content dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.case-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  background: var(--accent);
  color: #000;
  border: 2px solid var(--accent);
  padding: 10px 13px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.case-link:hover {
  background: #fff;
  border-color: #fff;
}

.case-page {
  background: #050505;
}

.case-hero {
  min-height: calc(78dvh - 78px);
  position: relative;
  display: flex;
  align-items: end;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .88), rgba(0, 0, 0, .48) 56%, rgba(0, 0, 0, .76)),
    var(--case-bg) var(--case-bg-position, center) / cover no-repeat;
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: .32;
  z-index: -1;
}

.case-hero-inner {
  padding: 92px 0 72px;
}

.case-hero h1 {
  max-width: 1020px;
  font-size: clamp(54px, 9vw, 126px);
}

.case-hero .lead {
  max-width: 820px;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--accent);
  border-block: 2px solid #000;
}

.case-metric {
  min-height: 118px;
  padding: 22px;
  border-right: 2px solid #000;
  color: #000;
}

.case-metric:last-child {
  border-right: 0;
}

.case-metric dt {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-metric dd {
  margin: 10px 0 0;
  font-family: "Archivo", Arial, sans-serif;
  font-size: clamp(22px, 2.7vw, 34px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}

.case-story {
  background: var(--paper);
}

.case-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 60px;
  align-items: start;
}

.case-story h2,
.case-gallery h2,
.case-next h2 {
  margin: 0;
  font-size: clamp(38px, 5.2vw, 78px);
  line-height: .9;
  text-transform: uppercase;
}

.case-story p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #535a5f;
  font-size: 19px;
  line-height: 1.72;
}

.case-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.case-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #1f2933;
  font-weight: 800;
}

.case-side {
  background: #050505;
  color: #fff;
  padding: 30px;
}

.case-side h3 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
}

.case-side .case-list {
  margin-top: 0;
  border-color: rgba(255, 255, 255, .18);
}

.case-side .case-list li {
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, .18);
}

.case-gallery {
  background: #fff;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 16px;
  margin-top: 40px;
}

.case-gallery-grid figure {
  min-height: 360px;
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #111;
}

.case-gallery-grid figure:first-child {
  grid-row: span 2;
  min-height: 736px;
}

.case-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px;
  background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}

.case-next {
  background: #050505;
  color: #fff;
}

.case-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.case-next a {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  text-decoration: none;
}

.case-next span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-next strong {
  margin-top: 12px;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 26px;
  line-height: .95;
  text-transform: uppercase;
}

.case-next a:hover {
  background: var(--accent);
  color: #000;
}

.case-next a:hover span {
  color: #000;
}

.method-grid {
  align-items: stretch;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .16);
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.method-steps article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.method-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--accent);
  color: #000;
  font-weight: 900;
}

.method-steps h3 {
  margin: 28px 0 10px;
  font-size: 26px;
  text-transform: uppercase;
}

.method-steps p {
  margin: 0;
  color: #d0d0d0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 44px;
}

.service-grid article {
  min-height: 310px;
  padding: 28px;
  background: #fff;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color .2s ease, transform .2s ease;
}

.service-grid article:hover {
  background: #fff4bb;
  transform: translateY(-4px);
}

.service-grid span {
  color: #725400;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
}

.service-grid h3 {
  margin: 32px 0 14px;
  font-size: 27px;
  line-height: .98;
  text-transform: uppercase;
}

.service-grid p {
  margin: 0;
  color: #5c6368;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  background: #050505;
  color: #fff;
}

.feature-image {
  min-height: 720px;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  padding: 86px max(28px, calc((100vw - 1260px) / 2)) 86px 64px;
  align-self: center;
}

.feature-copy p {
  color: #d7d7d7;
}

.feature-copy ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-copy li {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-weight: 800;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(244, 194, 31, .24), transparent 42%),
    var(--paper);
}

.contact-panel {
  background: #050505;
  color: #fff;
  padding: 34px;
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-panel p {
  margin: 12px 0 0;
  color: #dedede;
  font-weight: 700;
}

.footer {
  background: #000;
  color: #b8b8b8;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

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

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

@media (max-width: 1080px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-grid,
  .split,
  .section-head,
  .case-story-grid,
  .method-grid,
  .contact-grid,
  .current-grid,
  .feature-band {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: center;
  }

  .hero-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid,
  .case-metrics,
  .case-gallery-grid,
  .case-next-grid,
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-gallery-grid figure:first-child {
    grid-row: auto;
    min-height: 420px;
  }

  .project-card.large {
    grid-column: auto;
  }

  .filters {
    justify-content: flex-start;
  }

  .current-card-large {
    min-height: 540px;
  }

  .feature-image {
    min-height: 460px;
  }

  .feature-copy {
    padding: 72px 24px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 28px, 1260px);
  }

  .nav {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy {
    font-size: 12px;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding: 58px 0 34px;
  }

  h1 {
    font-size: 52px;
  }

  .lead {
    font-size: 17px;
  }

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

  .hero-panel,
  .project-grid,
  .case-metrics,
  .case-gallery-grid,
  .case-next-grid,
  .method-steps,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel span {
    font-size: 28px;
  }

  .section {
    padding: 72px 0;
  }

  .intro h2,
  .section-head h2,
  .method-copy h2,
  .contact-grid h2,
  .feature-copy h2 {
    font-size: clamp(34px, 10vw, 42px);
  }

  .project-card {
    min-height: 430px;
  }

  .current-card,
  .current-card-large {
    min-height: 430px;
  }

  .project-content {
    padding: 24px;
  }

  .current-content {
    padding: 24px;
  }

  .case-hero {
    min-height: auto;
  }

  .case-hero-inner {
    padding: 64px 0 48px;
  }

  .case-hero h1 {
    font-size: 48px;
  }

  .case-metric {
    min-height: 102px;
    border-right: 0;
    border-bottom: 2px solid #000;
  }

  .case-metric:last-child {
    border-bottom: 0;
  }

  .case-side {
    padding: 24px;
  }

  .case-gallery-grid figure,
  .case-gallery-grid figure:first-child {
    min-height: 320px;
  }

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

  .current-content dl {
    grid-template-columns: 1fr;
  }

  .feature-image {
    min-height: 360px;
  }
}
