@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("../fonts/manrope-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #eeede7;
  --ink: #20211e;
  --muted: #6b6c65;
  --orange: #e94f24;
  --line: #d9d9d1;
  --ticket: #fafaf7;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 5%;
  z-index: 10;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}

.skip-link:focus { transform: none; }

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  max-width: 2560px;
  margin-inline: auto;
  overflow: clip;
}

.header,
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-inline: 5%;
}

.header {
  position: relative;
  z-index: 5;
  gap: 18px;
  padding-block: 19px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: baseline;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1.7px;
  line-height: 1;
}

.wordmark b {
  margin-left: 1px;
  color: var(--orange);
  font-size: 33px;
}

.languages {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.languages a {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 50%;
  text-decoration: none;
}

.languages a[aria-current="page"] {
  background: var(--ink);
  color: var(--paper);
}

.languages a:hover { border-color: var(--ink); }

.main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 30px 6%;
}

.copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.overline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.overline::before {
  content: "";
  flex-shrink: 0;
  width: 25px;
  height: 2px;
  background: var(--orange);
}

h1 {
  margin-block: 25px;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(48px, 13vw, 86px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -1.3px;
  text-transform: uppercase;
  overflow-wrap: normal;
}

.accent { color: var(--orange); }

.description {
  max-width: 350px;
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 23px;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.status::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.bottom-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.bottom-note::before {
  content: "";
  width: 35px;
  height: 1px;
  background: var(--orange);
}

.scene {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  justify-self: center;
  width: 90%;
  min-width: 0;
  max-width: 430px;
  aspect-ratio: 1;
  mix-blend-mode: multiply;
}

.wheel {
  position: relative;
  z-index: 2;
  display: block;
  width: 104%;
  height: auto;
  max-width: 650px;
  mix-blend-mode: multiply;
  transform: rotate(-11deg);
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 96%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 13%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.orbit.outer {
  width: 113%;
  border-style: dashed;
  opacity: .7;
}

.scene-word {
  position: absolute;
  z-index: 0;
  top: 5%;
  right: 0;
  color: var(--line);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 100px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 4px;
}

.scene-ticket {
  position: absolute;
  z-index: 3;
  right: -8px;
  bottom: 5px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  background: var(--ticket);
  box-shadow: 0 10px 25px #20211e09;
}

.scene-ticket > span { font-size: 10px; line-height: 1.7; }

.scene-ticket small {
  display: block;
  color: var(--ink);
  font-size: 9px;
  letter-spacing: 1.6px;
}

.scene-ticket i { font-size: 25px; font-style: normal; line-height: 0; }

.arrow {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ticks { display: none; }

.footer {
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.footer .domain { display: none; }

.developer-credit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 7px;
  margin: 0;
}

.developer-credit a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.developer-credit a span { color: var(--orange); font-size: 16px; }
.developer-credit a:hover { text-decoration: underline; }

@media (min-width: 761px) {
  .header { padding-block: 23px; }
  .wordmark { font-size: 28px; }
  .main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    min-height: 610px;
    padding: 32px 5% 28px;
  }
  .copy { padding-block: 30px; }
  .overline { letter-spacing: 2px; }
  h1 { font-size: clamp(48px, 7.4vw, 112px); }
  .status { margin-top: 30px; }
  .bottom-note { margin-top: 44px; }
  .scene { width: 100%; max-width: none; }
  .wheel { width: 113%; }
  .scene-word { font-size: 145px; }
  .scene-ticket { right: -4px; bottom: 42px; padding: 16px 22px; }
  .ticks {
    position: absolute;
    top: 55px;
    right: 0;
    display: block;
    writing-mode: vertical-rl;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 2px;
  }
  .footer { gap: 20px; padding-block: 18px; }
  .footer .domain { display: inline; letter-spacing: 1.4px; text-transform: uppercase; }
}

@media (min-width: 1800px) {
  .main { width: 100%; max-width: 1750px; margin-inline: auto; }
  .scene { max-width: 800px; }
  .wheel { max-width: 800px; }
}

@media (prefers-reduced-motion: no-preference) {
  .copy { animation: copy-in .7s ease-out both; }
  .wheel {
    /* wheel-sway: legănare lentă în jurul butucului (centrul jantei în imagine: 50.5% 49.1%) */
    animation: wheel-in 1.2s cubic-bezier(.2, .7, .2, 1) both,
               wheel-sway 7s ease-in-out 1.2s infinite;
    transform-origin: 50.5% 49.1%;
    transition: transform .8s;
  }
  @keyframes wheel-sway {
    0%, 100% { rotate: 0deg; }
    25% { rotate: 7deg; }
    75% { rotate: -7deg; }
  }
  .scene:hover .wheel { transform: rotate(-5deg); }
  .developer-credit a span { transition: transform .2s; }
  .developer-credit a:hover span { transform: translate(2px, -2px); }
  .status::before { animation: status-pulse 1.8s ease-in-out infinite; }
  @keyframes status-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(233, 79, 36, .45); }
    50% { opacity: .35; box-shadow: 0 0 0 5px rgba(233, 79, 36, 0); }
  }
  @keyframes copy-in {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes wheel-in {
    from { opacity: 0; rotate: 14deg; translate: 20px 8px; }
    to { opacity: 1; rotate: 0deg; translate: 0 0; }
  }
}

/* Mobil (portret): pagina încape în zona vizibilă, astfel încât subsolul rămâne vizibil
   și când bara Safari este afișată (100svh = înălțimea cu barele browserului vizibile).
   Textul și spațiile se compactează după înălțime; janta ocupă spațiul rămas. */
@media (max-width: 760px) and (min-height: 520px) {
  .page {
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }
  .header { padding-block: 10px; }
  .languages a { min-width: 40px; min-height: 40px; }
  .main {
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    gap: clamp(8px, 2svh, 22px);
    min-height: 0;
    padding: clamp(10px, 2.4svh, 30px) 6% clamp(6px, 1.5svh, 18px);
  }
  .copy { align-self: start; }
  h1 {
    margin-block: clamp(8px, 1.8svh, 25px);
    font-size: clamp(34px, min(13vw, 7svh), 86px);
  }
  .description { line-height: 1.6; }
  .status { margin-top: clamp(6px, 1.5svh, 23px); }
  .bottom-note { margin-top: clamp(6px, 1.5svh, 26px); }
  .scene {
    align-self: center;
    width: auto;
    height: 88%; /* inelul exterior (113%) rămâne în spațiul disponibil */
    max-width: min(90%, 430px);
    max-height: 100%;
    min-height: 0;
  }
  .scene-word { font-size: clamp(54px, 11svh, 100px); }
  .footer {
    padding-block: 4px calc(4px + env(safe-area-inset-bottom));
  }
}
