/* Hallmark | custom route | bespoke specimen rail | modern surrealism with precise pop futurism | seed a576fb02 */
/* Pre-emit critique: the rail, varied mounts, and dense type create identity; the single accent and strict spacing keep it usable. */
@import url("./tokens.css");

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

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

html,
body {
  margin: 0;
  overflow-x: clip;
}

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

#optical-stage {
  height: 100%;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.7;
  pointer-events: none;
  position: fixed;
  width: 100%;
  z-index: 0;
}

.is-fallback #optical-stage {
  display: none;
}

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

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

img {
  height: auto;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 4px;
}

.skip-link {
  background: var(--ink);
  color: var(--on-ink);
  left: var(--space-3);
  padding: var(--space-2) var(--space-3);
  position: fixed;
  top: var(--space-3);
  transform: translateY(-180%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.hero,
.work-section,
.method-section,
.proof-section,
.connect-section,
.site-footer {
  margin-inline: auto;
  max-width: var(--content-max);
  padding-inline: var(--page-pad);
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 5rem;
  position: relative;
  z-index: 10;
}

.wordmark {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  gap: 0.65rem;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark svg {
  fill: none;
  height: 2rem;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-width: 2;
  width: 2rem;
}

.wordmark svg circle:last-child {
  fill: var(--accent);
  stroke: none;
}

.site-header nav {
  align-items: center;
  display: flex;
  gap: clamp(0.15rem, 2vw, 1.5rem);
}

.site-header nav a {
  align-items: center;
  display: none;
  font-size: 0.82rem;
  font-weight: 500;
  min-height: 44px;
  padding-inline: 0.65rem;
  text-decoration: none;
  white-space: nowrap;
}

.site-header nav .nav-cta {
  border-bottom: 2px solid var(--ink);
  display: inline-flex;
}

.hero {
  display: grid;
  gap: var(--space-6);
  min-height: calc(100svh - 5rem);
  padding-bottom: var(--space-7);
  padding-top: clamp(3rem, 9vw, 8rem);
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 2;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 0.93;
}

h1 {
  font-size: clamp(3.4rem, 14vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  margin-bottom: var(--space-4);
  max-width: 11ch;
  overflow-wrap: anywhere;
}

h1 span {
  color: var(--accent);
  display: block;
  font-weight: 400;
}

.hero-copy > p {
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 35rem;
}

.text-link {
  align-items: center;
  display: inline-flex;
  font-weight: 500;
  gap: var(--space-1);
  min-height: 44px;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4rem;
  white-space: nowrap;
}

.text-link span {
  font-size: 1.5rem;
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(0.2rem, 0.2rem);
}

.specimen-stage {
  aspect-ratio: 1 / 0.9;
  min-height: 25rem;
  position: relative;
}

.stage-rail {
  fill: var(--paper);
  height: 100%;
  inset: 0;
  position: absolute;
  stroke: var(--ink);
  stroke-width: 2;
  width: 100%;
}

.stage-rail circle {
  fill: var(--accent);
}

.specimen {
  margin: 0;
  position: absolute;
}

.specimen img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.specimen figcaption {
  background: var(--paper-clear);
  border: 1px solid var(--ink);
  bottom: -1.5rem;
  font-family: var(--font-code);
  font-size: 0.64rem;
  left: 0.6rem;
  padding: 0.38rem 0.48rem;
  position: absolute;
  text-transform: uppercase;
  white-space: nowrap;
}

.specimen figcaption span {
  color: var(--accent);
  margin-right: 0.3rem;
}

.specimen-one {
  height: 42%;
  left: 0;
  top: 4%;
  transform: translate(var(--one-x, 0), var(--one-y, 0)) rotate(-4deg);
  width: 55%;
}

.specimen-one img {
  border-radius: 50%;
}

.specimen-two {
  height: 43%;
  right: 0;
  top: 28%;
  transform: translate(var(--two-x, 0), var(--two-y, 0)) rotate(4deg);
  width: 58%;
}

.specimen-two img {
  clip-path: polygon(12% 0, 100% 0, 91% 100%, 0 87%);
}

.specimen-three {
  bottom: 0;
  height: 35%;
  left: 8%;
  transform: translate(var(--three-x, 0), var(--three-y, 0)) rotate(-2deg);
  width: 47%;
}

.specimen-three img {
  border: 0.45rem solid var(--paper-clear);
  box-shadow: 0 0 0 1px var(--ink);
}

.stage-note {
  bottom: 4%;
  font-family: var(--font-code);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  margin: 0;
  position: absolute;
  right: 0;
  text-align: right;
  text-transform: uppercase;
}

.work-section,
.method-section,
.proof-section,
.connect-section {
  padding-bottom: var(--space-8);
  padding-top: var(--space-8);
}

.section-heading {
  border-top: var(--hairline);
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-3);
}

.section-heading h2,
.method-intro h2,
.proof-copy h2,
.connect-copy h2,
.boundaries-section h2 {
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.section-heading p,
.method-intro p,
.connect-copy > p {
  color: var(--ink-soft);
  margin-bottom: 0;
  max-width: 38rem;
}

.work-collage {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
  margin-top: var(--space-6);
  perspective: 90rem;
}

.work-item {
  margin: 0;
  min-width: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.work-item img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .work-item {
    overflow: clip;
  }

  .work-item img {
    transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1);
  }

  .work-item:hover img {
    transform: scale(1.018);
  }

  .method-rail li:hover .step-number {
    background: var(--accent);
    transform: rotate(8deg) scale(1.08);
  }
}

.work-item figcaption,
.proof-image figcaption {
  align-items: baseline;
  border-bottom: var(--hairline);
  display: flex;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  justify-content: space-between;
  padding-block: var(--space-2);
}

.work-item figcaption span {
  color: var(--ink-faint);
  font-family: var(--font-code);
  font-size: 0.64rem;
  font-weight: 500;
  text-transform: uppercase;
}

.method-section {
  border-top: 1px solid var(--ink);
}

.method-intro {
  display: grid;
  gap: var(--space-4);
}

.method-rail {
  counter-reset: none;
  display: grid;
  gap: 0;
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  position: relative;
  perspective: 80rem;
}

.method-rail::before {
  background: var(--ink);
  content: "";
  height: calc(100% - 4rem);
  left: 1rem;
  position: absolute;
  top: 2rem;
  width: 1px;
}

.method-rail li {
  min-width: 0;
  padding: 0 0 var(--space-6) 3.5rem;
  position: relative;
  transform-style: preserve-3d;
}

.step-number {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  font-family: var(--font-code);
  font-size: 0.65rem;
  height: 2rem;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 2rem;
  transition: background-color 180ms ease, transform 260ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.method-rail li:nth-child(2) .step-number {
  background: var(--accent);
}

.method-rail h3 {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-2);
}

.method-rail p {
  color: var(--ink-soft);
  margin-bottom: 0;
  max-width: 27rem;
}

.proof-section {
  display: grid;
  gap: var(--space-5);
  perspective: 90rem;
}

.proof-copy {
  background: var(--paper-deep);
  padding: clamp(1.5rem, 5vw, 4rem);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.proof-copy h2 {
  max-width: 10ch;
}

.proof-copy > p:not(.annotation) {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  line-height: 1.35;
  margin-top: var(--space-5);
  max-width: 34rem;
}

.proof-mark {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.7;
  position: absolute;
  right: var(--space-4);
  top: var(--space-4);
}

.annotation {
  border-top: var(--hairline);
  color: var(--ink-soft);
  font-family: var(--font-code);
  font-size: 0.72rem;
  margin: var(--space-6) 0 0;
  padding-top: var(--space-3);
  text-transform: uppercase;
}

.proof-image {
  align-self: end;
  margin: 0;
  min-width: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.proof-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.proof-image figcaption {
  font-family: var(--font-code);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.boundaries-section {
  background: var(--ink);
  color: var(--on-ink);
  display: grid;
  gap: var(--space-6);
  padding: var(--space-8) var(--page-pad);
}

.boundaries-section > div,
.boundaries-section dl {
  margin-inline: auto;
  max-width: calc(var(--content-max) / 2);
  width: 100%;
}

.boundaries-section h2 {
  color: var(--on-ink);
  max-width: 9ch;
}

.boundaries-section > div p {
  color: var(--paper-deep);
  margin: var(--space-4) 0 0;
  max-width: 34rem;
}

.boundaries-section dl {
  margin-block: 0;
}

.boundaries-section dl div {
  border-top: 1px solid var(--ink-soft);
  display: grid;
  gap: var(--space-1);
  padding-block: var(--space-3);
}

.boundaries-section dt {
  color: var(--accent-soft);
  font-family: var(--font-code);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.boundaries-section dd {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}

.connect-section {
  display: grid;
  gap: var(--space-6);
}

.connect-copy h2 {
  max-width: 8ch;
}

.connect-copy > p {
  margin-top: var(--space-4);
}

.connect-copy .endpoint {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: var(--font-code);
  font-size: 0.72rem;
  gap: var(--space-2);
  text-transform: uppercase;
}

.endpoint span {
  background: var(--accent);
  border-radius: 50%;
  font-size: 0;
  height: 0.65rem;
  width: 0.65rem;
}

.code-specimen {
  align-self: end;
  background: var(--paper-clear);
  border: 1px solid var(--ink);
  min-width: 0;
  position: relative;
}

.code-specimen::before {
  background: var(--accent);
  content: "";
  height: 1rem;
  left: -0.5rem;
  position: absolute;
  top: 2.8rem;
  transform: rotate(45deg);
  width: 1rem;
}

.code-topline {
  align-items: center;
  border-bottom: 1px solid var(--ink);
  display: flex;
  font-family: var(--font-code);
  font-size: 0.7rem;
  justify-content: space-between;
  min-height: 3rem;
  padding-left: var(--space-3);
  text-transform: uppercase;
}

.code-topline button {
  align-self: stretch;
  background: var(--ink);
  border: 0;
  color: var(--on-ink);
  cursor: pointer;
  min-width: 7.5rem;
  padding-inline: var(--space-3);
  white-space: nowrap;
}

.code-topline button:hover {
  background: var(--accent);
  color: var(--ink);
}

pre {
  font-family: var(--font-code);
  font-size: clamp(0.66rem, 1.7vw, 0.82rem);
  line-height: 1.65;
  margin: 0;
  overflow-x: auto;
  padding: clamp(1rem, 4vw, 2rem);
}

.site-footer {
  align-items: flex-end;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  padding-top: var(--space-5);
}

.site-footer p {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 0;
  max-width: 17ch;
}

.site-footer a {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-code);
  font-size: 0.7rem;
  min-height: 44px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 42rem) {
  .site-header nav a {
    display: inline-flex;
  }

  .hero {
    align-items: center;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    padding-top: var(--space-5);
  }

  .specimen-stage {
    min-height: 32rem;
  }

  .section-heading,
  .method-intro {
    align-items: end;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .work-collage {
    align-items: start;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: var(--space-7);
  }

  .work-wide {
    grid-column: 1 / span 8;
  }

  .work-tall {
    grid-column: 9 / -1;
    margin-top: var(--space-7);
  }

  .work-tall img {
    aspect-ratio: 4 / 5;
  }

  .work-small {
    grid-column: 2 / span 4;
  }

  .work-offset {
    grid-column: 7 / -1;
    margin-top: var(--space-6);
  }

  .method-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--space-7);
  }

  .method-rail::before {
    height: 1px;
    left: 1rem;
    top: 1rem;
    width: calc(100% - 2rem);
  }

  .method-rail li {
    padding: 3.75rem var(--space-5) 0 0;
  }

  .proof-section,
  .connect-section {
    align-items: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-image {
    margin-left: -3rem;
    transform: rotate(2deg);
  }

  .boundaries-section {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: max(var(--page-pad), calc((100vw - var(--content-max)) / 2 + var(--page-pad)));
  }

  .boundaries-section dl div {
    grid-template-columns: 0.65fr 1.35fr;
  }

  .site-footer {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 70rem) {
  .hero {
    grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  }

  .specimen-stage {
    min-height: 40rem;
  }

  .specimen-one {
    left: 2%;
    width: 49%;
  }

  .specimen-two {
    width: 55%;
  }

  .specimen-three {
    left: 15%;
    width: 44%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .specimen-stage {
    animation: enter 680ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
  }

  .specimen-stage {
    animation-delay: 110ms;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(1.2rem);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
