:root {
  color-scheme: dark;
  --bg: #070b0f;
  --panel: #101820;
  --panel-2: #16212b;
  --text: #edf4f7;
  --muted: #9fb0bd;
  --line: rgba(255, 255, 255, .12);
  --accent: #e65f2f;
  --accent-2: #f2b84b;
  --steel: #7fa2b8;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 10% 0%, rgba(230, 95, 47, .13), transparent 32%),
    linear-gradient(180deg, #070b0f 0%, #0c1218 38%, #070b0f 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, textarea { font: inherit; }
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(7, 11, 15, .78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0; }
.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #111;
}
.site-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--text); }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: currentColor; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding: 140px clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 15, .94), rgba(7, 11, 15, .62) 48%, rgba(7, 11, 15, .78)),
    linear-gradient(0deg, rgba(7, 11, 15, 1), transparent 38%);
}
.hero-bg { position: absolute; inset: 0; opacity: .78; }
.hero-content, .hero-panel { position: relative; z-index: 1; }
.hero-content { max-width: 820px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(48px, 8vw, 108px); line-height: .9; letter-spacing: 0; }
h2 { margin: 0 0 18px; font-size: clamp(32px, 5vw, 62px); line-height: 1; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 20px; }
p { color: var(--muted); line-height: 1.7; }
.hero-lead { max-width: 720px; font-size: clamp(18px, 2vw, 24px); color: #d8e4eb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 18px;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--accent); color: #101820; border-color: var(--accent); }
.button.ghost { background: rgba(255,255,255,.06); color: var(--text); }
.button:hover { filter: brightness(1.08); }
.hero-panel {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: rgba(16, 24, 32, .78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-panel strong { font-size: 20px; }
.hero-panel span { color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }

.section { padding: 88px clamp(18px, 5vw, 72px); }
.section-heading { max-width: 860px; margin-bottom: 34px; }
.intro-grid, .split, .workshop {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.big-copy, .wide-copy { max-width: 980px; font-size: 19px; color: #d5e0e6; }
.stats {
  display: grid;
  gap: 14px;
}
.stats div, .skill-card, .project-card, .contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
}
.stats div { padding: 20px; }
.stats strong { display: block; margin-bottom: 8px; }
.stats span { color: var(--muted); }
.split-media, .workshop-media {
  min-height: 460px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.split-copy p { max-width: 720px; }
.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.skill-card { padding: 22px; min-height: 180px; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.project-card { overflow: hidden; }
.project-media { aspect-ratio: 4 / 3; background: var(--panel); }
.project-body { padding: 20px; }
.project-body span { display: block; margin-bottom: 10px; color: var(--accent-2); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }

.interests {
  background: linear-gradient(90deg, rgba(230,95,47,.08), rgba(127,162,184,.06));
  border-block: 1px solid var(--line);
}
.interest-track { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.interest-track span {
  border: 1px solid rgba(242,184,75,.36);
  color: #ffe1a3;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(242,184,75,.08);
  font-weight: 700;
}
.ai-software {
  background:
    radial-gradient(circle at 88% 10%, rgba(127,162,184,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.018), rgba(230,95,47,.035));
  border-block: 1px solid var(--line);
}
.ai-software .section-heading {
  max-width: 760px;
}
.ai-software .section-heading p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 8px;
  color: #c8d6df;
  font-size: 18px;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.ai-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(230,95,47,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: 0 18px 52px rgba(0,0,0,.22);
}
.ai-card span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.ai-card h3 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 46px);
}
.ai-card p {
  margin: 0;
  color: #d5e0e6;
  font-size: 17px;
}
.ai-card .button {
  margin-top: 4px;
}
.etsy-shop {
  background:
    radial-gradient(circle at 14% 16%, rgba(242,184,75,.12), transparent 34%),
    linear-gradient(135deg, rgba(230,95,47,.12), rgba(16,24,32,.72));
  border-block: 1px solid var(--line);
}
.etsy-card {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(242,184,75,.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    rgba(7,11,15,.58);
  box-shadow: 0 24px 80px rgba(0,0,0,.32);
}
.etsy-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.etsy-copy h2 {
  max-width: 780px;
  font-size: clamp(38px, 4.8vw, 58px);
  line-height: 1.02;
}
.etsy-copy p {
  max-width: 760px;
  color: #d5e0e6;
  font-size: 18px;
}
.etsy-lead {
  margin-top: 18px;
  font-size: 19px !important;
  color: #edf4f7 !important;
}
.etsy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 28px;
}
.etsy-tags span {
  border: 1px solid rgba(242,184,75,.34);
  border-radius: 999px;
  padding: 9px 12px;
  color: #ffe1a3;
  background: rgba(242,184,75,.08);
  font-size: 13px;
  font-weight: 800;
}
.etsy-button {
  font-size: 18px;
  padding: 16px 22px;
}
.etsy-media {
  position: relative;
  height: clamp(480px, 48vw, 640px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d141b;
}
.etsy-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,11,15,.02) 42%, rgba(7,11,15,.72));
  pointer-events: none;
}
.etsy-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.etsy-wordmark {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 12px 15px;
  border: 1px solid rgba(242,184,75,.38);
  border-radius: 8px;
  background: rgba(7,11,15,.78);
  color: #fff0c2;
  font-weight: 900;
  letter-spacing: .02em;
}
.resource-link-section {
  padding-block: 42px;
}
.resource-link {
  display: grid;
  gap: 7px;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.resource-link:hover {
  transform: translateY(-2px);
  border-color: rgba(242,184,75,.34);
  background: rgba(255,255,255,.055);
}
.resource-link span {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.resource-link strong {
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}
.resource-link p {
  max-width: 720px;
  margin: 0;
  color: #c8d6df;
}
.workshop-copy ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.workshop-copy li { padding-left: 20px; color: #d5e0e6; position: relative; }
.workshop-copy li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 1;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}
.gallery-item img { transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.album-section {
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(230,95,47,.055));
  border-block: 1px solid var(--line);
}
.album-layout {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: stretch;
  margin-bottom: 24px;
}
.album-copy {
  align-self: center;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7,11,15,.46);
}
.album-copy .button { display: inline-block; margin-top: 14px; }
.collage {
  min-height: 520px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
}
.collage-tile,
.album-item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: zoom-in;
}
.collage-tile img,
.album-item img {
  transition: transform .55s ease, filter .55s ease;
}
.collage-tile:hover img,
.album-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}
.tile-1 { grid-column: span 2; grid-row: span 2; }
.tile-2 { grid-column: span 2; grid-row: span 1; }
.tile-3 { grid-column: span 2; grid-row: span 2; }
.tile-4 { grid-column: span 2; grid-row: span 2; }
.tile-5 { grid-column: span 2; grid-row: span 2; }
.tile-6 { grid-column: span 2; grid-row: span 1; }
.tile-7 { grid-column: span 3; grid-row: span 1; }
.tile-8 { grid-column: span 3; grid-row: span 1; }
.album-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.album-item { aspect-ratio: 1; }
.album-item span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  border-radius: 8px;
  background: rgba(7,11,15,.76);
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
}
.contact { padding-bottom: 120px; }
.contact-card { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 44px); }
.contact-form { display: grid; gap: 14px; margin-top: 28px; }
label { display: grid; gap: 8px; color: #dce7ec; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  font: inherit;
}
.form-status { margin: 4px 0 0; color: var(--accent-2); }
.form-status a { color: var(--accent-2); font-weight: 900; }
.privacy-note { margin: 0; font-size: 14px; }
.privacy-note a { color: var(--accent-2); font-weight: 800; text-decoration: underline; }
.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}
button:disabled { opacity: .64; cursor: wait; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--text); }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.84);
}
.lightbox.open { display: grid; }
.lightbox[aria-hidden="true"] { display: none; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 36px;
  width: 52px;
  height: 52px;
  cursor: pointer;
}
.lightbox-open { overflow: hidden; }
.reveal-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal.visible { opacity: 1; transform: translateY(0); }

