@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Libre+Baskerville:wght@400;700&display=swap");

:root {
  --bg: #080806;
  --bg-soft: #11100d;
  --surface: rgba(25, 24, 20, 0.62);
  --surface-solid: #171612;
  --surface-hover: rgba(255, 255, 255, 0.08);
  --glass: rgba(12, 12, 10, 0.56);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f7f0e6;
  --text-soft: rgba(247, 240, 230, 0.74);
  --text-muted: rgba(247, 240, 230, 0.52);
  --accent: #d8b66a;
  --accent-2: #59c5b8;
  --accent-game: #e2ad45;
  --accent-cyber: #58c7bc;
  --accent-marketing: #f1eee8;
  --accent-web: #a995ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  --deep-shadow: 0 44px 140px rgba(0, 0, 0, 0.58);
  --radius: 18px;
  --font-ui: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Libre Baskerville", Georgia, serif;
  --ease: 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-page="games"] {
  --accent: var(--accent-game);
  --accent-2: #ce7d2c;
}

body[data-page="cyber"] {
  --accent: var(--accent-cyber);
  --accent-2: #d8b66a;
}

body[data-page="marketing"] {
  --accent: var(--accent-marketing);
  --accent-2: #c9aa70;
}

body[data-page="web"] {
  --accent: var(--accent-web);
  --accent-2: #5bc4bf;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30rem),
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 34rem),
    linear-gradient(180deg, #070706 0%, #11100d 44%, #080806 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 18%, black, transparent 72%);
}

body::after {
  content: "";
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 40vh;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 74px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 7, 6, 0.76), rgba(7, 7, 6, 0.34));
  backdrop-filter: blur(14px);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.nav.is-scrolled,
.nav.is-open {
  border-color: var(--line);
  background: rgba(8, 8, 7, 0.82);
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.34);
}

.nav-inner,
.nav-links,
.nav-actions,
.brand {
  display: flex;
  align-items: center;
}

.nav-inner {
  min-height: 74px;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 22%, transparent);
}

.nav-links {
  gap: clamp(16px, 2.4vw, 32px);
}

.nav-links a {
  position: relative;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  transition: color var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.mobile-menu span,
.mobile-menu span::before,
.mobile-menu span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}

.mobile-menu span::before,
.mobile-menu span::after {
  content: "";
  position: relative;
}

.mobile-menu span::before {
  top: -7px;
}

.mobile-menu span::after {
  top: 5px;
}

.nav.is-open .mobile-menu span {
  transform: rotate(45deg);
}

.nav.is-open .mobile-menu span::before {
  transform: translateY(7px) rotate(90deg);
}

.nav.is-open .mobile-menu span::after {
  opacity: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px 0 70px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-video,
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(1) contrast(1.1) brightness(0.8);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 25%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 28rem),
    radial-gradient(circle at 24% 74%, color-mix(in srgb, var(--accent-2) 9%, transparent), transparent 26rem),
    linear-gradient(90deg, rgba(8, 8, 6, 0.32) 0%, rgba(8, 8, 6, 0.24) 46%, rgba(8, 8, 6, 0.16) 100%),
    linear-gradient(180deg, rgba(8, 8, 6, 0.06), rgba(8, 8, 6, 0.22));
}

.dossier-frame {
  position: absolute;
  inset: 96px 34px 34px;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  opacity: 0.72;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 38px;
  height: 38px;
  color: var(--accent);
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.corner::before {
  width: 100%;
  height: 1px;
}

.corner::after {
  width: 1px;
  height: 100%;
}

.corner.tl { left: -1px; top: -1px; }
.corner.tr { right: -1px; top: -1px; transform: rotate(90deg); }
.corner.bl { left: -1px; bottom: -1px; transform: rotate(-90deg); }
.corner.br { right: -1px; bottom: -1px; transform: rotate(180deg); }

.side-code {
  position: absolute;
  top: 50%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.side-code.left {
  left: -24px;
  transform: translateY(-50%) rotate(-90deg);
}

.side-code.right {
  right: -18px;
  transform: translateY(-50%) rotate(90deg);
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 9.2vw, 100px);
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.hero .lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--text-soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
}

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

.btn,
.project-link,
.view-all,
.icon-btn {
  position: relative;
  overflow: hidden;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.btn svg {
  width: 42px;
  height: 18px;
}

.btn.primary {
  border-color: transparent;
  color: #10100e;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 65%, white));
  box-shadow: 0 20px 56px color-mix(in srgb, var(--accent) 24%, transparent);
}

.btn:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, white), var(--accent));
}

