:root {
  --bg: #f7f7f7;
  --bg-soft: #efefef;
  --card: #ffffff;
  --ink: #111111;
  --ink-soft: #4e4e4e;
  --line: #d7d7d7;
  --highlight: #eaeaea;
  --shadow: 0 12px 34px rgba(17, 17, 17, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 10% 10%, #ffffff 0%, var(--bg) 45%, #ececec 100%);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-bottom: 0.65rem;
}

h1,
h2,
.brand span {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
}

.bg-glow-1 {
  width: 320px;
  height: 320px;
  background: #ffffff;
  top: -90px;
  right: -50px;
}

.bg-glow-2 {
  width: 240px;
  height: 240px;
  background: #e2e2e2;
  bottom: 10vh;
  left: -90px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(247, 247, 247, 0.78);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  padding-top: env(safe-area-inset-top);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #fff;
}

.brand span {
  font-size: 1.05rem;
  font-weight: 700;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.52rem 0.9rem;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  background: #fff;
}

.hero {
  padding: 4.5rem 0 2rem;
  position: relative;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(260px, 32vw, 460px);
  aspect-ratio: 1 / 1;
  background: url("../images/kht-logo-large.png") center / contain no-repeat;
  opacity: 0.08;
  filter: grayscale(1) contrast(1.08) blur(0.6px);
  -webkit-mask-image: linear-gradient(
    to bottom left,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.65) 42%,
    rgba(0, 0, 0, 0.1) 78%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom left,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.65) 42%,
    rgba(0, 0, 0, 0.1) 78%,
    transparent 100%
  );
  transform: translate(-8%, 12%);
  z-index: -1;
  pointer-events: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #666;
  margin: 0 0 0.8rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  line-height: 1.06;
}

.hero-copy {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin-top: 1rem;
}

.hero-cta {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  width: fit-content;
}

.hero-cta .hero-copy {
  margin: 0;
  font-weight: 600;
}

.hero-button {
  width: fit-content;
  text-decoration: none;
  color: #fff;
  background: #111;
  border: 1px solid #111;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.56rem 0.9rem;
  transition: 0.2s ease;
}

.hero-button:hover,
.hero-button:focus-visible {
  background: #2a2a2a;
  border-color: #2a2a2a;
}

.section {
  padding: 1.5rem 0 0.5rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--ink-soft);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 14px;
  padding: 0.72rem 0.78rem;
  box-shadow: none;
  transition: 0.25s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: none;
  border-color: rgba(17, 17, 17, 0.2);
  background: rgba(255, 255, 255, 0.7);
}

.link-card:hover .icon-wrap img,
.link-card:focus-visible .icon-wrap img {
  filter: brightness(0) invert(1);
}

.link-card .icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f2f2f2;
  border: 1px solid #dddddd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.link-card .icon-wrap img {
  width: 24px;
  height: 24px;
}

.link-card .link-meta {
  display: grid;
}

.link-card .site-name {
  font-weight: 700;
}

.link-card .site-url {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.link-card.site-youtube:hover .icon-wrap,
.link-card.site-youtube:focus-visible .icon-wrap {
  background: #ff0000;
  border-color: #ff0000;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.15);
}

.link-card.site-instagram:hover .icon-wrap,
.link-card.site-instagram:focus-visible .icon-wrap {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 52%, #8134af 100%);
  border-color: #dd2a7b;
  box-shadow: 0 0 0 3px rgba(221, 42, 123, 0.2);
}

.link-card.site-facebook:hover .icon-wrap,
.link-card.site-facebook:focus-visible .icon-wrap {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.18);
}

.link-card.site-x-com:hover .icon-wrap,
.link-card.site-x-com:focus-visible .icon-wrap {
  background: #111111;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.18);
}

.link-card.site-linkedin:hover .icon-wrap,
.link-card.site-linkedin:focus-visible .icon-wrap {
  background: #0a66c2;
  border-color: #0a66c2;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.2);
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.62rem;
}

.video-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.video-meta-left {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.video-series,
.video-date,
.video-minutes {
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #d4d4d4;
  background: #f8f8f8;
  color: #444;
  border-radius: 999px;
  padding: 0.24rem 0.58rem;
}

.video-series {
  background: #efefef;
}

.video-date {
  background: #f3f3f3;
}

.video-title {
  margin: 0;
  font-size: 1.07rem;
}

.video-content {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
}

.video-thumb-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d6d6d6;
  background: #f1f1f1;
  aspect-ratio: 16 / 9;
}

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

.video-text {
  display: grid;
  gap: 0.58rem;
}

.video-desc {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.video-link {
  width: fit-content;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--ink);
}

.site-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 0.9rem 0;
  padding-bottom: calc(0.9rem + env(safe-area-inset-bottom));
  color: #666;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  background: rgba(247, 247, 247, 0.78);
  border-top: 1px solid rgba(17, 17, 17, 0.06);
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 70px;
    flex-wrap: wrap;
    padding: 0.55rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    padding-bottom: 0.2rem;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .hero {
    padding-top: 3.7rem;
  }

  .hero::after {
    display: none;
  }

  .video-card {
    padding: 0.95rem;
  }

  .video-content {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
  }

  .video-thumb-link {
    width: 150px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(1100px, 94vw);
  }

  .nav-links a {
    font-size: 0.88rem;
    padding: 0.48rem 0.75rem;
  }

  .hero {
    padding: 3.2rem 0 1.4rem;
  }

  .hero-copy {
    font-size: 0.97rem;
  }

  .hero-button {
    font-size: 0.88rem;
    padding: 0.52rem 0.82rem;
  }

  .section {
    padding: 1.1rem 0 0.45rem;
  }

  .site-footer {
    font-size: 0.82rem;
  }

  .video-content {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 0.65rem;
  }

  .video-thumb-link {
    width: 120px;
  }
}
