:root {
  --page: #f1ede4;
  --page-soft: #e8e2d7;
  --surface: #f8f5ee;
  --ink: #171b1e;
  --ink-soft: #4f5658;
  --muted: #747978;
  --line: rgba(29, 35, 38, 0.13);
  --line-strong: rgba(29, 35, 38, 0.23);
  --gold: #8a6a3d;
  --gold-soft: #aa8960;
  --green: #496f52;
  --blue: #52768d;
  --nav: rgba(241, 237, 228, 0.86);
  --shadow: rgba(62, 54, 42, 0.16);
  color-scheme: light;
}

:root[data-theme='dark'] {
  --page: #090d12;
  --page-soft: #10171e;
  --surface: #111820;
  --ink: #f3efe7;
  --ink-soft: #acada7;
  --muted: #747b83;
  --line: rgba(231, 222, 206, 0.11);
  --line-strong: rgba(231, 222, 206, 0.2);
  --gold: #c4ad88;
  --gold-soft: #dfd0b7;
  --green: #76a57e;
  --blue: #82aac8;
  --nav: rgba(9, 13, 18, 0.86);
  --shadow: rgba(0, 0, 0, 0.32);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--page);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px)),
    var(--page);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 260ms ease, color 260ms ease;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: var(--page);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

p,
h1,
h2,
h3,
h4,
h5,
figure,
ul {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  transform: translateY(-150%);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

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

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

.site-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(22px, 4.4vw, 72px);
  border-bottom: 1px solid transparent;
  transition: height 240ms ease, background 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-nav.scrolled,
.site-nav.menu-open {
  height: 66px;
  border-color: var(--line);
  background: var(--nav);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.site-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: .025em;
}

.site-mark-symbol {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.3vw, 38px);
}

.site-menu > a:not(.travelogue-tab) {
  position: relative;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-menu > a:not(.travelogue-tab)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 220ms ease;
}

.site-menu > a:hover::after,
.site-menu > a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.travelogue-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.travelogue-tab span {
  color: var(--gold);
  font-size: 10px;
}

.travelogue-tab:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}

.theme-button,
.nav-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.theme-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.theme-moon {
  display: none;
}

:root[data-theme='light'] .theme-sun {
  display: none;
}

:root[data-theme='light'] .theme-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, .48fr);
  align-items: center;
  gap: clamp(64px, 9vw, 150px);
  min-height: 100svh;
  max-width: 1500px;
  margin: 0 auto;
  padding: 124px clamp(24px, 7vw, 112px) 74px;
}

.intro::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: clamp(18px, 3vw, 48px);
  width: 1px;
  content: '';
  background: var(--line);
}

.hero-copy {
  padding-left: clamp(12px, 2vw, 34px);
}

.eyebrow,
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow span,
.section-label span {
  width: 28px;
  height: 1px;
  background: currentColor;
}

.intro h1,
.about-copy h2,
.portfolio-heading h2,
.contact-layout h2,
.atlas-copy h2 {
  margin-bottom: 28px;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: .91;
}

.intro h1 {
  font-size: clamp(76px, 9vw, 144px);
}

.intro h1 em,
.about-copy h2 em,
.portfolio-heading h2 em,
.contact-layout h2 em,
.atlas-copy h2 em {
  color: var(--gold);
  font-weight: 400;
}

.intro-text {
  max-width: 570px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 300;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-action,
.reveal-email {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 50px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--page);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-action:hover,
.reveal-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--shadow);
}

.text-action {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 12px;
}

.text-action span {
  margin-left: 8px;
  color: var(--gold);
}

.hero-notes {
  align-self: end;
  margin: 0 0 clamp(44px, 8vh, 92px);
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.hero-notes-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-notes dl {
  margin: 0 0 30px;
}

.hero-notes dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.hero-notes dt {
  color: var(--gold);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-notes dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  line-height: 1.35;
}

.hero-notes > a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 11px;
}

.hero-notes > a span {
  color: var(--gold);
}

