/* Caldestante Productions: preview A
   Home after Whole Earth Index (ruled grid), project pages after Yuri Roga (modular cards). */

@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("/fonts/inter-tight-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url("/fonts/inter-tight-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("/fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/fonts/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --bg: #0b0b0c;
  --card: #151619;
  --card-2: #1b1d21;
  --rule: rgba(255, 255, 255, .22);
  --line: #24262b;
  --text: #ecedef;
  --muted: #9a9ea6;
  --dim: #5f636b;
  --accent: #42cef6;
  --pad: 28px;
  --gut: 10px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--pad);
  background: rgba(11, 11, 12, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.wordmark {
  justify-self: start;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.025em;
  white-space: nowrap;
  color: var(--text);
}
.wordmark span { color: var(--accent); }
.tagline { grid-column: 2 / 4; margin: 0; font-size: 13px; color: var(--muted); }
.main-nav { grid-column: 4; justify-self: end; }
.main-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.main-nav a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.menu-toggle { display: none; }

/* ---------- Home intro ---------- */

.intro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 var(--pad);
  padding: 96px var(--pad) 64px;
  align-items: center;
}
.intro h1 { grid-column: 1 / 3; font-size: clamp(52px, 6.4vw, 104px); font-weight: 600; line-height: .95; letter-spacing: -.045em; }
.intro h1 em { font-style: normal; color: var(--accent); }
.intro-copy { grid-column: 3 / 5; max-width: 560px; }
.intro-copy p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--muted); }

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--pad) 16px;
}
.filter-list { display: flex; flex-wrap: wrap; gap: 4px; }
.filter-list button {
  padding: 7px 13px;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  font: 500 13px/1 var(--font);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.filter-list button:hover { color: var(--text); }
.filter-list button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.count { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

/* ---------- Ruled grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 var(--pad) 96px;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.cell {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  isolation: isolate;
}
.cell[hidden] { display: none; }

.cell .name {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 30px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  transition: opacity .35s ease, transform .5s cubic-bezier(.2, .7, .2, 1);
}
.cell .name .logo {
  height: auto;
  max-height: 40%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .92;
}
.cell .label {
  position: absolute;
  top: 14px; left: 16px; right: 16px;
  z-index: 3;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .2s;
}

.cell .media { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .45s ease; }
.cell .media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}
.cell .media img.alt { opacity: 0; }
.cell .media img.alt.show { opacity: 1; }
.cell .preview {
  position: absolute;
  top: 50%; left: 50%;
  height: 100%;
  aspect-ratio: 16 / 9;
  min-width: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
}
.cell .preview.playing { opacity: 1; }

.cell .info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .75));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.cell .info b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.cell .info small { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); }
.cell .info .go { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--bg); font-size: 14px; }

.cell:hover .media, .cell:focus-visible .media { opacity: 1; }
.cell:hover .media img, .cell:focus-visible .media img { transform: scale(1); }
.cell:hover .name, .cell:focus-visible .name { opacity: 0; transform: scale(.96); }
.cell:hover .info, .cell:focus-visible .info { opacity: 1; transform: none; }

/* Touch screens can't hover, so show the work up front */
@media (hover: none) {
  .cell .media { opacity: 1; }
  .cell .media img { transform: none; }
  .cell .name { opacity: 0; }
  .cell .info { opacity: 1; transform: none; }
  .cell .info .go { display: none; }
}

/* ---------- Project pages (modular) ---------- */

.project {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gut);
  padding: 120px var(--gut) var(--gut);
  align-items: start;
}
.project-side {
  grid-column: 1 / 3;
  position: sticky;
  top: calc(var(--header-h) + var(--gut));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gut);
}
.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--card);
  font-size: 13px;
  font-weight: 500;
}
.pill h1 { font-family: var(--font); font-size: 13px; font-weight: 500; letter-spacing: 0; }
a.pill { color: var(--muted); transition: background .2s, color .2s; }
a.pill:hover { background: var(--card-2); color: var(--text); }
a.pill span { color: var(--dim); }

