/* Immersive editorial direction. Wedding colors remain scoped in styles.css. */
:root {
  --ink: #242823;
  --ink-soft: #30362f;
  --paper: #f4f1e9;
  --paper-soft: #e7e3d8;
  --acid: #e2c7a3;
  --orange: #ad492c;
  --violet: #dadfd3;
  --display: "DM Sans", sans-serif;
  --shell: min(1280px, calc(100% - 80px));
}
html { background: var(--paper); scrollbar-gutter: stable; overflow-y: scroll; }
body { background: var(--paper); }
body.page-scroll-locked {
  position: fixed;
  top: var(--locked-scroll-top, 0px);
  right: 0;
  left: 0;
  overflow: hidden;
}
.site-header, .site-header.is-scrolled {
  min-height: 76px;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line-dark);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-inline: max(40px, calc((100vw - 1280px) / 2));
}
.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--orange);
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}
.site-nav > a:not(.nav-cta) { color: var(--ink); }
.site-nav > a:not(.nav-cta):hover, .site-nav > a:not(.nav-cta):focus-visible { color: var(--orange); }
.site-nav > a[aria-current="location"] { color: var(--orange); }
.site-nav > a:not(.nav-cta)::after { background: var(--orange); }
.site-nav > a[aria-current="location"]::after { transform: scaleX(1); }
.nav-cta, .menu-toggle { border-color: var(--line-dark); }
.brand-name { letter-spacing: -.035em; }
.hero {
  min-height: 100svh;
  background: #18201b;
  color: var(--paper);
  isolation: isolate;
}
.hero::before { opacity: .035; z-index: -1; }
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(226, 199, 163, .04) 1px, transparent 1px);
  background-size: 120px 100%;
  mask-image: linear-gradient(to right, transparent, #000);
}
.hero-ambient {
  position: absolute;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(182, 130, 82, .27), transparent 43%),
    radial-gradient(ellipse at 14% 85%, rgba(98, 128, 100, .16), transparent 35%);
  transform: translate3d(var(--ambient-x, 0px), var(--ambient-y, 0px), 0);
  transition: transform 1.2s ease;
}
.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: calc(100svh - 163px);
  gap: clamp(40px, 6vw, 86px);
  padding-block: clamp(64px, 8vh, 110px);
  align-items: center;
}
.eyebrow { color: #686a61; font-size: 10px; letter-spacing: .13em; margin-bottom: 28px; }
.hero .eyebrow { color: var(--acid); font-size: 11px; letter-spacing: .16em; margin-bottom: 30px; }
.hero h1 { font-size: clamp(5.6rem, 9.2vw, 9.2rem); line-height: .9; letter-spacing: -.065em; text-transform: none; }
.hero h1 em, .hero h1 em:last-child { font-size: 1em; color: var(--acid); letter-spacing: -.055em; }
.hero-intro { color: #c2c8bc; max-width: 440px; font-size: 18px; line-height: 1.65; margin-top: 30px; }
.hero-actions { gap: 24px; margin-top: 28px; }
.button-primary { background: var(--ink); color: var(--white); box-shadow: none; }
.button-primary:hover, .button-primary:focus-visible, .button-dark, .button-dark:hover, .button-dark:focus-visible { box-shadow: none; }
.hero .button-primary { background: var(--acid); color: #18201b; }
.hero .button-primary:hover, .hero .button-primary:focus-visible { background: var(--paper); }
.text-link { color: var(--ink); border-color: #989a8f; }
.text-link:hover, .text-link:focus-visible { color: var(--orange); border-color: var(--orange); }
.hero .text-link { color: var(--paper); border-color: #626e60; }
.hero .text-link:hover, .hero .text-link:focus-visible { color: var(--acid); border-color: var(--acid); }
.hero-meta { margin-top: 42px; border-color: rgba(244, 241, 233, .16); gap: 26px; }
.hero-meta span { color: #aab4a5; font-size: 9px; letter-spacing: .035em; }
.hero-meta strong { font-size: 24px; font-weight: 500; }
.hero-visual.field-notes { width: 100%; margin: 0; perspective: none; }
.field-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(244, 241, 233, .22);
  margin-bottom: 30px;
  color: #b9c2b4;
  font-size: 10px;
  letter-spacing: .08em;
}
.field-stage {
  padding: 14px 4px 20px;
  translate: 0 var(--hero-drift, 0px);
  transform: perspective(1100px) rotateX(var(--scene-rx, 0deg)) rotateY(var(--scene-ry, 0deg));
  transition: transform .7s var(--ease);
}
.field-notes a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 233, .23);
  border-radius: 6px;
  background: #253029;
  box-shadow: 0 24px 65px rgba(0, 0, 0, .24);
  transition: transform .6s var(--ease), box-shadow .6s ease;
}
.field-notes img { width: 100%; object-fit: cover; transition: filter .4s ease; }
.field-feature {
  width: 96%;
  margin-left: auto;
  transform: rotate(-3deg);
  position: relative;
}
.field-feature img { aspect-ratio: 16 / 9; height: auto; }
.field-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 8px 12px;
  background: var(--paper);
  color: #595f53;
  font-size: 9px;
}
.field-window-bar > span:first-child { display: flex; gap: 4px; }
.field-window-bar i { width: 5px; height: 5px; border-radius: 50%; background: #a9ac9d; }
.field-window-bar b { font-size: 13px; font-weight: 400; }
.field-caption { display: flex; justify-content: space-between; gap: 12px; padding: 15px; font-size: 11px; }
.field-caption b { font-weight: 500; }
.field-caption i, .field-pair i { font-style: normal; color: #b9c2b4; font-size: 9px; }
.field-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  width: 92%;
  margin-top: -8px;
}
.field-pair a:first-child { transform: rotate(3deg); }
.field-pair a:last-child { transform: translateY(24px) rotate(-4deg); }
.field-pair img { height: auto; aspect-ratio: 16 / 10; }
.field-pair a > span { display: grid; gap: 3px; padding: 12px; font-size: 11px; }
.field-pair b { font-weight: 500; }
.hero-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 87px;
  padding-block: 22px;
  border-top: 1px solid rgba(244, 241, 233, .16);
  color: #b9c2b4;
  font-size: 11px;
}
.hero-location { display: flex; align-items: center; gap: 12px; margin: 0; }
.hero-location > span { width: 6px; height: 6px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(226, 199, 163, .08); }
.scroll-cue { display: inline-flex; align-items: center; gap: 16px; }
.scroll-cue > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(244, 241, 233, .3); border-radius: 50%; font-size: 18px; transition: transform .3s ease; }
.scroll-cue:hover > span { transform: translateY(4px); }
.work-section { border-top: 1px solid var(--line-dark); padding-block: 100px; overflow-anchor: none; }
.section-head h2, .expertise-intro h2, .system-copy h2, .about-copy h2, .contact-inner h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 4.4vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.06;
}
.section-head { gap: 40px; }
.section-head-side > p { font-size: 15px; }
.filter-button { border-radius: 0; border: 0; border-bottom: 1px solid transparent; padding: 8px 10px; letter-spacing: .04em; }
.filter-button:hover, .filter-button:focus-visible, .filter-button.is-active { background: transparent; color: var(--orange); border-bottom-color: var(--orange); }
.filter-button:active { transform: none; }
.work-grid { row-gap: 64px; }
.project-info h3 { letter-spacing: -.045em; }
.project-media, .project-card:hover .project-media { box-shadow: none; }
.expertise-section { background: var(--ink); }
.tool-belt span, .system-tags span { border-radius: 0; }
.system-section { background: #e3e7df; }
.system-sites { padding-block: 14px; }
.system-site-window, .system-site:nth-child(2) .system-site-window {
  border-color: #3d493d;
  border-radius: 8px;
  box-shadow: 0 22px 38px rgba(36, 40, 35, .18);
  transform: rotate(-2deg);
  transition: transform .6s var(--ease), box-shadow .6s ease;
}
.system-site:nth-child(2) .system-site-window { transform: rotate(2deg); }
.system-site-info > a:hover, .system-site-info > a:focus-visible { color: var(--orange); }
.about-section { background: #e9e2d5; }
.about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
.about-image-wrap { min-height: 0; aspect-ratio: 1 / 1; box-shadow: none; background: #fff; border: 0; }
.about-image-wrap img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-big-type { display: none; }
.metrics strong { font-family: Georgia, serif; font-weight: 400; }
.contact-section {
  background: radial-gradient(ellipse at 85% 90%, #445341 0%, transparent 55%), #18201b;
  padding-block: 110px 90px;
}
.contact-noise { display: none; }
.contact-inner h2 { max-width: 860px; }
.contact-email { font-size: clamp(1.6rem, 3vw, 3rem); margin-top: 44px; }
.reveal { opacity: 1; transform: none; transition: none; }
.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .75, .25, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .project-card:not(.is-visible) .project-media > img:not([data-drift-media]) { transform: scale(1.025); }
.immersion-enabled [data-drift-media] { translate: 0 var(--media-drift, 0px); transform: scale(1.075); }
/* Keep gallery geometry independent of the next image's intrinsic dimensions. */
.modal-media:not(.is-video) { min-height: 650px; }
.modal-media:not(.is-video) > img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; }
.modal-media.is-video > img, .modal-media.is-video > iframe { grid-area: 1 / 1; }
.project-modal[open] { animation-name: modal-fade-in; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.about-trail-grid a[data-trail-photo] { position: relative; }
.about-trail-grid a[data-trail-photo]::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(244, 241, 233, .45);
  background: rgba(24, 32, 27, .72);
  color: var(--paper);
  content: "View photo ↗";
  font-size: 11px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.about-trail-grid a:hover::after, .about-trail-grid a:focus-visible::after { opacity: 1; transform: none; }
body.photo-open { overflow: hidden; }
.trail-viewer:not([open]) { display: none; }
.trail-viewer {
  width: min(1180px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(244, 241, 233, .16);
  background: #18201b;
  color: var(--paper);
}
.trail-viewer::backdrop { background: rgba(7, 12, 9, .93); }
.trail-viewer-shell { padding: 16px 24px 20px; }
.trail-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.trail-viewer-header p { margin: 0; color: #c2c8bc; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.trail-viewer button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(244, 241, 233, .28);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  font-size: 21px;
  transition: background .25s ease, color .25s ease;
}
.trail-viewer-header button { font-size: 29px; }
.trail-viewer button:hover { background: var(--acid); color: var(--ink); }
.trail-viewer figure { margin: 0; }
.trail-viewer figure > img { width: 100%; height: max(100px, calc(100dvh - 220px)); object-fit: contain; background: #121a15; }
.trail-viewer figcaption { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; }
.trail-viewer-controls { display: flex; align-items: center; gap: 20px; }
.trail-viewer-controls p { display: grid; gap: 3px; min-width: 180px; margin: 0; }
.trail-viewer-controls p span { color: #b9c2b4; font-size: 10px; letter-spacing: .1em; }
.trail-viewer-controls p strong { font-size: 15px; font-weight: 500; }
.trail-viewer figcaption > a { color: var(--acid); font-size: 11px; }
.trail-viewer figcaption > a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid #ad492c; outline-offset: 5px; }
.hero a:focus-visible, .trail-viewer :focus-visible { outline-color: var(--acid); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .field-notes a:hover, .field-notes a:focus-visible { border-color: var(--acid); box-shadow: 0 24px 65px rgba(0, 0, 0, .35); }
  .field-notes a:hover img, .field-notes a:focus-visible img { filter: brightness(1.06); }
  .system-site-window:hover, .system-site-window:focus-within { box-shadow: 0 30px 50px rgba(36, 40, 35, .22); }
  .immersion-enabled .project-card:hover [data-drift-media], .immersion-enabled .about-trail-grid a:hover [data-drift-media] { transform: scale(1.105); }
}
@media (max-width: 960px) {
  :root { --shell: calc(100% - 48px); }
  .site-header { padding-inline: 24px; }
  .site-nav { background: var(--paper); color: var(--ink); justify-content: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding-block: 64px 48px; }
  .hero-copy { max-width: 640px; }
  .hero-intro { max-width: 550px; }
  .hero-visual.field-notes { max-width: 680px; margin-inline: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { min-height: 0; }
  .modal-media:not(.is-video) { min-height: min(58svh, 620px); }
}
@media (max-width: 680px) {
  :root { --shell: calc(100% - 36px); }
  .site-header, .site-header.is-scrolled { min-height: 66px; padding-inline: 18px; }
  .hero h1 { font-size: clamp(4.7rem, 20vw, 7rem); }
  .hero .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .hero-intro { font-size: 16px; }
  .hero-meta { gap: 12px; margin-top: 34px; }
  .hero-meta span { font-size: 8px; }
  .hero-actions { flex-direction: row; align-items: center; }
  .field-caption { flex-direction: column; gap: 3px; padding: 12px; }
  .field-heading { font-size: 9px; margin-bottom: 16px; }
  .field-stage { padding-inline: 8px; }
  .field-pair { gap: 12px; width: 95%; margin-top: 4px; }
  .field-pair a > span { padding: 10px; font-size: 10px; }
  .field-pair i { font-size: 8px; }
  .hero-bottom { gap: 16px; font-size: 9px; min-height: 76px; }
  .hero-location { gap: 9px; }
  .scroll-cue { gap: 8px; }
  .scroll-cue > span { width: 28px; height: 28px; }
  .work-section, .expertise-section, .system-section, .about-section { padding-block: 64px; }
  .section-head h2, .expertise-intro h2, .system-copy h2, .about-copy h2, .contact-inner h2 { font-size: clamp(2.5rem, 10vw, 3.6rem); }
  .system-site-window, .system-site:nth-child(2) .system-site-window { transform: none; }
  .about-trail-grid a[data-trail-photo]::after { right: 10px; bottom: 10px; padding: 6px 8px; font-size: 9px; opacity: 1; transform: none; }
  .trail-viewer-shell { padding: 12px; }
  .trail-viewer-header { gap: 8px; }
  .trail-viewer-header p { font-size: 8px; }
  .trail-viewer figcaption { flex-direction: column; align-items: stretch; gap: 14px; }
  .trail-viewer-controls { justify-content: space-between; gap: 10px; }
  .trail-viewer-controls p { min-width: 0; text-align: center; }
  .trail-viewer-controls p strong { font-size: 13px; }
  .trail-viewer figcaption > a { align-self: center; }
  .trail-viewer figure > img { height: max(100px, calc(100dvh - 230px)); }
  .modal-media:not(.is-video) { min-height: 50svh; }
}
@media (max-width: 380px) {
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-progress { display: none; }
  .hero-ambient, .field-stage, .system-site-window, .system-site:nth-child(2) .system-site-window { transform: none; }
  .field-stage, .immersion-enabled [data-drift-media] { translate: none; }
  .immersion-enabled [data-drift-media] { transform: none; }
}

/* Full-width content below the approved header and hero. Inset copy, not media. */
#work, #expertise, #system, #about, #contact, .metrics {
  --content-inset: clamp(18px, 3vw, 48px);
}
#work .grid-shell,
#expertise > .grid-shell,
#system .system-shell,
#about .grid-shell,
#contact .contact-inner,
.metrics .metrics-track {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}
#work .section-head,
#expertise .expertise-intro,
#expertise .tool-belt,
#system .system-copy,
#system .system-gallery-heading,
#system .system-principles,
#about .about-trail-heading,
#contact .contact-inner {
  padding-inline: var(--content-inset);
}
#work .section-head { margin-bottom: 40px; }
#work .section-head-side > p { max-width: 700px; }
#work { padding-block: clamp(56px, 6vw, 80px) 0; }
#work .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}
#work .work-grid > .project-card { grid-column: auto; }
#work .project-card .project-media { aspect-ratio: 16 / 10; min-height: 0; }
#work .project-card[data-category="design"] .project-media > img { object-fit: contain; }
/* Keep the opening selection cinematic; other filters use orderly pairs. */
#work[data-work-filter="featured"] .project-card[data-project="sangyaw"],
#work[data-work-filter="featured"] .project-card[data-category="photography"],
#work[data-work-filter="featured"] .project-card-music-video-featured,
#work[data-work-filter="all"] .project-card-music-video-featured,
#work[data-work-filter="design"] .project-card-panorama,
#work .work-grid > .project-card-3d {
  grid-column: 1 / -1;
}
#work[data-work-filter="featured"] .project-card[data-project="sangyaw"] .project-media,
#work[data-work-filter="featured"] .project-card[data-category="photography"] .project-media,
#work[data-work-filter="featured"] .project-card-music-video-featured .project-media,
#work[data-work-filter="all"] .project-card-music-video-featured .project-media,
#work .project-card-3d .project-media {
  aspect-ratio: 16 / 8;
}
#work[data-work-filter="featured"] .project-card-tall .project-media,
#work[data-work-filter="featured"] .project-card[data-project="sangyaw-design"] .project-media {
  aspect-ratio: 4 / 5;
}
#work .project-card[data-project="sangyaw"] .project-media > img { object-position: center 40%; }
#work[data-work-filter="design"] .project-card-panorama .project-media { aspect-ratio: 3 / 1; }
#work .project-card.project-card-dev .browser-media {
  aspect-ratio: auto;
  padding: 42px 0 0;
}
#work .browser-media > img {
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}
#work .project-info {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 22px var(--content-inset) 28px;
}
#work .project-copy { min-width: 0; overflow-wrap: anywhere; }
#work .project-copy strong { font-size: clamp(1.35rem, 2.1vw, 2.2rem); line-height: 1.08; }
#work .project-copy small { line-height: 1.5; }
#work .project-featured-credit { padding: 0 var(--content-inset) 26px; }
#work .work-category-intro { flex-wrap: wrap; margin: 0; padding: 40px var(--content-inset); }
#work .project-card:focus-visible { outline-offset: -4px; }

