/* Design language borrowed from The Lock Suite: charcoal rack units, white
   translucent buttons, small lamps, one red accent. */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/Geist-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #141414;
  --panel: #222;
  --edge: #0d0d0d;
  --text: #f7f7f7;
  --dim: #a8a8a8;
  --red: #ca4343;
  --white: #f7f7f7;
  --gray: #333;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Geist", system-ui, sans-serif;
  padding: 16px;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* a rack unit */
.rack {
  max-width: 1200px;
  margin: 0 auto 14px;
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 6px 18px rgba(0,0,0,.35);
  overflow: hidden;
  scroll-margin-top: 14px;
}
.plate { padding: clamp(24px, 5vw, 52px); }

.bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img:first-child { border-radius: 8px; }
.wordmark { width: clamp(190px, 28vw, 300px); }
nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  margin-bottom: 20px;
}
h2::before, .services li::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 8px var(--red);
}
p + p { margin-top: 14px; }
.big { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; text-wrap: balance; }
.lead { margin-top: 18px; font-size: 1.2rem; color: var(--white); }

.services, .social { list-style: none; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 28px 0; }
.services li { display: flex; align-items: baseline; gap: 10px; }
.services li::before { transform: translateY(-1px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px;
  font-size: .9rem; font-weight: 700; text-decoration: none;
  background: linear-gradient(#3d3d3d, var(--gray));
  border: 1px solid var(--edge); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 1px 3px rgba(0,0,0,.5);
}
.btn:hover { color: var(--red); background: linear-gradient(#454545, #3a3a3a); }
.btn.primary { color: #161616; background: linear-gradient(var(--white), #dcdcdc); }
.btn.primary:hover { color: #2a0806; background: linear-gradient(#ffd2ce, #f4675f); }
.btn:active { transform: translateY(1px); }

.hero { display: grid; }
.intro { align-self: center; }
.shot { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }

.split { display: grid; }
.split .plate { align-self: center; }
.split figure { position: relative; }
.split figure img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.studio figure img { aspect-ratio: 16 / 9; }

/* cover gallery */

/* flipping mosaic (built by mosaic.js; without it only "See all" is shown) */
.mosaic, .pause { display: none; }
.live .mosaic { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; list-style: none; margin-bottom: 20px; }
.mosaic li { aspect-ratio: 1; perspective: 700px; }
.mosaic a { position: relative; display: block; height: 100%; border-radius: 4px; overflow: hidden; background: var(--edge); box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic span { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; background: linear-gradient(transparent 20%, rgba(10,10,10,.92)); font-size: .8rem; line-height: 1.3; opacity: 0; transition: opacity .15s; overflow: hidden; }
.mosaic b, .mosaic i { display: block; overflow-wrap: anywhere; }
.mosaic i { font-style: normal; color: var(--dim); }
@media (hover: hover) { .mosaic a:hover span { opacity: 1; } }
.mosaic a:focus-visible span, .mosaic a.shown span { opacity: 1; }
.mosaic a:focus-visible { outline-offset: -3px; }
.all > summary { list-style: none; width: max-content; cursor: pointer; user-select: none; }
.all > summary::-webkit-details-marker { display: none; }
.all .less, .all[open] .more { display: none; }
.all[open] .less { display: inline; }
.live { position: relative; }
.live .pause:not([hidden]) { display: inline-flex; position: absolute; top: clamp(14px, 3vw, 38px); right: clamp(24px, 5vw, 52px); min-height: 32px; padding: 0 14px; font-family: inherit; color: var(--text); cursor: pointer; }
.live .pause:hover { color: var(--red); }
.covers { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; margin-top: 28px; }
.covers a { display: block; text-decoration: none; line-height: 1.35; }
.covers img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--edge); box-shadow: 0 3px 10px rgba(0,0,0,.45); margin-bottom: 10px; transition: transform .15s; }
.covers a:hover img, .covers a:focus-visible img { transform: translateY(-3px); }
.covers a:hover span { color: var(--red); }
.covers span, .covers small { display: block; overflow-wrap: anywhere; }
.covers span { font-size: .9rem; font-weight: 700; }
.covers small { font-size: .8rem; color: var(--dim); }
@media (min-width: 640px) { .covers { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .covers img { transition: none; } }

.social { display: flex; flex-wrap: wrap; gap: 12px; margin-left: -8px; }
.social a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; color: var(--white); transition: color .15s; }
.social a:hover { color: var(--red); }
.social svg { width: 32px; height: 32px; fill: currentColor; }
.legal { margin-top: 28px; font-size: .85rem; color: var(--dim); }

@media (min-width: 860px) {
  .hero { grid-template-columns: 5fr 6fr; min-height: 520px; }
  .shot { min-height: 100%; }
  .split { grid-template-columns: 1fr 1fr; }
  /* rows alternate: photo right, then photo left (phones keep text first) */
  .flip figure { order: -1; }
  .studio { grid-template-columns: 3fr 2fr; }
}
@media (max-width: 520px) {
  body { padding: 16px; }
  nav { width: 100%; }
  nav { gap: 6px; }
  nav .btn { padding: 0 2px; font-size: .8rem; }
}
