/* Pam Domres portfolio — styles derived from the Figma file (Portfolio / StyleTile)
   Colors: lime #d3f031 · orange #e56300 · black · white
   Type:   Koulen (display, uppercase) · Inter 400/600 (body) */

:root {
  --lime: #d3f031;
  --orange: #e56300;
  --black: #000;
  --white: #fff;
  --ink: rgba(0, 0, 0, 0.9);
  --bar: rgba(0, 0, 0, 0.8);
  --display: "Koulen", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 124px;
  --panel-gap: 150px;        /* orange between the cards and the notched bottom edge */
  --notch-w: 38.25px;
  --notch-period: 76.5px;
  --notch-offset: 11px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-weight: 600;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--black); color: var(--white); padding: 8px 12px;
}
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.rule { display: block; height: 6px; background: var(--lime); flex: none; }
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 0 11px 0 13px;
}
.rule--left  { width: 39px; margin-right: 20px; }
.rule--grow  { flex: 1 1 auto; min-width: 12px; margin: 0 13px 0 24px; }
.rule--mid   { width: 14px; margin: 0 11px 0 21px; }
.rule--right { width: 63px; margin-left: 25px; }
.brand {
  font: 400 45px/normal var(--display);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black);
  transform-origin: left center;
  transition: color 0.15s ease, transform 0.15s ease;
}
.brand:hover, .brand:focus-visible { color: var(--orange); transform: scale(1.06); }
.nav { display: flex; align-items: center; }
.nav a {
  font: 600 20px/normal var(--body);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- landing hero ---------- */
.hero {
  /* the whole hero (header + intro + doodles) fits one screen. --u is the height the doodles get:
     it shrinks so the doodles always sit below the centered intro. */
  --u: clamp(180px, min(25.94vw, 500px, calc((50svh - 146px) / 0.675)), 500px);
  position: relative;
  overflow: hidden;
  min-height: max(calc(100svh - var(--header-h)), 520px);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
}
.intro {                            /* centered on the screen when you land */
  position: absolute; left: 50%; z-index: 1;
  top: max(calc(50svh - var(--header-h)), 124px);
  transform: translate(-50%, -50%);
  width: min(490px, calc(100% - 48px));   /* = the width of the bio's longest line */
}
.intro__head { display: flex; align-items: center; gap: 22px; }
.intro__id { flex: none; }

.profile {
  /* takes whatever room the name block leaves, so PAM DOMRES / the line end exactly where the bio ends */
  position: relative; flex: 1 1 0; min-width: 0; max-width: 200px;
  aspect-ratio: 132 / 115;
  cursor: pointer;
}
.profile__photo {
  /* circle, no outline (proportions of the original 114px circle in a 132×115 box) */
  position: absolute; left: 2.273%; top: 0;
  width: 86.364%; height: 99.13%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
}
.profile__photo img {          /* zoomed so the face fills the circle */
  position: absolute; max-width: none;
  width: 150%; height: 150%; left: -20.5%; top: 0;
}
.profile__drawn {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  max-width: none; object-fit: cover; opacity: 0;
}
.profile:hover .profile__drawn,
.profile:focus-visible .profile__drawn,
.profile.is-active .profile__drawn { opacity: 1; }
.profile:hover .profile__photo,
.profile:focus-visible .profile__photo,
.profile.is-active .profile__photo { opacity: 0; }

.intro__name {
  display: inline-block;
  font: 400 65px/80px var(--display);
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 6px solid var(--orange);
  padding-bottom: 7px;
}
.intro__role {
  margin: -3px 0 0 24px;
  font: 400 35px/normal var(--display);
  text-transform: uppercase;
  color: var(--ink);
}
.intro__bio { margin-top: 33px; font: 600 18px/normal var(--body); }

/* interactive drawn items */
.doodles {
  position: relative; flex: none;
  width: min(100%, 1600px); height: var(--u);
  pointer-events: none;
}
.doodle, .mark { position: absolute; will-change: transform; }
.hero { touch-action: pan-y; }
.rot {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg)) scaleY(var(--sy, 1));
}
.fit { position: absolute; display: block; }
.doodle img, .mark img { display: block; width: 100%; height: 100%; max-width: none; }

