:root {
  --bg: #070707;
  --bg-soft: #111111;
  --panel: #141414;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --paper: #e7dece;
  --paper-deep: #d4c6af;
  --paper-text: #1d1914;
  --text: #f4eee5;
  --muted: rgba(244, 238, 229, 0.72);
  --muted-strong: rgba(244, 238, 229, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --line-dark: rgba(29, 25, 20, 0.12);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius-xl: 2rem;
  --radius-lg: 1.45rem;
  --radius-md: 1rem;
  --max-width: 76rem;
  --font-display: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", serif;
  --font-sans: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 28%),
    linear-gradient(180deg, #050505 0%, #0b0b0b 38%, #080808 100%);
  color: var(--text);
  font-family: var(--font-sans);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  pointer-events: none;
  background: url("../images/portfolio-paper-texture-landing.webp") center / 560px repeat;
  mix-blend-mode: soft-light;
}

body.is-loading,
body.is-nav-open {
  overflow: hidden;
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.site-header,
main,
.site-footer {
  transition:
    opacity 0.9s ease,
    transform 0.9s ease,
    filter 0.9s ease;
}

body.is-loading .site-header,
body.is-loading main,
body.is-loading .site-footer {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.85rem);
  pointer-events: none;
}

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

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

button {
  font: inherit;
}

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

section[id],
footer[id] {
  scroll-margin-top: 6rem;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow,
.section-kicker,
.card-index,
.availability-card__label,
.site-footer__meta,
.hero__meta {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid transparent;
  transition:
    padding 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.site-header.is-scrolled {
  padding-block: 0.75rem;
  border-color: var(--line);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.site-brand__mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
}

.site-brand__text {
  display: grid;
  gap: 0.04rem;
  line-height: 0.9;
}

.site-brand__name {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.site-brand__role {
  color: rgba(244, 238, 229, 0.68);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-header__toggle {
  display: none;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-header__toggle-lines {
  display: grid;
  gap: 0.28rem;
}

.site-header__toggle-lines span {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__toggle-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header__toggle.is-open .site-header__toggle-lines span:first-child {
  transform: translateY(0.19rem) rotate(45deg);
}

.site-header__toggle.is-open .site-header__toggle-lines span:last-child {
  transform: translateY(-0.19rem) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 6.5rem 0 2rem;
  overflow: clip;
}

.hero__media,
.hero__media::after,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.92) contrast(1.08) brightness(0.5);
}

.hero__media::after {
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.88) 0%, rgba(4, 4, 4, 0.54) 44%, rgba(4, 4, 4, 0.24) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.48));
}

.hero__veil {
  background:
    radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 18% 74%, rgba(231, 222, 206, 0.08), transparent 28%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  width: min(44rem, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 3.8rem;
}

.hero__content {
  max-width: 40rem;
}

.signature-wordmark {
  display: grid;
  gap: 0;
  width: min(100%, 40rem);
}

.signature-wordmark__ink {
  display: block;
  width: 100%;
  aspect-ratio: 1264 / 288;
  background: currentColor;
  -webkit-mask: url("../images/colton-jackson-signature-fast.webp") center / contain no-repeat;
  mask: url("../images/colton-jackson-signature-fast.webp") center / contain no-repeat;
}

.signature-wordmark__underline {
  display: block;
  width: 86%;
  height: auto;
  overflow: visible;
  margin-top: -0.15rem;
  margin-left: 0.65rem;
}

.signature-wordmark__underline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.78;
}

.signature-wordmark--hero {
  margin-top: 0.65rem;
  color: rgba(244, 238, 229, 0.98);
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.22));
}

.signature-wordmark--footer {
  width: min(100%, 24rem);
  margin: 0.55rem 0 0.7rem;
  color: rgba(29, 25, 20, 0.96);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #000;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.9s ease,
    visibility 0s linear 0.9s;
}

body.is-loaded .page-loader {
  opacity: 0;
  visibility: hidden;
}

.page-loader__mark {
  width: min(100%, 30rem);
}

.signature-wordmark--loader {
  color: rgba(244, 238, 229, 0.98);
  filter: drop-shadow(0 18px 34px rgba(255, 255, 255, 0.05));
}

.signature-wordmark--loader .signature-wordmark__ink,
.signature-wordmark--loader .signature-wordmark__underline {
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, opacity;
}

.signature-wordmark--loader .signature-wordmark__ink {
  animation: loader-signature-reveal 1.45s cubic-bezier(0.22, 0.8, 0.2, 1) forwards;
}

.signature-wordmark--loader .signature-wordmark__underline {
  width: 86%;
  margin-top: -0.12rem;
  margin-left: 0.75rem;
  animation: loader-signature-reveal 0.82s cubic-bezier(0.22, 0.8, 0.2, 1) 1.3s forwards;
}

@keyframes loader-signature-reveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.2;
  }

  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.eyebrow {
  color: rgba(244, 238, 229, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}

.hero__lede {
  margin: 1.35rem 0 0;
  max-width: 31rem;
  color: var(--muted-strong);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--light {
  border-color: transparent;
  background: var(--paper);
  color: var(--paper-text);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.intro-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
  gap: 1.5rem 2.25rem;
  margin-top: -4.2rem;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: rgba(231, 222, 206, 0.96);
  color: var(--paper-text);
  box-shadow: var(--shadow);
}

.section-kicker {
  color: rgba(29, 25, 20, 0.62);
}

.intro-panel__body h2,
.section-head h2,
.card-title,
.availability-card h3,
.site-footer h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.94;
}

.intro-panel__body h2 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.3rem, 5vw, 3.9rem);
}

