/* CSIET Member Database — product marketing (GitHub Pages) */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --brand: #6d3c3c;
  --brand-hover: #5a3232;
  --brand-muted: rgba(109, 60, 60, 0.12);
  --ink: #14110f;
  --ink-secondary: #3d3834;
  --muted: #6b6560;
  --surface: #ffffff;
  --surface-elevated: #faf8f5;
  --border: rgba(20, 17, 15, 0.08);
  --border-strong: rgba(109, 60, 60, 0.18);
  --shadow-sm: 0 1px 2px rgba(20, 17, 15, 0.04);
  --shadow-md: 0 12px 40px rgba(20, 17, 15, 0.08);
  --shadow-lg: 0 24px 64px rgba(20, 17, 15, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --space: clamp(1rem, 4vw, 3rem);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-secondary);
  background: var(--surface-elevated);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
  color: var(--brand-hover);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* —— Layout —— */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section--surface {
  background: var(--surface);
}

.section--soft {
  background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
}

.section__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.section__title--spaced {
  margin-bottom: 2rem;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 2.5rem;
}

/* —— Nav —— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
  text-decoration: none;
}

.nav__brand:hover {
  text-decoration: none;
  color: var(--brand);
}

.nav__mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), #8b5a5a);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: min(100vw - 8rem, 28rem);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}

.nav__links::-webkit-scrollbar {
  display: none;
}

.nav__links a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
}

.nav__links a:hover {
  background: var(--brand-muted);
  color: var(--brand);
  text-decoration: none;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--brand);
  border-radius: 8px;
  text-decoration: none !important;
}

.nav__cta:hover {
  background: var(--brand-hover);
  text-decoration: none !important;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3rem, 10vw, 6rem) 0 clamp(4rem, 12vw, 7rem);
  overflow: hidden;
  background: linear-gradient(165deg, #2c1818 0%, var(--brand) 42%, #8b5a5a 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 255, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(0, 0, 0, 0.15), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}

.hero__tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.55;
  opacity: 0.92;
  max-width: 36rem;
  margin: 0 0 2rem;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: #fff;
  color: var(--brand) !important;
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: #faf8f5;
  text-decoration: none !important;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
}

.btn--dark {
  background: var(--brand);
  color: #fff !important;
}

.btn--dark:hover {
  background: var(--brand-hover);
  text-decoration: none !important;
}

.btn--outline {
  background: var(--surface);
  color: var(--ink) !important;
  border: 1px solid var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand) !important;
}

.btn--lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

/* —— At a glance (what / who / why) —— */
.glance {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .glance {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.glance__card {
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.glance__card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem;
}

.glance__card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-secondary);
}

/* —— Features —— */
.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.feature-card {
  padding: 1.65rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.feature-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  border-radius: 10px;
  color: var(--brand);
  margin-bottom: 1rem;
}

.feature-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}

/* —— Video —— */
.video-block {
  max-width: 56rem;
  margin: 0 auto;
}

.video-shell {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0f0f0f;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}

.video-shell iframe,
.video-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #0f0f0f;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  vertical-align: top;
}

.video-poster__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  transition: background 0.2s ease;
}

.video-poster:hover .video-poster__overlay,
.video-poster:focus-visible .video-poster__overlay {
  background: rgba(0, 0, 0, 0.45);
}

.video-poster:focus {
  outline: none;
}

.video-poster:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

.video-poster__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(115, 54, 53, 0.92);
  color: #fff;
  font-size: 1.35rem;
  padding-left: 0.25rem;
  line-height: 1;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.video-iframe-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.video-iframe-wrap[hidden] {
  display: none !important;
}

.video-hint {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* —— Screenshots —— */
.shot-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .shot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.shot-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 10rem;
  max-height: min(32rem, 70vh);
  object-fit: contain;
  object-position: top center;
  background: #121212;
}

.shot-card figcaption {
  padding: 1rem 1.15rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  line-height: 1.45;
}

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2420 50%, var(--brand) 140%);
  color: #fff;
  text-align: center;
  padding: clamp(3rem, 8vw, 4.5rem) 0;
  border-radius: var(--radius-lg);
  margin: 0 clamp(1rem, 3vw, 0);
  box-shadow: var(--shadow-lg);
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  opacity: 0.9;
  font-size: 1.05rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-band .btn--primary {
  color: var(--brand) !important;
}

.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
}

/* —— Footer —— */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer a {
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-nav a:hover {
  color: var(--brand);
}

/* —— About page —— */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  background: linear-gradient(180deg, #fff 0%, var(--surface-elevated) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.team-card__avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-muted), #e8ded4);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}

.team-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.25rem;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.team-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.about-repo {
  text-align: center;
}

.about-repo__inner {
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.about-repo__lead {
  margin: 0 auto 1.25rem;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
