/* Private preview. Inter is SIL OFL. Tool icons: see /icons/LICENSE.txt. */

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #090909;
  --text: #f4f1eb;
  --muted: #c9c3b8;
  --line: rgba(244, 241, 235, 0.16);
  --accent: #c9844a;
  --sans: Inter, "Segoe UI", sans-serif;
  --page: 1180px;
  --gutter: clamp(1rem, 3vw, 1.75rem);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--bg); scroll-padding-top: 4.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 430;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  transform: translateY(-160%);
  z-index: 50;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  padding: 0.45rem 0.7rem;
}
.skip:focus { transform: none; }

.wrap {
  width: min(var(--page), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.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: sticky;
  top: 0;
  z-index: 20;
  background: #090909;
  border-bottom: 1px solid var(--line);
}
.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  border-bottom: 0;
}
.header-inner {
  width: min(1440px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 540;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand .role {
  margin-left: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 480;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.primary-nav, .mobile-nav nav { display: flex; gap: 1.2rem; align-items: center; }
.primary-nav a, .mobile-nav nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 540;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.primary-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.35em; }
.mobile-nav { display: none; }
.mobile-nav > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 540;
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav .when-open { display: none; }
.mobile-nav[open] .when-closed { display: none; }
.mobile-nav[open] .when-open { display: inline; }

@media (max-width: 720px) {
  .primary-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav nav { flex-direction: column; align-items: flex-end; padding-bottom: 0.6rem; }
  .mobile-nav nav a { font-size: 1.05rem; letter-spacing: 0; text-transform: none; }
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 34rem;
  background: #070707;
  overflow: hidden;
}
.hero-backdrop { display: none; }
.hero-subject,
.hero-subject picture,
.hero-subject img,
.hero-backdrop,
.hero-backdrop picture,
.hero-backdrop img {
  width: 100%;
  height: 100%;
}
.hero-subject img {
  object-fit: contain;
  object-position: center 46%;
  background: transparent;
}
@media (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .hero-subject img {
    object-fit: cover;
    object-position: center 42%;
    transform: none;
  }
}
@media (max-width: 899px) {
  /* Tall enough to feel like the first screen, short enough that the
     cover crop keeps the carriage, the Underwood plate, and the keys. */
  .hero {
    height: min(70svh, 152vw);
    min-height: 0;
  }
  .hero-backdrop { display: none; }
  .hero-subject,
  .hero-subject picture,
  .hero-subject img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-subject img {
    object-fit: cover;
    object-position: center 46%;
    transform: none;
  }
  .hero-scrim {
    height: 36%;
    background: linear-gradient(to top, #090909 0%, rgba(9, 9, 9, 0.55) 14%, transparent 100%);
  }
  .hero-copy { bottom: 3.5rem; }
  .hero-copy h1 { font-size: 1.75rem; }
  .scroll-cue { bottom: 0.55rem; }
  .collection { padding-top: 1.35rem; }
}
.hero-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  left: max(var(--gutter), calc((100% - 1440px) / 2));
  right: var(--gutter);
  bottom: 4.5rem;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero-copy .eyebrow {
  margin: 0.45rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #efe8de;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  color: var(--text);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: flex-end;
  gap: 0.45rem;
}
.scroll-cue::before {
  content: "";
  width: 1px;
  height: 2.2rem;
  background: currentColor;
  opacity: 0.7;
}

.collection { padding: 4.5rem 0 3rem; }
.collection h2 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 550;
  color: var(--muted);
}
.collection .pending {
  margin: 0 0 1.4rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem 1rem;
}
.work-link { display: block; text-decoration: none; color: inherit; }
.work-link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #111; }
.work-link h3 {
  margin: 0.55rem 0 0.15rem;
  font-size: 1.15rem;
  font-weight: 540;
  letter-spacing: -0.02em;
}
.work-link p { margin: 0; color: var(--muted); font-size: 0.84rem; }

.page { padding: 2.25rem 0 2.5rem; }
.piece-head, .compare-block, .gallery, #work, #software-heading, #experience-heading, #education-heading, #skills-heading {
  scroll-margin-top: 5.25rem;
}
.measure { width: min(42rem, 100%); margin-inline: auto; }
.kicker {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 550;
}
h1.page-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.lede { margin: 1rem 0 0; font-size: 1.05rem; }
.prose p { margin: 0.85rem 0 0; }
.group { margin-top: 2.4rem; }
.group h2 {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 560;
}
.entry {
  padding: 1rem 0 1rem 0.9rem;
  border-top: 1px solid var(--line);
  border-left: 2px solid rgba(201, 132, 74, 0.55);
}
.entry-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}
.entry h3 { margin: 0; font-size: 1.15rem; font-weight: 560; letter-spacing: -0.02em; }
.org { margin: 0.15rem 0 0; }
.when { margin: 0; color: var(--muted); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.entry ul { margin: 0.55rem 0 0; padding-left: 1.1rem; }
.entry li { margin: 0.28rem 0; }
.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}
.tools li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #141414;
}
.tool-icon, .tool-mark {
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
}
.tool-icon {
  background: var(--text);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.tool-mark { object-fit: contain; object-position: center; }
.tool-mark-plate {
  background: #f3efe8;
  border-radius: 4px;
  padding: 1px;
  box-sizing: border-box;
}
.tool-name { font-size: 0.95rem; }
.tool-note { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.82rem; }
.text-link { text-decoration: underline; text-underline-offset: 0.18em; }

.piece-head { margin-bottom: 1.2rem; }
.piece-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.piece-summary { margin: 0.55rem 0 0; max-width: 40rem; }
.tools-line { margin: 0.4rem 0 0; color: var(--muted); }
.pending-note { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.88rem; max-width: 42rem; }

.compare-block, .gallery { margin-top: 1.6rem; }
.compare-block h2, .gallery h2 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare {
  position: relative;
  margin-top: 0.8rem;
  background: #111;
  container-type: inline-size;
  touch-action: none;
}
.compare-base, .compare-top img { width: 100%; height: auto; }
.compare-top {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: calc(100% - var(--pos, 50%));
  overflow: hidden;
}
.compare-top img {
  position: absolute;
  top: 0;
  right: 0;
  width: 100cqi;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  appearance: none;
  cursor: ew-resize;
}
.compare-range::-webkit-slider-thumb { appearance: none; width: 44px; height: 44px; background: transparent; }
.compare-range::-moz-range-thumb { width: 44px; height: 44px; background: transparent; border: 0; }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos, 50%);
  width: 1px;
  background: #f4f1eb;
  transform: translateX(-50%);
  pointer-events: none;
}
.compare-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  border: 1px solid #f4f1eb;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.35);
}
.compare-label {
  position: absolute;
  top: 0.7rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  padding: 0.25rem 0.4rem;
  pointer-events: none;
}
.compare-label.left { left: 0.7rem; }
.compare-label.right { right: 0.7rem; }
.angles { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.angles button {
  width: 7.5rem;
  padding: 0;
  border: 1px solid var(--text);
  background: transparent;
  text-align: left;
  cursor: default;
}
.angles img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.angles span { display: block; padding: 0.3rem 0.4rem 0.4rem; font-size: 0.72rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}
.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: zoom-in;
  color: inherit;
}
.shot img { width: 100%; background: #111; }
.shot figcaption, .shot .cap {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.84rem;
}
.shot .kind { color: var(--muted); font-size: 0.75rem; }

.viewer { margin-top: 1.6rem; }
.viewer-label {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.viewer-stage { position: relative; aspect-ratio: 16 / 9; background: #141414; }
.viewer-launch, .viewer-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer-launch { padding: 0; background: #141414; cursor: pointer; }
.viewer-launch img { width: 100%; height: 100%; object-fit: contain; }
.viewer-cta {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}
.viewer-actions { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 0.55rem 0 0; }
.viewer-note { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.84rem; max-width: 42rem; }

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.pager a { text-decoration: none; }
.pager .next { text-align: right; }
.pager .dir {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pager .name { font-weight: 540; }
.pager .all {
  align-self: center;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.contact-page {
  min-height: calc(100svh - 3.25rem);
  display: flex;
  align-items: center;
  padding: 2.5rem 0 2rem;
  background:
    radial-gradient(ellipse 55% 48% at 78% 42%, rgba(201, 132, 74, 0.2), transparent 62%),
    radial-gradient(ellipse 40% 36% at 12% 78%, rgba(92, 48, 22, 0.45), transparent 70%),
    #0c0b0a;
}
body:has(.contact-page) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(.contact-page) .contact-page { flex: 1; }
body:has(.contact-page) .site-footer { margin-top: 0; }
.contact-layout {
  width: min(72rem, calc(100% - var(--gutter) * 2));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 24rem);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.invite .page-title { font-size: clamp(2.5rem, 5vw, 4.1rem); max-width: 12em; }
.invite .lede { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.card {
  border: 1px solid rgba(201, 132, 74, 0.72);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 28, 22, 0.96), rgba(16, 13, 11, 0.98));
  padding: 1.6rem 1.4rem 1.3rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}
.card-name { margin: 0; font-size: 1.65rem; font-weight: 560; letter-spacing: -0.03em; }
.card-role { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.email-row, .phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 132, 74, 0.38);
  background: rgba(0, 0, 0, 0.28);
  text-decoration: none;
}
.email { text-decoration: none; min-width: 0; overflow-wrap: normal; word-break: normal; font-weight: 560; font-size: 0.92rem; line-height: 1.35; }
.field-label { display: block; margin-bottom: 0.15rem; color: var(--accent); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 550; }
.copy-btn, .socials a, .cv-btn {
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
}
.copy-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: transparent;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.cv-btn {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 0.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--text);
  color: #16120e;
  font-weight: 640;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.cv-btn span { font-weight: 500; letter-spacing: 0.04em; opacity: 0.7; }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.7rem; }
.socials a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 241, 235, 0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 560;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  padding: 0.9rem 0 1.3rem;
}
.footer-inner {
  width: min(1440px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem 1.4rem;
  flex-wrap: wrap;
  font-size: 0.84rem;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: underline; text-underline-offset: 0.16em; }
.muted { color: var(--muted); }

.lightbox {
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0.6rem;
  border: 1px solid var(--line);
  background: #0c0c0c;
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lightbox-img { width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; background: #111; }
.lightbox-bar { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; margin-top: 0.45rem; }
.lightbox-bar button {
  min-height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}
.lightbox-cap { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.86rem; }

@media (max-width: 800px) {
  .work-grid, .gallery-grid, .contact-layout, .tools { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .entry-head { display: grid; }
  .hero { height: min(70svh, 152vw); min-height: 0; }
  .hero-subject img { object-fit: cover; object-position: center 46%; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(10px); }
  .js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }
  body.is-leaving main, body.is-leaving .hero { opacity: 0; transition: opacity 0.18s ease; }
  .work-link img { transition: opacity 0.25s ease; }
  .work-link:hover img { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .home .site-header { background: var(--bg); }
}
@media (forced-colors: active) {
  .compare-handle, .tool-icon { background: CanvasText; }
}
