@font-face {
  font-family: "IIHF Standard";
  src: url("assets/fonts/IIHF-StdLight.woff2") format("woff2");
  font-display: swap;
  font-weight: 300;
}

@font-face {
  font-family: "IIHF Standard";
  src: url("assets/fonts/IIHF-StdRegular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IIHF Standard";
  src: url("assets/fonts/IIHF-StdMedium.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "IIHF Standard";
  src: url("assets/fonts/IIHF-StdBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "IIHF Standard";
  src: url("assets/fonts/IIHF-StdBlack.woff2") format("woff2");
  font-display: swap;
  font-weight: 900;
}

@font-face {
  font-family: "IIHF Condensed";
  src: url("assets/fonts/IIHF-CndLight.woff2") format("woff2");
  font-display: swap;
  font-weight: 300;
}

@font-face {
  font-family: "IIHF Condensed";
  src: url("assets/fonts/IIHF-CndRegular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IIHF Condensed";
  src: url("assets/fonts/IIHF-CndMedium.woff2") format("woff2");
  font-display: swap;
  font-weight: 500;
}

@font-face {
  font-family: "IIHF Condensed";
  src: url("assets/fonts/IIHF-CndBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "IIHF Condensed";
  src: url("assets/fonts/IIHF-CndBlack.woff2") format("woff2");
  font-display: swap;
  font-weight: 900;
}

@font-face {
  font-family: "IIHF Wide";
  src: url("assets/fonts/IIHF-WideBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "IIHF Wide";
  src: url("assets/fonts/IIHF-WideBlack.woff2") format("woff2");
  font-display: swap;
  font-weight: 900;
}

:root {
  --navy-950: #010c26;
  --navy-900: #00183a;
  --navy-800: #051e4b;
  --navy-700: #00295b;
  --blue-600: #2525b7;
  --blue-500: #3535fc;
  --cyan-500: #0dc6ff;
  --cyan-600: #00b7ff;
  --ice-300: #83e3f7;
  --ice-200: #dfeeed;
  --ice-100: #f0fafa;
  --white: #f8ffff;
  --red: #ff4e5c;
  --red-deep: #ee3348;
  --ink: #071426;
  --radius-xl: 0;
  --radius-lg: 0;
  --shadow: 0 28px 80px rgba(0, 12, 38, 0.36);
  font-family: "IIHF Standard", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--navy-800);
  color: var(--white);
}

body {
  min-width: 320px;
  font-family: "IIHF Standard", Arial, sans-serif;
}

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

.stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(12px, 2.2vw, 30px);
  overflow: hidden;
  background: var(--navy-800);
}

.stage::before,
.stage::after {
  position: absolute;
  inset: auto;
  z-index: 0;
  content: "";
  pointer-events: none;
}

.stage::before {
  right: -12vw;
  top: -11vh;
  width: 82vw;
  height: 50vh;
  opacity: 0.62;
  background: url("assets/images/iihf-pattern.png") center / contain no-repeat;
}

.stage::after {
  left: -22vw;
  bottom: -17vh;
  width: 88vw;
  height: 56vh;
  opacity: 0.56;
  background: url("assets/images/iihf-pattern.png") center / contain no-repeat;
  transform: rotate(180deg);
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  width: min(1500px, 100%);
  height: calc(100svh - clamp(24px, 4.4vw, 60px));
  margin: auto;
  padding: clamp(12px, 1.6vw, 22px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--white);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 56px;
  padding: 0 clamp(2px, 1vw, 10px);
}

.opten-logo {
  display: block;
  width: clamp(92px, 10vw, 148px);
  height: auto;
}

.bento-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: 1.28fr 0.72fr 0.72fr;
  grid-template-rows: 1fr 0.82fr 0.62fr;
  grid-template-areas:
    "main summary offer"
    "main video offer"
    "why why offer";
  gap: clamp(10px, 1.3vw, 18px);
}

.card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 34px);
  border: 1px solid rgba(0, 41, 91, 0.08);
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.card::before {
  display: none;
}

.card::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(1, 12, 38, 0);
  content: "";
  pointer-events: none;
  transition: background 180ms ease;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover::after {
  background: rgba(1, 12, 38, 0.1);
}

.card-clickable {
  cursor: pointer;
  touch-action: pan-y;
}

.card-main {
  grid-area: main;
  border-color: rgba(248, 255, 255, 0.12);
  background: var(--navy-950);
  color: var(--white);
}

.card-summary {
  grid-area: summary;
  background: #ffffff;
  color: var(--ink);
}

.card-offer {
  grid-area: offer;
  background: var(--cyan-500);
  color: var(--ink);
}

.card-offer::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background: url("assets/images/tender-puck-pattern.png") right center / auto 100% no-repeat;
  content: "";
  opacity: 0.72;
}

.card-video {
  grid-area: video;
  border-color: rgba(248, 255, 255, 0.16);
  background: var(--blue-500);
  color: var(--white);
}

.card-video::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background: url("assets/images/teaser-thumbnail.png") center / cover no-repeat;
  content: "";
  opacity: 0.24;
}

