:root {
  --paper: #edeae3;
  --paper-deep: #e4dfd3;
  --paper-soft: #f5f2eb;
  --ink: #17150f;
  --ink-soft: #3b372c;
  --muted: #746e5f;
  --line: rgba(23, 21, 15, 0.16);
  --line-strong: rgba(23, 21, 15, 0.42);
  --sun: #ef4a12;
  --sun-deep: #d33a05;
  --sun-soft: #ffb27a;
  --sans: "Golos Text", "Segoe UI", Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.75, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 4.4vw, 68px);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--sun);
  color: var(--paper-soft);
}

h1, h2, h3, h4, p, ul, dl, dd, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 12px;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 400;
  pointer-events: none;
  background: rgba(23, 21, 15, 0.08);
}

.progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  padding: 0 var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(237, 234, 227, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

.site-header.is-dark {
  background: rgba(19, 17, 9, 0.78);
  border-bottom-color: rgba(237, 234, 227, 0.18);
  color: var(--paper);
}

.site-header.is-dark .site-nav a::after {
  background: var(--paper);
}

.site-header.is-dark .lang-switch {
  color: rgba(237, 234, 227, 0.5);
}

.site-header.is-dark .lang-switch button:hover,
.site-header.is-dark .lang-switch button.is-active {
  color: var(--paper);
}

.site-header.is-dark .index-toggle {
  border-color: rgba(237, 234, 227, 0.6);
}

.site-header.is-dark .index-toggle:hover {
  background: var(--paper);
  color: var(--ink);
}

.site-header.is-dark .brand-mark {
  box-shadow: 0 0 0 1px var(--paper) inset, 0 0 0 4px #131109;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 1px var(--ink) inset, 0 0 0 4px var(--paper);
  transition: transform 0.6s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(140deg) scale(1.15);
}

.brand-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(18px, 2.4vw, 38px);
}

.site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lang-switch button {
  padding: 4px 0;
  color: inherit;
  transition: color 0.25s var(--ease);
}

.lang-switch button:hover,
.lang-switch button.is-active {
  color: var(--ink);
}

.lang-switch button.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.index-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.index-toggle:hover {
  background: var(--ink);
  color: var(--paper);
}

.index-toggle-icon {
  position: relative;
  display: block;
  width: 14px;
  height: 8px;
}

.index-toggle-icon i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.index-toggle-icon i:first-child {
  top: 1px;
}

.index-toggle-icon i:last-child {
  top: 6px;
}

.index-toggle[aria-expanded="true"] .index-toggle-icon i:first-child {
  top: 4px;
  transform: rotate(45deg);
}

.index-toggle[aria-expanded="true"] .index-toggle-icon i:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

main {
  position: relative;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) var(--gutter) 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-grid {
  display: block;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
  animation: pulse 2.6s var(--ease) infinite;
}

.hero-eyebrow {
  margin-bottom: clamp(22px, 3vw, 40px);
}

.hero-title {
  font-size: clamp(38px, 8.9vw, 140px);
  line-height: 0.91;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.hero-line > span {
  display: inline-block;
}

.hero-line-accent > span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--sun);
}

.hero-line-accent {
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}

.js .hero-line .char {
  display: inline-block;
  transform: translateY(118%);
  animation: char-rise 0.95s var(--ease-out) forwards;
  animation-delay: calc(90ms + var(--i) * 15ms);
}

.js .hero-line .char-space {
  display: inline-block;
  white-space: pre;
}

.hero-lead {
  max-width: 48ch;
  margin-top: clamp(28px, 3vw, 44px);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 38px);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.button-solid {
  background: var(--ink);
  color: var(--paper);
}

.button-solid:hover {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--paper-soft);
  transform: translateY(-2px);
}

.button-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.button-arrow {
  font-size: 15px;
  line-height: 1;
  transition: transform 0.35s var(--ease);
}

.button:hover .button-arrow {
  transform: translate(2px, 2px);
}

.hero-art {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(128px, 14vw, 190px);
  width: clamp(240px, 27vw, 400px);
  animation: art-in 1.4s var(--ease-out) 0.15s both;
}

