:root {
  --surface-0: hsl(207 46% 7%);
  --surface-1: hsl(207 42% 11%);
  --surface-2: hsl(207 34% 16%);
  --paper: hsl(0 0% 98%);
  --text-primary: hsl(207 58% 88%);
  --text-secondary: hsl(207 32% 72%);
  --text-muted: hsl(207 22% 58%);
  --ink: hsl(220 14% 8%);
  --border: hsl(203 36% 88% / 0.22);
  --accent: hsl(202 78% 64%);
  --accent-2: hsl(214 74% 82%);
  --display: clamp(4.8rem, 17.5vw, 18rem);
  --title: clamp(3rem, 12vw, 10rem);
  --heading: clamp(1.2rem, 2.2vw, 2.1rem);
  --body: clamp(1rem, 1.8vw, 1.35rem);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--surface-0);
  color: var(--text-primary);
  font-family: "Kanit", "Noto Sans SC", sans-serif;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--surface-0);
}

.hero-heading {
  background: linear-gradient(180deg, #646973 0%, #bbccd7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: clip;
  isolation: isolate;
  background-image:
    linear-gradient(90deg, hsl(207 54% 6% / 0.82), hsl(207 54% 6% / 0.24) 48%, hsl(207 54% 6% / 0.72)),
    linear-gradient(180deg, hsl(207 54% 6% / 0.12), hsl(207 54% 6% / 0.92)),
    url("./public/assets/portrait-wide.jpg");
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 58% 18%, hsl(207 78% 74% / 0.22), transparent 24rem),
    radial-gradient(circle at 12% 84%, hsl(216 82% 48% / 0.18), transparent 24rem);
}

.hero::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.045;
  background-image:
    linear-gradient(90deg, hsl(0 0% 100% / 0.18) 1px, transparent 1px),
    linear-gradient(hsl(0 0% 100% / 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  position: fixed;
  top: clamp(1.2rem, 2.5vw, 2rem);
  left: clamp(1.2rem, 3vw, 2.5rem);
  z-index: 90;
  display: grid;
  gap: 0.75rem;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-trigger,
.nav-close {
  border: 1px solid hsl(0 0% 100% / 0.18);
  background: linear-gradient(145deg, hsl(207 30% 16% / 0.62), hsl(0 0% 7% / 0.48));
  box-shadow: 0 1rem 2.8rem hsl(207 58% 3% / 0.32), inset 0 1px 0 hsl(0 0% 100% / 0.08);
  color: var(--text-primary);
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.nav-trigger {
  display: inline-flex;
  min-height: 3.45rem;
  align-items: center;
  gap: 0.8rem;
  border-radius: 1.2rem;
  padding: 0 1.35rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.nav-dot {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 2px solid hsl(207 28% 60% / 0.62);
  box-shadow: inset 0 0 0 0.28rem hsl(207 52% 80% / 0.82);
}

.nav-close {
  position: relative;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-close::before,
.nav-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: hsl(207 24% 84%);
}

.nav-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-menu {
  display: grid;
  gap: 0.15rem;
  width: min(15rem, calc(100vw - 2.4rem));
  padding: 0.7rem;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, hsl(207 28% 13% / 0.7), hsl(0 0% 7% / 0.58));
  box-shadow: 0 1.5rem 3.5rem hsl(207 58% 3% / 0.42), inset 0 1px 0 hsl(0 0% 100% / 0.07);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.4rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu a {
  display: block;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  color: hsl(207 12% 66%);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  transition: color 180ms ease, background 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--text-primary);
  background: hsl(0 0% 100% / 0.1);
}

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

.hero-bottom {
  position: relative;
  z-index: 20;
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem) clamp(1.75rem, 5vw, 3rem);
}

.hero-role {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 18;
  margin: 0;
  transform: translate(-50%, -50%);
  color: hsl(207 64% 88%);
  font-size: clamp(1.05rem, 2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-align: center;
  text-shadow: 0 0 24px hsl(207 75% 74% / 0.38), 0 2px 18px hsl(207 52% 4% / 0.8);
  width: min(92vw, 42rem);
  overflow-wrap: anywhere;
}

.hero-role.reveal {
  transform: translate(-50%, calc(-50% + 30px));
}

.hero-role.reveal.is-visible {
  transform: translate(-50%, -50%);
}

.hero-experience {
  position: absolute;
  left: 50%;
  top: 90%;
  z-index: 19;
  margin: 0;
  transform: translate(-50%, -50%);
  color: hsl(207 76% 91%);
  font-size: clamp(0.72rem, 0.96vw, 0.88rem);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 0 18px hsl(207 74% 74% / 0.5), 0 2px 18px hsl(207 56% 4% / 0.88);
  width: min(72vw, 36rem);
  padding: 0;
}

.hero-experience.reveal {
  transform: translate(-50%, calc(-50% + 30px));
}

.hero-experience.reveal.is-visible {
  transform: translate(-50%, -50%);
}

.contact-button {
  display: inline-flex;
  border: 0;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: clamp(0.8rem, 1.3vw, 1rem) clamp(2rem, 4vw, 3rem);
  color: white;
  font-family: inherit;
  font-size: clamp(0.76rem, 1.1vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(123deg, hsl(210 70% 10%) 8%, hsl(205 68% 24%) 54%, hsl(207 48% 46%) 100%);
  box-shadow: 0 12px 28px hsl(207 78% 24% / 0.24), inset 4px 4px 14px hsl(207 70% 72% / 0.14);
  outline: 2px solid hsl(207 60% 76% / 0.72);
  outline-offset: -3px;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), filter 200ms ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  filter: saturate(1.15);
}

.contact-button:active,
.live-button:active {
  transform: scale(0.97);
}

.case-preview {
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 6rem);
  background: var(--surface-0);
  overflow: clip;
}

.chroma-grid {
  --x: 50%;
  --y: 50%;
  --r: 300px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 75rem);
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
}

.chroma-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --spotlight-color: hsl(207 70% 90% / 0.24);
  --card-border: #7fb5dd;
  --card-gradient: linear-gradient(145deg, #0d2b42, #061018);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 20.5rem;
  border: 1px solid hsl(207 24% 35%);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--card-gradient);
  transition: border-color 300ms ease, transform 300ms ease;
  cursor: pointer;
}