.hero-index {
  position: absolute;
  right: 25px;
  bottom: 26px;
  margin: 0;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.section-shell {
  width: min(1280px, calc(100% - clamp(48px, 10vw, 150px)));
  margin: 0 auto;
}

.about-section {
  display: grid;
  grid-template-columns: 60px minmax(110px, .38fr) minmax(210px, .6fr) minmax(0, 1.35fr);
  gap: clamp(28px, 5vw, 78px);
  padding-top: clamp(110px, 12vw, 180px);
  padding-bottom: clamp(110px, 12vw, 180px);
  border-top: 1px solid var(--line);
}

.about-portrait {
  position: relative;
  width: min(100%, 270px);
  margin: 0;
}

.about-portrait::before {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 58%;
  height: 46%;
  content: '';
  border-top: 1px solid var(--gold-soft);
  border-right: 1px solid var(--gold-soft);
}

.about-portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--page-soft);
}

.about-portrait-frame::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(to top, rgba(11, 14, 16, .14), transparent 40%);
  pointer-events: none;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
  filter: grayscale(.78) sepia(.08) saturate(.72) contrast(1.06);
}

.about-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-number {
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .16em;
}

.about-copy h2,
.portfolio-heading h2,
.contact-layout h2 {
  font-size: clamp(48px, 6.1vw, 88px);
}

.about-copy > p {
  max-width: 760px;
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 300;
}

.about-copy > p a,
.modal-body p a {
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.social-links a {
  display: flex;
  justify-content: space-between;
  padding: 16px 13px;
  border-right: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.social-links a:first-child {
  border-left: 1px solid var(--line);
}

.social-links a:hover {
  background: var(--page-soft);
  color: var(--gold);
}

.travelogue-feature {
  padding-bottom: clamp(110px, 12vw, 180px);
}

.atlas-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(400px, 1.2fr);
  min-height: 570px;
  overflow: hidden;
  background: #10171b;
  color: #f3efe7;
  box-shadow: 0 28px 80px var(--shadow);
}

.atlas-card::before {
  position: absolute;
  inset: 0;
  content: '';
  border: 1px solid rgba(231, 222, 206, .12);
  pointer-events: none;
}

.atlas-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 82px);
  background: linear-gradient(90deg, rgba(9, 13, 18, .98), rgba(9, 13, 18, .82) 82%, transparent);
}

.section-label.light {
  color: #c4ad88;
}

.atlas-copy h2 {
  font-size: clamp(54px, 5.3vw, 79px);
}

.atlas-copy h2 em {
  color: #c4ad88;
}

.atlas-copy > p:not(.section-label) {
  max-width: 470px;
  margin-bottom: 36px;
  color: #a8aaa6;
  font-size: 15px;
  font-weight: 300;
}

.atlas-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(196, 173, 136, .5);
  color: #f3efe7;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.atlas-action b {
  color: #c4ad88;
  font-size: 14px;
}

.atlas-map {
  position: relative;
  min-height: 570px;
  background:
    radial-gradient(circle at 55% 48%, rgba(69, 100, 91, .22), transparent 33%),
    linear-gradient(rgba(255, 255, 255, .027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .027) 1px, transparent 1px),
    #10171b;
  background-size: auto, 52px 52px, 52px 52px, auto;
}

.atlas-map::before,
.atlas-map::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(196, 173, 136, .23);
  border-radius: 50%;
}

.atlas-map::before {
  top: 12%;
  right: -14%;
  bottom: 9%;
  left: 4%;
}

.atlas-map::after {
  top: 25%;
  right: 2%;
  bottom: 24%;
  left: 20%;
}

.atlas-coordinate {
  position: absolute;
  color: rgba(196, 173, 136, .55);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .14em;
}

.atlas-coordinate.top {
  top: 26px;
  right: 30px;
}

.atlas-coordinate.side {
  right: 23px;
  bottom: 29px;
  writing-mode: vertical-rl;
}

.atlas-point {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(243, 239, 231, .78);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .08em;
}

.atlas-point i {
  width: 7px;
  height: 7px;
  border: 2px solid #c4ad88;
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(196, 173, 136, .09);
}

.point-london { top: 28%; left: 28%; }
.point-boston { top: 45%; left: 9%; }
.point-kolkata { top: 48%; left: 65%; }
.point-singapore { top: 70%; left: 77%; }

.atlas-route {
  position: absolute;
  height: 1px;
  transform-origin: left;
  background: linear-gradient(90deg, rgba(196, 173, 136, .05), rgba(196, 173, 136, .6), rgba(196, 173, 136, .08));
}

