:root {
  --bg: #FFFFFF;
  --dot: #D9D9D9;
  --card: #E8F4FC;
  --line: #CFE1F1;
  --ink: #152641;
  --muted: #4E5F78;
  --soft: #4E5F78;
  --blue: #136CFC;
  --blue-title: #136CFC;
  --blue-ink: #0D5BD8;
  --blue-deep: #152641;
  --green: #C3F84A;
  --dark: #152641;

  --display: "Poppins", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius: 26px;
  --stub: 98px;
  --notch: 18px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: var(--green); color: var(--ink); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul { margin: 0; }

.page {
  max-width: 540px;
  margin: 0 auto;
  padding: 40px 16px 32px;
}

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

.hero__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 64px;
  height: 64px;
  flex: none;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
}

.name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.name span { color: var(--blue-title); }

.hero__rule {
  flex: 1;
  height: 2px;
  min-width: 16px;
  background: var(--blue);
}

.hero__slash {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--blue);
}

.hero__bio {
  margin-top: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}


/* ---------- Tools ---------- */

.tools { margin-top: 22px; }

.tools__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 6px;
  margin-top: 12px;
  padding: 0;
  list-style: none;
}
.tools__grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.tools__grid img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.tools__grid span {
  font-size: 10.5px;
  line-height: 1.25;
  color: var(--muted);
}


/* ---------- Clients ---------- */

/* On phones the brands keep their place after Fig. 02; on desktop they
   live in the sidebar under the hero (see .side in the desktop block). */
.side { display: contents; }
.page--home { display: flex; flex-direction: column; }
.page--home > .side > .hero { order: 0; }
.clients-section > .fig { white-space: normal; line-height: 1.6; }
.clients-section > .fig b { white-space: nowrap; }
.page--home > .side > .clients-section { order: 1; }
.page--home > section[aria-labelledby="fig4"],
.page--home > .social-section,
.page--home > .foot { order: 2; }

.clients__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.clients__label + .clients__grid { margin-top: 10px; }
.clients__grid + .clients__label { margin-top: 22px; }

.clients__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  list-style: none;
}
.clients__grid li,
.clients__grid a {
  display: grid;
  place-items: center;
  height: 64px;
  min-width: 0;
}
.clients__grid li {
  padding: 0 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}
/* Logo files are white: tint them to ink */
.clients__grid img {
  width: auto;
  max-width: 100%;
  max-height: 32px;
  filter: invert(1) grayscale(1);
  opacity: .7;
  transition: opacity .2s ease;
}
.clients__grid li:hover img { opacity: .9; }

.clients__grid--now li { padding: 0; }
.clients__grid--now a { width: 100%; padding: 0 10px; border-radius: 13px; transition: background .2s ease; }
.clients__grid--now a:hover { background: var(--card); }
.clients__grid--now a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.clients__grid--now img { max-height: 42px; }
.clients__grid--now .wordmark { font-size: 16px; color: #000; opacity: .7; transition: opacity .2s ease; }
.clients__grid--now .wordmark span { color: inherit; }
.clients__grid--now a:hover img,
.clients__grid--now a:hover .wordmark { opacity: .9; }


/* ---------- Section labels ---------- */

.fig {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 44px 0 16px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.fig b { font-weight: 500; color: var(--blue-ink); }
.fig::after {
  content: "";
  flex: 0 1 60px;
  min-width: 12px;
  height: 1px;
  margin-left: 6px;
  background: var(--line);
}

/* ---------- Ticket card ---------- */

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 1fr var(--stub);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.ticket + .ticket { margin-top: 14px; }

a.ticket:hover {
  transform: translateY(-2px);
  border-color: #A9C9E8;
}
a.ticket:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.ticket__main {
  min-width: 0;
  padding: 16px 16px 18px;
}

.ticket__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 12px 18px 13px;
  border-left: 2px dashed var(--line);
}

/* Perforation notches, top and bottom of the tear line */
.ticket__stub::before,
.ticket__stub::after {
  content: "";
  position: absolute;
  left: calc(var(--notch) / -2 - 1px);
  width: var(--notch);
  height: var(--notch);
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
}
.ticket__stub::before { top: calc(var(--notch) / -2 - 1px); clip-path: inset(50% 0 0 0); }
.ticket__stub::after  { bottom: calc(var(--notch) / -2 - 1px); clip-path: inset(0 0 50% 0); }

.shot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #fff;
}

