/* ==========================================================================
   Shreyasi | Creative Strategist — desktop interface
   Values measured from the bychudy reference (sizes, colours, type).
   ========================================================================== */

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --desk: #ffffff;
  --win: #EFEBEA;            /* window background */
  --win-line: rgba(0, 0, 0, 0.25);
  --text: #000000;
  --text-2: #7A7A7A;         /* secondary text in windows */
  /* The one accent colour for the whole site */
  --accent: #5D0113;        /* oxblood */
  --accent-hover: #7A0A22;
  --accent-tint: rgba(93, 1, 19, 0.1);
  /* Frosted glass for the widgets and Dock: translucent white over the wallpaper */
  --glass: rgba(255, 255, 255, 0.42);
  --glass-blur: blur(26px) saturate(1.7);
  --glass-edge: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  --glass-text: #1d1d1f;
  --glass-text-2: rgba(29, 29, 31, 0.62);
  --select: var(--accent);   /* selected label, focus rings */
  --red: #E06551;            /* traffic lights */
  --yellow: #ECB944;
  --green: #62BB4B;
  --note-yellow: #F2C14E;

  --icon-h: 60px;            /* thumbnail height on the desktop */
  --label-size: 13px;
  --dock-icon: 50px;         /* macOS icons carry their own margin; the visible square is ~41px */
}

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

html, body { height: 100%; }

body {
  margin: 0;
  overflow: hidden;
  background: var(--desk);
  color: var(--text);
  font: 500 13px/1.2 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Desktop + wallpaper ---------- */

.desktop { position: fixed; inset: 0; overflow: hidden; }

/* Studio portrait from the Framer site, sharp, filling the screen.
   If you move it (object-position), app.js follows so icons still avoid the face. */
.wallpaper { position: absolute; inset: 0; overflow: hidden; background: #e4e4e4; }
.wallpaper img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: none;
  object-fit: cover;
  object-position: 50% 50%;
}
/* Studio gradient, sampled from the Framer site: light cool grey at the top,
   deepening to mid grey at the bottom and edges, so icons and the dock float. */
.wallpaper::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 70% at 50% 35%, transparent 55%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(180deg, rgba(226, 236, 240, 0.25) 0%, rgba(0, 0, 0, 0) 18%, rgba(0, 0, 0, 0.19) 45%, rgba(0, 0, 0, 0.3) 75%, rgba(0, 0, 0, 0.34) 100%);
}

/* ---------- Widget (name, date/time, weather) ---------- */

