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

@font-face {
  font-family: "Inter Local";
  src: url("assets/inter-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f7f7f5;
  --ink: #11110f;
  --muted: #62625e;
  --line: #deded8;
  --field-border: #898983;
  --soft: #ecece7;
  --blue: #2663ec;
  --max-width: 1440px;
  --gutter: clamp(1.5rem, 4vw, 4.5rem);
  --gap: clamp(1.25rem, 2.5vw, 3rem);
  --type-body-size: 1rem;
  --type-lead-size: clamp(1.125rem, calc(1rem + .35vw), 1.25rem);
  --type-h1-size: clamp(2rem, calc(1.75rem + 1.5vw), 2.4375rem);
  --type-h2-size: clamp(1.375rem, calc(1.25rem + .5vw), 1.5625rem);
  --type-small-size: .875rem;
  --type-caption-size: clamp(.75rem, calc(.72rem + .15vw), .875rem);
  --leading-body: 1.6;
  --leading-lead: 1.5;
  --leading-h1: 1.1;
  --leading-h2: 1.2;
  --leading-small: 1.4;
  --leading-caption: 1.4;
  --radius-soft: .25rem;
  --radius-pill: 999px;
  --space-paragraph: 1rem;
  --space-related: 1.5rem;
  --space-heading: 1.75rem;
  --space-section: 2.5rem;
  --prose-measure: 42rem;
  --profile-intro-space: var(--space-section);
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter Local", Inter, ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss07" 1, "cv11" 0;
  font-size: var(--type-body-size);
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .65rem .85rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

.site-frame {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
}

.site-header {
  grid-column: 1 / span 4;
  position: sticky;
  top: var(--sidebar-top, 0px);
  min-height: 100vh;
  padding: clamp(2rem, 6vw, 5.75rem) 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.wordmark { display: inline-block; width: min(100%, 16rem); }
.wordmark img { width: 100%; height: auto; }

.intro-copy { display: flex; flex-direction: column; gap: var(--space-related); margin-top: var(--space-section); max-width: 100%; }
.intro-copy > * { margin: 0; }
.intro-copy > h1, .intro-copy > p { margin: 0; }
.intro-copy > h1 { margin-bottom: calc(var(--space-heading) - var(--space-related)); }
.intro-copy h1, .intro-copy .lede, .intro-copy .supporting-copy, .intro-copy .turnaround-copy { max-width: none; }
.body-copy { display: flex; flex-direction: column; gap: var(--space-related); }
.body-copy > p { margin: 0; }
.intro-copy .button-link { align-self: flex-start; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: normal; font-kerning: normal; }
h1 {
  max-width: 24rem;
  margin-bottom: 1.25rem;
  font-size: var(--type-h1-size);
  line-height: var(--leading-h1);
  overflow-wrap: break-word;
}
.lede {
  max-width: 22rem;
  margin-bottom: 1.4rem;
  color: #464641;
  font-style: italic;
  font-size: var(--type-lead-size);
  line-height: var(--leading-lead);
}
.supporting-copy {
  max-width: 22rem;
  margin-bottom: 1.5rem;
  color: #464641;
  font-size: var(--type-body-size);
}
.turnaround-copy { max-width: 22rem; margin: 2rem 0 1.5rem; color: var(--ink); font-size: var(--type-lead-size); font-weight: 600; line-height: var(--leading-lead); }

.button-link,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .8rem 1.5rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  font-size: var(--type-body-size);
  line-height: var(--leading-small);
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--radius-pill);
}
.button-link:hover, .button-link:focus-visible,
.form-submit:hover, .form-submit:focus-visible { background: #1f53ca; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
}
.home-page .site-header .site-nav {
  margin-top: auto;
  padding-top: 3rem;
}
.inner-site-nav {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.nav-link {
  position: relative;
  color: var(--muted);
  font-size: var(--type-small-size);
  line-height: var(--leading-small);
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.3rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.nav-link:hover, .nav-link:focus-visible, .nav-link.is-current { color: var(--ink); }
.nav-link:hover::after, .nav-link:focus-visible::after, .nav-link.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-content {
  grid-column: 5 / -1;
  min-width: 0;
  padding: clamp(2rem, 6vw, 5.75rem) 0 8rem;
}

.explore-section { min-width: 0; }
.gallery-grid {
  --media-gap: clamp(.7rem, 1.5vw, 1.35rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--media-gap);
  align-items: start;
  overflow-anchor: none;
}
.gallery-cycle { display: contents; }
.no-script-nav { display: none; }
@media (max-width: 700px) {
  .no-script-nav { display: flex; margin: 0; padding: 1rem 1.25rem; }
}
.portfolio-fallback { margin: 0; }
.portfolio-fallback .media-video { opacity: 1; }

.media-card {
  position: relative;
  min-width: 0;
  outline: none;
}
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--soft);
}
.media-main-control {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.media-main-control:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
.media-main-control { display: grid; place-items: center; }
.media-play-prompt {
  display: none;
  padding: .7rem 1rem;
  color: white;
  background: rgba(17,17,15,.85);
}
.needs-play .media-play-prompt,
.gallery-manual .media-card:not(.is-playing) .media-play-prompt { display: block; }
.media-poster, .media-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-poster { z-index: 1; transition: opacity 200ms ease; }
.media-video { z-index: 2; opacity: 0; background: var(--soft); }
.media-card.is-playing .media-video { opacity: 1; }
.media-card.is-playing .media-poster { opacity: 0; }
.media-card:focus-visible .media-frame { outline: 2px solid var(--ink); outline-offset: 4px; }
.media-card:hover .media-frame, .media-card.is-playing .media-frame { background: #e4e4df; }

.media-controls {
  position: absolute;
  z-index: 4;
  right: .35rem;
  bottom: .35rem;
  left: .35rem;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  pointer-events: none;
}
.media-control {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: .92;
  pointer-events: auto;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7));
}
.media-control:hover, .media-control:focus-visible { opacity: 1; }
.media-control:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.control-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}
.control-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-caption {
  display: block;
  padding-top: .55rem;
  color: var(--muted);
  font-size: var(--type-caption-size);
  line-height: var(--leading-caption);
}
.media-caption span { display: inline; }
.gallery-status { margin: 1rem 0 0; color: var(--muted); font-size: var(--type-caption-size); line-height: var(--leading-caption); }
.gallery-status:empty { display: none; }