.hero-panel {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.035)),
    rgba(15, 15, 13, 0.45);
  box-shadow: var(--deep-shadow);
  backdrop-filter: blur(14px);
  transform: rotate(-1.2deg);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.025);
  transform: rotate(3deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 6, 0.58);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  animation: scroll-cue-bounce 1.8s ease-in-out infinite;
  transition: color var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.scroll-cue span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.scroll-cue svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: rgba(18, 16, 12, 0.72);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.42), 0 0 0 8px color-mix(in srgb, var(--accent) 10%, transparent);
}

@keyframes scroll-cue-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

.panel-topline,
.panel-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branch-panel {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.branch-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: color-mix(in srgb, var(--row-accent, var(--accent)) 8%, rgba(255, 255, 255, 0.055));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.branch-row.game { --row-accent: var(--accent-game); }
.branch-row.cyber { --row-accent: var(--accent-cyber); }
.branch-row.marketing { --row-accent: #f1eee8; }
.branch-row.web { --row-accent: var(--accent-web); }

.branch-row:hover,
.branch-row.is-active {
  transform: translateX(-8px) translateY(-2px);
  border-color: color-mix(in srgb, var(--row-accent) 52%, var(--line));
  background: color-mix(in srgb, var(--row-accent) 14%, rgba(255, 255, 255, 0.07));
}

.branch-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--row-accent, var(--accent));
  background: rgba(0, 0, 0, 0.24);
}

.branch-icon svg,
.edu-icon svg,
.contact-line svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.branch-row strong {
  display: block;
  font-size: 16px;
  font-weight: 850;
}

.branch-row span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.branch-row small {
  color: var(--row-accent, var(--accent));
  font-size: 12px;
  font-weight: 900;
}

.panel-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section {
  position: relative;
  padding: clamp(74px, 8vw, 80px) 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}

.section-head,
.archive-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.archive-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.section-kicker,
.number,
.archive-tile > span,
.project-link {
  color: var(--accent);
}

.archive-link {
  margin: auto 18px 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.archive-link span {
  margin-left: 8px;
}

.section-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

.section h2,
.education-section h2,
.contact-intro h2,
.archive-title h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.section-head p,
.archive-title p,
.contact-intro p,
.page-card p,
.spotlight-copy p,
.archive-tile small,
.skill-strip span,
.edu-card small {
  color: var(--text-soft);
  line-height: 1.65;
}

.spotlight-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: 0;
  min-height: 460px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.spotlight-media,
.card-media,
.page-card > a,
.page-card > img,
.archive-tile img {
  overflow: hidden;
  background: #111;
}

.spotlight-media {
  position: relative;
  display: block;
  min-height: 460px;
}

.spotlight-media img,
.card-media img,
.page-card img,
.archive-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter var(--ease);
}

.spotlight-media img {
  position: absolute;
  inset: 0;
}

.spotlight-layout:hover img,
.project-card:hover img,
.page-card:hover img,
.archive-tile:hover img {
  transform: scale(1.045);
  filter: saturate(1.06) contrast(1.05);
}

.spotlight-copy {
  min-width: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.number {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 16px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 999px;
  color: var(--text-soft);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 11px;
  font-weight: 850;
}

.spotlight-copy h3,
.project-card h3,
.page-card h3,
.archive-tile strong,
.edu-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.spotlight-copy h3 {
  max-width: 100%;
  font-size: clamp(32px, 3.25vw, 56px);
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
}

.top-grid,
.page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.project-card,
.page-card,
.archive-tile,
.contact-card,
.edu-card,
.skill-strip {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.032)),
    rgba(15, 15, 13, 0.58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: none;
}

