/* Monalisa Kabos portfolio — rebuilt from the Leadpages version */

@font-face {
  font-family: "Moliga";
  src: url("/assets/fonts/Moliga.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Gasdrifo";
  src: url("/assets/fonts/Gasdrifo.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #fdfcf6;
  --ink: #000;
  --ink-soft: #2b2b2b;
  --orange: #ff6b00;
  --rule: rgba(0, 0, 0, 0.35);
  --gutter: clamp(16px, 4.5vw, 70px);
  --max: 1560px;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --header-h: 96px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}
.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo img { width: 46px; }
.main-nav { display: flex; gap: clamp(32px, 11vw, 180px); }
.main-nav a, .nav-cta { text-decoration: none; font-size: 15px; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta {
  justify-self: end;
  font-weight: 700;
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}
.nav-cta:hover { transform: scale(1.12); opacity: .9; }

/* ---------- Display type ---------- */
.display {
  font-family: "Moliga", var(--font-body);
  font-weight: 400;
  color: var(--orange);
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.44fr);
  gap: 32px;
  align-items: start;
  padding-top: 24px;
}
.hero-title {
  font-size: clamp(64px, 12.6vw, 205px);
  line-height: 0.86;
  padding-top: 0.12em;
  white-space: nowrap;
}
.hero-title-desktop { display: inline-block; max-width: 6.2em; white-space: normal; }
.hero-title-mobile { display: none; }
.hero-photo { padding-top: 0; }
.hero-photo img { width: 100%; }

.tagline {
  font-family: "Gasdrifo", var(--font-body);
  font-size: clamp(18px, 2vw, 34px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  white-space: nowrap;
  margin: clamp(24px, 3.5vw, 56px) 0 0;
}
@media (max-width: 1100px) { .tagline { white-space: normal; } }
.tagline-first { font-weight: 900; }
.tagline-dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink);
  margin: 0 14px;
  vertical-align: middle;
}

/* ---------- Spinning badge ---------- */
.spin-badge {
  position: relative;
  width: 200px;
  height: 200px;
  flex-shrink: 0;
}
.spin {
  width: 100%;
  height: 100%;
  animation: spin 36.4s linear infinite;
}
.spin-bold {
  filter: drop-shadow(0.5px 0 0 #000) drop-shadow(-0.5px 0 0 #000) drop-shadow(0 0.5px 0 #000) drop-shadow(0 -0.5px 0 #000);
}
.spin-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px) 1fr;
  align-items: center;
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(48px, 5vw, 72px);
}
.intro-text {
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}
.intro-text p:last-child { margin-bottom: 0; }

/* ---------- Section bar ---------- */
.anchor { position: relative; top: calc(-1 * var(--header-h)); }
.section-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--orange);
  font-size: 15px;
  padding-bottom: 28px;
  border-bottom: 0.5px solid var(--ink);
  margin-bottom: clamp(48px, 5vw, 80px);
}
.bar-label, .bar-count { font-family: var(--font-mono); font-weight: 700; }
.bar-tags { text-align: center; }
.bar-count { text-align: right; }

/* ---------- Projects ---------- */
.project { padding-bottom: clamp(72px, 8vw, 120px); }
.project-head { max-width: 700px; }
.project-title {
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}
.project-meta {
  font-style: italic;
  font-size: 13.5px;
  margin-bottom: 36px;
}
.project-desc { color: var(--ink-soft); line-height: 1.65; }

.project-body {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  margin-top: clamp(48px, 5vw, 80px);
}
.detail-title {
  font-family: "Nunito", var(--font-body);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 32px;
}
.detail-title span { font-size: 16px; }
.impact {
  list-style: none;
  padding: 0;
  margin: 0 0 72px;
  font-size: 15px;
  line-height: 1.8;
}
.impact li::before { content: "→ "; font-family: var(--font-mono); font-size: 13px; }
.skills { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin: 0; }

