@import url("https://fonts.googleapis.com/css2?family=Patua+One&display=swap");

:root {
  --color-page: #efeee9;
  --color-surface: #ffffff;
  --color-ink: #1d1f23;
  --color-muted: #6f7279;
  --color-line: #d9d8d2;
  --color-band: #41413f;
  --color-action: #2f67f6;
  --color-action-dark: #1f4dcc;
  --shadow-panel: 0 16px 30px rgba(29, 31, 35, 0.16);
  --frosted-nav-bg: rgba(255, 255, 255, 0.68);
  --frosted-nav-border: rgba(29, 31, 35, 0.1);
  --frosted-nav-filter: blur(18px) saturate(1.15);
  --frosted-nav-shadow: 0 8px 24px rgba(29, 31, 35, 0.08);
  --font-sans: "Inter", Arial, Helvetica, sans-serif;
  --font-display: "Patua One", Georgia, serif;
  --page-rail: min(1120px, calc(100vw - 40px));
  --nav-height: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--color-ink);
  color: var(--color-surface);
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: 16px;
  transform: translateY(-140%);
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  align-items: center;
  background: transparent;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 10px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  z-index: 10;
}

.site-header::before {
  background: var(--color-surface);
  border-bottom: 1px solid rgba(29, 31, 35, 0.08);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  z-index: 0;
}

