/* src/components/PortfolioNavigation.css */
.portfolio-nav {
  position: fixed;
  z-index: 70;
  display: flex;
  padding: 1.65rem var(--page-gutter);
  color: var(--theme-text);
  pointer-events: none;
  justify-content: space-between;
  align-items:  flex-start;
  gap: 2rem;
  top: 0;
  left: 0;
  right: 0;
}

.portfolio-nav__identity {
  display: flex;
  pointer-events: auto;
  flex-direction: column;
  align-items:  flex-start;
  gap: .15rem;
}

.portfolio-nav__name {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  font-size: clamp(1.6rem, 2.3vw, 2.6rem);
  font-weight: 520;
  line-height: 1;
}

.portfolio-nav__role {
  color: #f0f3ef8a;
  font-family: var(--font-ui);
  letter-spacing: .045em;
  max-width: 36rem;
  font-size: clamp(.62rem, .75vw, .72rem);
}

.portfolio-nav__links {
  display: flex;
  color: #f0f3efad;
  font-family: var(--font-ui);
  letter-spacing: .065em;
  text-transform: uppercase;
  pointer-events: auto;
  align-items: baseline;
  gap: clamp(.9rem, 2vw, 2.2rem);
  padding-top: .3rem;
  font-size: .7rem;
}

.portfolio-nav__links a, .portfolio-nav__pending {
  position: relative;
  white-space: nowrap;
  transition: color .2s, opacity .2s;
}

.portfolio-nav__links a:after {
  content: "";
  position: absolute;
  transform-origin: right;
  background: currentColor;
  height: 1px;
  transition: transform .26s;
  bottom: -.25rem;
  left: 0;
  right: 0;
  transform: scaleX(0);
}

.portfolio-nav__links a:hover, .portfolio-nav__links a.active {
  color: var(--theme-text);
}

.portfolio-nav__links a:hover:after, .portfolio-nav__links a.active:after {
  transform-origin: left;
  transform: scaleX(1);
}

.portfolio-nav__pending {
  color: #f0f3ef6b;
}

.portfolio-nav__pending sup {
  position: absolute;
  color: var(--accent-soft);
  letter-spacing: .03em;
  text-transform: uppercase;
  font-size: .42rem;
  top: -.65rem;
  right: -.75rem;
}

.portfolio-nav__secondary {
  opacity: .45;
}

.nav-label-short {
  display: none;
}

@media (max-width: 860px) {
  .portfolio-nav {
    gap: 1rem;
    padding-top: 1.25rem;
  }

  .portfolio-nav__role {
    max-width: 15rem;
  }

  .portfolio-nav__links {
    gap: 1rem;
  }

  .portfolio-nav__secondary {
    display: none;
  }
}

@media (max-width: 560px) {
  .portfolio-nav {
    align-items:  flex-start;
  }

  .portfolio-nav__name {
    font-size: 1.45rem;
  }

  .portfolio-nav__role {
    display: none;
  }

  .portfolio-nav__links {
    gap: .75rem;
    font-size: .62rem;
  }

  .nav-label-full {
    display: none;
  }

  .nav-label-short {
    display: inline;
  }

  .portfolio-nav__pending sup {
    display: none;
  }
}

/* src/components/Footer.css */
.footer-container {
  color: #f0f3ef;
  text-align: center;
  border-top: 1px solid #f0f3ef24;
  width: 100%;
  padding: 10rem 0;
  background-color: #20211e !important;
}

.footer-content {
  letter-spacing: .05em;
  font-size: .9rem;
}

/* src/components/PortfolioLayout.css */
.layout-wrapper {
  display: flex;
  color: var(--theme-text);
  background: var(--theme-bg);
  flex-direction: column;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  width: 100%;
  padding-top: 7rem;
}

.layout-wrapper--immersive, .layout-wrapper--immersive .main-content {
  overflow: hidden;
  width: 100vw;
  height: 100dvh;
  min-height: 0;
  padding: 0;
}

