/* ÉQUINOX — Polices, mise en page, animations et adaptation mobile. */

@font-face  {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(../fonts/font-0.woff2) format('woff2');
}
@font-face  {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/font-1.woff2) format('woff2');
}
@font-face  {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-2.woff2) format('woff2');
}
@font-face  {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/font-3.woff2) format('woff2');
}
@font-face  {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(../fonts/font-4.woff2) format('woff2');
}
@font-face  {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/font-5.woff2) format('woff2');
}
@font-face  {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/font-6.woff2) format('woff2');
}
:root {
  --paper:#fafafa;
  --ink:#111113;
  --line:#cdcdce
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Jost',Arial,sans-serif
}
button,a {
  -webkit-tap-highlight-color:transparent
}
button {
  font:inherit;
  color:inherit;
  cursor:pointer
}
a {
  color:inherit;
  text-decoration:none
}
button {
  border:0;
  background:none
}
button:focus-visible,a:focus-visible {
  outline:2px solid #555;
  outline-offset:7px
}
.skip {
  position:fixed;
  top:-60px;
  left:30px;
  background:#111;
  color:white;
  padding:12px;
  z-index:20
}
.skip:focus {
  top:10px
}
.frame {
  position:relative;
  max-width:1800px;
  min-height:100svh;
  margin:0 2.85%;
  border-inline:1px solid #777;
  overflow:hidden;
  padding:0 24px
}
header {
  height:116px;
  display:flex;
  align-items:flex-start;
  padding-top:28px;
  position:relative;
  z-index:2;
  gap:40px
}
.brand {
  font-size:12px;
  letter-spacing:4px
}
.brand span {
  display:block;
  font-size:10px;
  line-height:1.85;
  letter-spacing:3px;
  margin-top:15px
}
nav {
  display:flex;
  align-items:center;
  gap:42px;
  margin-left:auto
}
nav a,nav button {
  font-size:12px;
  letter-spacing:2.4px;
  text-transform:uppercase;
  padding:0 0 8px;
  position:relative
}
nav a:after,nav button:after {
  content:'';
  position:absolute;
  bottom:0;
  left:0;
  width:0;
  height:1px;
  background:var(--ink);
  transition:width .25s
}
nav .active:after,nav :hover:after {
  width:100%
}
.menu-toggle {
  width:38px;
  height:25px;
  padding:6px 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px
}
.menu-toggle span {
  height:1px;
  width:32px;
  background:var(--ink);
  transition:transform .3s
}
.menu-toggle[aria-expanded=true] span:first-child {
  transform:translateY(3px) rotate(45deg)
}
.menu-toggle[aria-expanded=true] span:last-child {
  transform:translateY(-3px) rotate(-45deg)
}
.hero {
  height:350px;
  position:relative;
  text-align:center
}
.emblem {
  position:absolute;
  width:600px;
  height:380px;
  top:-130px;
  left:50%;
  transform:translateX(-50%)
}
.emblem svg {
  width:100%;
  height:100%;
  overflow:visible
}
.outer {
  stroke:#9e9e9e;
  stroke-width:.55;
  stroke-dasharray:420 38 2 50
}
.dashed {
  stroke-width:.6;
  stroke-dasharray:65 9 1 7
}
.axis {
  stroke-width:.5;
  stroke:#999
}
.orbit {
  transform-origin:300px 210px;
  animation:rotate 100s linear infinite
}
.reverse {
  animation-direction:reverse;
  animation-duration:65s
}
@keyframes rotate {
  to {
    transform:rotate(360deg)
  }
}
h1 {
  position:absolute;
  top:207px;
  margin:0;
  left:50%;
  transform:translateX(-50%);
  font-family:'Jost',sans-serif;
  font-weight:200;
  font-size:clamp(58px,6.2vw,100px);
  line-height:1.1;
  letter-spacing:.48em;
  padding-left:.48em;
  white-space:nowrap
}
.subtitle {
  position:absolute;
  top:300px;
  width:100%;
  margin:0;
  font-size:14px;
  letter-spacing:.8em;
  padding-left:.8em
}
.annotation {
  font-family:'Space Grotesk',monospace;
  font-size:10px;
  line-height:1.9;
  letter-spacing:2.2px;
  font-weight:400
}
.left-note {
  position:absolute;
  left:23%;
  top:97px;
  text-align:right
}
.right-note {
  position:absolute;
  right:20%;
  top:101px;
  text-align:left
}
.edge-note {
  position:absolute;
  right:26px;
  top:205px;
  text-align:right
}
.edge-note i,.card i {
  display:block;
  width:24px;
  height:1px;
  background:#333;
  margin:15px auto
}
.edge-note i {
  margin-left:auto;
  margin-right:0
}
.universe-section {
  position:relative;
  margin:14px 7.7% 0
}
.cards {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px
}
.card {
  padding:0 9px 8px;
  border-inline:1px solid var(--line);
  text-align:center;
  transition:transform .4s;
  min-width:0
}
.image-wrap {
  position:relative;
  aspect-ratio:1.72;
  overflow:hidden;
  background:#151515
}
.image-wrap img {
  height:100%;
  width:100%;
  object-fit:cover;
  display:block;
  transition:transform 1s,filter 1s
}
.card:hover img {
  transform:scale(1.05);
  filter:contrast(1.12)
}
.image-action {
  position:absolute;
  bottom:14px;
  right:14px;
  color:white;
  font-size:11px;
  letter-spacing:2px;
  opacity:0;
  transform:translateY(5px);
  transition:.35s
}
.card:hover .image-action,.card:focus-visible .image-action {
  opacity:1;
  transform:none
}
.card h2 {
  font-size:20px;
  font-weight:400;
  letter-spacing:5px;
  line-height:1.35;
  margin:17px -7px 0;
  min-height:54px
}
.card i {
  margin:15px auto
}
.card p {
  font-size:9px;
  letter-spacing:2.7px;
  line-height:1.8;
  margin:0 -4px
}
.index {
  position:absolute;
  left:-9%;
  top:4px;
  display:grid;
  gap:20px;
  font-family:'Space Grotesk',monospace;
  font-size:11px;
  letter-spacing:2px
}
.index span:first-child {
  font-size:14px
}
.index i {
  width:18px;
  height:1px;
  background:#888;
  margin-top:8px
}
.side-note {
  position:absolute;
  left:102%;
  top:44%;
  font-size:9px;
  letter-spacing:1.6px;
  white-space:nowrap
}
.side-note span {
  display:block;
  width:18px;
  height:1px;
  background:#888;
  margin-top:20px
}
.discover {
  display:flex;
  gap:20px;
  align-items:center;
  margin:40px 0 0
}
.discover>span {
  height:1px;
  background:var(--line);
  flex:1
}
.discover>span:first-child:after {
  content:'';
  width:54px;
  height:1px;
  float:right;
  background:#222
}
.discover>span:last-child:before {
  content:'';
  display:block;
  width:54px;
  height:1px;
  background:#222
}
.outline-button {
  border:1px solid #333;
  padding:14px 23px;
  font-size:11px;
  letter-spacing:4px;
  transition:background .3s,color .3s
}
.outline-button b {
  font-weight:400;
  display:inline-block;
  margin-left:8px
}
.outline-button:hover {
  background:#111;
  color:#fff
}
footer {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  min-height:138px;
  padding-bottom:26px
}
.footer-quote {
  text-align:right
}
footer .annotation {
  font-size:9px;
  letter-spacing:2.5px;
  margin:0
}
#motion {
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  bottom:22px
}
#motion>span {
  height:38px;
  width:1px;
  background:#555
}
#motion svg {
  animation:rotate 10s linear infinite
}
#motion small {
  font-size:8px;
  letter-spacing:2px;
  opacity:0;
  transition:opacity .3s
}
#motion:hover small,#motion:focus-visible small {
  opacity:1
}