/* ---------- orange work panel with notched edges ---------- */
.panel {
  --notch-top: 19.714px;
  --notch-bottom: 61.84px;
  position: relative;
  background: linear-gradient(var(--orange), var(--orange)) 0 var(--notch-top) / 100% calc(100% - var(--notch-top) - var(--notch-bottom)) no-repeat;
}
.panel::before, .panel::after {
  content: "";
  position: absolute; left: 0; right: 0;
  background: linear-gradient(90deg, transparent var(--notch-w), var(--orange) 0)
              var(--notch-offset) 0 / var(--notch-period) 100% repeat-x;
  pointer-events: none;
}
.panel::before { top: 0;    height: var(--notch-top); }
.panel::after  { bottom: 0; height: var(--notch-bottom); }

.panel--home { padding: 100px 0 calc(var(--notch-bottom) + var(--panel-gap)); }
.panel--page {
  --notch-top: 15.36px;
  --notch-bottom: 43.76px;
  margin-top: 54px;
  padding: 54px 0 calc(var(--notch-bottom) + var(--panel-gap));
}
.panel__inner { width: min(1108px, 100% - 48px); margin: 0 auto; }
.panel__head { display: flex; align-items: center; gap: 10px; }
.panel__head h1, .panel__head h2 {
  font: 400 45px/normal var(--display);
  text-transform: uppercase;
  color: var(--white);
}
.panel__head .rule { flex: 1; }

