:root {
  color-scheme: dark;
  --bg: #111111;
  --panel: #1b1c1e;
  --panel-soft: #24262a;
  --text: #f2eee8;
  --muted: #b9b1a5;
  --line: #34363b;
  --accent: #d99a43;
  --accent-2: #67b7a4;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  --radius: 8px;
}

:root.light {
  color-scheme: light;
  --bg: #fbfaf7;
  --panel: #ffffff;
  --panel-soft: #f0eee9;
  --text: #171717;
  --muted: #6d675f;
  --line: #dad5cc;
  --accent: #a76220;
  --accent-2: #287b73;
  --shadow: 0 16px 34px rgba(43, 38, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  transition: background 180ms ease, color 180ms ease;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  max-width: min(360px, 34vw);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  text-decoration: none;
  white-space: normal;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 44px);
  font-size: 0.96rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  color: var(--text);
}

.theme-toggle,
.carousel-button,
.lightbox-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover,
.carousel-button:hover,
.lightbox-close:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.portfolio-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(32px, 8vw, 86px) clamp(14px, 4vw, 48px) 24px;
}

.project-carousel {
  display: grid;
  grid-auto-columns: clamp(170px, 23vw, 255px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  padding: 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.project-card {
  display: grid;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  scroll-snap-align: center;
  outline-offset: 5px;
}

.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.project-card:hover img,
.project-card:focus-visible img {
  transform: scale(1.035);
  border-color: var(--accent);
  filter: saturate(1.08);
}

.project-card span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.landing-space {
  min-height: 52vh;
  border-top: 1px solid var(--line);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-bottom: 18px;
  padding: 9px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.content-panel {
  max-width: 880px;
  padding: clamp(24px, 4vw, 42px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-panel.narrow {
  max-width: 680px;
}

.commissions-panel {
  max-width: 1040px;
}

.commission-header {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-jump-nav {
  position: sticky;
  top: 72px;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0 18px;
  margin-bottom: 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.section-jump-nav a {
  padding: 8px 11px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.section-jump-nav a:hover,
.section-jump-nav a:focus-visible {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.commission-section {
  scroll-margin-top: 156px;
  padding-top: 28px;
  margin-top: 18px;
}

.commission-section h2 {
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.process-list {
  margin: 18px 0 0;
  padding-left: 22px;
}

.package-flow,
.faq-list {
  display: grid;
  gap: 14px;
}

.package-flow article,
.faq-list article,
.commission-card {
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.subsection-title {
  margin: 30px 0 14px;
  color: var(--text);
}

.commission-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature-card {
  max-width: 520px;
}

.compact-list {
  gap: 6px;
  margin-bottom: 0;
}

.pricing-table {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pricing-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.pricing-row:last-child {
  border-bottom: 0;
}

.pricing-row span:last-child {
  color: var(--accent);
  font-weight: 800;
  text-align: right;
}

.pricing-head {
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 800;
}

.pricing-head span:last-child {
  color: var(--text);
}

.resume-panel {
  max-width: 980px;
}

.resume-header {
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resume-title {
  margin-bottom: 6px;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
}

.resume-contact a {
  color: var(--accent);
  text-decoration: none;
}

.resume-contact a:hover,
.resume-contact a:focus-visible {
  text-decoration: underline;
}

.resume-section {
  padding-top: 4px;
  margin-top: 30px;
}

.resume-section h2 {
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.resume-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.resume-skill-grid article {
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.resume-skill-grid p,
.toolkit-list p,
.education-list p {
  margin-bottom: 0;
}

.toolkit-list,
.education-list {
  display: grid;
  gap: 12px;
}

.resume-job {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.resume-job:last-child {
  border-bottom: 0;
}

.job-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.job-heading h3 {
  margin-bottom: 0;
  color: var(--text);
}

.job-heading span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

h3 {
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 1rem;
}

p {
  color: var(--muted);
}

.clean-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.price-grid,
.work-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.price-card {
  padding: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-links a {
  padding: 14px 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  border-color: var(--accent);
}

.project-hero {
  display: grid;
  gap: 22px;
}

.hero-image,
.gallery-grid img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-image {
  max-height: 74vh;
  object-fit: contain;
  background: var(--panel);
}

.gallery-grid img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-break {
  margin: clamp(32px, 7vw, 72px) 0 24px;
  border: 0;
  border-top: 1px solid var(--line);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.86);
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 84vh;
  border-radius: var(--radius);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand {
    grid-column: 1;
    max-width: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .portfolio-strip {
    grid-template-columns: 1fr;
  }

  .carousel-button {
    display: none;
  }

  .project-carousel {
    grid-auto-columns: min(74vw, 260px);
    padding-inline: 2px;
  }

  .content-panel {
    padding: 22px;
  }

  .section-jump-nav {
    position: static;
  }

  .pricing-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .job-heading {
    display: grid;
    gap: 4px;
  }

  .job-heading span {
    font-size: 0.88rem;

}
}
