/* CineFrames landing page. Depends on styles/tokens.css for the brand system. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  /* faint spotlight from above, like a wall under a gallery light */
  background-image: radial-gradient(
    120% 80% at 50% -10%,
    rgba(176, 141, 87, 0.08),
    transparent 60%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* ---- shared type devices ---- */
.eyebrow {
  margin: 0 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
}

.spec {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--bone-soft);
}

.wordmark {
  display: inline-flex;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-decoration: none;
  color: var(--bone);
}

/* the logo ships as a black mark on transparency; invert turns it to a crisp
   white mark for the dark rail while preserving its soft edges */
.wordmark__img {
  display: block;
  width: auto;
  height: clamp(22px, 5vw, 30px);
  filter: invert(1);
}

/* ---- top rail ---- */
.rail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--edge);
  border-bottom: 1px solid var(--hairline);
}

.rail__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  color: var(--bone-faint);
}

.rail__enter {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--bone-soft);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.rail__enter:hover {
  color: var(--bone);
}

/* the tag is quiet decoration on narrow screens */
@media (max-width: 640px) {
  .rail__tag {
    display: none;
  }
}

/* ---- hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5.5rem);
  padding: clamp(2.5rem, 7vw, 6rem) var(--edge) var(--space-6);
  max-width: 1320px;
  margin: 0 auto;
}

.hero__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.hero__year {
  font-size: 0.5em;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--bone-faint);
  vertical-align: 0.35em;
}

.hero__artist {
  margin: 0 0 var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.hero__thesis {
  margin: var(--space-3) 0 0;
  max-width: 40ch;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--bone-soft);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.cta {
  display: inline-block;
  padding: 0.9em 1.6em;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--bone);
  background: var(--oxblood);
  border: 1px solid var(--oxblood-lift);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px -14px rgba(142, 44, 52, 0.9);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.cta:hover {
  background: var(--oxblood-lift);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -14px rgba(142, 44, 52, 0.95);
}
.cta:active {
  transform: translateY(0);
}

.scale-readout {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.18em;
  color: var(--bone-faint);
}
.scale-readout span {
  color: var(--brass);
  padding: 0 0.35em;
}

/* ---- the framed artwork ---- */
.artwork {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 620px;
}

.artwork__frame {
  position: relative;
  padding: var(--frame);
  background: linear-gradient(160deg, #201d17, #100e0b);
  border: 1px solid var(--brass-soft);
  border-radius: 3px;
  box-shadow:
    0 2px 0 rgba(236, 231, 219, 0.06) inset,
    0 40px 80px -40px rgba(0, 0, 0, 0.9),
    0 10px 30px -20px rgba(0, 0, 0, 0.8);
}
/* inner mat around the picture */
.artwork__frame::before {
  content: "";
  position: absolute;
  inset: calc(var(--frame) - 2px);
  border: 1px solid var(--hairline);
  pointer-events: none;
  z-index: 2;
}

.artwork picture {
  display: block;
}

.artwork__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7; /* matches the Queen and Country master (23622x16535) */
  object-fit: cover;
  background: var(--ink-sunk);
}

/* detail inset: a small second frame that shows the work magnified */
.artwork__detail {
  position: absolute;
  right: calc(var(--frame) + 8px);
  bottom: calc(var(--frame) + 8px);
  width: clamp(96px, 26%, 168px);
  z-index: 3;
  border: 1px solid var(--brass);
  background: var(--ink-sunk);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.95);
}

.artwork__detail-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.artwork__detail-label {
  display: block;
  padding: 0.4em 0.5em;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  border-top: 1px solid var(--hairline);
  background: var(--ink-raise);
}

.artwork__caption {
  margin-top: var(--space-2);
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--bone-faint);
}

.tag-placeholder {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0.1em 0.5em;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  border-radius: 2px;
  vertical-align: 0.1em;
}

/* ---- brand statement ---- */
.statement {
  padding: var(--space-6) var(--edge);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.statement .eyebrow {
  color: var(--brass);
}
.statement__body {
  max-width: var(--measure);
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.45;
  color: var(--bone);
}

/* ---- footer ---- */
.foot {
  padding: var(--space-5) var(--edge) var(--space-6);
  background: var(--ink-sunk);
}
.foot__legal {
  max-width: 78ch;
  margin: 0 auto var(--space-4);
  font-size: var(--step--1);
  line-height: 1.65;
  color: var(--bone-faint);
  text-align: center;
}
.foot__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-faint);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--bone-faint);
}
/* footer logo: same mark as the top rail, inverted to a muted white to sit
   quietly on the dark footer */
.foot__logo {
  display: block;
  width: auto;
  height: 20px;
  filter: invert(1);
  opacity: 0.7;
}

/* ---- load reveal (one orchestrated moment) ---- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes resolve {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
.hero__text > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.hero__text > *:nth-child(1) { animation-delay: 0.05s; }
.hero__text > *:nth-child(2) { animation-delay: 0.12s; }
.hero__text > *:nth-child(3) { animation-delay: 0.19s; }
.hero__text > *:nth-child(4) { animation-delay: 0.26s; }
.hero__text > *:nth-child(5) { animation-delay: 0.33s; }
.hero__text > *:nth-child(6) { animation-delay: 0.40s; }
.artwork {
  animation: resolve 1.1s ease 0.15s backwards;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    text-align: left;
  }
  .artwork {
    grid-row: 1;
    max-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__text > *,
  .artwork {
    animation: none;
  }
  .cta:hover {
    transform: none;
  }
  body {
    background-attachment: scroll;
  }
}
