@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600&display=swap");

:root {
  --black: #292a27;
  --paper: #dcd7cc;
  --bright: #ebe6dc;
  --ink: #24241f;
  --muted: #706d65;
  --line: rgba(36, 36, 31, 0.19);
  --red: #8f6560;
  --acid: #b7bd4d;
  --nav: 132px;
}

* { box-sizing: border-box; }
html { background: var(--black); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::after {
  position: fixed;
  z-index: 20;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
h1, h2, p { margin-top: 0; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--bright);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.profile-shell {
  min-height: 100vh;
}
.portrait-panel {
  position: fixed;
  z-index: 0;
  inset: 0 42% 0 0;
  overflow: hidden;
  background: var(--black);
  color: var(--paper);
}
.portrait-panel > img {
  width: 108%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: translateX(2.5%);
}
.portrait-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 72%, rgba(41, 42, 39, .06) 88%, rgba(41, 42, 39, .22)),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .75));
}
.portrait-signature {
  position: absolute;
  right: 44px;
  bottom: 38px;
  left: 44px;
  display: grid;
  grid-template-columns: 9px 1fr;
  align-items: center;
  gap: 4px 12px;
}
.portrait-signature .signal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  grid-row: 1 / 3;
}
.portrait-signature p {
  margin: 0;
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(16px, 1.4vw, 22px);
}
.portrait-signature > span:last-child {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.portrait-index {
  position: absolute;
  top: 28px;
  left: 34px;
  margin: 0;
  font-size: 11px;
  letter-spacing: .18em;
}

.content-panel {
  position: relative;
  z-index: 2;
  width: 50%;
  min-width: 0;
  margin-left: 50%;
  background: linear-gradient(90deg, rgba(220, 215, 204, .74), rgba(220, 215, 204, .97) 13%, var(--paper) 25%);
  box-shadow: -40px 0 70px rgba(41, 42, 39, .1);
  backdrop-filter: blur(4px);
}
.mobile-header { display: none; }
.section-nav {
  position: fixed;
  z-index: 30;
  inset: 0 0 0 auto;
  display: flex;
  width: var(--nav);
  border-left: 1px solid var(--line);
  background: rgba(220, 215, 204, .94);
  flex-direction: column;
  backdrop-filter: blur(12px);
}
.section-nav a {
  position: relative;
  display: flex;
  min-height: 0;
  padding: 22px 19px;
  border-bottom: 1px solid var(--line);
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  transition: background 180ms ease;
}
.section-nav a::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--red);
  content: "";
  transform: scaleY(0);
  transition: transform 180ms ease;
}
.section-nav a:hover,
.section-nav a[aria-current="page"] { background: var(--bright); }
.section-nav a[aria-current="page"]::before { transform: scaleY(1); }
.section-nav span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .12em;
}
.section-nav strong {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.sections {
  height: 100vh;
  margin-right: var(--nav);
  overflow: hidden;
}
.page-section {
  height: 100%;
  padding: 30px clamp(32px, 5vw, 78px) 70px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--red) transparent;
  scrollbar-width: thin;
}
.page-section[hidden] { display: none; }
.section-topline {
  display: flex;
  margin-bottom: clamp(58px, 9vh, 110px);
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.about-title p,
.work-intro > p,
.contacts-kicker {
  margin-bottom: 16px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.about-title h1,
.work-intro h1,
.contacts-content h1,
.placeholder h1 {
  max-width: 820px;
  margin-bottom: clamp(60px, 10vh, 120px);
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(34px, 4.35vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.055em;
}

.story {
  max-width: 690px;
  margin-left: auto;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.78;
}
.story > p { margin-bottom: 34px; }
.story .lead {
  margin-bottom: 58px;
  font-size: clamp(21px, 1.65vw, 27px);
  line-height: 1.55;
}
.story-note {
  display: grid;
  margin: 58px 0;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  grid-template-columns: 100px 1fr;
}
.story-note span {
  color: var(--red);
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 12px;
}
.story-note p { margin: 0; font-weight: 600; }
.story-quote {
  position: relative;
  margin: 72px 0;
  padding: 42px 0 42px 42px;
  border-left: 7px solid var(--red);
}
.story-quote::after {
  position: absolute;
  top: -15px;
  right: 5%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--acid);
  content: "";
  mix-blend-mode: multiply;
}
.story-quote p {
  max-width: 580px;
  margin: 0;
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(24px, 2.25vw, 38px);
  line-height: 1.25;
  letter-spacing: -.04em;
}
.story .closing {
  margin: 70px 0 20px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
  font-weight: 700;
}

.contacts-content {
  display: flex;
  min-height: calc(100vh - 230px);
  flex-direction: column;
  justify-content: center;
}

.projects-section {
  padding-right: 0;
  overflow: hidden;
  background: #353633;
  color: var(--bright);
}
.project-header {
  padding-right: clamp(32px, 5vw, 78px);
}
.projects-section .section-topline {
  margin-bottom: clamp(28px, 4vh, 48px);
  border-color: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .54);
}
.project-heading {
  display: flex;
  margin-bottom: clamp(28px, 4vh, 46px);
  align-items: end;
  justify-content: space-between;
}
.project-heading p {
  margin-bottom: 8px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.project-heading h1 {
  margin: 0;
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}
.project-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.project-controls button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  color: var(--bright);
  cursor: pointer;
  font-size: 20px;
  place-items: center;
  transition: border-color 160ms ease, background 160ms ease;
}
.project-controls button:hover {
  border-color: var(--acid);
  background: rgba(194, 200, 41, .12);
}
.project-controls > span {
  min-width: 58px;
  color: rgba(255, 255, 255, .48);
  font-size: 11px;
  letter-spacing: .12em;
  text-align: center;
}
.project-controls strong { color: var(--bright); }
.project-stage {
  width: 100%;
  overflow: hidden;
  outline: none;
  touch-action: pan-y;
}
.project-track {
  display: flex;
  gap: 18px;
  transition: transform 520ms cubic-bezier(.22, .72, .2, 1);
  will-change: transform;
}
.project-card {
  position: relative;
  width: min(78%, 620px);
  height: min(62vh, 660px);
  min-height: 470px;
  overflow: hidden;
  background: #4b4b46;
  flex: 0 0 min(78%, 620px);
  isolation: isolate;
  opacity: .46;
  transform: scale(.96);
  transform-origin: left center;
  transition: opacity 420ms ease, transform 420ms ease;
}
.project-card[data-active] {
  opacity: 1;
  transform: scale(1);
}
.project-card > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1.1) saturate(.88);
}
.project-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 30, 28, .02) 22%, rgba(29, 30, 28, .14) 48%, rgba(29, 30, 28, .84) 100%),
    linear-gradient(90deg, rgba(29, 30, 28, .11), transparent 60%);
  content: "";
}
.project-card-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 78%;
  padding: clamp(24px, 3.2vw, 45px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.project-number {
  display: block;
  margin-bottom: 13px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.project-card h2 {
  max-width: 520px;
  margin-bottom: 16px;
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(27px, 3.1vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.055em;
}
.project-card-copy > p {
  max-width: 570px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .8);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.58;
}
.project-card details {
  max-width: 570px;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .24);
}
.project-card summary {
  padding: 15px 0 0;
  color: var(--bright);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  list-style: none;
  text-transform: uppercase;
}
.project-card summary::after {
  margin-left: 10px;
  color: var(--acid);
  content: "+";
}
.project-card details[open] summary::after { content: "−"; }
.project-card details p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.55;
}