/* src/components/MediaPlaceholder.css */
.media-placeholder {
  position: relative;
  display: grid;
  overflow: hidden;
  color: #f6f7f2c7;
  background: #343a38;
  border: 1px solid #f6f7f22e;
  place-items:  center;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.media-placeholder__grid {
  position: absolute;
  opacity: .28;
  background-image: linear-gradient(#ffffff14 1px, #0000 1px), linear-gradient(90deg, #ffffff14 1px, #0000 1px);
  background-size: 32px 32px;
  inset: 0;
}

.media-placeholder__content {
  position: relative;
  display: flex;
  font-family: var(--font-ui);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  flex-direction: column;
  align-items:  center;
  gap: .35rem;
  max-width: 80%;
  font-size: .7rem;
  line-height: 1.35;
}

.media-placeholder__content strong {
  color: #fff;
  margin: .25rem 0;
  font-size: clamp(.85rem, 1.1vw, 1.05rem);
  font-weight: 550;
}

.media-placeholder__project {
  color: var(--accent-soft, #cfe7c5);
}

/* src/components/DeviceFrame.css */
.device-frame {
  --frame-edge: #232a28;
  --frame-highlight: #6f7875;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 100%;
}

.device-frame__shell {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #fff3, transparent 20%), linear-gradient(145deg, var(--frame-highlight), var(--frame-edge) 35%, #151917);
  width: 100%;
  height: 100%;
  padding: 10px;
  box-shadow: 0 2.25rem 5rem #00000047, inset 0 0 0 1px #ffffff24;
}

.device-frame__screen {
  overflow: hidden;
  background: #2f3533;
  width: 100%;
  height: 100%;
}

.device-frame__screen img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.device-frame--macbook {
  aspect-ratio: 16 / 10.6;
}

.device-frame--macbook .device-frame__shell {
  border-radius: 16px 16px 8px 8px;
  width: 94%;
  height: 91%;
  padding: 10px 10px 14px;
}

.device-frame--macbook .device-frame__screen {
  border-radius: 7px;
}

.device-frame__base {
  background: linear-gradient(#a1a8a5, #3b4240 55%, #1a1e1d);
  border-radius: 2px 2px 14px 14px;
  width: 100%;
  height: 4.5%;
  min-height: 8px;
  margin-top: -1px;
  box-shadow: 0 16px 24px #00000038;
}

.device-frame__base:after {
  content: "";
  display: block;
  background: #00000038;
  border-radius: 0 0 8px 8px;
  width: 12%;
  height: 42%;
  margin: 0 auto;
}

.device-frame--phone {
  aspect-ratio: 9 / 18.8;
  width: auto;
}

.device-frame--phone .device-frame__shell {
  border-radius: clamp(24px, 3vw, 46px);
  padding: 10px;
}

.device-frame--phone .device-frame__screen {
  border-radius: clamp(18px, 2.5vw, 38px);
}

.device-frame__speaker {
  position: absolute;
  background: #090c0bd1;
  border-radius: 999px;
  width: 24%;
  height: 5px;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
}

.device-frame--dashboard {
  aspect-ratio: 16 / 7.8;
}

.device-frame--dashboard .device-frame__shell {
  clip-path: polygon(3% 0, 97% 0, 100% 16%, 98% 100%, 2% 100%, 0 16%);
  border-radius: 24px;
  padding: 14px;
}

.device-frame--dashboard .device-frame__screen {
  border-radius: 13px;
}

.device-frame--vr {
  aspect-ratio: 16 / 9.3;
}

.device-frame--vr .device-frame__shell {
  clip-path: polygon(4% 0, 96% 0, 100% 22%, 91% 100%, 58% 94%, 50% 88%, 42% 94%, 9% 100%, 0 22%);
  border-radius: 44px 44px 70px 70px;
  padding: 16px;
}

.device-frame--vr .device-frame__screen {
  border-radius: 30px 30px 44px 44px;
}

.device-frame--wearable {
  aspect-ratio: 16 / 9.5;
}

.device-frame--wearable .device-frame__shell {
  border-radius: 42% 42% 28% 28%;
  width: 92%;
  height: 82%;
  padding: 14px;
}

.device-frame--wearable .device-frame__screen {
  border-radius: 40% 40% 24% 24%;
}

.device-frame__bridge {
  border: 10px solid var(--frame-edge);
  border-top: 0;
  border-radius: 0 0 40px 40px;
  width: 34%;
  height: 10%;
  margin-top: -4%;
}

.device-frame--spatial {
  aspect-ratio: 4 / 3;
}

.device-frame--spatial .device-frame__shell {
  background: linear-gradient(135deg, #c3c8c3, #555d59 48%, #202523);
  border-radius: 2px;
  padding: 7px;
}

.device-frame--spatial .device-frame__screen {
  border-radius: 1px;
}

@media (max-width: 720px) {
  .device-frame__shell {
    padding: 7px;
  }

  .device-frame--macbook .device-frame__shell {
    border-radius: 10px 10px 5px 5px;
    padding: 6px 6px 9px;
  }

  .device-frame--dashboard .device-frame__shell, .device-frame--vr .device-frame__shell, .device-frame--wearable .device-frame__shell {
    padding: 9px;
  }
}

/* src/components/HorizontalRail.css */
.horizontal-rail {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  outline: none;
  width: 100%;
  min-width: 0;
}

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

.horizontal-rail__track {
  display: flex;
  align-items:  center;
  width: max-content;
  min-width: 100%;
  height: 100%;
}

.horizontal-rail [data-rail-item] {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

.horizontal-rail.is-dragging, .horizontal-rail.is-scrolling {
  cursor: grabbing;
  scroll-snap-type: none;
}

.horizontal-rail.is-dragging {
  user-select: none;
}

.horizontal-rail:focus-visible {
  box-shadow: inset 0 0 0 2px #cfe7c56b;
}

@media (prefers-reduced-motion: reduce) {
  .horizontal-rail {
    scroll-behavior: auto;
  }
}

/* src/pages/Work.css */
.work-rail-page {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #719a841c, transparent 36%), var(--theme-bg);
  width: 100vw;
  height: 100dvh;
  min-height: 620px;
}

.work-rail-page__context {
  position: fixed;
  z-index: 30;
  top: 8.4rem;
  left: var(--page-gutter);
  right: var(--page-gutter);
  display: flex;
  color: #f0f3ef85;
  font-family: var(--font-ui);
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
  justify-content: space-between;
  font-size: .68rem;
}

.work-rail {
  cursor: grab;
  height: 100%;
}

.work-rail__spacer {
  flex: 0 0 calc(50vw + -1 * min(31vw, 510px));
  height: 1px;
}

.work-rail__spacer--start {
  min-width: clamp(4rem, 11vw, 12rem);
}

.work-rail__spacer--end {
  min-width: var(--page-gutter);
}

.project-card {
  --card-width: min(62vw, 1040px);
  position: relative;
  flex: 0 0 var(--card-width);
  width: var(--card-width);
  opacity: .5;
  transform-origin: center;
  filter: saturate(.58);
  height: min(72vh, 680px);
  margin: 2.5rem clamp(2.5rem, 7vw, 8.5rem) 0;
  transition: opacity .5s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1), filter .5s;
  transform: scale(.92);
}

.project-card.is-focused {
  opacity: 1;
  filter: saturate(1);
  transform: scale(1);
}

.project-card.is-restored:after {
  content: "";
  position: absolute;
  border: 1px solid var(--project-accent);
  opacity: 0;
  pointer-events: none;
  animation: restored-focus 1s ease-out;
  inset: -1rem;
}

.project-card__button {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}

.project-card__button[aria-disabled="true"] {
  color: inherit;
  cursor: not-allowed;
}

.project-card__button:focus-visible {
  outline: 2px solid var(--project-accent);
  outline-offset: 14px;
}

.project-card__media {
  display: flex;
  justify-content: center;
  align-items:  center;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.project-card__media .device-frame {
  max-width: 100%;
  max-height: 100%;
}

.project-card__media .device-frame--phone {
  height: 94%;
}

.project-card__media .device-frame--macbook, .project-card__media .device-frame--dashboard, .project-card__media .device-frame--vr, .project-card__media .device-frame--wearable, .project-card__media .device-frame--spatial {
  width: 100%;
  height: auto;
  max-height: 100%;
}

.project-card__caption {
  opacity: .38;
  width: min(100%, 52rem);
  margin: 1.15rem auto 0;
  transition: opacity .45s 80ms, transform .5s cubic-bezier(.22,1,.36,1) 80ms;
  transform: translateY(10px);
}

.project-card.is-focused .project-card__caption {
  opacity: 1;
  transform: translateY(0);
}

.project-card__title-row {
  display: flex;
  border-bottom: 1px solid #f0f3ef3b;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .5rem;
}

.project-card__title-row h2 {
  font-family: var(--font-display);
  letter-spacing: -.025em;
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  font-weight: 450;
  line-height: 1;
}

.project-card__title-row span, .project-card__type, .project-card__action {
  font-family: var(--font-ui);
  letter-spacing: .09em;
  text-transform: uppercase;
  font-size: .68rem;
}

.project-card__type {
  color: var(--project-accent);
  margin-top: .55rem;
}

.project-card__summary {
  color: #f0f3efad;
  font-family: var(--font-ui);
  max-width: 40rem;
  margin-top: .35rem;
  font-size: clamp(.82rem, 1vw, .96rem);
  line-height: 1.45;
}

.project-card__action {
  position: absolute;
  color: #f0f3efb8;
  bottom: .15rem;
  right: 0;
}

.project-card.is-pending .device-frame {
  opacity: .72;
}

.project-card.is-pending .project-card__caption {
  opacity: .62;
}

.work-rail__end {
  display: flex;
  flex-direction: column;
  flex: 0 0 min(48vw, 720px);
  justify-content: center;
  min-height: 58vh;
  margin: 0 clamp(5rem, 10vw, 12rem);
}

.work-rail__end p {
  font-family: var(--font-display);
  letter-spacing: -.04em;
  max-width: 12ch;
  font-size: clamp(2.6rem, 5.2vw, 6.4rem);
  font-weight: 400;
  line-height: .94;
}

.work-rail__end a {
  font-family: var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid;
  align-self:  flex-start;
  margin-top: 2.5rem;
  padding-bottom: .35rem;
  font-size: .78rem;
}

.work-rail-page__footer {
  position: fixed;
  z-index: 28;
  right: var(--page-gutter);
  bottom: 1.5rem;
  left: var(--page-gutter);
  pointer-events: none;
}

.explore-hint {
  position: absolute;
  color: var(--accent-soft);
  font-family: var(--font-ui);
  letter-spacing: .07em;
  opacity: 0;
  transition: opacity .4s, transform .4s;
  font-size: .72rem;
  bottom: 1.75rem;
  right: 0;
  transform: translateX(-10px);
}

.explore-hint.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.rail-progress {
  overflow: hidden;
  background: #f0f3ef26;
  width: 100%;
  height: 1px;
}

.rail-progress span {
  display: block;
  background: var(--accent-soft);
  transform-origin: left;
  width: 100%;
  height: 100%;
  transition: transform .24s linear;
  transform: scaleX(0);
}

.rail-status {
  display: flex;
  color: #f0f3ef6e;
  font-family: var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  justify-content: space-between;
  margin-top: .55rem;
  font-size: .62rem;
}

@keyframes restored-focus {
  0%, 18% {
    opacity: 0;
    transform: scale(.985);
  }

  42% {
    opacity: .75;
  }

  100% {
    opacity: 0;
    transform: scale(1.015);
  }
}

@media (max-width: 900px) {
  .work-rail-page {
    min-height: 560px;
  }

  .work-rail-page__context {
    top: 7.2rem;
  }

  .work-rail__spacer {
    flex-basis: 7vw;
    min-width: 7vw;
  }

  .project-card {
    --card-width: 84vw;
    opacity: .58;
    height: min(70vh, 650px);
    margin-left: 5vw;
    margin-right: 5vw;
    transform: scale(.96);
  }

  .project-card__media {
    height: min(48vh, 440px);
  }

  .project-card__caption {
    margin-top: .9rem;
  }

  .project-card__title-row h2 {
    font-size: clamp(1.55rem, 6vw, 2.2rem);
  }

  .project-card__action {
    display: none;
  }

  .project-card__summary {
    max-width: 92%;
    font-size: 1rem;
    line-height: 1.42;
  }

  .work-rail__end {
    flex-basis: 82vw;
    min-height: 60vh;
    margin: 0 12vw;
  }
}

@media (max-width: 560px) {
  .work-rail-page {
    min-height: 520px;
  }

  .work-rail-page__context {
    top: 6.65rem;
  }

  .project-card {
    --card-width: 86vw;
    height: calc(100dvh - 11.5rem);
    min-height: 430px;
    margin-top: 3.2rem;
  }

  .project-card__media {
    height: min(45vh, 390px);
  }

  .project-card__caption {
    align-self:  end;
  }

  .project-card__title-row {
    align-items:  flex-end;
  }

  .project-card__title-row h2 {
    max-width: 72%;
  }

  .project-card__type {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .project-card__summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .work-rail-page__footer {
    bottom: .75rem;
  }

  .rail-status {
    font-size: .56rem;
  }

  .explore-hint {
    bottom: 1.6rem;
    left: 0;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card, .project-card__caption, .rail-progress span, .explore-hint {
    transition-duration: 1ms;
  }

  .project-card {
    transform: none;
  }
}

/* src/pages/About.css */
.about-container {
  padding: clamp(2rem, 5vw, 5rem) var(--page-gutter) clamp(5rem, 8vw, 9rem);
  width: min(100%, 1560px);
  margin: 0 auto;
}

.about-header {
  display: grid;
  grid-template-columns: minmax(12rem, .8fr) minmax(0, 1.7fr);
  border-bottom: 1px solid #f0f3ef29;
  align-items:  end;
  gap: clamp(2rem, 6vw, 8rem);
  margin-bottom: clamp(2.5rem, 6vw, 6rem);
  padding-bottom: clamp(1.5rem, 3vw, 3rem);
}

.about-kicker {
  color: #f0f3ef80;
  font-family: var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .66rem;
}

.about-header .main-title {
  font-family: var(--font-display);
  letter-spacing: -.055em;
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 400;
  line-height: .76;
}

.about-content {
  display: grid;
  grid-template-columns: minmax(16rem, .8fr) minmax(0, 1.7fr);
  align-items:  start;
  gap: clamp(2rem, 6vw, 8rem);
}

.about-image {
  position: sticky;
  top: 8rem;
}

.about-image img {
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(100%) contrast(.92);
  background: #17231f;
  width: 100%;
}

.about-image__caption {
  color: #f0f3ef75;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: .8rem;
  font-size: .62rem;
}

.about-text {
  counter-reset: paragraph;
}

.about-text p {
  position: relative;
  color: #f0f3efc2;
  font-family: var(--font-display);
  max-width: 54rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
  padding-left: clamp(2.6rem, 5vw, 5.5rem);
  font-size: clamp(1.35rem, 2.3vw, 2.45rem);
  line-height: 1.25;
}

.about-text p:before {
  counter-increment: paragraph;
  content: "0" counter(paragraph);
  position: absolute;
  color: var(--accent-soft);
  font-family: var(--font-ui);
  letter-spacing: .08em;
  font-size: .58rem;
  top: .45em;
  left: 0;
}

.about-text p:first-child {
  color: var(--text-white);
  letter-spacing: -.035em;
  font-size: clamp(2rem, 4vw, 4.75rem);
  line-height: .98;
}

.about-text p:last-child {
  color: #f0f3ef6b;
  font-family: var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: clamp(3rem, 6vw, 6rem);
  font-size: .66rem;
}

@media (max-width: 760px) {
  .about-container {
    padding-top: 1.5rem;
  }

  .about-header, .about-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-header {
    margin-bottom: 2rem;
  }

  .about-header .main-title {
    font-size: clamp(4rem, 23vw, 7rem);
  }

  .about-image {
    position: static;
  }

  .about-image img {
    max-height: 65vh;
  }

  .about-text {
    padding-top: 1rem;
  }

  .about-text p {
    padding-left: 2.5rem;
    font-size: clamp(1.2rem, 5.5vw, 1.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-container * {
    animation-duration: 1ms;
    transition-duration: 1ms;
  }
}

/* src/pages/ProjectDetail.css */
.project-detail-rail {
  --detail-gutter: clamp(1.25rem, 3.4vw, 4rem);
  overflow: hidden;
  color: var(--text-white);
  background: radial-gradient(circle at 55% 45%, #66827621, #0000 36%), #101614;
  width: 100vw;
  height: 100dvh;
  min-height: 650px;
}

.project-detail-rail__header {
  position: fixed;
  z-index: 60;
  display: flex;
  padding: 0 var(--detail-gutter);
  pointer-events: none;
  justify-content: space-between;
  align-items:  center;
  height: 6.5rem;
  top: 0;
  left: 0;
  right: 0;
}

.detail-back {
  display: inline-flex;
  color: #101614;
  font-family: var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--text-white);
  cursor: pointer;
  pointer-events: auto;
  border: 0;
  border-radius: 999px;
  align-items:  center;
  gap: .6rem;
  min-height: 42px;
  padding: .7rem 1rem;
  transition: transform .22s, background .22s;
  font-size: .7rem;
  font-weight: 600;
}

.detail-back:hover {
  background: var(--detail-accent);
  transform: translateX(-3px);
}

.detail-back:focus-visible {
  outline: 2px solid var(--detail-accent);
  outline-offset: 4px;
}

.detail-chapter-nav button:focus-visible {
  outline: 2px solid var(--detail-accent);
  outline-offset: 4px;
}

.next-project:focus-visible {
  outline: 2px solid var(--detail-accent);
  outline-offset: 4px;
}

.detail-chapter__read-more:focus-visible {
  outline: 2px solid var(--detail-accent);
  outline-offset: 4px;
}

.detail-current {
  display: flex;
  color: #f0f3efb8;
  font-family: var(--font-ui);
  letter-spacing: .09em;
  text-transform: uppercase;
  align-items:  center;
  gap: 1.2rem;
  font-size: .67rem;
}

.detail-current span:last-child {
  color: var(--detail-accent);
}

.detail-horizontal-rail {
  cursor: grab;
  height: 100%;
}

.detail-rail-spacer {
  flex: 0 0 max(var(--detail-gutter), 4vw);
  height: 1px;
}

.detail-chapter {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: .42;
  flex: 0 0 min(78vw, 1180px);
  width: min(78vw, 1180px);
  height: calc(100dvh - 11.5rem);
  min-height: 500px;
  margin: 4rem clamp(8rem, 13vw, 16rem) 2.5rem;
  transition: opacity .52s, transform .7s cubic-bezier(.22,1,.36,1);
  transform: scale(.94);
}

.detail-chapter.is-active {
  opacity: 1;
  transform: scale(1);
}

.detail-chapter__media {
  display: flex;
  overflow: hidden;
  justify-content: center;
  align-items:  center;
  min-height: 0;
}

.detail-chapter__media > .device-frame {
  width: auto;
  max-width: min(100%, 980px);
  height: min(52vh, 550px);
  max-height: 100%;
}

.detail-chapter__media > .device-frame--macbook, .detail-chapter__media > .device-frame--dashboard, .detail-chapter__media > .device-frame--vr, .detail-chapter__media > .device-frame--wearable, .detail-chapter__media > .device-frame--spatial {
  width: min(100%, 980px);
  height: auto;
}

.detail-media-grid {
  display: grid;
  gap: clamp(.5rem, 1vw, 1rem);
  width: 100%;
  height: 100%;
  max-height: min(54vh, 570px);
}

.detail-media-grid--1 {
  grid-template-columns: 1fr;
}

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

.detail-media-grid--3, .detail-media-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.detail-media-grid--3 .detail-media-grid__item:first-child {
  grid-row: 1 / 3;
}

.detail-media-grid--5, .detail-media-grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.detail-media-grid__item {
  position: relative;
  overflow: hidden;
  background: #262d2a;
  border: 1px solid #f0f3ef17;
  min-width: 0;
  min-height: 0;
}

.detail-media-grid__item img {
  display: block;
  object-fit: contain;
  background: #212725;
  width: 100%;
  height: 100%;
}

.detail-media-grid__item--video span {
  position: absolute;
  color: #101614;
  font-family: var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--text-white);
  border-radius: 999px;
  padding: .65rem .85rem;
  font-size: .68rem;
  bottom: 1rem;
  right: 1rem;
}

.detail-chapter__caption {
  display: grid;
  grid-template-columns: minmax(8rem, .7fr) minmax(0, 2.3fr);
  overflow: hidden;
  opacity: 0;
  gap: clamp(1rem, 3vw, 3rem);
  width: min(100%, 980px);
  max-height: 0;
  margin: 0 auto;
  padding-top: 0;
  transition: opacity .42s 90ms, transform .52s cubic-bezier(.22,1,.36,1) 90ms, max-height .52s, padding-top .52s;
  transform: translateY(16px);
}

.detail-chapter__caption.is-active {
  opacity: 1;
  max-height: min(29vh, 270px);
  padding-top: clamp(.85rem, 1.5vw, 1.35rem);
  transition-delay: 60ms, 60ms, 0s, 0s;
  transform: translateY(0);
}

.detail-chapter__caption.is-expanded {
  max-height: min(48vh, 440px);
}

.detail-chapter__caption-header {
  display: flex;
  color: var(--detail-accent);
  font-family: var(--font-ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-direction: column;
  gap: .3rem;
  padding-top: .2rem;
  font-size: .64rem;
}

.detail-chapter__caption-header span:first-child {
  color: #f0f3ef6e;
}

.detail-chapter__caption-body {
  overflow-y: auto;
  scrollbar-color: #f0f3ef40 transparent;
  scrollbar-width: thin;
  min-width: 0;
}

.detail-chapter__caption-body h1 {
  font-family: var(--font-display);
  letter-spacing: -.035em;
  font-size: clamp(1.65rem, 2.7vw, 3rem);
  font-weight: 430;
  line-height: .98;
}

.detail-chapter__tagline {
  color: #f0f3efb3;
  font-family: var(--font-ui);
  margin-top: .4rem;
  font-size: clamp(.78rem, .9vw, .92rem);
  line-height: 1.45;
}

.detail-chapter__meta {
  display: flex;
  color: var(--detail-accent);
  font-family: var(--font-ui);
  letter-spacing: .065em;
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-top: .75rem;
  font-size: .63rem;
}

.detail-chapter__long-copy {
  margin-top: .8rem;
}

.detail-chapter__source + .detail-chapter__source {
  border-top: 1px solid #f0f3ef21;
  margin-top: 1rem;
  padding-top: 1rem;
}

.detail-chapter__source h2 {
  font-family: var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .25rem;
  font-size: .68rem;
  font-weight: 600;
}

.detail-chapter__source-tag {
  color: var(--detail-accent);
  font-family: var(--font-ui);
  margin-bottom: .35rem;
  font-size: .72rem;
}

.detail-chapter__text {
  color: #f0f3efab;
  font-family: var(--font-ui);
  white-space: pre-line;
  margin-top: .75rem;
  font-size: clamp(.76rem, .88vw, .9rem);
  line-height: 1.5;
}

.detail-chapter__text--missing {
  color: #f0f3ef80;
}

.detail-chapter__read-more {
  color: var(--detail-accent);
  font-family: var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 1px solid;
  margin-top: .85rem;
  padding: 0 0 .2rem;
  font-size: .67rem;
}

.detail-chapter--next {
  display: flex;
  justify-content: center;
  align-items:  center;
}

.next-project {
  display: grid;
  grid-template-columns: 1.6fr minmax(13rem, .7fr);
  grid-template-rows: auto 1fr;
  color: inherit;
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  width: min(100%, 980px);
  height: min(67vh, 610px);
  padding: 0;
}

.next-project__eyebrow {
  grid-column: 1 / 3;
  color: var(--detail-accent);
  font-family: var(--font-ui);
  letter-spacing: .09em;
  margin-bottom: 1rem;
  font-size: .68rem;
}

.next-project__frame {
  display: flex;
  overflow: hidden;
  align-items:  center;
  min-width: 0;
}

.next-project__frame .device-frame {
  max-width: 100%;
  max-height: 100%;
}

.next-project__caption {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 1rem clamp(1.5rem, 4vw, 4rem);
}

.next-project__caption h2 {
  font-family: var(--font-display);
  letter-spacing: -.05em;
  font-size: clamp(2.4rem, 5vw, 6rem);
  font-weight: 420;
  line-height: .9;
}

.next-project__caption span, .next-project__caption p {
  color: #f0f3ef91;
  font-family: var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: .6rem;
  font-size: .67rem;
}

.project-detail-rail__footer {
  position: fixed;
  z-index: 58;
  right: var(--detail-gutter);
  bottom: .9rem;
  left: var(--detail-gutter);
  pointer-events: none;
}

.detail-progress {
  overflow: hidden;
  background: #f0f3ef26;
  width: 100%;
  height: 1px;
}

.detail-progress span {
  display: block;
  background: var(--detail-accent);
  transform-origin: left;
  width: 100%;
  height: 100%;
  transition: transform .24s linear;
}

.detail-chapter-nav {
  display: flex;
  pointer-events: auto;
  justify-content: space-between;
  align-items:  flex-start;
  gap: .5rem;
  margin-top: .55rem;
}

.detail-chapter-nav button {
  display: flex;
  color: #f0f3ef5c;
  font-family: var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  background: none;
  border: 0;
  align-items:  center;
  gap: .4rem;
  padding: 0;
  transition: color .22s;
  font-size: .58rem;
}

.detail-chapter-nav button.is-active {
  color: var(--detail-accent);
}

.detail-chapter-nav em {
  font-style: normal;
}

.project-not-found {
  display: grid;
  background: var(--theme-bg);
  place-items:  center;
  gap: 2rem;
  min-height: 100dvh;
  padding: 8rem 1.5rem;
}

.project-not-found .media-placeholder {
  aspect-ratio: 16 / 9;
  width: min(90vw, 900px);
}

.project-not-found button {
  color: var(--theme-bg);
  font-family: var(--font-ui);
  background: var(--text-white);
  border: 0;
  border-radius: 999px;
  padding: .8rem 1.1rem;
}

@media (max-width: 820px) {
  .project-detail-rail {
    min-height: 560px;
  }

  .project-detail-rail__header {
    height: 5.5rem;
  }

  .detail-current span:first-child {
    display: none;
  }

  .detail-chapter {
    flex-basis: 86vw;
    width: 86vw;
    height: calc(100dvh - 10.25rem);
    min-height: 455px;
    margin: 3.8rem 8vw 2.2rem;
  }

  .detail-chapter__media {
    max-height: 45vh;
  }

  .detail-chapter__media > .device-frame {
    height: min(42vh, 410px);
  }

  .detail-media-grid {
    max-height: 43vh;
  }

  .detail-chapter__caption {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: .8rem;
  }

  .detail-chapter__caption.is-active {
    max-height: min(31vh, 275px);
  }

  .detail-chapter__caption.is-expanded {
    max-height: min(48vh, 430px);
  }

  .next-project {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: min(66vh, 560px);
  }

  .next-project__eyebrow {
    grid-column: 1;
  }

  .next-project__caption {
    padding: 1rem 0 0;
  }

  .next-project__caption h2 {
    font-size: clamp(2.4rem, 11vw, 4.5rem);
  }
}

@media (max-width: 560px) {
  .project-detail-rail {
    min-height: 520px;
  }

  .detail-back {
    min-height: 38px;
    padding: .6rem .85rem;
    font-size: .63rem;
  }

  .detail-chapter {
    flex-basis: 88vw;
    width: 88vw;
    height: calc(100dvh - 9rem);
    min-height: 440px;
    margin: 3.5rem 7vw 1.6rem;
  }

  .detail-chapter__media {
    max-height: 39vh;
  }

  .detail-chapter__media > .device-frame {
    height: min(37vh, 350px);
  }

  .detail-media-grid {
    max-height: 38vh;
  }

  .detail-media-grid--3, .detail-media-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .detail-media-grid--5, .detail-media-grid--6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(8rem, 1fr);
    overflow-y: auto;
  }

  .detail-chapter__caption {
    grid-template-columns: 3.5rem minmax(0, 1fr);
  }

  .detail-chapter__caption-header {
    font-size: .55rem;
  }

  .detail-chapter__caption-header span:last-child {
    display: none;
  }

  .detail-chapter__caption-body h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .detail-chapter__tagline, .detail-chapter__text {
    font-size: 1rem;
    line-height: 1.4;
  }

  .detail-chapter__meta {
    font-size: .56rem;
  }

  .project-detail-rail__footer {
    bottom: .55rem;
  }

  .detail-chapter-nav em {
    display: none;
  }

  .detail-chapter-nav button {
    justify-content: center;
    width: 1.3rem;
    font-size: .54rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-chapter, .detail-chapter__caption, .detail-progress span, .detail-back {
    transition-duration: 1ms;
  }

  .detail-chapter, .detail-chapter__caption {
    transform: none;
  }
}

/* src/pages/Contact.css */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items:  center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 4rem;
}

.contact-header {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 500px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper:after {
  content: "";
  position: absolute;
  pointer-events: none;
  background-color: #000;
  width: 0%;
  height: 1px;
  transition: width .2s ease-out;
  bottom: 0;
  left: 0;
}

.input-wrapper:focus-within:after {
  width: 100%;
}

.form-input {
  outline: none;
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  width: 100%;
  padding: 1rem;
  font-family: inherit;
  font-size: .9rem;
}

.form-input:focus {
  background-color: #eaeaea;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  color: #fff;
  cursor: pointer;
  background: none;
  border: 1px solid #fff;
  align-self:  flex-start;
  padding: .8rem 2rem;
  transition: all .3s;
  font-family: inherit;
}

.submit-btn:hover {
  color: var(--color-bg);
  background: #fff;
}

.overlay {
  position: fixed;
  display: flex;
  backdrop-filter: blur(6px);
  pointer-events: auto;
  background: #00000059;
  justify-content: center;
  align-items:  center;
  inset: 0;
  z-index: 999999 !important;
}

.ov-box {
  backdrop-filter: blur(8px);
  text-align: center;
  background: #ffffff0d;
  border: 1px solid #fff3;
  min-width: 280px;
  padding: 28px 36px;
}

.ov-title {
  color: #fff;
  margin-bottom: 6px;
  font-size: 1.3rem;
  font-weight: 500;
}

.ov-text {
  opacity: .85;
  color: #fff;
  font-size: .95rem;
}

.retry-btn {
  color: #fff;
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff80;
  margin-top: 18px;
  padding: 6px 16px;
}

/* src/components/CustomCursor.css */
.cursor-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background-color: #f0f3ef;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  top: 0;
  left: 0;
}

.cursor-circle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  background-color: #0000;
  border: 1px solid #f0f3ef;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  top: 0;
  left: 0;
}

@media (pointer: fine) {
  body, a, button, input {
    cursor: none !important;
  }
}

/* src/styles.css */
:root {
  --bg-work: #071d17;
  --accent-soft: #cfe7c5;
  --selection-bg: #cfe7c5;
  --text-white: #f0f3ef;
  --footer-bg: #101614;
  --theme-bg: var(--bg-work);
  --theme-text: var(--text-white);
  --theme-bg-rgb: 7, 29, 23;
  --theme-text-rgb: 240, 243, 239;
  --font-display: "Karma", Georgia, serif;
  --font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --page-gutter: clamp(1.25rem, 3.5vw, 4rem);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  --buncss-light: ;
  --buncss-dark: initial;
  color-scheme: dark;
  background: var(--theme-bg);
  min-width: 320px;
}

body {
  color: var(--theme-text);
  font-family: var(--font-ui);
  background: var(--theme-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}

body.is-immersive-page {
  overflow: hidden;
  width: 100%;
  height: 100dvh;
}

#root {
  min-height: 100vh;
}

::selection {
  color: var(--theme-bg);
  background: var(--selection-bg);
}

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

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

img {
  max-width: 100%;
}

ul {
  list-style: none;
}

.loading {
  display: grid;
  color: #f0f3ef8f;
  font-family: var(--font-ui);
  place-items:  center;
  min-height: 60vh;
}

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