:root {
  --bg: #efebe1;
  --bg-deep: #e5decd;
  --paper: #f8f4eb;
  --ink: #111111;
  --ink-soft: #4d4b45;
  --ink-muted: rgba(17, 17, 17, 0.64);
  --panel: rgba(255, 252, 246, 0.9);
  --panel-strong: rgba(18, 18, 18, 0.96);
  --panel-soft: rgba(23, 23, 23, 0.82);
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.26);
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #d9ff46;
  --accent-strong: #c5f220;
  --accent-warm: #d86d46;
  --accent-cool: #1d2d5a;
  --shadow: 0 28px 80px rgba(14, 11, 7, 0.12);
  --display: "Iowan Old Style", "Baskerville", "STSong", "Songti SC", serif;
  --body: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background:
    linear-gradient(180deg, rgba(244, 239, 230, 0.92), rgba(237, 231, 218, 0.94)),
    url("assets/backgrounds/paper-texture.jpg");
  background-size: auto, 900px auto;
  background-repeat: repeat;
  background-position: center top;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 96%);
  opacity: 0.34;
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 72%),
    url("assets/photos/moon-desert.jpg");
  background-size: auto, cover;
  background-position: center top;
  opacity: 0.14;
  mix-blend-mode: multiply;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent 72%);
}

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

img,
canvas {
  display: block;
  width: 100%;
}

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

button {
  color: inherit;
}

input,
textarea,
select {
  border-radius: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-cool);
  outline-offset: 3px;
}

.cursor-orb {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 255, 70, 0.24), transparent 70%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  filter: blur(16px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1360px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 28px;
}

.topbar,
.hero-stage,
.marquee-stage,
.stats-stage,
.story-stage,
.showcase-stage,
.photography-stage,
.interactive-stage,
.contact-stage,
.portfolio-hero,
.portfolio-stage,
.portfolio-process-stage {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(248, 244, 235, 0.82);
  backdrop-filter: blur(16px);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--accent);
  border: 1px solid var(--ink);
}

.brand-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-meta span:first-child {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-meta span:last-child {
  color: var(--ink-muted);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  color: var(--ink-soft);
}

.topnav a {
  position: relative;
  padding-bottom: 4px;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.topnav a:hover::after,
.topnav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-cta,
.button,
.panel-button,
.filter-button,
.move-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-cta,
.button-primary,
.panel-button,
.filter-button.is-active,
.move-button.is-hot {
  color: var(--ink);
  background: var(--accent);
  box-shadow: 8px 8px 0 rgba(17, 17, 17, 0.08);
}

.button-secondary,
.panel-button.ghost,
.filter-button,
.move-button {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-dark);
}

.button:hover,
.nav-cta:hover,
.panel-button:hover,
.filter-button:hover,
.move-button:hover {
  transform: translateY(-2px);
}

main {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.hero-stage,
.story-stage,
.showcase-stage,
.contact-stage,
.portfolio-hero,
.portfolio-process-stage {
  background: linear-gradient(180deg, rgba(248, 244, 235, 0.92), rgba(239, 233, 221, 0.92));
}

.marquee-stage,
.stats-stage,
.photography-stage,
.interactive-stage,
.portfolio-stage {
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.97), rgba(10, 10, 10, 0.96));
  color: var(--paper);
}

.hero-stage,
.portfolio-hero,
.portfolio-stage,
.portfolio-process-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 28px;
  padding: 30px;
}

.hero-stage::before,
.portfolio-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(248, 244, 235, 0.96), rgba(248, 244, 235, 0.72)),
    url("assets/photos/elegant-story.jpg");
  background-size: auto, cover;
  background-position: center center;
  opacity: 0.88;
  mix-blend-mode: multiply;
}

.portfolio-hero::before {
  background:
    linear-gradient(120deg, rgba(248, 244, 235, 0.96), rgba(248, 244, 235, 0.72)),
    url("assets/photos/long-vacation.jpg");
  background-size: auto, cover;
  background-position: center top;
}

.hero-stage > *,
.portfolio-hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow,
.panel-label,
.overlay-copy span,
.note-copy span,
.score-chip span,
.guestbook-meta,
.lightbox-copy span,
.story-card-meta,
.form-note {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow,
.panel-label,
.story-card-meta,
.form-note {
  color: rgba(17, 17, 17, 0.58);
}

.marquee-stage .eyebrow,
.stats-stage .eyebrow,
.photography-stage .eyebrow,
.interactive-stage .eyebrow,
.contact-stage .panel-label,
.interactive-stage .panel-label,
.score-chip span,
.lightbox-copy span,
.guestbook-meta {
  color: rgba(248, 244, 235, 0.62);
}

.hero-title,
.section-head h2,
.story-card h3,
.showcase-note h3,
.showcase-card h3,
.photo-copy h3,
.panel-card h3,
.contact-form-card h3,
.lightbox-copy h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.92;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
  font-size: clamp(4.8rem, 11vw, 9rem);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.hero-title span:last-child {
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 17, 17, 0.58);
}