#expertise .expertise-intro { grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr); }
#expertise .expertise-row,
#expertise .expertise-row:hover {
  grid-template-columns: 44px minmax(0, 1.2fr) minmax(0, .7fr) 58px;
  padding: 40px var(--content-inset);
  transition: background .35s ease;
}
#expertise .expertise-row > div, #expertise .expertise-row ul { min-width: 0; }
#expertise .film-preview-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: calc(100% + var(--content-inset) + var(--content-inset));
  margin-inline: calc(0px - var(--content-inset));
  gap: 1px;
}
#expertise .film-preview-kicker { padding: 0 var(--content-inset) 16px; }
#expertise .film-preview,
#expertise .film-preview:hover,
#expertise .film-preview:focus-visible { border: 0; transform: none; }
#expertise .film-preview:focus-visible { outline-offset: -4px; }
#expertise .film-preview-meta { padding: 20px var(--content-inset) 24px; }
#expertise .film-preview-meta strong { font-size: clamp(1.3rem, 2.1vw, 2rem); }

#system .system-copy { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
#system .system-gallery-heading { flex-wrap: wrap; }
#system .system-sites {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 0;
  padding: 0;
}
#system .system-site-window,
#system .system-site:nth-child(2) .system-site-window,
#system .system-site-window:hover,
#system .system-site-window:focus-within {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
}
#system .window-top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; padding-inline: 20px; }
#system .window-canvas img { object-fit: contain; }
#system .window-canvas:hover img, #system .window-canvas:focus-visible img { transform: none; }
#system .system-site-info { flex-wrap: wrap; margin: 0; padding: 24px var(--content-inset) 32px; }
#system .system-site-info > div { min-width: 0; }
#system .system-site-info h3 { overflow-wrap: anywhere; }
#system .system-capability:hover { transform: none; }

