/* ------------------------------------------------------------------ */
/* Fonts                                                              */
/* ------------------------------------------------------------------ */

/* Neue Haas Display — primary UI/body typeface */
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-RomanItalic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Mediu.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Black.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

/* Roc Grotesk Wide — used by the cloud showcase section */
@font-face {
  font-family: "Roc Grotesk Wide";
  src: url("fonts/rocGroteskMediumWide.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roc Grotesk Wide";
  src: url("fonts/rocGroteskBoldWide.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* SF Mono — available for monospace/code accents */
@font-face {
  font-family: "SF Mono";
  src: url("fonts/SF-Mono.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --bg-elevated: #141414;
  --text: #f2f2f2;
  --text-muted: #8a8a8a;
  --accent: #fff;
  --accent-hover: #d0d0d0;
  --border: #2a2a2a;
  --max-width: 960px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Neue Haas Display", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav.container {
  max-width: none;
  padding: 0 40px;
}

@media (max-width: 640px) {
  .nav.container {
    padding: 0 1.5rem;
  }
}

.brand {
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-current {
  color: var(--text);
}

.site-view:not(.is-active) {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero */
.hero {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.eyebrow {
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  max-width: 36rem;
  margin: 1.25rem auto 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
.section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.skills h3 {
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-list li {
  color: var(--text);
  font-weight: 500;
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.card-link:hover {
  color: var(--accent-hover);
}

/* Showcase: animated clouds on the Figma cream gradient */
.showcase {
  position: relative;
  background: linear-gradient(
    180deg,
    #f6f7e8 0%,
    #eeefe2 28%,
    #f1ede1 55%,
    #f2eae1 78%,
    #eed8de 100%
  );
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.showcase-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1.5rem 5rem;
  pointer-events: none;
}

.showcase-title {
  font-family: "Neue Haas Display", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #3d5a80;
  margin-bottom: 0.75rem;
}

.showcase-sub {
  font-family: "Neue Haas Display", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
  color: #3d5a80;
  max-width: 36rem;
  margin: 0 auto;
}

.showcase-hud {
  display: block;
  height: 320vh;
  min-height: 0;
  overflow: visible;
  background: #000;
  cursor: default;
}

.hud-stage {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.showcase-hud .showcase-title {
  color: #fff;
}

.showcase-hud .showcase-sub {
  color: rgba(255, 255, 255, 0.55);
}

.showcase-hud-cream {
  background: #f3eee3;
}

.showcase-hud-cream .showcase-title {
  color: #222c30;
}

.showcase-hud-cream .showcase-sub {
  color: rgba(34, 44, 48, 0.6);
}

.showcase-glass {
  background: #f3eee3;
  cursor: default;
}

.showcase-glass .showcase-inner {
  align-self: stretch;
  text-align: left;
  padding-left: 40px;
  padding-right: 40px;
}

.showcase-glass .showcase-title {
  color: #2b3330;
  font-weight: 400;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.showcase-glass .showcase-sub {
  font-weight: 300;
  color: rgba(43, 51, 48, 0.74);
  margin: 0;
}

.showcase-glass-grey {
  background: #e3e3e3;
}

.showcase-glass-dark {
  background: #000;
}

.showcase-glass-dark .showcase-title {
  color: #f2f2f2;
}

.showcase-glass-dark .showcase-sub {
  color: rgba(242, 242, 242, 0.72);
}

.cloud-canvas,
.cloth-canvas,
.hud-canvas,
.glass-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.showcase-cloth {
  cursor: grab;
  touch-action: none;
}

.showcase-cloth.is-dragging {
  cursor: grabbing;
}

/* Contact */
.contact-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 32rem;
  margin-bottom: 1.5rem;
}

.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links li {
    padding: 0.75rem 1.5rem;
  }

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