/* Left widget column: weather/clock on top, music underneath */
.widgets {
  position: absolute; top: 18px; left: 18px; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
  width: 228px;
}
.widget {
  position: relative;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  color: var(--glass-text);
}
.widget__name { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.widget__role { margin: 2px 0 0; color: var(--glass-text-2); font-size: 13px; }
.widget__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 0.5px solid rgba(0, 0, 0, 0.12); }
.widget__date { margin: 0; white-space: nowrap; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--accent); letter-spacing: 0.02em; }
.widget__time { display: block; margin: 1px 0 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.widget__weather { margin: 0; text-align: right; font-size: 11px; color: var(--glass-text-2); }
.widget__temp { display: block; font-size: 20px; font-weight: 600; color: var(--glass-text); }
.widget__temp.is-unavailable { font-size: 13px; font-weight: 500; color: var(--glass-text-2); }
.widget__tips { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.widget__tip { display: flex; align-items: flex-start; gap: 6px; font-size: 11px; line-height: 1.35; color: var(--glass-text-2); }
.widget__bulb { flex: none; display: block; width: 13px; height: 13px; margin-top: 1px; color: var(--accent); }
.widget__bulb svg { display: block; width: 100%; height: 100%; }
.widget__tip a { color: var(--accent); font-weight: 600; text-decoration: none; }
.widget__tip a:hover { text-decoration: underline; }

/* ---------- Brands note, top right (iOS Notes card in the site's oxblood) ---------- */

.brand-note {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  display: flex; flex-direction: column;
  width: 300px; height: 300px; max-height: calc(100% - 130px);  /* a square; the logos scroll inside */
  padding: 12px 14px 10px;
  border-radius: 22px;
  background: rgba(253, 250, 243, 0.94);   /* warm paper */
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  color: var(--glass-text);
}
.brand-note:empty { display: none; }
.brand-note { cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.brand-note:hover { transform: translateY(-2px); box-shadow: var(--glass-edge), 0 14px 36px rgba(0, 0, 0, 0.18); }
.brand-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.brand-note__bar { display: flex; align-items: center; justify-content: space-between; color: var(--accent); }
.brand-note__back { display: flex; align-items: center; gap: 1px; font-size: 13px; margin-left: -4px; }
.brand-note__tools { display: flex; gap: 12px; }
.brand-note__icon { display: block; width: 18px; height: 18px; }
.brand-note__icon svg { display: block; width: 100%; height: 100%; }
.brand-note__title { margin: 16px 0 0; padding: 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.45; }
/* the title, highlighted as if selected, with a selection handle at each end */
.brand-note__hl {
  position: relative; padding: 1px 3px;
  background: rgba(93, 1, 19, 0.14);  /* oxblood, a shade stronger than --accent-tint */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.brand-note__hl::before, .brand-note__hl::after {
  content: ""; position: absolute; width: 9px; height: calc(1.35em + 5px);
  background-repeat: no-repeat;
  background-size: auto, 2px calc(100% - 5px);
}
.brand-note__hl::before {   /* start handle: dot on top */
  left: -5px; top: -5px;
  background-image: radial-gradient(circle 4px at 50% 4px, var(--accent) 92%, transparent), linear-gradient(var(--accent), var(--accent));
  background-position: 0 0, center bottom;
}
.brand-note__hl::after {    /* end handle: dot underneath */
  right: -5px; bottom: -5px;
  background-image: radial-gradient(circle 4px at 50% calc(100% - 4px), var(--accent) 92%, transparent), linear-gradient(var(--accent), var(--accent));
  background-position: 0 0, center top;
}
.brand-note__logos {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px;
  margin: 14px 0 6px; padding: 2px 0 14px; list-style: none;
  /* fades out at the bottom edge, a hint that the logos scroll */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 22px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 22px), transparent);
}
.brand-note__logos::-webkit-scrollbar { display: none; }
.brand-note__logos li { display: grid; place-items: center; }
.brand-note__logos li.is-tile { padding: 4px 6px; border-radius: 4px; }
.brand-note__logos img { display: block; max-width: 100%; height: auto; }
.brand-note__bar--bottom { padding: 8px 2px 0; border-top: 0.5px solid rgba(93, 1, 19, 0.12); }

/* ---------- Music widget (frosted glass, macOS "Now Playing" style) ---------- */

.music {
  padding: 12px;
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  color: var(--glass-text);
}
.music__top { display: flex; align-items: center; gap: 10px; }
.music__cover {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 8px; overflow: hidden;
  background: rgba(0, 0, 0, 0.08);
  color: var(--accent);
}
.music__cover svg { width: 22px; height: 22px; }
.music__cover img { width: 100%; height: 100%; object-fit: cover; }
.music.is-playing .music__cover svg { animation: music-pulse 1.6s ease-in-out infinite; }
@keyframes music-pulse { 50% { transform: scale(1.12); } }
.music__meta { flex: 1; min-width: 0; }
.music__title, .music__artist { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the title may wrap to two lines so it isn't cut off next to the play button */
.music__title { font-size: 13px; font-weight: 700; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.music__artist { margin-top: 2px; font-size: 11px; color: var(--glass-text-2); }
.music__status { margin: 2px 0 0; font-size: 11px; color: var(--accent); }
.music__status:empty { display: none; }
.music.is-error .music__cover { color: rgba(0, 0, 0, 0.35); }
.music__btn {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 6px rgba(93, 1, 19, 0.25);
  cursor: default;
}
.music__btn svg { width: 16px; height: 16px; }
.music__btn:hover { background: var(--accent-hover); }
.music__btn:disabled { background: rgba(0, 0, 0, 0.18); box-shadow: none; }
.music__btn:focus-visible, .music__bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.music__bar { position: relative; height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(0, 0, 0, 0.14); cursor: default; }
.music__bar::before { content: ""; position: absolute; inset: -6px 0; }  /* easier to click */
.music__bar[aria-disabled="true"] { opacity: 0.5; }
.music__fill { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.music__times { display: flex; justify-content: space-between; margin-top: 5px; font-size: 10px; color: var(--glass-text-2); font-variant-numeric: tabular-nums; }

/* Resume PDF on the desktop: shown as a page preview, like macOS */
.icon__doc { background: #fff; }

/* ---------- Desktop icons ---------- */

.icons { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 2; }

.icon {
  position: absolute;
  left: var(--x); top: var(--y);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 150px;
  margin-left: -75px;          /* --x / --y mark the icon's centre-top */
  text-decoration: none;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  -webkit-user-drag: none;
  cursor: default;
}
.icon:focus-visible { outline: none; }
.icon { z-index: 2; }
.icon--placeholder { z-index: 1; }  /* real projects always sit on top */
.icon.is-selected { z-index: 3; }

.icon__thumb {
  display: flex; align-items: flex-end; justify-content: center;
  height: calc(var(--icon-h) + 6px);
  padding: 3px;
  border-radius: 4px;
}
.icon__thumb img {
  display: block;
  height: var(--icon-h); width: auto; max-width: 145px;
  object-fit: cover;
  border-radius: 2px;
  pointer-events: none;
  -webkit-user-drag: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.15); /* float off the backdrop */
}
.icon__placeholder {
  display: grid; place-items: center;
  height: var(--icon-h); width: calc(var(--icon-h) * 0.8);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.9);
  color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase;
  text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 2px;
}
.icon__label {
  max-width: 150px;
  padding: 1px 4px;
  border-radius: 3px;
  color: #FFFEFC;
  font-size: var(--label-size); font-weight: 700; line-height: 1.2;
  text-transform: uppercase; text-align: center;
  /* soft shadow (lighter now that the studio gradient gives the labels contrast) */
  text-shadow: rgba(0, 0, 0, 0.35) 0 1px 2px, rgba(0, 0, 0, 0.18) 0 0 6px;
}

.icon.is-selected .icon__thumb { background: rgba(0, 0, 0, 0.22); }
.icon.is-selected .icon__label { background: var(--select); text-shadow: none; }
.icon:focus-visible .icon__thumb { outline: 2px solid var(--select); outline-offset: 1px; }
.icon.is-dragging { z-index: 5; opacity: 0.85; }

/* Journal icon: an object with its own silhouette, not a photo thumbnail */
.icon__thumb img.icon__art { width: auto; object-fit: contain; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25)); }

/* Folder icon (Work) */
.folder-svg { width: 74px; height: var(--icon-h); display: block; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22)); }