.prose-content { width: 100%; max-width: var(--prose-measure); overflow-wrap: anywhere; }
.prose-content > h1 { max-width: none; margin-bottom: var(--space-heading); }
.prose-content > p:not(.eyebrow):not(.lede),
.profile-bio { max-width: 100%; color: #464641; font-size: var(--type-body-size); line-height: var(--leading-body); }
.prose-content > p:not(.lede) { margin-bottom: var(--space-paragraph); }
.prose-content > .lede { max-width: none; margin-bottom: var(--space-related); }
.prose-content > p:last-of-type { margin-bottom: 0; }
.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: var(--profile-intro-space);
  padding-top: var(--profile-intro-space);
  border-top: 1px solid var(--line);
}
.profile-portrait {
  width: 11rem;
  height: 11rem;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin-bottom: 1.2rem;
  object-fit: cover;
  background: var(--soft);
}
.profile h2 { margin-bottom: .75rem; font-size: var(--type-h2-size); line-height: var(--leading-h2); }
.profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem; min-width: 0; }
.profile-name h2 { margin: 0; max-width: 100%; overflow-wrap: anywhere; }
.profile-social { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; color: var(--ink); border-radius: var(--radius-soft); }
.profile-social svg { width: 20px; height: 20px; }
.profile-social .linkedin-icon { width: 21px; height: 21px; object-fit: contain; }
.profile-social:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.profile-role { margin: .75rem 0 1rem; color: var(--muted); font-size: var(--type-small-size); line-height: var(--leading-small); }
.profile-role span { display: block; }
.profile .eyebrow { margin-bottom: .85rem; }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: var(--type-caption-size);
  font-weight: 650;
  letter-spacing: .08em;
  line-height: var(--leading-caption);
  text-transform: uppercase;
}
.placeholder { color: var(--ink); background: #e8e8e1; }

.contact-form {
  max-width: 100%;
  container-type: inline-size;
  margin-top: var(--space-section);
  border-top: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 2fr;
  row-gap: 1rem;
  column-gap: 2.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.form-row > * { min-width: 0; }
.form-row label {
  padding-top: .75rem;
  color: var(--ink);
  font-size: var(--type-body-size);
  line-height: var(--leading-body);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: var(--radius-soft);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: var(--type-body-size);
  line-height: var(--leading-body);
  resize: vertical;
}
input { min-height: 2.75rem; padding: .65rem .75rem; }
textarea { min-height: 5.5rem; padding: .7rem .75rem; }
.field-control { min-width: 0; }
select { width: 100%; min-width: 0; max-width: 100%; min-height: 2.75rem; padding: .65rem .75rem; }
input::placeholder, textarea::placeholder { color: var(--muted); }
select:invalid { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.field-help { margin: .35rem 0 0; color: var(--muted); font-size: var(--type-small-size); line-height: var(--leading-small); }
.contact-status { margin: 1.2rem 0 .8rem; color: var(--muted); font-size: var(--type-small-size); line-height: var(--leading-small); }
.contact-status:empty { margin: 0; }
.contact-email-note { margin: .75rem 0 0; color: var(--muted); font-size: var(--type-small-size); line-height: var(--leading-small); }
.contact-form > .form-submit {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: var(--space-related) 0 0 auto;
}
.form-submit:disabled { opacity: .62; cursor: not-allowed; }
.form-submit:disabled:hover { background: var(--blue); }

.mobile-bar { display: none; }

/* Copyright follows the personal site's quiet inline footer treatment. */
.site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; padding-bottom: 2rem; color: var(--muted); }
.footer-copyright { margin-left: auto; max-width: 100%; font-size: var(--type-body-size); line-height: var(--leading-body); }
.sidebar-footer { width: 100%; margin-top: var(--space-related); padding-bottom: 0; }
.sidebar-footer .footer-copyright { margin-left: 0; }
.inner-page .sidebar-footer { margin-top: auto; }
.page-footer { display: none; width: min(calc(100% - (var(--gutter) * 2)), var(--max-width)); margin-right: auto; margin-left: auto; }
.mobile-menu-footer { margin-top: 1rem; padding-bottom: .25rem; }

@media (min-width: 701px) {
  html { scrollbar-gutter: stable; }
}

@container (max-width: 30rem) {
  .form-row { grid-template-columns: 1fr; gap: .5rem; }
  .form-row label { padding-top: 0; }
}

@media (max-width: 1120px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

@media (max-width: 700px) {
  :root {
    --gutter: 1.5rem;
  }
  html { scroll-behavior: auto; }
  .mobile-bar {
    position: static;
    z-index: 10;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    min-height: 3.5rem;
    padding: .375rem .75rem;
    border-bottom: 1px solid rgba(17,17,15,.12);
    background: var(--paper);
  }
  .home-page .mobile-bar { position: sticky; top: 0; }
  .mobile-wordmark { display: block; flex: 0 1 auto; width: clamp(8rem, 38vw, 9rem); min-width: 0; }
  .mobile-wordmark img { width: 100%; height: auto; }
  .toolbar-cta { flex: 0 0 auto; min-height: 44px; margin-left: auto; padding: 5px 0; border: 0; background: transparent; font-size: var(--type-small-size); white-space: nowrap; }
  .toolbar-cta span { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: .3rem .75rem; border: 1px solid var(--blue); border-radius: var(--radius-pill); background: var(--blue); }
  .toolbar-cta:hover, .toolbar-cta:focus-visible { background: transparent; }
  .toolbar-cta:hover span { background: #1f53ca; }
  .toolbar-cta:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    padding: .4rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }

  .menu-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
  .menu-icon { display: grid; gap: 4px; width: 18px; }
  .menu-icon i { display: block; height: 1px; background: currentColor; transition: transform 160ms ease; }
  .menu-is-open .menu-icon i:first-child { transform: translateY(5px) rotate(45deg); }
  .menu-is-open .menu-icon i:nth-child(2) { opacity: 0; }
  .menu-is-open .menu-icon i:last-child { transform: translateY(-5px) rotate(-45deg); }
  .mobile-menu {
    flex: 1 0 100%;
    display: grid;
    gap: .85rem;
    padding: 1rem .1rem .65rem;
    border-top: 1px solid var(--line);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu .nav-link { font-size: 1.1rem; }

  .site-frame { display: block; width: min(calc(100% - (var(--gutter) * 2)), 42rem); }
  .site-header { position: static; min-height: auto; padding: 2.5rem 0 3rem; }
  .home-page .site-header .wordmark { display: none; }
  .home-page .sidebar-footer { display: none; }
  .inner-page .site-header { display: none; }
  .page-footer { display: flex; }
  .intro-copy { margin-top: 0; }
  h1, .prose-content > h1 { max-width: 100%; }
  .home-page .site-header .site-nav { display: none; }
  .site-content { padding: 0 0 6rem; }
  .inner-page .site-content { padding-top: 2.5rem; }
  .inner-site-nav { display: none; }
  .gallery-grid { --media-gap: 1.1rem; grid-template-columns: 1fr; }
  .media-caption { padding-top: .45rem; }
  .profile-list { grid-template-columns: 1fr; gap: 2.5rem; }
  .profile-portrait { width: 10rem; height: 10rem; }
  .form-row { grid-template-columns: 1fr; gap: .35rem; }
  .form-row label { padding-top: 0; }
}

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