:root {
  --paper: #f6f6f6; /* matches the daisy image background so it blends in */
  --card: #ffffff;
  --ink: #1c1b1a;
  --muted: #74706a;
  --line: #e2e2e2;
  --rose: #b8324f;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rose); }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }

.intro { max-width: 1400px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--pad) 0; }
.top { max-width: 1400px; margin: 0 auto; padding: clamp(24px, 4vw, 40px) var(--pad) 0; }
.logo img { width: 108px; height: 50px; }
.about { display: grid; gap: 14px; max-width: 40em; }
.lede { font: 400 clamp(19px, 2vw, 24px)/1.45 var(--serif); letter-spacing: -0.01em; }
.founders { color: var(--muted); }
.founders b { color: var(--ink); font-weight: 600; }

.hero { max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.hero img {
  width: 100%;
  /* feather the edges so the photo's background melts into the page */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  mask-composite: intersect;
}
.hero figcaption, .post time { font-size: 12px; color: var(--muted); }
.hero figcaption { padding-top: 10px; }

.section { max-width: 1400px; margin: clamp(80px, 11vw, 140px) auto 0; padding: 0 var(--pad); }
.head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--ink); padding-top: 14px; margin-bottom: 28px; }
.head h2 { font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); letter-spacing: -0.02em; }
.head p { font-size: 13px; color: var(--muted); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 20px); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--card); transition: transform 0.6s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s; }
.tile:hover img { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.35); }
.cap { display: flex; justify-content: space-between; gap: 8px; padding-top: 9px; font-size: 14px; font-weight: 600; }
.cap small { font-weight: 400; color: var(--muted); font-size: 12px; white-space: nowrap; }
.tile:hover .cap { color: var(--rose); }

.embed { position: relative; aspect-ratio: 16 / 9; background: #eceae4; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.posts { columns: 3 300px; column-gap: clamp(20px, 3vw, 40px); }
.post { break-inside: avoid; display: grid; gap: 8px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.post figure { margin-bottom: 6px; }
.post h3 { font: 400 20px/1.3 var(--serif); letter-spacing: -0.01em; }
.post p { font-size: 14px; color: #45423d; }
.post .embed { margin: 6px 0; }

.contact .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.contact h3 { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact p { font: 400 16px/1.7 var(--serif); }

.foot { max-width: 1400px; margin: clamp(80px, 10vw, 120px) auto 0; padding: 28px var(--pad) 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot p { margin: 0; }

/* Project viewer */
.viewer { width: min(1200px, 100vw - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.viewer::backdrop { background: rgba(28, 27, 26, 0.72); }
.viewer-inner { display: grid; position: relative; }
.stage { position: relative; background: #f1efe9; display: grid; place-items: center; min-height: 240px; }
.stage img { max-height: min(72dvh, 760px); width: auto; }
.viewer button { border: 0; background: rgba(255, 255, 255, 0.9); color: var(--ink); cursor: pointer; font: 300 28px/1 var(--sans); width: 44px; height: 44px; border-radius: 50%; }
.viewer button:hover { background: #fff; color: var(--rose); }
.close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); }
.prev { left: 10px; } .next { right: 10px; }
.info { padding: 20px 24px 26px; display: grid; gap: 6px; }
.info h3 { font: 400 24px/1.2 var(--serif); }
.info .count { font-size: 12px; color: var(--muted); }
.info .body p { font-size: 14px; max-width: 60em; margin-top: 6px; }
@media (min-width: 900px) {
  .viewer-inner { grid-template-columns: 1fr 320px; }
  .stage { min-height: 70dvh; }
  .info { align-content: start; padding-top: 64px; border-left: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Video facade */
.play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #e9e7e1; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(.2,.7,.2,1); }
.play:hover img { transform: scale(1.02); }
.play-icon { position: relative; width: 72px; height: 72px; border-radius: 50%; background: rgba(28, 27, 26, 0.78); transition: background 0.2s, transform 0.2s; }
.play-icon::after { content: ''; position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.play:hover .play-icon, .play:focus-visible .play-icon { background: var(--rose); transform: scale(1.06); }
.play-title { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; background: rgba(255, 255, 255, 0.92); font: 600 12px/1.3 var(--sans); color: var(--ink); }
@media (max-width: 560px) { .play-icon { width: 56px; height: 56px; } .play-icon::after { left: 22px; top: 17px; border-width: 11px 0 11px 17px; } }