/* project cards */
.cards { margin-top: 51px; display: grid; gap: 88px; }
.card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: var(--white);
  border-radius: 20px;
  padding: 26px 20px 17px;
}
.card__thumb {
  position: relative; overflow: hidden;
  aspect-ratio: 1067 / 483;
  border-radius: 20px;
}
.card__thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
  pointer-events: none;
}
.card__thumb img {
  position: absolute; inset: 0; max-width: none;
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, 50% 50%);
}
.card__thumb--empty {
  display: grid; place-items: center;
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.45); font: 400 16px/1 var(--body);
}
.card__body { position: relative; padding: 31px 6px 0; }
.card__title { font: 600 32px/34px var(--body); }
@media (hover: hover) {
  .card:hover { transform: scale(1.015); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
}
/* a full-card link layer makes the entire card clickable; the title and View links sit above/alongside it */
.card__overlay { position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.card__link { color: inherit; text-decoration: none; }
.card:has(.card__link:focus-visible), .card:has(.card__view:focus-visible) { outline: 3px solid var(--black); outline-offset: 3px; }
.card__link:focus-visible, .card__view:focus-visible { outline: none; }
.card__desc  { margin-top: 8px; font: 400 18px/normal var(--body); max-width: 670px; }
.card__tags {
  position: absolute; top: 34px; right: -5px;
  max-width: 240px;
  pointer-events: none;   /* clicks fall through to the card link */
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px 14px;
}
.card__tags li {
  background: var(--black); color: var(--white);
  border: 1px solid var(--black); border-radius: 7px;
  padding: 2px 7px;
  font: 400 16px/normal var(--body);
}
.card__view {
  position: relative; z-index: 2;     /* above the card link layer so View keeps its own hover/click */
  display: inline-block; margin-top: 26px;
  background: var(--lime); color: var(--black);
  border-radius: 7px;
  padding: 5px 23px 5px 23px;
  min-width: 127px;
  font: 600 20px/normal var(--body);
  text-decoration: none;
  white-space: nowrap;
}
.card__view:hover { background: var(--black); color: var(--lime); }

/* ---------- footer ---------- */
.site-footer { --pt: 107px; }
.site-footer--about { --pt: 21px; }
.site-footer__main { padding: var(--pt) 24px 105px clamp(24px, 8.2vw, 105px); }
.site-footer h2 {
  font: 400 clamp(40px, 8vw, 65px)/normal var(--display);
  text-transform: uppercase;
  color: var(--ink);
}
.site-footer__mail {
  display: inline-block; margin: 27px 0 0 10px;
  font: 400 clamp(26px, 5vw, 35px)/normal var(--display);
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: underline; text-decoration-thickness: from-font; text-underline-position: from-font;
  word-break: break-word;
}
.site-footer__links { margin: 26px 0 0 10px; display: flex; gap: 33px; font: 600 18px/normal var(--body); }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__bar { padding: 35px 24px; background: var(--bar); color: var(--white); text-align: center; font: 600 18px/normal var(--body); }
.rule--full { width: 100%; }

/* ---------- about ---------- */
.about { padding-top: 117px; }
.about__top {
  display: grid;
  grid-template-columns: 301px minmax(0, 577px);
  column-gap: 82px;
  padding: 0 24px 0 clamp(24px, 7.6vw, 97px);
}
.about__name {
  display: inline-block;
  font: 400 65px/80px var(--display);
  text-transform: uppercase;
  color: var(--orange);
  border-bottom: 6px solid var(--orange);
  padding-bottom: 7px;
}
.about__role { display: block; margin-top: -3px; font: 400 35px/normal var(--display); text-transform: uppercase; color: var(--ink); }
.about__portrait {
  margin: 17px 0 0 14px;
  width: 287px; max-width: 100%; aspect-ratio: 287 / 316;
  object-fit: cover; border-radius: 10px;
}
.about__text { margin-top: 37px; font: 600 18px/normal var(--body); }
.about__text > p + p { margin-top: 21.8px; }
.about__links { margin-top: 30px; }
.pill {
  display: inline-block;
  background: var(--black); color: var(--white);
  border-radius: 999px;
  padding: 8px 19px;
  font: 600 14px/17px var(--body);
  text-decoration: none;
}
.pill:hover { background: var(--orange); }

.info { margin-top: 44px; display: grid; gap: 15px; }
.info li {
  display: flex; align-items: center; min-height: 33px;
  font: 400 24px/normal var(--display);
  text-transform: uppercase;
  color: var(--ink);
}
.info li > span:not(.info__icon), .info li > a { opacity: 0.7; text-decoration: none; }
.info li > a:hover { text-decoration: underline; }
.info__icon { flex: none; width: 36px; margin: 4px 16px 0 5px; display: flex; justify-content: center; align-items: center; }
.info__icon img { display: block; max-width: none; }


/* ---------- about: photo grid + hover notes ---------- */
/* Desktop follows the reference grid (1095 × 372). Each tile is placed with --x/--y/--w/--h
   from that grid, so the whole thing scales smoothly with the page width. */
.collage {
  position: relative;
  width: min(1095px, 100% - 48px);
  aspect-ratio: 1095 / 372;
  margin: 80px auto clamp(110px, 13.7vw, 175px);
}
.tile {
  position: absolute;
  left: calc(var(--x) / 1095 * 100%);
  top: calc(var(--y) / 372 * 100%);
  width: calc(var(--w) / 1095 * 100%);
  height: calc(var(--h) / 372 * 100%);
}
.tile__img { position: absolute; inset: 0; overflow: hidden; border-radius: 10px; }
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile[tabindex] { cursor: pointer; }
.tile[tabindex]:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 12px; }

.note, .hearts { position: absolute; pointer-events: none; z-index: 2; }
.note {
  display: block; max-width: none; height: auto;
  opacity: 0;
  transform: scale(0.5) rotate(-8deg);
  transition: opacity 0.15s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.note--yum    { left: 16.6%; top: 73%;   width: 157%;  transform-origin: 15% 10%; }  /* arrow points up at the gelato */
.note--cooper { left: 38%;   top: -3.2%; width: 40.6%; transform-origin: 5% 90%; }  /* arrow points down at the talk */
.tile:hover .note, .tile:focus-visible .note, .tile.is-active .note { opacity: 1; transform: none; }

.hearts { left: 54%; top: -24%; width: 32.6%; aspect-ratio: 57 / 88; }
.heart { position: absolute; opacity: 0; }
.heart img { display: block; width: 100%; height: 100%; }
.heart--1 { left: 0;      top: 0;      width: 50.9%; height: 31.8%; }
.heart--2 { left: 49.1%;  top: 30.7%;  width: 50.9%; height: 34.1%; }
.heart--3 { left: 0;      top: 68.2%;  width: 50.9%; height: 31.8%; }
.tile:hover .heart, .tile:focus-visible .heart, .tile.is-active .heart {
  animation: heart-float 2.4s ease-out infinite;       /* hearts pop in, bottom to top, and drift up */
}
.tile:hover .heart--3, .tile:focus-visible .heart--3, .tile.is-active .heart--3 { animation-delay: 0s; }
.tile:hover .heart--2, .tile:focus-visible .heart--2, .tile.is-active .heart--2 { animation-delay: 0.4s; }
.tile:hover .heart--1, .tile:focus-visible .heart--1, .tile.is-active .heart--1 { animation-delay: 0.8s; }
@keyframes heart-float {
  0%   { opacity: 0; transform: translateY(18px) scale(0.3); }
  18%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-70px) scale(1); }
}