.sun {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(239, 74, 18, 0.14));
}

.sun-rays {
  transform-origin: 260px 260px;
  animation: spin 120s linear infinite;
}

.hero-art-caption {
  display: block;
  margin-top: 18px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(48px, 6vw, 84px);
  padding: 26px 0 30px;
  border-top: 1px solid var(--line);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 56px);
  flex: 1;
}

.fact dt {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.fact dd {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: var(--line);
}

.scroll-line i {
  position: absolute;
  inset: 0;
  background: var(--sun);
  transform: translateY(-100%);
  animation: scroll-line 2.7s var(--ease) infinite;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: clamp(14px, 1.6vw, 22px) 0;
  background: var(--paper);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.ticker-track span {
  padding-right: 0.28em;
  white-space: nowrap;
  font-size: clamp(26px, 3.6vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 21, 15, 0.55);
}

.ticker-track b {
  color: var(--sun);
  -webkit-text-stroke: 0;
  font-weight: 400;
  font-size: 0.62em;
  vertical-align: 0.16em;
}

.section {
  padding: clamp(80px, 9.5vw, 148px) var(--gutter);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: clamp(64px, 7vw, 106px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}

.stacked-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 0.79;
  letter-spacing: -0.03em;
  font-weight: 500;
  padding-top: 2px;
}

.stacked-title span {
  display: block;
}

.stacked-title span:nth-child(2n) {
  color: var(--muted);
}

.section-intro {
  max-width: 900px;
}

.section-intro .eyebrow {
  margin-bottom: 18px;
}

.section-lead {
  max-width: 26ch;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 500;
}

.project-list {
  margin-top: clamp(42px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

.project {
  position: relative;
  display: grid;
  grid-template-columns: clamp(40px, 4vw, 62px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 40px);
  padding: clamp(26px, 3vw, 40px) 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.45s var(--ease), padding 0.45s var(--ease);
}

.project:hover {
  background: var(--paper-deep);
  padding-left: 18px;
  padding-right: 18px;
}

.project-index {
  align-self: start;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.65em;
  transition: color 0.3s var(--ease);
}

.project:hover .project-index {
  color: var(--sun);
}

.project-body {
  display: block;
}

.project-name {
  display: block;
  font-size: clamp(25px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 500;
  transition: transform 0.5s var(--ease), color 0.3s var(--ease);
}

.project:hover .project-name {
  transform: translateX(8px);
}

.project-desc {
  display: block;
  max-width: 62ch;
  margin-top: 10px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  color: var(--muted);
  transition: transform 0.5s var(--ease);
}

.project:hover .project-desc {
  transform: translateX(8px);
}

.project-tags {
  display: block;
  margin-top: 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: transform 0.5s var(--ease);
}

.project:hover .project-tags {
  transform: translateX(8px);
}

.project-action {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-action-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.project:hover .project-action-label {
  opacity: 1;
  transform: none;
}

.project-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 18px;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.45s var(--ease);
}

.project:hover .project-arrow {
  background: var(--sun);
  border-color: var(--sun);
  color: var(--paper-soft);
  transform: translate(2px, -2px);
}

.work-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: clamp(32px, 4vw, 52px);
}

.work-more p {
  font-size: 13px;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.link-arrow:hover {
  gap: 18px;
  color: var(--sun);
  border-color: var(--sun);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(42px, 5vw, 76px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: clamp(240px, 24vw, 330px);
  padding: clamp(26px, 3vw, 42px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

.principle:hover {
  background: var(--ink);
  color: var(--paper);
}

.principle-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.principle:hover .principle-number {
  color: var(--sun-soft);
}

.principle h3 {
  max-width: 17ch;
  margin-top: auto;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.principle p {
  max-width: 40ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.4s var(--ease);
}

.principle:hover p {
  color: rgba(237, 234, 227, 0.72);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  margin-top: clamp(42px, 5vw, 76px);
}

.stack-group h3 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.stack-group li {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.15vw, 17px);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

.stack-group li::after {
  content: "✳";
  font-size: 11px;
  color: var(--sun);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.stack-group li:hover {
  transform: translateX(6px);
  color: var(--sun-deep);
}

.stack-group li:hover::after {
  opacity: 1;
  transform: none;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.45fr);
  gap: clamp(32px, 6vw, 92px);
  margin-top: clamp(42px, 5vw, 76px);
  align-items: start;
}

.about-card {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.about-card-art {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 34px);
}

.about-card-art img {
  display: block;
  width: 100%;
  height: auto;
}

.about-card-name {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.about-card-meta {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-card-quote {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.35;
}

.about-copy {
  max-width: 780px;
}

.about-p {
  max-width: 62ch;
  margin-bottom: 22px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--ink-soft);
}

.about-p-lead {
  font-size: clamp(20px, 1.85vw, 25px);
  line-height: 1.48;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.about-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(34px, 4vw, 52px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about-note h3 {
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-note p {
  font-size: 14px;
  line-height: 1.6;
}

.inline-link {
  display: inline-block;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.inline-link:hover {
  color: var(--sun);
  border-color: var(--sun);
}

.contact {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 8vw, 110px);
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 10vw, 150px) var(--gutter) 0;
}

.contact .eyebrow {
  color: rgba(237, 234, 227, 0.55);
}

.contact-eyebrow {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.contact-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(44px, 8.4vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.contact-title-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.035em;
  color: var(--sun-soft);
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

.contact-lead {
  max-width: 36ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: rgba(237, 234, 227, 0.62);
}

.contact-actions {
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(237, 234, 227, 0.22);
  transition: color 0.3s var(--ease), padding 0.35s var(--ease);
}

.contact-link:last-child {
  border-bottom: 1px solid rgba(237, 234, 227, 0.22);
}

.contact-link:hover {
  color: var(--sun-soft);
  padding-left: 8px;
}

.contact-link-label {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(237, 234, 227, 0.5);
}

.contact-link-value {
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: auto;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(237, 234, 227, 0.18);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(237, 234, 227, 0.52);
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
  transition: color 0.25s var(--ease);
}

.footer-top:hover {
  color: var(--sun-soft);
}

.site-index {
  position: fixed;
  inset: 0;
  z-index: 350;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  background: #131109;
  color: var(--paper);
  visibility: hidden;
  transform: translateY(-101%);
  transition: transform 0.72s var(--ease-out), visibility 0s linear 0.72s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.site-index.is-open {
  visibility: visible;
  transform: none;
  transition: transform 0.72s var(--ease-out), visibility 0s linear 0s;
}

.index-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
  flex-shrink: 0;
  border-bottom: 1px solid rgba(237, 234, 227, 0.16);
}

.index-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.index-brand span {
  color: var(--sun);
}

.index-close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border: 1px solid rgba(237, 234, 227, 0.5);
  border-radius: 999px;
  font-size: 12px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.index-close:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.index-close-icon {
  position: relative;
  width: 12px;
  height: 12px;
}

.index-close-icon i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.index-close-icon i:first-child {
  transform: rotate(45deg);
}

.index-close-icon i:last-child {
  transform: rotate(-45deg);
}

.index-body {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.5fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
  padding: clamp(32px, 6vh, 72px) 0 40px;
}

.index-nav {
  display: flex;
  flex-direction: column;
}

.index-nav a {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(6px, 1vh, 12px) 0;
  border-bottom: 1px solid rgba(237, 234, 227, 0.14);
  font-size: clamp(38px, 6.4vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 500;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}

.index-nav a span:first-child {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(237, 234, 227, 0.45);
  font-weight: 400;
}

.index-nav a:hover {
  color: var(--sun-soft);
  padding-left: 14px;
}

.index-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.index-side-title {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(237, 234, 227, 0.45);
}

.index-projects {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
}

.index-projects a {
  display: inline-flex;
  gap: 8px;
  transition: color 0.25s var(--ease);
}

.index-projects a:hover {
  color: var(--sun-soft);
}

.index-side-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid rgba(237, 234, 227, 0.16);
  font-size: 14px;
}

.index-side-contact a:hover {
  color: var(--sun-soft);
}

.index-lang {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  font-size: 12px;
  color: rgba(237, 234, 227, 0.55);
}

.index-lang button {
  color: inherit;
  padding: 2px 0;
}

.index-lang button.is-active {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.index-lang button:hover {
  color: var(--paper);
}

.index-foot {
  margin-top: auto;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(237, 234, 227, 0.14);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 234, 227, 0.4);
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

@keyframes char-rise {
  from {
    transform: translateY(118%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: scale(0.92) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 74, 18, 0.45);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(239, 74, 18, 0);
  }
}

@keyframes scroll-line {
  0% {
    transform: translateY(-100%);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

.not-found {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 48px) var(--gutter) 56px;
}

.not-found-title {
  margin: 18px 0 0;
  font-size: clamp(96px, 24vw, 280px);
  line-height: 0.78;
  letter-spacing: -0.07em;
  font-weight: 500;
}

.not-found-title em {
  display: block;
  font-family: var(--serif);
  font-size: 0.34em;
  font-style: italic;
  color: var(--sun);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.2em;
}

.not-found-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.not-found-row p {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.not-found-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .site-nav {
    gap: 18px;
  }

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

  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
}

@media (max-width: 980px) {
  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
  }

  .hero-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: clamp(150px, 26vw, 220px);
    margin: -14px 0 0 auto;
    z-index: 0;
  }

  .hero-art-caption {
    display: none;
  }

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

  .about-card {
    position: static;
    max-width: 380px;
  }

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

  .index-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .index-projects {
    display: none;
  }

  .index-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(237, 234, 227, 0.14);
  }

  .index-side-title,
  .index-projects {
    display: none;
  }

  .index-side-contact {
    flex-direction: row;
    gap: 20px;
    padding-top: 0;
    border-top: 0;
  }

  .index-lang {
    margin-top: 0;
  }
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .stacked-title {
    flex-direction: row;
    gap: 0.03em;
    font-size: clamp(30px, 6vw, 40px);
    line-height: 1;
  }

  .stacked-title span:nth-child(2n) {
    color: var(--ink);
  }

  .stacked-title span {
    margin-right: 0.02em;
  }

  .project {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-areas: "index body action";
    align-items: start;
  }

  .project-index {
    grid-area: index;
  }

  .project-body {
    grid-area: body;
  }

  .project-action {
    grid-area: action;
    align-self: start;
    justify-self: end;
  }

  .project-action-label {
    display: none;
  }

  .project-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .project:hover {
    padding-left: 4px;
    padding-right: 4px;
  }

  .project:hover .project-name,
  .project:hover .project-desc,
  .project:hover .project-tags {
    transform: none;
  }

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

  .contact-title {
    font-size: clamp(42px, 10vw, 72px);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 66px;
  }

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

  .lang-switch {
    font-size: 10px;
  }

  .index-toggle {
    padding: 8px 13px;
    gap: 9px;
    font-size: 11px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 34px);
  }

  .hero-title {
    font-size: clamp(34px, 9.6vw, 58px);
    letter-spacing: -0.05em;
  }

  .hero-art {
    width: 132px;
    margin-top: -4px;
  }

  .hero-lead {
    max-width: 30ch;
    font-size: 15px;
  }

  .hero-actions {
    gap: 8px;
  }

  .button {
    padding: 12px 18px;
    font-size: 12px;
  }

  .hero-foot {
    display: block;
    margin-top: 34px;
    padding-top: 20px;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }

  .scroll-cue {
    display: none;
  }

  .ticker-track span {
    font-size: 28px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-lead {
    font-size: clamp(26px, 7.4vw, 36px);
  }

  .principle {
    min-height: 0;
    padding: 24px;
    gap: 18px;
  }

  .principle h3 {
    font-size: 24px;
  }

  .stack-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .project-desc {
    font-size: 14px;
  }

  .work-more {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-card {
    max-width: none;
  }

  .about-p-lead {
    font-size: 19px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-left,
  .footer-right {
    flex-wrap: wrap;
  }

  .contact-link {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .index-nav a {
    font-size: clamp(34px, 10vw, 52px);
  }

  .index-side {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
}