/* ---------- Dock ---------- */

.dock {
  position: absolute; left: 50%; bottom: 16px; z-index: 900;
  transform: translateX(-50%);
  display: flex; align-items: flex-end;
  padding: 6px 12px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  /* glass rim + a soft shadow so the dock floats above the darker bottom of the gradient */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 14px 36px rgba(0, 0, 0, 0.22);
}
.dock__group { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dock__group > li { display: block; }
.dock__sep { width: 1px; height: 41px; margin: 0 4px; border-radius: 1px; background: rgba(214, 214, 214, 0.6); }

.dock__item {
  position: relative;
  display: block;
  width: var(--dock-icon); height: var(--dock-icon);
  cursor: default;
  transition: transform 0.18s ease;
}
button.dock__item { padding: 0; border: 0; background: none; font: inherit; }
.dock__item img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.dock__item:hover, .dock__item:focus-visible { transform: translateY(-6px) scale(1.1); }
.dock__item:focus-visible { outline: none; }
.dock__item:focus-visible img { filter: drop-shadow(0 0 3px var(--select)); }

/* Open-app dot, as in the macOS dock */
.dock__dot {
  position: absolute; left: 50%; bottom: -7px;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.55);
  opacity: 0;
}
.dock__item.is-open .dock__dot { opacity: 1; }
.dock__item:hover .dock__dot, .dock__item:focus-visible .dock__dot { bottom: -1px; } /* stays put while the icon lifts */

