:root {
  --bg: #090b10;
  --panel: #10131a;
  --panel-2: #151922;
  --text: #f6f7f9;
  --muted: #a8b0bf;
  --line: #252b36;
  --accent: #ff0f64;
  --accent2: #00cf73;
  --pad: clamp(16px, 4.2vw, 72px);
  --nav: 68px;
  --sans: "Outfit", ui-sans-serif, sans-serif;
  --display: "Unbounded", ui-sans-serif, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box }
html { scroll-behavior: smooth; overflow-x: hidden }
body {
  margin: 0;
  padding-top: var(--nav);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 15, 100, .13), transparent 24rem),
    radial-gradient(circle at 10% 40%, rgba(0, 207, 115, .08), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  width: 42rem;
  height: 42rem;
  right: -12rem;
  top: -10rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 15, 100, .16), transparent 68%);
  animation: drift 18s var(--ease) infinite alternate;
  z-index: 0;
}

a,
a:link,
a:visited,
a:active {
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
button { cursor: pointer; font-family: inherit; color: inherit }
img { max-width: 100%; height: auto; display: block }
.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}
nav, main, footer { position: relative; z-index: 1 }

.brand, h1, h2, h3, .event-title, .quote {
  font-family: var(--display);
  font-weight: 700;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  background: rgba(9, 11, 16, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner {
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { font-weight: 800; letter-spacing: .08em }
.brand span { color: var(--accent) }
.nav-links {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a,
.nav-links a:visited {
  position: relative;
  color: var(--muted);
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { color: var(--text) }
.nav-links a:hover::after { transform: scaleX(1) }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover {
  transform: translateY(-3px);
  border-color: #3b4350;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}
.btn.primary:hover { box-shadow: 0 12px 32px rgba(255, 15, 100, .35) }
.btn.primary,
.btn.primary:visited { background: var(--accent); border-color: var(--accent); color: #fff }
.btn.secondary,
.btn.secondary:visited { background: #131720; color: var(--text) }
.btn svg { width: 16px; height: 16px }

.hero {
  width: 100%;
  min-height: 0;
  height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 42%);
  align-items: end;
  column-gap: clamp(20px, 3vw, 48px);
  padding: 28px var(--pad) 0;
  overflow: visible;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 0 24px;
  position: relative;
  z-index: 2;
  container-type: inline-size;
  container-name: hero-copy;
}
.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 900;
  margin-bottom: 16px;
}
h1 {
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.06;
  letter-spacing: -.04em;
  margin: 0 0 18px;
}
h1 span { color: var(--accent) }
.hero p {
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 19px);
  margin: 0 0 24px;
}
.hero strong { color: white }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px }

.pills {
  display: grid;
  grid-template-columns: repeat(6, max-content);
  gap: 9px;
  justify-content: start;
}
@container hero-copy (max-width: 860px) {
  .pills { grid-template-columns: repeat(3, max-content) }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  padding: 8px 12px;
  border-radius: 999px;
  color: #d7dce5;
  font-size: 13px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.pill:hover {
  border-color: rgba(255, 15, 100, .45);
  background: rgba(255, 15, 100, .08);
  transform: translateY(-2px);
}
.pill svg { width: 14px; height: 14px; color: var(--accent) }

.photo-wrap {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.photo-glow {
  position: absolute;
  width: 80%;
  height: 70%;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 15, 100, .26) 40%, transparent 70%);
  filter: blur(22px);
  z-index: 0;
  pointer-events: none;
}
.photo-wrap img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100svh - var(--nav) - 62px);
  object-fit: contain;
  object-position: bottom right;
  filter: brightness(1.08) contrast(1.05);
  transform: none;
}
.photo-tag {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin: 10px 0 16px;
  font-size: 13px;
  color: #d6dae2;
  text-align: right;
}
.photo-tag b { display: block; color: white; font-size: 16px }

section { padding: 96px 0; border-top: 1px solid rgba(255, 255, 255, .055); scroll-margin-top: var(--nav) }
#top { scroll-margin-top: var(--nav) }
.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -.04em;
  line-height: 1.08;
  margin: 10px 0 20px;
}
.lead { font-size: clamp(17px, 1.4vw, 22px); color: var(--muted); max-width: 56rem }

.manifesto,
.grid-6,
.stack {
  width: 100%;
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 28px;
  margin-top: 38px;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 15, 100, .4);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .28);
}
.card > svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 10px; font-size: 22px }
.card p { margin: 0; color: var(--muted) }