/* tablet + phone: the same six photos re-flow into two columns */
@media (max-width: 900px) {
  .collage {
    aspect-ratio: auto;
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    margin: 56px auto clamp(110px, 24vw, 175px);
  }
  .tile { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .tile__img { position: relative; inset: auto; aspect-ratio: var(--ar); }
  .tile__img img { position: absolute; inset: 0; }
  .tile--talk     { --ar: 539 / 372; grid-column: 1 / -1; }
  .tile--ice      { --ar: 4 / 5; }
  .tile--snow     { --ar: 4 / 5; }
  .tile--rugby    { --ar: 1; }
  .tile--dog      { --ar: 1; }
  .tile--lanterns { --ar: 374 / 169; grid-column: 1 / -1; }
  .note--yum { width: 125%; }
}


/* ---------- case study pages ---------- */
.cs { width: min(1094px, 100% - 48px); margin: 0 auto; padding-bottom: 95px; }
.cs-head { padding-top: 12px; }
.cs-title { font: 400 45px/1.1 var(--display); text-transform: uppercase; color: var(--black); }
.cs-sub { margin-top: 16px; font: 400 24px/normal var(--body); max-width: 900px; }
.cs-meta {
  margin: 48px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px;
  font: 400 20px/normal var(--body);
}
.cs-meta dt { font-weight: 600; }
.cs-meta dd { margin: 5px 0 0; }
.cs-hero { margin-top: 75px; border-radius: 10px; overflow: hidden; }
.cs-hero video { display: block; width: 100%; aspect-ratio: 1067 / 483; object-fit: cover; object-position: var(--pos, 50% 50%); }
.cs-hero img { display: block; width: 100%; aspect-ratio: 1067 / 483; object-fit: cover; object-position: var(--pos, 50% 50%); }
.cs-rule { width: min(1000px, 100%); height: 6px; background: var(--lime); margin: 26px auto 0; }

.cs-sec { margin-top: 100px; }
.cs-rule + .cs-sec { margin-top: 67px; }
.cs-label { font: 400 18px/normal var(--body); }
.cs-label--strong { font-weight: 600; font-size: 20px; }
.cs-h { margin-top: 3px; font: 400 32px/1.1 var(--display); text-transform: uppercase; color: var(--black); }
.cs-p { margin-top: 15px; max-width: 740px; font: 400 18px/normal var(--body); }
.cs-label + .cs-h { margin-top: 3px; }
.cs-sec > .cs-h:first-child { margin-top: 0; }
.cs-p--after { margin-top: 40px; }

.cs-sub { margin-top: 100px; }
.cs-sub > .cs-h:first-child { margin-top: 0; }
.cs-photo { margin-top: 42px; border-radius: 10px; overflow: hidden; }
.cs-photo img { display: block; width: 100%; aspect-ratio: 1094 / 566; object-fit: cover; }

.cs-split { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); align-items: start; }
.cs-block + .cs-block { margin-top: 48px; }
.cs-block .cs-label--strong + .cs-p { margin-top: 10px; }
.cs-phone { justify-self: center; width: min(267px, 100%); margin-right: 10%; }
.cs-phone img { display: block; width: 100%; height: auto; }

.cs-pair { margin-top: 42px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cs-pair img { display: block; width: 100%; height: auto; }

.cs-slot { margin-top: 42px; aspect-ratio: 1094 / 440; }   /* empty space in the Flash design */
.cs-slot + .cs-p--after { margin-top: 100px; }

.cs-lists { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 422px) minmax(0, 1fr); gap: 24px 12px; }
.cs-lists ul { margin-top: 10px; padding-left: 22px; list-style: disc; font: 400 18px/normal var(--body); max-width: 420px; }
.cs-lists li + li { margin-top: 2px; }


/* case study: full-width images that keep their own proportions (slides, personas, style guides) */
.cs-sym { font-family: var(--body); font-weight: 600; }          /* Koulen has no ≠ glyph */
.cs-fig { margin-top: 42px; border-radius: 10px; overflow: hidden; }
.cs-fig + .cs-fig { margin-top: 24px; }
.cs-fig img { display: block; width: 100%; height: auto; }

.cs-phone--duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(520px, 100%); margin-right: 0; }
.cs-phone--duo img { display: block; width: 100%; height: auto; }
.cs-split--proto { margin-top: 100px; }
.cs-phone--video { width: min(300px, 100%); margin-right: 0; }
.cs-phone--video video {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 508 / 1078);
  border-radius: var(--rad, 9.8% / 4.6%);   /* recordings have a square backdrop; round to the phone's own corners */
  background: #000; cursor: pointer;
}

.cs-quad { margin-top: 42px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cs-quad img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.12); }
.cs-quad figcaption { margin-top: 10px; font: 400 16px/normal var(--body); }

