:root {
  --bg: #000;
  --text: #f2f2f2;
  --muted: rgb(242, 242, 242);
  --line: rgba(242, 242, 242, 0.1);
  --line-soft: rgba(242, 242, 242, 0.06);
  --accent-rgb: 253, 33, 110;
  --accent: #FD216E;
  --space-x: clamp(16px, 3.4vw, 48px);
  --nav-h: 48px;
  --tabs-h: 56px;
  --fs-h1: clamp(42px, 7vw, 88px);
  --fs-h2: clamp(34px, 5vw, 64px);
  --fs-h3: clamp(24px, 3vw, 42px);
  --fs-h4: clamp(18px, 2vw, 28px);
  --fs-body: clamp(15px, 1.2vw, 19px);
}

@property --shiny-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Instrument Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  position: relative;
}

body.is-loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 360ms ease, visibility 0s linear 360ms;
}

.page-loader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.page-loader.is-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader-inner {
  width: min(420px, 100%);
}

.page-loader-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.72);
}

.page-loader-value {
  margin: 0 0 14px;
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.9;
  font-weight: 600;
  color: var(--accent);
}

.page-loader-track {
  position: relative;
  height: 2px;
  width: 100%;
  overflow: hidden;
  background: rgba(242, 242, 242, 0.15);
}

.page-loader-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(253, 33, 110, 0.32), #FD216E 55%, rgba(253, 33, 110, 0.8));
  transform-origin: left center;
  transform: scaleX(0);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 260;
  pointer-events: none;
  background: rgba(242, 242, 242, 0.08);
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: var(--accent);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.42);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: soft-light;
  background-image: radial-gradient(rgba(242, 242, 242, 0.85) 0.35px, transparent 0.35px);
  background-size: 3px 3px;
}

#particles-bg {
  position: fixed;
  inset: -80px 0;
  z-index: 3;
  pointer-events: none;
  opacity: 1;
  will-change: transform;
  transform-origin: center center;
}

#particles-bg canvas {
  display: block;
  width: 100%;
  height: 100%;
}

body.menu-open {
  overflow: hidden;
}

main,
.site-nav {
  position: relative;
  z-index: 2;
}

main {
  isolation: isolate;
}

main > :not(#particles-bg) {
  position: relative;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader {
    transition: none;
  }

  #particles-bg {
    display: none;
  }
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 500;
}

p {
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--muted);
}

strong {
  color: var(--text);
  font-weight: 600;
}

small {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.75);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgb(242, 242, 242);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -56px;
  z-index: 9999;
  background: rgb(242, 242, 242);
  color: #000;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  top: 12px;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  pointer-events: none;
}

.nav-shell {
  height: var(--nav-h);
  margin-top: 12px;
  padding: 0 var(--space-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
}

.brand,
.nav-desktop a,
.nav-mobile a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand {
  position: relative;
  z-index: 202;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 40px);
}

.nav-desktop a {
  opacity: 0.7;
  transition: opacity 280ms ease;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  pointer-events: auto;
  position: relative;
  z-index: 202;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: rgb(242, 242, 242);
  transform-origin: center;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1), opacity 350ms ease;
}

.menu-open .menu-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 201;
  background: rgba(0, 0, 0, 0.96);
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 16px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}

.nav-mobile a {
  font-size: clamp(42px, 12vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: none;
  font-weight: 500;
  padding: 6px 0;
}

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

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #050505;
}

.hero-media-placeholder {
  position: absolute;
  inset: 0;
  border: 0;
  background-color: #050505;
  background:
    linear-gradient(
      90deg,
      #050505 0%,
      #050505 32%,
      rgba(5, 5, 5, 0.94) 48%,
      rgba(5, 5, 5, 0.68) 64%,
      rgba(5, 5, 5, 0.38) 78%,
      rgba(5, 5, 5, 0.18) 100%
    ),
    url("../../bg-hero.jpg");
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    auto 100%;
  background-position:
    center,
    right center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
  z-index: 3;
}