.orbit-background {
  position:absolute;
  width:1250px;
  height:1250px;
  border:1px solid #d4d4d4;
  border-radius:50%;
  top:-530px;
  left:7%;
  pointer-events:none;
  z-index:-1
}
.orbit-background:after {
  content:'';
  width:5px;
  height:5px;
  background:#111;
  border-radius:50%;
  position:absolute;
  top:63%;
  left:1.7%
}
.hero,.cards,.discover {
  animation:arrive 1.3s both
}
.cards {
  animation-delay:.15s
}
.discover {
  animation-delay:.3s
}
@keyframes arrive {
  from {
    opacity:0;
    translate:0 12px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
dialog {
  width:min(900px,calc(100% - 32px));
  max-height:90svh;
  background:var(--paper);
  color:var(--ink);
  padding:52px;
  border:1px solid #888
}
dialog[open] {
  animation:arrive .35s both
}
dialog::backdrop {
  background:#1119;
  backdrop-filter:blur(9px)
}
.close {
  position:absolute;
  top:16px;
  right:19px;
  font-size:23px;
  padding:5px
}
.eyebrow {
  font-size:11px;
  letter-spacing:3px;
  margin:0 0 25px
}
dialog h2 {
  font-weight:300;
  letter-spacing:5px;
  font-size:34px;
  margin:20px 0
}
dialog p:not(.eyebrow) {
  font-size:18px;
  line-height:1.8;
  max-width:650px
}
dialog img {
  width:100%;
  max-height:330px;
  object-fit:cover
}
dialog .game-list {
  display:grid;
  gap:12px
}
dialog .game-item {
  display:flex;
  align-items:center;
  gap:24px;
  text-align:left;
  padding:10px;
  border-bottom:1px solid #ccc;
  font-size:17px;
  letter-spacing:2px
}
dialog .game-item img {
  width:130px;
  height:76px
}
.menu-open nav {
  display:flex
}
@media(min-width:1600px) {
  .frame {
    margin-inline:auto;
    width:94%
  }
  .hero {
    height:405px
  }
  .emblem {
    top:-110px
  }
  h1 {
    top:236px
  }
  .subtitle {
    top:350px
  }
  .universe-section {
    margin-top:20px
  }
  .discover {
    margin-top:45px
  }
  footer {
    min-height:170px
  }
}
@media(max-width:1100px) {
  .annotation {
    font-size:9px
  }
  .left-note {
    left:16%
  }
  .right-note {
    right:13%
  }
  .edge-note,.side-note {
    display:none
  }
  .universe-section {
    margin-inline:5%
  }
  .card h2 {
    font-size:17px;
    letter-spacing:3px
  }
  .card p {
    font-size:9px;
    letter-spacing:1.5px
  }
  .index {
    left:-7%
  }
  .subtitle {
    letter-spacing:.6em
  }
}
@media(max-width:700px) {
  .frame {
    margin:0 15px;
    padding:0 15px
  }
  header {
    height:112px;
    padding-top:24px;
    gap:10px
  }
  .brand span {
    font-size:9px
  }
  .menu-toggle {
    margin-left:auto
  }
  nav {
    display:none;
    position:absolute;
    top:64px;
    right:0;
    background:var(--paper);
    border:1px solid #999;
    padding:24px;
    flex-direction:column;
    align-items:flex-start;
    gap:22px;
    z-index:9
  }
  .hero {
    height:313px
  }
  .emblem {
    width:420px;
    top:-72px;
    height:266px
  }
  h1 {
    font-size:clamp(31px,9vw,61px);
    letter-spacing:.25em;
    padding-left:.25em;
    top:206px
  }
  .subtitle {
    top:267px;
    font-size:10px;
    letter-spacing:.38em;
    padding-left:.38em
  }
  .left-note,.right-note {
    font-size:8px;
    letter-spacing:1px;
    top:114px
  }
  .left-note {
    left:0
  }
  .right-note {
    right:0
  }
  .cards {
    grid-template-columns:1fr;
    gap:32px
  }
  .universe-section {
    margin:14px 9px 0
  }
  .index {
    display:none
  }
  .card {
    padding-inline:8px
  }
  .image-wrap {
    aspect-ratio:1.8
  }
  .card h2 {
    font-size:20px;
    min-height:0;
    margin-top:18px;
    letter-spacing:4px
  }
  .card p {
    font-size:10px;
    letter-spacing:2px
  }
  .card i {
    margin:14px auto
  }
  .image-action {
    opacity:1;
    font-size:9px
  }
  .discover {
    gap:8px;
    margin-top:35px
  }
  .outline-button {
    font-size:9px;
    letter-spacing:2px;
    padding:16px 13px
  }
  .outline-button b {
    display:none
  }
  .discover>span {
    min-width:6px
  }
  .discover>span:before,.discover>span:after {
    max-width:15px
  }
  footer {
    min-height:160px;
    padding-bottom:23px;
    gap:25px
  }
  footer .annotation {
    font-size:8px;
    letter-spacing:1px;
    max-width:125px
  }
  #motion {
    bottom:75px
  }
  #motion>span {
    height:22px
  }
  .orbit-background {
    left:12%;
    top:-700px
  }
  dialog {
    padding:45px 22px 28px
  }
  dialog h2 {
    font-size:25px;
    letter-spacing:3px
  }
  dialog .game-item {
    gap:12px;
    font-size:13px
  }
  dialog .game-item img {
    width:88px;
    height:64px
  }
}

