:root {
  --ink: #121212;
  --tile: #fafafa;
  --dash: rgba(0, 0, 0, 0.1);
  --col-1: 207px;   /* 24 → 231 */
  --col-2: 169px;   /* 231 → 400 */
  --content: 640px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 18px;
  -webkit-font-smoothing: antialiased;
}

p, h2, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { display: block; }

.mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 500;
  text-transform: uppercase;
}

/* Link hover: slight scale + monochrome shine sweeping through the text */
.link {
  display: inline-flex;
  align-items: center;
  transform-origin: left center;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.contact.link { transform-origin: right center; }
.fx { position: relative; display: inline-block; }
.fx::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(90deg,
    transparent 0%, transparent 33.33%,
    #5c5c5c 40%, #a6a6a6 45%, #e6e6e6 50%, #a6a6a6 55%, #5c5c5c 60%,
    transparent 66.67%, transparent 100%);
  background-size: 300% 100%;
  background-position: 100% 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0;
}
@keyframes shine-sweep {
  from { background-position: 100% 0; }
  to   { background-position: 0 0; }
}
@media (hover: hover) and (pointer: fine) {
  .link:hover { transform: scale(1.03); }
  .link:hover .fx::after {
    opacity: .94;
    animation: shine-sweep .85s cubic-bezier(.4, 0, .2, 1) both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .link, .link:hover { transform: none; transition: none; }
  .link:hover .fx::after { animation: none; opacity: 0; }
}

/* Shared 3-column grid */
.row {
  display: grid;
  grid-template-columns: var(--col-1) var(--col-2) minmax(0, var(--content)) 1fr;
  padding-inline: 24px;
}

/* Dashed divider: 4px dash, 4px gap, black 10% */
.intro,
.case {
  background-image: repeating-linear-gradient(to right, var(--dash) 0 4px, transparent 4px 8px);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 2px 0;
}

/* Top bar */
.topbar {
  height: 50px;
  padding-top: 16px;
}
.contact {
  grid-column: 4;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  white-space: nowrap;
}

/* Intro */
.intro { padding-top: 16px; padding-bottom: 32px; }
.label {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 600;
  text-transform: uppercase;
  opacity: .3;
  margin-bottom: 15px;
}
.list { display: grid; gap: 8px; }
.about .text { max-width: 640px; }

/* Cases */
.case { padding-top: 32px; padding-bottom: 32px; }
.year { grid-column: 2; opacity: .3; }
.case-body { grid-column: 3; }

.case-title {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  font-weight: 600;
  font-size: 13px;
}
.case-title img { height: 21px; width: auto; margin: -1.5px -0.75px; }
.case-title img.single { height: 18px; margin: 0; }

.case-desc { max-width: 580px; margin-top: 12px; }

.media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 32px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tile);
  isolation: isolate; /* keeps the radius clipping on Safari for video */
}
.tile.wide { grid-column: 1 / -1; aspect-ratio: 640 / 460; }
.tile.half { aspect-ratio: 316 / 420; }
.tile img,
.tile video { width: 100%; height: 100%; object-fit: cover; }

/* Tablet & mobile */
@media (max-width: 1100px) {
  :root { --col-1: 1fr; --col-2: 1fr; }

  .row { grid-template-columns: 1fr 1fr; column-gap: 16px; }

  .topbar { grid-template-columns: 1fr auto auto; column-gap: 24px; }
  .topbar .contact { grid-column: auto; }

  .intro { row-gap: 32px; }
  .intro .about { grid-column: 1 / -1; }

  .case { grid-template-columns: 1fr; padding-top: 24px; }
  .year { grid-column: 1; margin-bottom: 12px; }
  .case-body { grid-column: 1; max-width: 640px; }
  .media { margin-top: 24px; }
}

@media (max-width: 560px) {
  .row { padding-inline: 16px; }
  .topbar { grid-template-columns: 1fr auto; }
  .topbar p:nth-child(2) { display: none; }
}