.timeline { position: relative; margin-top: 44px }
.timeline:before {
  content: "";
  position: absolute;
  left: 34px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(var(--accent), var(--accent2));
}
.event {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 26px;
  margin-bottom: 42px;
  position: relative;
}
.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  border: 4px solid var(--accent);
  margin: 8px 0 0 26px;
  position: relative;
  z-index: 2;
}
.event-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 15, 100, .38);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .3);
}
.logo-box {
  height: 115px;
  background: white;
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logo-box.dark { background: #070707 }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain }
.event-year { font-size: 13px; color: var(--accent); font-weight: 900; letter-spacing: .16em }
.event-title { margin: 4px 0 10px; font-size: 26px; line-height: 1.15 }
.event-copy { color: var(--muted); margin: 0 }
.highlight { color: white; font-weight: 800 }
.stat {
  display: inline-flex;
  margin-top: 18px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(0, 207, 115, .10);
  border: 1px solid rgba(0, 207, 115, .25);
  color: #9ff0c8;
  font-weight: 900;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.project {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  color: var(--text);
}
.project,
.project:visited { color: var(--text) }
.project__brand {
  height: 112px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #07080c;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.project__brand img {
  max-height: 42px;
  max-width: min(240px, 72%);
  width: auto;
  height: auto;
  object-fit: contain;
}
.project__mark {
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
}
.project__wordmark {
  max-height: 18px;
  max-width: 168px;
  filter: brightness(0) invert(1);
  opacity: .94;
}
.project__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 26px 24px;
}
.project small {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
}
.project h3 { margin: 8px 0 10px; font-size: 24px }
.project p { flex: 1 }
.project__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--accent);
  font-weight: 800;
  transition: transform .3s var(--ease);
}
.project__go svg { width: 16px; height: 16px }
.project:hover .project__go { transform: translateX(4px) }
.project[data-brand="porsche"]:hover { border-color: rgba(255, 255, 255, .28) }
.project[data-brand="esphera"]:hover { border-color: rgba(55, 187, 160, .5) }
.project[data-brand="checkapp"]:hover { border-color: rgba(45, 212, 191, .45) }
.project[data-brand="mundo"]:hover { border-color: rgba(255, 15, 100, .45) }

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}
.skill { min-height: 170px; position: relative }
.skill small { color: var(--accent); font-weight: 900; letter-spacing: .1em }
.skill > svg {
  position: absolute;
  top: 26px;
  right: 22px;
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.skill h3 { font-size: 21px; margin: 8px 0 }

.stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  margin-top: 30px;
}
.stack > div {
  border: 1px solid var(--line);
  background: #0e1118;
  border-radius: 16px;
  padding: 18px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.stack > div:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 207, 115, .35);
}
.stack svg { width: 18px; height: 18px; color: var(--accent); margin-bottom: 10px }
.stack b { display: block; margin-bottom: 8px }
.stack span { font-size: 13px; color: var(--muted) }

.quote {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -.035em;
  max-width: 980px;
  margin: 0;
}
.quote em { font-style: normal; color: var(--accent) }

footer {
  padding: 58px 0 70px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 28px var(--pad) 0;
    row-gap: 16px;
  }
  .hero-copy { padding: 0 }
  .pills { justify-content: center }
  .photo-wrap {
    height: auto;
    min-height: 0;
    align-items: center;
    justify-content: flex-start;
  }
  .photo-wrap img {
    height: auto;
    max-height: min(52vh, 380px);
    max-width: min(100%, 420px);
    object-position: bottom center;
  }
  .photo-tag {
    margin: 12px 0 28px;
    text-align: center;
  }
  .manifesto { grid-template-columns: 1fr }
  .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .event-card { grid-template-columns: 160px 1fr }
}
@media (max-width: 760px) {
  .nav-inner { height: var(--nav); padding-block: 0; flex-wrap: nowrap }
  .nav-links { width: auto; order: 0; gap: 14px; font-size: 13px }
  .event-card { grid-template-columns: 1fr }
  .logo-box { width: 160px; height: 92px }
  h1 { font-size: clamp(30px, 9vw, 44px) }
  .hero { gap: 22px; padding-bottom: 40px }
  .pills { grid-template-columns: repeat(2, max-content); justify-content: center }
  section { padding: 72px 0 }
  .timeline:before { left: 14px }
  .event { grid-template-columns: 28px 1fr; gap: 12px }
  .dot { margin-left: 6px }
  .event-card { padding: 20px }
  .quote { font-size: clamp(24px, 7vw, 36px) }
  .projects { grid-template-columns: 1fr }
  .project { min-height: 0 }
  .grid-6 { grid-template-columns: 1fr }
}