.hero-marquee {
  position: absolute;
  top: 58%;
  left: 0;
  width: 100%;
  overflow: visible;
  transform: translateY(-50%);
  z-index: 4;
  mix-blend-mode: difference;
}

.hero-marquee-track {
  width: max-content;
  display: flex;
  white-space: nowrap;
  animation: hero-marquee 84s linear infinite;
}

.hero-marquee-track span {
  font-size: clamp(122px, 18vw, 300px);
  line-height: 0.92;
  letter-spacing: 0;
  font-weight: 500;
  color: rgb(242, 242, 242);
}

.hero-meta {
  position: absolute;
  bottom: 28px;
  z-index: 6;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-meta-left {
  left: var(--space-x);
}

.hero-meta-right {
  right: var(--space-x);
  text-align: right;
  font-size: clamp(26px, 3.1vw, 44px);
  letter-spacing: -0.04em;
  text-transform: none;
  line-height: 1.04;
  font-weight: 300;
}

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

.panel {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  padding-top: 48px;
  padding-bottom: clamp(80px, 8vw, 140px);
}

.panel-label {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  left: var(--space-x);
  z-index: 10;
  padding-left: var(--space-x);
  height: 0;
  overflow: visible;
  pointer-events: none;
  font-size: clamp(11px, 0.85vw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.panel-label span {
  width: clamp(16px, 1.5vw, 24px);
  height: 1px;
  background: var(--accent);
}

.panel-label.fixed {
  position: absolute;
}

.panel-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 120px) var(--space-x) 0;
  position: relative;
  z-index: 4;
}

.display-lines {
  margin-bottom: clamp(56px, 7vw, 112px);
  max-width: 980px;
}

.display-lines.compact {
  margin-bottom: clamp(48px, 6vw, 84px);
}

.display-lines .line {
  overflow: visible;
  font-size: clamp(36px, 5.5vw, 84px);
  font-weight: 600;
  line-height: 0.95;
}

.display-lines em {
  color: var(--accent);
  font-style: italic;
}

.copy-block {
  max-width: 690px;
}

.copy-block p,
.section-subtitle {
  margin: 0 0 24px;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.section-subtitle {
  max-width: 560px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.service-list {
  border-top: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 20px;
}

#services .panel-content {
  max-width: none;
  padding-left: calc(var(--space-x) * 2);
  padding-right: var(--space-x);
}

#principles .panel-content {
  max-width: none;
  padding-left: calc(var(--space-x) * 2);
  padding-right: var(--space-x);
}

.service-item {
  --service-card-bg: #0E0F14;
  --service-text: rgb(242, 242, 242);
  --service-title: var(--accent);
  --service-badge: var(--accent);
  --service-watermark: rgba(var(--accent-rgb), 0.09);
  --service-pill-bg: #0E0F14;
  --service-pill-border-rgb: 242, 242, 242;
  --service-pill-text: rgb(242, 242, 242);
  border-bottom: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  padding: clamp(24px, 2.8vw, 36px) 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.service-item::after {
  content: attr(data-service-number);
  position: absolute;
  right: clamp(4px, 1vw, 0px);
  bottom: -20px;
  top: auto;
  transform: none;
  font-size: clamp(180px, 24vw, 460px);
  line-height: 0.78;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--service-watermark);
  z-index: 0;
  pointer-events: none;
}

.service-head,
.service-item p,
.service-plus-list {
  position: relative;
  z-index: 1;
}

.service-item.is-visible {
  background: var(--service-card-bg);
  border: 0;
  border-radius: 18px;
  padding: clamp(30px, 3.2vw, 42px) clamp(18px, 2.2vw, 28px) clamp(20px, 2.5vw, 30px);
}

.service-list .service-item.is-visible:nth-of-type(3n + 1) {
  --service-card-bg: rgb(242, 242, 242);
  --service-text: #0E0F14;
  --service-title: #0E0F14;
  --service-badge: #0E0F14;
  --service-watermark: rgba(14, 15, 20, 0.09);
  --service-pill-bg: rgb(242, 242, 242);
  --service-pill-border-rgb: 14, 15, 20;
  --service-pill-text: #0E0F14;
}

.service-list .service-item.is-visible:nth-of-type(3n + 2) {
  --service-card-bg: var(--accent);
  --service-text: rgb(242, 242, 242);
  --service-title: rgb(242, 242, 242);
  --service-badge: rgb(242, 242, 242);
  --service-watermark: rgba(242, 242, 242, 0.14);
  --service-pill-bg: var(--accent);
  --service-pill-border-rgb: 242, 242, 242;
  --service-pill-text: rgb(242, 242, 242);
}

.service-list .service-item.is-visible:nth-of-type(3n + 3) {
  --service-card-bg: #0E0F14;
  --service-text: rgb(242, 242, 242);
  --service-title: rgb(242, 242, 242);
  --service-badge: rgb(242, 242, 242);
  --service-watermark: rgba(242, 242, 242, 0.08);
  --service-pill-bg: #0E0F14;
  --service-pill-border-rgb: 242, 242, 242;
  --service-pill-text: rgb(242, 242, 242);
}

.service-list .service-item.is-visible:nth-of-type(4) {
  --service-card-bg: #191B24;
  --service-text: rgb(242, 242, 242);
  --service-title: rgb(242, 242, 242);
  --service-badge: rgb(242, 242, 242);
  --service-watermark: rgba(242, 242, 242, 0.08);
  --service-pill-bg: #191B24;
  --service-pill-border-rgb: 242, 242, 242;
  --service-pill-text: rgb(242, 242, 242);
}

#services .service-item .shiny-tag-outer {
  background: conic-gradient(
    from var(--shiny-angle),
    rgba(var(--service-pill-border-rgb), 0.03) 0%,
    rgba(var(--service-pill-border-rgb), 0.12) 4%,
    rgba(var(--service-pill-border-rgb), 0.45) 9%,
    rgba(var(--service-pill-border-rgb), 0.8) 13%,
    rgba(var(--service-pill-border-rgb), 0.45) 17%,
    rgba(var(--service-pill-border-rgb), 0.12) 22%,
    rgba(var(--service-pill-border-rgb), 0.03) 30%,
    rgba(var(--service-pill-border-rgb), 0.03) 100%
  );
  box-shadow:
    0 0 12px rgba(var(--service-pill-border-rgb), var(--shiny-shadow-1)),
    0 0 28px rgba(var(--service-pill-border-rgb), var(--shiny-shadow-2));
}