.intro-panel__body p {
  margin: 0.9rem 0 0;
  max-width: 39rem;
  color: rgba(29, 25, 20, 0.76);
  line-height: 1.9;
  font-size: 1.02rem;
}

.works,
.statement,
.availability {
  padding-top: 7rem;
}

.availability {
  padding-bottom: 7rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
  gap: 1.5rem 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0.35rem 0 0;
  max-width: 10ch;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.section-head__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.3rem;
}

.work-card,
.availability-card,
.statement__inner,
.site-footer__grid {
  box-shadow: var(--shadow);
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.work-card--feature {
  grid-column: span 7;
}

.work-card--paper {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-color: var(--line-dark);
  background: rgba(231, 222, 206, 0.96);
  color: var(--paper-text);
}

.work-card--tall {
  grid-column: span 5;
}

.work-card--wide {
  grid-column: span 7;
}

.media-frame {
  position: relative;
  overflow: hidden;
}

.work-card--feature .media-frame {
  min-height: 31rem;
}

.work-card--tall .media-frame {
  min-height: 34rem;
}

.work-card--wide .media-frame {
  min-height: 24rem;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease, filter 0.35s ease;
}

.work-card:hover .media-frame img,
.work-card:focus-within .media-frame img {
  transform: scale(1.04);
}

.media-frame--hero img {
  object-position: center center;
  filter: saturate(0.95) contrast(1.06);
}

.media-frame--mono img {
  object-position: 68% 48%;
  filter: grayscale(1) contrast(1.16) brightness(0.82);
}

.media-frame--soft img {
  object-position: 42% 72%;
  filter: saturate(0.86) brightness(0.94);
}

.card-body {
  display: grid;
  gap: 0.8rem;
  padding: 1.55rem 1.55rem 1.7rem;
}

.card-index {
  color: rgba(244, 238, 229, 0.62);
  font-size: 0.72rem;
  font-weight: 700;
}

.card-index--dark {
  color: rgba(29, 25, 20, 0.58);
}

.card-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 238, 229, 0.54);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-card__quote {
  margin: 1rem 0 0;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.9rem);
  font-weight: 600;
  line-height: 0.95;
}

.work-card__note {
  margin: 1rem 0 0;
  color: rgba(29, 25, 20, 0.74);
  line-height: 1.85;
}

.paper-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-dark);
}

.paper-list__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(29, 25, 20, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.statement__inner {
  padding: clamp(2rem, 4vw, 3.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(18, 18, 18, 0.94), rgba(8, 8, 8, 0.98)),
    url("../images/portfolio-paper-texture.png") center / 840px repeat;
}

.statement blockquote {
  margin: 0.9rem 0 0;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  font-weight: 600;
  line-height: 0.96;
}

.statement p {
  margin: 1.2rem 0 0;
  max-width: 37rem;
  color: var(--muted);
  line-height: 1.85;
}

.availability__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.availability-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 17rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.availability-card__label {
  color: rgba(244, 238, 229, 0.52);
  font-size: 0.74rem;
  font-weight: 700;
}

.availability-card h3 {
  margin: 0.8rem 0 0.65rem;
  font-size: 2rem;
}

.availability-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.availability-card__foot {
  margin-top: 1.35rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(244, 238, 229, 0.56);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer {
  padding-bottom: 3rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  gap: 1.5rem 2rem;
  align-items: end;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-xl);
  background: rgba(231, 222, 206, 0.97);
  color: var(--paper-text);
}

.site-footer h2 {
  margin: 0.35rem 0 0;
  max-width: 11ch;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.site-footer__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 3rem);
  font-weight: 600;
  line-height: 1;
  word-break: break-word;
}

.site-footer__email:hover,
.site-footer__email:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.site-footer__note {
  margin: 1rem 0 0;
  color: rgba(29, 25, 20, 0.72);
  line-height: 1.85;
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-top: 1.2rem;
  color: rgba(29, 25, 20, 0.58);
  font-size: 0.74rem;
  font-weight: 700;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(1.35rem);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@media (max-width: 960px) {
  .site-header__toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.95rem;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1.25rem;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav.is-open a {
    color: var(--muted-strong);
  }

  .hero__grid,
  .intro-panel,
  .section-head,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .intro-panel {
    margin-top: -2rem;
  }

  .works-grid,
  .availability__grid {
    grid-template-columns: 1fr;
  }

  .work-card--feature,
  .work-card--paper,
  .work-card--tall,
  .work-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 92svh;
    padding-top: 5.8rem;
  }

  .hero__grid {
    padding-bottom: 2rem;
  }

  .site-brand__text {
    gap: 0;
  }

  .site-brand__name {
    font-size: 1.08rem;
  }

  .site-brand__role {
    font-size: 0.46rem;
    letter-spacing: 0.22em;
  }

  .hero__content h1 {
    max-width: 8ch;
  }

  .signature-wordmark {
    width: min(100%, 26rem);
  }

  .signature-wordmark__underline {
    width: 88%;
    margin-top: -0.08rem;
    margin-left: 0.4rem;
  }

  .signature-wordmark--footer {
    width: min(100%, 18rem);
  }

  .page-loader__mark {
    width: min(100%, 19rem);
  }

  .hero__actions {
    width: 100%;
  }

  .button {
    flex: 1 1 100%;
  }

  .work-card--feature .media-frame {
    min-height: 20rem;
  }

  .work-card--tall .media-frame {
    min-height: 24rem;
  }

  .work-card--wide .media-frame {
    min-height: 18rem;
  }

  .work-card--paper,
  .availability-card {
    padding: 1.4rem;
  }

  .statement__inner,
  .site-footer__grid,
  .intro-panel {
    padding: 1.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

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