.project-card,
.page-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.project-card {
  cursor: pointer;
}

.project-card:hover,
.project-card.is-active,
.page-card:hover {
  transform: translateY(-7px);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
  box-shadow: var(--shadow);
}

.project-card .number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 28px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

.card-media,
.page-card > a,
.page-card > img {
  display: block;
  aspect-ratio: 1.18 / 1;
}

.page-card > img {
  width: 100%;
  height: auto;
}

.card-body,
.page-card > div {
  min-width: 0;
  container-type: inline-size;
  padding: 20px;
}
.card-body p {
     color: var(--text-soft);
}

.project-card h3,
.page-card h3 {
  max-width: 100%;
  font-size: clamp(21px, 1.65vw, 25px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

@supports (font-size: 1cqw) {
  .spotlight-copy h3 {
    font-size: clamp(30px, 8cqw, 56px);
  }

  .project-card h3,
  .page-card h3 {
    font-size: clamp(20px, 9cqw, 25px);
  }
}

.spotlight-copy p,
.project-card p,
.page-card p,
.archive-tile small,
.skill-strip span,
.branch-row span {
  overflow-wrap: anywhere;
  word-break: normal;
}

.archive-section {
  overflow: hidden;
}

.archive-years {
  display: grid;
  gap: clamp(34px, 5vw, 72px);
}

.archive-year {
  min-width: 0;
}

.archive-year-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.archive-year-head span {
  font-family: var(--font-display);
  color: var(--text);
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.95;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.archive-year-head p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  text-align: right;
}

.archive-wrap {
  position: relative;
  overflow: hidden;
  padding: 0 58px;
}

.archive-rail {
  display: grid;
  grid-auto-columns: minmax(245px, 28%);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 6px 2px 22px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.archive-rail::-webkit-scrollbar {
  display: none;
}

.archive-tile {
  min-width: 0;
  min-height: 410px;
  display: grid;
  grid-template-rows: 176px auto auto minmax(86px, 1fr) auto;
  align-content: start;
  overflow: hidden;
  border-radius: 20px;
  scroll-snap-align: start;
  transition: transform var(--ease), border-color var(--ease);
}

.archive-rail.is-gliding .archive-tile {
  transition-duration: 0.55s;
}

.archive-rail.is-gliding {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.archive-tile:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--line));
}

.archive-tile > span,
.archive-tile strong,
.archive-tile small {
  min-width: 0;
  max-width: calc(100% - 36px);
  margin-left: 18px;
  margin-right: 18px;
}

.archive-tile > span {
  margin-top: 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.archive-tile strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(18px, 1.8vw, 22px);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-wrap: balance;
}

.archive-tile small {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 13px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.archive-tile > .archive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: calc(100% - 36px);
  margin: auto 18px 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  overflow-wrap: anywhere;
}

.archive-tile > .archive-link span {
  margin-left: 0;
  white-space: nowrap;
}

.rail-actions,
.rail-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-line {
  justify-content: flex-end;
}

.rail-track {
  width: 84px;
  height: 1px;
  background: var(--line);
}

.archive-head .rail-actions {
  display: none;
}

.archive-wrap .rail-line {
  position: absolute;
  inset: 6px 0 22px;
  z-index: 5;
  justify-content: space-between;
  pointer-events: none;
}

.archive-wrap .rail-line .icon-btn {
  align-self: center;
  pointer-events: auto;
  background: rgba(8, 8, 6, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.archive-wrap .rail-track {
  display: none;
}

.spotlight-nav {
  position: absolute;
  inset: 0 -22px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.spotlight-nav .icon-btn {
  pointer-events: auto;
  background: rgba(8, 8, 6, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.34);
}

.spotlight-media img,
.spotlight-copy > * {
  transition:
    opacity 0.28s ease,
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.spotlight-layout.is-switching .spotlight-media img,
.spotlight-layout.is-switching .spotlight-copy > * {
  opacity: 0.08;
  transform: translateY(10px) scale(0.99);
}

.icon-btn {
  width: 43px;
  height: 43px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: rgba(255, 255, 255, 0.1);
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
}

.skill-strip,
.education-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.skill-strip {
  padding: 22px;
  border-radius: 22px;
}

.skill-strip div {
  min-height: 136px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.skill-strip strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 18px;
}

.investor-main {
  overflow: hidden;
}

.investor-hero {
  position: relative;
  min-height: calc(100svh - 86px);
  padding: 150px 0 92px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 72% 18%, rgba(230, 185, 92, 0.16), transparent 30%),
    radial-gradient(circle at 18% 42%, rgba(92, 228, 214, 0.1), transparent 32%),
    linear-gradient(135deg, rgba(12, 12, 10, 0.92), rgba(5, 5, 4, 1));
}

.investor-hero::before {
  content: "";
  position: absolute;
  inset: 110px 6vw 8vw auto;
  width: min(44vw, 640px);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .015)),
    url("../images/Top5/meat2-thumb.webp") center / cover;
  opacity: .42;
  transform: rotate(-2deg);
  box-shadow: var(--deep-shadow);
}

.investor-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, .58fr);
  gap: 42px;
  align-items: end;
}