#services .service-item .shiny-tag-outer::after {
  background: var(--service-pill-bg);
}

#services .service-item .shiny-tag-inner {
  color: var(--service-pill-text);
}

.service-content {
  display: contents;
}

.service-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: static;
  isolation: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: none;
  animation: none;
}

.service-head span {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: auto;
  min-height: auto;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: none;
  animation: none;
  color: var(--service-badge);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.service-head h3 {
  margin: 0;
  font-size: clamp(28px, 3.9vw, 52px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.94;
  color: var(--service-title);
  text-align: left;
  width: 100%;
}

.service-item p {
  grid-column: 1;
  margin: 0;
  color: var(--service-text);
  font-size: clamp(16px, 1.2vw, 21px);
  line-height: 1.45;
  max-width: 58ch;
}

.service-plus-list {
  grid-column: 1;
  align-self: start;
  margin: 0;
  margin-top: 4px;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}

.shiny-tag-outer {
  --shiny-angle: 0deg;
  --shiny-speed: 6s;
  --shiny-delay: 0s;
  --shiny-direction: normal;
  --shiny-shadow-1: 0.08;
  --shiny-shadow-2: 0.04;
  --shiny-hover-1: 0.22;
  --shiny-hover-2: 0.18;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 1px;
  background: conic-gradient(
    from var(--shiny-angle),
    rgba(var(--accent-rgb), 0.03) 0%,
    rgba(var(--accent-rgb), 0.12) 4%,
    rgba(var(--accent-rgb), 0.45) 9%,
    rgba(var(--accent-rgb), 0.8) 13%,
    rgba(var(--accent-rgb), 0.45) 17%,
    rgba(var(--accent-rgb), 0.12) 22%,
    rgba(var(--accent-rgb), 0.03) 30%,
    rgba(var(--accent-rgb), 0.03) 100%
  );
  animation: shiny-border-rotate var(--shiny-speed) linear infinite;
  animation-delay: var(--shiny-delay);
  animation-direction: var(--shiny-direction);
  box-shadow:
    0 0 12px rgba(var(--accent-rgb), var(--shiny-shadow-1)),
    0 0 28px rgba(var(--accent-rgb), var(--shiny-shadow-2));
  transition: box-shadow 0.5s ease, transform 260ms ease;
}

.shiny-tag-outer:nth-child(4n + 1) {
  --shiny-speed: 5.4s;
  --shiny-delay: -1.2s;
  --shiny-shadow-1: 0.09;
  --shiny-shadow-2: 0.05;
}

.shiny-tag-outer:nth-child(4n + 2) {
  --shiny-speed: 6.8s;
  --shiny-delay: -0.45s;
  --shiny-direction: reverse;
  --shiny-shadow-1: 0.075;
  --shiny-shadow-2: 0.035;
  --shiny-hover-1: 0.2;
  --shiny-hover-2: 0.16;
}

.shiny-tag-outer:nth-child(4n + 3) {
  --shiny-speed: 7.4s;
  --shiny-delay: -2.3s;
  --shiny-shadow-1: 0.085;
  --shiny-shadow-2: 0.045;
  --shiny-hover-1: 0.24;
  --shiny-hover-2: 0.2;
}

.shiny-tag-outer:nth-child(4n + 4) {
  --shiny-speed: 5.9s;
  --shiny-delay: -3.1s;
  --shiny-direction: reverse;
  --shiny-shadow-1: 0.07;
  --shiny-shadow-2: 0.03;
}

.shiny-tag-outer::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: rgba(6, 6, 6, 0.97);
  z-index: 0;
}

.shiny-tag-inner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  color: rgb(242, 242, 242);
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 14px;
  line-height: 1;
}