#about { padding-block: 0; }
#about .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
#about .about-portrait { width: 100%; margin: 0; }
#about .about-copy { min-width: 0; padding: 56px var(--content-inset); }
#about .about-copy > p { max-width: 640px; }
#about .about-trail { margin-top: 0; }
#about .about-trail-heading { margin: 0; padding-block: 24px; }
#about .about-trail-grid { gap: 1px; }
#about .about-trail-grid figure { position: relative; }
#about .about-trail-grid img { height: auto; aspect-ratio: 16 / 10; }
#about .about-trail-grid figure:nth-child(n+3) img { height: auto; aspect-ratio: 2 / 3; }
#about .about-trail-grid figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  flex-wrap: wrap;
  padding: 54px var(--content-inset) 22px;
  background: linear-gradient(transparent, rgba(7, 12, 9, .78));
  color: var(--white);
  pointer-events: none;
}
#about .about-trail-grid a[data-trail-photo]::after { top: 16px; bottom: auto; }
#about .about-trail-grid a:focus-visible { outline-offset: -5px; }
.metrics .metrics-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics .metrics-track > div { min-width: 0; padding-inline: var(--content-inset); }
#contact .contact-email, #contact .contact-email:hover, #contact .contact-email:focus-visible { padding-inline: 0; }
#contact .contact-email { gap: 20px; transition: background .35s ease, color .35s ease; }
#contact .contact-email b { flex: 0 0 auto; }
#contact .contact-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-footer { padding-inline: clamp(18px, 3vw, 48px); }

