/* ===== OFF RECORD — page-scoped styles ===== */

:root {
  --or-bg: #F2F5F3;
  --or-blue: #013CA6;
  --or-maroon: #3E2324;
  --or-lightblue: #5C82C1;
  --or-yellow: #FCC538;
  --or-white-swatch: #F1F1F5;
  --or-pad: clamp(24px, 8vw, 124px); /* max was 155px */
  --or-font: 'Advent Pro', sans-serif;
}

.or-body {
  background: var(--or-bg);
  color: var(--or-blue);
  font-family: var(--or-font);
  overflow-x: hidden;
}

.or-wrap { max-width: 1536px; margin: 0 auto; } /* max was 1920px */

/* ===== Header ===== */
.or-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22.4px var(--or-pad); /* was 28px */
  z-index: 100;
  background: transparent;
}
.or-header .logo {
  font-family: 'FuturaMedium', sans-serif;
  font-size: 19.2px; /* was 24px */
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.or-nav a {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
.or-header.is-scrolled .logo,
.or-header.is-scrolled .or-nav a {
  color: var(--or-blue);
  text-shadow: none;
}

/* ===== Hero ===== */
.or-hero {
  position: relative;
  width: 100%;
}
.or-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1085.745;
  min-height: 460px;
  background: url('../assets/off-record/hero.jpg') center / cover no-repeat;
}
.or-scroll-arrow {
  position: absolute;
  left: calc(var(--or-pad) * 0.35);
  top: 82%;
  transform: translateY(-50%);
  width: clamp(10px, 0.9vw, 12px); /* max was 15px */
  color: #fff;
  z-index: 5;
  pointer-events: none;
}
.or-scroll-arrow svg {
  display: block;
  width: 100%;
  height: auto;
  animation: scroll-arrow-bounce 1.8s ease-in-out infinite;
}
.or-hero-title {
  position: absolute;
  left: var(--or-pad);
  top: 70.6%;
  max-width: 240px; /* was 300px */
  color: #fff;
  font-family: 'FuturaBold', sans-serif;
  font-weight: 700;
  font-size: 12.8px; /* was 16px */
  line-height: 1.3;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.or-hero-meta {
  position: absolute;
  left: var(--or-pad);
  right: var(--or-pad);
  top: 78%;
  display: grid;
  grid-template-columns: minmax(190px, 208px) auto; /* max was 260px */
  column-gap: clamp(16px, 2.4vw, 38.4px); /* max was 48px */
  row-gap: clamp(16px, 3.5vh, 27.2px); /* max was 34px */
  color: #fff;
  font-family: 'FuturaMedium', sans-serif;
  font-size: 11.2px; /* was 14px */
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.or-hero-meta-item:nth-child(3) { grid-row: 2; grid-column: 1; }
.or-hero-meta-item:nth-child(4) { grid-row: 2; grid-column: 2; }
.or-hero-meta dt { font-family: 'FuturaBold', sans-serif; font-weight: 700; margin-bottom: 4px; }

/* ===== Section shell ===== */
.or-section {
  padding: 0 var(--or-pad);
}
.or-h2 {
  font-family: var(--or-font);
  font-weight: 600;
  font-size: 16px; /* was 20px */
  color: var(--or-blue);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.or-body-text {
  font-size: 14.4px; /* was 18px */
  line-height: 1.63;
  max-width: 576px; /* was 720px; confirmed binding at full width, scaled to preserve wrap pattern */
  color: var(--or-blue);
  font-weight: 400;
}
.or-body-text--visual-system { max-width: 816px; } /* was 1020px, same reasoning */
.or-tagline {
  margin-top: 10px;
  font-size: 12.8px; /* was 16px */
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--or-blue);
}
.or-intro { margin-top: clamp(40px, 4.5vw, 68.8px); } /* max was 86px */
.or-intro-block { margin-top: clamp(40px, 4.5vw, 68.8px); } /* max was 86px */
.or-intro-block:first-child { margin-top: 0; }

/* ===== Design system rows ===== */
.or-ds-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 19.2px; /* was 24px */
  margin-top: clamp(40px, 4.5vw, 68.8px); /* max was 86px */
}
.or-ds-label {
  flex: 0 0 128px; /* was 160px */
  font-family: var(--or-font);
  font-weight: 400;
  font-size: 16px; /* was 20px */
  color: var(--or-blue);
  text-transform: uppercase;
  margin: 0;
}

.or-colors {
  display: flex;
  gap: 16px; /* was 20px */
  flex-wrap: wrap;
}
.or-color-chip { text-align: left; }
.or-swatch {
  position: relative;
  width: 136px; /* was 170px */
  height: 136px; /* was 170px */
}
.or-color-chip:first-child .or-swatch {
  border: 0.5px solid var(--or-maroon);
}
.or-hex {
  position: absolute;
  left: 11.2px; /* was 14px */
  bottom: 9.6px; /* was 12px */
  font-family: var(--or-font);
  font-size: 11.2px; /* was 14px */
  letter-spacing: 0.05em;
  color: inherit;
}

.or-type-specimen {
  position: relative;
  flex: 1;
  min-width: 360px;
}
.or-type-name {
  font-family: var(--or-font);
  font-weight: 700;
  font-size: clamp(48px, 5.6vw, 86.4px); /* max was 108px */
  line-height: 1;
  color: var(--or-maroon);
  opacity: 0.5;
  white-space: nowrap;
}
.or-type-alphabet {
  margin-top: -4px;
  font-family: var(--or-font);
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 24px); /* max was 30px */
  letter-spacing: 0.02em;
  color: var(--or-maroon);
  white-space: nowrap;
}

.or-logo-content { flex: 1; text-align: center; min-width: 260px; }
.or-logo-mark { display: block; width: clamp(260px, 23vw, 352px); margin: 0 auto; } /* max was 440px */
.or-logo-dots {
  display: flex;
  justify-content: center;
  gap: 16px; /* was 20px */
  margin-top: 16px; /* was 20px */
}
.or-dot {
  display: block;
  width: 17.6px; /* was 22px */
  height: 17.6px; /* was 22px */
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1.5px transparent;
  outline-offset: 3px;
  transition: box-shadow 0.15s ease;
}
.or-dot.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--dot-color, var(--or-blue));
}
.or-dot:hover { opacity: 0.85; }