.card-video h2 {
  max-width: 7ch;
}

.card-why {
  grid-area: why;
  flex-direction: row;
  align-items: flex-end;
  border-color: rgba(248, 255, 255, 0.16);
  background: var(--red);
  color: var(--white);
}

.card-why .button {
  align-self: flex-end;
}

.card h1,
.card h2,
.card p {
  margin: 0;
}

.card h1 {
  font-family: "IIHF Standard", Arial, sans-serif;
  display: grid;
  max-width: 8.6ch;
  font-size: clamp(38px, min(5.1vw, 6.6vh), 68px);
  line-height: 0.94;
  text-transform: uppercase;
}

.title-accent {
  color: var(--cyan-500);
}

.card h2 {
  font-family: "IIHF Standard", Arial, sans-serif;
  font-size: clamp(23px, min(2.75vw, 3.7vh), 38px);
  line-height: 0.98;
  text-transform: uppercase;
}

.card:not(.card-main) h2 + p {
  margin-top: 8px;
}

.card p {
  max-width: 58ch;
  color: currentColor;
  font-size: clamp(12px, min(1.03vw, 1.72vh), 16px);
  font-weight: 400;
  line-height: 1.22;
  opacity: 0.78;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  align-self: flex-start;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(7, 20, 38, 0.18);
  border-radius: 0;
  background: var(--navy-950);
  color: var(--white);
  font-family: "IIHF Standard", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: break-word;
  text-transform: uppercase;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button::after {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-left: auto;
  background: url("assets/images/icon-arrow-right.png") center / contain no-repeat;
  content: "";
}

.button[download]::after {
  background-image: url("assets/images/icon-arrow-down.png");
}

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

.button-light {
  border-color: rgba(248, 255, 255, 0.42);
  background: var(--white);
  color: var(--navy-950);
}

.card-summary .button,
.card-video .button {
  border-color: var(--cyan-500);
  background: var(--cyan-500);
  color: var(--navy-950);
}

.card-offer .button {
  border-color: rgba(248, 255, 255, 0.42);
  background: var(--white);
  color: var(--navy-950);
}

.button-outline {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.button[data-missing="true"] {
  cursor: not-allowed;
}

.main-copy {
  position: relative;
  z-index: 2;
}

.main-copy h1 + p {
  max-width: 31ch;
  margin-top: 18px;
}

.main-visual {
  position: absolute;
  right: -20%;
  bottom: -11%;
  width: min(61%, 540px);
  aspect-ratio: 1 / 0.92;
  opacity: 0.92;
}

.main-visual img {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(248, 255, 255, 0.18);
  border-radius: 0;
  object-fit: cover;
  object-position: top left;
  transform: rotate(-5deg);
  filter: saturate(1.2) contrast(1.08);
}

.score-card {
  position: absolute;
  right: 19%;
  bottom: 13%;
  display: grid;
  gap: 4px;
  width: 142px;
  padding: 16px;
  border: 1px solid rgba(248, 255, 255, 0.3);
  background: rgba(37, 37, 183, 0.88);
  box-shadow: 0 18px 40px rgba(1, 12, 38, 0.4);
  transform: rotate(5deg);
}

.score-card span {
  color: rgba(248, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-card strong {
  font-size: 33px;
  line-height: 1;
}

.play-orbit {
  position: absolute;
  right: clamp(14px, 2vw, 26px);
  top: clamp(14px, 2vw, 26px);
  display: grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  border: 1px solid rgba(248, 255, 255, 0.34);
  border-radius: 50%;
}

.play-orbit span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid var(--white);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 52px);
  background: rgba(1, 12, 38, 0.78);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  position: relative;
  width: min(1180px, 100%);
  max-height: min(760px, calc(100svh - 48px));
  overflow: auto;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid rgba(248, 255, 255, 0.18);
  border-radius: var(--radius-xl);
  background: var(--ice-100);
  color: var(--ink);
}

.modal-panel h2 {
  margin: 0 0 22px;
  color: var(--navy-950);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
}

.modal-panel p {
  max-width: 76ch;
  margin: 24px 0 0;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.28;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 20, 38, 0.18);
  border-radius: 0;
  background: var(--white);
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: var(--navy-950);
  content: "";
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
}

.team-grid figure {
  margin: 0;
}

.team-media {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 0;
  background: var(--navy-950);
}

.team-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-media iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  transform: scale(1.015);
  transform-origin: center;
}

