:root {
  color-scheme: dark;
  --bg: #080909;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.085);
  --ink: #f6f4ef;
  --muted: rgba(246, 244, 239, 0.62);
  --line: rgba(246, 244, 239, 0.1);
  --line-strong: rgba(246, 244, 239, 0.18);
  --accent: #e8ff65;
  --radius: 1.1rem;
  --page-pad: clamp(0.75rem, 1.45vw, 1.18rem);
  --font: "Inter Tight", "Manrope", "Roboto", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(232, 255, 101, 0.08), transparent 22rem),
    radial-gradient(circle at 88% 20%, rgba(75, 102, 255, 0.13), transparent 28rem),
    linear-gradient(135deg, #050606 0%, #101112 100%);
  color: var(--ink);
  font-family: var(--font);
}

a {
  color: inherit;
}

.page-shell {
  display: grid;
  width: 100%;
  height: 100svh;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr);
  gap: clamp(0.8rem, 1.8vw, 2rem);
  padding: var(--page-pad);
}

.intro-panel {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  align-content: stretch;
  gap: clamp(0.58rem, 1.1vw, 0.96rem);
  overflow: hidden;
  border-right: 0;
  padding: 0 clamp(1rem, 2vw, 1.9rem) 0 0;
}

.intro-card {
  display: grid;
  gap: clamp(0.58rem, 1.05vw, 0.92rem);
  align-content: start;
  padding: clamp(0.72rem, 1.45vh, 1.15rem) 0 clamp(0.5rem, 1vh, 0.85rem);
}

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

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

.hero-name {
  display: grid;
  max-width: 100%;
  gap: 0.08em;
}

.hero-name,
h1 {
  max-width: 100%;
  font-size: clamp(2.25rem, min(4.85vw, 8.4vh), 4.85rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
}

.hero-name-row {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(0.52rem, 1vw, 0.9rem);
}

.contact-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.36rem;
  transform: translateY(-0.02em);
  z-index: 1;
}

.contact-pill {
  display: inline-flex;
  width: max-content;
  min-width: clamp(1.92rem, 2.48vw, 2.38rem);
  max-width: clamp(1.92rem, 2.48vw, 2.38rem);
  height: clamp(1.92rem, 2.48vw, 2.38rem);
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid rgba(246, 244, 239, 0.34);
  border-radius: 999px;
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  text-decoration: none;
  transition:
    max-width 280ms cubic-bezier(0.18, 0.86, 0.26, 1),
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  max-width: 14rem;
  border-color: rgba(246, 244, 239, 0.74);
  background: rgba(246, 244, 239, 0.08);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.22);
}

.contact-pill:nth-child(1) {
  --glass-a: rgba(255, 63, 63, 0.86);
  --glass-b: rgba(120, 10, 28, 0.42);
}

.contact-pill:nth-child(2) {
  --glass-a: rgba(42, 170, 255, 0.86);
  --glass-b: rgba(26, 82, 190, 0.42);
}

.contact-pill:nth-child(3) {
  --glass-a: rgba(188, 226, 79, 0.78);
  --glass-b: rgba(53, 76, 20, 0.55);
}

.contact-pill:hover,
.contact-pill:focus-visible {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, var(--glass-a), var(--glass-b));
}

.contact-icon {
  display: inline-grid;
  width: clamp(1.92rem, 2.48vw, 2.38rem);
  height: 100%;
  flex: 0 0 auto;
  place-items: center;
}