.info-card {
  grid-column: 1;
  padding: 20px 18px 6px;
  border-radius: 14px;
  background: var(--card);
  font-size: 13px;
}
.info-card section { margin-bottom: 22px; }
.info-card h2 {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.info-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 0; }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; }
.info-card p { margin: 0 0 .8em; line-height: 1.55; color: #d4d6da; }
.info-card a { color: var(--accent); }
.info-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.info-card .note { color: var(--dim); font-size: 12px; }

.headline-card {
  grid-column: 2;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--card);
}
.headline-card .big { font-family: var(--display); font-size: clamp(30px, 2.6vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.headline-card .meta { margin-top: 24px; font-size: 12px; color: var(--muted); }

.gallery {
  grid-column: 3 / 5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gut);
}
.shot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 22px;
  border: 0;
  border-radius: 26px;
  background: var(--card);
  cursor: zoom-in;
  overflow: hidden;
}
.shot img {
  position: absolute;
  inset: 22px;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  object-fit: contain;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.shot:hover img { transform: scale(1.03); }
.shot.wide { grid-column: span 2; aspect-ratio: 16 / 9; padding: 0; }
.shot.wide img { inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Decks: consecutive slides stay together in one card */
.deck {
  grid-column: span 2;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 26px;
  background: var(--card);
}
.slide { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.slide img { width: 100%; height: auto; border-radius: 8px; transition: opacity .2s; }
.slide:hover img { opacity: .9; }

.video {
  position: relative;
  grid-column: span 2;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video img { object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.video:hover img { transform: scale(1.02); }
.video-play {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .5));
  cursor: pointer;
}
.video-play::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 66px; height: 66px;
  margin: -33px 0 0 -33px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  transition: transform .25s, background .25s;
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  margin: -10px 0 0 -5px;
  border-style: solid;
  border-width: 10px 0 10px 17px;
  border-color: transparent transparent transparent var(--bg);
}
.video-play:hover::before { transform: scale(1.08); background: var(--accent); }
.video-title { position: absolute; left: 22px; bottom: 18px; font-size: 13px; font-weight: 500; color: #fff; pointer-events: none; }

.project-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gut);
  padding: 0 var(--gut) 80px;
}
.project-foot a { grid-column: 3 / 5; }
.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px;
  border-radius: 26px;
  background: var(--card);
  transition: background .2s;
}
.next:hover { background: var(--card-2); }
.next small { display: block; font-size: 12px; color: var(--dim); }
.next b { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.04em; }
.next i { font-style: normal; font-size: 26px; color: var(--accent); transition: transform .25s; }
.next:hover i { transform: translateX(6px); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 60px 80px;
  background: rgba(5, 5, 6, .96);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 8px; }
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  font: 500 20px/1 var(--font);
  cursor: pointer;
}
.lightbox button:hover { background: var(--card-2); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 18px; top: 50%; margin-top: -23px; }
.lightbox .lb-next { right: 18px; top: 50%; margin-top: -23px; }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Text pages ---------- */

.page-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 var(--pad);
  padding: 96px var(--pad) 64px;
  align-items: end;
}
.page-hero h1 { grid-column: 1 / 3; font-size: clamp(52px, 6.4vw, 104px); line-height: .95; letter-spacing: -.045em; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { grid-column: 3 / 5; max-width: 560px; font-size: 19px; line-height: 1.5; color: var(--muted); }

.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gut);
  padding: 0 var(--gut) var(--gut);
}
.module { padding: 22px 20px; border-radius: 14px; background: var(--card); }
.module .k { margin-bottom: 40px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.module h2 { font-size: 34px; letter-spacing: -.04em; }
.module h2 em { font-style: normal; color: var(--accent); }
.module p { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.module.wide { grid-column: span 4; }
.module.logos-card p { font-size: 18px; color: var(--text); }
.logos { margin: 36px auto 10px; width: 100%; max-width: 1100px; filter: brightness(0) invert(1); opacity: .65; }

.contact-wrap { grid-column: 2 / 5; padding: 26px; }
.contact-side { align-self: start; }
.field { margin: 0 0 18px; padding: 0; border: 0; }
.field legend, .field > label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.field .req { font-weight: 400; color: var(--dim); }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); }
.name-row label { display: block; font-size: 12px; color: var(--muted); }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.4 var(--font);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 150px; resize: vertical; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 0;
  border-radius: 99px;
  background: var(--accent);
  color: var(--bg);
  font: 600 14px/1 var(--font);
  cursor: pointer;
  transition: background .2s;
}
.button:hover { background: #6bdaf9; }
.button[disabled] { opacity: .6; cursor: default; }
.form-status { margin-top: 14px; color: var(--muted); }
.form-done h2 { font-size: 40px; }
.form-done h2 em { font-style: normal; color: var(--accent); }
.form-done p { margin-top: 10px; color: var(--muted); }
.hp { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 22px var(--pad);
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--dim);
}
.site-footer nav { grid-column: 4; justify-self: end; display: flex; gap: 22px; }
.site-footer a:hover { color: var(--text); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .intro, .page-hero { grid-template-columns: 1fr; gap: 24px; }
  .intro h1, .intro-copy, .page-hero h1, .page-hero p { grid-column: 1; }
  .project { grid-template-columns: 1fr 1fr; padding-top: 24px; }
  .project-side { grid-column: 1 / 3; position: static; }
  .gallery { grid-column: 1 / 3; }
  .project-foot { grid-template-columns: 1fr; }
  .project-foot a { grid-column: 1; }
  .modules { grid-template-columns: 1fr 1fr; }
  .module.wide { grid-column: span 2; }
  .contact-wrap { grid-column: 1 / 3; }
  .tagline { display: none; }
}