.route-one {
  top: 39%;
  left: 17%;
  width: 55%;
  transform: rotate(11deg);
}

.route-two {
  top: 53%;
  left: 32%;
  width: 49%;
  transform: rotate(23deg);
}

.atlas-card:hover .atlas-map {
  background-position: 0, 3px 3px, 3px 3px, 0;
  transition: background-position 900ms cubic-bezier(.22, 1, .36, 1);
}

.portfolio-section {
  padding-top: clamp(110px, 12vw, 180px);
  padding-bottom: clamp(110px, 12vw, 180px);
  border-top: 1px solid var(--line);
}

.portfolio-section .container {
  width: 100%;
}

.portfolio-heading {
  display: grid;
  grid-template-columns: minmax(180px, .52fr) minmax(0, 1.48fr);
  gap: clamp(30px, 7vw, 110px);
  margin-bottom: 64px;
}

.portfolio-heading > div:last-child > p {
  max-width: 600px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 300;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.portfolio-grid .portfolio-item {
  min-width: 0;
  background: var(--page);
}

.portfolio-grid .portfolio-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1.34 / 1;
  background: var(--surface);
}

.portfolio-grid .portfolio-link::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: '';
  background: linear-gradient(to top, rgba(5, 9, 12, .78), rgba(5, 9, 12, .02) 60%);
}

.portfolio-grid .portfolio-link::after {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  content: '↗';
  transform: translateY(-6px);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.7) contrast(1.03);
  transition: filter 500ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.portfolio-grid .caption {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px;
}

.portfolio-grid .caption h3 {
  margin: 0;
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 400;
}

.portfolio-grid .portfolio-item:nth-child(1) .caption::before { content: '01'; }
.portfolio-grid .portfolio-item:nth-child(2) .caption::before { content: '02'; }
.portfolio-grid .portfolio-item:nth-child(3) .caption::before { content: '03'; }
.portfolio-grid .portfolio-item:nth-child(4) .caption::before { content: '04'; }
.portfolio-grid .portfolio-item:nth-child(5) .caption::before { content: '05'; }
.portfolio-grid .portfolio-item:nth-child(6) .caption::before { content: '06'; }

.portfolio-grid .caption::before {
  display: block;
  margin-bottom: 7px;
  color: #c4ad88;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .14em;
}

.portfolio-grid .portfolio-link:hover img {
  transform: scale(1.035);
  filter: saturate(.95) contrast(1.03);
}

.portfolio-grid .portfolio-link:hover::after {
  transform: translateY(0);
  opacity: 1;
}

.contact-section {
  padding-top: clamp(110px, 12vw, 180px);
  padding-bottom: clamp(110px, 12vw, 180px);
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr);
  align-items: end;
  gap: clamp(50px, 10vw, 160px);
}

.contact-copy {
  padding-bottom: 10px;
}

.contact-copy > p:first-child {
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 17px;
  font-weight: 300;
}

.reveal-email {
  width: 100%;
  cursor: pointer;
}

.reveal-email.revealed {
  border-color: var(--gold);
  background: transparent;
  color: var(--ink);
  cursor: text;
  letter-spacing: .035em;
  text-transform: none;
  user-select: text;
}

.email-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .04em;
  line-height: 1.55;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  padding: 28px clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--page);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 8px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-footer p:last-child {
  text-align: right;
}

.not-found {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(760px, calc(100% - 48px));
  min-height: 100svh;
  margin: 0 auto;
}

.not-found h1 {
  margin-bottom: 30px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(76px, 11vw, 140px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
}

.not-found h1 em {
  color: var(--gold);
  font-weight: 400;
}

.not-found > p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 38px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* Legacy portfolio content, re-presented as modern accessible chapter overlays. */
.portfolio-modal {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--page);
  color: var(--ink);
}