.hero .eyebrow,
.hero h1,
.hero p,
.hero-actions,
.pills,
.photo-wrap {
  animation: rise .85s var(--ease) both;
}
.hero h1 { animation-delay: .08s }
.hero p { animation-delay: .16s }
.hero-actions { animation-delay: .24s }
.pills { animation-delay: .32s }
.photo-wrap { animation-delay: .18s }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px) }
  to { opacity: 1; transform: none }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1) }
  to { transform: translate3d(-8%, 18%, 0) scale(1.12) }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none }
}

body.modal-open { overflow: hidden }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.modal[hidden] { display: none !important }
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, .72);
  backdrop-filter: blur(10px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(90svh, 760px);
  overflow: auto;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #141820, #0d1016);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  animation: rise .45s var(--ease) both;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: var(--paper, var(--text));
  display: grid;
  place-items: center;
  cursor: pointer;
}
.modal__close svg { width: 18px; height: 18px }
.modal__panel h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 34px) }
.modal__lead { margin: 0 0 22px; color: var(--muted) }
.modal__panel form { display: grid; gap: 14px }
.modal__panel label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__panel input,
.modal__panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0d12;
  color: var(--text);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s var(--ease);
}
.modal__panel textarea { resize: vertical; min-height: 120px }
.modal__panel input:focus,
.modal__panel textarea:focus { border-color: var(--accent) }
.modal__status { min-height: 1.3em; margin: 0; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500 }
.modal__status.is-error { color: #ff7b9c }
.modal__status.is-ok { color: var(--accent2) }
.modal__panel .btn { width: 100% }
.btn.is-loading { opacity: .7; pointer-events: none }

.toast[hidden] { display: none !important }
.toast {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.toast__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, .62);
  backdrop-filter: blur(12px);
}
.toast__panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 36px 28px 26px;
  border: 1px solid rgba(46, 229, 157, .28);
  border-radius: 24px;
  background: linear-gradient(180deg, #141c18, #0d1210);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .5);
  text-align: center;
  animation: toast-in .5s var(--ease) both;
}
.toast__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(46, 229, 157, .14);
  border: 1px solid rgba(46, 229, 157, .4);
  color: var(--accent2);
}
.toast__icon > * { grid-area: 1 / 1 }
.toast__icon svg { width: 34px; height: 34px; stroke-width: 2.4 }
.toast__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(46, 229, 157, .22);
  border-top-color: var(--accent2);
  animation: toast-spin .7s linear infinite;
}
.toast[data-state="sending"] .toast__icon svg,
.toast[data-state="sending"] .toast__icon [data-lucide],
.toast[data-state="sending"] [data-close-success] { display: none !important }
.toast[data-state="ok"] .toast__spinner { display: none !important }
.toast[data-state="ok"] .toast__icon { animation: toast-pop .55s var(--ease) both }
.toast__panel h3 {
  margin: 0 0 8px;
  font-size: 26px;
  color: var(--text);
}
.toast__panel p {
  margin: 0 0 22px;
  color: var(--muted);
}
.toast__panel .btn { width: 100% }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(18px) scale(.96) }
  to { opacity: 1; transform: none }
}
@keyframes toast-pop {
  0% { transform: scale(.4); opacity: 0 }
  70% { transform: scale(1.08) }
  100% { transform: scale(1); opacity: 1 }
}
@keyframes toast-spin {
  to { transform: rotate(360deg) }
}
