/* Amber Runway site v2, brand G2.
   Colour and type tokens come from tokens.css. Body text is Barlow
   (Viktor, 25 Nov 2026); Gloock is the serif accent only. */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ar-oxblood-deep); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ar-font-ui);
  font-weight: 400;
  font-size: var(--ar-text-body);
  line-height: var(--ar-leading-body);
  color: var(--ar-text);
  background: var(--ar-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ar-amber); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
pre[hidden], [hidden] { display: none !important; }
:focus-visible {
  outline: 2px solid var(--ar-focus);
  outline-offset: 3px;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--ar-max-width);
  margin: 0 auto;
  padding: 0 var(--ar-gutter);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ar-space-5);
  min-height: 96px;
  padding: var(--ar-space-4) var(--ar-gutter);
  background: var(--ar-bg);
  border-bottom: var(--ar-rule-width) solid var(--ar-rule);
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo:hover { color: inherit; }
.logo-img {
  width: 248px;
  height: auto;
}

.index-btn {
  display: block;
  font-family: var(--ar-font-ui);
  font-weight: 600;
  font-size: var(--ar-text-label);
  letter-spacing: var(--ar-tracking-label);
  text-transform: uppercase;
  color: var(--ar-text-muted);
}
.index-btn:hover { color: var(--ar-amber); }