.title {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.ticket__main > .title:first-child { margin-top: 2px; }
.title span { display: block; color: var(--blue-title); }

.text {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* Stub content */

.stub__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.stub__sub {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.45;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--soft);
}

.wordmark {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--ink);
}
.wordmark span { color: #13844B; }

.big {
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  color: var(--blue);
}

.go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: auto 0 0 auto;
  border-radius: 12px;
  background: var(--green);
  transition: transform .2s ease, background .2s ease;
}
.go svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
a.ticket:hover .go { background: var(--blue-deep); }
a.ticket:hover .go svg { stroke: var(--green); }
a.ticket:active .go { transform: scale(.96); }

.soon {
  margin-top: auto;
  padding: 8px 4px;
  border: 1.5px dashed var(--soft);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  text-align: center;
  text-transform: uppercase;
  color: var(--muted);
}

/* Dark featured ticket */


/* Design pair */

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pair img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, .08);
}

/* ---------- Social tiles ---------- */

.social {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 6px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
  transition: transform .2s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.tile__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  color: var(--ink);
  transition: color .2s ease;
}
.tile:hover .tile__icon { color: var(--blue-ink); }
.tile__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile__name {
  font-weight: 600;
  font-size: 13px;
}
.tile__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .02em;
  color: var(--soft);
}

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

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
}
.foot a:hover { color: var(--blue-ink); }

/* ---------- Brands page ---------- */

.is-locked { overflow: hidden; }

.crumb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crumb a,
.crumb__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}
.crumb a svg,
.crumb__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--blue-ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.crumb a:hover svg,
.crumb__btn:hover svg { transform: translateX(-3px); }
.crumb a:focus-visible,
.crumb__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

.crumb__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
}
.crumb__who img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.intro { margin-top: 28px; }

.intro__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.intro__title span { display: block; color: var(--blue-title); }
.intro__title:focus { outline: none; }

.cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--line);
}
.brand .text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* Sheet: one brand's gallery */

.sheet {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: var(--bg);
  color: var(--ink);
}
.sheet[open] { animation: sheet-in .45s cubic-bezier(.16, 1, .3, 1); }
.sheet::backdrop { background: rgba(21, 38, 65, .5); }

@keyframes sheet-in {
  from { transform: translateY(32px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.sheet__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px max(16px, calc((100% - 860px) / 2 + 16px));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.sheet__count {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
}

.sheet__body {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}
.sheet__body .hero__bio { max-width: 60ch; }

.masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
  gap: 8px;
  margin-top: 28px;
}
.masonry__col { display: grid; gap: 8px; min-width: 0; }

.piece {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
}
.piece img { width: 100%; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.piece:hover img { transform: scale(1.03); }
.piece:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.sheet__next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  margin-top: 28px;
  padding: 16px 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.sheet__next .stub__sub { margin: 0; grid-column: 1; }
.sheet__next-name {
  grid-column: 1;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.1;
}
.sheet__next .go { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.sheet__next:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Viewer: one piece, full screen */

.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0E1A2E;
  overflow: hidden;
}
.viewer[open] { display: grid; place-items: center; animation: fade-in .25s ease-out; }
.viewer::backdrop { background: transparent; }

@keyframes fade-in { from { opacity: 0; } }

.viewer__img {
  width: auto;
  height: auto;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 140px);
  border-radius: 12px;
  user-select: none;
}

.viewer__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.viewer__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: #C9D6E6;
}

.viewer__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.viewer__btn:hover { background: rgba(255, 255, 255, .14); }
.viewer__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.viewer__btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.viewer__nav {
  position: absolute;
  bottom: 20px;
}
.viewer__nav--prev { left: calc(50% - 52px); }
.viewer__nav--next { left: calc(50% + 8px); }

/* ---------- Videos page ---------- */

.clips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 18px 10px;
}
.clips--wide { grid-template-columns: 1fr; gap: 22px; }

.clip {
  display: grid;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.clip__frame {
  position: relative;
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, .08);
  background: var(--line);
}
.clip__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.clip:hover .clip__frame img { transform: scale(1.03); }
.clip:focus-visible { outline: none; }
.clip:focus-visible .clip__frame { outline: 3px solid var(--blue); outline-offset: 3px; }