.contact-icon svg {
  width: 1.02rem;
  height: 1.02rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-icon-hh {
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.contact-label {
  padding-right: 0.74rem;
  white-space: nowrap;
  font-size: clamp(0.58rem, 0.72vw, 0.7rem);
  font-weight: 750;
  line-height: 1;
}

.lead {
  max-width: 34rem;
  margin-top: clamp(0.62rem, 1.55vh, 1.2rem);
  color: var(--muted);
  font-size: clamp(0.8rem, min(0.96vw, 1.8vh), 0.98rem);
  font-weight: 400;
  line-height: 1.3;
}

.primary-link,
.secondary-link,
.case-card a {
  display: inline-flex;
  min-height: 2.22rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 0.85rem;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-link {
  background: var(--ink);
  color: #080909;
}

.secondary-link {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.primary-link:hover,
.secondary-link:hover,
.case-card a:hover {
  transform: translateY(-1px);
}

.content-panel {
  position: relative;
  height: calc(100% + var(--page-pad) * 2);
  min-height: 0;
  margin-block: calc(var(--page-pad) * -1);
  overflow: hidden;
  --top-fade-opacity: 0;
  --bottom-fade-opacity: 0;
}

.content-panel::before,
.content-panel::after {
  position: absolute;
  right: clamp(1.2rem, 1.7vw, 1.8rem);
  left: 0;
  z-index: 3;
  height: calc(var(--page-pad) + clamp(2.2rem, 5.8vh, 4rem));
  content: "";
  pointer-events: none;
  transition: opacity 520ms ease;
}

.content-panel::before {
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 9, 9, 0.54) 0%,
    rgba(8, 9, 9, 0.28) 42%,
    rgba(8, 9, 9, 0.1) 72%,
    rgba(8, 9, 9, 0) 100%
  );
  opacity: var(--top-fade-opacity);
}

.content-panel::after {
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(8, 9, 9, 0.54) 0%,
    rgba(8, 9, 9, 0.28) 42%,
    rgba(8, 9, 9, 0.1) 72%,
    rgba(8, 9, 9, 0) 100%
  );
  opacity: var(--bottom-fade-opacity);
}

.content-panel.has-top-overflow {
  --top-fade-opacity: 1;
}

.content-panel.has-bottom-overflow {
  --bottom-fade-opacity: 1;
}

.content-flow {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding: var(--page-pad) clamp(1.2rem, 1.7vw, 1.8rem) var(--page-pad) 0;
  scrollbar-width: none;
}

.content-flow::-webkit-scrollbar {
  display: none;
}

.scroll-ruler {
  position: fixed;
  top: clamp(0.9rem, 1.45vw, 1.18rem);
  right: clamp(0.55rem, 0.9vw, 0.8rem);
  z-index: 10;
  display: grid;
  width: 1.25rem;
  height: calc(100svh - clamp(1.8rem, 2.9vw, 2.36rem));
  align-content: space-between;
  justify-items: end;
  pointer-events: none;
}

.ruler-mark {
  width: 0.34rem;
  height: 1px;
  border-radius: 999px;
  background: rgba(246, 244, 239, 0.22);
  transition:
    width 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.ruler-mark:nth-child(5n) {
  width: 0.52rem;
  background: rgba(246, 244, 239, 0.32);
}

.ruler-mark.is-near {
  width: 0.78rem;
  background: rgba(246, 244, 239, 0.54);
}

.ruler-mark.is-active {
  width: 1.14rem;
  background: rgba(232, 255, 101, 0.88);
}

.section-block {
  border-top: 1px solid var(--line);
  padding: clamp(0.48rem, 0.95vw, 0.86rem) 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skills-section {
  padding-top: 0;
}

.intro-panel .section-block:first-of-type {
  border-top: 0;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: clamp(0.64rem, 1.25vh, 1rem);
}

.section-title h2 {
  font-size: clamp(1.18rem, min(2vw, 3.5vh), 2.28rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.chip-grid span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.39rem 0.58rem;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(246, 244, 239, 0.76);
  font-size: clamp(0.68rem, 0.74vw, 0.78rem);
  font-weight: 650;
  line-height: 1;
}

.impact-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  min-height: 0;
  gap: clamp(0.5rem, 0.9vw, 0.72rem);
}

.grid-mark {
  position: absolute;
  z-index: 3;
  width: clamp(0.72rem, 1.4vw, 1.05rem);
  height: clamp(0.72rem, 1.4vw, 1.05rem);
  color: rgba(246, 244, 239, 0.28);
  pointer-events: none;
}

.grid-mark::before,
.grid-mark::after {
  position: absolute;
  background: currentColor;
  content: "";
}

.mark-tc,
.mark-mc1,
.mark-mc2,
.mark-bc {
  left: 50%;
  transform: translateX(-50%);
}

.mark-tc {
  top: 0;
}

.mark-bc {
  bottom: 0;
}

.mark-ml1,
.mark-mc1,
.mark-mr1 {
  top: 33.333%;
}

.mark-ml2,
.mark-mc2,
.mark-mr2 {
  top: 66.666%;
}

.mark-ml1,
.mark-ml2 {
  left: 0;
  transform: translateY(-50%);
}

.mark-mr1,
.mark-mr2 {
  right: 0;
  transform: translateY(-50%);
}

.mark-mc1,
.mark-mc2 {
  transform: translate(-50%, -50%);
}

.mark-mc1::before,
.mark-mc2::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.mark-mc1::after,
.mark-mc2::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.mark-tc::before,
.mark-bc::before,
.mark-ml1::after,
.mark-ml2::after,
.mark-mr1::after,
.mark-mr2::after {
  display: none;
}

.mark-tc::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 72%;
  transform: translateX(-50%);
}

.mark-bc::after {
  bottom: 0;
  left: 50%;
  width: 1px;
  height: 72%;
  transform: translateX(-50%);
}

.mark-ml1::before,
.mark-ml2::before,
.mark-mr1::before,
.mark-mr2::before {
  top: 50%;
  width: 72%;
  height: 1px;
  transform: translateY(-50%);
}

.mark-ml1::before,
.mark-ml2::before {
  left: 0;
}

.mark-mr1::before,
.mark-mr2::before {
  right: 0;
}

.impact-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  align-content: stretch;
  justify-items: center;
  gap: clamp(0.22rem, 0.48vh, 0.42rem);
  border: 0;
  border-radius: 0;
  padding: clamp(0.24rem, 0.62vw, 0.54rem);
  overflow: hidden;
  background: transparent;
  text-align: center;
}

.impact-card::before {
  content: none;
}

.impact-icon {
  display: block;
  width: min(78%, clamp(3.2rem, 7.2vw, 5.65rem));
  max-width: 100%;
  height: 100%;
  max-height: clamp(3.1rem, 10.5vh, 5.65rem);
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0.58rem 0.9rem rgba(0, 0, 0, 0.24));
}

