/* -------------------------------------------------
   Theme variables (colors, lines, accent, etc.)
------------------------------------------------- */
:root {
  --accent: #EC6432;
  /* fire orange */
  --bg: #0f1115;
  --surface: #161922;
  --text: #e8e9ee;
  --muted: #9aa1b2;
  --line: rgba(255, 255, 255, 0.08);
}

/* -------------------------------------------------
   Base document defaults and background glow
------------------------------------------------- */
html,
body {
  margin: 0;
  font-family: "LeagueSpartan-Regular", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 900px at 80% -10%, #1a1f2b 0%, var(--bg) 60%);
  /* subtle site-wide glow */
  min-height: 100%;
  font-size: 18px;
}

/* Custom font */
@font-face {
  font-family: 'LeagueSpartan-Bold';
  src: url('./fonts/LeagueSpartan-Bold.woff2') format('woff2'),
    url('./fonts/LeagueSpartan-Bold.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Custom font */
@font-face {
  font-family: 'LeagueSpartan-Regular';
  src: url('./fonts/LeagueSpartan-Regular.woff2') format('woff2'),
    url('./fonts/LeagueSpartan-Regular.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* Custom font */
@font-face {
  font-family: 'LeagueSpartan-Light';
  src: url('./fonts/LeagueSpartan-Light.woff2') format('woff2'),
    url('./fonts/LeagueSpartan-Light.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------
   Smooth in-page anchor scrolling
------------------------------------------------- */
html {
  scroll-behavior: smooth
}

/* (duplicate safeguard retained) */
html {
  scroll-behavior: smooth
}

/* -------------------------------------------------
   .wrap — centered page container, max width
------------------------------------------------- */
.wrap {
  width: min(1100px, 92vw);
  margin-inline: auto;
  padding: 28px 0 28px 0;
}

/* -------------------------------------------------
   .panel — glassy card surface for sections
------------------------------------------------- */
.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.0));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

/* -------------------------------------------------
   header.site — page masthead (title + nav)
------------------------------------------------- */
header.site {
  position: relative;
  z-index: 10;
  width: 100%;
  background: linear-gradient(180deg, rgba(15, 17, 21, 0.92), rgba(15, 17, 21, 0.6));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

/* -------------------------------------------------
   .mast — centers the main site title area
------------------------------------------------- */
.mast {
  display: grid;
  place-items: center;
  padding: 10px 0 10px 0;
}

/* -------------------------------------------------
   .mast h1 — wide letter-spaced “ETHAN KAPELKA”
------------------------------------------------- */
.mast h1 {
  margin: 0;
  font-family: "LeagueSpartan-Bold";
  font-weight: 900;
  letter-spacing: clamp(0.15em, 1.5vw, 0.6em);
  text-transform: uppercase;
  text-align: center;
  font-size: clamp(30px, 7vw, 64px);
  text-decoration: none;
  color: var(--text);
}

/* -------------------------------------------------
   nav.primary — horizontal nav bar layout
------------------------------------------------- */
nav.primary {
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  padding: 6px 0 10px;
  flex-wrap: wrap;
}

/* -------------------------------------------------
   .nav-btn — pill-like buttons in the nav
------------------------------------------------- */
.nav-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(22, 25, 34, 1), rgba(22, 25, 34, .85));
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
  overflow: hidden;
  isolation: isolate;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.nav-btn::after {
  /* sheen sweep */
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, .14) 15%, transparent 30%);
  transform: translateX(-140%) skewX(-18deg);
  transition: transform .7s ease;
  pointer-events: none;
}

.nav-btn::before {
  /* inner underglow */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(236, 100, 50, 0);
  transition: box-shadow .25s ease;
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(236, 100, 50, .22), 0 1px 0 rgba(255, 255, 255, .05) inset;
}

.nav-btn:hover::after {
  transform: translateX(180%) skewX(-18deg);
}

.nav-btn:hover::before {
  box-shadow: 0 0 24px 6px rgba(236, 100, 50, .18) inset;
}

.nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}

.nav-btn.is-accent {
  background: linear-gradient(180deg, var(--accent), #d95224);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(236, 100, 50, .35);
}

.nav-btn.is-accent:hover {
  box-shadow: 0 18px 30px rgba(236, 100, 50, .45);
}

@media (prefers-reduced-motion: reduce) {

  .nav-btn,
  .nav-btn::after {
    transition: none !important;
  }
}

/* -------------------------------------------------
   hero + portrait
------------------------------------------------- */
.hero {
  margin-top: 22px;
  padding: 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  padding: 28px;
}

.hero-inner::before {
  /* ambient accent glow */
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 70%;
  z-index: -1;
  background: radial-gradient(600px 380px at 85% 10%, rgba(236, 100, 50, .22), transparent 60%);
  filter: blur(20px);
}

@media (min-width:800px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 36px 36px 34px;
    gap: 32px;
  }
}

.hero-copy {
  align-self: center;
  padding: 6px 4px;
}

.eyebrow {
  font-family: "LeagueSpartan-Light";
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 8px;
}

.hero-title {
  font-family: "LeagueSpartan-Bold";
  font-size: clamp(30px, 6.4vw, 56px);
  line-height: 1.05;
  margin: 0 0 10px;
  text-wrap: balance;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.7;
  margin: 0 0 16px;
  text-wrap: balance;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cta.primary {
  background: linear-gradient(180deg, var(--accent), #d95224);
  color: #fff;
  box-shadow: 0 14px 28px rgba(236, 100, 50, .32);
}

.cta.primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 34px rgba(236, 100, 50, .42);
}

.cta.ghost {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--text);
}

.cta.ghost:hover {
  background: #1a1f2b;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chip {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
}

/* Portrait float animation */
.portrait {
  will-change: transform;
  animation: floaty 8s ease-in-out infinite;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 14px 0px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.portrait:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.01);
}

