:root {
  --bg: #ffffff;
  --fg: #050505;
  --muted: #777777;
  --line: #dedede;
  --soft: #f5f5f5;
  --max: 1520px;
  --sidebar: 292px;
  --gap: clamp(18px, 3vw, 44px);
  --h1: clamp(42px, 8vw, 124px);
  --h2: clamp(28px, 4vw, 64px);
  --h3: clamp(18px, 1.6vw, 26px);
  --body: clamp(15px, 1.08vw, 18px);
  --small: clamp(11px, .85vw, 13px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .58; }
button, input, textarea { font: inherit; }
::selection { background: #111; color: #fff; }

.site-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 54px);
  display: grid;
  grid-template-columns: minmax(220px, var(--sidebar)) 1fr;
  gap: var(--gap);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-link { display: block; width: min(100%, 280px); }
.logo-img { width: 100%; height: auto; }
.logo-text { margin-top: 20px; }
.logo-name {
  display: block;
  font-size: clamp(31px, 3.8vw, 52px);
  line-height: .75;
  font-weight: 900;
  letter-spacing: -.08em;
  text-transform: uppercase;
}
.logo-first {
  font-weight: 100;
  letter-spacing: .08em;
}
.claim {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--small);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.nav {
  margin-top: 52px;
  display: grid;
  gap: 15px;
}
.nav a {
  width: fit-content;
  font-size: clamp(21px, 2vw, 34px);
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.nav a.is-active { border-color: var(--fg); }
.sidebar-bottom {
  margin-top: 60px;
  color: var(--muted);
  font-size: var(--small);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.sidebar-bottom a { display: block; margin-top: 8px; }

.mobile-header { display: none; }

main { min-width: 0; }
.page-kicker {
  margin: 3px 0 18px;
  color: var(--muted);
  font-size: var(--small);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.page-title {
  margin: 0 0 clamp(28px, 5vw, 76px);
  font-size: var(--h1);
  line-height: .82;
  font-weight: 900;
  letter-spacing: -.075em;
  text-transform: uppercase;
  max-width: 1000px;
}
.page-intro {
  max-width: 780px;
  margin: -44px 0 64px;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1.26;
}

.hero {
  min-height: calc(100vh - 108px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-logo {
  width: min(100%, 950px);
  margin-bottom: 62px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 150px);
  line-height: .82;
  font-weight: 900;
  letter-spacing: -.09em;
  text-transform: uppercase;
}
.hero .thin {
  font-weight: 100;
  letter-spacing: .05em;
}
.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 26px);
  line-height: 1.24;
  margin-top: 25px;
}
.home-categories {
  margin-top: clamp(42px, 8vw, 110px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.category-card {
  position: relative;
  overflow: hidden;
  background: var(--soft);
  min-height: clamp(330px, 42vw, 590px);
}
.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%);
  transition: filter .35s ease, transform .35s ease;
}
.category-card:hover img { filter: grayscale(0%); transform: scale(1.025); }
.category-card span {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fff;
  font-size: clamp(32px, 4.8vw, 76px);
  line-height: .85;
  font-weight: 900;
  letter-spacing: -.07em;
  text-transform: uppercase;
  text-shadow: 0 1px 20px rgba(0,0,0,.35);
}

.project-grid {
  columns: 3 250px;
  column-gap: 18px;
}
.project-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  cursor: pointer;
  position: relative;
}
.project-card figure { margin: 0; }
.project-card img {
  width: 100%;
  background: var(--soft);
  filter: grayscale(100%);
  transition: filter .28s ease, transform .28s ease;
}
.project-card:hover img { filter: grayscale(0%); }
.card-caption {
  padding-top: 8px;
  display: grid;
  gap: 2px;
}
.card-title {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .95;
  font-size: clamp(17px, 1.3vw, 23px);
}
.card-meta {
  color: var(--muted);
  font-size: var(--small);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(300px, 780px);
  gap: clamp(28px, 4.5vw, 72px);
  align-items: start;
}
.about-photo { background: var(--soft); }
.about-copy h2 {
  margin: 0 0 12px;
  font-size: var(--h2);
  line-height: .92;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.about-copy .subline {
  color: var(--muted);
  font-size: var(--small);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.about-copy p { margin: 0 0 22px; max-width: 760px; }
.contact-panel {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: clamp(18px, 1.4vw, 25px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.credits-section { margin-top: clamp(58px, 8vw, 112px); }
.credits-section h2 {
  margin: 0 0 24px;
  font-size: var(--h2);
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
}
.credit-columns {
  columns: 2 300px;
  column-gap: 42px;
}
.credit-group { break-inside: avoid; margin: 0 0 32px; }
.credit-group h3 {
  margin: 0 0 12px;
  font-size: var(--h3);
  text-transform: uppercase;
  letter-spacing: -.035em;
}
.credit-group ul { list-style: none; padding: 0; margin: 0; }
.credit-group li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(14px, 1vw, 16px);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background: rgba(255,255,255,.96);
  padding: clamp(18px, 3vw, 48px);
}
.lightbox.is-open { display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; }
.lightbox-media { min-height: 0; display: flex; align-items: center; justify-content: center; }
.lightbox-media img { max-height: calc(100vh - 96px); width: auto; max-width: 100%; object-fit: contain; filter: none; }
.lightbox-info { align-self: center; }
.lightbox-info h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 72px);
  line-height: .85;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.lightbox-meta { color: var(--muted); margin-bottom: 24px; text-transform: uppercase; letter-spacing: .08em; font-size: var(--small); }
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  border: 0;
  background: transparent;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}

.legal { max-width: 850px; }
.legal h2 { margin-top: 48px; font-size: var(--h3); text-transform: uppercase; }
.placeholder {
  padding: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.footer {
  grid-column: 2;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 90px;
  color: var(--muted);
  font-size: var(--small);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

/* Editor */
.editor-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
}
.editor-page h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 7vw, 96px);
  line-height: .84;
  letter-spacing: -.07em;
  text-transform: uppercase;
}
.editor-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.btn {
  border: 1px solid var(--fg);
  background: var(--fg);
  color: #fff;
  padding: 12px 15px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  cursor: pointer;
}
.btn.secondary { background: #fff; color: var(--fg); }
.btn.danger { background: #fff; color: #9d0000; border-color: #9d0000; }
.editor-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.editor-section h2 { margin: 0 0 16px; text-transform: uppercase; letter-spacing: -.04em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(220px,1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 12px;
  min-height: 46px;
  background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.project-editor-card {
  border: 1px solid var(--line);
  padding: 16px;
  margin: 0 0 16px;
  background: #fff;
}
.editor-small { color: var(--muted); font-size: 14px; max-width: 760px; }

@media (max-width: 980px) {
  .site-shell { display: block; padding: 18px; }
  .sidebar { display: none; }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 38px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 10px 0;
  }
  .mobile-header img { width: 174px; }
  .mobile-nav { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
  .mobile-nav a { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
  .home-categories { grid-template-columns: 1fr; }
  .category-card { min-height: 430px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 440px; }
  .lightbox.is-open { grid-template-columns: 1fr; overflow: auto; }
  .lightbox-media img { max-height: 64vh; }
  .footer { grid-column: auto; }
  .page-intro { margin-top: -18px; }
}

@media (max-width: 620px) {
  .mobile-header { align-items: flex-start; }
  .mobile-nav { max-width: 180px; }
  .project-grid { columns: 1; }
  .hero-logo { margin-bottom: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 330px; }
  .footer { margin-top: 56px; }
}
img.is-broken {
  min-height: 280px;
  background: repeating-linear-gradient(135deg, #f3f3f3 0, #f3f3f3 14px, #ededed 14px, #ededed 28px);
  border: 1px solid var(--line);
}