.team-grid figcaption {
  margin-top: 10px;
  color: var(--navy-950);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
}

.modal-panel-video {
  width: min(1040px, 100%);
  background: var(--navy-950);
  color: var(--white);
}

.modal-panel-video h2 {
  color: var(--white);
}

.video-frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .shell {
    height: calc(100svh - 24px);
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.1fr 0.72fr 0.72fr 0.6fr;
    grid-template-areas:
      "main main"
      "summary offer"
      "video offer"
      "why why";
  }

  .card-main {
    min-height: 0;
  }

  .card-why {
    align-items: center;
  }

  .main-visual {
    right: -3%;
    bottom: -32%;
    width: 46%;
  }
}

@media (max-width: 700px) {
  .stage {
    padding: 8px;
  }

  .shell {
    height: calc(100svh - 16px);
    padding: 10px;
    border-radius: 0;
  }

  .topbar {
    min-height: 46px;
  }

  .opten-logo {
    width: 86px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.02fr 0.86fr 0.86fr 0.76fr;
    gap: 8px;
  }

  .card {
    gap: 8px;
    padding: 12px;
    border-radius: 0;
  }

  .card h1 {
    max-width: 12ch;
    font-size: clamp(30px, 9vw, 48px);
  }

  .card h2 {
    font-size: clamp(21px, 5.8vw, 30px);
  }

  .card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .button {
    max-width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    font-size: 11px;
  }

  .main-visual {
    display: none;
  }

  .play-orbit {
    width: 42px;
  }

  .play-orbit span {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 12px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) and (max-height: 760px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .stage {
    min-height: 100svh;
    overflow: hidden;
  }

  .shell {
    height: auto;
    min-height: calc(100svh - 16px);
    overflow: visible;
  }

  .bento-grid {
    grid-template-rows: auto auto auto auto;
  }

  .card {
    overflow: visible;
  }

  .card p {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
  }
}

/* ─── Password Gate ──────────────────────────────────────────────────────── */

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-950);
}

.password-gate::before {
  position: absolute;
  inset: 0;
  content: "";
  background: url("assets/images/iihf-pattern.png") center / 60vw no-repeat;
  opacity: 0.48;
  pointer-events: none;
}

.password-gate[hidden] {
  display: none;
}

.password-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: min(420px, 90vw);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid rgba(248, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  background: var(--navy-800);
  box-shadow: var(--shadow);
}

.password-logo img {
  display: block;
  width: 120px;
  height: auto;
}

.password-card h2 {
  margin: 0;
  font-family: "IIHF Standard", Arial, sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  color: var(--white);
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.password-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(248, 255, 255, 0.2);
  border-radius: 0;
  background: rgba(248, 255, 255, 0.06);
  color: var(--white);
  font-family: "IIHF Standard", Arial, sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease;
}

.password-input::placeholder {
  color: rgba(248, 255, 255, 0.38);
}

.password-input:focus {
  border-color: var(--cyan-500);
}

.password-submit {
  width: 100%;
  cursor: pointer;
  justify-content: center;
}

.password-submit::after {
  content: "→";
}

.password-error {
  margin: 0;
  min-height: 18px;
  font-size: 13px;
  text-align: center;
  color: var(--red);
  opacity: 0;
  transition: opacity 180ms ease;
}

.password-error:not(:empty) {
  opacity: 1;
}

@media (max-height: 760px) and (min-width: 701px) {
  .card {
    padding: 18px;
  }

  .card h1 {
    font-size: clamp(40px, 5.6vw, 72px);
  }

  .card h2 {
    font-size: clamp(25px, 2.6vw, 38px);
  }

  .card p {
    font-size: 13px;
    line-height: 1.25;
  }

  .button {
    min-height: 42px;
  }
}