.cs-wide { justify-self: stretch; width: 100%; margin-right: 0; }
.cs-wide video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 774; border-radius: 10px; background: #000; }


/* case study: switchers (style board / inspiration board / personas) */
.cs-switch { margin-top: 42px; }
.cs-switch__tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.cs-switch__tabs button {
  padding: 8px 16px; border: 0; border-radius: 7px;
  background: var(--lime); color: var(--black);
  font: 600 16px/normal var(--body); text-transform: uppercase;
  cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.cs-switch__tabs button:hover { background: var(--black); color: var(--lime); }
.cs-switch__tabs button[aria-selected="true"] { background: var(--orange); color: var(--black); }   /* current one */
.cs-switch__tabs button:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.cs-switch .cs-fig { margin-top: 16px; }
.cs-switch [hidden] { display: none; }


/* case study: videos */
.cs-vid { margin: 0; }
.cs-vid video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar); border-radius: 10px; background: #000; }
.cs-vid figcaption { margin-top: 10px; font: 400 16px/normal var(--body); }
.cs-vid--square { max-width: 560px; margin-inline: auto; }
.cs-vid--tall { max-width: 340px; margin-inline: auto; }
.cs-switch .cs-vid { margin-top: 16px; }
.cs-wide .cs-switch { margin-top: 0; }
.cs-vgrid { margin-top: 42px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; align-items: start; }

/* case study: rotating slideshow */
.cs-carousel { margin-top: 42px; }
.cs-carousel__viewport { position: relative; aspect-ratio: 1800 / 1013; border-radius: 10px; overflow: hidden; background: #0a0a0a; }
.cs-carousel__slide { margin: 0; }
.cs-carousel__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cs-carousel:not(.is-enhanced) .cs-carousel__viewport { aspect-ratio: auto; background: none; overflow: visible; }
.cs-carousel:not(.is-enhanced) .cs-carousel__slide + .cs-carousel__slide { margin-top: 24px; }
.cs-carousel:not(.is-enhanced) .cs-carousel__bar { display: none; }
.cs-carousel.is-enhanced .cs-carousel__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
.cs-carousel.is-enhanced .cs-carousel__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.5s ease; }
.cs-carousel__bar { margin-top: 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cs-carousel__btn {
  width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 7px; background: var(--lime); color: var(--black); cursor: pointer;
}
.cs-carousel__btn:hover { background: var(--black); color: var(--lime); }
.cs-carousel__dots { display: flex; align-items: center; gap: 10px; }
.cs-carousel__dots button {
  width: 14px; height: 14px; padding: 0; border-radius: 50%;
  border: 2px solid var(--black); background: transparent; cursor: pointer;
}
.cs-carousel__dots button:hover { background: var(--lime); }
.cs-carousel__dots button[aria-current="true"] { background: var(--orange); }
.cs-carousel__meta { margin-left: auto; display: flex; align-items: center; gap: 16px; font: 400 16px/normal var(--body); }
.cs-carousel__toggle {
  padding: 8px 16px; border: 0; border-radius: 7px; background: var(--lime); color: var(--black);
  font: 600 16px/normal var(--body); text-transform: uppercase; cursor: pointer;
}
.cs-carousel__toggle:hover { background: var(--black); color: var(--lime); }
.cs-carousel button:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }

/* empty image slots on the pages waiting for content */
.cs-ph {
  aspect-ratio: var(--ar); width: 100%;
  display: grid; place-items: center;
  background: #f5f5f5; border-radius: 10px;
  color: rgba(0, 0, 0, 0.45); font: 400 16px/1 var(--body);
}
.cs-photo:has(.cs-ph), .cs-phone:has(.cs-ph) { overflow: visible; }
.cs-slot + .cs-p--after { margin-top: 100px; }
.cs-ph + .cs-p--after { margin-top: 42px; }


