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

:root {
  --black: #000;
  --white: #fff;
  --line: #000;
  --page-x: clamp(18px, 2.4vw, 42px);
  --header-h: 58px;
  font-family: "Inter", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--white);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--black);
  background: var(--white);
  font-size: 15px;
  line-height: 1.35;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--white);
  background: var(--black);
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--page-x);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.header-mark {
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 2.2vw, 36px);
}

.site-header a {
  position: relative;
}

.site-header a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right 180ms ease;
}

.site-header a:hover::after,
.site-header a:focus-visible::after {
  right: 0;
}

.masthead {
  position: relative;
  min-height: max(720px, 100svh);
  overflow: hidden;
  padding: calc(var(--header-h) + 28px) var(--page-x) 30px;
  border-bottom: 1px solid var(--line);
}

.masthead h1 {
  position: absolute;
  top: 50%;
  right: var(--page-x);
  left: var(--page-x);
  z-index: 0;
  height: clamp(300px, 42vh, 390px);
  margin: 0;
  transform: translateY(-50%);
  font-size: clamp(86px, 13vw, 186px);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.2;
  letter-spacing: 0.018em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masthead h1 span {
  position: absolute;
  display: block;
  width: max-content;
}

.masthead h1 span:first-child {
  top: 0;
  left: 4%;
}


.masthead h1 span:last-child {
  bottom: 0;
  left: 29%;
}

.mast-meta {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  font-size: clamp(11px, 0.85vw, 14px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.mast-meta a {
  width: fit-content;
}

.mast-meta a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mast-role {
  top: calc(var(--header-h) + 28px);
  left: var(--page-x);
}

.mast-portrait {
  position: absolute;
  top: calc(var(--header-h) + 28px);
  left: 32%;
  z-index: 2;
  width: clamp(102px, 8.2vw, 126px);
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #eee;
  background-image: url("assets/images/portrait-01-site.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

@media (hover: hover) and (pointer: fine) {
  .mast-portrait:hover {
    background-image: url("assets/images/portrait-02-site.jpg");
  }
}

.mast-focus {
  top: calc(var(--header-h) + 28px);
  right: var(--page-x);
  align-items: flex-end;
  text-align: right;
}

.mast-projects {
  left: 47%;
  bottom: 76px;
}

.mast-mail {
  left: var(--page-x);
  bottom: 76px;
}

.mast-scroll {
  position: absolute;
  right: var(--page-x);
  bottom: 28px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.section {
  padding: clamp(92px, 10vw, 170px) var(--page-x);
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin: 0;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(440px, 2.2fr) minmax(250px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: clamp(72px, 8vw, 130px);
}

.section-head h2,
.profile h2,
.contact h2 {
  margin: -0.04em 0 0;
  font-size: clamp(58px, 8.1vw, 128px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.006em;
}

.section-intro {
  max-width: 38ch;
  margin: 0;
  font-size: clamp(15px, 1.2vw, 19px);
  letter-spacing: -0.035em;
}

.project-list {
  border-bottom: 1px solid var(--line);
}

.project-row {
  display: grid;
  grid-template-columns: 48px minmax(220px, 1.3fr) minmax(320px, 1.8fr) 96px 120px;
  gap: 18px;
  align-items: baseline;
  min-height: 86px;
  padding: 24px 16px 22px 0;
  border-top: 1px solid var(--line);
  transition: color 160ms ease, background 160ms ease, padding 160ms ease;
}

.project-row:hover,
.project-row:focus-within {
  margin-inline: calc(var(--page-x) * -1);
  padding-inline: var(--page-x);
  color: var(--white);
  background: var(--black);
}

.project-row h3,
.project-row p {
  margin: 0;
}

.project-row h3 {
  font-size: clamp(21px, 2.05vw, 32px);
  font-weight: 490;
  line-height: 1.08;
  letter-spacing: 0.004em;
}

.project-row p,
.project-year,
.project-type,
.project-row > a,
.project-no {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-row > a {
  justify-self: end;
  font-size: 20px;
}

.project-type {
  justify-self: end;
  text-align: right;
}

.request-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 500;
  letter-spacing: 0;
}

.request-row p {
  margin: 0;
}

.request-row a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.profile {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.profile-copy {
  max-width: 1180px;
}

.profile-copy > .section-label {
  margin-bottom: clamp(62px, 7vw, 110px);
}

.profile h2 {
  font-size: clamp(58px, 7.5vw, 120px);
}

.profile-lead {
  max-width: 42ch;
  margin: clamp(48px, 6vw, 90px) 0 38px;
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 430;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 850px;
}

.profile-columns p {
  margin: 0;
}


.profile-image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #eee;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition: filter 240ms ease, transform 500ms ease;
}

.profile-image:hover img {
  filter: grayscale(0);
  transform: scale(1.015);
}

.career-head {
  grid-template-columns: minmax(140px, 1fr) minmax(440px, 3.2fr);
}

.career-list {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.career-list li {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(260px, 1.4fr) minmax(320px, 2.1fr);
  gap: 24px;
  align-items: baseline;
  padding: 25px 0 24px;
  border-top: 1px solid var(--line);
}

.career-list span,
.career-list p {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
}

.career-list h3 {
  margin: 0;
  font-size: clamp(21px, 2vw, 31px);
  font-weight: 490;
  line-height: 1.08;
  letter-spacing: 0.004em;
}

.details-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 5vw, 84px);
  margin-top: clamp(72px, 8vw, 120px);
}

.details-grid section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.details-grid section > p:not(.section-label) {
  margin: 28px 0 0;
}

.details-grid strong {
  font-weight: 620;
}

.contact {
  min-height: 82svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact h2 {
  margin: clamp(100px, 12vw, 190px) 0;
  font-size: clamp(62px, 10vw, 158px);
}

.contact-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 560;
  text-transform: uppercase;
}

.contact-row a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  padding: 20px var(--page-x) 22px;
  font-size: 10px;
  font-weight: 560;
  text-transform: uppercase;
}

footer span:last-child {
  text-align: right;
}

footer a:hover,
footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.legal-main {
  min-height: calc(100svh - 56px);
  padding: calc(var(--header-h) + clamp(54px, 7vw, 110px)) var(--page-x) clamp(84px, 10vw, 150px);
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 4fr);
  gap: 28px;
  padding-bottom: clamp(56px, 8vw, 118px);
  border-bottom: 1px solid var(--line);
}

.legal-hero .section-label {
  align-self: start;
  margin-top: 0.9em;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(68px, 10.7vw, 172px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.006em;
}

.legal-intro {
  grid-column: 2;
  max-width: 590px;
  margin: clamp(34px, 4vw, 62px) 0 0;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.35;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) minmax(0, 4fr);
  gap: 28px;
  padding-top: clamp(40px, 5vw, 76px);
}

.legal-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.25;
  text-transform: uppercase;
}

.legal-copy {
  max-width: 790px;
}

.legal-copy section {
  padding: 0 0 clamp(38px, 5vw, 68px);
  margin: 0 0 clamp(38px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
}

.legal-copy section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-copy h2 {
  margin: 0 0 24px;
  font-size: clamp(26px, 3vw, 43px);
  font-weight: 430;
  line-height: 1.05;
  letter-spacing: 0.004em;
}

.legal-copy p,
.legal-address {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-style: normal;
  line-height: 1.55;
}

.legal-copy p:last-child,
.legal-address:last-child {
  margin-bottom: 0;
}

.legal-copy a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 1050px) {
  .masthead h1 {
    height: clamp(280px, 40vh, 350px);
    font-size: clamp(80px, 13vw, 136px);
  }

  .section-head {
    grid-template-columns: 140px 1fr;
  }

  .section-intro {
    grid-column: 2;
    margin-top: 26px;
  }

  .project-row {
    grid-template-columns: 44px minmax(200px, 1.1fr) minmax(260px, 1.4fr) 86px 38px;
  }


  .career-list li {
    grid-template-columns: 105px minmax(220px, 1fr) minmax(260px, 1.4fr);
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 52px;
  }

  .site-header nav {
    gap: 13px;
  }

  .site-header nav a:nth-child(3) {
    display: none;
  }

  .masthead {
    min-height: max(650px, 100svh);
  }

  .masthead h1 {
    top: 45%;
    height: clamp(180px, 30vh, 250px);
    font-size: clamp(62px, 17vw, 112px);
    letter-spacing: 0.008em;
  }

  .masthead h1 span:first-child {
    left: 0;
  }

  .masthead h1 span:last-child {
    left: auto;
    right: 0;
  }

  .mast-portrait {
    top: calc(var(--header-h) + 26px);
    right: var(--page-x);
    left: auto;
    width: 88px;
  }

  .mast-focus {
    top: auto;
    right: auto;
    left: var(--page-x);
    bottom: 120px;
    align-items: flex-start;
    text-align: left;
  }

  .mast-projects {
    display: none;
  }

  .mast-mail {
    right: var(--page-x);
    left: auto;
    bottom: 120px;
    align-items: flex-end;
    text-align: right;
  }

  .section-head,
  .career-head {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-head h2,
  .section-intro {
    grid-column: auto;
  }

  .section-intro {
    margin-top: 0;
  }

  .project-row {
    grid-template-columns: 34px 1fr auto;
    gap: 11px;
    padding: 21px 0;
  }

  .project-row h3 {
    font-size: 24px;
  }

  .project-row p {
    grid-column: 2 / -1;
  }

  .project-year {
    grid-column: 2;
  }

  .project-row > a,
  .project-type {
    grid-column: 3;
    grid-row: 1;
  }

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

  .profile-copy {
    display: contents;
  }

  .profile-image {
    order: 3;
    width: min(74vw, 420px);
    margin-top: 18px;
  }

  .profile-lead {
    order: 4;
  }

  .profile-columns {
    order: 5;
    grid-template-columns: 1fr;
  }

  .career-list li {
    grid-template-columns: 92px 1fr;
  }

  .career-list p {
    grid-column: 2;
  }

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

  .contact-row {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr;
  }

  footer span:last-child {
    text-align: left;
  }

  .footer-legal {
    justify-content: flex-start;
  }

  .legal-main {
    padding-top: calc(var(--header-h) + 48px);
  }

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

  .legal-hero h1,
  .legal-intro {
    grid-column: 1;
  }

  .legal-hero h1 {
    font-size: 13vw;
  }

  .legal-hero .section-label {
    margin-top: 0;
  }

  .legal-aside {
    padding-bottom: 24px;
  }
}

@media (max-width: 440px) {
  .site-header nav a:nth-child(2) {
    display: none;
  }

  .masthead h1 {
    font-size: 17vw;
  }

  .mast-mail {
    display: none;
  }

  .request-row {
    flex-direction: column;
  }
}

@media (orientation: landscape) and (max-width: 1000px) and (max-height: 600px) {
  :root {
    --header-h: 48px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav a:nth-child(3) {
    display: none;
  }

  .masthead {
    min-height: max(420px, 100svh);
    padding-top: calc(var(--header-h) + 18px);
  }

  .mast-role {
    top: calc(var(--header-h) + 18px);
  }

  .mast-portrait {
    top: calc(var(--header-h) + 18px);
    right: auto;
    left: 50%;
    width: 76px;
    transform: translateX(-50%);
  }

  .mast-focus {
    top: calc(var(--header-h) + 18px);
    right: var(--page-x);
    bottom: auto;
    left: auto;
    align-items: flex-end;
    text-align: right;
  }

  .masthead h1 {
    top: 53%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
    font-size: clamp(56px, 9vw, 84px);
    line-height: 1;
  }

  .masthead h1 span,
  .masthead h1 span:first-child,
  .masthead h1 span:last-child {
    position: static;
  }

  .masthead h1 span:first-child {
    align-self: flex-start;
  }

  .masthead h1 span:last-child {
    align-self: flex-end;
  }

  .mast-projects {
    display: none;
  }

  .mast-mail {
    right: auto;
    bottom: 48px;
    left: var(--page-x);
    align-items: flex-start;
    text-align: left;
  }

  .mast-scroll {
    bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