.clip__play {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  transition: background .2s ease, scale .2s ease;
}
.clip:hover .clip__play { background: var(--blue-deep); scale: 1.06; }
.clip__play svg { width: 20px; height: 20px; margin-left: 2px; fill: #fff; }

.clip__dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(21, 38, 65, .72);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: #fff;
}

.clip__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}
.clip__sub { font-size: 13px; color: var(--muted); }

.viewer__video {
  background: #000;
  max-width: min(calc(100vw - 32px), 1100px);
}

/* ---------- Sizes ---------- */

@media (max-width: 360px) {
  :root { --stub: 86px; }
  .wordmark { font-size: 14px; }
  .fig { letter-spacing: .14em; }
  .name { font-size: 22px; }
  .hero__slash { display: none; }
  .title { font-size: 22px; }
  .intro__title { font-size: 40px; }
}

@media (min-width: 600px) {
  .page { padding-top: 64px; }
  :root { --stub: 120px; }
  .name { font-size: 30px; }
  .title { font-size: 30px; }
  .text { font-size: 15px; }
  .ticket__main { padding: 20px 22px 22px; }
  .ticket__stub { padding: 22px 16px 22px 18px; }
  .stub__name { font-size: 13px; }
  .wordmark { font-size: 19px; }
  .intro__title { font-size: 64px; }
  .masonry { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .masonry__col { gap: 10px; }
  .clips { gap: 22px 14px; }
  .viewer__img { max-height: calc(100dvh - 120px); }
  .viewer__nav { bottom: auto; top: 50%; translate: 0 -50%; }
  .viewer__nav--prev { left: 24px; }
  .viewer__nav--next { left: auto; right: 24px; }
}

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

/* ---------- Project pages ---------- */

.tags li.tags__state { border-color: var(--blue-ink); color: var(--blue-ink); }

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  align-items: start;
  gap: 12px;
  margin: 0 -16px;
  padding: 2px 16px 10px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}
.screens::-webkit-scrollbar { display: none; }
.screens li { scroll-snap-align: start; }
@media (min-width: 600px) { .screens { grid-auto-columns: 31%; } }

.screen {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
}
/* Device frames: every capture is a full screen at the same size,
   phones at 390×844, panels at 16:10. */