.chroma-card:hover {
  border-color: var(--card-border);
  transform: translateY(-2px);
}

.chroma-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--spotlight-color), transparent 70%);
  opacity: 0;
  transition: opacity 500ms ease;
}

.chroma-card:hover::before {
  opacity: 1;
}

.chroma-img-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 14.75rem;
  padding: 0.62rem;
  background: transparent;
}

.chroma-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.75rem;
}

.chroma-info {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  padding: 0.85rem 1rem 1rem;
  color: hsl(207 58% 92%);
}

.chroma-info .name {
  margin: 0;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.chroma-info .handle {
  color: hsl(207 48% 78%);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.chroma-info .role {
  grid-column: 1 / -1;
  margin: 0;
  color: hsl(207 24% 70%);
  font-size: 0.9rem;
  line-height: 1.35;
}

.chroma-overlay,
.chroma-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.chroma-overlay {
  z-index: 3;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: hsl(0 0% 0% / 0.001);
  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    transparent 0%,
    transparent 15%,
    hsl(0 0% 0% / 0.1) 30%,
    hsl(0 0% 0% / 0.22) 45%,
    hsl(0 0% 0% / 0.35) 60%,
    hsl(0 0% 0% / 0.5) 75%,
    hsl(0 0% 0% / 0.68) 88%,
    white 100%
  );
}

.chroma-grid.is-active .chroma-fade {
  opacity: 0;
}

.chroma-fade {
  z-index: 4;
  opacity: 1;
  backdrop-filter: grayscale(1) brightness(0.78);
  -webkit-backdrop-filter: grayscale(1) brightness(0.78);
  background: hsl(0 0% 0% / 0.001);
  transition: opacity 250ms ease;
  mask-image: radial-gradient(
    circle var(--r) at var(--x) var(--y),
    white 0%,
    white 15%,
    hsl(0 0% 100% / 0.9) 30%,
    hsl(0 0% 100% / 0.78) 45%,
    hsl(0 0% 100% / 0.65) 60%,
    hsl(0 0% 100% / 0.5) 75%,
    hsl(0 0% 100% / 0.32) 88%,
    transparent 100%
  );
}

.about {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 2.5rem);
  overflow: clip;
  background:
    radial-gradient(circle at 12% 18%, hsl(201 88% 60% / 0.18), transparent 22rem),
    radial-gradient(circle at 88% 78%, hsl(216 92% 70% / 0.14), transparent 20rem),
    var(--surface-0);
}