.shiny-tag-outer:is(:hover, :focus-within) {
  transform: translateY(-1px);
  box-shadow:
    0 0 18px rgba(var(--accent-rgb), var(--shiny-hover-1)),
    0 0 38px rgba(var(--accent-rgb), var(--shiny-hover-2)),
    0 12px 26px rgba(var(--accent-rgb), 0.24);
}

.projects {
  padding-bottom: clamp(100px, 10vw, 160px);
}

.projects-tabs-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 52px);
  z-index: 40;
  height: var(--tabs-h);
  border-bottom: 1px solid rgba(242, 242, 242, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-x);
  margin-top: 20px;
}

.projects-tabs {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  overflow: auto;
  scrollbar-width: none;
}

.projects-tabs::-webkit-scrollbar {
  display: none;
}

.projects-tabs button,
.projects-all-link {
  background: transparent;
  border: 0;
  color: rgba(242, 242, 242, 0.56);
  font: inherit;
  font-size: clamp(10px, 0.8vw, 12px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  padding: 0;
}

.projects-tabs button.is-active,
.projects-tabs button:hover,
.projects-all-link:hover {
  color: rgba(242, 242, 242, 0.9);
}

.projects-list {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 4;
}

.project-card {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: clamp(20px, 2vw, 34px);
  min-height: clamp(520px, 65vh, 760px);
  border-top: 1px solid rgba(242, 242, 242, 0.07);
  border-bottom: 1px solid rgba(242, 242, 242, 0.07);
  padding: clamp(34px, 3.6vw, 52px) var(--space-x);
  transition: opacity 350ms ease, transform 350ms ease;
}

.project-card .media-placeholder {
  min-height: clamp(420px, 45vw, 620px);
  border-radius: 18px;
}

.project-year {
  margin: 0 0 10px;
  color: rgba(242, 242, 242, 0.55);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0 0 14px;
  font-size: clamp(17px, 1.75vw, 27px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.project-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.project-body ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(242, 242, 242, 0.75);
}

.has-project-motion .project-card {
  opacity: 0.4;
  transform: translateY(14px) scale(0.99);
}

.has-project-motion .project-card.is-project-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}

.about-intro {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.about-intro .line {
  font-size: clamp(40px, 6vw, 90px);
}

.about-layout {
  margin-bottom: clamp(28px, 3.5vw, 48px);
}

.about-copy {
  max-width: 760px;
  margin-bottom: clamp(26px, 3.4vw, 46px);
}

.about-more-toggle {
  display: none;
}

.service-more-toggle {
  display: none;
}

.about-extra-panel {
  min-width: 0;
}

.portrait-placeholder {
  margin-bottom: clamp(28px, 3vw, 44px);
  min-height: clamp(375px, 38vw, 700px);
  border-radius: 20px;
  border: 1px solid rgba(242, 242, 242, 0.18);
  background-color: #0E0F14;
  background-image: url("../../me.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.facts-list {
  border-top: 1px solid var(--line-soft);
}

.facts-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: clamp(14px, 1.5vw, 24px) 0;
  border-bottom: 1px solid var(--line-soft);
}

.facts-list span {
  font-size: 11px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.8);
}

.facts-list strong {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 24px);
}

