:root {
  color-scheme: dark;
  --black: #000;
  --bg: #050606;
  --bg-soft: #0b0d0f;
  --panel: #101316;
  --panel-strong: #15191d;
  --text: #f5f7f8;
  --muted: #aab1b7;
  --subtle: #6f7982;
  --line: #242b31;
  --blue: #1f5bc8;
  --blue-soft: #123472;
  --orange: #f59b13;
  --yellow: #f3c21b;
  --green: #2d791b;
  --red: #d73825;
  --max-width: 1180px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(31, 91, 200, 0.12), rgba(5, 6, 6, 0) 340px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(245, 247, 248, 0.08);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 118px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.site-nav,
.social-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-family: Saira, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav a,
.text-link {
  text-decoration: none;
}

.site-nav a:hover,
.text-link:hover {
  color: var(--text);
}

.hero,
.section,
.site-footer {
  width: min(var(--max-width), calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  min-height: auto;
  padding: clamp(28px, 4vw, 54px) 0 clamp(52px, 7vw, 88px);
}

.hero-banner {
  margin: 0;
  overflow: hidden;
  border: 1px solid #26313a;
  border-radius: var(--radius);
  background: var(--panel);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px clamp(24px, 5vw, 60px);
  align-items: end;
}

.positioning {
  margin: 0;
  color: var(--text);
  font-family: Saira, Inter, sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-transform: uppercase;
}

.positioning span {
  color: var(--orange);
}

.hero-lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.social-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.social-actions .button {
  width: 132px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: Saira, Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: white;
}

.button.secondary {
  border-color: #33404a;
  background: transparent;
  color: var(--text);
}

.button:hover {
  transform: translateY(-1px);
}

.social-button {
  border: 0;
  color: white;
}

.social-button.youtube-icon,
.footer-links .youtube-icon {
  background: #ff0000;
}

.social-button.instagram-icon,
.footer-links .instagram-icon {
  background:
    radial-gradient(circle at 30% 105%, #feda75 0 20%, #fa7e1e 35%, transparent 50%),
    radial-gradient(circle at 70% 10%, #515bd4 0 25%, transparent 42%),
    linear-gradient(135deg, #833ab4, #e1306c 52%, #fd1d1d);
  color: white;
}

.social-button svg {
  flex: 0 0 auto;
}

.social-button.youtube-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-button.youtube-icon svg > path:first-child {
  fill: white;
}

.social-button.instagram-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
}

.social-actions .instagram-icon {
  padding-right: 22px;
}

.section-kicker,
.card-label {
  margin: 0 0 14px;
  font-family: Saira, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-kicker,
.card-label {
  color: var(--blue);
}

.section {
  padding: clamp(66px, 10vw, 112px) 0;
  border-top: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 390px);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Saira, Inter, sans-serif;
  letter-spacing: 0;
  line-height: 1.04;
}

.project-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(2.5rem, 5.6vw, 4.8rem);
  font-weight: 800;
  text-transform: uppercase;
}

.project-title span {
  color: var(--blue);
}

h2 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(1.9rem, 3.7vw, 3.15rem);
  font-weight: 800;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section p {
  max-width: 700px;
  color: var(--muted);
}

.section p {
  font-size: 1.03rem;
}

.episode-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  overflow: hidden;
}

.episode-card {
  border-top: 4px solid var(--blue);
}

.episode-card > :not(.project-block-link, .episode-thumb) {
  margin-inline: 28px;
}

.episode-card .card-label {
  display: block;
  margin-top: 20px;
}

.episode-card h3 {
  margin-bottom: 16px;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
}

.episode-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
}

.episode-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-thumb span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 62px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #ff0000;
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.episode-thumb svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.build-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 5vw, 56px);
}