.section-center {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: hsl(220 10% 36%);
  text-align: center;
}

.section-heading,
.services-heading {
  margin: 0;
  font-size: var(--title);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.animated-copy {
  max-width: 39rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  color: var(--text-primary);
  font-size: var(--body);
  font-weight: 500;
  line-height: 1.85;
  text-align: center;
}

.animated-copy span {
  opacity: 0.22;
  transition: opacity 220ms ease;
}

.animated-copy span.is-visible {
  opacity: 1;
}

.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 28px;
  --glow-padding: 40px;
  --cone-spread: 25;
  --fill-opacity: 0.5;
  --glow-color: hsl(204deg 82% 74% / 100%);
  --glow-color-60: hsl(204deg 82% 74% / 60%);
  --glow-color-50: hsl(204deg 82% 74% / 50%);
  --glow-color-40: hsl(204deg 82% 74% / 40%);
  --glow-color-30: hsl(204deg 82% 74% / 30%);
  --glow-color-20: hsl(204deg 82% 74% / 20%);
  --glow-color-10: hsl(204deg 82% 74% / 10%);
  --gradient-one: radial-gradient(at 80% 55%, #8ec5ff 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #b7d6ef 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #2d8cc2 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #6ea8c9 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #d7e6f4 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #3e6f96 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #78a9d2 0px, transparent 50%);
  --gradient-base: linear-gradient(#8ec5ff 0 100%);
  position: relative;
  display: grid;
  width: min(100%, 72rem);
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: var(--border-radius);
  isolation: isolate;
  overflow: visible;
  background: var(--card-bg, #120f17);
  box-shadow:
    0 1px 2px hsl(0 0% 0% / 0.18),
    0 12px 30px hsl(207 58% 3% / 0.28),
    0 32px 70px hsl(207 58% 3% / 0.34);
  transform: translate3d(0, 0, 0.01px);
}

.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
}

.border-glow-card:not(:hover)::before,
.border-glow-card:not(:hover)::after,
.border-glow-card:not(:hover) > .edge-light {
  opacity: 0;
  transition: opacity 0.75s ease-in-out;
}

.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg, #120f17) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%)
  );
}

.border-glow-card::after {
  border: 1px solid transparent;
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;
  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  mask-composite: subtract, add, add, add, add, add;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  z-index: 1;
  pointer-events: none;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
}

.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30),
    inset 0 0 25px 2px var(--glow-color-20),
    inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 3px 0 var(--glow-color-50),
    0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30),
    0 0 25px 2px var(--glow-color-20),
    0 0 50px 2px var(--glow-color-10);
}

.border-glow-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
}

.about-card-inner {
  min-height: clamp(34rem, 64vw, 46rem);
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  background:
    linear-gradient(135deg, hsl(207 54% 10% / 0.94), hsl(207 46% 15% / 0.9)),
    radial-gradient(circle at 30% 20%, hsl(207 72% 70% / 0.16), transparent 26rem);
}

.about-card .section-heading {
  max-width: 58rem;
  color: var(--text-primary);
  font-size: clamp(2.2rem, 5.6vw, 4.8rem);
  line-height: 1.08;
  text-align: center;
}

.about-card .animated-copy {
  max-width: 46rem;
  color: hsl(207 42% 82%);
}

.award-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  width: min(100%, 46rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid hsl(207 52% 78% / 0.16);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  background: hsl(207 58% 7% / 0.3);
}

.award-panel strong {
  grid-row: 1 / 3;
  color: hsl(207 70% 86%);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
}

.award-panel span {
  align-self: end;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 600;
}

.award-panel p {
  margin: 0;
  color: hsl(207 28% 72%);
  font-size: 0.92rem;
  line-height: 1.55;
}

