﻿:root {
  --ink: #16121c;
  --muted: #6e6578;
  --soft: #5c5368;
  --line: #e4dced;
  --bg: #f6f2fb;
  --paper: #ffffff;
  --violet: #5b238a;
  --violet-deep: #3c1766;
  --lilac: #c9b3e6;
  --header: 72px;
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: #e4d4f4; color: var(--violet-deep); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 200;
}

.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:focus { top: 12px; }

.splash {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #0c0c0c;
  color: #f3eef8;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash-lockup {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.splash .logo-mark {
  width: min(34vw, 150px);
  height: auto;
}

.splash-word {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: splash-word 0.45s ease forwards;
  animation-delay: 2.05s;
}

.splash .is-draw .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: logo-draw 0.55s ease forwards;
  animation-delay: calc(var(--i) * 0.2s);
}

.splash.is-static .draw {
  stroke-dashoffset: 0;
  animation: none;
}

.splash.is-static .splash-word {
  opacity: 1;
  animation: none;
}

.splash.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 4px solid var(--violet);
  box-shadow: 0 4px 0 var(--lilac);
}

.logo {
  justify-self: start;
  color: var(--violet);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.logo.has-mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 0;
}

.logo.has-mark .logo-mark {
  width: 30px;
  height: 38px;
  display: block;
}

body[data-page="projects"] .site-menu { top: 118px; }

.logo[aria-expanded="true"] { opacity: 1; }

.disciplines {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 42px);
}

.disc { position: relative; }

.disc > a,
.finder select,
.finder input {
  color: var(--soft);
  font-size: 14.5px;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.disc > a.is-active,
.disc:hover > a,
.disc:focus-within > a { color: var(--violet); }

.disc-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 190px;
  padding: 14px 0 10px;
  background: var(--paper);
  border-top: 3px solid var(--violet);
  box-shadow: 8px 8px 0 #eadff6;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease;
}

.disc:hover .disc-menu,
.disc:focus-within .disc-menu {
  opacity: 1;
  visibility: visible;
}

.disc-menu a {
  display: block;
  padding: 5px 18px;
  color: var(--muted);
  font-size: 14px;
}

.disc-menu a:hover,
.disc-menu a.is-active { color: var(--violet); }