.hero-name {
  margin: 18px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.16rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero-subtitle {
  margin: 14px 0 0;
  max-width: 20rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.3;
}

.hero-summary,
.section-copy,
.showcase-note p,
.showcase-card p,
.photo-copy p,
.panel-copy,
.fitness-subcopy,
.prompt-card-text,
.contact-card p,
.lightbox-copy p,
.stacked-form label span,
.form-status {
  line-height: 1.8;
  font-size: 1rem;
}

.hero-summary {
  max-width: 32rem;
  margin: 16px 0 0;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tag {
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}

.hero-display {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px;
  align-items: end;
}

.portfolio-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  padding: 30px;
  align-items: center;
}

.portfolio-copy {
  max-width: 34rem;
}

.portfolio-title {
  margin: 14px 0 0;
  font-family: var(--display);
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.portfolio-summary {
  max-width: 30rem;
  margin: 16px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.portfolio-feature-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 16px 16px 0 rgba(17, 17, 17, 0.08);
}

.portfolio-feature-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.portfolio-feature-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px 18px;
  color: var(--paper);
  background: rgba(17, 17, 17, 0.66);
  backdrop-filter: blur(10px);
}

.portfolio-feature-copy strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 1.4rem;
  line-height: 1.1;
}

.portfolio-feature-copy p {
  margin: 8px 0 0;
  line-height: 1.7;
}

.tilt-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  transform: perspective(1200px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 180ms ease;
}

.display-monitor,
.display-phone,
.display-note {
  position: relative;
}

.display-monitor {
  grid-row: span 2;
}

.screen-frame {
  position: relative;
  overflow: hidden;
  border: 10px solid #121212;
  border-radius: 18px 18px 8px 8px;
  background: #111;
}

.screen-frame img {
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.device-base {
  width: calc(100% - 28px);
  height: 34px;
  margin: 12px auto 0;
  border: 6px solid #121212;
  border-top-width: 10px;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    #1a1a1a;
}

.display-phone {
  padding: 16px 16px 18px;
  border: 1px solid var(--ink);
  background: #202020;
  border-radius: 30px;
}

.phone-topline {
  width: 84px;
  height: 8px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.phone-screen img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.phone-screen img.media-rotate-90 {
  transform: rotate(90deg) scale(1.38);
  transform-origin: center;
}

.photo-card img.media-rotate-90-card,
.portfolio-card img.media-rotate-90-card,
.portfolio-feature-card img.media-rotate-90-card,
.lightbox-dialog img.media-rotate-90-card {
  transform: rotate(90deg) scale(1.34);
  transform-origin: center;
}

.display-note {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 rgba(17, 17, 17, 0.08);
}

.display-note img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.overlay-copy,
.note-copy {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

.overlay-copy {
  color: var(--paper);
  background: rgba(17, 17, 17, 0.62);
}

.note-copy {
  position: static;
  background: var(--paper);
}

.overlay-copy strong,
.note-copy strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.1;
}

.overlay-copy p,
.note-copy p {
  margin: 8px 0 0;
  line-height: 1.65;
}

.overlay-copy.compact strong {
  font-size: 1rem;
}

.marquee-stage {
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding-left: 14px;
  animation: marqueeMove 26s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.marquee-item strong {
  color: var(--accent);
  font-family: var(--display);
  font-size: 1rem;
}

.stats-stage {
  padding: 1px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.stat-card {
  min-height: 140px;
  padding: 22px;
  background: rgba(12, 12, 12, 0.96);
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.45;
}

.story-stage,
.showcase-stage,
.photography-stage,
.interactive-stage,
.contact-stage {
  padding: 28px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: 14px 28px;
  align-items: end;
  margin-bottom: 26px;
}

.section-head h2 {
  font-size: clamp(2.7rem, 5.4vw, 5.4rem);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.section-copy {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-soft);
}

.photography-stage .section-copy,
.interactive-stage .section-copy {
  color: rgba(248, 244, 235, 0.78);
}

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

.story-card {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.46);
}

.story-card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ink);
  background: var(--accent);
  font-family: var(--display);
  font-size: 1.35rem;
}

.story-card h3 {
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 3rem);
  text-transform: uppercase;
}

