:root {
  --navy: #0A121C;
  --paper: #F9F4EC;
  --bronze: #B87333;
  --stamp: #6B3A12;
  --sans: "Arial Narrow", "Helvetica Neue Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
html, body, * { min-width: 0; }
body {
  min-height: 100svh;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  letter-spacing: 0.01em;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.12em; }
a:focus-visible { outline: 1px solid var(--paper); outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.frame {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
}
.spine,
.stage,
main,
footer {
  max-width: 100%;
  min-width: 0;
}
.spine {
  padding: 1.2rem 0.85rem 1.4rem;
  border-right: 1px solid rgba(249, 244, 236, 0.18);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.spine .name {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0;
  overflow: visible;
  white-space: normal;
  overflow-wrap: break-word;
}
.spine .name a { text-decoration: none; }
.spine nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}
.spine nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.1rem;
}
.spine nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.18em; }

.stage {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.hero-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 25%);
  align-items: stretch;
  width: 100%;
}
.hero {
  min-height: 0;
  height: 66vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  padding: 0.6rem 0.8rem;
}
.hero img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cap {
  padding: 1.1rem 1rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}
.cap p { margin: 0; }
.stamp {
  background: var(--paper);
  color: var(--stamp);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  padding: 0.5rem 0.6rem;
  margin: 0;
  display: inline-block;
  max-width: 100%;
}

.squares {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8vh 4vw;
  padding: 8vh 4vw;
  width: 100%;
}
.sq {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  min-width: 0;
}
.sq:has(.cap) {
  grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 25%);
}
.sq-frame {
  aspect-ratio: 1;
  width: 100%;
  position: relative;
  background: var(--navy);
  min-width: 0;
}
.sq-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.sq .cap { padding: 0.2rem 0 0; justify-content: flex-start; }

main.page {
  padding: 1.4rem 1.2rem 3.2rem;
  max-width: min(38rem, 100%);
  width: 100%;
}
h1 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin: 0 0 1rem;
}
.bio { white-space: pre-line; overflow-wrap: break-word; }
.page p { overflow-wrap: break-word; max-width: 100%; }
.studio img {
  width: 100%;
  height: auto;
  margin: 0 0 8vh;
}
.page > img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.2rem;
}

form {
  display: grid;
  gap: 0.85rem;
  max-width: 22rem;
  width: 100%;
  margin-top: 1rem;
}
form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
input, textarea, button {
  font: inherit;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  box-sizing: border-box;
}
input, textarea {
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(249, 244, 236, 0.35);
  padding: 0.65rem 0.7rem;
}
textarea { min-height: 8rem; resize: vertical; }
button {
  font: inherit;
  background: var(--paper);
  color: var(--navy);
  border: 0;
  padding: 0.7rem 1rem;
  justify-self: start;
  width: auto;
  min-width: 44px;
  cursor: pointer;
}

footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.9rem 1.2rem;
  font-size: 0.75rem;
  margin-top: auto;
}
footer .by { color: var(--paper); text-decoration: none; }

@media (max-width: 700px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .spine {
    flex-direction: column;
    align-items: stretch;
    border-right: 0;
    border-bottom: 1px solid rgba(249, 244, 236, 0.18);
    padding: 0.55rem 0.8rem 0.35rem;
    gap: 0.15rem;
  }
  .spine .name {
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: 0.03em;
    white-space: nowrap;
    font-size: 0.95rem;
  }
  .spine nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.15rem 0.45rem;
  }
  .spine nav a {
    min-height: 44px;
    padding: 0.55rem 0.4rem;
  }
  .hero-work,
  .sq { grid-template-columns: minmax(0, 1fr); }
  .hero {
    height: auto;
    min-height: 0;
    padding: 0.6rem 0.8rem 0;
  }
  .hero img { max-height: 70vh; width: 100%; }
  .squares {
    grid-template-columns: minmax(0, 1fr);
    gap: 6vh;
    padding: 6vh 0.8rem;
  }
  .sq-frame {
    aspect-ratio: auto;
    position: static;
    max-height: 70vh;
  }
  .sq-frame img {
    position: static;
    max-height: 70vh;
    width: 100%;
    height: auto;
  }
  main.page { padding: 1.1rem 0.9rem 3rem; }
}