/* ---------- Slide deck viewer ---------- */
.deck {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.deck canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.deck-gif { position: absolute; z-index: 2; pointer-events: none; display: none; object-fit: cover; }
.deck-hud {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(31, 31, 31, .95);
  color: #fff;
  font: 500 13px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.deck-btn {
  width: 26px; height: 26px;
  border: 0;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
  font-size: 15px;
  line-height: 26px;
  padding: 0;
  cursor: pointer;
}
.deck-btn:disabled { opacity: .38; cursor: not-allowed; }
.deck-info { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.deck-fs { position: absolute; top: 10px; right: 10px; z-index: 3; width: 28px; height: 28px; background: #1f1f1f; }
.deck-fs:hover { background: #2a2a2a; }
.deck-status {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,.7);
  font: 500 13px system-ui, sans-serif;
}
.deck-status a { color: #fff; }
.deck-tap { position: absolute; top: 0; bottom: 0; width: 30%; z-index: 1; }
.deck-tap.prev { left: 0; }
.deck-tap.next { right: 0; }
.deck:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; }
.deck.fill { position: fixed; inset: 0; z-index: 100; aspect-ratio: auto; }

/* ---------- Referrals ---------- */
.referrals { padding-bottom: clamp(48px, 6vw, 96px); }
.story {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(24px, 3vw, 32px);
  margin: 0 0 clamp(64px, 7vw, 110px);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.story-a { padding-left: clamp(0px, 6vw, 100px); }
.avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
}
.story-quote {
  margin: 0 0 32px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.story figcaption { margin-bottom: 32px; color: var(--ink); }
.story figcaption p { margin: 0; font-style: italic; }
.story-name { font-weight: 700; }
.story-b { padding-top: 0; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 40px;
}
.contact .spin-badge { justify-self: start; margin-left: clamp(0px, 4vw, 70px); }
.contact-title {
  font-size: clamp(96px, 13vw, 210px);
  line-height: 0.8;
  text-align: center;
  padding-top: 0.15em;
}
.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
  justify-self: center;
  font-size: 16px;
}
.contact-links li { margin-bottom: 22px; }
.contact-links a { text-decoration: none; }
.contact-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.email-row { display: flex; align-items: center; gap: 44px; font-size: 18px; }
.arrow { margin-left: 4px; }
.copy-btn {
  position: relative;
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer;
  color: inherit;
  transition: transform .25s ease;
}
.copy-btn:hover { transform: scale(1.2); }
.copy-tip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #000;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.copy-btn.copied .copy-tip { opacity: 1; transform: translateX(-50%) translateY(0); }

.cta-wrap { grid-column: 1 / -1; display: flex; justify-content: center; margin: 40px 0 56px; }
.fx-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Inter", var(--font-body);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  background: #000;
  padding: 20px 40px;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform .3s ease-in-out, opacity .3s ease-in-out;
}
.fx-button:hover { transform: scale(1.07); opacity: .9; }
.fx-button .star {
  position: absolute;
  top: 50%; left: 50%;
  color: #000;
  -webkit-text-stroke: 1px #fff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
  transition: transform .45s cubic-bezier(.5, -.3, .6, 1.4), opacity .45s ease;
  pointer-events: none;
}
.fx-button:hover .star, .fx-button:focus-visible .star {
  opacity: 1;
  transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(var(--s));
}

.site-footer {
  text-align: center;
  font-size: 13px;
  padding: 0 16px 72px;
}

/* ---------- Entrance animation (Leadpages "rubberBand") ---------- */
.animate-rubber.is-visible { animation: rubberBand 1.6s both; }
@keyframes rubberBand {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.25, .75, 1); }
  40% { transform: scale3d(.75, 1.25, 1); }
  50% { transform: scale3d(1.15, .85, 1); }
  65% { transform: scale3d(.95, 1.05, 1); }
  75% { transform: scale3d(1.05, .95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin, .animate-rubber.is-visible { animation: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .story { grid-template-columns: 90px minmax(0, 1fr); }
  .avatar { width: 90px; height: 90px; }
  .story-a { padding-left: 0; }
  .story-b { grid-column: 2; }
}
@media (max-width: 1180px) {
  .contact { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .contact .spin-badge { justify-self: center; margin: 0; order: 3; width: 160px; height: 160px; }
  .contact-links { order: 2; }
  .cta-wrap { order: 1; margin: 0; }
  .contact-title { order: 0; }
  .email-row { justify-content: center; gap: 16px; }
}

/* ---------- Phone ---------- */
@media (max-width: 767px) {
  :root { --header-h: 68px; }
  .logo img { width: 36px; }
  .main-nav { gap: 24px; }
  .main-nav a, .nav-cta { font-size: 14px; }

  .hero { grid-template-columns: 1fr; text-align: center; gap: 24px; padding-top: 8px; }
  .hero-title { font-size: clamp(88px, 30vw, 150px); line-height: 0.82; white-space: normal; }
  .hero-title-desktop { display: none; }
  .hero-title-mobile { display: inline; }
  .hero-photo { order: -1; max-width: 420px; justify-self: center; }
  .tagline { font-size: clamp(24px, 6.5vw, 40px); margin-top: 8px; }
  .tagline-first, .tagline-second { display: block; }
  .tagline-dot { display: none; }

  .intro { grid-template-columns: 1fr; justify-items: center; gap: 32px; }
  .intro .spin-badge { order: 2; width: 160px; height: 160px; }

  .section-bar { grid-template-columns: 1fr 1fr; row-gap: 8px; font-size: 13px; padding-bottom: 16px; margin-bottom: 40px; }
  .bar-tags { grid-column: 1 / -1; grid-row: 2; text-align: left; }

  .project-title { margin-bottom: 20px; }
  .project-meta { margin-bottom: 20px; }
  .project-body { grid-template-columns: 1fr; margin-top: 32px; }
  .project-details { order: 2; }
  .impact { margin-bottom: 36px; }
  .deck-hud { bottom: 8px; padding: 6px 10px; }
  .deck-btn { width: 34px; height: 34px; line-height: 34px; font-size: 18px; }

  .story { grid-template-columns: 1fr; }
  .story-b { grid-column: 1; }
  .avatar { margin-bottom: 20px; }
  .story-quote { margin-bottom: 20px; }

  .contact-title { font-size: clamp(88px, 30vw, 150px); }
}
