/* ITSME home — cinematic VALORANT composition, scoped to this route. */
@font-face {
  font-family: 'Anton';
  src: url('/assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
main.it-home {
  --it-ink: #0a1016;
  --it-paper: #f3f0e7;
  --it-lime: #c7ff30;
  --it-muted: #b4bec6;
  --it-rule: rgba(243, 240, 231, .2);
  --it-gutter: clamp(20px, 4vw, 64px);
  --it-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: clip;
  background: var(--it-ink);
  color: var(--it-paper);
  isolation: isolate;
}

main.it-home::before,
main.it-home::after { display: none; }
.it-home *, .it-home *::before, .it-home *::after { box-sizing: border-box; }
.it-home section { position: relative; }
.it-home h1, .it-home h2, .it-home h3, .it-home p, .it-home figure { margin: 0; }
.it-home h1, .it-home h2 { font-family: var(--it-display); font-weight: 400; letter-spacing: -.022em; }
.it-home h1 span, .it-home h2 span { display: block; }
.it-home h1 em, .it-home h2 em { color: var(--it-lime); font-style: normal; }
.it-home a { color: inherit; }
.it-home img { display: block; max-width: 100%; }
.it-home svg { flex-shrink: 0; width: 24px; height: 24px; }
.it-home :is(a, button):focus-visible { outline: 3px solid var(--it-lime); outline-offset: 5px; }
.it-home-shell { width: min(100%, 1680px); margin-inline: auto; padding-inline: var(--it-gutter); }

.it-home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.it-home .it-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 56px;
  padding: 15px 24px;
  border: 1px solid var(--it-lime);
  border-radius: 3px;
  background: var(--it-lime);
  color: var(--it-ink);
  font: 750 17px/1.3 var(--font-body, Arial, sans-serif);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.it-home .it-home-button--outline { border-color: rgba(243, 240, 231, .85); background: transparent; color: var(--it-paper); }
.it-home .it-home-button--dark { border-color: var(--it-ink); background: var(--it-ink); color: var(--it-lime); }
.it-home-button svg, .it-home-text-link svg { transition: transform 180ms ease; }
.it-home .it-home-text-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font: 650 18px/1.3 var(--font-body, Arial, sans-serif);
  text-decoration: none;
  cursor: pointer;
}

/* The art is a separate layer: only edge fading, no color wash on the asset. */
.it-home-hero { min-height: 620px; height: clamp(580px, 40.7vw, 740px); border-bottom: 1px solid var(--it-rule); overflow: hidden; isolation: isolate; }
.it-home-scene { position: absolute; z-index: -2; inset: 0 0 0 29%; overflow: hidden; }
.it-home-scene img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 56% center; transform: scale(1.035) translate(calc(var(--hero-x, 0px) * -.5), calc(var(--hero-y, 0px) * -.5)); }
.it-home-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--it-ink) 0%, rgba(10, 16, 22, .84) 12%, rgba(10, 16, 22, .3) 37%, transparent 63%); }
.it-home-wordmark { position: absolute; z-index: -1; top: 8px; right: -15px; color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 231, .55); font: italic 400 clamp(130px, 19vw, 320px)/1 var(--it-display); letter-spacing: -.04em; pointer-events: none; user-select: none; }
.it-home-agent { position: absolute; z-index: 0; top: -23px; left: 35%; width: 750px; height: 1250px; object-fit: contain; object-position: center top; pointer-events: none; transform: translate(var(--hero-x, 0px), var(--hero-y, 0px)); }
.it-home-agent img { width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center top; }
.it-home-hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; width: min(61%, 935px); height: 100%; min-height: inherit; padding: 44px 0 54px var(--it-gutter); }
.it-home-hero-copy h1 { font-size: clamp(68px, 8.2vw, 132px); line-height: 1.02; text-transform: uppercase; }
.it-home-hero-copy h1 span:last-child { color: var(--it-lime); }
.it-home-hero-copy p { max-width: 535px; margin: 24px 0 28px; color: var(--it-paper); font-size: clamp(17px, 1.55vw, 24px); line-height: 1.5; text-wrap: pretty; }
.it-home-hero-copy .it-home-actions { gap: 18px; }
.it-home-hero-copy .it-home-button { min-height: 57px; }