.principle-card {
  --card-shiny-speed: 7s;
  --principle-title: rgb(242, 242, 242);
  --principle-badge: var(--accent);
  --principle-watermark: rgba(var(--accent-rgb), 0.09);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.95), rgba(6, 6, 6, 0.92)) padding-box,
    conic-gradient(
        from var(--shiny-angle),
        rgba(var(--accent-rgb), 0.03) 0%,
        rgba(var(--accent-rgb), 0.12) 4%,
        rgba(var(--accent-rgb), 0.45) 9%,
        rgba(var(--accent-rgb), 0.8) 13%,
        rgba(var(--accent-rgb), 0.45) 17%,
        rgba(var(--accent-rgb), 0.12) 22%,
        rgba(var(--accent-rgb), 0.03) 30%,
        rgba(var(--accent-rgb), 0.03) 100%
      )
      border-box;
  animation: shiny-border-rotate var(--card-shiny-speed) linear infinite;
  border-radius: 16px;
  min-height: 150px;
  padding: clamp(18px, 2vw, 24px);
  transition: border-color 280ms ease, box-shadow 280ms ease, transform 280ms ease;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.34),
    0 0 12px rgba(var(--accent-rgb), 0.08),
    0 0 28px rgba(var(--accent-rgb), 0.04),
    inset 0 0 0 1px rgba(242, 242, 242, 0.03);
}

.principle-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.25), rgba(var(--accent-rgb), 0) 64%);
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: 0;
}

.principle-card::after {
  content: attr(data-principle-number);
  position: absolute;
  right: clamp(4px, 1vw, 14px);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(160px, 22vw, 360px);
  line-height: 0.82;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--principle-watermark);
  z-index: 0;
  pointer-events: none;
}

.principle-card > * {
  position: relative;
  z-index: 1;
}

.principle-card h4 {
  margin: 0;
  font-size: clamp(18px, 1.9vw, 28px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 700;
  color: var(--principle-title);
  text-transform: uppercase;
}

.principle-index {
  margin: 0;
  color: var(--principle-badge);
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.principle-card > p:not(.principle-index) {
  display: none;
}

.contact-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg);
}

.contact-inner {
  padding: 0 var(--space-x) 110px;
  overflow: hidden;
  position: relative;
  z-index: 4;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-links a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.9);
}

.contact-links.top {
  margin-bottom: 18px;
  position: relative;
  z-index: 6;
}

.contact-links.bottom {
  margin-top: 26px;
}

.contact-inner h2 {
  margin: 0;
  font-size: clamp(120px, 16vw, 360px);
  line-height: 0.68;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.media-placeholder {
  display: grid;
  place-items: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 242, 242, 0.88);
  border: 1px solid rgba(0, 182, 182, 0.4);
  background:
    linear-gradient(120deg, rgba(154, 119, 255, 0.2), rgba(0, 182, 182, 0.18)),
    repeating-linear-gradient(
      -45deg,
      rgba(242, 242, 242, 0.06) 0,
      rgba(242, 242, 242, 0.06) 12px,
      rgba(0, 182, 182, 0.05) 12px,
      rgba(0, 182, 182, 0.05) 24px
    ),
    #0b0f1f;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes shiny-border-rotate {
  from {
    --shiny-angle: 0deg;
  }
  to {
    --shiny-angle: 360deg;
  }
}