/* ===== Generative visuals ===== */
.or-generative { margin-top: clamp(80px, 9.34vw, 144px); } /* max was 180px */
.or-generative-heading { margin-bottom: 18px; }
.or-generative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.35vw, 36px); /* max was 45px */
}
.or-generative-item {
  display: flex;
  flex-direction: column;
}
.or-flip-card {
  position: relative;
  width: 100%;
  aspect-ratio: 542.693 / 788.492;
  perspective: 1800px;
  -webkit-perspective: 1800px;
}
.or-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.1, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.or-flip-card.is-flipped .or-flip-inner {
  transform: rotateY(180deg);
}
.or-flip-front,
.or-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  /* Belt-and-suspenders alongside backface-visibility: some browsers keep
     compositing a <canvas> child on its own GPU layer through a 3D
     rotation regardless of backface-visibility, letting the front face
     show through past 90deg instead of the back face. Forcing opacity to
     hard-swap exactly at the rotation's halfway point (where the card is
     edge-on and effectively invisible anyway) guarantees the correct
     face is shown, independent of that compositing quirk. */
  opacity: 1;
  transition: opacity 0s linear 0.35s;
}
.or-flip-front {
  background: #D9D9D9;
}
.or-flip-back {
  transform: rotateY(180deg);
  background: #D9D9D9;
  opacity: 0;
}
.or-flip-card.is-flipped .or-flip-front {
  opacity: 0;
}
.or-flip-card.is-flipped .or-flip-back {
  opacity: 1;
}
.or-gen-canvas {
  position: absolute;
  inset: 0;
}
.or-gen-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.or-gen-code {
  height: 100%;
  margin: 0;
  padding: 22px;
  overflow: auto;
  overscroll-behavior: contain;
  color: #17110f;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11.5px;
  line-height: 1.6;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 17, 15, 0.45) transparent;
}
.or-gen-code::-webkit-scrollbar { width: 8px; }
.or-gen-code::-webkit-scrollbar-track { background: transparent; }
.or-gen-code::-webkit-scrollbar-thumb {
  background: rgba(23, 17, 15, 0.35);
  border-radius: 4px;
  border: 2px solid #D9D9D9;
}
.or-gen-code::-webkit-scrollbar-thumb:hover {
  background: rgba(23, 17, 15, 0.55);
}
.or-view-code {
  display: block;
  margin-top: 18px;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--or-font);
  font-size: 15px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--or-blue);
  cursor: pointer;
}
.or-view-code:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .or-generative-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== The Website ===== */
.or-website-section { margin-top: clamp(80px, 9.34vw, 144px); } /* max was 180px */
.or-website-heading { margin-bottom: 18px; }
.or-website-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1183.2px; /* max was 1479px */
  aspect-ratio: 1479.581 / 917.613;
  margin: 0 auto;
  background: #D9D9D9;
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
  font: inherit;
}
.or-chrome-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 27.2px; /* was 34px */
  display: flex;
  align-items: center;
  gap: 11.2px; /* was 14px */
  padding: 0 12.8px; /* was 0 16px */
  background: #EDEDED;
  z-index: 2;
}
.or-chrome-dots { display: flex; gap: 6px; }
.or-chrome-dots span {
  width: 7.2px; height: 7.2px; /* was 9px */
  border-radius: 50%;
  background: #C7C7C7;
}
.or-chrome-url {
  font-family: var(--or-font);
  font-size: 9.6px; /* was 12px */
  color: #6b6b6b;
  background: #fff;
  border-radius: 4px;
  padding: 4px 12px;
  flex: 1;
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.or-website-preview {
  position: absolute;
  inset: 27.2px 0 0 0; /* was 34px, matches .or-chrome-bar height */
}
.or-website-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}
.or-website-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(1, 60, 166, 0.0);
  transition: background 0.2s ease;
}
.or-website-expand {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: var(--or-blue);
  color: #fff;
  font-family: var(--or-font);
  font-size: 11.2px; /* was 14px */
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9.6px 20.8px; /* was 12px 26px */
  border-radius: 24px; /* was 30px */
}
.or-website-frame:hover .or-website-overlay,
.or-website-frame:focus-visible .or-website-overlay {
  background: rgba(1, 60, 166, 0.22);
}
.or-website-frame:hover .or-website-expand,
.or-website-frame:focus-visible .or-website-expand {
  opacity: 1;
  transform: translateY(0);
}
.or-website-frame:focus-visible {
  outline: 3px solid var(--or-blue);
  outline-offset: 3px;
}