/* App-name callout on hover, measured from bychudy: 25% black pill, 10px white text */
.tooltip {
  position: absolute; left: 50%; bottom: calc(100% + 16px);
  transform: translate(-50%, 4px) scale(0.92);
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff; font-size: 10px; font-weight: 400; line-height: 12px; white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.16s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.dock__item:hover .tooltip, .dock__item:focus-visible .tooltip { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Windows ---------- */

.windows { position: absolute; inset: 0; z-index: 10; pointer-events: none; }

.win {
  position: absolute;
  display: flex; flex-direction: column;
  width: min(var(--w, 576px), calc(100% - 24px));
  max-height: min(var(--h, 540px), calc(100% - 110px));
  background: var(--win);
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.25) 1px 2px 3px 0px, 0 0 0 0.5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  pointer-events: auto;
  animation: win-in 0.16s ease-out;
}
.win:focus { outline: none; }
.win.is-front { box-shadow: rgba(0, 0, 0, 0.3) 1px 2px 3px 0px, 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 18px 50px rgba(0, 0, 0, 0.18); }

@keyframes win-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.win__bar {
  position: relative;
  flex: none;
  display: flex; align-items: center; gap: 12px;
  height: 31px;
  padding: 0 10px;
  user-select: none; -webkit-user-select: none;
  touch-action: none;
  cursor: default;
}
.win__bar::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0;
  height: 1px; background: var(--win-line);
}
.lights { display: flex; gap: 5px; align-items: center; }
.light {
  display: grid; place-items: center;
  width: 9px; height: 9px;
  padding: 0; border: 0; border-radius: 50%;
  font-size: 8px; line-height: 1; color: transparent;
}
.light--red { background: var(--red); cursor: pointer; position: relative; }
.light--red::before { content: ""; position: absolute; inset: -6px; }  /* bigger hit area */
.light--yellow { background: var(--yellow); }
.light--green { background: var(--green); }
.lights:hover .light--red { color: rgba(80, 0, 0, 0.8); }
.light--red:focus-visible { outline: 2px solid var(--select); outline-offset: 2px; }
.win:not(.is-front) .light { background: #cfcac9; }
.win__title { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; }
.win:not(.is-front) .win__title { color: #8c8c8c; }
.win__done { display: none; text-decoration: none; }

.win__body {
  flex: 1 1 auto; min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 10px 16px;
}

/* "Information about" layout */
.info-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.info-head__icon { width: 50px; height: 50px; flex: none; border-radius: 2px; object-fit: cover; background: rgba(0, 0, 0, 0.06); }
.info-head__icon svg { display: block; width: 100%; height: 100%; }
.info-head__title { margin: 0; font-size: 13px; font-weight: 700; }
.info-head__sub { margin: 3px 0 0; font-size: 13px; font-weight: 500; }

.info-desc { color: var(--text-2); font-size: 13px; line-height: 1.2; }
.info-desc p { margin: 0; }
.info-desc p + p { margin-top: 0.4em; }

.info-section { margin-top: 10px; }
.info-section > summary {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
  padding: 2px 0;
  font-size: 13px; font-weight: 500;
  cursor: default;
}
.info-section > summary::-webkit-details-marker { display: none; }
.info-section > summary::before {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid #555; border-bottom: 1.5px solid #555;
  transform: rotate(-45deg); margin: 0 2px 0 3px;
  transition: transform 0.12s ease;
}
.info-section[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.info-section__content { padding: 6px 0 0 15px; font-size: 13px; line-height: 1.2; }
.info-section__content p { margin: 0 0 0.4em; }
.kv { margin: 0; }
.kv div { display: flex; gap: 4px; margin: 0 0 4px; }
.kv dt { flex: none; }
.kv dd { margin: 0; }

/* Case study extras: a cover photo, a headline, and a chaptered write-up */
.case-cover { display: block; margin: 0 0 12px; }
.case-cover img { display: block; width: 100%; height: auto; border-radius: 10px; background: rgba(0, 0, 0, 0.05); }
.info-desc__lead { margin: 0 0 0.4em; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.25; }
.case-chapters { padding-right: 4px; }
.case-chapter { line-height: 1.45; }
.case-chapter + .case-chapter { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, 0.08); }
.case-chapter__kicker { margin: 0 0 2px !important; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.case-chapter__kicker + p { margin-top: 6px; } /* a chapter without a title */
.case-chapter__title { margin: 0 0 6px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.case-chapter p { margin: 0 0 0.6em; }
.case-format { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.04); }
.case-format__name { margin: 0 0 4px !important; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.case-format p:last-of-type { margin-bottom: 0; }
.case-format.has-image { display: grid; grid-template-columns: minmax(92px, 30%) minmax(0, 1fr); gap: 12px; align-items: start; }
.case-format__image { display: block; }
.case-format__image img { display: block; width: 100%; height: auto; border-radius: 6px; background: rgba(0, 0, 0, 0.05); }
.case-format__body { min-width: 0; }
.case-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.case-stats li { padding: 3px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.case-table-wrap { overflow-x: auto; margin: 4px 0 6px; }
.case-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.case-table th, .case-table td { padding: 6px 8px; border-bottom: 1px solid rgba(0, 0, 0, 0.08); text-align: left; }
.case-table thead th { color: var(--text-2); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.case-table tbody th { font-weight: 500; }
.case-table .num { text-align: right; }
.case-table td.is-key { font-weight: 700; color: var(--accent); } /* the column a table sets as highlight */
.case-note { color: var(--text-2); font-size: 12px; }
/* headline numbers: two large accent tiles, then a row of three smaller ones */
.case-figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 8px 0 10px; padding: 0; list-style: none; }
.case-figures li { grid-column: span 2; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 8px; background: var(--accent-tint); line-height: 1.25; }
.case-figures li.is-key { grid-column: span 3; padding: 14px; background: var(--accent); color: #fff; }
.case-figures strong { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--accent); }
.case-figures li.is-key strong { font-size: 30px; color: #fff; }
.case-figures span { font-size: 11.5px; color: var(--text-2); }
.case-figures li.is-key span { font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.case-links.case-links--inline { padding: 0; margin: 10px 0 4px; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 6px; }
.case-gallery a { display: block; }
.case-gallery img { display: block; width: 100%; height: auto; border-radius: 6px; background: rgba(0, 0, 0, 0.05); transition: opacity 0.15s ease; }
.case-gallery a:hover img { opacity: 0.88; }
.case-gallery a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
/* bento gallery: 4:3 tiles in two columns; a tall image fills two rows (cropped to fit, never stretched) */
.case-bento { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: dense; gap: 6px; margin: 12px 0 6px; }
.case-bento a { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, 0.05); }
.case-bento a.is-tall { grid-row: span 2; aspect-ratio: auto; }
.case-bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.case-bento a:hover img { transform: scale(1.03); }
.case-bento a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.case-list { margin: 4px 0 10px; padding: 0; list-style: none; }
.case-list li { position: relative; margin: 0 0 6px; padding-left: 14px; }
.case-list li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.case-list strong { margin-right: 6px; }
.info-desc__meta { margin: 0 0 0.5em; font-size: 12px; font-style: italic; }
.case-image { display: block; margin: 10px 0 4px; }
.case-image img { display: block; width: 100%; height: auto; border-radius: 8px; background: rgba(0, 0, 0, 0.05); }
/* a link to an Instagram reel, inside a format card */
.case-reel {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 8px 10px;
  border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.08);
  color: inherit; text-decoration: none;
  transition: box-shadow 0.15s ease;
}
.case-links { display: grid; gap: 8px; padding: 12px 15px 0; }
.case-links .case-reel { margin-top: 0; }
.case-reel:hover { box-shadow: 0 0 0 1px var(--accent), 0 2px 6px rgba(0, 0, 0, 0.12); }
.case-reel:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.case-reel__play { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; }
.case-reel__play svg { width: 14px; height: 14px; margin-left: 2px; }
.case-reel__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.case-reel__text strong { font-size: 12.5px; }
.case-reel__text span { color: var(--text-2); font-size: 11.5px; }
.case-closer { margin-top: 10px !important; font-weight: 700; }

.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 6px 15px 0; }
.preview a { display: block; }
.preview a:first-child { grid-column: 1 / -1; }
/* case study previews: every image fits the window width (the Gallery keeps its square grid) */
.preview:not(.preview--squares) { grid-template-columns: 1fr; }
.preview img { display: block; width: 100%; height: auto; border-radius: 10px; background: rgba(0, 0, 0, 0.05); }

/* Gallery: bychudy grid of rounded squares (first one full width) */
.preview--squares > * { aspect-ratio: 1; }
.preview--squares > :first-child { grid-column: 1 / -1; }
.preview--squares img { height: 100%; object-fit: cover; }

/* Placeholder tiles */
.ph {
  display: grid; place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  color: var(--text-2); font-size: 12px;
}
.ph--wide { aspect-ratio: 16 / 10; }

/* Bin of Ideas: big rounded images, each with a caption box */
.bin { display: grid; gap: 14px; padding: 6px 15px 0; }
.bin__item { margin: 0; }
.bin__item img { display: block; width: 100%; height: auto; border-radius: 10px; }
.bin__body { margin-top: 6px; }
.bin__open { display: block; border-radius: 10px; cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(40, 30, 25, 0.12), 0 6px 18px -6px rgba(40, 30, 25, 0.22); }   /* a subtle shadow */
.bin { padding-bottom: 10px; }   /* room for the last board's shadow */

.caption {
  display: block; margin-top: 6px; padding: 6px 8px;
  border-radius: 6px; background: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}
.muted { color: var(--text-2); }
.info-head__icon--app { background: none; object-fit: contain; border-radius: 0; }

.placeholder-note {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  color: var(--text-2);
}

/* Finder-style Work window */
.finder-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--text-2); }
.seg { display: inline-flex; padding: 2px; border-radius: 7px; background: rgba(0, 0, 0, 0.07); }
.seg button {
  padding: 3px 10px; border: 0; border-radius: 5px; background: transparent;
  font-size: 12px; font-weight: 500; cursor: default;
}
.seg button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }

.finder-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 18px 8px; margin: 0; padding: 0; list-style: none;
}
.finder-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px; border-radius: 6px; text-decoration: none; text-align: center; }
.finder-item img, .finder-item .icon__placeholder { height: 72px; width: auto; max-width: 100px; object-fit: cover; border-radius: 2px; }
.finder-item .icon__placeholder { width: 58px; background: rgba(0, 0, 0, 0.06); border-color: rgba(0, 0, 0, 0.25); color: var(--text-2); text-shadow: none; }
.finder-item span { font-size: 12px; line-height: 1.25; }
.finder-item:hover, .finder-item:focus-visible { background: var(--accent-tint); outline: none; }