@media (max-width: 960px) {
  #expertise .expertise-intro, #system .system-copy { grid-template-columns: minmax(0, 1fr); }
  #expertise .expertise-row, #expertise .expertise-row:hover { grid-template-columns: 36px minmax(0, 1fr) 52px; }
  #about .about-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics .metrics-track, #contact .contact-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #work .work-grid, #expertise .film-preview-grid, #system .system-sites { grid-template-columns: minmax(0, 1fr); }
  #work .work-grid > .project-card { grid-column: 1 / -1; }
  #work .project-card .project-media { aspect-ratio: 16 / 10; }
  #work[data-work-filter="featured"] .project-card[data-project="sangyaw"] .project-media,
  #work[data-work-filter="featured"] .project-card[data-category="photography"] .project-media,
  #work[data-work-filter="featured"] .project-card-music-video-featured .project-media,
  #work[data-work-filter="all"] .project-card-music-video-featured .project-media,
  #work .project-card-3d .project-media { aspect-ratio: 16 / 10; }
  #work .project-card.project-card-dev .browser-media { aspect-ratio: auto; }
  #work .project-info { grid-template-columns: 24px minmax(0, 1fr) 36px; gap: 10px; padding-block: 18px 24px; }
  #work .project-arrow { width: 36px; height: 36px; }
  #system .system-site-info { align-items: flex-start; flex-direction: column; gap: 14px; }
  #about .about-trail-grid figure:nth-child(-n+2) { grid-column: 1 / -1; }
  #about .about-trail-grid figcaption { padding: 44px 16px 16px; font-size: 9px; gap: 8px; }
}
@media (max-width: 680px) {
  #expertise .expertise-row, #expertise .expertise-row:hover { grid-template-columns: 26px minmax(0, 1fr); gap: 16px; padding-block: 30px; }
  #about .about-copy { padding-block: 40px; }
}