.build-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.project-clickable {
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.project-clickable:hover {
  border-color: rgba(245, 155, 19, 0.72);
  transform: translateY(-2px);
}

.project-block-link {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.build-photo img {
  display: block;
  width: 100%;
  height: clamp(220px, 25vw, 320px);
  object-fit: cover;
}

.build-photo:nth-child(1) img {
  object-position: 50% 48%;
}

.build-photo:nth-child(2) img {
  object-position: 50% 42%;
}

.build-photo:nth-child(3) img {
  object-position: 50% 18%;
}

.placeholder-stage div {
  height: clamp(220px, 25vw, 320px);
  background:
    linear-gradient(135deg, rgba(31, 91, 200, 0.2), rgba(0, 0, 0, 0) 46%),
    repeating-linear-gradient(
      135deg,
      rgba(245, 247, 248, 0.06) 0,
      rgba(245, 247, 248, 0.06) 1px,
      transparent 1px,
      transparent 14px
    ),
    var(--bg-soft);
}

.build-photo figcaption {
  border-top: 4px solid var(--orange);
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.build-photo figcaption a {
  position: relative;
  z-index: 2;
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--blue);
  text-underline-offset: 3px;
}

.build-photo figcaption a:hover {
  color: var(--blue);
}

.build-photo figcaption span {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-family: Saira, Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.build-photo figcaption small {
  display: block;
  margin-bottom: 8px;
  color: var(--orange);
  font-family: Saira, Inter, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-family: Saira, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.approach-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
  gap: clamp(28px, 4vw, 44px);
  align-items: center;
}

.approach-header img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  object-position: right center;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.principles article {
  min-height: 248px;
  background: var(--bg-soft);
  padding: 28px;
}

.principles article:nth-child(1) {
  border-top: 4px solid var(--blue);
}

.principles article:nth-child(2) {
  border-top: 4px solid var(--orange);
}

.principles article:nth-child(3) {
  border-top: 4px solid var(--green);
}

.principles article:nth-child(4) {
  border-top: 4px solid var(--red);
}

.principles h3 {
  font-size: 1.28rem;
}

.principles p {
  font-size: 0.97rem;
}

.about-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 42px);
  align-items: start;
  border-top: 4px solid var(--green);
  border: 1px solid var(--line);
  border-top-width: 4px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  padding: 28px;
  max-width: 900px;
}

.about-photo {
  margin: 0;
  width: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.about-photo a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.about-photo a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.about-photo a:hover figcaption {
  color: var(--orange);
}

.about-photo img {
  display: block;
  width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: 50% 30%;
}

.about-photo figcaption {
  border-top: 4px solid var(--blue);
  padding: 10px 12px 12px;
  color: var(--text);
  font-family: Saira, Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-copy p {
  max-width: 780px;
}

.about-copy .button {
  margin-top: 12px;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.92rem;
}

.footer-links {
  display: inline-flex;
  gap: 10px;
}

.footer-links a {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: white;
  text-decoration: none;
}

.footer-links a:hover {
  transform: translateY(-1px);
}

.footer-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.footer-links .youtube-icon svg {
  width: 26px;
  height: 26px;
}

.footer-links .youtube-icon svg > path:first-child {
  fill: white;
}

.icon-play {
  fill: #ff0000;
}

.footer-links .instagram-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
}

.instagram-icon .icon-dot {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .section-grid,
  .build-gallery {
    grid-template-columns: 1fr;
  }

  .about-card {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .about-photo img {
    width: 140px;
    height: 170px;
  }

  .about-photo {
    width: 140px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
  }

  .social-actions {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
  }

  .approach-header {
    grid-template-columns: 1fr;
  }

  .approach-header img {
    max-height: 210px;
    object-position: left center;
  }

  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    padding: 14px;
  }

  .brand {
    width: 104px;
  }

  .site-nav {
    gap: 16px;
    font-size: 0.78rem;
  }

  .positioning {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
  }

  .project-title {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem);
  }

  .button {
    width: 100%;
  }

  .build-photo img,
  .placeholder-stage div {
    height: clamp(220px, 62vw, 300px);
  }

  .principles,
  .build-gallery {
    grid-template-columns: 1fr;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .about-photo img {
    width: 128px;
    height: 156px;
  }

  .about-photo {
    width: 128px;
  }

  .principles article {
    min-height: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .approach-header {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: start;
  }

  .approach-header h2 {
    max-width: none;
  }

  .approach-header img {
    width: 260px;
    max-height: 90px;
    justify-self: end;
    object-position: right top;
  }
}
