:root {
  --black: #070707;
  --ink: #121212;
  --muted: #66666b;
  --line: #e6e6e8;
  --white: #ffffff;
  --soft: #f6f6f7;
  --soft-2: #ededf0;
  --red: #e61b23;
  --red-dark: #b80f16;
  --silver: #bfc0c4;
  --max: 1180px;
  --header: 76px;
  --font: "Instrument Sans", Arial, sans-serif;
  --display: "Playfair Display", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: calc(var(--header) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  line-height: 1.55;
}

body::selection {
  color: var(--white);
  background: var(--red);
}

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

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

.layout {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: rgba(7, 7, 7, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 205px;
  height: 52px;
  object-fit: contain;
  padding: 8px 12px;
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  opacity: 0.82;
  transition: opacity 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--white);
}

.nav-cta {
  padding: 11px 16px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  opacity: 1 !important;
}

.section {
  padding: 110px 0;
}

.section-dark {
  color: var(--white);
  background: var(--black);
}

.light-section {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: var(--header);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.34)),
    url("assets/idt-fashion-hero.jpg") center / cover;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.32;
  border: 0;
}

.hero-youtube {
  inset: 50% auto auto 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh;
  min-height: 100vh;
  max-width: none;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-youtube.youtube-local {
  display: none;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.86) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-red {
  color: var(--red);
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.15;
}

.hero-lede {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 36px 0 66px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--red);
}

.button-primary:hover {
  background: var(--red-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 860px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 7, 7, 0.55);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 24px;
}

.hero-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats dt {
  font-size: 34px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.intro-band {
  padding: 42px 0;
  color: var(--white);
  background: var(--red);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 44px;
  align-items: start;
}

.intro-grid .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.intro-grid h2 {
  margin: 0;
  font-size: clamp(31px, 4vw, 54px);
}

.intro-grid p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.split-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(300px, 0.75fr);
  gap: 44px;
  align-items: end;
}

.section-dark .section-heading p:last-child,
.section-dark .split-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-card {
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.course-card-featured {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.course-duration {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--red);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.course-card p {
  color: var(--muted);
}

.course-card-featured p {
  color: rgba(255, 255, 255, 0.74);
}

.course-card ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 26px;
  padding: 0;
  list-style: none;
}

.course-card li {
  position: relative;
  padding-left: 19px;
  color: #343438;
}

.course-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 999px;
}

.course-card-featured li {
  color: rgba(255, 255, 255, 0.74);
}

.text-link {
  display: inline-flex;
  color: var(--red);
  font-weight: 800;
}

.text-link::after {
  content: "";
  width: 36px;
  height: 2px;
  margin: 13px 0 0 10px;
  background: currentColor;
}

.course-image-panel {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.course-image-panel img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.experience-section {
  background:
    linear-gradient(180deg, rgba(230, 27, 35, 0.12), rgba(7, 7, 7, 0) 36%),
    var(--black);
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(220px, 1.1fr);
  gap: 22px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.experience-card img {
  width: 100%;
  height: 214px;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.95) contrast(1.04);
}

.experience-card span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.experience-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.outcomes-section {
  background: var(--soft);
}

.outcomes-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(340px, 1.22fr);
  gap: 44px;
  align-items: start;
}

.outcomes-copy {
  position: sticky;
  top: 110px;
}

.outcomes-copy p {
  color: var(--muted);
  font-size: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: var(--black);
  border-radius: 6px;
  font-weight: 800;
}

.timeline h3 {
  margin-bottom: 6px;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.showcase-section {
  background: var(--white);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.playlist-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 24px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
}

.playlist-frame {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  background: var(--black);
}

.playlist-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.playlist-local-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.78)),
    url("assets/idt-fashionova-collage.jpg") center / cover;
}

.playlist-local-fallback span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  background: var(--red);
  border-radius: 6px;
  font-weight: 800;
}

.playlist-frame.youtube-ready .playlist-local-fallback {
  display: none;
}

.playlist-frame.youtube-local iframe {
  display: none;
}

.playlist-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 16px;
}

.playlist-copy span {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.playlist-copy p {
  color: var(--muted);
}

.playlist-copy .button {
  align-self: flex-start;
  margin-top: 10px;
}

.video-card {
  padding: 12px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.06);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  background: var(--black);
}

.video-card h3 {
  margin: 18px 6px 6px;
  font-size: 20px;
}

.video-card p {
  margin: 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.enquiry-section {
  background:
    linear-gradient(130deg, rgba(230, 27, 35, 0.18), rgba(230, 27, 35, 0) 44%),
    var(--black);
}

.enquiry-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(340px, 0.78fr);
  gap: 54px;
  align-items: start;
}

.enquiry-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 18px;
}

.qr-panel {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  align-items: center;
  max-width: 520px;
  margin-top: 34px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.qr-panel img {
  width: 126px;
  height: 126px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background: var(--white);
}

.qr-panel h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.qr-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.enquiry-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.enquiry-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.enquiry-form input,
.enquiry-form select,
.enquiry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid #d7d7dc;
  border-radius: 6px;
  outline: none;
  font: 500 15px var(--font);
  background: var(--soft);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.enquiry-form textarea {
  resize: vertical;
}

.enquiry-form input:focus,
.enquiry-form select:focus,
.enquiry-form textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(230, 27, 35, 0.12);
}

.form-submit {
  width: 100%;
  border: 0;
  font-family: var(--font);
  font-size: 16px;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 26px 0;
  color: var(--white);
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.footer-grid a {
  color: var(--white);
  font-weight: 800;
}

.floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  display: none;
  padding: 14px 18px;
  color: var(--white);
  background: var(--red);
  border-radius: 6px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.24);
  font-weight: 800;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 24;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  width: min(760px, calc(100% - 44px));
  padding: 18px;
  color: var(--white);
  background: rgba(7, 7, 7, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.cookie-accept {
  min-height: 46px;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .video-grid,
  .playlist-card {
    grid-template-columns: 1fr;
  }

  .experience-grid,
  .course-grid,
  .outcomes-grid,
  .enquiry-grid {
    grid-template-columns: 1fr;
  }

  .outcomes-copy {
    position: static;
  }
}

@media (max-width: 780px) {
  :root {
    --header: 68px;
  }

  .layout {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 126px;
    height: 44px;
    padding: 7px 9px;
  }

  .nav-links {
    display: none;
  }

  .section {
    padding: 76px 0;
  }

  .hero-content {
    padding-bottom: 36px;
  }

  .hero-video {
    display: none;
  }

  h1 {
    font-size: clamp(48px, 16vw, 74px);
  }

  h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .hero-actions {
    margin-bottom: 34px;
  }

  .hero-stats,
  .intro-grid,
  .split-heading,
  .experience-card,
  .timeline div,
  .qr-panel {
    grid-template-columns: 1fr;
  }

  .hero-stats div + div {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .hero-stats {
    margin-bottom: 72px;
  }

  .intro-grid {
    gap: 18px;
  }

  .experience-card img {
    height: 220px;
  }

  .timeline div {
    gap: 12px;
  }

  .playlist-frame {
    min-height: auto;
  }

  .enquiry-form {
    padding: 20px;
  }

  .floating-cta {
    display: inline-flex;
    left: 14px;
    right: 14px;
    bottom: 14px;
    justify-content: center;
  }

  .cookie-banner {
    bottom: 82px;
    grid-template-columns: 1fr;
    gap: 14px;
    width: calc(100% - 28px);
  }

  .cookie-accept {
    width: 100%;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-video {
    display: none;
  }

  .hero {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.4)), url("assets/idt-fashion-hero.jpg") center / cover;
  }
}