.investor-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 9vw, 126px);
  line-height: .88;
}

.investor-hero p {
  max-width: 720px;
  color: var(--text-soft);
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.65;
}

.investor-ticker,
.investor-metric,
.investor-showcase article,
.investor-bars article,
.investor-table {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .032)),
    rgba(15, 15, 13, .58);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.investor-ticker {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.investor-ticker span,
.investor-metric small,
.investor-table small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.investor-ticker strong {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 74px);
  color: var(--accent);
  line-height: .95;
}

.investor-metrics,
.investor-showcase,
.investor-bars,
.investor-table {
  display: grid;
  gap: 18px;
}

.investor-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.investor-metric {
  min-height: 176px;
  padding: 24px;
}

.investor-metric strong {
  display: block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 62px);
}

.investor-metric p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.investor-showcase {
  grid-template-columns: 1.15fr .85fr;
}

.investor-showcase article,
.investor-bars article {
  padding: clamp(24px, 4vw, 42px);
}

.investor-showcase img {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 18px;
  filter: saturate(.94) contrast(1.04);
}

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

.investor-bar {
  display: block;
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}

.investor-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #f1eee8);
  animation: investor-fill 1.4s cubic-bezier(.16, 1, .3, 1) both;
}

.investor-table {
  overflow: hidden;
}

.investor-row {
  display: grid;
  grid-template-columns: 1.2fr .72fr 1.5fr;
  gap: 18px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}

.investor-row:first-child {
  border-top: 0;
}

.investor-row strong {
  color: var(--accent);
}

@keyframes investor-fill {
  from {
    width: 0;
  }
}

.education-section {
  padding: clamp(70px, 8vw, 116px) 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

.about-heading,
.about-copy,
.education-head,
.edu-card {
  min-width: 0;
}

.about-heading {
  display: flex;
  flex-direction: column;
}

.about-copy {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.028)),
    rgba(15, 15, 13, 0.58);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.about-photo {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.14) 42%, rgba(0, 0, 0, 0.68)),
    radial-gradient(circle at 25% 20%, rgba(232, 190, 101, 0.2), transparent 38%);
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.96) contrast(1.04);
}

.about-photo figcaption {
  position: absolute;
  left: clamp(18px, 3vw, 30px);
  right: clamp(18px, 3vw, 30px);
  bottom: clamp(18px, 3vw, 30px);
  z-index: 2;
  display: grid;
  gap: 6px;
  color: var(--text);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6);
}