@media (min-width: 981px) {
  .principles-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .service-item {
    padding-top: 150px;
  }

  .service-item.is-visible {
    padding-top: 150px;
  }

  .principles-grid {
    gap: 20px;
  }

  .principle-card {
    --principle-card-bg: #0E0F14;
    --principle-title: rgb(242, 242, 242);
    --principle-badge: rgb(242, 242, 242);
    --principle-watermark: rgba(242, 242, 242, 0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: 0;
    border-radius: 18px;
    background: var(--principle-card-bg);
    animation: none;
    min-height: auto;
    padding: 100px clamp(18px, 2.2vw, 28px) clamp(20px, 2.5vw, 30px);
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.34),
      0 0 12px rgba(var(--accent-rgb), 0.08),
      0 0 28px rgba(var(--accent-rgb), 0.04),
      inset 0 0 0 1px rgba(242, 242, 242, 0.03);
  }

  .principle-card::after {
    right: clamp(4px, 1vw, 0px);
    bottom: -10px;
    top: auto;
    transform: none;
    font-size: clamp(180px, 10vw, 460px);
    line-height: 0.78;
    color: var(--principle-watermark);
  }

  .principle-card::before {
    inset: auto 0 0 0;
    height: 80%;
    opacity: 0;
  }

  .principle-index {
    margin: 0;
    color: var(--principle-badge);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
  }

  .principle-card h4 {
    margin: 0;
    font-size: clamp(19px, 2.2vw, 30px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.94;
    color: var(--principle-title);
    text-align: left;
    width: 100%;
    text-transform: uppercase;
  }

  .principles-grid .principle-card.is-visible:nth-of-type(3n + 1) {
    --principle-card-bg: rgb(242, 242, 242);
    --principle-title: #0E0F14;
    --principle-badge: #0E0F14;
    --principle-watermark: rgba(14, 15, 20, 0.09);
  }

  .principles-grid .principle-card.is-visible:nth-of-type(3n + 2) {
    --principle-card-bg: var(--accent);
    --principle-title: rgb(242, 242, 242);
    --principle-badge: rgb(242, 242, 242);
    --principle-watermark: rgba(242, 242, 242, 0.14);
  }

  .principles-grid .principle-card.is-visible:nth-of-type(3n + 3) {
    --principle-card-bg: #0E0F14;
    --principle-title: rgb(242, 242, 242);
    --principle-badge: rgb(242, 242, 242);
    --principle-watermark: rgba(242, 242, 242, 0.08);
  }

  .principles-grid .principle-card.is-visible:nth-of-type(4) {
    --principle-card-bg: #191B24;
    --principle-title: rgb(242, 242, 242);
    --principle-badge: rgb(242, 242, 242);
    --principle-watermark: rgba(242, 242, 242, 0.08);
  }
}

@media (max-width: 980px) {
  .hero {
    height: 60vh;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-meta-right {
    right: 16px;
    left: 16px;
    text-align: left;
    font-size: clamp(28px, 9vw, 48px);
    bottom: 16px;
  }

  .hero-meta-left {
    left: 16px;
    bottom: 118px;
  }

  .hero-marquee-track {
    animation-duration: 140s;
  }

  .hero-marquee-track span {
    font-size: clamp(84px, 22vw, 150px);
  }

  .panel {
    min-height: auto;
    padding-top: 32px;
  }

  .panel-label {
    top: calc(var(--nav-h) + 20px);
    padding-left: 16px;
  }

  .panel-content {
    padding: clamp(86px, 16vw, 132px) 16px 0;
  }

  .service-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .service-item,
  .service-item.is-visible {
    width: 100%;
  }

  .service-item,
  .project-card,
  .two-col,
  .principles-grid {
    grid-template-columns: 1fr;
  }

  .two-col {
    gap: clamp(20px, 5vw, 96px);
  }

  #services .panel-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  #principles .panel-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .service-item {
    gap: 0;
    min-height: 74px;
    max-height: 120px;
    border: 0;
    border-radius: 18px;
    padding: 20px 16px 16px;
    box-shadow:
      0 14px 28px rgba(0, 0, 0, 0.34),
      0 0 12px rgba(var(--accent-rgb), 0.08),
      0 0 28px rgba(var(--accent-rgb), 0.04),
      inset 0 0 0 1px rgba(242, 242, 242, 0.03);
    align-items: center;
    transition:
      max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
      padding-top 520ms cubic-bezier(0.22, 1, 0.36, 1),
      padding-bottom 520ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 380ms ease;
  }

  #services .service-item {
    overflow: hidden;
    will-change: max-height;
    transition:
      max-height 560ms cubic-bezier(0.22, 1, 0.36, 1),
      padding-top 520ms cubic-bezier(0.22, 1, 0.36, 1),
      padding-bottom 520ms cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 380ms ease;
  }

  .service-item::after {
    top: 0;
    bottom: auto;
    transform: none;
    opacity: 0.58;
    transition:
      top 620ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 420ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0s;
  }

  #services .service-item.is-service-expanded {
    max-height: 420px;
  }

  #services .service-item.is-service-expanded::after {
    top: calc(100% - 0.78em - 10px);
    bottom: auto;
    transform: none;
    opacity: 1;
    transition-delay: 360ms, 0ms;
  }

  .service-content {
    display: block;
  }

  .service-head {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    animation: none;
    align-items: flex-start;
  }

  .service-head h3 {
    margin: 0;
    font-size: clamp(17px, 3.4vw, 22px);
    letter-spacing: 0;
    line-height: 1.02;
    font-weight: 700;
    color: var(--service-title);
    text-transform: uppercase;
    text-align: left;
    width: 100%;
  }

  .service-head span {
    color: var(--service-badge);
    padding: 0;
    letter-spacing: 0.12em;
    font-size: 20px;
    min-width: auto;
    min-height: auto;
    border: 0;
    border-radius: 0;
    background: none;
    animation: none;
    line-height: 1;
    font-weight: 600;
    justify-content: flex-start;
    text-transform: uppercase;
  }

  .service-item p {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-10px);
    margin: 0;
    will-change: max-height, opacity, transform;
    transition:
      max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 420ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0s;
  }

  .service-more-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 2px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
  }

  .service-more-toggle:focus,
  .service-more-toggle:focus-visible {
    outline: none;
    box-shadow: none;
  }

  .service-more-toggle:active {
    opacity: 1;
  }

  #services .service-item.is-service-expanded .service-more-toggle {
    opacity: 1;
  }

  .service-more-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: var(--service-badge);
  }

  .service-more-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid var(--service-badge);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 25px;
  }

  .service-more-icon span {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--service-badge);
    display: block;
  }

  #services .service-item.is-service-expanded .service-content > p {
    max-height: 260px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 10px;
    transition-delay: 120ms, 300ms, 120ms, 120ms;
  }

  .service-plus-list {
    display: none;
  }

  #services .service-item .shiny-tag-outer {
    background: conic-gradient(
      from var(--shiny-angle),
      rgba(var(--accent-rgb), 0.03) 0%,
      rgba(var(--accent-rgb), 0.12) 4%,
      rgba(var(--accent-rgb), 0.45) 9%,
      rgba(var(--accent-rgb), 0.8) 13%,
      rgba(var(--accent-rgb), 0.45) 17%,
      rgba(var(--accent-rgb), 0.12) 22%,
      rgba(var(--accent-rgb), 0.03) 30%,
      rgba(var(--accent-rgb), 0.03) 100%
    );
    box-shadow:
      0 0 12px rgba(var(--accent-rgb), 0.18),
      0 0 24px rgba(var(--accent-rgb), 0.12);
  }

  #services .service-item .shiny-tag-outer::after {
    background: rgba(6, 6, 6, 0.97);
  }

  #services .service-item .shiny-tag-inner {
    color: rgba(242, 242, 242, 0.8) !important;
    font-weight: 600;
    transition: color 180ms ease;
    text-transform: uppercase;
    font-size: 10px;
  }

  #services .service-item .shiny-tag-outer:is(:hover, :focus-within) .shiny-tag-inner {
    color: rgba(242, 242, 242, 1) !important;
  }

  .project-card {
    padding-inline: 16px;
  }

  .projects-tabs-wrap {
    top: calc(var(--nav-h) + 20px);
    padding-inline: 16px;
  }

  .facts-list div {
    grid-template-columns: 110px 1fr;
  }

  .about-more-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
    -webkit-appearance: none;
    appearance: none;
  }

  .about-more-toggle:focus,
  .about-more-toggle:focus-visible {
    outline: none;
    box-shadow: none;
  }

  .about-more-toggle:active {
    opacity: 1;
  }

  #nice-to-meet-you.is-about-expanded .about-more-toggle {
    opacity: 1;
  }

  .about-more-line {
    flex: 1;
    height: 2px;
    border-radius: 999px;
    background: var(--accent);
  }

  .about-more-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 25px;
  }

  .about-more-icon span {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--accent);
    display: block;
  }

  .about-extra-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-12px);
    margin-top: 0;
    pointer-events: none;
    will-change: max-height, opacity, transform;
    transition:
      max-height 520ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
      margin-top 420ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  #nice-to-meet-you.is-about-expanded .about-extra-panel {
    max-height: 680px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 12px;
    pointer-events: auto;
  }

  #nice-to-meet-you.is-about-expanded .about-more-icon {
    background: rgba(var(--accent-rgb), 0.14);
  }

  .principle-card::after {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(180px, 48vw, 420px);
  }

  .principle-card {
    min-height: 74px;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: 0;
    background: var(--principle-card-bg, transparent);
  }

  .principles-grid {
    gap: 20px;
  }

  .principles-grid .principle-card.is-visible:nth-of-type(3n + 1) {
    --principle-card-bg: rgb(242, 242, 242);
    --principle-title: #0E0F14;
    --principle-badge: #0E0F14;
    --principle-watermark: rgba(14, 15, 20, 0.09);
  }

  .principles-grid .principle-card.is-visible:nth-of-type(3n + 2) {
    --principle-card-bg: var(--accent);
    --principle-title: rgb(242, 242, 242);
    --principle-badge: rgb(242, 242, 242);
    --principle-watermark: rgba(242, 242, 242, 0.14);
  }

  .principles-grid .principle-card.is-visible:nth-of-type(3n + 3) {
    --principle-card-bg: #000;
    --principle-title: rgb(242, 242, 242);
    --principle-badge: rgb(242, 242, 242);
    --principle-watermark: rgba(242, 242, 242, 0.08);
  }

  .principle-card h4 {
    margin: 0;
    font-size: clamp(17px, 3.4vw, 22px);
    letter-spacing: 0;
    line-height: 1.02;
    font-weight: 700;
    color: var(--principle-title);
    text-transform: uppercase;
    text-align: left;
    width: 100%;
  }

  .principle-index {
    color: var(--principle-badge);
    padding: 0;
    letter-spacing: 0.12em;
    font-size: 20px;
    min-width: auto;
    min-height: auto;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
  }

  .hero-media-placeholder {
    background:
      linear-gradient(
        90deg,
        rgba(5, 5, 5, 0.66) 0%,
        rgba(5, 5, 5, 0.45) 36%,
        rgba(5, 5, 5, 0.24) 68%,
        rgba(5, 5, 5, 0.14) 100%
      ),
      url("../../bg-hero.jpg");
    background-repeat: no-repeat;
    background-size:
      100% 100%,
      cover;
    background-position:
      center,
      center center;
  }

  .hero::after {
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.36), transparent);
  }

  .contact-inner {
    padding: 0 16px 80px;
  }

  .contact-inner h2 {
    font-size: clamp(72px, 22vw, 160px);
    margin-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