.site-header.is-scrolled::before {
  -webkit-backdrop-filter: var(--frosted-nav-filter);
  backdrop-filter: var(--frosted-nav-filter);
  background: var(--frosted-nav-bg);
  border-bottom-color: var(--frosted-nav-border);
  box-shadow: var(--frosted-nav-shadow);
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.brand__logo {
  height: 30px;
  object-fit: contain;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.site-nav a,
.site-nav__current {
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav__current {
  color: var(--color-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-column a:hover,
.footer-column a:focus-visible,
.about-footer a:hover,
.about-footer a:focus-visible,
.about-footer__back-to-top:hover,
.about-footer__back-to-top:focus-visible {
  color: inherit;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  position: relative;
}

.hero__image,
.hero__text-overlay-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero__image {
  inset: 0;
  position: absolute;
}

.hero__text-overlay {
  inset: 0;
  margin: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero__text-overlay-image {
  display: block;
}

.hero::after {
  background: linear-gradient(90deg, rgba(29, 31, 35, 0.15), rgba(29, 31, 35, 0.02) 38%, rgba(29, 31, 35, 0.18));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.feature-stack {
  display: grid;
  gap: clamp(84px, 10vw, 145px);
  margin: 0;
  padding: clamp(92px, 12vw, 160px) 0;
  width: 100%;
}

.project-lockup {
  --lockup-top-height: clamp(330px, 35vw, 560px);
  --lockup-lead-width: 40%;
  --lockup-thumb-rail: 90.5%;
  --lockup-thumb-height: calc(var(--lockup-thumb-width) * 0.625);
  --lockup-overlap: clamp(42px, 5vw, 82px);
  --lockup-thumb-gap: clamp(28px, 3vw, 44px);
  --lockup-thumb-width: calc((var(--lockup-thumb-rail) - var(--lockup-thumb-gap) - var(--lockup-thumb-gap)) / 3);
  background: var(--color-page);
  margin: 0 auto;
  scroll-margin-top: var(--nav-height);
  width: min(95%, 1800px);
}

.project-lockup__top {
  background: var(--color-surface);
  display: grid;
  grid-template-columns: var(--lockup-lead-width) minmax(0, 1fr);
  min-height: var(--lockup-top-height);
}

.project-lockup--text-left {
  --lockup-top-areas: "content image-one";
}

.project-lockup--text-right {
  --lockup-top-areas: "image-one content";
}

.project-lockup--text-left .project-lockup__top {
  grid-template-columns: minmax(0, 1fr) var(--lockup-lead-width);
}

.project-lockup__top {
  grid-template-areas: var(--lockup-top-areas, "image-one content");
}

.project-lockup__image {
  min-height: 0;
  overflow: hidden;
}

.project-lockup__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-lockup__image--1 {
  grid-area: image-one;
}

.project-lockup__image--2,
.project-lockup__image--3,
.project-lockup__image--4 {
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  border: clamp(8px, 1.1vw, 14px) solid var(--color-page);
}

.project-lockup__thumbs {
  display: grid;
  gap: var(--lockup-thumb-gap);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: calc(-1 * var(--lockup-overlap)) auto 0;
  position: relative;
  width: var(--lockup-thumb-rail);
  z-index: 1;
}

.project-lockup__content {
  align-self: center;
  grid-area: content;
  justify-self: center;
  max-width: min(30rem, 72%);
  padding: clamp(48px, 7vw, 110px) 0;
}

.project-lockup__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 34px;
}

.project-lockup__description {
  color: var(--color-muted);
  font-size: 16px;
  margin: 0 0 28px;
  max-width: 30rem;
}

.button {
  align-items: center;
  background: var(--button-background, var(--color-action));
  border-radius: 999px;
  color: var(--color-surface);
  display: inline-flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  min-height: 28px;
  padding: 7px 16px;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--button-background-hover, var(--color-action-dark));
  outline: none;
}

.image-link-band {
  background: var(--color-band);
  padding: clamp(48px, 7vw, 78px) 0 clamp(72px, 9vw, 112px);
}

.image-link-grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  width: min(80vw, 1280px);
}

.image-link {
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.image-link img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.image-link:hover img,
.image-link:focus-visible img {
  transform: scale(1.04);
}

.image-link:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 5px;
}

.site-footer {
  background: var(--color-surface);
  padding: clamp(58px, 8vw, 92px) max(20px, calc((100vw - 1120px) / 2)) clamp(120px, 18vw, 260px);
}

.about-page {
  min-height: calc(100vh - var(--nav-height));
}

.about-page__status {
  color: var(--color-muted);
  padding: 80px 20px;
  text-align: center;
}

.about-hero {
  height: clamp(300px, 27vw, 515px);
  overflow: hidden;
  width: 100%;
}

.about-hero__image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.about-profile {
  --about-accent: #6d9f4d;
  background: var(--about-background, var(--color-page));
  padding: clamp(64px, 8vw, 108px) 0 clamp(84px, 10vw, 132px);
}

.about-profile__inner {
  align-items: start;
  display: grid;
  gap: clamp(60px, 10vw, 180px);
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.5fr);
  margin: 0 auto;
  width: min(69vw, 1320px);
}

.about-skills {
  color: var(--about-accent);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 3.25vw, 3.75rem);
  font-weight: 400;
  line-height: 1.13;
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-copy__heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 18px;
}

.about-copy__body {
  color: #5f5f5f;
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  line-height: 1.35;
  max-width: 48rem;
}

.about-copy__body p {
  margin: 0;
}

.about-copy__body p + p {
  margin-top: 1.45em;
}

.about-copy__resume {
  --button-background: var(--about-accent);
  --button-background-hover: color-mix(in srgb, var(--about-accent) 82%, black);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  margin-top: 36px;
  min-height: 40px;
  padding: 9px 26px;
  text-transform: uppercase;
}

.about-copy__links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-top: 34px;
}

.about-copy__links a {
  align-items: center;
  color: var(--about-accent);
  display: inline-flex;
  font-size: 1.15rem;
  gap: 9px;
  line-height: 1.4;
  text-decoration: none;
  width: fit-content;
}

.about-copy__link-icon {
  flex: 0 0 24px;
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.about-copy__links a:hover,
.about-copy__links a:focus-visible {
  color: color-mix(in srgb, var(--about-accent) 72%, black);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-footer {
  background: var(--color-surface);
  color: var(--color-muted);
  min-height: 132px;
  padding: 36px clamp(18px, 4vw, 56px);
}

.about-footer__inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 60px;
}

.about-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-self: start;
}

.about-footer a,
.about-footer__back-to-top {
  color: var(--color-muted);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
}

.about-footer__back-to-top {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-self: center;
  padding: 10px;
}

.about-footer__copyright {
  font-size: 0.9rem;
  justify-self: end;
  margin: 0;
  text-align: right;
}

.site-footer__inner {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-column h2 {
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 0 22px;
}

.footer-column ul {
  display: grid;
  gap: 9px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column a,
.footer-column p {
  color: var(--color-muted);
  margin: 0;
  text-decoration: none;
}

.footer-column a {
  font-size: 0.72rem;
}

.footer-column p {
  font-size: 16px;
}

.is-hidden {
  display: none;
}

.scroll-reveal {
  opacity: 0;
  translate: 0 30px;
  transition:
    opacity 1600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    translate 1600ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

.hero__text-overlay.scroll-reveal {
  translate: 0 60px;
  transition-duration: 3200ms;
}

.scroll-reveal.is-visible {
  opacity: 1;
  translate: 0;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    translate: none;
    transition: none;
  }
}

.project-page {
  background: var(--color-page);
  min-height: calc(100vh - var(--nav-height));
  padding-bottom: clamp(88px, 12vw, 180px);
}

.project-page__status {
  color: var(--color-muted);
  margin: 0 auto;
  max-width: var(--page-rail);
  padding: 80px 0;
}

.project-hero {
  height: clamp(42vh, 58vw, 70vh);
  height: clamp(42svh, 58vw, 70svh);
  max-height: 70vh;
  overflow: hidden;
  width: 100%;
}

.project-hero img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.project-hero--small {
  height: 20vh;
  max-height: 20vh;
}

.project-hero--no-image {
  height: 10rem;
  max-height: none;
}

.project-details {
  display: grid;
  width: 100%;
}

.project-details__inner {
  align-items: start;
  display: grid;
  gap: clamp(3rem, 7vw, 9rem);
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.8fr);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 6rem) 0;
  width: min(84vw, 1600px);
}

.project-details__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.project-details__roles {
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.35;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-details__description {
  color: var(--color-muted);
  font-size: 16px;
  max-width: 60rem;
}

.project-details__description p {
  margin: 0;
}

.project-details__description p + p {
  margin-top: 1.25rem;
}

.project-row {
  display: grid;
  grid-template-columns: var(--project-column-template, repeat(var(--project-columns, 1), minmax(0, 1fr)));
  margin: 0 auto;
  max-width: none;
  width: min(90vw, 1800px);
}

.project-row--full-width {
  width: 100%;
}

.project-row--level-0 + .project-row--level-0 {
  margin-top: clamp(28px, 5vw, 72px);
}

.project-hero + .project-row,
.project-page > .project-row:first-child {
  align-items: start;
  grid-template-columns: var(--project-column-template, minmax(180px, 0.9fr) minmax(0, 2fr));
  padding-top: clamp(56px, 8vw, 98px);
}

.project-column {
  display: grid;
  margin: 0.5rem;
  /* DO NOT TURN THIS BACK ON! */
    /* min-height: clamp(260px, 34vw, 520px); */
  /* END -  DO NOT TURN THIS BACK ON! */
  overflow: hidden;
}

.project-column--heading,
.project-column--paragraph,
.project-column--layout {
  min-height: auto;
}

.project-column img,
.project-column video {
  height: 100%;
  width: 100%;
}

.project-column--iframe {
  aspect-ratio: var(--project-embed-aspect-ratio, 16 / 9);
  min-height: 0;
}

.project-column--iframe iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.project-column__copy {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 4vw, 48px);
}

.project-hero + .project-row .project-column__copy,
.project-page > .project-row:first-child .project-column__copy {
  padding: clamp(24px, 4vw, 48px);
}

.project-column__heading {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0;
}

.project-column__paragraph {
  color: var(--color-muted);
  font-size: 16px;
  margin: 0;
  max-width: 60rem;
}

.project-column__nested {
  display: grid;
  gap: clamp(18px, 2.4vw, 34px);
}

.project-row--nested {
  gap: clamp(18px, 2.4vw, 34px);
  max-width: none;
  width: 100%;
}

.project-row--nested + .project-row--nested {
  margin-top: 0;
}

.project-row--nested .project-column {
  min-height: clamp(180px, 22vw, 360px);
}

.project-row--nested .project-column--heading,
.project-row--nested .project-column--paragraph {
  min-height: auto;
}

/*
 * Responsive breakpoint scale
 *
 * wide:     1400px and below
 * large:    1200px and below
 * desktop:   992px and below
 * tablet:    820px and below
 * compact:   520px and below
 *
 * Queries are ordered largest to smallest so narrower tiers inherit the
 * adjustments above them. Add rules only when a component's content or
 * layout needs to change; fluid clamp(), min(), and viewport sizing should
 * continue to handle the space between breakpoints.
 */

@media (max-width: 1400px) {
  /* Reserved for wide-screen refinements. */
}

@media (max-width: 1200px) {
  /* Reserved for large-desktop refinements. */
}

@media (max-width: 992px) {
  .about-profile__inner {
    gap: 48px;
    width: min(84vw, 820px);
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 18px;
  }

  .project-lockup,
  .project-lockup--text-left {
    background: var(--color-surface);
    aspect-ratio: auto;
    min-height: auto;
  }

  .project-lockup__top,
  .project-lockup--text-left .project-lockup__top {
    display: grid;
    grid-template-areas:
      "image-one"
      "content";
    grid-template-columns: 1fr;
    grid-template-rows: 280px auto;
    min-height: auto;
  }

  .project-lockup__image--1,
  .project-lockup--text-left .project-lockup__image--1 {
    grid-area: image-one;
    height: auto;
  }

  .project-lockup__content,
  .project-lockup--text-left .project-lockup__content {
    grid-area: content;
    max-width: none;
  }

  .project-lockup__thumbs {
    display: none;
  }

  .image-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(92vw, 620px);
  }

  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-footer__inner {
    gap: 20px;
  }

  .project-row,
  .project-hero + .project-row,
  .project-page > .project-row:first-child {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .project-hero + .project-row,
  .project-page > .project-row:first-child {
    gap: 22px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-column {
    min-height: 300px;
  }

  .project-column--heading,
  .project-column--paragraph,
  .project-column--layout,
  .project-column--iframe {
    min-height: auto;
  }

  .project-row--nested .project-column {
    min-height: 240px;
  }

  .project-row--nested .project-column--iframe {
    min-height: 0;
  }

  .project-details__inner {
    gap: 2.5rem;
    grid-template-columns: 1fr;
    padding: 4rem 0 5rem;
    width: calc(100% - 40px);
  }

  .about-profile__inner {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
  }

  .about-skills {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: clamp(2.15rem, 3.25vw, 3.75rem);
    row-gap: 0.15rem;
    column-gap: 1rem;
  }

  .about-skills li:not(:last-child)::after {
    content: ",";
  }

}

@media (max-width: 520px) {
  :root {
    --page-rail: calc(100vw - 28px);
  }

  .hero {
    min-height: calc(70vh - var(--nav-height));
    min-height: calc(70svh - var(--nav-height));
  }

  .site-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .about-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand__logo {
    height: 26px;
  }

  .feature-stack {
    gap: 56px;
    padding: 60px 0;
  }

  .project-lockup,
  .project-lockup--text-left {
    grid-template-areas:
      "image-one"
      "content";
    grid-template-columns: 1fr;
    grid-template-rows: 240px auto;
  }

  .project-lockup__content {
    padding: 28px;
  }

  .image-link-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .image-link-grid {
    width: 80%;
  }

  .about-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-footer__links,
  .about-footer__back-to-top,
  .about-footer__copyright {
    justify-self: center;
  }

  .about-footer__copyright {
    text-align: center;
  }

  .about-hero {
    height: 34vh;
    min-height: 230px;
  }

  .about-profile {
    padding: 52px 0 70px;
  }

  .about-copy__body {
    font-size: 1rem;
  }
}