@media (max-width: 720px) {
  :root { --pad: 16px; --header-h: 60px; }
  .site-header { grid-template-columns: 1fr auto; }
  .wordmark { font-size: 17px; }
  .menu-toggle {
    display: inline-flex;
    padding: 8px 14px;
    border: 1px solid var(--rule);
    border-radius: 99px;
    background: none;
    color: var(--text);
    font: 500 13px/1 var(--font);
    cursor: pointer;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    padding: 6px var(--pad) 20px;
    background: rgba(11, 11, 12, .97);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 10px 0; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; box-shadow: none !important; }
  .main-nav a[aria-current="page"] { color: var(--accent); }

  .intro, .page-hero { padding: 48px var(--pad) 40px; }
  .intro-copy p, .page-hero p { font-size: 17px; }
  .filters { flex-direction: column; align-items: flex-start; }
  .filter-list { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .filter-list button { flex: none; }
  .count { display: none; }
  .grid { grid-template-columns: 1fr 1fr; margin-bottom: 64px; }
  .cell .info { padding: 30px 10px 10px; }
  .cell .info b { font-size: 14px; }
  .cell .info small { display: none; }

  .project { grid-template-columns: 1fr; }
  .project-side { grid-column: 1; grid-template-columns: 1fr; }
  .info-card, .headline-card { grid-column: 1; }
  .headline-card { order: -1; }
  .gallery { grid-column: 1; grid-template-columns: 1fr; }
  .shot.wide, .video, .deck { grid-column: span 1; }
  .deck { padding: 12px; border-radius: 18px; gap: 8px; }
  .shot, .video { border-radius: 18px; }
  .lightbox { padding: 60px 10px; }
  .next b { font-size: 26px; }
  .modules { grid-template-columns: 1fr; }
  .module.wide, .contact-wrap { grid-column: 1; }
  .name-row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; }
  .site-footer nav { grid-column: 1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Eyebrow above the intro copy; block optically centered on the headline
   (padding offsets the descender in "crafty" so the visible text lines up) */
.intro-copy .eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.intro-copy { padding-top: calc(clamp(52px, 6.4vw, 104px) * .2); }
@media (max-width: 1100px) { .intro-copy { padding-top: 0; } }

/* Square corners on inside pages, to match the ruled home grid */
.pill, .info-card, .headline-card, .shot, .deck, .slide img, .video, .next,
.module, .field input, .field textarea, .button, .lightbox img { border-radius: 0; }
a.pill:hover { background: var(--accent); color: var(--bg); }
a.pill:hover span { color: var(--bg); }

/* Tighter intro on the home page */
.intro { padding: 28px var(--pad) 48px; }
@media (max-width: 720px) { .intro { padding: 20px var(--pad) 32px; } }

/* lighter home headline */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
.intro h1 { font-weight: 400; letter-spacing: -.04em; }

/* next project: blue on hover */
.next:hover { background: var(--accent); color: var(--bg); }
.next:hover small, .next:hover i { color: var(--bg); }
@media (max-width: 720px) { .intro-copy p br { display: none; } }

/* logo farm (shared with A) */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; column-gap: clamp(16px, 2.2vw, 36px); row-gap: 20px; margin-top: clamp(40px, 5vw, 72px); }
.logo-grid > div { flex: 0 0 calc((100% - 6 * clamp(16px, 2.2vw, 36px)) / 7); min-width: 0; display: grid; place-items: center; height: clamp(90px, 10.5vw, 170px); }
.logo-grid img { width: auto; height: auto; max-height: 76%; filter: brightness(0) invert(1); opacity: .6; transition: opacity .25s; }
.logo-grid div:hover img { opacity: .9; }
.logo-grid .type-logo { font-family: var(--display); font-size: clamp(13px, 1.45vw, 21px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.15; color: #fff; opacity: .6; }
@media (max-width: 1000px) { .logo-grid > div { flex-basis: calc((100% - 3 * clamp(16px, 2.2vw, 36px)) / 4); } }
.cell .name .logo { width: auto; }

/* logos: fixed box + object-fit so no browser can stretch them */
.logo-grid img { height: 76%; max-height: none; object-fit: contain; }
.cell .name .logo { height: 40%; max-height: none; object-fit: contain; }

/* a video sharing a card with images */
.deck .video { grid-column: auto; border-radius: 8px; }
/* two photos side by side, equal heights */
.deck.pair { display: flex; gap: 12px; }
.deck.pair .slide { min-width: 0; }

/* who. and hi. heroes match the home intro: same position, weight, and centered copy */
.page-hero { padding: 28px var(--pad) 48px; align-items: center; }
.page-hero h1 { font-weight: 400; letter-spacing: -.04em; }
.page-hero p { margin: 0; }
@media (min-width: 1101px) {
  /* titles sit at the same spot on every page; the copy centers on the title
     without pushing it around (zero-height box, content overflows both ways) */
  .intro, .page-hero { align-items: start; }
  .intro-copy, .page-hero p { align-self: center; height: 0; display: flex; flex-direction: column; justify-content: center; overflow: visible; }
  .page-hero { padding-bottom: 64px; }
  .intro { padding-bottom: 64px; }
}
@media (max-width: 720px) { .page-hero { padding: 20px var(--pad) 32px; } }
/* bigger logos on the home grid */
.cell .name .logo { height: 64%; }

/* Variant (/faint): the work sits very faintly behind each logo, in black and white */
.faint .cell .name { z-index: 2; }
.faint .cell .media { opacity: .04; filter: grayscale(1); transition: opacity .45s ease, filter .45s ease; }
.faint .cell:hover .media, .faint .cell:focus-visible .media { opacity: 1; filter: none; }

/* logo farm: fixed-pixel logo box (a % height could fail and let tall logos overlap) and more air */
.logo-grid > div { height: clamp(96px, 9vw, 150px); }
.logo-grid img { height: calc(clamp(96px, 9vw, 150px) * .58); max-width: 100%; }
.logo-grid { row-gap: clamp(20px, 2.4vw, 40px); }

/* who.: about + four D's in one row; the service line sits where the label was */
@media (min-width: 1101px) {
  .page-about .modules { grid-template-columns: repeat(5, 1fr); }
  .page-about .module.wide { grid-column: span 5; }
}
.module.svc { display: flex; flex-direction: column; justify-content: space-between; }
.module.svc .k { line-height: 1.5; max-width: 30ch; }
/* one-line service lines: the four D's sit two by two under the about card */
@media (min-width: 1101px) {
  .page-about .modules { grid-template-columns: repeat(2, 1fr); }
  .page-about .modules > .module:first-child { grid-column: span 2; }
  .page-about .module.wide { grid-column: span 2; }
}
.module.svc .k { max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .module.svc .k { white-space: normal; } }
/* who.: back to one row, the about card a bit wider; hero copy lines up with the Design card */
@media (min-width: 1101px) {
  .page-about .modules { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .page-about .modules > .module:first-child { grid-column: auto; }
  .page-about .module.wide { grid-column: 1 / -1; }
  .page-about .page-hero { grid-template-columns: 1.4fr repeat(4, 1fr); gap: 0 var(--gut); padding-left: var(--gut); padding-right: var(--gut); }
  .page-about .page-hero h1 { grid-column: 1; margin-left: calc(var(--pad) - var(--gut)); }
  .page-about .page-hero p { grid-column: 2 / -1; max-width: 640px; }
  .module.svc .k { white-space: normal; overflow: visible; }
}
.page-about .modules > .module:first-child { display: flex; flex-direction: column; justify-content: space-between; }
/* hi.: hero copy lines up with the form box */
@media (min-width: 1101px) {
  .page-contact .page-hero { grid-template-columns: repeat(4, 1fr); gap: 0 var(--gut); padding-left: var(--gut); padding-right: var(--gut); }
  .page-contact .page-hero h1 { grid-column: 1; margin-left: calc(var(--pad) - var(--gut)); }
  .page-contact .page-hero p { grid-column: 2 / -1; }
}
/* hi.: same columns as who., so the form box starts where the Design card does */
@media (min-width: 1101px) {
  .page-contact .modules, .page-contact .page-hero { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .page-contact .contact-side { grid-column: 1; }
  .page-contact .contact-wrap { grid-column: 2 / -1; }
}

/* Everything lines up on the home grid's second column (where the Microsoft box starts) */
@media (min-width: 1101px) {
  .page-home .intro { column-gap: 0; }
  .page-home .intro h1 { grid-column: 1; font-size: clamp(40px, 4.4vw, 72px); padding-right: 24px; }
  .page-home .intro-copy { grid-column: 2 / 5; padding-left: 0; }
  .page-about .modules, .page-about .page-hero,
  .page-contact .modules, .page-contact .page-hero { grid-template-columns: calc(25% - 1px) repeat(4, 1fr); }
}
/* who. and hi. titles match the home headline */
@media (min-width: 1101px) {
  .page-hero h1 { font-size: clamp(40px, 4.4vw, 72px); }
}

/* Phones and tablets: show the logos (with the faint work behind them), like desktop */
@media (hover: none) {
  .faint .cell .media { opacity: .04; filter: grayscale(1); }
  .faint .cell .name { opacity: 1; transform: none; }
  .faint .cell .info { opacity: 0; }
}