.frame {
  display: block;
  overflow: hidden;
  transition: transform .2s ease;
}
.frame img { display: block; width: 100%; height: auto; }
.frame--phone {
  padding: 5px;
  background: var(--dark);
  border-radius: 26px;
  box-shadow: 0 10px 24px -14px rgba(21, 38, 65, .55);
}
.frame--phone img { aspect-ratio: 390 / 844; object-fit: cover; border-radius: 21px; }
.frame--browser {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px -18px rgba(21, 38, 65, .5);
}
.frame--browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 10px;
  background: #EEF3F8;
  border-bottom: 1px solid var(--line);
}
.frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: #C9D5E2; flex: none; }
.frame__bar b {
  flex: 1;
  margin: 0 18px 0 8px;
  padding: 2px 10px;
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  font: 500 10.5px/1.4 var(--mono);
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.screen:hover .frame { transform: translateY(-2px); }
.screen:active .frame { transform: scale(.98); }
.screen__cap {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

.features {
  margin: 0;
  padding: 4px 18px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.features li { padding: 14px 0; }
.features li + li { border-top: 1px dashed var(--line); }
.features h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.features p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.tags--stack { margin-top: 0; }
.tags--stack li { font-size: 11px; padding: 6px 10px; }

.live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px 12px 18px;
  background: var(--green);
  color: var(--ink);
  border-radius: 14px;
  transition: background .2s ease, transform .2s ease;
}
.live:hover { background: var(--blue-deep); color: #fff; }
.live:active { transform: scale(.98); }
.live span { display: grid; gap: 2px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; opacity: .95; }
.live b { font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.live svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.intro__title--inline span { display: inline; }

.devices {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 7px 12px 7px 9px;
  background: var(--card);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.devices svg { width: 17px; height: 17px; fill: none; stroke: var(--blue-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.devices span { margin-left: 6px; }

.fig__note { margin: -4px 0 14px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.screens--wide { grid-auto-columns: 88%; }

.role {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-ink);
}
.role + .hero__bio { margin-top: 8px; }

/* ---------- Project folder card ----------
   Dark back with tab, white sheet holding the screenshot,
   frosted-glass front (backdrop-filter approximation). */

.folder {
  position: relative;
  display: block;
  padding: 34px 12px 12px;
  isolation: isolate;
  color: var(--ink);
}
.folder + .folder { margin-top: 26px; }
a.folder:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--radius); }

.folder__back {
  position: absolute;
  inset: 30px 0 0 0;
  z-index: -1;
  background: var(--dark);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
}

.folder__tab {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  background: var(--dark);
  border-radius: 16px 16px 0 0;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--card);
  white-space: nowrap;
}
/* Concave fillet where the tab meets the back */
.folder__tab::after {
  content: "";
  position: absolute;
  left: 100%;
  bottom: 2px;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 100% 0, transparent 15.5px, var(--dark) 16px);
}
.folder__tab .wordmark { font-size: 15px; text-transform: none; letter-spacing: -.02em; color: var(--card); }
.folder__tab .wordmark span { color: var(--green); }

.folder__paper {
  position: relative;
  width: 94%;
  margin: 0 2% 0 auto;
  padding: 6px 6px 46px;
  background: #fff;
  border-radius: 12px;
  transform: rotate(2deg);
  box-shadow: 0 8px 22px rgba(4, 12, 28, .35);
  transition: transform .3s ease;
}
/* Second sheet peeking behind */
.folder__paper::before {
  content: "";
  position: absolute;
  inset: -5px 8px auto 8px;
  height: 36px;
  z-index: -1;
  background: #DCEAF6;
  border-radius: 12px;
  transform: rotate(-5deg);
}
.folder__paper .shot { border-radius: 7px; }

a.folder:hover .folder__paper { transform: rotate(1deg) translateY(-8px); }

.folder__front {
  position: relative;
  margin-top: -40px;
  padding: 16px 16px 16px;
  background: rgba(236, 246, 253, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 20px 0 20px 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 -10px 28px rgba(4, 12, 28, .22);
}
.folder__front .title { margin-top: 0; }
.folder__front .text { color: #3A4C66; }
.folder__front .tags li { border-color: rgba(21, 38, 65, .2); color: #3A4C66; }

.folder__foot {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 14px;
}
.folder__foot .tags { flex: 1; margin-top: 0; }
.folder__foot .go { flex: none; margin: 0; }

/* Glass tab of the front pocket */
.folder__sub {
  position: absolute;
  top: -27px;
  right: -1px;
  height: 27px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: rgba(236, 246, 253, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

a.folder:hover .go { background: var(--blue-deep); }
a.folder:hover .go svg { stroke: var(--green); }
a.folder:active .go { transform: scale(.96); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .folder__front, .folder__sub { background: rgba(232, 244, 252, .94); }
}
@media (prefers-reduced-transparency: reduce) {
  .folder__front, .folder__sub {
    background: var(--card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (min-width: 600px) {
  .folder { padding: 38px 18px 18px; }
  .folder__back { inset: 34px 0 0 0; }
  .folder__tab { height: 36px; padding: 0 22px; font-size: 12px; }
  .folder__tab .wordmark { font-size: 18px; }
  .folder__paper { width: 88%; padding: 8px 8px 60px; }
  .folder__front { margin-top: -48px; padding: 20px 22px; }
  .folder__sub { font-size: 10.5px; padding: 0 16px; }
}

/* ---------- Desktop (web) ----------
   Same pages, wider canvas: home becomes a sidebar + work grid,
   project carousels become grids (no swipe on a mouse). */

.hero__contact { display: none; }

@media (min-width: 1024px) {
  :root { --stub: 112px; }

  .page { max-width: 1160px; padding: 56px 40px 40px; }

  /* Home: sidebar | work */
  .page--home {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 72px;
    max-width: 1240px;
  }
  .page--home > .side {
    display: block;
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
  }
  .page--home > .side > .hero { padding-top: 44px; }
  .page--home .clients-section > .fig { margin-top: 40px; }
  .page--home > section { grid-column: 2; }
  .page--home > .social-section { display: none; }
  .page--home > .foot { grid-column: 1 / -1; }

  .page--home .hero__top { flex-wrap: wrap; gap: 16px; }
  .page--home .avatar { width: 92px; height: 92px; border-radius: 22px; }
  .page--home .name {
    order: 3;
    width: 100%;
    font-size: 46px;
    line-height: 1;
    white-space: normal;
  }
  .page--home .name span { display: block; }
  .page--home .hero__slash { font-size: 16px; }
  .page--home .role { margin-top: 18px; font-size: 15px; }
  .page--home .hero__bio { font-size: 16px; }

  .hero__contact { display: block; margin-top: 28px; }
  .page--home .tools { margin-top: 26px; }
  .page--home .tools__grid { gap: 14px 4px; }
  .page--home .tools__grid img { width: 32px; height: 32px; }
  .hero__contact .live { margin-top: 0; }
  .hero__links {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px dashed var(--line);
  }
  .hero__links a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
    color: var(--ink);
    transition: color .2s ease;
    overflow-wrap: anywhere;
    text-align: right;
  }
  .hero__links a span {
    flex: none;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--soft);
    text-align: left;
  }
  .hero__links a:hover { color: var(--blue-ink); }
  .hero__links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

  /* Work grid: folders and tickets two up */
  .page--home > section:not(.social-section) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
    align-items: start;
  }
  .page--home > section > .fig { grid-column: 1 / -1; margin-bottom: -12px; }
  .page--home > section:first-of-type > .fig { margin-top: 0; }
  .page--home .folder + .folder,
  .page--home .ticket + .ticket { margin-top: 0; }
  .page--home > section > .ticket { align-self: stretch; }
  .page--home > section > .ticket:only-of-type { grid-column: 1 / -1; }

  /* Equal-height folders per row: the glass front grows, footer sits at the bottom */
  .page--home .folder { display: flex; flex-direction: column; align-self: stretch; }
  .page--home .folder__front { flex: 1; display: flex; flex-direction: column; }
  .page--home .folder__foot { margin-top: auto; padding-top: 14px; }

  .page--home .title { font-size: 25px; }
  .page--home .folder__paper { width: 92%; }
  .page--home .text { font-size: 14.5px; }

  /* Inner pages: intro split in two */
  .intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: start;
    margin-top: 40px;
  }
  .intro > * { grid-column: 2; }
  .intro > .intro__title { grid-column: 1; grid-row: 1 / span 6; font-size: 80px; }
  .intro > .hero__bio { margin-top: 6px; font-size: 17px; }
  .intro > .devices { justify-self: start; }
  .intro > .live { max-width: 380px; }

  .fig { margin-top: 64px; margin-bottom: 20px; }
  .fig__note { margin-bottom: 20px; }

  /* Screens: grid instead of carousel */
  .screens {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
  .screens:has(> li:nth-child(3):last-child),
  .screens:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screens--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screens--wide:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .screen:hover .frame { transform: translateY(-4px); }
  .frame--phone { padding: 6px; border-radius: 30px; }
  .frame--phone img { border-radius: 24px; }
  .frame__bar { height: 30px; }
  .screen__cap { margin-top: 10px; font-size: 13.5px; }

  .features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 36px;
    padding: 6px 28px;
  }
  .features li { padding: 20px 0; }
  .features li + li { border-top: 0; }
  .features li:nth-child(n + 4) { border-top: 1px dashed var(--line); }

  .page:not(.page--home) .ticket { max-width: 760px; }

  /* Brands list and gallery */
  .brands {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .brands .ticket + .ticket { margin-top: 0; }
  .brands .title { font-size: 22px; }
  .sheet__bar { padding-left: max(40px, calc((100% - 1160px) / 2 + 40px)); padding-right: max(40px, calc((100% - 1160px) / 2 + 40px)); }
  .sheet__body { max-width: 1160px; padding: 40px 40px 56px; }
  .sheet__body .intro__title { font-size: 72px; }
  .masonry { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .masonry__col { gap: 14px; }
  .sheet__next { max-width: 520px; margin-left: auto; }

  /* Videos */
  .clips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
  .clips--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .clip__title { font-size: 18px; }
  .clip__sub { font-size: 14px; }

  .viewer__img { max-width: calc(100vw - 200px); }
  .viewer__video { max-width: min(calc(100vw - 200px), 1100px); }
}

@media (min-width: 1280px) {
  .page--home { grid-template-columns: 340px minmax(0, 1fr); column-gap: 96px; }
  .page--home .name { font-size: 54px; }
}
