/* ==========================================================================
   KERR SABADO - PORTFOLIO STYLES
   --------------------------------------------------------------------------
   Colors live in :root. To change the accent, edit --violet and --lilac.
   ========================================================================== */

:root {
  --bg: #07050d;
  --panel: #0f0b18;
  --panel-2: #171026;
  --text: #f5f1ff;
  --muted: #a69db6;
  --violet: #8b5cf6;
  --violet-deep: #6d3fe0;
  --lilac: #c7acff;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1600px;
  --gutter: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 85% 2%, rgba(139, 92, 246, 0.22), transparent 28%),
    radial-gradient(circle at 8% 30%, rgba(109, 63, 224, 0.12), transparent 30%),
    radial-gradient(circle at 90% 62%, rgba(139, 92, 246, 0.1), transparent 30%),
    radial-gradient(circle at 15% 92%, rgba(109, 63, 224, 0.1), transparent 30%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--lilac);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--violet); color: #fff; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------- type ---------- */

.kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lilac);
}

.h2 {
  margin: 0;
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--lilac);
}

.h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede { margin: 0; color: var(--muted); max-width: 46ch; }

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

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  background: linear-gradient(135deg, var(--violet), var(--violet-deep));
  color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(139, 92, 246, 0.85); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--line-strong);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--lilac); box-shadow: none; }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- progress + nav ---------- */

.progress {
  position: fixed; inset: 0 0 auto; height: 3px; z-index: 60;
}
.progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--lilac));
  transform-origin: left; transform: scaleX(0);
}

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto;
  display: flex; align-items: center; gap: 36px; height: 76px;
}
.brand {
  font-weight: 800; letter-spacing: 0.04em; font-size: 18px;
  text-decoration: none; margin-right: auto;
}
.brand span { color: var(--lilac); }
.nav__links {
  display: flex; gap: 34px; margin: 0; padding: 0; list-style: none;
}
.nav__links a {
  text-decoration: none; font-size: 15px; color: var(--muted);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text); }
.nav__toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  padding: 56px 0 72px;
}

.hero__visual { width: 100%; max-width: 560px; justify-self: end; }

.hero__name {
  margin: 0;
  display: flex; flex-direction: column;
  font-size: clamp(64px, 9.5vw, 156px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.hero__sub {
  margin: 26px 0 0;
  max-width: 52ch;
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__roles {
  display: flex; flex-direction: column;
  margin: 36px 0 0;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero__roles span { padding-left: calc(var(--n) * 1.4em); }

.stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.stat {
  min-width: 140px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}
.stat strong { display: block; font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.35; max-width: 16ch; }

.hero__visual { position: relative; }

/* If the entrance animation never runs, show everything anyway. */
.is-loaded .load { opacity: 1; transform: none; }

.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 10;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 38%, rgba(139, 92, 246, 0.45), transparent 58%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
}
.portrait img {
  position: absolute; inset: auto 0 0 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

.hero__links {
  position: absolute; left: 50%; bottom: -24px;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}
.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(15, 11, 24, 0.9);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.25s var(--ease);
}
.icon-btn:hover { border-color: var(--lilac); transform: translateY(-2px); }
.icon-btn svg {
  width: 20px; height: 20px; fill: none;
  stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round;
}

/* One entrance on load. Nothing else moves on its own except the ticker. */
.load {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i) * 90ms + 80ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  padding: 18px 0;
}
.ticker__track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.ticker__group span {
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; white-space: nowrap; color: var(--muted);
}
.ticker__group i { font-style: normal; color: var(--violet); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */

.section { padding: 112px 0 0; }

.section__head { margin-bottom: 48px; }
.section__head--split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end;
}

.group { margin-top: 56px; }
.group:first-of-type { margin-top: 0; }
.group__head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px;
}
.group__head::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet); box-shadow: 0 0 14px var(--violet);
}
.group__note {
  margin: 0 0 0 auto; display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.group__note::after { content: ""; width: 56px; height: 1px; background: var(--line-strong); }

/* ---------- video cards ---------- */

.grid { display: grid; gap: 20px; align-items: start; }
.grid--featured { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); }
.grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--tall { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (min-width: 1200px) {
  .grid--tall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .grid--featured { grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); }
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  padding: 12px;
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(199, 172, 255, 0.35); }

.card__media {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: #000;
}
.card--h .card__media { aspect-ratio: 16 / 9; }
.card--v .card__media { aspect-ratio: 9 / 16; }

.card__play {
  position: absolute; inset: 0;
  padding: 0; border: 0; cursor: pointer; background: none;
}
.card__play img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.3s;
}
.card__play:hover img { transform: scale(1.03); filter: brightness(1.08); }
.card__icon {
  position: absolute; left: 50%; top: 50%;
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(139, 92, 246, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  transition: transform 0.25s var(--ease), background 0.25s;
}
.card__play:hover .card__icon { transform: translate(-50%, -50%) scale(1.08); background: var(--violet); }
.card__icon svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }

.card__media video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.card__body { padding: 16px 8px 8px; }
.card__meta {
  display: flex; justify-content: space-between; gap: 12px;
  margin: 0 0 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lilac);
}
.card__meta span + span { color: var(--muted); }
.card__title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.card__desc { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- about ---------- */

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about__body p { margin: 0 0 18px; font-size: 17px; color: var(--muted); }
.about__body p:first-child { color: var(--text); }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 0; padding: 0; list-style: none; }
.pills li {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
}

.facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 30px 0 0;
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--line);
}
.facts div { padding: 16px 18px; background: var(--panel); }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }

/* ---------- services ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(circle at 0% 0%, rgba(139, 92, 246, 0.14), transparent 55%), var(--panel);
}
.service p { margin: 12px 0 0; color: var(--muted); }

/* ---------- tools ---------- */

.tools {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
.tool {
  display: flex; align-items: center; gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.tool__logo {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: #f4f1fa;
}
.tool__logo img { width: 28px; height: 28px; object-fit: contain; }
.tool strong { display: block; font-size: 15px; }
.tool small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- contact ---------- */

.contact {
  margin-top: 128px;
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, 0.18), transparent 60%);
}
.contact__title {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--lilac);
}
.contact__sub { margin: 18px auto 0; color: var(--muted); font-size: 18px; max-width: 46ch; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.contact__info {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px;
  margin: 72px 0 0; text-align: left;
}
.contact__info div { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.contact__info dt { font-size: 13px; color: var(--muted); }
.contact__info dd { margin: 6px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.contact__info a { text-decoration: none; }
.contact__info a:hover { color: var(--lilac); }

/* ---------- footer ---------- */

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- big monitors ---------- */

@media (min-width: 1500px) {
  body { font-size: 17px; }
  .kicker { font-size: 13px; }
  .nav__inner { height: 84px; }
  .brand { font-size: 20px; }
  .nav__links a { font-size: 16px; }
  .btn { min-height: 54px; padding: 0 30px; font-size: 16px; }
  .btn--small { min-height: 44px; padding: 0 22px; font-size: 15px; }
  .hero { min-height: calc(100vh - 84px); }
  .hero__visual { max-width: 640px; }
  .stat { min-width: 170px; padding: 20px 22px; }
  .stat strong { font-size: 32px; }
  .stat span { font-size: 14px; }
  .h3 { font-size: 26px; }
  .lede { font-size: 18px; }
  .card { padding: 14px; }
  .card__title { font-size: 20px; }
  .card__desc { font-size: 15px; }
  .card__meta { font-size: 12px; }
  .card__icon { width: 72px; height: 72px; }
  .about__body p { font-size: 19px; }
  .service { padding: 36px 34px; }
  .service p { font-size: 17px; }
  .tool { padding: 20px; }
  .tool strong { font-size: 17px; }
  .tool small { font-size: 14px; }
  .contact__sub { font-size: 20px; }
}

@media (min-width: 2200px) {
  :root { --wrap: 1900px; }
  body { font-size: 19px; }
  .hero__visual { max-width: 760px; }
  .grid--tall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- tablet ---------- */

@media (max-width: 1100px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr 1fr; }
  .services .service:last-child { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 64px; min-height: 0; padding-top: 40px; }
  .hero__visual { max-width: 440px; margin-inline: auto; justify-self: center; order: -1; }
  .section__head--split, .about { grid-template-columns: 1fr; gap: 24px; }
  .services { grid-template-columns: 1fr; }
  .grid--featured { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); }
}

/* ---------- phone ---------- */

@media (max-width: 720px) {
  .nav__inner { gap: 12px; }
  .nav__cta { display: none; }
  .nav__toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
    position: relative; transition: transform 0.25s var(--ease);
  }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
  .nav__toggle span::before { top: -6px; }
  .nav__toggle span::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] span { background: transparent; }
  .nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav__inner { height: 70px; }
  .nav__links {
    display: none;
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 20px 20px;
    background: rgba(7, 5, 13, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 14px 0; font-size: 17px; color: var(--text); border-bottom: 1px solid var(--line); }

  .hero { padding-bottom: 64px; }
  .hero__visual { max-width: 340px; }
  .hero__sub { font-size: 16px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .stat { flex: 1 1 100px; min-width: 0; }

  .section { padding-top: 88px; }
  .section__head { margin-bottom: 32px; }
  .grid--featured, .grid--wide { grid-template-columns: 1fr; }
  .grid--featured .card--v { max-width: 340px; width: 100%; justify-self: center; }
  .grid--tall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid--tall .card { padding: 8px; }
  .grid--tall .card__body { padding: 12px 4px 4px; }
  .grid--tall .card__desc { display: none; }
  .grid--tall .card__meta span + span { display: none; }
  .grid--tall .card__title { font-size: 15px; }
  .card__icon { width: 52px; height: 52px; }

  .group__note::after { display: none; }
  .tools { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .contact { margin-top: 96px; padding-top: 56px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load { animation: none; opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .btn, .card__play img, .icon-btn { transition: none; }
}
