.portfolio-home .site-header {
  background: rgba(8, 8, 8, 0.92);
  color: var(--white);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 3rem;
}
.hero,
.about-section {
  container-type: inline-size;
}
.hero-topline,
.hero-bottomline {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.hero-topline {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.hero-topline p + p {
  margin: 0;
}
.hero-copy {
  min-width: 0;
  padding: 2rem 0 2.5rem;
}
.hero h1 {
  line-height: 0.88;
  margin-bottom: 1.5rem;
}
.hero h1 > span {
  display: block;
  white-space: nowrap;
}
.headline-pre {
  font-size: 8rem;
}
.headline-main {
  font-size: 11.75rem;
}
.hero-name {
  font: 800 2.25rem/1 var(--display);
  text-transform: uppercase;
}
.hero-summary {
  max-width: 30ch;
  color: var(--muted);
  margin: 0.8rem 0 1.5rem;
}
.hero .button-primary {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.hero .button-primary:hover {
  background: #d8d8d5;
}
/* The portrait is sized by its grid track, not by viewport-wide offsets. */
.hero-visual {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  align-self: center;
  padding-block: 2rem;
}
.hero-visual-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 32rem;
  min-height: 18rem;
  overflow: hidden;
}
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  filter: grayscale(1);
  transition: filter 400ms ease;
}
.hero-visual:hover .hero-portrait {
  filter: grayscale(0);
}
.hero-bottomline {
  min-height: 5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.hero-bottomline a {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
}
.work-section {
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}
.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr);
  align-items: end;
  gap: 0.75rem 3rem;
  margin-bottom: 2.5rem;
}
.section-intro .section-label {
  grid-column: 1 / -1;
  margin: 0;
}
.section-intro h2 {
  font-size: 5.75rem;
  line-height: 0.95;
}
.section-summary {
  font-size: 0.9375rem;
  max-width: 28ch;
  justify-self: end;
}
.featured-image-link {
  position: relative;
  display: block;
  background: #1b1b1b;
  overflow: hidden;
}
.featured-image-link img {
  aspect-ratio: 1.8;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1);
  transition: filter 400ms ease;
}
.featured-image-link:hover img,
.featured-image-link:focus-visible img {
  filter: grayscale(0);
}
.image-link-label {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  color: var(--black);
  font-size: 0.875rem;
}
.featured-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
}
.featured-caption .section-label {
  margin-bottom: 0.5rem;
}
.featured-caption h3 {
  font-size: 3.25rem;
}
.featured-caption h3 a {
  text-decoration: none;
}
.featured-caption h3 a:hover {
  text-decoration: underline;
}
.featured-caption > p {
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.9375rem;
}
.status-label {
  border: 1px solid var(--line);
  padding: 0.4rem 0.6rem;
  font-size: 0.75rem;
}
.work-index-label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 4rem 0 1rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  color: var(--muted);
}
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-anchor: none;
}
.project-item {
  min-width: 0;
  border-top: 1px solid var(--line);
  transition: background-color 180ms ease;
}
.project-item:last-child {
  border-bottom: 1px solid var(--line);
}
.project-item:is(:hover, :focus-within, .is-open) {
  background: #141414;
}
.project-row {
  display: grid;
  grid-template-columns: 2rem 14rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0;
}
.project-preview {
  display: block;
  overflow: hidden;
  background: #252525;
}
.project-preview img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1);
  transition: filter 300ms ease;
}
.project-preview:hover img,
.project-preview:focus-visible img {
  filter: grayscale(0);
}
.project-index {
  color: var(--muted);
  font-size: 0.75rem;
}
.project-main {
  min-width: 0;
}
.project-type {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.project-title {
  font-size: 2.625rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}
.project-title a {
  text-decoration: none;
}
.project-title a:hover {
  text-decoration: underline;
}
.project-title-arrow {
  font: 400 1.125rem/1 var(--mono);
  vertical-align: middle;
  white-space: nowrap;
}
.project-summary {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 40ch;
}
.project-toggle {
  justify-self: end;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line);
  padding: 0;
  background: transparent;
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}
[data-interactive] .project-toggle {
  display: inline-flex;
}
.project-toggle:is(:hover, :focus-visible) {
  border-color: currentColor;
  background: #292929;
}
.project-icon {
  display: inline-block;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 240ms ease;
}
.is-open .project-icon {
  transform: rotate(45deg);
}
.project-panel {
  display: grid;
  grid-template-rows: 1fr;
}
[data-interactive] .project-panel {
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
  visibility: hidden;
}
[data-interactive] .is-open .project-panel {
  grid-template-rows: 1fr;
  visibility: visible;
}
.project-panel-clip {
  overflow: hidden;
  min-height: 0;
}
.project-panel-inner {
  padding: 0 5rem 2rem 20rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 1.25rem;
  color: var(--muted);
}
.project-panel-inner ul {
  padding-left: 1.25rem;
  font-size: 0.875rem;
  max-width: 54ch;
}
.project-panel-inner li + li {
  margin-top: 0.75rem;
}
.project-panel-inner .project-cta {
  color: var(--white);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.studio-section {
  border-top: 1px solid var(--line);
}
.studio-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: center;
}
.studio-layout h2 {
  font-size: 7rem;
  line-height: 0.9;
}
.studio-copy > p,
.about-copy > p {
  max-width: 43ch;
  color: var(--muted);
}
.studio-current {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.studio-current .section-label {
  margin-bottom: 0.25rem;
}
.studio-current a {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  min-height: 44px;
}
.about-heading h2 {
  font-size: 4.5rem;
  line-height: 0.97;
}
.education-line {
  font-size: 0.8125rem;
}
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}
.capability-group {
  min-width: 0;
  text-decoration: none;
}
.capability-group img {
  aspect-ratio: 1.65;
  object-fit: cover;
  object-position: top;
  filter: grayscale(1);
  transition: filter 400ms ease;
}
.capability-group:hover img,
.capability-group:focus-visible img {
  filter: grayscale(0);
}
.capability-group > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0 0.5rem;
}
.capability-group h3 {
  font-size: 2rem;
}
.capability-group p {
  font-size: 0.8125rem;
  color: var(--muted);
}
.contact-copy h2 {
  font-size: 7rem;
  line-height: 0.9;
}
.contact-copy > p:last-child {
  margin-top: 1.5rem;
  color: var(--muted);
}
.contact-actions {
  margin-top: 2rem;
}
.contact-link {
  font: 800 2.75rem/1.1 var(--display);
  overflow-wrap: anywhere;
}
.site-footer {
  padding-bottom: 1.5rem;
}
.footer-meta {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-meta p {
  margin: 0;
}
@media (min-width: 1500px) {
  .hero-copy {
    padding-block: 3rem;
  }
  .headline-pre {
    font-size: 8.75rem;
  }
  .headline-main {
    font-size: 13.25rem;
  }
}
@media (max-width: 1199px), (max-height: 780px) and (min-width: 960px) {
  .hero-visual-frame {
    max-height: 24rem;
  }
  .headline-pre {
    font-size: 6.5rem;
  }
  .headline-main {
    font-size: 9.25rem;
  }
  .hero-copy {
    padding-block: 1.5rem 2rem;
  }
  .hero-name {
    font-size: 2rem;
  }
  .section-intro h2 {
    font-size: 5rem;
  }
}
@media (max-width: 1199px) {
  .project-row {
    grid-template-columns: 1.5rem 11rem minmax(0, 1fr) 3rem;
    gap: 1.5rem;
  }
  .project-panel-inner {
    padding-left: 15.5rem;
  }
}
@media (max-width: 959px) {
  .hero-layout {
    column-gap: 2rem;
  }
  .headline-pre {
    font-size: 5rem;
  }
  .headline-main {
    font-size: 6.75rem;
  }
  .hero-summary {
    font-size: 0.9375rem;
  }
  .hero-actions {
    gap: 0.75rem 1rem;
  }
  .section-intro h2,
  .about-heading h2 {
    font-size: 3.75rem;
  }
  .studio-layout h2 {
    font-size: 5rem;
  }
  .studio-layout,
  .about-layout {
    gap: 2rem;
  }
  .project-title {
    font-size: 2.25rem;
  }
  .project-row {
    grid-template-columns: 1.5rem 8rem minmax(0, 1fr) 2.75rem;
    gap: 1rem;
  }
  .project-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }
  .project-panel-inner {
    padding: 0 3.75rem 2rem 11.5rem;
  }
  .capability-grid {
    gap: 1rem;
  }
  .contact-copy h2 {
    font-size: 5rem;
  }
}
@media (max-width: 699px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 0 1rem;
  }
  .hero-topline {
    font-size: 0.75rem;
    padding-block: 0.85rem;
    gap: 0.25rem;
    flex-direction: column;
    align-items: start;
  }
  .hero-copy {
    display: contents;
  }
  .hero h1 {
    grid-column: 1;
    grid-row: 2;
    margin: 1.5rem 0;
  }
  .headline-pre {
    font-size: 3rem;
  }
  .headline-main {
    font-size: 4rem;
  }
  .hero-name {
    grid-column: 1 / -1;
    grid-row: 3;
    font-size: 1.75rem;
    margin-top: 0.25rem;
  }
  .hero-summary {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: 28ch;
    margin: 0.75rem 0 1.25rem;
  }
  .hero-actions {
    grid-column: 1 / -1;
    grid-row: 5;
    padding-bottom: 1.5rem;
  }
  .hero-visual {
    padding-block: 1rem;
  }
  .hero-visual-frame {
    min-height: 8rem;
  }
  .hero-portrait {
    object-position: 50% 28%;
  }
  .hero-bottomline {
    grid-row: 6;
    min-height: 0;
    padding: 0.75rem 0;
    font-size: 0.75rem;
    gap: 0.2rem;
  }
  .work-section {
    padding-top: 2.5rem;
  }
  .section-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }
  .section-intro h2 {
    font-size: 3.75rem;
  }
  .section-summary {
    justify-self: start;
    max-width: 34ch;
    font-size: 0.875rem;
  }
  .image-link-label {
    position: static;
    display: flex;
    padding: 0.75rem;
    font-size: 0.8125rem;
  }
  .featured-caption {
    gap: 0.75rem 1rem;
  }
  .featured-caption h3 {
    font-size: 2.75rem;
  }
  .featured-caption > p {
    max-width: 30ch;
    font-size: 0.875rem;
  }
  .work-index-label {
    margin: 2.5rem 0 1rem;
  }
  .project-row {
    grid-template-columns: 5.5rem minmax(0, 1fr) 2.75rem;
    gap: 0.75rem;
    padding-block: 1.25rem;
    align-items: start;
  }
  .project-index {
    grid-column: 1;
    grid-row: 1;
  }
  .project-preview {
    grid-column: 1;
    grid-row: 2;
  }
  .project-main {
    grid-column: 2;
    grid-row: 1 / 3;
  }
  .project-toggle {
    grid-column: 3;
    grid-row: 1 / 3;
  }
  .project-type {
    font-size: 0.6875rem;
    margin-bottom: 0.35rem;
  }
  .project-title {
    font-size: 1.875rem;
  }
  .project-summary {
    font-size: 0.8125rem;
  }
  .project-panel-inner {
    padding: 0 0 1.5rem 6.25rem;
  }
  .studio-layout,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .studio-layout h2 {
    font-size: 4.75rem;
  }
  .about-heading h2 {
    font-size: 3.25rem;
  }
  .capability-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 0;
  }
  .capability-group {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    column-gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
  .capability-group img {
    grid-row: 1 / 3;
    height: 100%;
    aspect-ratio: 1;
  }
  .capability-group > div {
    padding: 0 0 0.35rem;
  }
  .capability-group h3 {
    font-size: 1.75rem;
  }
  .contact-copy h2 {
    font-size: 4rem;
  }
  .contact-link {
    font-size: 2rem;
  }
}
@media (max-width: 374px) {
  .headline-pre {
    font-size: 2.5rem;
  }
  .headline-main {
    font-size: 3.25rem;
  }
  .hero h1 {
    margin-bottom: 1.25rem;
  }
  .section-intro h2 {
    font-size: 3.25rem;
  }
  .contact-copy h2 {
    font-size: 3.5rem;
  }
}
@media (max-width: 419px) {
  .project-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) 2.75rem;
  }
  .project-panel-inner {
    padding-left: 0;
  }
}
@media (min-width: 420px) and (max-width: 549px) {
  .headline-pre {
    font-size: 3.5rem;
  }
  .headline-main {
    font-size: 4.625rem;
  }
}
@media (min-width: 550px) and (max-width: 699px) {
  .headline-pre {
    font-size: 4.25rem;
  }
  .headline-main {
    font-size: 6rem;
  }
}
@media (hover: none) {
  .project-preview img,
  .capability-group img {
    filter: grayscale(0);
  }
}
/* Enlarged text needs a full reading column, without changing normal mobile composition. */
@media (min-width: 700px) {
  @container (max-width: 60rem) {
    .hero-layout { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { grid-column: 1; grid-row: 3; max-width: 32rem; padding-top: 0; }
    .hero h1 > span { white-space: normal; }
  }
}
@container (max-width: 22rem) {
  .hero h1 > span { white-space: normal; }
  .hero h1 {
    grid-column: 1 / -1;
  }
  .headline-pre {
    font-size: 2.25rem;
  }
  .headline-main {
    font-size: 2.75rem;
  }
  .hero-visual {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .hero-name { grid-row: 4; }
  .hero-summary { grid-row: 5; }
  .hero-actions { grid-row: 6; }
  .hero-bottomline { grid-row: 7; }
  .capability-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .capability-group img {
    grid-row: auto;
    max-width: 6rem;
    margin-bottom: 1rem;
  }
}