.about-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.2rem);
}

.about-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  border: 1px solid hsl(207 52% 78% / 0.16);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: hsl(207 28% 76%);
  background: hsl(207 58% 7% / 0.28);
  font-size: 0.86rem;
}

.about-stats strong {
  color: var(--text-primary);
  font-size: 1.12rem;
}

.contact-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: clamp(1.35rem, 3vw, 2rem);
}

.contact-chips a,
.contact-chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  border: 1px solid hsl(207 52% 78% / 0.18);
  border-radius: 0.5rem;
  padding: 0.7rem 1rem;
  color: hsl(207 56% 86%);
  background: hsl(207 58% 7% / 0.34);
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
}

.contact-chips b {
  color: hsl(207 28% 62%);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.services {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 2.5rem);
  color: var(--ink);
  background: var(--paper);
  border-radius: clamp(2.5rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4rem) 0 0;
}

.services-heading {
  color: var(--ink);
  text-align: center;
  margin-bottom: clamp(3.5rem, 8vw, 7rem);
}

.service-list {
  max-width: 64rem;
  margin: 0 auto;
  border-top: 1px solid hsl(12 12% 8% / 0.15);
}

.service-item {
  display: grid;
  grid-template-columns: minmax(5rem, 0.38fr) 1fr;
  gap: clamp(1rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-bottom: 1px solid hsl(12 12% 8% / 0.15);
}

.service-item span,
.project-number {
  color: var(--ink);
  font-size: clamp(3rem, 10vw, 8.75rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.service-item h3 {
  margin: 0 0 0.8rem;
  color: var(--ink);
  font-size: var(--heading);
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
}

.service-item p {
  max-width: 44rem;
  margin: 0;
  color: hsl(220 10% 28% / 0.78);
  font-size: clamp(0.92rem, 1.6vw, 1.25rem);
  font-weight: 300;
  line-height: 1.8;
}

.projects {
  position: relative;
  z-index: 5;
  margin-top: clamp(-3.5rem, -5vw, -2.5rem);
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 2.5rem) 6rem;
  background: var(--surface-0);
  border-radius: clamp(2.5rem, 6vw, 4rem) clamp(2.5rem, 6vw, 4rem) 0 0;
}

.project-chroma {
  width: min(100%, 75rem);
  margin: clamp(3rem, 8vw, 6rem) auto 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-chroma .chroma-card {
  min-height: 20.5rem;
}

.case-modal,
.call-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.case-modal.is-open,
.call-modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: hsl(207 56% 4% / 0.78);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 72rem);
  max-height: min(88dvh, 56rem);
  overflow: auto;
  border: 1px solid hsl(207 48% 72% / 0.2);
  border-radius: 1.5rem;
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(145deg, hsl(207 46% 12%), hsl(207 54% 7%));
  box-shadow: 0 30px 100px hsl(207 70% 3% / 0.62);
}

.modal-close {
  position: sticky;
  top: 0;
  z-index: 3;
  float: right;
  border: 1px solid hsl(207 48% 72% / 0.28);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  background: hsl(207 50% 8% / 0.8);
  font: inherit;
  cursor: pointer;
}

.modal-copy h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.modal-copy p:last-child {
  margin: 0.85rem 0 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.modal-gallery img {
  width: 100%;
  min-height: 14rem;
  max-height: 28rem;
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid hsl(207 48% 72% / 0.16);
}

.call-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  border: 1px solid hsl(207 48% 72% / 0.22);
  border-radius: 1.25rem;
  padding: clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(145deg, hsl(207 48% 13%), hsl(207 56% 7%));
  box-shadow: 0 30px 90px hsl(207 70% 3% / 0.62);
}

.call-panel h2 {
  margin: 0.35rem 0 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.call-number {
  margin: 1rem 0 1.35rem;
  color: hsl(207 70% 88%);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.call-action {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  color: white;
  font-weight: 700;
  background: linear-gradient(123deg, hsl(210 70% 12%), hsl(205 68% 30%), hsl(207 52% 52%));
  outline: 2px solid hsl(207 60% 76% / 0.72);
  outline-offset: -3px;
}

.projects > .eyebrow,
.projects > .section-heading {
  text-align: center;
}

.project-stack {
  max-width: 86rem;
  margin: clamp(3rem, 8vw, 6rem) auto 0;
}

.project-card {
  position: sticky;
  top: calc(5rem + var(--i) * 1.75rem);
  min-height: 78dvh;
  margin-bottom: 4rem;
  padding: clamp(1rem, 3vw, 2rem);
  border: 2px solid hsl(203 36% 88% / 0.82);
  border-radius: clamp(2rem, 5vw, 3.75rem);
  background: hsl(0 0% 5%);
  box-shadow: 0 34px 80px hsl(0 0% 0% / 0.32);
  transform-origin: top center;
}

.project-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.project-meta .project-number {
  color: var(--text-primary);
}

.project-meta p {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-meta h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.3rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
}

.live-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 2px solid hsl(203 36% 88% / 0.82);
  border-radius: 999px;
  padding: 0.8rem clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-primary);
  font-size: clamp(0.78rem, 1.1vw, 0.96rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 200ms ease, background 200ms ease;
}

.live-button:hover {
  background: hsl(203 36% 88% / 0.1);
  transform: translateY(-1px);
}

.project-grid {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.project-grid > div {
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.project-grid img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: clamp(1.5rem, 4vw, 3.3rem);
}

.project-grid > div img:first-child {
  height: clamp(8.5rem, 16vw, 14.375rem);
}

.project-grid > div img:last-child {
  height: clamp(11rem, 22vw, 21.25rem);
}

.project-grid > img {
  height: clamp(21rem, 41vw, 36.8rem);
}

.contact {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 8vw, 6rem);
  align-items: end;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.25rem, 4vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  overflow: hidden;
  background: hsl(207 46% 10%);
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -2;
  background-image: url("./public/assets/projects/footer-bg-2.jpg");
  background-position: 72% 46%;
  background-size: min(58rem, 76vw) auto;
  background-repeat: no-repeat;
  filter: blur(12px);
  opacity: 0.26;
  transform: scale(1.06);
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, hsl(207 46% 10% / 0.94), hsl(207 46% 10% / 0.58));
}

.footer-heading {
  max-width: 52rem;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2.4rem, 7vw, 7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.contact-lines {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
}

.contact-lines a {
  transition: color 200ms ease, transform 200ms ease;
}

.contact-lines a:hover {
  color: var(--text-primary);
  transform: translateX(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 700ms cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 700ms cubic-bezier(0.25, 0.1, 0.25, 1);
  transition-delay: var(--delay, 0ms);
}

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

@media (max-width: 820px) {
  .hero-bottom {
    align-items: flex-end;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    position: relative;
    top: auto;
    min-height: auto;
    margin-bottom: 1.5rem;
  }

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

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

  .project-grid > img,
  .project-grid > div img:first-child,
  .project-grid > div img:last-child {
    height: clamp(14rem, 58vw, 24rem);
  }

  .live-button {
    width: max-content;
  }

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

  .contact-lines {
    justify-items: start;
  }

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

@media (max-width: 560px) {
  .nav {
    top: 1rem;
    left: 1rem;
  }

  .hero-title-wrap {
    margin-top: 2rem;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-button {
    width: 100%;
  }

  .hero .hero-experience {
    position: absolute;
    left: 50vw;
    right: auto;
    top: auto;
    bottom: 5.2rem;
    width: min(88vw, 22rem);
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.02em;
  }

  .hero .hero-experience.reveal,
  .hero .hero-experience.reveal.is-visible {
    transform: translateX(-50%);
  }

  .about,
  .services,
  .projects {
    padding-inline: 1rem;
  }

  .chroma-grid,
  .project-chroma {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .chroma-card,
  .project-chroma .chroma-card {
    min-height: 21rem;
  }

  .hero-role {
    top: 49%;
    width: min(76vw, 22rem);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }

  .award-panel,
  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .award-panel strong {
    grid-row: auto;
  }

  .contact-chips {
    justify-content: stretch;
  }

  .contact-chips a,
  .contact-chips span {
    width: 100%;
  }
}

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