.portfolio-modal.is-open {
  display: block;
  animation: modal-in 320ms cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.portfolio-modal .modal-content {
  min-height: 100%;
  padding: clamp(90px, 10vw, 140px) 0 80px;
}

.portfolio-modal .container {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
}

.portfolio-modal .close-modal {
  position: fixed;
  z-index: 4;
  top: 22px;
  right: 26px;
}

.portfolio-modal .btn {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.portfolio-modal .close-modal .btn {
  display: grid;
  width: 46px;
  height: 46px;
  min-height: 0;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font-size: 0;
}

.portfolio-modal .close-modal .btn::before {
  content: '×';
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 300;
}

.portfolio-modal .fa {
  display: none;
}

.portfolio-modal .modal-body > .row.text-center:first-child h2 {
  margin-bottom: clamp(60px, 8vw, 96px);
  font-family: 'Playfair Display', serif;
  font-size: clamp(54px, 8vw, 104px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: .95;
  text-align: left;
}

.portfolio-modal .modal-body > .row:has(> .col-md-5),
.portfolio-modal .modal-body > .row:has(> .porfolio-element) {
  display: grid;
  grid-template-columns: minmax(210px, .64fr) minmax(0, 1.36fr);
  align-items: start;
  gap: clamp(34px, 6vw, 82px);
}

.portfolio-modal .modal-body > .row.text-center:has(> .portfolio-item) {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: start;
  gap: 12px;
}

.portfolio-modal .col-sm-2 { grid-column: span 2; }
.portfolio-modal .col-sm-4 { grid-column: span 2; }
.portfolio-modal .col-sm-5 { grid-column: span 3; }
.portfolio-modal .col-sm-6 { grid-column: span 3; }
.portfolio-modal .ynsig-big { grid-column: span 2; }
.portfolio-modal .ynsig-small { grid-column: span 2; }

.portfolio-modal .row > div:only-child,
.portfolio-modal .col-lg-10,
.portfolio-modal .col-lg-offset-1 {
  min-width: 0;
}

.portfolio-modal .porfolio-element,
.portfolio-modal .portfolio-element:not(.write-up) {
  display: flex;
  justify-content: center;
}

.portfolio-modal img {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
}

.portfolio-modal .modal-body > .row.text-center.art-gallery--fine:has(> .portfolio-item),
.portfolio-modal .modal-body > .row.text-center.art-gallery--posters:has(> .portfolio-item) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-modal .modal-body > .row.text-center.art-gallery--pair:has(> .portfolio-item),
.portfolio-modal .modal-body > .row.text-center.art-gallery--campaign:has(> .portfolio-item) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-modal .art-gallery .portfolio-item {
  display: grid;
  overflow: hidden;
  min-width: 0;
  grid-column: span 1;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}

.portfolio-modal .art-gallery img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.portfolio-modal .art-gallery--fine .portfolio-item {
  aspect-ratio: 4 / 5;
}

.portfolio-modal .art-gallery--pair .portfolio-item,
.portfolio-modal .art-gallery--campaign .apmun-big {
  aspect-ratio: 7 / 5;
}

.portfolio-modal .art-gallery--posters .portfolio-item,
.portfolio-modal .art-gallery--campaign .apmun-small {
  aspect-ratio: 3 / 4;
}

.portfolio-modal .art-gallery--campaign .apmun-small {
  width: min(32%, 320px);
  grid-column: 1 / -1;
  justify-self: center;
}

.portfolio-modal .entity-mark {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 6vw, 72px);
  font-style: italic;
}

.portfolio-modal .organization-logo {
  width: min(100%, 280px);
  max-height: 250px;
  padding: 24px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: contain;
}

.portfolio-modal h3 {
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.portfolio-modal h4 {
  margin-bottom: 7px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}

.portfolio-modal h5 {
  margin-bottom: 25px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.portfolio-modal h2 + h3,
.portfolio-modal .row.text-center > h3 {
  text-align: left;
}

.portfolio-modal p,
.portfolio-modal li {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
}

.portfolio-modal .item-details {
  padding-left: 19px;
}

.portfolio-modal .item-details li {
  margin-bottom: 8px;
}

.portfolio-divider {
  width: 100%;
  height: 1px;
  margin: clamp(50px, 7vw, 86px) 0;
  border: 0;
  background: var(--line);
}

.portfolio-modal .modal-body > .row.text-center:not(:first-child):not(:has(> .portfolio-item)) {
  text-align: left;
}

.portfolio-modal .modal-body > .row.text-center:last-child {
  margin-top: 48px;
  text-align: center;
}

.portfolio-modal .with-border {
  border: 1px solid var(--line);
}

.js .reveal {
  transform: translateY(22px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .intro {
    grid-template-columns: 1fr minmax(245px, .55fr);
    gap: 44px;
  }

  .site-menu {
    gap: 18px;
  }

  .site-menu > a:not(.travelogue-tab) {
    display: none;
  }

  .about-section {
    grid-template-columns: 40px minmax(190px, .58fr) minmax(0, 1fr);
  }

  .about-section .section-label {
    display: none;
  }

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

@media (max-width: 760px) {
  body {
    background: var(--page);
  }

  .site-nav {
    height: 66px;
    padding: 0 18px;
  }

  .site-mark {
    font-size: 16px;
  }

  .site-menu {
    position: fixed;
    z-index: 1;
    top: 65px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px;
    transform: translateY(-120%);
    border-bottom: 1px solid var(--line);
    background: var(--page);
    opacity: 0;
    transition: transform 240ms ease, opacity 180ms ease;
  }

  .site-nav.menu-open .site-menu {
    transform: translateY(0);
    opacity: 1;
  }

  .site-mark,
  .nav-toggle {
    position: relative;
    z-index: 2;
  }

  .site-menu > a:not(.travelogue-tab) {
    display: block;
    padding: 15px 3px;
    border-bottom: 1px solid var(--line);
  }

  .travelogue-tab {
    justify-content: center;
    margin-top: 16px;
    margin-right: 52px;
  }

  .theme-button {
    position: absolute;
    right: 18px;
    bottom: 21px;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }

  .nav-toggle > span:not(.sr-only) {
    width: 16px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .site-nav.menu-open .nav-toggle > span:first-child {
    transform: translateY(3px) rotate(45deg);
  }

  .site-nav.menu-open .nav-toggle > span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 58px;
    min-height: auto;
    padding: 122px 24px 84px;
  }

  .intro::before,
  .hero-index {
    display: none;
  }

  .hero-copy {
    padding: 0;
  }

  .intro h1 {
    font-size: clamp(72px, 22vw, 108px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .hero-notes {
    width: 100%;
    margin: 0;
  }

  .section-shell {
    width: calc(100% - 40px);
  }

  .about-section {
    display: block;
    padding-top: 92px;
    padding-bottom: 92px;
  }

  .about-portrait {
    width: min(220px, 62vw);
    margin: 0 10px 42px auto;
  }

  .about-section .section-number,
  .portfolio-heading .section-number {
    margin-bottom: 28px;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-links a:nth-child(2) {
    border-right: 0;
  }

  .social-links a:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

  .atlas-card {
    grid-template-columns: 1fr;
    min-height: 680px;
  }

  .atlas-copy {
    justify-content: flex-start;
    padding: 42px 30px;
    background: linear-gradient(to bottom, rgba(9, 13, 18, 1), rgba(9, 13, 18, .88) 78%, transparent);
  }

  .atlas-map {
    min-height: 310px;
  }

  .portfolio-heading,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .portfolio-grid .portfolio-link {
    aspect-ratio: 1.55 / 1;
  }

  .portfolio-modal .container {
    width: calc(100% - 36px);
  }

  .portfolio-modal .modal-content {
    padding-top: 90px;
  }

  .portfolio-modal .modal-body > .row:has(> .col-md-5),
  .portfolio-modal .modal-body > .row:has(> .porfolio-element) {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .portfolio-modal .porfolio-element,
  .portfolio-modal .portfolio-element:not(.write-up) {
    justify-content: flex-start;
  }

  .portfolio-modal .porfolio-element img,
  .portfolio-modal .portfolio-element:not(.write-up) img,
  .portfolio-modal .entity-mark {
    width: min(68%, 260px);
  }

  .portfolio-modal .modal-body > .row.text-center:has(> .portfolio-item) {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-modal .col-sm-2,
  .portfolio-modal .col-sm-4,
  .portfolio-modal .col-sm-5,
  .portfolio-modal .col-sm-6,
  .portfolio-modal .ynsig-big,
  .portfolio-modal .ynsig-small {
    grid-column: span 1;
  }

  .portfolio-modal .modal-body > .row.text-center.art-gallery:has(> .portfolio-item) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-modal .art-gallery--posters .portfolio-item:last-child {
    width: calc(50% - 6px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .portfolio-modal .art-gallery--campaign .apmun-small {
    width: calc(50% - 6px);
    grid-column: 1 / -1;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer p:last-child {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