.finder {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.finder svg { flex: 0 0 auto; color: var(--soft); }

.finder input {
  width: 128px;
  border: 0;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  color: var(--ink);
}

.finder input::placeholder {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finder select {
  border: 0;
  background: transparent;
  cursor: pointer;
  max-width: 130px;
}

.site-menu {
  position: fixed;
  z-index: 45;
  top: 86px;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--pad);
  transform: translateX(-100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease, visibility 0.35s ease;
}

body.menu-open .site-menu {
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-menu a {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3a3a3a;
  padding: 4px 0;
}

.site-menu a:hover,
.site-menu a[aria-current="page"] { color: var(--violet); }

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: transparent;
  border: 0;
  display: none;
}

body.menu-open .menu-backdrop { display: block; }

.projects {
  padding: 28px var(--pad) 40px;
}

.project[hidden] { display: none; }

.project {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: start;
  padding: clamp(48px, 6vw, 88px) 0;
}

.project-meta { max-width: 240px; }

.mark {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: var(--violet);
}

.project h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.project p {
  margin: 6px 0 0;
  color: var(--violet);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-media {
  max-width: 860px;
  margin-left: auto;
}

.project-media img {
  width: 100%;
  height: auto;
  background: #f4f4f4;
  box-shadow: 12px 12px 0 #e4d4f4;
}

.hero-figure button,
.stack button {
  display: block;
  width: 100%;
  cursor: zoom-in;
}

.project:hover h2 { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

.empty {
  padding: 80px 0 120px;
  color: var(--muted);
  font-size: 15px;
}

.page {
  padding: 48px var(--pad) 20px;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr);
  gap: 48px;
  align-items: end;
  max-width: 1180px;
  margin-bottom: 48px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.lede {
  margin: 0;
  max-width: 42ch;
  color: #333;
  font-size: 17px;
}

.hero-figure { margin: 0 0 56px; }

.hero-figure img,
.stack img {
  width: 100%;
  height: auto;
  background: #f3f3f3;
  box-shadow: 12px 12px 0 #e4d4f4;
}

.project-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 48px;
  align-items: start;
  max-width: 1100px;
}

.facts { position: sticky; top: 96px; }

.facts div + div { margin-top: 22px; }

.facts h2 {
  margin: 0 0 4px;
  color: var(--violet);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts p { margin: 0; font-size: 15px; }

.prose p { margin: 0 0 18px; font-size: 17px; line-height: 1.55; }

.prose h2 {
  margin: 28px 0 10px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stack { display: grid; gap: 18px; margin: 56px 0; }

.stack img.is-portrait { width: min(100%, 560px); }

.share {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.share a:hover { color: var(--ink); }

.next-project {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 28px;
  border-top: 3px solid var(--violet);
}

.next-project span {
  color: var(--violet);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.next-project strong {
  display: block;
  margin-top: 6px;
  color: var(--violet);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.statement {
  max-width: 18em;
  margin: 0 0 64px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.statement::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 22px;
  background: var(--violet);
  box-shadow: 72px 0 0 var(--lilac);
  transform-origin: left center;
  animation: studio-bar 0.8s ease both;
}

.split {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px);
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.split h2 {
  margin: 0;
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.split p { margin: 0 0 14px; font-size: 17px; }

.values, .services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li, .services li { padding-top: 8px; }

.studio-flow {
  display: grid;
  gap: 22px;
  margin: 8px 0 56px;
}

.flow-panel {
  position: relative;
  max-width: 680px;
  padding: 28px 32px 32px;
  background: var(--paper);
  box-shadow: 12px 12px 0 #e4d4f4;
  animation: studio-rise 0.7s ease both;
}

.flow-panel:nth-child(2) { animation-delay: 0.12s; }
.flow-panel:nth-child(3) { animation-delay: 0.22s; }
.flow-panel:nth-child(4) { animation-delay: 0.32s; }

.flow-panel:hover { box-shadow: 18px 18px 0 #d7c4ee; }

.flow-panel.is-wide { max-width: none; }

.flow-index {
  margin: 0 0 6px;
  color: var(--lilac);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.flow-panel h2 {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flow-panel > p:last-child {
  margin: 0;
  max-width: 38em;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.studio-flow .values,
.studio-flow .services {
  gap: 12px 16px;
}

.studio-flow .values li,
.studio-flow .services li {
  margin: 0;
  padding: 14px 16px;
  background: var(--bg);
  border-left: 3px solid var(--violet);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.studio-flow .values li:nth-child(even),
.studio-flow .services li:nth-child(even) {
  margin-top: 22px;
  border-left-color: #8d63c4;
}

.studio-flow .values li:hover,
.studio-flow .services li:hover {
  background: #fff;
  box-shadow: 8px 8px 0 #e4d4f4;
  transform: translateX(8px);
}

@media (min-width: 901px) {
  .flow-panel.is-shift {
    justify-self: end;
    margin-top: -36px;
    background: var(--violet);
    color: #f6f1fb;
    box-shadow: -14px 14px 0 var(--lilac);
  }

  .flow-panel.is-shift:hover { box-shadow: -20px 20px 0 #d7c4ee; }

  .flow-panel.is-shift .flow-index { color: rgba(255, 255, 255, 0.35); }

  .flow-panel.is-shift h2 { color: #f0e6fa; }
}

@keyframes studio-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes studio-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes splash-word {
  to { opacity: 1; }
}

.person {
  display: grid;
  grid-template-columns: 280px minmax(0, 640px);
  gap: 48px;
  align-items: start;
}

.monogram {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--violet);
  color: #fff;
  box-shadow: 12px 12px 0 var(--lilac);
}

.monogram svg { width: 92px; height: 92px; }

.person h1 { font-size: clamp(36px, 4vw, 56px); }

.person-copy { margin-top: 28px; }

.meta-line {
  margin: 14px 0 0;
  color: var(--violet);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(240px, 360px);
  gap: 64px;
  align-items: start;
}

form { display: grid; gap: 18px; }

label { display: grid; gap: 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

input[type="text"], input[type="email"], textarea, select.field {
  border: 0;
  border-bottom: 1px solid #ccc;
  border-radius: 0;
  padding: 10px 0;
  background: transparent;
  text-transform: none;
  letter-spacing: 0;
  font-size: 16px;
  color: var(--ink);
}

textarea { min-height: 120px; resize: vertical; }

.submit {
  justify-self: start;
  margin-top: 8px;
  padding: 12px 18px;
  background: var(--violet);
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.submit:hover { background: var(--violet-deep); }

.form-note { margin: 0; min-height: 1.4em; color: var(--muted); }

.contact-side a { text-decoration: underline; text-underline-offset: 3px; }

.contact-kicker { margin-top: 32px; }

.site-footer {
  margin-top: 80px;
  padding: 48px var(--pad) 36px;
  background: var(--violet-deep);
  color: #f6f1fb;
  border-top: 6px solid var(--lilac);
}

.foot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 980px;
  margin: 0 auto 48px;
}

.foot-row details { border-top: 1px solid rgba(255, 255, 255, 0.22); padding-top: 12px; }

.foot-row summary {
  cursor: pointer;
  list-style: none;
  color: #f0e6fa;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-row summary::-webkit-details-marker { display: none; }

.foot-direct {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 12px;
  color: #f0e6fa;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-direct:hover { color: #fff; }

.foot-row details p,
.foot-row details a { display: block; margin: 12px 0 0; font-size: 15px; }

.to-top {
  display: block;
  margin: 12px auto 0;
  color: #f6f1fb;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox img { max-width: min(1100px, 100%); max-height: 90vh; width: auto; height: auto; }

.lightbox button {
  position: absolute;
  top: 18px;
  right: 22px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo finder" "disciplines disciplines";
    padding-top: 14px;
    padding-bottom: 10px;
  }

  .logo { grid-area: logo; }
  .finder { grid-area: finder; }
  .disciplines {
    grid-area: disciplines;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .project,
  .page-intro,
  .project-layout,
  .split,
  .person,
  .contact-grid,
  .foot-row {
    grid-template-columns: 1fr;
  }

  .facts { position: static; }
  .finder input { width: 88px; }
  .values, .services { grid-template-columns: 1fr; }
  .studio-flow .values li:nth-child(even),
  .studio-flow .services li:nth-child(even) { margin-top: 0; }
  .project-media img,
  .hero-figure img,
  .stack img,
  .monogram { box-shadow: 8px 8px 0 #e4d4f4; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .splash, .site-menu { transition: none; }
  .flow-panel,
  .statement::after,
  .splash .draw,
  .splash-word { animation: none; }
  .splash .draw { stroke-dashoffset: 0; }
  .splash-word { opacity: 1; }
  .studio-flow .values li,
  .studio-flow .services li { transition: none; }
}