.about-photo figcaption strong {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.about-photo figcaption span {
  color: var(--text-soft);
  font-size: clamp(14px, 1.3vw, 18px);
  font-weight: 700;
  line-height: 1.35;
}

.about-copy p {
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.76;
  overflow-wrap: anywhere;
}

.about-copy p + p {
  margin-top: 18px;
}

.education-block {
  margin-top: clamp(38px, 6vw, 84px);
}

.education-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.education-head p {
  color: var(--text-soft);
  line-height: 1.65;
}

.education-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.edu-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 20px;
}

.edu-card div,
.edu-card h3,
.edu-card p,
.edu-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.edu-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.contact-section {
  position: relative;
  padding: clamp(82px, 10vw, 150px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 28%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 26rem),
    radial-gradient(circle at 82% 42%, color-mix(in srgb, var(--accent-2) 13%, transparent), transparent 30rem),
    linear-gradient(135deg, rgba(22, 20, 16, 0.96), rgba(7, 8, 8, 0.98) 58%, rgba(15, 14, 12, 0.96));
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.7fr);
  gap: clamp(30px, 7vw, 88px);
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(46px, 7vw, 92px);
}

.contact-intro p {
  max-width: 420px;
  margin: 22px 0 28px;
  font-size: 18px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 14px;
  color: var(--text);
  font-weight: 800;
}

.contact-line svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.contact-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
}

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

.field.full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
}

.field label span {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.26);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.field input,
.field select {
  min-height: 50px;
  padding: 0 14px;
}

.field textarea {
  min-height: 150px;
  padding: 13px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.captcha-note {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
}

.form-status {
  min-height: 22px;
  color: var(--text-muted);
  font-size: 13px;
}

.form-status.ok {
  color: #93ddb9;
}

.form-status.fail {
  color: #ff9f8f;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
}

.reveal {
  opacity: 1;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.ripple {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple 0.65s ease-out forwards;
}

@keyframes ripple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.6);
  }
}

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

@media (max-width: 1040px) {
  .hero-grid,
  .spotlight-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
    transform: none;
  }

  .top-grid,
  .page-grid,
  .skill-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .investor-hero-grid,
  .investor-showcase,
  .investor-bars {
    grid-template-columns: 1fr;
  }

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

  .investor-row {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-photo {
    min-height: clamp(360px, 72vw, 560px);
  }

  .spotlight-copy h3 {
    font-size: clamp(30px, 6vw, 48px);
  }

  .education-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .inner {
    width: min(100% - 28px, 1180px);
  }

  .mobile-menu {
    display: grid;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 74px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 8, 7, 0.94);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
  }

  .nav.is-open .nav-links {
    display: grid;
  }

  .nav-links a {
    padding: 13px 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .brand span {
    font-size: 17px;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-video {
    opacity: 0.38;
    filter: saturate(0.75) contrast(1) brightness(0.68);
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 70px);
    line-height: 0.98;
  }

  .dossier-frame {
    inset: 88px 14px 14px;
  }

  .section-head,
  .archive-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .archive-year-head {
    align-items: start;
    flex-direction: column;
  }

  .archive-year-head p {
    text-align: left;
  }

  .top-grid,
  .page-grid,
  .skill-strip,
  .investor-metrics,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .spotlight-media {
    aspect-ratio: 1.15 / 1;
    min-height: 0;
  }

  .spotlight-copy {
    padding: 24px;
  }

  .archive-rail {
    grid-auto-columns: minmax(250px, 82%);
  }

  .archive-wrap {
    padding: 0 46px;
  }

  .submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-row .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-video {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero h1,
  .section h2,
  .education-section h2,
  .contact-intro h2,
  .archive-title h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .spotlight-nav {
    inset: 0 -6px;
    padding: 0;
  }

  .archive-wrap .rail-line {
    inset: 6px 0 22px;
  }

  .archive-wrap {
    padding: 0 40px;
  }

  .spotlight-nav .icon-btn {
    width: 38px;
    height: 38px;
  }

  .branch-row {
    grid-template-columns: 38px 1fr;
  }

  .branch-row small {
    grid-column: 2;
  }
}
