:root {
  --font-body: Inter, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", Inter, "Helvetica Neue", Arial, sans-serif;
  --shell-gutter: clamp(24px, 5vw, 72px);
  --copy-width: 760px;
  --page-gray: #ececf0;
  --surface: #ffffff;
  --text: #111111;
  --muted: #50545b;
  --border: #b9bec6;
  --blue: #1470af;
  --blue-soft: #8eb6dc;
  --dark-surface: #17191d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
}

.site-header {
  position: relative;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--shell-gutter) 19px;
}

.brand {
  padding: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand__name,
.brand__role {
  display: inline;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.brand__role::before {
  content: " - ";
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  font-size: 12.5px;
  line-height: 1.2;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-main {
  width: 100%;
  flex: 1;
}

.site-footer {
  margin-top: auto;
}

.site-footer__inner {
  padding: 22px var(--shell-gutter) 24px;
  font-size: 11px;
  color: var(--muted);
}

.eyebrow {
  display: none;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 50px;
}

.button,
.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}

.button--primary {
  min-width: 370px;
  background: var(--blue);
  color: var(--text);
}

.button--secondary {
  min-width: 352px;
  background: #f7f5f0;
  color: var(--text);
}

.link-chip {
  min-height: 44px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--text);
}

.page-home .site-main {
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: 72vh;
  padding: clamp(138px, 18vh, 190px) var(--shell-gutter) clamp(132px, 17vh, 176px);
  background: var(--page-gray);
}

.hero__copy {
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(60px, 5vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 780px;
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 1.8vw, 26px);
  font-weight: 500;
  line-height: 1.08;
}

.hero__media {
  display: flex;
  justify-content: center;
}

.hero__frame {
  width: min(100%, 540px);
  overflow: hidden;
  border-radius: 32px;
}

.hero__frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(1);
}

.page-projects .site-main {
  background: var(--surface);
}

.project-grid {
  display: grid;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border-top: 1px solid #78a6c9;
}

.project-card:first-child {
  border-top: 0;
}

.project-card__body {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(54px, 6vw, 78px) clamp(24px, 4vw, 72px);
  background: var(--blue);
  color: #ffffff;
}

.project-card__image {
  order: 2;
  background: #ffffff;
}

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

.project-card h2 {
  max-width: 400px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(52px, 4.7vw, 72px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.project-card p {
  max-width: 430px;
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

.project-card__actions {
  margin-top: 42px;
}

.page-project .site-main {
  background: var(--surface);
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(320px, 0.82fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding: clamp(120px, 16vh, 170px) var(--shell-gutter) 78px;
  background: var(--page-gray);
}

.detail-card,
.meta-card {
  background: transparent;
}

.project-title {
  max-width: 820px;
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(60px, 5vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.detail-card__intro {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
}

.section-heading {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.achievement-list {
  max-width: 720px;
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
}

.achievement-list li + li {
  margin-top: 7px;
}

.project-facts {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 180px);
  gap: 24px 34px;
  max-width: 540px;
  margin-top: 28px;
  font-size: 13px;
}

.project-facts__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.project-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-facts li + li {
  margin-top: 3px;
}

.project-facts__block--links {
  grid-column: 1 / -1;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quote-card {
  max-width: 560px;
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: 22px;
  background: #ffffff;
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
}

.quote-card p {
  margin: 10px 0 0;
  font-size: 13px;
}

.project-hero-image {
  margin: 18px 0 0;
}

.project-hero-image img {
  width: 100%;
  height: auto;
}

.gallery-band {
  background: var(--blue);
  padding: 42px var(--shell-gutter) 48px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  background: var(--dark-surface);
}

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

.page-resume .site-main {
  background: var(--surface);
}

.resume-grid {
  width: min(var(--copy-width), calc(100vw - 2 * var(--shell-gutter)));
  margin: 0 auto;
  padding: 86px 0 88px;
}

.resume-top {
  margin-bottom: 28px;
}

.resume-actions {
  margin-bottom: 44px;
}

.page-resume .button--primary {
  min-width: 0;
  min-height: 46px;
  padding: 0 18px;
  background: var(--blue-soft);
  font-size: 13px;
}

.resume-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
}

.resume-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.resume-contact {
  display: grid;
  gap: 4px;
  padding-top: 6px;
  justify-items: end;
  font-size: 11px;
  text-align: right;
  color: var(--muted);
}

.resume-contact a,
.resume-grid a {
  color: var(--blue);
}

.resume-contact__links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.resume-section {
  margin-top: 24px;
}

.resume-section h2 {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resume-section--summary p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
}

.resume-list,
.skill-list {
  display: grid;
  /* gap: 16px; */
  padding: 0;
  margin: 0;
  list-style: none;
}

.resume-item {
  padding: 0;
}

.resume-item p,
.resume-item li,
.skill-list li {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.skill-list li, 
.resume-list li,
.resume-key-projects li,
.resume-item li {
  margin: 5px 0 0 0;
}

.resume-item--project p strong,
.skill-list li strong {
  font-weight: 700;
}

.resume-item__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.resume-item__subhead,
.resume-item__dates {
  font-size: 12px;
  color: var(--muted);
}

.resume-item__subhead {
  margin-top: 2px;
  font-style: italic;
}

.resume-item__dates {
  margin-top: 2px;
}

.resume-item__body ul,
.resume-item ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.resume-item__label {
  margin: 12px 0 6px;
  font-size: 12px;
  font-style: italic;
}

.page-contact .site-main {
  background: var(--page-gray);
}

.contact-section {
  min-height: calc(100vh - 150px);
  padding: clamp(180px, 23vh, 240px) var(--shell-gutter) 120px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}

.contact-copy h1 {
  margin: 0 0 38px;
  font-family: var(--font-display);
  font-size: clamp(58px, 5vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin: 0;
}

.contact-list div {
  display: grid;
  gap: 4px;
}

.contact-list dt {
  font-size: 12px;
  color: var(--muted);
}

.contact-list dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

.contact-list a {
  color: var(--blue);
  word-break: break-word;
}

.contact-form-space {
  min-height: 460px;
}

.page-header {
  padding: 48px var(--shell-gutter) 32px;
  background: var(--page-gray);
}

.page-header h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 54px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.page-header p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .button--primary,
  .button--secondary {
    min-width: 0;
  }

  .hero,
  .project-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .project-card__image {
    min-height: 360px;
  }

  .project-card__body {
    order: -1;
  }

  .project-facts {
    grid-template-columns: 1fr 1fr;
  }

  .resume-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .resume-contact {
    justify-items: start;
    text-align: left;
    padding-top: 0;
  }

  .contact-form-space {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .brand__name,
  .brand__role {
    font-size: 17px;
  }

  .site-nav {
    gap: 18px;
    flex-wrap: wrap;
  }

  .hero,
  .project-layout,
  .gallery-band,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 96px;
  }

  .project-layout {
    padding-top: 92px;
    padding-bottom: 52px;
  }

  .project-card h2,
  .project-title,
  .hero h1,
  .contact-copy h1 {
    font-size: clamp(44px, 12vw, 58px);
  }

  .hero p {
    font-size: 22px;
  }

  .button-row {
    margin-top: 34px;
  }

  .button,
  .link-chip {
    width: 100%;
  }

  .project-card__image {
    min-height: 250px;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .resume-grid {
    width: min(var(--copy-width), calc(100vw - 48px));
    padding-top: 48px;
  }

  .resume-actions {
    margin-bottom: 28px;
  }
}