/* ---------- case study: section nav ---------- */
.cs-nav {
  position: sticky; top: 0; z-index: 5;
  background: var(--white);
  padding: 14px 0;
}
.cs-nav ul { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; margin-left: -12px; }
.cs-nav ul::-webkit-scrollbar { display: none; }
.cs-nav li { flex: none; display: flex; align-items: center; }
.cs-nav li + li::before {            /* same lime dash that separates Works / About */
  content: ""; width: 14px; height: 6px; margin: 0 4px;
  background: var(--lime);
}
.cs-nav a {
  padding: 6px 12px; border-radius: 7px;
  font: 600 16px/normal var(--body);
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.cs-nav a:hover { background: var(--lime); }                     /* hover */
.cs-nav a[aria-current="true"] { background: var(--orange); }    /* current section */
.cs-nav a:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.cs-sec { scroll-margin-top: 72px; }

/* ---------- footer: back to top ---------- */
.site-footer__main { position: relative; }
.to-top {
  position: absolute; right: clamp(24px, 8.2vw, 105px); bottom: 105px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--lime); color: var(--black);
  border-radius: 7px;
}
.to-top:hover { background: var(--black); color: var(--lime); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-split { grid-template-columns: 1fr; row-gap: 40px; }
  .cs-phone { margin-right: 0; justify-self: start; }
  .cs-lists { grid-template-columns: 1fr; }
  .cs-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-vgrid { grid-template-columns: 1fr; }
  .cs-split--proto { margin-top: 72px; }
  .about { padding-top: 56px; }
  .about__top { grid-template-columns: 1fr; row-gap: 32px; }
  .about__text { margin-top: 0; }
  .about__portrait { margin-left: 0; }
}
@media (max-width: 640px) {
  .cs-nav a { font-size: 14px; padding: 5px 9px; }
  .cs-nav ul { margin-left: -9px; }
  .cs-nav li + li::before { width: 10px; margin: 0 2px; }
  .cs-sec { scroll-margin-top: 64px; }
  .to-top { bottom: 64px; }
  .cs-title { font-size: 40px; }
  .cs-sub { font-size: 20px; }
  .cs-h { font-size: 28px; }
  .cs-head { padding-top: 24px; }
  .cs-hero { margin-top: 48px; }
  .cs-sec { margin-top: 72px; }
  .cs-sub { margin-top: 72px; }
  .cs-pair { grid-template-columns: 1fr; }
  .cs-slot { aspect-ratio: 1094 / 300; }
  :root { --header-h: 96px; }
  .brand { font-size: 36px; }
  .nav a { font-size: 16px; }
  .rule--left  { width: 14px; margin-right: 10px; }
  .rule--grow  { margin: 0 10px 0 12px; }
  .rule--mid   { width: 10px; margin: 0 8px; }
  .rule--right { width: 16px; margin-left: 10px; }

  .hero { --u: 233px; min-height: max(calc(100svh - var(--header-h)), 640px); justify-content: center; align-items: stretch; padding: 24px 24px 250px; }
  .intro { position: static; transform: none; width: 100%; }
  .doodles { position: absolute; left: 50%; bottom: 0; margin: 0; width: 900px; transform: translateX(-50%); }
  .intro__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .profile { flex: none; width: 132px; max-width: none; }
  .intro__name, .about__name { font-size: 48px; line-height: 60px; padding-bottom: 6px; }
  .intro__role, .about__role { font-size: 28px; margin-left: 0; }
  .intro__bio { margin-top: 24px; }

  :root { --panel-gap: 100px; }
  .panel--home { padding-top: 70px; }
  .panel--page { padding-top: 40px; }
  .panel__head h1, .panel__head h2 { font-size: 36px; }
  .cards { margin-top: 32px; gap: 40px; }
  .card { padding: 14px 14px 16px; border-radius: 16px; }
  .card__thumb { border-radius: 14px; }
  .card__body { padding: 20px 4px 0; }
  .card__title { font-size: 26px; }
  .card__desc  { font-size: 16px; }
  .card__tags  { position: static; max-width: none; justify-content: flex-start; margin-top: 14px; gap: 8px; }
  .card__tags li { font-size: 14px; }
  .card__view  { margin-top: 18px; }

  .site-footer__main { padding-bottom: 64px; }
  .site-footer__bar { padding: 28px 24px; }
  .about__portrait { width: min(287px, 100%); }
  .info li { font-size: 20px; }
}

@media (max-width: 400px) {
  .brand { font-size: 28px; }
  .nav a { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .doodle, .mark { transition: none; }
  .cs-nav a { transition: none; }
  .brand { transition: color 0.15s ease; }
  .brand:hover, .brand:focus-visible { transform: none; }
  .cs-switch__tabs button { transition: none; }
  .cs-carousel.is-enhanced .cs-carousel__slide, .cs-carousel.is-enhanced .cs-carousel__slide.is-active { transition: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
  .note { transition: none; transform: none; }
  .tile:hover .heart, .tile:focus-visible .heart, .tile.is-active .heart { animation: none; opacity: 1; }
}
