/* =========================================================
   Sexiest Man in Budapest - static recreation
   ========================================================= */

:root {
  --bg: #000000;
  --surface: #171717;
  --faq-bg: #040102;
  --accent: #f43f5e;
  --accent-soft: rgba(244, 63, 94, 0.14);
  --text: #ffffff;
  --muted: #d4d4d4;
  --answer: #969696;
  --nav-text: #9aa0a6;
  --nav-hover: #f5f6f2;
  --handle: #0099ff;

  --font-display: "Zalando Sans Expanded", "Archivo", "Arial Black", sans-serif;
  --font-nav: "Zalando Sans", "Inter", sans-serif;
  --font-body: "Poppins", sans-serif;
  --font-ui: "Inter", sans-serif;

  --nav-h: 84px;
  --ease: cubic-bezier(0.44, 0, 0.56, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

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

/* ---------- Image slots / placeholders ---------- */
.slot {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 25%, #3a3a3a 0%, #262626 45%, #161616 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot__label {
  position: relative;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
.slot.has-img .slot__label { display: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  padding: 10px 0 10px 10px;
  background: rgba(23, 23, 23, 0.72);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}
.nav__inner {
  max-width: 1200px;
  height: 64px;
  margin: 0 auto;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  color: var(--accent);
  height: 44px;
  align-items: center;
}
.nav__logo-mark { display: block; }
.nav__links {
  display: flex;
  gap: 6px;
}
.nav__links a {
  display: block;
  padding: 10px 14px;
  border-radius: 18px;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 14px;
  line-height: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--nav-text);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav__links a:hover,
.nav__links a:focus-visible {
  background: var(--accent-soft);
  color: var(--nav-hover);
  box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.18);
  outline: none;
}
.nav__toggle {
  display: none;
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0d0d0d;
  padding: 0;
  transition: background-color 0.25s var(--ease);
}
.nav__toggle span {
  position: absolute;
  left: 15px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle span:nth-child(3) { top: 32px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  max-width: 1200px;
  height: 644px;
  margin: var(--nav-h) auto 0;
  padding: 0 60px;
  display: flex;
  align-items: center;
  background: radial-gradient(50% 50% at 50% 50%, #040102 0%, #000 100%);
}
.hero__photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 40px;
  width: 440px;
  border-radius: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent 0%, #000 22%);
  mask-composite: intersect;
  opacity: 0;
  animation: heroPhotoIn 1.4s var(--ease) 0.1s forwards;
}
.hero__photo.slot {
  background: radial-gradient(70% 60% at 55% 35%, #333 0%, #1f1f1f 50%, #0c0c0c 100%);
}
/* real cut-out photo: no gray box behind it, anchored to the bottom */
.hero__photo.slot.has-img { background: none; }
.hero__photo > img { object-fit: contain; object-position: 50% 100%; }
.hero__content {
  position: relative;
  z-index: 1;
  width: 591px;
  max-width: 100%;
  /* visible from the first paint (so it counts as the main content); only slides in */
  animation: heroTextIn 0.9s var(--ease) both;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 46px;
}
.hero__line { display: block; }
.hero__line + .hero__line { margin-top: 20px; }
.hero__line--accent { color: var(--accent); }
.hero__intro {
  margin-top: 30px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}
.hero__social {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}
.social-btn {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.social-btn:hover { border-color: rgba(244, 63, 94, 0.5); background: #120609; }

@keyframes heroTextIn { from { transform: translateY(-40px); } to { transform: none; } }
@keyframes heroPhotoIn { to { opacity: 1; } }

/* =========================================================
   FACTS
   ========================================================= */
.facts-wrap {
  background: var(--surface);
  padding: 30px 60px;
}
.facts {
  max-width: 1145px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fact {
  position: relative;
  height: 140px;
  padding: 16px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.012);
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}
.fact__icon {
  width: 24px;
  height: 23px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fact__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
}
.fact__value {
  margin-top: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 21px;
  color: var(--muted);
}
.fact__bar {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 115px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(56, 1, 18, 0.1) 0%, var(--accent) 100%);
}

/* =========================================================
   GENERIC SECTION
   ========================================================= */
.section {
  position: relative;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}
.section__head {
  position: relative;
  text-align: center;
  width: 100%;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.section__sub {
  margin-top: 16px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--bg); padding-bottom: 74px; }
.about__body {
  width: 100%;
  max-width: 1020px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.about__story {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.about__story-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
  text-transform: uppercase;
  color: var(--accent);
}
.about__story p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--muted);
}
.about__story p.about__story-last { color: #fff; font-weight: 500; }
.about__traits {
  width: 520px;
  display: grid;
  grid-template-columns: 252px 252px;
  grid-template-rows: repeat(10, auto);
  grid-auto-flow: column;
  column-gap: 16px;
  row-gap: 20px;
}
.about__traits li {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}
.about__photo {
  flex: 0 0 380px;
  width: 380px;
  height: 508px;
  border-radius: 16px;
}

/* =========================================================
   TITLES / MARQUEE
   ========================================================= */
.titles {
  background: var(--surface);
  gap: 40px;
}
.titles__title { width: 100%; }
.marquee {
  width: 100%;
  max-width: 100%;
  height: 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(to right, transparent 2%, #000 20%, #000 80%, transparent 98%);
  mask-image: linear-gradient(to right, transparent 2%, #000 20%, #000 80%, transparent 98%);
}
.marquee + .marquee { margin-top: -20px; }
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  will-change: transform;
  animation: marquee var(--dur, 20s) linear infinite;
}
.marquee[data-dir="right"] .marquee__track { animation-direction: reverse; }
.marquee__group {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.marquee__item {
  padding: 10px 16px;
  border-radius: 16px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 24px;
  line-height: 28.8px;
  letter-spacing: -0.32px;
  white-space: nowrap;
  color: #fff;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-1 * var(--shift, 50%))); }
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { background: var(--bg); }
.gallery__title { max-width: 480px; margin: 0 auto; }
.gallery__grid {
  width: 100%;
  max-width: 1185px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 40px;
}
.gallery__item {
  height: 450px;
  border-radius: 8px;
  animation: itemIn 0.6s var(--ease) both;
}
.gallery__item > img { object-position: 50% 25%; }
.gallery__grid + .btn { margin-top: -40px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  height: 49px;
  padding: 16px 40px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  line-height: 16.8px;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.btn:hover { background: #e11d48; }
.btn:active { transform: scale(0.97); }
.btn[hidden], .gallery__item[hidden] { display: none; }

@keyframes itemIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* =========================================================
   TENETS / QUOTES
   ========================================================= */
.tenets {
  background: transparent;
  padding-bottom: 160px;
}
.tenets__glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 194px;
  height: 900px;
  pointer-events: none;
  background: linear-gradient(to left, rgba(244, 63, 94, 0.22), rgba(120, 10, 40, 0.08) 60%, transparent);
  filter: blur(60px);
}
.tenets__title { max-width: 474px; margin: 0 auto; }
.quotes {
  position: relative;
  width: 100%;
  max-width: 1185px;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.quotes__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote {
  background: var(--surface);
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  animation: itemIn 0.6s var(--ease) both;
}
.quote__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quote__x {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 8px;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.quote__handle {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  color: var(--handle);
}
.quote__handle:hover { text-decoration: underline; }
.quote__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote__body p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 27px;
  color: var(--muted);
}
.quote, .quote__body { margin: 0; }
.quote__body p { white-space: pre-line; }
.quote__by {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--accent);
}
/* before the script arranges the cards into columns (or without script) */
.quotes { flex-wrap: wrap; }
.quotes > .quote { flex: 1 1 260px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  background: var(--faq-bg);
  padding: 100px 60px;
  gap: 40px;
  overflow: hidden;
}
.faq__glow {
  position: absolute;
  left: -183px;
  bottom: -500px;
  width: 710px;
  height: 777px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(244, 63, 94, 0.3), rgba(120, 10, 40, 0.12) 60%, transparent);
  filter: blur(100px);
}
.faq__title {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 48px;
  text-align: center;
}
.faq__list {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.faq__item {
  background: var(--surface);
  border-radius: 8px;
  overflow: hidden;
}
.faq__h { margin: 0; font-size: inherit; font-weight: inherit; }
.faq__qtext {
  padding: 16px;
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 20px;
  line-height: 26px;
  color: #fff;
}
.faq__a p {
  max-width: 680px;
  padding: 0 16px 16px;
  margin-top: -4px;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  color: var(--answer);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--faq-bg);
  padding: 0 20px 28px;
  text-align: center;
}
.footer p {
  font-family: var(--font-ui);
  font-size: 12px;
  line-height: 18px;
  color: #9a9a9a;
}

/* =========================================================
   CHAT BUBBLE
   ========================================================= */
.chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
}
.chat__btn {
  width: 56px;
  height: 56px;
  border-radius: 100px;
  border: 1.6px solid transparent;
  background: #111111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease);
}
.chat__btn:hover { transform: scale(1.06); }
.chat__icon--close { display: none; }
.chat.is-open .chat__icon--open { display: none; }
.chat.is-open .chat__icon--close { display: block; }
.chat__panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  width: 240px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: itemIn 0.25s var(--ease) both;
}
.chat__head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
}
.chat__text {
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1199px) {
  .hero { margin-left: 32px; margin-right: 32px; }
  .hero__content { width: 52%; }
  .hero__photo { width: 42%; right: 20px; }
  .about__traits { width: auto; grid-template-columns: repeat(2, minmax(0, 252px)); }
  .about__photo { flex-basis: 320px; width: 320px; height: 428px; }
}

@media (max-width: 999px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 809px) {
  /* nav */
  .nav { padding: 10px 0; height: auto; min-height: var(--nav-h); }
  .nav__inner {
    height: auto;
    min-height: 64px;
    padding: 0 12px 0 20px;
    flex-wrap: wrap;
  }
  .nav__logo { margin: 10px 0; }
  .nav__toggle { display: block; }
  .nav__links {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  }
  .nav__links a {
    padding: 16px 6px;
    font-size: 16px;
    line-height: 18px;
    border-radius: 8px;
  }
  .nav.is-open .nav__links { max-height: 240px; padding: 8px 0 12px; }
  .nav.is-open .nav__toggle { background: rgba(244, 63, 94, 0.18); }
  .nav.is-open .nav__toggle span:nth-child(1) { top: 25px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { top: 25px; transform: rotate(-45deg); }

  /* hero */
  .hero {
    margin: var(--nav-h) 0 0;
    height: auto;
    padding: 0 20px 40px;
    flex-direction: column;
    align-items: stretch;
  }
  /* photo sits in the flow at its own 3:4 shape, text starts on the faded shirt below the face */
  .hero__photo {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% + 40px);
    margin: 0 -20px;
    height: auto;
    aspect-ratio: 3 / 4;
    max-height: 520px;
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
  }
  .hero__content { width: 100%; margin-top: -64px; }
  .hero__title { font-size: 36px; line-height: 33px; }
  .hero__intro { font-size: 14px; line-height: 21px; }
  .hero__social { gap: 8px; margin-top: 32px; }

  /* facts */
  .facts-wrap { padding: 30px 20px; }
  .facts { gap: 19px; }
  .fact { background: rgba(255, 255, 255, 0.02); border-color: rgba(255, 255, 255, 0.06); }
  .fact__title { font-size: 18px; line-height: 22px; }
  .fact__value { font-size: 12px; margin-top: 22px; }
  .fact__bar { width: 70px; }

  /* sections */
  .section { padding: 100px 20px; }
  .section__title { font-size: 20px; line-height: 24px; }
  .section__sub { font-size: 14px; line-height: 21px; }

  /* about */
  .about__body { flex-direction: column; align-items: stretch; gap: 60px; }
  .about__traits { width: 100%; grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 17px; }
  .about__traits li { font-family: var(--font-body); font-size: 12px; line-height: 21px; }
  .about__photo { flex: none; width: 100%; max-width: 350px; height: 400px; margin: 0 auto; }

  /* titles */
  .titles { padding: 40px 20px; }
  .marquee { height: 80px; }

  /* gallery */
  .gallery__grid { grid-template-columns: 1fr; }

  /* tenets */
  .tenets { padding-bottom: 160px; }
  .quote__handle { font-size: 16px; line-height: 24px; }
  .quote__body p { font-size: 16px; line-height: 24px; }

  /* faq */
  .faq { padding: 100px 20px; }
  .faq__title { font-size: 28px; line-height: 33px; }
}

@media (min-width: 560px) and (max-width: 809px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__photo, .hero__content { animation: none; opacity: 1; transform: none; }
  .marquee__track { animation-duration: 120s; }
  .gallery__item, .quote, .chat__panel { animation: none; }
}