.impact-grid strong {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(0.9rem, 1.1vw, 1.2rem);
  font-weight: 300;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.intro-panel .section-block {
  border-top: 0;
}

.intro-panel #impact {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.intro-panel #impact .impact-grid {
  align-content: stretch;
  height: 100%;
}

.intro-panel #impact .impact-grid .impact-card {
  min-height: 0;
}

.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.82rem;
}

.cases-section {
  border-top: 0;
  padding: 0;
}

.case-card {
  display: grid;
  height: auto;
  min-height: clamp(12.6rem, 20vh, 15rem);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.case-card,
.case-card.is-large {
  grid-template-columns: minmax(15rem, 38%) minmax(0, 1fr);
}

.case-art {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.22), transparent 24%),
    radial-gradient(circle at 86% 78%, rgba(232, 255, 101, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
}

.case-card:not(.is-large) .case-art {
  min-height: 0;
}

.case-art::after {
  position: absolute;
  width: clamp(3.4rem, 7vw, 5.2rem);
  aspect-ratio: 1;
  border: 1px solid rgba(246, 244, 239, 0.3);
  border-radius: 1.35rem;
  background:
    linear-gradient(135deg, rgba(246, 244, 239, 0.24), rgba(246, 244, 239, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 1rem 2.5rem rgba(0, 0, 0, 0.24);
  content: "";
  pointer-events: none;
  backdrop-filter: blur(18px);
}

.case-art::before {
  position: absolute;
  z-index: 1;
  width: clamp(1.45rem, 3vw, 2.1rem);
  aspect-ratio: 1;
  background: rgba(246, 244, 239, 0.7);
  content: "";
  mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 5.75C5 4.78 5.78 4 6.75 4h10.5C18.22 4 19 4.78 19 5.75v12.5c0 .97-.78 1.75-1.75 1.75H6.75C5.78 20 5 19.22 5 18.25V5.75Zm1.5 0v8.8l2.64-2.64a1.5 1.5 0 0 1 2.12 0l1.27 1.27 3.06-3.06a1.5 1.5 0 0 1 2.12 0l-.21-.21v-4.16a.25.25 0 0 0-.25-.25H6.75a.25.25 0 0 0-.25.25Zm11 6.28-3.91 3.91a1.5 1.5 0 0 1-2.12 0L10.2 14.67 6.5 18.37c.05.08.14.13.25.13h10.5a.25.25 0 0 0 .25-.25v-6.22ZM9.5 8.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 5.75C5 4.78 5.78 4 6.75 4h10.5C18.22 4 19 4.78 19 5.75v12.5c0 .97-.78 1.75-1.75 1.75H6.75C5.78 20 5 19.22 5 18.25V5.75Zm1.5 0v8.8l2.64-2.64a1.5 1.5 0 0 1 2.12 0l1.27 1.27 3.06-3.06a1.5 1.5 0 0 1 2.12 0l-.21-.21v-4.16a.25.25 0 0 0-.25-.25H6.75a.25.25 0 0 0-.25.25Zm11 6.28-3.91 3.91a1.5 1.5 0 0 1-2.12 0L10.2 14.67 6.5 18.37c.05.08.14.13.25.13h10.5a.25.25 0 0 0 .25-.25v-6.22ZM9.5 8.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0Z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.case-copy {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.68rem;
  align-content: stretch;
  padding: 1rem;
}

.case-copy h3 {
  max-width: none;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
}

.case-copy p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.case-card a {
  width: fit-content;
  min-height: 2.1rem;
  margin-top: auto;
  padding: 0 0.82rem;
  background: #f6f4ef;
  color: #080909;
  font-size: 0.72rem;
}

.case-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 520ms ease,
    transform 520ms cubic-bezier(0.18, 0.86, 0.26, 1);
}

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

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .page-shell {
    height: auto;
    min-height: 100svh;
    grid-template-columns: 1fr;
  }

  .intro-panel {
    position: static;
    height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px dashed var(--line-strong);
    padding: 0 0 1rem;
    gap: 1.5rem;
  }

  .content-panel,
  .content-flow {
    height: auto;
    overflow: visible;
  }

  .content-panel {
    margin-block: 0;
  }

  .content-panel::before,
  .content-panel::after {
    display: none;
  }

  .content-flow {
    padding: 0 0 4rem;
  }

  .intro-card {
    max-width: 44rem;
    padding-top: 1rem;
  }

  .hero-name,
  h1 {
    max-width: 100%;
  }
}

@media (min-width: 1121px) and (max-height: 820px) {
  .page-shell {
    padding: 0.72rem;
  }

  .intro-panel {
    gap: 0.42rem;
    padding-right: 1rem;
  }

  .eyebrow {
    font-size: 0.62rem;
  }

  .hero-name,
  h1 {
    font-size: clamp(2rem, 4.2vw, 4.25rem);
  }

  .contact-actions {
    gap: 0.24rem;
  }

  .contact-pill {
    min-width: 1.68rem;
    max-width: 1.68rem;
    height: 1.68rem;
  }

  .contact-pill:hover,
  .contact-pill:focus-visible {
    max-width: 12rem;
  }

  .contact-icon {
    width: 1.68rem;
  }

  .contact-icon svg {
    width: 0.86rem;
    height: 0.86rem;
  }

  .contact-label {
    padding-right: 0.56rem;
    font-size: 0.58rem;
  }

  .lead {
    font-size: 0.78rem;
    line-height: 1.22;
  }

  .primary-link,
  .secondary-link {
    min-height: 1.9rem;
    padding: 0 0.72rem;
    font-size: 0.68rem;
  }

  .section-block {
    padding: 0.42rem 0;
  }

  .section-title {
    margin-bottom: 0.34rem;
  }

  .section-title span {
    font-size: 0.64rem;
  }

  .section-title h2 {
    font-size: clamp(1rem, 1.7vw, 1.75rem);
  }

  .chip-grid span {
    padding: 0.31rem 0.46rem;
    font-size: 0.62rem;
  }

  .impact-grid {
    gap: 0.34rem;
  }

  .impact-card {
    gap: 0.18rem;
    padding: 0.18rem;
  }

  .impact-icon {
    width: min(78%, 3.15rem);
    max-height: 3rem;
  }

  .impact-grid strong {
    font-size: 0.76rem;
  }
}

@media (max-width: 720px) {
  :root {
    --page-pad: 0.85rem;
  }

  .page-shell {
    padding: var(--page-pad);
  }

  .intro-panel {
    gap: 1rem;
  }

  .impact-grid,
  .case-card,
  .case-card.is-large {
    grid-template-columns: 1fr;
  }

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

  .case-card {
    height: auto;
  }

  .case-art,
  .case-card:not(.is-large) .case-art {
    min-height: 0;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 1120px) {
  .scroll-ruler {
    display: none;
  }
}

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

  .case-card {
    opacity: 1;
    transform: none;
  }
}