.legal-page {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 90px;
}
.legal-page header { margin-bottom: 42px; }
.legal-page h1 { font-size: clamp(42px, 8vw, 72px); }
.legal-page h2 { margin-top: 42px; font-size: 28px; }
.legal-page li { margin-block: 10px; color: var(--muted); line-height: 1.65; }
.legal-back { display: inline-flex; margin-bottom: 28px; color: var(--accent-2); font-weight: 800; }

@media (max-width: 980px) {
  .hero, .intro-grid, .split, .workshop { grid-template-columns: 1fr; }
  .hero { align-items: end; }
  .hero-panel { max-width: 520px; }
  .skill-grid, .project-grid, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-grid { grid-template-columns: 1fr; }
  .etsy-card { grid-template-columns: 1fr; }
  .etsy-media { height: 420px; }
  .album-layout { grid-template-columns: 1fr; }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .site-header { padding: 14px 18px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 67px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: rgba(12, 18, 24, .98);
    border: 1px solid var(--line);
    border-radius: 8px;
  }
  .site-nav.open { display: flex; }
  .hero { min-height: 92svh; padding-top: 110px; }
  h1 { font-size: 52px; }
  h2 { font-size: 34px; }
  .section { padding-block: 64px; }
  .skill-grid, .project-grid, .gallery { grid-template-columns: 1fr; }
  .collage {
    min-height: auto;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .collage-tile { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etsy-card { padding: 20px; }
  .etsy-copy h2 { font-size: 38px; }
  .etsy-copy p, .etsy-lead { font-size: 16px !important; }
  .etsy-media { height: 320px; }
  .split-media, .workshop-media { min-height: 320px; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