/* A compact orientation rail, not another set of cards. */
.it-home-flow { width: min(100%, 1680px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; list-style: none; margin: 0 auto; padding: 22px var(--it-gutter); }
.it-home-flow li { display: flex; align-items: center; gap: 24px; min-width: 0; min-height: 70px; padding: 5px 30px; border-left: 1px solid var(--it-rule); }
.it-home-flow li:first-child { padding-left: 0; border-left: 0; }
.it-home-flow li:last-child { padding-right: 0; }
.it-home-flow li > b { color: var(--it-lime); font: 400 37px/1 var(--it-display); }
.it-home-flow li > span { display: grid; gap: 5px; }
.it-home-flow strong { color: var(--it-paper); font-size: 17px; font-weight: 650; line-height: 1.3; }
.it-home-flow small { color: var(--it-muted); font-size: 13px; line-height: 1.45; }

.it-home-lobby { padding: 4px 0 48px; }
.it-home-lobby.it-home-shell { padding-inline: var(--it-gutter); }
.it-home-lobby-intro { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 34px 38px; border: 1px solid var(--it-rule); overflow: hidden; isolation: isolate; }
.it-home-lobby-intro::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--it-ink), rgba(10, 16, 22, .7)), url('/assets/valorant/official/gioca-jett.webp') 64% 62% / cover; filter: grayscale(1); opacity: .8; }
.it-home-lobby-intro h2 { font-size: clamp(34px, 4.05vw, 61px); line-height: 1.14; }
.it-home-lobby-intro p { margin-top: 9px; color: var(--it-muted); font-size: 18px; line-height: 1.4; }
.it-home-lobby-intro .it-home-button { flex-shrink: 0; }
.it-home-lobby-list { margin-top: 20px; border-top: 1px solid var(--it-rule); }
.it-home-lobby-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 25px; min-height: 94px; padding: 20px 0; border-bottom: 1px solid var(--it-rule); text-decoration: none; }
.it-home-lobby-row > span { display: grid; gap: 4px; min-width: 0; }
.it-home-lobby-row strong { color: var(--it-paper); font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.it-home-lobby-row small { color: var(--it-muted); font-size: 13px; }
.it-home-lobby-row > b { color: var(--it-lime); font-size: 13px; text-align: right; }
.it-home-lobby-row > svg { color: var(--it-lime); }
.it-home-lobby-loading, .it-home-lobby-error, .it-home-lobby-status { margin-top: 18px; color: var(--it-muted); font-size: 14px; line-height: 1.5; }

/* The light tournament band changes the page's visual tempo. */
.it-home-tournament { background: var(--it-paper); color: var(--it-ink); }
.it-home-tournament .it-home-shell { position: relative; }
.it-home-tournament-main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 610px; }
.it-home-tournament-copy { position: relative; z-index: 1; align-self: center; padding: 74px 20px 78px 0; }
.it-home-section-label { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; color: inherit; font-size: 10px; font-weight: 650; line-height: 1.4; letter-spacing: .32em; text-transform: uppercase; }
.it-home-section-label::after { content: ''; flex: 1; height: 1px; max-width: 220px; background: currentColor; opacity: .65; }
.it-home-tournament h2 { position: relative; z-index: 1; font-size: clamp(48px, 5.6vw, 89px); line-height: 1.09; text-transform: uppercase; }
.it-home-tournament-copy > p { max-width: 495px; margin: 26px 0 32px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; text-wrap: pretty; }
.it-home-tournament-art { position: relative; align-self: stretch; margin-right: calc(-1 * var(--it-gutter)) !important; overflow: hidden; clip-path: polygon(20% 0, 100% 0, 100% 100%, 14% 100%, 0 82%, 0 20%); }
.it-home-tournament-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% center; }
.it-home-tournament-art[data-editorial="true"] img { transform: scale(1.25); transform-origin: right center; }
.it-home-tournament-art figcaption { position: absolute; right: 16px; bottom: 12px; padding: 3px 7px; background: rgba(10, 16, 22, .8); color: var(--it-paper); font-size: 9px; line-height: 1.4; }
.it-home-tournament-footer { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px 0 34px; border-top: 1px solid rgba(10, 16, 22, .7); }
.it-home-tournament-footer > div:first-child { display: flex; align-items: center; gap: 26px; }
.it-home-tournament-footer > div:first-child > strong { font-size: 17px; }
.it-home-tournament-footer .it-home-text-link { font-size: 17px; }
.it-home-tournament-status { display: grid; gap: 3px; max-width: 370px; font-size: 13px; line-height: 1.45; }
.it-home-tournament-status strong { font-weight: 750; }
.it-home-tournament-copy h3 { max-width: 520px; margin-top: 20px; font-size: 27px; line-height: 1.2; overflow-wrap: anywhere; }
.it-home-event-meta { display: flex; flex-wrap: wrap; gap: 18px 30px; margin: 20px 0 28px; }
.it-home-event-meta > div { display: grid; gap: 4px; }
.it-home-event-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.it-home-event-meta dd { margin: 0; font-size: 16px; font-weight: 700; }
.it-home-tournament :is(a, button):focus-visible, .it-home-community :is(a, button):focus-visible { outline-color: var(--it-ink); }