.work-intro h1 { margin-bottom: 44px; }
.work-summary {
  display: grid;
  margin-bottom: 90px;
  border-block: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}
.work-summary span {
  display: flex;
  padding: 20px 12px;
  color: var(--muted);
  font-size: 11px;
  flex-direction: column;
  gap: 3px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.work-summary span + span { border-left: 1px solid var(--line); }
.work-summary strong {
  color: var(--ink);
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(23px, 2.1vw, 34px);
  letter-spacing: -.05em;
}
.work-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}
.work-card {
  position: relative;
  padding: clamp(28px, 4vw, 54px);
  background: #e7e2d8;
}
.work-card::after {
  position: absolute;
  top: 34px;
  right: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  content: "";
}
.work-meta {
  display: flex;
  margin-bottom: 48px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.work-card h2 {
  max-width: 670px;
  margin-bottom: 22px;
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(28px, 3.4vw, 52px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.05em;
}
.work-card > p {
  max-width: 680px;
  margin-bottom: 22px;
  color: #514f48;
  font-size: 16px;
  line-height: 1.7;
}
.work-card .work-result {
  padding-left: 18px;
  border-left: 3px solid var(--acid);
  color: var(--ink);
  font-weight: 700;
}
.work-card > a,
.work-links a {
  display: inline-flex;
  margin-top: 15px;
  border-bottom: 1px solid;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.work-card a:hover { color: var(--red); }
.work-links { display: flex; gap: 24px; }
.work-card-compact { background: #42433f; color: var(--bright); }
.work-card-compact > p,
.work-card-compact .work-meta { color: rgba(255, 255, 255, .63); }

.contacts-section {
  background: linear-gradient(145deg, #8f6b66, #7f6461);
  color: var(--bright);
}
.contacts-section .section-topline {
  border-color: rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .68);
}
.contacts-kicker { color: var(--acid); }
.contacts-content h1 { margin-bottom: clamp(55px, 8vh, 90px); }
.contact-list { border-top: 1px solid rgba(255, 255, 255, .36); }
.contact-list a {
  display: grid;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .36);
  align-items: center;
  grid-template-columns: 110px 1fr auto;
  transition: padding 180ms ease, background 180ms ease;
}
.contact-list a:hover { padding-inline: 14px; background: rgba(0, 0, 0, .09); }
.contact-list span {
  color: rgba(255, 255, 255, .64);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-list strong {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: clamp(17px, 2vw, 27px);
  font-weight: 500;
}
.contact-list i { font-size: 24px; font-style: normal; }
.contacts-note {
  margin: 50px 0 0;
  color: rgba(255, 255, 255, .58);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

@media (max-width: 1050px) {
  :root { --nav: 94px; }
  .portrait-panel { right: 49%; }
  .content-panel { width: 56%; margin-left: 44%; }
  .page-section { padding-inline: 30px; }
}

@media (max-width: 760px) {
  .profile-shell { display: block; }
  .portrait-panel {
    position: relative;
    z-index: auto;
    inset: auto;
    height: 42vh;
    min-height: 330px;
  }
  .portrait-panel > img {
    width: 100%;
    object-position: 50% 45%;
    transform: none;
  }
  .portrait-signature { right: 20px; bottom: 18px; left: 20px; }
  .portrait-index { top: 18px; left: 20px; }
  .content-panel {
    width: auto;
    margin: 0;
    background: var(--paper);
    box-shadow: none;
    backdrop-filter: none;
  }
  .mobile-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: flex;
    height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(220, 215, 204, .96);
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(12px);
  }
  .mobile-header a { font-family: "Unbounded", Arial, sans-serif; font-size: 12px; }
  .mobile-header button {
    padding: 7px 0;
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .section-nav {
    position: fixed;
    inset: 58px 0 auto;
    display: none;
    width: auto;
    border: 0;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .15);
  }
  .section-nav[data-open] { display: grid; grid-template-columns: 1fr 1fr; }
  .section-nav a { min-height: 92px; padding: 15px 18px; }
  .section-nav strong { font-size: 11px; writing-mode: initial; transform: none; }
  .sections {
    height: auto;
    min-height: calc(100vh - 58px);
    margin: 0;
    overflow: visible;
  }
  .page-section {
    height: auto;
    min-height: calc(100vh - 58px);
    padding: 24px 20px 70px;
    overflow: visible;
  }
  .section-topline { margin-bottom: 55px; }
  .section-topline span:last-child { display: none; }
  .about-title h1,
  .work-intro h1,
  .contacts-content h1,
  .placeholder h1 {
    margin-bottom: 65px;
    font-size: clamp(31px, 10vw, 48px);
  }
  .story { font-size: 16px; line-height: 1.72; }
  .story .lead { font-size: 20px; }
  .story-note { grid-template-columns: 80px 1fr; }
  .story-quote { padding-left: 24px; }
  .story-quote p { font-size: 25px; }
  .contacts-content { min-height: calc(100vh - 180px); }
  .projects-section {
    min-height: calc(100vh - 58px);
    padding-right: 0;
    overflow: hidden;
  }
  .project-header { padding-right: 20px; }
  .project-heading { align-items: center; }
  .project-heading p { max-width: 180px; }
  .project-heading h1 { font-size: 38px; }
  .project-controls { gap: 8px; }
  .project-controls button { width: 38px; height: 38px; }
  .project-controls > span { display: none; }
  .project-track { gap: 12px; }
  .project-card {
    width: calc(88vw - 20px);
    height: min(68vh, 620px);
    min-height: 500px;
    flex-basis: calc(88vw - 20px);
  }
  .project-card-copy { max-height: 82%; padding: 25px; }
  .project-card h2 { font-size: 30px; }
  .work-summary { margin-bottom: 55px; grid-template-columns: 1fr; }
  .work-summary span + span { border-top: 1px solid var(--line); border-left: 0; }
  .work-card { padding: 30px 22px; }
  .work-meta { margin-bottom: 38px; padding-right: 20px; }
  .work-card h2 { font-size: 30px; }
  .contact-list a { grid-template-columns: 1fr auto; gap: 7px; }
  .contact-list span { grid-column: 1 / -1; }
  .contact-list strong { overflow-wrap: anywhere; }
}

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