:root {
  --ink: #131313;
  --muted: #6d6d6d;
  --paper: #f4f1eb;
  --card: #ffffff;
  --line: #ded8cf;
  --accent: #d62828;
  --accent-dark: #971f1f;
  --radius: 24px;
  --shadow: 0 18px 55px rgba(21, 17, 13, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
.profile { overflow: hidden; }

.hero {
  position: relative;
  isolation: isolate;
  color: white;
  background: #111;
  min-height: 640px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -38% 36%;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 40, 40, .42), rgba(214, 40, 40, 0) 67%);
  z-index: -2;
}
.hero__track {
  position: absolute;
  inset: 0;
  opacity: .22;
  z-index: -1;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(255,255,255,.08) 48% 48.4%, transparent 48.4%),
    repeating-linear-gradient(115deg, transparent 0 62px, rgba(255,255,255,.08) 63px 65px, transparent 66px 128px);
  mask-image: linear-gradient(to right, transparent, #000 35%, #000);
}
.hero__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
  align-items: center;
  gap: 64px;
  padding: 72px 0 56px;
}
.eyebrow, .kicker {
  margin: 0 0 18px;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.eyebrow { color: #ffb1b1; }
.hero h1 {
  margin: 0;
  font-size: clamp(60px, 8.4vw, 112px);
  line-height: .84;
  letter-spacing: -.075em;
  font-weight: 900;
}
.hero h1 span { color: #ff4a4a; }
.hero__role {
  margin: 30px 0 0;
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 700;
}
.hero__note {
  margin: 10px 0 0;
  color: rgba(255,255,255,.68);
  font-size: 16px;
}
.hero__visual {
  position: relative;
  width: min(100%, 455px);
  aspect-ratio: 4 / 5;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: #242424;
  box-shadow: 0 26px 70px rgba(0,0,0,.34);
}
.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent 42%);
  pointer-events: none;
}
.hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 44%;
}
.hero__photo-meta {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.hero__photo-meta span {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.06em;
}
.hero__photo-meta strong {
  color: #ffd0d0;
  font-size: 12px;
  letter-spacing: .12em;
  text-align: right;
}
.hero__stats {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.16);
}
.hero__stats article {
  min-height: 118px;
  padding: 25px 24px 28px;
  border-right: 1px solid rgba(255,255,255,.16);
}
.hero__stats article:first-child { padding-left: 0; }
.hero__stats article:last-child { border-right: 0; }
.hero__stats span {
  display: block;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.hero__stats strong { font-size: clamp(20px, 2.1vw, 28px); }

.section-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244,241,235,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.section-nav__inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav__inner::-webkit-scrollbar { display: none; }
.section-nav a {
  position: relative;
  flex: 0 0 auto;
  padding: 19px 0 17px;
  color: #48433d;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}
.section-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
  transition: right .2s ease;
}
.section-nav a:hover::after,
.section-nav a.is-active::after { right: 0; }

.page-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 88px;
}
.section {
  scroll-margin-top: 75px;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.section:last-child { border-bottom: 0; }
.section-heading { max-width: 790px; margin-bottom: 34px; }
.section-heading--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.kicker { color: var(--accent); }
.section h2 {
  margin: 0;
  font-size: clamp(36px, 5.1vw, 64px);
  line-height: .98;
  letter-spacing: -.055em;
}
.overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 48px;
  align-items: stretch;
}
.overview__story {
  font-size: 18px;
  line-height: 1.72;
  color: #403b36;
}
.overview__story p { margin: 0 0 18px; }
.overview__story .lead {
  color: var(--ink);
  font-size: clamp(21px, 2.3vw, 28px);
  line-height: 1.48;
  letter-spacing: -.015em;
}
.progress-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 330px;
  padding: 34px;
  color: white;
  background: #171717;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.progress-card::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -150px;
  top: -170px;
  border: 45px solid rgba(214,40,40,.55);
  border-radius: 50%;
}
.progress-card span { color: rgba(255,255,255,.6); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.progress-card strong { display: block; margin: 12px 0 9px; font-size: clamp(56px, 7vw, 82px); line-height: .95; letter-spacing: -.065em; }
.progress-card p { margin: 0; color: rgba(255,255,255,.72); }
.progress-card p span { color: white; font-size: inherit; text-transform: none; letter-spacing: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  border: 1px solid #cec7bd;
  background: transparent;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.filter:hover, .filter.is-active { color: white; border-color: var(--ink); background: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: 18px; box-shadow: var(--shadow); }
.records-table { width: 100%; min-width: 710px; border-collapse: collapse; background: var(--card); }
.records-table th, .records-table td { padding: 19px 22px; text-align: left; border-bottom: 1px solid #eee9e2; }
.records-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; }
.records-table tbody tr:last-child td { border-bottom: 0; }
.records-table .time { font-weight: 900; font-size: 19px; }

.season-count, .video-count {
  flex: 0 0 auto;
  color: var(--accent-dark);
  background: #ffe1df;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
}
.result-list { display: grid; gap: 10px; }
.result-card {
  display: grid;
  grid-template-columns: 74px minmax(125px, .6fr) minmax(250px, 1.4fr) 70px;
  align-items: center;
  min-height: 98px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid #e5dfd6;
  border-radius: 18px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.result-card:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(20,17,13,.07); }
.result-card--featured { border-color: #efb1ad; background: linear-gradient(90deg, #fff, #fff7f6); }
.result-card time { color: var(--muted); font-size: 13px; font-weight: 800; }
.result-card__event span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.result-card__event strong { font-size: 23px; letter-spacing: -.025em; }
.result-card__meet strong { display: block; font-size: 15px; line-height: 1.35; }
.result-card__meet span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.result-card__place, .result-card__tag, .result-card__play {
  justify-self: end;
  min-width: 44px;
  text-align: center;
  font-weight: 900;
}
.result-card__tag { color: var(--accent-dark); font-size: 12px; }
.result-card__play {
  width: 42px;
  height: 42px;
  border: 0;
  color: white;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
}
.season-actions { text-align: center; margin-top: 20px; }
.season-toggle {
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.video-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 22px; }
.video-feature, .video-list { min-width: 0; }
.video-feature { overflow: hidden; background: #111; color: white; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-feature__media { aspect-ratio: 16 / 9; background: #090909; }
.video-feature__media iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-feature__poster {
  width: 100%; height: 100%; border: 0; cursor: pointer;
  background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.38)), var(--video-poster) center / cover no-repeat;
  display: grid; place-items: center;
}
.video-play { width: 72px; height: 72px; display: grid; place-items: center; padding-left: 5px; border-radius: 50%; color: white; background: var(--accent); font-size: 26px; box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.video-feature__copy { padding: 23px 25px 26px; }
.video-feature__copy span { color: #ffaaaa; font-size: 12px; font-weight: 800; }
.video-feature__copy h3 { margin: 8px 0 4px; font-size: 22px; }
.video-feature__copy p { margin: 0; color: rgba(255,255,255,.65); }
.video-list { display: grid; align-content: start; gap: 10px; }
.video-item {
  display: grid; grid-template-columns: 112px 1fr; gap: 13px; align-items: center;
  width: 100%; padding: 8px; border: 1px solid #e2dcd3; border-radius: 15px; background: white; text-align: left; cursor: pointer;
}
.video-item.is-selected { border-color: var(--accent); }
.video-item__thumb { position: relative; aspect-ratio: 16/9; border-radius: 10px; background: #ddd var(--video-thumb) center / cover no-repeat; overflow: hidden; }
.video-item__thumb span { position: absolute; inset: 0; display: grid; place-items: center; color: white; background: rgba(0,0,0,.22); font-size: 18px; }
.video-item__copy small { display: block; color: var(--accent-dark); font-weight: 800; }
.video-item__copy strong { display: block; margin: 4px 0 2px; font-size: 14px; }
.video-item__copy span { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 34px; padding-top: 58px; }
  .hero__visual { max-width: 360px; justify-self: start; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__stats article:nth-child(2) { border-right: 0; }
  .hero__stats article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.16); }
  .hero__stats article:nth-child(3) { padding-left: 0; }
  .overview__grid, .video-layout { grid-template-columns: 1fr; }
  .progress-card { min-height: 270px; }
  .result-card { grid-template-columns: 65px minmax(115px,.65fr) minmax(190px,1.35fr) 55px; }
}

@media (max-width: 640px) {
  .hero__inner, .hero__stats, .section-nav__inner, .page-grid { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; }
  .hero__inner { min-height: auto; padding: 48px 0 34px; }
  .hero h1 { font-size: clamp(56px, 20vw, 82px); }
  .hero__visual { max-width: 290px; }
  .hero__stats article { min-height: 95px; padding: 20px 13px; }
  .hero__stats article:first-child, .hero__stats article:nth-child(3) { padding-left: 0; }
  .hero__stats strong { font-size: 18px; }
  .section-nav__inner { gap: 22px; }
  .section { padding: 54px 0; }
  .section-heading--row { display: block; }
  .filters { margin-top: 20px; }
  .result-card {
    grid-template-columns: 54px 1fr 46px;
    gap: 8px 10px;
    padding: 14px;
  }
  .result-card__event { grid-column: 2; }
  .result-card__meet { grid-column: 1 / 4; padding-top: 10px; border-top: 1px solid #eee8df; }
  .result-card__place, .result-card__tag, .result-card__play { grid-column: 3; grid-row: 1; }
  .video-item { grid-template-columns: 96px 1fr; }
}
/* Emīlijas profila foto kadrējums */
.hero__visual img { object-position: 50% 39%; }
@media (max-width: 760px) {
  .hero__photo-meta span { font-size: 28px; }
}