.menu-btn {
  width: 24px;
  height: 24px;
  position: relative;
  display: none;
  flex-shrink: 0;
}
.menu-btn span,
.menu-btn span::after {
  display: block;
  position: absolute;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: var(--ar-blush);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-btn span { top: 8px; }
.menu-btn span::after { content: ""; top: 9px; }
body.index-open .menu-btn span { top: 11.25px; transform: rotate(45deg); }
body.index-open .menu-btn span::after { top: 0; transform: rotate(-90deg); }

@media (max-width: 719px) {
  .site-header { min-height: 80px; padding: 12px var(--ar-gutter); }
  .logo-img { width: 200px; }
  .index-btn { display: none; }
  .menu-btn { display: block; }
}

/* ---------- index overlay ---------- */
.site-index {
  position: fixed;
  inset: 0;
  top: 96px;
  z-index: 20;
  background: var(--ar-oxblood-deep);
  padding: var(--ar-space-7) var(--ar-gutter) var(--ar-space-8);
  overflow: auto;
  animation: index-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@media (max-width: 719px) {
  .site-index { top: 80px; }
}
@keyframes index-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.site-index .index-list {
  list-style: none;
  margin: var(--ar-space-4) 0 0;
  padding: 0;
}
.site-index .index-list li {
  border-top: var(--ar-rule-width) solid var(--ar-rule);
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.site-index .index-list li:nth-child(1) { animation-delay: 0.04s; }
.site-index .index-list li:nth-child(2) { animation-delay: 0.08s; }
.site-index .index-list li:nth-child(3) { animation-delay: 0.12s; }
.site-index .index-list li:nth-child(4) { animation-delay: 0.16s; }
.site-index .index-list li:nth-child(5) { animation-delay: 0.20s; }
.site-index .index-list li:nth-child(6) { animation-delay: 0.24s; }
.site-index .index-list li:nth-child(7) { animation-delay: 0.28s; }
.site-index .index-list li:nth-child(8) { animation-delay: 0.32s; }
.site-index .index-list a,
.site-index .index-list span {
  display: block;
  padding: 18px 0;
  font-family: var(--ar-font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ar-blush);
  text-transform: none;
}
.site-index .index-list a { color: var(--ar-amber); }
.site-index .index-list a:hover { color: var(--ar-blush); }
.site-index .index-note { margin-top: var(--ar-space-6); }

/* ---------- cinematic hero (2.39:1 on desktop) ---------- */
.hero.ar-letterbox { background: var(--ar-bars); }
.hero .ar-frame {
  display: flex;
  align-items: center;
  padding: var(--ar-space-7) var(--ar-gutter);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--ar-max-width);
  margin: 0 auto;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-title {
  margin: var(--ar-space-5) 0 0;
}
.hero-title .ar-display {
  display: block;
  font-size: var(--ar-text-display-xl);
}
.hero-title .ar-accent {
  display: block;
  margin-top: 0.12em;
  font-size: var(--ar-text-accent);
  color: var(--ar-blush);
}
.hero-lede {
  max-width: 32em;
  margin: var(--ar-space-6) 0 0;
  color: var(--ar-rose);
  font-size: var(--ar-text-lead);
  font-weight: 400;
  line-height: var(--ar-leading-body);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* On small screens the 2.39:1 frame is too short for the stacked title.
   Keep the oxblood-deep bars (22px) and let the picture grow with the type. */
@media (max-width: 719px) {
  .hero .ar-frame {
    aspect-ratio: auto;
    padding: var(--ar-space-6) var(--ar-gutter) var(--ar-space-7);
  }
}

/* ---------- category band ---------- */
.cat-nav {
  border-top: var(--ar-rule-width) solid var(--ar-rule);
  border-bottom: var(--ar-rule-width) solid var(--ar-rule);
  background: var(--ar-bg);
}
.cat-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 auto;
  max-width: var(--ar-max-width);
  padding: 18px var(--ar-gutter);
}
.cat-nav a,
.cat-nav span {
  font-family: var(--ar-font-ui);
  font-weight: 600;
  font-size: var(--ar-text-label);
  letter-spacing: var(--ar-tracking-label);
  text-transform: uppercase;
  color: var(--ar-rose);
}
.cat-nav a {
  color: var(--ar-rose);
  text-decoration: none;
}
.cat-nav a:hover,
.cat-nav a[aria-current="page"] {
  color: var(--ar-amber);
}

@media (max-width: 639px) {
  .cat-nav ul { gap: 12px 0; }
  .cat-nav li { flex: 0 0 50%; }
}

/* ---------- featured / grids ---------- */
.section {
  padding: clamp(48px, 6vw, 96px) 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--ar-space-6);
}
.section-head h2 {
  margin: 0;
  font-size: var(--ar-text-h2);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
}
.card-preview,
.card-stage {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--ar-oxblood-deep);
  color: var(--ar-blush);
  border: 1px solid var(--ar-rule);
}
.card-preview:hover { color: var(--ar-blush); }
.card-body { padding: 16px 0 0; }
.card-body h3 {
  margin: 8px 0 0;
  font-size: var(--ar-text-h3);
  color: var(--ar-blush);
}
.card-body p {
  margin: 8px 0 0;
  color: var(--ar-rose);
  font-size: var(--ar-text-small);
  max-width: 28em;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.example-tag {
  font-family: var(--ar-font-ui);
  font-weight: 600;
  letter-spacing: var(--ar-tracking-label);
  text-transform: uppercase;
  font-size: 0.625rem;
  color: var(--ar-rose);
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .grid { grid-template-columns: 1fr; gap: 40px; }
  .card-preview, .card-stage { aspect-ratio: 5 / 6; }
}

/* ---------- buttons: oxblood on amber (never amber type on light) ---------- */
.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ar-amber);
  background: var(--ar-amber);
  color: var(--ar-oxblood);
  font-family: var(--ar-font-ui);
  font-weight: 600;
  font-size: var(--ar-text-label);
  letter-spacing: var(--ar-tracking-label);
  text-transform: uppercase;
  border-radius: var(--ar-radius-control);
  transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-copy:hover {
  background: var(--ar-blush);
  border-color: var(--ar-blush);
  color: var(--ar-oxblood);
}
.btn-copy.is-copied {
  background: var(--ar-oxblood-lift);
  border-color: var(--ar-oxblood-lift);
  color: var(--ar-blush);
}

@media (max-width: 719px) {
  .btn-copy { width: 100%; }
}

/* ---------- category page header ---------- */
.cat-hero {
  padding: clamp(48px, 7vw, 104px) 0 clamp(40px, 5vw, 72px);
}
.cat-hero h1 {
  margin: 16px 0 0;
  font-size: var(--ar-text-display-l);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cat-hero .cat-kicker {
  display: block;
  margin-top: 12px;
  font-size: var(--ar-text-accent);
  color: var(--ar-blush);
  animation: rise 0.9s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cat-hero .cat-lede {
  margin: 22px 0 0;
  color: var(--ar-rose);
  max-width: 32em;
  font-size: var(--ar-text-lead);
  animation: rise 0.9s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---------- item page ---------- */
.item-stage {
  position: relative;
  height: min(72vh, 760px);
  min-height: 420px;
  background: var(--ar-oxblood-deep);
  overflow: hidden;
}
.item-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px 48px;
  align-items: start;
  padding: clamp(36px, 5vw, 64px) 0 96px;
}
.item-body h1 {
  margin: 10px 0 0;
  font-size: var(--ar-text-display-l);
}
.item-body .item-desc {
  margin: 16px 0 0;
  max-width: 36em;
  color: var(--ar-rose);
}
.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  padding-top: 28px;
}
.back-link {
  font-family: var(--ar-font-ui);
  font-weight: 600;
  font-size: var(--ar-text-label);
  letter-spacing: var(--ar-tracking-label);
  text-transform: uppercase;
  color: var(--ar-rose);
}
.back-link:hover { color: var(--ar-amber); }

@media (max-width: 719px) {
  .item-body { grid-template-columns: 1fr; gap: 24px; }
  .item-actions { align-items: stretch; padding-top: 0; }
  .item-stage { min-height: 360px; height: 62vh; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ar-oxblood-deep);
  border-top: var(--ar-rule-width) solid var(--ar-rule);
  padding: clamp(48px, 7vw, 96px) 0 48px;
}
.footer-mark {
  width: clamp(200px, 42vw, 520px);
  height: auto;
}
.site-footer p {
  margin: 24px 0 0;
  color: var(--ar-rose);
  font-size: var(--ar-text-small);
  max-width: 34em;
}



/* ---------- v2 stills ---------- */
.hero .ar-frame {
  position: relative;
  overflow: hidden;
  background: var(--ar-oxblood-deep);
}
.hero-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14, 2, 4, 0.42) 0%, rgba(14, 2, 4, 0.28) 42%, rgba(14, 2, 4, 0.78) 100%),
    var(--ar-tungsten);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.card-preview img,