.finder-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.finder-table th { padding: 4px 6px; text-align: left; font-weight: 500; color: var(--text-2); border-bottom: 1px solid var(--win-line); }
.finder-table td { padding: 5px 6px; vertical-align: top; }
.finder-table tbody tr:nth-child(odd) { background: rgba(0, 0, 0, 0.035); }
.finder-table tbody tr { position: relative; }
.finder-table tbody tr:hover { background: var(--accent-tint); }
.finder-table a { text-decoration: none; font-weight: 600; }
.finder-table a::after { content: ""; position: absolute; inset: 0; }
.finder-table .muted td { color: var(--text-2); }

/* Notes window (About / CV) */
/* Sidebar and note scroll separately, so the tabs never scroll out of view. */
.notes { flex: 1; min-height: 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.notes__list { margin: 0; padding: 8px 6px; list-style: none; border-right: 1px solid rgba(0, 0, 0, 0.12); overflow: auto; }
.notes__list button {
  display: flex; justify-content: space-between; width: 100%;
  padding: 5px 8px; border: 0; border-radius: 6px; background: transparent;
  font-size: 13px; font-weight: 500; text-align: left; cursor: default;
}
.notes__list button span { color: var(--text-2); }
.notes__list button[aria-selected="true"] { background: rgba(0, 0, 0, 0.1); }
.notes__page { padding: 12px 16px 18px; background: #fff; overflow: auto; font-size: 13px; line-height: 1.35; }
.notes__page h3 { margin: 14px 0 6px; font-size: 13px; font-weight: 700; }
.notes__page h3:first-child { margin-top: 0; }
.notes__page p { margin: 0 0 0.6em; }
.checks { margin: 0 0 0.6em; padding: 0; list-style: none; }
.checks li { position: relative; padding: 2px 0 2px 22px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  display: grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--note-yellow); color: #fff; font-size: 10px; font-weight: 700;
}
.checks small { display: block; color: var(--text-2); }
.checks__sub { margin: 4px 0 6px; padding-left: 14px; color: var(--text-2); font-size: 12px; }
.checks__sub li { padding: 1px 0; }
.checks__sub li::before { content: none; }
.notes__lead { margin-top: 1em !important; font-weight: 600; }
.win--notes { height: min(var(--h), calc(100% - 110px)); }  /* same size on every tab */
.win--notes .win__body { display: flex; padding: 0; overflow: hidden; }

/* About Me window: standard window chrome (like Gallery, Bin of Ideas…);
   the content keeps the Framer site's layout and type. */
.win--about .win__body { padding: 16px 18px 18px; }

.fm-title { margin: 0 0 20px; font: 600 28px/1.2 Inter, var(--font); letter-spacing: -0.03em; }
.fm-card { display: flex; align-items: flex-end; gap: 24px; }
.fm-photo {
  flex: none; display: block;
  width: 128px; height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.fm-rows { flex: 1; min-width: 0; margin: 0; }
.fm-row {
  display: flex; align-items: baseline; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  font: 400 16px/22.4px Inter, var(--font);
  letter-spacing: -0.04em;
}
.fm-row dt { flex: none; color: #000; font-family: "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; }
.fm-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--text-2); }
.fm-row a { color: var(--accent); text-decoration: none; letter-spacing: 0; }
.fm-row a:hover { text-decoration: underline; }
.fm-bio {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  font: 400 16px/1.2 Inter, var(--font);
}
.fm-bio p { margin: 0 0 19px; }
.fm-bio p:last-child { margin-bottom: 0; }
.fm-bio .hl { color: var(--accent); }
.fm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
a.mac-btn { display: inline-flex; align-items: center; text-decoration: none; }

/* 404 window (also used by 404.html) */
.nf { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; padding: 8px 8px 4px; }
.nf__photo {
  display: block; width: 170px; height: auto;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transform: rotate(-3deg);
}
.nf__code { margin: 0 0 6px; color: var(--accent); font: 400 11px/1.4 "JetBrains Mono", ui-monospace, monospace; text-transform: uppercase; letter-spacing: 0.06em; }
.nf__title { margin: 0 0 10px; font: 600 24px/1.15 Inter, var(--font); letter-spacing: -0.03em; }
.nf__text { margin: 0 0 10px; font-size: 13px; line-height: 1.45; }
.nf__path { margin: 0 0 16px; color: var(--text-2); font-size: 12px; overflow-wrap: anywhere; }
.nf__path code { font: 400 11px "JetBrains Mono", ui-monospace, monospace; }
.nf__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Error pop-up behind Keynote / Word (bychudy's dark app alert) */
.error {
  position: absolute; z-index: 950;
  width: 340px;
  padding: 8px 14px 12px;
  border-radius: 10px;
  background: rgba(40, 40, 40, 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.14), 0 20px 50px rgba(0, 0, 0, 0.35);
  color: #ececec;
  animation: win-in 0.16s ease-out;
}
.error__title { margin: 0 0 8px; text-align: center; font-size: 11px; color: #a8a8a8; }
.error__body { display: flex; align-items: flex-start; gap: 12px; }
.error__icon { flex: none; width: 52px; height: 52px; margin: -4px 0 0 -4px; }
.error__text { margin: 0; font-size: 12px; line-height: 1.4; }
.error__actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.error__btn {
  padding: 4px 12px;
  border: 0; border-radius: 5px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 500;
  cursor: default;
}
.error__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Interests: bento grid of images */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 84px;
  grid-auto-flow: dense;
  gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.bento > li { border-radius: 10px; overflow: hidden; }
.bento > li.ph { aspect-ratio: auto; }
.bento img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bento > li:nth-child(7n + 1) { grid-column: span 2; grid-row: span 2; }
.bento > li:nth-child(7n + 3) { grid-row: span 2; }
.bento > li:nth-child(7n + 5) { grid-column: span 2; }

/* macOS buttons */
.mac-btn {
  min-height: 24px; padding: 3px 12px;
  border: 0; border-radius: 6px;
  background: #fff; color: #000;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.18), 0 1px 1.5px rgba(0, 0, 0, 0.12);
  font: 500 13px var(--font);
  cursor: default;
}
.mac-btn:active { background: #f0f0f0; }
.mac-btn:disabled { opacity: 0.45; }
.mac-btn--default { background: var(--accent); color: #fff; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 1px 1.5px rgba(0, 0, 0, 0.18); }
.mac-btn--default:active { background: var(--accent-hover); }
.mac-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent); }

/* Mail window buttons */
.alert__buttons { display: grid; gap: 6px; }
.alert__btn {
  display: block; padding: 5px 10px;
  border: 0; border-radius: 6px;
  background: #fff; box-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.25);
  font-size: 13px; font-weight: 500; text-align: center; text-decoration: none; cursor: default;
}
.alert__btn--primary { background: var(--accent); color: #fff; }
.alert__btn--primary:hover, .error__btn:hover { background: var(--accent-hover); }

.noscript { position: absolute; left: 24px; top: 24px; max-width: 360px; padding: 16px; border-radius: 12px; background: #fff; }

/* ==========================================================================
   Phones: icons cluster over the portrait, dock along the bottom,
   windows open full-screen with a large Done button.
   ========================================================================== */

@media (max-width: 767px) {
  :root { --icon-h: 50px; --label-size: 11px; --dock-icon: min(52px, calc((100vw - 84px) / 6)); } /* six apps fit any phone width */

  .widgets { top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; width: auto; gap: 8px; }
  .widget {
    display: grid; grid-template-columns: 1fr auto; column-gap: 12px;
    padding: 12px 14px;
  }
  .widget__row { grid-row: span 2; margin: 0; padding: 0 0 0 12px; border-top: 0; border-left: 0.5px solid rgba(0, 0, 0, 0.12); flex-direction: column; align-items: flex-end; gap: 2px; }
  .widget__time { font-size: 20px; }
  .widget__temp { font-size: 13px; display: inline; }
  .widget__tips { display: none; }  /* phones: keep the widget compact */

  /* Music: one compact row on phones */
  .music { padding: 8px 10px; border-radius: 16px; }
  .music__cover { width: 36px; height: 36px; }
  .music__bar { margin-top: 8px; }
  .music__times { display: none; }

  /* Brands note: a slim strip above the Dock (bottom set in app.js), logos scrolled sideways */
  .brand-note { top: auto; left: 12px; right: 12px; width: auto; height: auto; max-height: none; padding: 9px 0 7px; border-radius: 16px; }
  .brand-note:hover { transform: none; }
  .brand-note__bar { display: none; }  /* phones: just the title and the logos */
  .brand-note__title { margin: 0 14px; padding: 0 4px; font-size: 13px; line-height: 1.5; }
  .brand-note__logos {
    flex-wrap: nowrap; justify-content: flex-start; gap: 18px;
    margin: 7px 0 0; padding: 2px 16px; overflow-x: auto; overflow-y: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }
  .brand-note__logos li { flex: none; }


  .icon { width: 108px; margin-left: -54px; }
  .icon__label { max-width: 108px; }
  .icon__thumb img { max-width: 100px; }
  .folder-svg { width: 62px; }

  .dock { bottom: calc(10px + env(safe-area-inset-bottom)); gap: 0; padding: 8px 10px; border-radius: 22px; }
  .dock__group { gap: 4px; }
  .dock__group > .dock--joke { display: none; }  /* Keynote / Word jokes: desktop only, to keep the phone dock to 6 apps */
  .win__done { margin-left: auto; }
  .error { width: min(320px, calc(100% - 32px)); z-index: 1200; }
  .fm-card { gap: 16px; }
  .nf { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; }
  .nf__photo { width: 150px; }
  .nf__actions { justify-content: center; }
  .fm-photo { width: 104px; height: 122px; }
  .fm-row { flex-wrap: wrap; gap: 0 8px; font-size: 15px; }
  .tooltip { display: none; }

  .windows { position: fixed; z-index: 1000; }
  .win {
    left: 0 !important; top: 0 !important;
    width: 100%; height: 100%; max-height: none;
    border-radius: 0;
    animation: sheet-in 0.2s ease-out;
  }
  .win__bar { height: calc(48px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .win__bar::after { left: 0; right: 0; }
  .light { width: 12px; height: 12px; }
  .win__title { flex: 1; }
  .win__done {
    display: block;
    min-height: 44px; min-width: 44px;
    padding: 8px 12px; margin-right: -4px;
    border: 0; border-radius: 8px; background: transparent;
    color: var(--accent); font-size: 16px; font-weight: 600;
  }
  .win__body { padding: 14px 14px calc(30px + env(safe-area-inset-bottom)); }
  .win--notes .win__body { padding: 0; }
  .win--notes { height: 100%; }
  .notes { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
  .notes__list { display: flex; gap: 2px; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
  .notes__list li { flex: none; }
  .notes__list button { gap: 5px; padding: 8px 8px; } /* all four notes fit across a phone */
  .wallpaper img { object-position: 40% 50%; }  /* keep her face and sweater in frame */
}

/* ---------- Track Record > Brands: logos side by side, in their own colours ---------- */

.brand-wall {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 34px;
  margin: 20px 0 8px; padding: 0; list-style: none;
}
.brand-wall li { display: grid; place-items: center; }
.brand-wall li.is-tile { padding: 7px 10px; border-radius: 6px; } /* white-only logos on their brand colour */
.brand-wall img { display: block; max-width: 100%; height: auto; }

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

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