@keyframes floaty {
  0% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }

  100% {
    transform: translateY(0)
  }
}

/* -------------------------------------------------
   section — anchor offset for in-page scroll
------------------------------------------------- */
section {
  scroll-margin-top: 20px;
}

/* -------------------------------------------------
   .section — generic padded section panel
------------------------------------------------- */
.section {
  margin-top: 26px;
  padding: 22px;
}

/* -------------------------------------------------
   .section h3 — compact section headings
------------------------------------------------- */
.section h3 {
  margin: 0 0 14px 0;
  font-family: "LeagueSpartan-Bold";
  font-size: clamp(24px, 2.4vw, 30px);
  letter-spacing: 0.4px;
}

.section h3::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 8px;
  opacity: .9;
}

/* -------------------------------------------------
   .projects-grid — responsive 1→2 column grid
------------------------------------------------- */
.projects-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

/* -------------------------------------------------
   ≥640px: two columns for project cards
------------------------------------------------- */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------------------------------------------------
   .project-card — clickable image project tile
------------------------------------------------- */

/* --- Project filters --- */
.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 16px 0;
}

.filter-btn {
  appearance: none;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font: 700 16px/1 "LeagueSpartan-Regular", ui-sans-serif, system-ui;
  letter-spacing: .2px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .20);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.filter-btn:hover {
  transform: translateY(-1px);
  background: #1a1f2b;
  box-shadow: 0 12px 22px rgba(236, 100, 50, .20);
}

.filter-btn.is-active {
  background: linear-gradient(180deg, var(--accent), #d95224);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(236, 100, 50, .35);
}

/* Hide/show animation for filtered cards */
.project-card {
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.project-card.is-hidden {
  display: none;
}


/* Small category badge on cards */
.cats-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
  padding: 6px 8px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  font-size: 11px;
}

.project-card {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101522 center/cover no-repeat;
  min-height: 180px;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
  transition: transform .08s ease, box-shadow .2s ease, outline-color .2s ease;
  outline: 2px solid transparent;
}

/* -------------------------------------------------
   .project-card:hover — lift and accent outline
------------------------------------------------- */
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.40);
  outline-color: rgba(236, 100, 50, 0.5);
}

/* -------------------------------------------------
   .project-card .label — frosted caption badge
------------------------------------------------- */
.project-card .label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 8px 10px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}

/* -------------------------------------------------
   .links-wrap — stack social grid + other links
------------------------------------------------- */
.links-wrap {
  display: grid;
  gap: 16px;
}

/* -------------------------------------------------
   .social-grid — 5-up square icon grid
------------------------------------------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* -------------------------------------------------
   .icon-btn — square social icon button
------------------------------------------------- */
.icon-btn {
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: #101522;
  border: 1px solid var(--line);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
  transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}

/* -------------------------------------------------
   .icon-btn:hover — subtle hover lift
------------------------------------------------- */
.icon-btn:hover {
  transform: translateY(-1px);
  background: #151a27;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
}

/* -------------------------------------------------
   .icon-btn svg — icon size and color
------------------------------------------------- */
.icon-btn img {
  width: 80%;
  height: 80%;
}

/* -------------------------------------------------
   .other-links — text-only links list wrapper
------------------------------------------------- */
.other-links {
  margin-top: 6px;
  color: var(--text);
}

/* -------------------------------------------------
   .other-links a — accent-colored inline links
------------------------------------------------- */
.other-links a {
  color: var(--accent);
  text-decoration: underline;
  margin-left: 6px;
}

/* -------------------------------------------------
   .other-links ul — reset bullets for emoji
------------------------------------------------- */
.other-links ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

/* -------------------------------------------------
   .other-links li — spacing + left padding
------------------------------------------------- */
.other-links li {
  position: relative;
  padding-left: 1.6em;
  margin: 6px 0;
  color: var(--accent);
}

/* -------------------------------------------------
   .other-links li::before — ➡️ arrow bullets
------------------------------------------------- */
.other-links li::before {
  content: "➤";
  left: 0;
}

.ethanformat p {
  line-height: 1.8;
  margin: 0 20px 12px 20px;
}

.ethanformat .img-wide {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 14px 0px;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.ethanformat .img-half {
  display: block;
  width: min(55%, 680px);
  max-width: 100%;
  margin: 16px auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
}

/* --- New: Text alignment utilities for ABOUT --- */
.ethanformat.text-left,
.ethanformat .text-left {
  text-align: left;
}

.ethanformat.text-center,
.ethanformat .text-center {
  text-align: center;
}



/* --- New: Heading styles for ABOUT --- */
.ethanformat h2,
.ethanformat h4 {
  font-family: "LeagueSpartan-Bold";
  letter-spacing: .02em;
}

.ethanformat h2 {
  font-size: clamp(20px, 3.2vw, 24px);
  margin: 20px 0 20px 20px;
}

.ethanformat h4 {
  font-size: clamp(16px, 1.8vw, 20px);
  margin: 20px 20px 10px 20px;
  color: var(--muted);
}

@media (max-width:760px) {
  .ethanformat .img-half {
    width: 70%;
  }
}

@media (max-width:760px) {

  .float-right,
  .float-left {
    width: 48%;
  }

  .centered {
    width: 80%;
  }
}

/* -------------------------------------------------
   footer.site — compact footer layout
------------------------------------------------- */
footer.site {
  margin-top: 26px;
  padding: 18px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}

/* -------------------------------------------------
   a — global accent links
------------------------------------------------- */
a {
  color: var(--accent);
  text-decoration: none;
}