.it-home-clips { padding: 64px 0 54px; }
.it-home-clips > .it-home-shell, .it-home-clips.it-home-shell { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 44px; }
.it-home-clips.it-home-shell { padding-inline: var(--it-gutter); }
.it-home-clip-art { position: relative; min-width: 0; }
.it-home-clip-art img { width: 100%; height: auto; aspect-ratio: 1.45; object-fit: cover; object-position: center; }
.it-home-clip-art figcaption { margin-top: 12px; color: var(--it-paper); font-size: 9px; font-weight: 650; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; }
.it-home-clip-copy { min-width: 0; }
.it-home-clip-copy .it-home-section-label { margin-bottom: 22px; }
.it-home-clip-copy h2 { font-size: clamp(46px, 6.2vw, 98px); line-height: 1.1; text-transform: uppercase; }
.it-home-clip-copy h2 span:last-child { color: var(--it-lime); }
.it-home-clip-copy > p { max-width: 445px; margin: 28px 0; color: var(--it-paper); font-size: clamp(17px, 1.6vw, 23px); line-height: 1.5; text-wrap: pretty; }
.it-home-clip-copy > small { display: block; margin-top: 20px; color: var(--it-muted); font-size: 14px; line-height: 1.5; }
.it-home-clip-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; min-width: 0; }
.it-home-clip-list article { min-width: 0; border-bottom: 1px solid var(--it-rule); padding-bottom: 18px; }
.it-home-clip-list article :is(video, iframe) { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 410px; border: 0; background: #05090e; object-fit: contain; }
.it-home-clip-list article img { display: block; width: 100%; max-height: 410px; object-fit: cover; }
.it-home-clip-details { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 15px; }
.it-home-clip-details > div { display: grid; gap: 4px; min-width: 0; }
.it-home-clip-details strong, .it-home-clip-details h3 { font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.it-home-clip-details small, .it-home-clip-details span { color: var(--it-muted); font-size: 13px; }
.it-home-clip-details button { flex-shrink: 0; display: flex; align-items: center; gap: 9px; min-height: 44px; border: 0; border-bottom: 1px solid var(--it-lime); background: none; color: var(--it-lime); font: 650 14px/1.3 var(--font-body, Arial, sans-serif); cursor: pointer; }

.it-home-community { padding: 47px 0 51px; background: var(--it-paper); color: var(--it-ink); }
.it-home-community > .it-home-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
.it-home-community h2 { font-size: clamp(56px, 6.7vw, 107px); line-height: 1.03; text-transform: uppercase; }
.it-home-community p { max-width: 450px; margin-bottom: 26px; font-size: clamp(21px, 2vw, 30px); line-height: 1.35; }
.it-home-community .it-home-button--dark { color: var(--it-paper); }
.it-home-community .it-home-actions { gap: 24px; }
.it-home-community .it-home-text-link { font-size: 17px; }
.it-home-credits { padding: 20px var(--it-gutter); color: var(--it-muted); font-size: 11px; line-height: 1.6; }
.it-home-credits a { text-underline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .it-home .it-home-button:hover { transform: translateY(-2px); background: #dbff7c; border-color: #dbff7c; }
  .it-home .it-home-button--outline:hover { background: var(--it-paper); border-color: var(--it-paper); color: var(--it-ink); }
  .it-home .it-home-button--dark:hover { background: #233021; border-color: #233021; color: var(--it-lime); }
  .it-home-button:hover svg, .it-home-text-link:hover svg { transform: translateX(4px); }
  .it-home-lobby-row:hover { background: rgba(243, 240, 231, .035); }
  .it-home-lobby-row:hover strong { color: var(--it-lime); }
}

@media (min-width: 1680px) {
  .it-home-hero-copy { padding-left: max(var(--it-gutter), calc((100vw - 1552px) / 2)); }
  .it-home-agent { left: 40%; }
  .it-home-tournament-art { margin-right: calc((1680px - 100vw) / 2 - var(--it-gutter)) !important; }
}

@media (max-width: 1120px) {
  .it-home-hero { min-height: 590px; }
  .it-home-hero-copy { width: 66%; }
  .it-home-hero-copy h1 { font-size: clamp(66px, 7.7vw, 86px); }
  .it-home-agent { left: 33%; top: -5px; width: 680px; height: 1120px; }
  .it-home-hero-copy p { max-width: 410px; }
  .it-home .it-home-button { gap: 16px; padding-inline: 19px; font-size: 16px; }
  .it-home-flow li { gap: 16px; padding-inline: 20px; }
  .it-home-flow strong { font-size: 15px; }
  .it-home-flow small { font-size: 12px; }
  .it-home-tournament-main { min-height: 545px; }
  .it-home-tournament-copy { padding-block: 58px; }
  .it-home-tournament h2 { font-size: clamp(43px, 5.8vw, 65px); }
  .it-home-tournament-footer { align-items: flex-start; }
  .it-home-tournament-footer > div:first-child { flex-wrap: wrap; gap: 10px 20px; }
  .it-home-tournament-status { max-width: 310px; }
  .it-home-clips > .it-home-shell, .it-home-clips.it-home-shell { gap: 30px; }
  .it-home-clip-art img { aspect-ratio: 1.18; }
  .it-home-community > .it-home-shell { gap: 38px; }
}

@media (max-width: 760px) {
  .it-home-hero { height: auto; min-height: 735px; }
  .it-home-scene { inset: 0 0 28% 0; }
  .it-home-scene img { object-position: 62% center; }
  .it-home-scene::after { background: linear-gradient(0deg, var(--it-ink), transparent 72%), linear-gradient(90deg, var(--it-ink), transparent 52%); }
  .it-home-wordmark { top: 20px; right: -8px; font-size: 31vw; opacity: .8; }
  .it-home-agent { top: 12px; left: 21%; width: 510px; height: 820px; }
  .it-home-hero-copy { justify-content: flex-end; width: 100%; min-height: 735px; padding: 310px var(--it-gutter) 38px; }
  .it-home-hero-copy::before { content: ''; position: absolute; z-index: -1; inset: 35% 0 0; background: linear-gradient(0deg, var(--it-ink) 12%, rgba(10, 16, 22, .93) 48%, transparent 100%); pointer-events: none; }
  .it-home-hero-copy h1 { font-size: clamp(56px, 10.8vw, 79px); line-height: 1.07; }
  .it-home-hero-copy p { max-width: 470px; margin: 20px 0 25px; font-size: 18px; }
  .it-home-flow { grid-template-columns: 1fr; padding-block: 14px; }
  .it-home-flow li, .it-home-flow li:first-child, .it-home-flow li:last-child { min-height: 82px; padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--it-rule); gap: 21px; }
  .it-home-flow li:last-child { border-bottom: 0; }
  .it-home-flow li > b { flex-basis: 37px; font-size: 33px; }
  .it-home-flow strong { font-size: 16px; }
  .it-home-flow small { font-size: 13px; }
  .it-home-lobby { padding: 8px 0 32px; }
  .it-home-lobby-intro { flex-direction: column; align-items: flex-start; gap: 25px; padding: 28px 24px; }
  .it-home-lobby-intro h2 { font-size: clamp(33px, 7.5vw, 49px); }
  .it-home-lobby-intro p { font-size: 16px; }
  .it-home-lobby-row { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .it-home-lobby-row > svg { display: none; }
  .it-home-lobby-row strong { font-size: 18px; }
  .it-home-lobby-row > b { max-width: 100px; font-size: 12px; }
  .it-home-tournament-main { grid-template-columns: 1fr; min-height: 0; }
  .it-home-tournament-copy { padding: 46px 0 35px; }
  .it-home-section-label { margin-bottom: 25px; font-size: 9px; }
  .it-home-tournament h2 { font-size: clamp(47px, 8.4vw, 66px); }
  .it-home-tournament-copy > p { max-width: 490px; margin: 20px 0 26px; font-size: 18px; }
  .it-home-tournament-art { height: 370px; margin-left: calc(-1 * var(--it-gutter)) !important; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 14%); }
  .it-home-tournament-art img { object-position: 100% 40%; }
  .it-home-tournament-footer { flex-direction: column; padding-block: 25px 30px; gap: 23px; }
  .it-home-tournament-status { max-width: none; font-size: 13px; }
  .it-home-clips { padding-block: 40px; }
  .it-home-clips > .it-home-shell, .it-home-clips.it-home-shell { grid-template-columns: 1fr; gap: 28px; }
  .it-home-clip-list { grid-template-columns: 1fr; }
  .it-home-clip-art img { aspect-ratio: 1.36; }
  .it-home-clip-copy h2 { font-size: clamp(57px, 10vw, 77px); }
  .it-home-clip-copy > p { margin: 22px 0 25px; font-size: 19px; }
  .it-home-clip-copy > small { font-size: 13px; }
  .it-home-clip-details { align-items: flex-start; gap: 15px; }
  .it-home-clip-details strong { font-size: 18px; }
  .it-home-clip-details button { font-size: 12px; gap: 4px; }
  .it-home-community { padding-block: 40px; }
  .it-home-community > .it-home-shell { grid-template-columns: 1fr; gap: 30px; }
  .it-home-community h2 { font-size: clamp(59px, 11vw, 82px); }
  .it-home-community p { font-size: 24px; }
  .it-home-community .it-home-actions { gap: 18px 25px; }
}

@media (max-width: 420px) {
  .it-home-hero { min-height: 716px; }
  .it-home-hero-copy { min-height: 716px; padding-top: 280px; }
  .it-home-agent { left: -9%; top: 6px; width: 475px; height: 765px; }
  .it-home-hero-copy h1 { font-size: clamp(46px, 13.6vw, 57px); letter-spacing: -.018em; }
  .it-home-hero-copy p { font-size: 17px; }
  .it-home-hero-copy .it-home-actions { align-items: stretch; width: 100%; gap: 10px; }
  .it-home-hero-copy .it-home-button { width: 100%; min-height: 51px; }
  .it-home-lobby-intro { padding: 25px 20px; }
  .it-home-lobby-intro h2 { font-size: 35px; }
  .it-home-tournament h2 { font-size: clamp(40px, 11.4vw, 48px); }
  .it-home-tournament-art { height: 300px; }
  .it-home-tournament-footer > div:first-child { align-items: flex-start; flex-direction: column; gap: 6px; }
  .it-home-clip-copy h2 { font-size: clamp(45px, 12.7vw, 54px); }
  .it-home-community h2 { font-size: clamp(46px, 13.5vw, 57px); }
  .it-home-clip-details { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .it-home-agent { transition: transform 320ms ease-out; }
  .it-home-scene img { transition: transform 550ms ease-out; }
  .it-home-hero-copy { animation: it-home-enter 620ms ease-out both; }
  @keyframes it-home-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}

@media (prefers-reduced-motion: reduce) {
  .it-home *, .it-home *::before, .it-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .it-home-agent, .it-home-scene img { transform: none !important; }
}
