:root {
  --bg: #0a0a0a;
  --surface: #111;
  --surface-2: #171717;
  --text: #f5f5f2;
  --muted: #a7a7a2;
  --line: #2b2b2b;
  --accent: #f5f5f2;
  --max: 1500px;
  --pad: clamp(20px, 4vw, 72px);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: #fff; color: #000; }

.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;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; background: #fff; color: #000;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h); display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 36px; padding: 0 var(--pad);
  border-bottom: 1px solid transparent; transition: background .25s, border-color .25s;
}
.site-header.is-scrolled { background: rgba(10,10,10,.88); backdrop-filter: blur(18px); border-color: var(--line); }
.wordmark { font-size: 25px; font-weight: 900; letter-spacing: -.06em; }
.wordmark-dot { color: #777; }
.desktop-nav { display: flex; justify-content: center; gap: 30px; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.desktop-nav a, .header-cta { color: var(--muted); transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .header-cta:hover, .header-cta:focus-visible { color: #fff; }
.header-cta { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; padding: 11px 14px; border: 1px solid #555; }
.menu-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: #fff; }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 99; padding: 40px var(--pad); background: #0a0a0a; }
.mobile-menu a { display: block; padding: 16px 0; font-size: clamp(25px, 8vw, 50px); font-weight: 800; border-bottom: 1px solid var(--line); }

main { overflow: clip; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero {
  min-height: 100svh; padding: calc(var(--header-h) + 72px) var(--pad) 90px;
  max-width: 980px; margin: auto; display: grid; grid-template-columns: 1fr;
  place-items: center; position: relative; text-align: center;
}
.hero-simple { max-width: 860px; display: flex; flex-direction: column; align-items: center; }
.hero-avatar {
  width: 176px;
  height: 176px;
  min-width: 176px;
  min-height: 176px;
  flex: 0 0 176px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  border: 1px solid var(--line);
  margin-bottom: 26px;
  box-shadow: 0 0 0 10px rgba(255,255,255,.02);
}
.hero .eyebrow { margin-bottom: 14px; }
.hero h1 { margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; letter-spacing: -.055em; font-weight: 800; }
.hero-intro { max-width: 760px; margin: 18px auto 0; color: #d0d0cc; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid #555; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.button-primary { background: #fff; color: #000; border-color: #fff; }
.button-primary:hover { background: #cfcfcb; border-color: #cfcfcb; }
.button-secondary:hover { border-color: #fff; }
.hero-actions { justify-content: center; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 24px; padding: 0; margin: 42px 0 0; list-style: none; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta li::before { content: "·"; color: #fff; margin-right: 10px; }
.hero-image { min-height: 58vh; max-height: 770px; background: #060606; border: 1px solid var(--line); }
.hero-image img { width: 100%; height: 100%; min-height: inherit; max-height: inherit; object-fit: contain; }
.hero-index { position: absolute; right: var(--pad); bottom: 20px; margin: 0; color: #777; font-size: 11px; letter-spacing: .15em; }

.image-button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #101010; overflow: hidden; cursor: zoom-in; }
.image-button img { width: 100%; height: 100%; object-fit: contain; transition: transform .55s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.image-button:hover img { transform: scale(1.015); opacity: .92; }
.image-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.image-hint { position: absolute; right: 12px; bottom: 12px; padding: 7px 9px; background: rgba(0,0,0,.75); color: #fff; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; opacity: 0; transform: translateY(5px); transition: .2s; }
.image-button:hover .image-hint, .image-button:focus-visible .image-hint { opacity: 1; transform: none; }

.work, .experience, .contact { max-width: var(--max); margin: 0 auto; padding: clamp(85px, 11vw, 170px) var(--pad); }
.section-heading { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(320px,1.2fr); column-gap: 8vw; align-items: end; margin-bottom: clamp(70px, 9vw, 130px); }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2, .section-divider h2, .contact h2 { margin: 0; font-size: clamp(46px, 6.7vw, 112px); line-height: .93; letter-spacing: -.06em; }
.section-heading > p:last-child { max-width: 600px; margin: 0 0 7px; color: var(--muted); font-size: 18px; }
.work-heading { grid-template-columns: 1fr; row-gap: 14px; align-items: start; margin-bottom: clamp(50px, 6vw, 76px); }
.work-heading h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; }
.work-heading > p:last-child { max-width: 760px; margin: 0; font-size: 17px; }
.section-heading-compact { grid-template-columns: 1fr; row-gap: 10px; align-items: start; margin-bottom: 42px; }
.section-title-small { margin: 0; font-size: clamp(28px, 3.2vw, 40px) !important; line-height: 1.08 !important; letter-spacing: -.035em !important; }

.project { padding: clamp(60px,8vw,115px) 0; border-top: 1px solid var(--line); }
.project-header { display: grid; grid-template-columns: minmax(330px,1fr) minmax(290px,.72fr); gap: 7vw; margin-bottom: clamp(34px,5vw,70px); }
.project-number { margin: 0 0 14px; color: #737373; font-size: 12px; font-weight: 700; letter-spacing: .17em; }
.project h3 { margin: 0; font-size: clamp(34px, 4vw, 68px); line-height: 1; letter-spacing: -.045em; }
.project-summary { max-width: 600px; margin: 9px 0 0; color: #b8b8b2; font-size: clamp(16px,1.3vw,20px); }
.sculpt-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(12px,1.7vw,26px); }
.sculpt-card { margin: 0; }
.sculpt-card .image-button { aspect-ratio: 1.42; border: 1px solid var(--line); }
.sculpt-card figcaption { display: flex; justify-content: space-between; gap: 15px; padding-top: 14px; font-size: 13px; }
.sculpt-card figcaption small { color: var(--muted); text-align: right; }
.project-meta { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; margin: 44px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.project-meta.compact { grid-template-columns: repeat(3,1fr); }
.project-meta dt { color: #777; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.project-meta dd { margin: 7px 0 0; color: #dededa; font-size: 13px; }
.media-grid { display: grid; gap: clamp(12px,1.7vw,26px); }
.media-grid-two { grid-template-columns: repeat(2,1fr); }
.media-frame { aspect-ratio: 16/10; border: 1px solid var(--line); }
.detail-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 10px; }
.detail-strip .image-button { aspect-ratio: 4/3; border: 1px solid var(--line); }
.wide-media { aspect-ratio: 2.54/1; border: 1px solid var(--line); }
.turnaround-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 10px; }
.turnaround-grid .image-button { aspect-ratio: 4.8/1; border: 1px solid var(--line); }
.section-divider { padding: clamp(90px,13vw,190px) 0 clamp(55px,8vw,105px); border-top: 1px solid var(--line); }
.lamp-layout { grid-template-columns: 1.1fr .9fr; grid-template-rows: repeat(2,minmax(240px,1fr)); }
.lamp-layout .lamp-hero { grid-row: 1/3; aspect-ratio: auto; min-height: 680px; }
.lamp-layout .media-frame:not(.lamp-hero) { aspect-ratio: auto; min-height: 327px; }
.zombie-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 18px; }
.zombie-hero { aspect-ratio: .86; border: 1px solid var(--line); }
.zombie-turnarounds { display: grid; gap: 18px; }
.zombie-turnarounds .image-button { aspect-ratio: 2.65; border: 1px solid var(--line); }
.industrial-grid { display: grid; grid-template-columns: .95fr repeat(3,.7fr); gap: 12px; align-items: stretch; }
.industrial-grid .image-button { min-height: 560px; border: 1px solid var(--line); }
.industrial-grid .image-button img { object-fit: contain; }
.industrial-valve { background: #414141; }
.detail-pair { margin-top: 12px; }

.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; border-top: 1px solid var(--line); }
.about-intro .eyebrow { margin-bottom: 26px; }
.about-copy { padding-top: 45px; }
.about-copy p { color: #b8b8b2; font-size: clamp(16px,1.3vw,20px); }
.about-copy .about-lead { color: #fff; font-size: clamp(24px,2.2vw,38px); line-height: 1.25; letter-spacing: -.025em; }
.skills { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 60px; padding-top: 45px; border-top: 1px solid var(--line); }
.skills h3 { margin: 0 0 18px; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
.skills ul { margin: 0; padding: 0; list-style: none; color: #aaa; }
.skills li { padding: 7px 0; border-bottom: 1px solid #1d1d1d; }
.experience { border-top: 1px solid var(--line); }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: .65fr 1.35fr; gap: 7vw; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline-date { margin: 5px 0 0; color: #777; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.timeline-item h3 { margin: 0; font-size: clamp(22px,2vw,32px); }
.timeline-item p:last-child { max-width: 760px; color: var(--muted); }
.contact { min-height: 72svh; display: flex; flex-direction: column; justify-content: center; border-top: 1px solid var(--line); }
.contact h2 { max-width: 1250px; }
.contact-title { max-width: 980px !important; font-size: clamp(34px, 4.2vw, 60px) !important; line-height: 1.04 !important; letter-spacing: -.05em !important; }
.contact-email { width: fit-content; margin-top: 38px; color: #aaa; font-size: clamp(18px,2.4vw,34px); border-bottom: 1px solid #555; transition: color .2s, border-color .2s; }
.contact-email:hover { color: #fff; border-color: #fff; }
.site-footer { max-width: var(--max); margin: auto; display: flex; justify-content: space-between; padding: 28px var(--pad); color: #777; border-top: 1px solid var(--line); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a:hover { color: #fff; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 28px; border: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.94); }
.lightbox img { max-width: calc(100vw - 56px); max-height: calc(100vh - 105px); object-fit: contain; }
.lightbox p { margin: 13px 0 0; color: #aaa; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.lightbox-close { position: fixed; right: 20px; top: 14px; z-index: 2; width: 50px; height: 50px; border: 0; background: transparent; font-size: 42px; line-height: 1; cursor: pointer; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  :root { --header-h: 66px; }
  .site-header { grid-template-columns: auto 1fr auto; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: block; justify-self: end; }
  .hero { grid-template-columns: 1fr; align-content: center; padding-top: calc(var(--header-h) + 52px); }
  .hero-avatar { width: 140px; height: 140px; min-width: 140px; min-height: 140px; flex-basis: 140px; }
  .section-heading, .project-header { grid-template-columns: 1fr; }
  .section-heading h2 { margin-bottom: 25px; }
  .about-copy { padding-top: 0; }
  .sculpt-grid { grid-template-columns: 1fr; }
  .sculpt-card .image-button { aspect-ratio: 1.55; }
  .project-meta, .project-meta.compact { grid-template-columns: repeat(2,1fr); }
  .industrial-grid { grid-template-columns: repeat(3,1fr); }
  .industrial-grid .industrial-valve { grid-column: 1/-1; min-height: 500px; }
}

@media (max-width: 680px) {
  .hero { padding-bottom: 72px; }
  .hero h1 { font-size: clamp(34px,11vw,50px); }
  .hero-meta { display: grid; }
  .section-heading h2, .section-divider h2, .contact h2 { font-size: clamp(40px,13vw,70px); }
  .media-grid-two, .turnaround-grid, .skills, .timeline-item { grid-template-columns: 1fr; }
  .detail-strip { grid-template-columns: repeat(2,1fr); }
  .lamp-layout { grid-template-columns: 1fr; grid-template-rows: none; }
  .lamp-layout .lamp-hero { grid-row: auto; min-height: 450px; }
  .lamp-layout .media-frame:not(.lamp-hero) { min-height: 240px; }
  .wide-media { aspect-ratio: 1.6; }
  .turnaround-grid .image-button { aspect-ratio: 2.7; }
  .zombie-layout { grid-template-columns: 1fr; }
  .zombie-hero { aspect-ratio: .9; }
  .industrial-grid { grid-template-columns: 1fr; }
  .industrial-grid .image-button, .industrial-grid .industrial-valve { min-height: 520px; grid-column: auto; }
  .project-meta, .project-meta.compact { grid-template-columns: 1fr; }
  .project-meta div { padding-bottom: 12px; border-bottom: 1px solid #1d1d1d; }
  .contact-actions .button { width: 100%; }
  .site-footer { gap: 20px; flex-direction: column; }
  .lightbox { padding: 14px; }
  .lightbox img { max-width: calc(100vw - 28px); max-height: calc(100vh - 90px); }
}

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

/* Added character and environment work */
.section-divider-compact {
  padding: clamp(72px, 9vw, 120px) 0 clamp(38px, 5vw, 64px);
}
.section-divider-compact h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.character-concept-hero {
  border: 1px solid var(--line);
  background: #777;
}
.character-concept-hero img {
  height: auto;
  max-height: 880px;
  object-fit: contain;
}
.stylized-character-renders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 26px);
  margin-top: 0;
}
.portrait-media {
  aspect-ratio: 1293 / 2048;
  max-height: 980px;
  border: 1px solid var(--line);
  background: #090909;
}
.portrait-media img { object-fit: contain; }

.environment-stack {
  display: grid;
  gap: clamp(14px, 2vw, 28px);
}
.wide-environment,
.stylized-environment-hero {
  border: 1px solid var(--line);
  background: #0d0d0d;
}
.wide-environment img,
.stylized-environment-hero img {
  height: auto;
  object-fit: contain;
}
.stylized-environment-secondary {
  margin-top: clamp(12px, 1.7vw, 26px);
}
.stylized-environment-pair {
  display: grid;
  grid-template-columns: 1.28fr .72fr;
  gap: clamp(12px, 1.7vw, 26px);
  margin-top: clamp(12px, 1.7vw, 26px);
  align-items: stretch;
}
.stylized-environment-pair .image-button {
  min-height: clamp(360px, 45vw, 720px);
  border: 1px solid var(--line);
  background: #0d0d0d;
}
.stylized-environment-pair img {
  height: 100%;
  object-fit: contain;
}

@media (max-width: 760px) {
  .stylized-character-renders,
  .stylized-environment-pair {
    grid-template-columns: 1fr;
  }
  .portrait-media { max-height: none; }
  .stylized-environment-pair .image-button { min-height: 0; }
  .stylized-environment-pair img { height: auto; }
}