.card-stage img,
.item-stage .item-still,
.cat-lead img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-preview img {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-preview:hover img { transform: scale(1.04); }

.item-stage .item-still {
  position: absolute;
  inset: 0;
}
.item-stage.is-wide {
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: min(72vh, 760px);
  min-height: 280px;
}

.cat-lead {
  margin: 0 0 clamp(36px, 5vw, 64px);
}
.cat-lead .ar-letterbox { background: var(--ar-oxblood-deep); }
.cat-lead .ar-frame {
  position: relative;
  overflow: hidden;
  background: var(--ar-oxblood-deep);
}
.cat-lead img {
  position: absolute;
  inset: 0;
}
@media (max-width: 719px) {
  .cat-lead .ar-frame { aspect-ratio: 16 / 9; }
}

/* ---------- motion previews (site) ---------- */
.item-stage .mx,
.card-preview .mx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ar-oxblood-deep);
  color: var(--ar-blush);
}
.mx img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Wordmark split */
.mx-split { display: block; }
.mx-split .word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  font-family: var(--ar-font-display);
  font-weight: 400;
  font-size: clamp(64px, 18vw, 200px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ar-amber);
  pointer-events: none;
  text-shadow: 0 0 48px rgba(14, 2, 4, 0.85);
}
.mx-split .word span {
  display: inline-block;
  animation: ar-split-up 5.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.mx-split .word span:nth-child(even) { animation-name: ar-split-down; }
@keyframes ar-split-up {
  0%, 16% { transform: translateY(0); opacity: 1; }
  42%, 58% { transform: translateY(-34%); opacity: 0.2; }
  86%, 100% { transform: translateY(0); opacity: 1; }
}
@keyframes ar-split-down {
  0%, 16% { transform: translateY(0); opacity: 1; }
  42%, 58% { transform: translateY(34%); opacity: 0.2; }
  86%, 100% { transform: translateY(0); opacity: 1; }
}
.card-preview .mx-split .word { font-size: clamp(48px, 12vw, 92px); }

/* Logo reveal */
.mx-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ar-oxblood-deep);
}
.mx-logo .mark {
  width: min(72%, 420px);
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: ar-logo-reveal 3.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.mx-logo .mark img { width: 100%; height: auto; }
.mx-logo .rule {
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 1px;
  background: var(--ar-amber);
  transform: scaleX(0);
  transform-origin: left;
  animation: ar-logo-rule 3.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes ar-logo-reveal {
  0%, 8% { clip-path: inset(0 100% 0 0); }
  42%, 70% { clip-path: inset(0 0 0 0); }
  92%, 100% { clip-path: inset(0 0 0 100%); }
}
@keyframes ar-logo-rule {
  0%, 6% { transform: scaleX(0); opacity: 1; }
  28% { transform: scaleX(1); opacity: 1; }
  50%, 100% { transform: scaleX(1); opacity: 0; }
}

/* Lookbook slider */
.mx-slider { display: flex; flex-direction: column; }
.mx-slider .track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100%;
  scrollbar-width: none;
}
.mx-slider .track::-webkit-scrollbar { display: none; }
.mx-slider .slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}
.mx-slider .slide img { position: absolute; inset: 0; }
.mx-slider .caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--ar-font-ui);
  font-weight: 600;
  font-size: var(--ar-text-label);
  letter-spacing: var(--ar-tracking-label);
  text-transform: uppercase;
  color: var(--ar-blush);
  text-shadow: 0 1px 12px rgba(14, 2, 4, 0.8);
}
.mx-slider .navs {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.mx-slider .navs button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--ar-blush);
  color: var(--ar-blush);
  background: rgba(14, 2, 4, 0.45);
  font-size: 16px;
  line-height: 1;
}
.mx-slider .navs button:hover { border-color: var(--ar-amber); color: var(--ar-amber); }
.card-preview .mx-slider .navs,
.card-preview .mx-slider .caption { display: none; }