/* ===== Festival merch ===== */
.or-merch { margin-top: clamp(80px, 9.34vw, 144px); } /* max was 180px */
.or-merch-heading { margin-bottom: 18px; }
.or-merch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px); /* max was 90px */
}
.or-phone-frame {
  position: relative;
  flex: 0 0 auto;
  width: clamp(180px, 20.5vw, 232px); /* max was 290px */
  aspect-ratio: 876 / 1556;
  background: #000;
  border-radius: clamp(24px, 2.6vw, 30.4px); /* max was 38px */
  border: 1.5px solid #1a1a1a;
  padding: 1.5px;
  box-shadow: 0px 5px 7px 0px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
.or-phone-frame--perform { aspect-ratio: 796 / 1406; }
.or-phone-frame::before {
  content: '';
  position: absolute;
  top: 8px; /* was 10px */
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 34%;
  height: 3.2%;
  min-height: 9px;
  border-radius: 16px; /* was 20px */
  background: #000;
  z-index: 2;
}
.or-phone-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: clamp(21px, 2.3vw, 28px); /* max was 35px */
}

/* ===== Lanyard photo ===== */
.or-lanyard {
  display: flex;
  justify-content: center;
  margin-top: clamp(80px, 9.34vw, 144px); /* max was 180px */
  padding-bottom: clamp(60px, 8vw, 120px); /* max was 150px */
}
.or-lanyard-img {
  display: block;
  width: 100%;
  max-width: 880px; /* max was 1100px */
  height: auto;
  border-radius: 4px;
}

/* ===== Footer spacing normalization ===== */
.site-footer { margin-top: 32px; } /* was 40px */

/* ===== Website preview modal ===== */
body.or-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
.or-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 25.6px); /* max was 32px */
  background: rgba(20, 20, 24, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}
.or-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.or-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 1344px; /* max was 1680px */
  height: 100%;
  max-height: 832px; /* max was 1040px */
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.or-modal.is-open .or-modal-dialog {
  transform: translateY(0) scale(1);
}
.or-modal-bar {
  display: flex;
  align-items: center;
  gap: 12.8px; /* was 16px */
  padding: 9.6px 14.4px; /* was 12px 18px */
  background: #EDEDED;
  flex: 0 0 auto;
}
.or-modal-url {
  font-family: var(--or-font);
  font-size: 10.4px; /* was 13px */
  color: #6b6b6b;
  background: #fff;
  border-radius: 4px;
  padding: 6px 14px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.or-modal-open-full {
  font-family: var(--or-font);
  font-size: 10.4px; /* was 13px */
  font-weight: 600;
  color: var(--or-blue);
  white-space: nowrap;
}
.or-modal-close {
  flex: 0 0 auto;
  width: 24px; /* was 30px */
  height: 24px; /* was 30px */
  border: none;
  background: transparent;
  color: var(--or-maroon);
  font-size: 20.8px; /* was 26px */
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.or-modal-close:hover,
.or-modal-close:focus-visible {
  background: rgba(62, 35, 36, 0.1);
}
.or-modal-iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 700px) {
  .or-hero-title {
    position: static;
    max-width: none;
    margin: 20px var(--or-pad) 0;
    color: var(--or-blue);
    text-shadow: none;
  }
  .or-hero-meta {
    position: static;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px var(--or-pad) 28px;
    color: var(--or-blue);
    text-shadow: none;
  }
  .or-ds-label { flex-basis: 100%; }
  .or-type-specimen { min-width: 0; }

  .or-header.is-scrolled { background: var(--or-bg); }
}