.story-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.showcase-stage {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 18px;
  align-items: start;
}

.showcase-feature {
  overflow: hidden;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.54);
}

.showcase-feature img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.showcase-note {
  width: min(490px, calc(100% - 34px));
  margin: -84px 0 16px 18px;
  padding: 20px;
  position: relative;
  background: rgba(17, 17, 17, 0.92);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 16px 16px 0 rgba(17, 17, 17, 0.08);
}

.showcase-note .eyebrow {
  color: rgba(248, 244, 235, 0.6);
}

.showcase-note h3 {
  margin-top: 12px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

.showcase-note p {
  margin: 14px 0 0;
  color: rgba(248, 244, 235, 0.82);
}

.showcase-stack {
  display: grid;
  gap: 14px;
}

.showcase-card {
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--accent);
  color: var(--ink);
}

.showcase-card:nth-child(2n) {
  background: rgba(255, 255, 255, 0.58);
}

.showcase-card h3 {
  margin-top: 10px;
  font-size: 1.65rem;
  text-transform: uppercase;
}

.showcase-card p {
  margin: 12px 0 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

.portfolio-grid,
.portfolio-process-grid {
  display: grid;
  gap: 16px;
}

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

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

.photo-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.photo-card[data-size="wide"] {
  grid-column: span 7;
}

.photo-card[data-size="tall"] {
  grid-column: span 5;
}

.photo-card[data-size="large"] {
  grid-column: span 8;
}

.photo-card[data-size="compact"] {
  grid-column: span 4;
}

.photo-image-wrap {
  overflow: hidden;
}

.photo-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.photo-card[data-size="tall"] img {
  aspect-ratio: 4 / 5;
}

.photo-card:hover img,
.photo-card:focus-visible img {
  transform: scale(1.04);
}

.photo-copy {
  padding: 18px 18px 20px;
}

.photo-copy span {
  color: rgba(248, 244, 235, 0.56);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.photo-copy h3 {
  margin-top: 10px;
  font-size: 1.55rem;
  text-transform: uppercase;
}

.photo-copy p {
  margin: 10px 0 0;
  color: rgba(248, 244, 235, 0.74);
}

.interactive-layout,
.contact-layout {
  display: grid;
  gap: 16px;
}

.interactive-layout {
  grid-template-columns: 1.08fr 0.92fr;
}

.interactive-stack {
  display: grid;
  gap: 16px;
}

.panel-card,
.contact-form-card,
.contact-card {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}

.panel-card,
.contact-form-card {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-head h3,
.prompt-panel h3,
.contact-form-card h3 {
  margin-top: 8px;
  color: var(--paper);
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  text-transform: uppercase;
}

.panel-actions,
.score-strip,
.contact-cards {
  display: grid;
  gap: 10px;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.score-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.score-strip.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.score-chip {
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.score-chip strong {
  display: block;
  margin-top: 10px;
  color: var(--paper);
  font-family: var(--display);
  font-size: 1.12rem;
}

.pool-canvas {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0f6a5c, #0b4d44);
  touch-action: none;
}

.panel-copy,
.fitness-subcopy,
.prompt-card-text,
.form-status {
  margin: 14px 0 0;
  color: rgba(248, 244, 235, 0.76);
}

.form-status[data-state="success"] {
  color: var(--accent);
}

.form-status[data-state="error"] {
  color: #ffab8d;
}

.button:disabled,
.panel-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.fitness-screen {
  padding: 22px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.fitness-screen[data-tone="PUSH"] {
  background: linear-gradient(135deg, rgba(216, 109, 70, 0.26), rgba(255, 255, 255, 0.03));
}

.fitness-screen[data-tone="SQUAT"] {
  background: linear-gradient(135deg, rgba(217, 255, 70, 0.18), rgba(255, 255, 255, 0.03));
}

.fitness-screen[data-tone="HOLD"] {
  background: linear-gradient(135deg, rgba(29, 45, 90, 0.28), rgba(255, 255, 255, 0.03));
}

.fitness-screen[data-tone="DONE"] {
  background: linear-gradient(135deg, rgba(84, 145, 95, 0.28), rgba(255, 255, 255, 0.03));
}

.fitness-prompt {
  margin: 12px 0 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.move-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.move-button {
  min-height: 54px;
}

.move-button.is-correct {
  color: var(--ink);
  border-color: transparent;
  background: var(--accent);
}

.move-button.is-wrong {
  border-color: rgba(216, 109, 70, 0.48);
  background: rgba(216, 109, 70, 0.18);
}

.prompt-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.prompt-card-text {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.stacked-form label {
  display: grid;
  gap: 6px;
}

.stacked-form label span {
  color: rgba(248, 244, 235, 0.82);
}

.stacked-form input,
.stacked-form textarea,
.stacked-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.03);
}

.stacked-form input::placeholder,
.stacked-form textarea::placeholder {
  color: rgba(248, 244, 235, 0.44);
}

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

.guestbook-list {
  display: grid;
  gap: 12px;
  max-height: 320px;
  margin-top: 14px;
  overflow: auto;
}

.guestbook-item {
  padding: 14px;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}

.guestbook-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.guestbook-name {
  color: var(--paper);
  font-weight: 700;
}

.guestbook-item p {
  margin: 10px 0 0;
  color: rgba(248, 244, 235, 0.8);
  line-height: 1.8;
}

.contact-stage {
  color: var(--ink);
}

.portfolio-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.portfolio-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-card-copy {
  padding: 18px;
}

.portfolio-card-copy h3,
.portfolio-process-card h3 {
  margin: 12px 0 0;
  font-family: var(--display);
  line-height: 1;
}

.portfolio-card-copy h3 {
  color: var(--paper);
  font-size: 1.7rem;
}

.portfolio-card-copy p,
.portfolio-process-card p {
  margin: 10px 0 0;
  line-height: 1.8;
}

.portfolio-card-copy p {
  color: rgba(248, 244, 235, 0.76);
}

.portfolio-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-card-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line-dark);
  color: rgba(248, 244, 235, 0.78);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-process-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.46);
}

.portfolio-process-card p:last-child {
  color: var(--ink-soft);
}

.contact-layout {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

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

.contact-card {
  padding: 22px;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.42);
}

.contact-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.contact-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
}

.contact-card a {
  color: inherit;
}

.contact-form-card {
  border-color: var(--ink);
  background: #141414;
  color: var(--paper);
}

.contact-form-card .form-note,
.contact-form-card .stacked-form label span,
.contact-form-card .form-status {
  color: rgba(248, 244, 235, 0.76);
}

.contact-form-card .stacked-form input,
.contact-form-card .stacked-form textarea,
.contact-form-card .stacked-form select {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px 0;
  color: rgba(17, 17, 17, 0.58);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 7, 7, 0.84);
  backdrop-filter: blur(12px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: rgba(12, 12, 12, 0.96);
  color: var(--paper);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.lightbox-dialog img {
  height: 100%;
  object-fit: cover;
}

.lightbox-copy {
  padding: 28px;
}

.lightbox-copy h3 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  text-transform: uppercase;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms ease;
}

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

@keyframes marqueeMove {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 1120px) {
  .hero-stage,
  .showcase-stage,
  .interactive-layout,
  .contact-layout,
  .portfolio-hero {
    grid-template-columns: 1fr;
  }

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

  .portfolio-grid,
  .portfolio-process-grid {
    grid-template-columns: 1fr;
  }

  .hero-display {
    grid-template-columns: 1fr 1fr;
  }

  .display-monitor {
    grid-column: span 2;
    grid-row: span 1;
  }

  .photo-card,
  .photo-card[data-size="wide"],
  .photo-card[data-size="tall"],
  .photo-card[data-size="large"],
  .photo-card[data-size="compact"] {
    grid-column: span 12;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 16px, 1360px);
  }

  .topbar,
  .hero-stage,
  .story-stage,
  .showcase-stage,
  .photography-stage,
  .interactive-stage,
  .contact-stage,
  .portfolio-hero,
  .portfolio-stage,
  .portfolio-process-stage {
    padding: 18px;
  }

  .topbar,
  .brand-cluster,
  .hero-actions,
  .panel-head,
  .panel-actions,
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    margin-left: 0;
  }

  .hero-display,
  .stats-grid,
  .score-strip,
  .score-strip.four,
  .move-grid,
  .contact-cards,
  .portfolio-grid,
  .portfolio-process-grid {
    grid-template-columns: 1fr;
  }

  .display-monitor {
    grid-column: span 1;
  }

  .section-head,
  .lightbox-dialog {
    grid-template-columns: 1fr;
  }

  .showcase-note {
    width: calc(100% - 24px);
    margin: -44px 0 12px 12px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .cursor-orb {
    opacity: 1;
  }
}

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

  .cursor-orb,
  .tilt-card,
  .reveal,
  .button,
  .nav-cta,
  .panel-button,
  .filter-button,
  .move-button,
  .photo-card img,
  .marquee-track,
  .topnav a::after {
    animation: none;
    transition: none;
  }
}