/* Hover reveal */
.mx-hover { display: block; cursor: pointer; }
.mx-hover .a, .mx-hover .b { position: absolute; inset: 0; }
.mx-hover .b {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.mx-hover:hover .b,
.mx-hover:focus-within .b { clip-path: inset(0 0 0 0); }
.mx-hover .tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  font-family: var(--ar-font-ui);
  font-weight: 600;
  font-size: var(--ar-text-label);
  letter-spacing: var(--ar-tracking-label);
  text-transform: uppercase;
  color: var(--ar-blush);
}
.card-preview .mx-hover .tag { display: none; }

/* Text mask */
.mx-mask {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ar-oxblood-deep);
}
.mx-mask .fill {
  margin: 0;
  font-family: var(--ar-font-display);
  font-weight: 400;
  font-size: clamp(64px, 22vw, 240px);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  background-image: var(--mx-still);
  background-size: 140% auto;
  background-position: 0% 40%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: ar-mask-pan 18s linear infinite alternate;
}
@keyframes ar-mask-pan {
  from { background-position: 0% 40%; }
  to { background-position: 100% 40%; }
}
.card-preview .mx-mask .fill { font-size: clamp(56px, 16vw, 110px); }

/* Dual marquee */
.mx-marquee {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: var(--ar-oxblood-deep);
}
.mx-marquee .row {
  display: flex;
  width: max-content;
  gap: 10px;
  animation: ar-marquee 36s linear infinite;
}
.mx-marquee .row.reverse { animation-direction: reverse; animation-duration: 42s; }
.mx-marquee:hover .row { animation-play-state: paused; }
.mx-marquee figure {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  height: 260px;
  margin: 0;
  overflow: hidden;
}
.mx-marquee figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  font-family: var(--ar-font-ui);
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ar-blush);
}
@keyframes ar-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-25%); }
}
.card-preview .mx-marquee figure { width: 140px; height: 180px; }

/* Rising gallery */
.mx-rise { background: var(--ar-oxblood-deep); }
.mx-rise .tile {
  position: absolute;
  width: 28%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0;
  animation: ar-rise 7.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.mx-rise .tile:nth-child(1) { left: 8%; top: 12%; animation-delay: 0s; }
.mx-rise .tile:nth-child(2) { right: 10%; top: 8%; animation-delay: 1.2s; }
.mx-rise .tile:nth-child(3) { left: 18%; bottom: 10%; width: 24%; animation-delay: 2.4s; }
.mx-rise .tile:nth-child(4) { right: 16%; bottom: 8%; width: 22%; animation-delay: 3.6s; }
.mx-rise h3 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 2;
  font-family: var(--ar-font-display);
  font-weight: 400;
  font-size: clamp(48px, 12vw, 140px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ar-amber);
  text-align: center;
  pointer-events: none;
  text-shadow: 0 0 40px rgba(14, 2, 4, 0.7);
}
@keyframes ar-rise {
  0% { opacity: 0; transform: translateY(40%); }
  18%, 55% { opacity: 1; transform: translateY(0); }
  80%, 100% { opacity: 0; transform: translateY(-30%); }
}
.card-preview .mx-rise h3 { font-size: clamp(40px, 10vw, 72px); }

/* Cards should not sit as empty oxblood while a reveal animation starts at 0%. */
@keyframes ar-logo-reveal-card {
  0%, 6% { clip-path: inset(0 100% 0 0); }
  28%, 100% { clip-path: inset(0 0 0 0); }
}
.card-preview .mx-logo .mark {
  animation-name: ar-logo-reveal-card;
  animation-delay: -1.2s;
}
.card-preview .mx-logo .rule { animation-delay: -1.2s; }
.card-preview .mx-rise .tile:nth-child(1) { animation-delay: -2s; }
.card-preview .mx-rise .tile:nth-child(2) { animation-delay: -3.2s; }
.card-preview .mx-rise .tile:nth-child(3) { animation-delay: -4.4s; }
.card-preview .mx-rise .tile:nth-child(4) { animation-delay: -5.6s; }
