/* ===========================================================
   Tyrone Barton-Robie — Portfolio OS
   macOS / iOS inspired desktop experience
   =========================================================== */

:root {
  --font-sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink: #1d1d1f;
  --ink-soft: #515154;
  --ink-faint: #86868b;
  --accent: #0a82ff;
  --claude-paper: #f5f0e8;
  --claude-coral: #d97757;
  --window-radius: 14px;
  --dock-h: 76px;
  --menubar-h: 30px;
  --shadow-window: 0 24px 70px rgba(0, 0, 0, 0.28), 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-window-blur: 0 14px 40px rgba(0, 0, 0, 0.16), 0 2px 8px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sys);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

/* ============ Desktop ============ */

.desktop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 110%, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0) 55%),
    url("assets/wallpaper.png") center / cover no-repeat,
    #f4f4f6;
  user-select: none;
  -webkit-user-select: none;
}

/* ============ Menu bar ============ */

.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--menubar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink);
  background: rgba(252, 252, 253, 0.55);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  z-index: 4000;
}

.menubar-left, .menubar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menubar-apple { display: flex; align-items: center; opacity: 0.85; }
.menubar-app { font-weight: 700; letter-spacing: -0.01em; }

.menubar-menus { display: flex; gap: 16px; color: var(--ink-soft); }
.menubar-menus span { cursor: default; }

.mb-glyph { opacity: 0.75; }
.menubar-clock { font-variant-numeric: tabular-nums; color: var(--ink-soft); }

/* ============ Desktop project files ============ */

.icons-layer {
  position: absolute;
  inset: var(--menubar-h) 0 var(--dock-h) 0;
  z-index: 10;
}

.desktop-file {
  position: absolute;
  width: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  border: none;
  background: none;
  cursor: default;
  border-radius: 12px;
  touch-action: none;
}

.desktop-file:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.file-thumb {
  width: 84px;
  height: 84px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 0 0 0.5px rgba(255, 255, 255, 0.35);
  transition: transform 0.18s cubic-bezier(0.32, 0.72, 0.35, 1.2), box-shadow 0.18s ease;
  pointer-events: none;
}

.file-thumb svg,
.file-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.desktop-file:hover .file-thumb { transform: scale(1.04); }

.file-label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  text-shadow: 0 1px 6px rgba(255, 255, 255, 0.9);
  padding: 2px 8px;
  border-radius: 7px;
  max-width: 108px;
  pointer-events: none;
}

.desktop-file.selected .file-label {
  background: var(--accent);
  color: #fff;
  text-shadow: none;
}

.desktop-file.selected .file-thumb {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 0 3px rgba(10, 130, 255, 0.45);
}

.desktop-file.dragging { z-index: 60; opacity: 0.92; }
.desktop-file.dragging .file-thumb { transform: scale(1.08); }

/* ============ Dock ============ */

.dock-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  display: flex;
  justify-content: center;
  z-index: 5000;
  pointer-events: none;
}

.dock {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 9px 12px;
  border-radius: 30px;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px) saturate(2.1) brightness(1.1) url(#dockRefract);
  -webkit-backdrop-filter: blur(15px) saturate(2.1) brightness(1.1) url(#dockRefract);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    /* drop + ambient depth */
    0 22px 50px rgba(31, 38, 80, 0.26),
    0 4px 14px rgba(0, 0, 0, 0.10),
    /* prismatic edge glints — cool left, warm right */
    -9px 11px 30px rgba(70, 140, 255, 0.38),
    9px 11px 30px rgba(255, 105, 195, 0.34),
    0 16px 34px rgba(150, 120, 255, 0.18),
    /* glossy top rim + soft bottom catch */
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95),
    inset 0 -8px 18px rgba(255, 255, 255, 0.35),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.4);
}

/* Glossy top-half reflection sweeping across the glass */
.dock::before {
  content: "";
  position: absolute;
  inset: 1px 1px 45% 1px;
  border-radius: 29px 29px 40px 40px / 29px 29px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.12) 60%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

/* Refractive rim: bright top-left, faint prismatic spectrum along the bottom edge */
.dock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.15) 30%,
      rgba(150, 190, 255, 0.5) 55%,
      rgba(220, 160, 255, 0.45) 72%,
      rgba(255, 170, 210, 0.55) 88%,
      rgba(255, 255, 255, 0.85) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dock-icon {
  --mag: 1;
  display: block;
  width: 54px;
  height: 54px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 15px;
  transform: scale(var(--mag)) translateY(calc((var(--mag) - 1) * -16px));
  transform-origin: bottom center;
  transition: transform 0.13s ease-out;
  will-change: transform;
}

.dock-icon svg,
.dock-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30%;
  /* glassy depth: drop shadow + bevelled glass rim */
  box-shadow:
    0 7px 16px rgba(0, 0, 0, 0.26),
    0 2px 4px rgba(0, 0, 0, 0.16),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.9),
    inset 0 -5px 9px rgba(0, 0, 0, 0.22),
    inset 0 6px 12px rgba(255, 255, 255, 0.22);
}

/* Liquid-glass sheen: bright specular cap + glossy top reflection */
.dock-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30%;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(60% 38% at 32% 14%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.14) 100%);
}

/* Lower glossy catch-light reflection */
.dock-icon::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 10%;
  height: 26%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(100% 100% at 50% 100%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 72%);
  filter: blur(1px);
}

/* Pre-rendered glass widgets: art already has gloss + shape, so drop the
   synthetic bevel/sheen and let the PNG show full-bleed */
.dock-icon--widget {
  width: 56px;
  height: 56px;
}

.dock-icon--widget .dock-widget {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.18));
}

.dock-icon--widget::before,
.dock-icon--widget::after { content: none; }

.dock-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.dock-icon.bouncing { animation: dock-bounce 0.55s cubic-bezier(0.28, 0.8, 0.4, 1) 2; }

@keyframes dock-bounce {
  0%, 100% { transform: scale(var(--mag)) translateY(calc((var(--mag) - 1) * -16px)); }
  40% { transform: scale(var(--mag)) translateY(calc((var(--mag) - 1) * -16px - 22px)); }
}

.dock-dot {
  width: 4px;
  height: 4px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.65);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dock-item.running .dock-dot { opacity: 1; }

.dock-sep {
  width: 1px;
  align-self: stretch;
  margin: 4px 3px;
  background: rgba(0, 0, 0, 0.14);
}

.dock-tip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink);
  background: rgba(252, 252, 253, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dock-item:hover .dock-tip,
.dock-icon:focus-visible + .dock-dot + .dock-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ Windows ============ */

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

/* While a window is full screen, lift the layer above the menu bar and dock
   so the title bar controls stay reachable */
.desktop.has-fullscreen .windows-layer { z-index: 6000; }

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 220px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-radius: var(--window-radius);
  border: 0.5px solid rgba(0, 0, 0, 0.10);
  box-shadow: var(--shadow-window-blur);
  overflow: hidden;
  pointer-events: auto;
  animation: window-open 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transition: box-shadow 0.2s ease;
}

.window.focused { box-shadow: var(--shadow-window); }
.window:focus { outline: none; }

@keyframes window-open {
  from { opacity: 0; transform: scale(0.92) translateY(18px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.window.closing {
  animation: window-close 0.22s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes window-close {
  to { opacity: 0; transform: scale(0.92) translateY(14px); }
}

.window.minimized {
  transition: transform 0.38s cubic-bezier(0.5, 0, 0.7, 0.4), opacity 0.34s ease;
  transform-origin: var(--min-x, 50%) calc(100% + 60px);
  transform: scale(0.06) translateY(140px);
  opacity: 0;
  pointer-events: none;
}

.window.fullscreen {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
  border: none;
  z-index: 6000 !important; /* intentionally overlays menu bar and dock */
  transition: all 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.window.animating-frame { transition: all 0.34s cubic-bezier(0.22, 1, 0.36, 1); }

/* Title bar */

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  flex: 0 0 46px;
  padding: 0 14px;
  background: rgba(249, 249, 250, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  cursor: grab;
}

.window.dragging-window .window-titlebar { cursor: grabbing; }

.traffic-lights { display: flex; gap: 8px; }

.tl {
  width: 12.5px;
  height: 12.5px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 9px;
  line-height: 1;
  font-weight: 700;
}

.tl-close { background: #ff5f57; }
.tl-min   { background: #febc2e; }
.tl-full  { background: #28c840; }

.window:not(.focused) .tl { background: #d6d6d8; }

.traffic-lights:hover .tl-close { color: rgba(77, 0, 0, 0.7); }
.traffic-lights:hover .tl-min   { color: rgba(99, 64, 0, 0.75); }
.traffic-lights:hover .tl-full  { color: rgba(0, 70, 12, 0.7); }

.tl:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.window-title {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  pointer-events: none;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
}

.window-title .wt-icon { width: 17px; height: 17px; border-radius: 4.5px; flex: 0 0 auto; }
.window-title .wt-icon svg,
.window-title .wt-icon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4.5px; }

.titlebar-spacer { width: 52px; flex: 0 0 52px; }

/* Body */

.window-body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  user-select: text;
  -webkit-user-select: text;
  cursor: auto;
}

.resize-handle {
  position: absolute;
  right: 0; bottom: 0;
  width: 20px; height: 20px;
  cursor: nwse-resize;
  touch-action: none;
}

.window.fullscreen .resize-handle { display: none; }

/* ============ Shared content styles ============ */

.pane { padding: 30px 34px 38px; line-height: 1.6; font-size: 14.5px; color: var(--ink); }
.pane h1 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 4px; }
.pane h2 { font-size: 16px; letter-spacing: -0.01em; margin: 26px 0 8px; }
.pane p { margin-bottom: 12px; color: var(--ink-soft); }
.pane p strong { color: var(--ink); }
.pane a { color: var(--accent); text-decoration: none; }
.pane a:hover { text-decoration: underline; }
.pane .placeholder-note {
  margin-top: 26px;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-faint);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.chip {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.055);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.pane a.btn { color: #fff; }
.btn.secondary, .pane a.btn.secondary { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ Finder / About ============ */

.about-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.about-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 50%;
  background: url("assets/avatar.png") no-repeat;
  background-size: 300%;
  background-position: 42% 12%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 6px 16px rgba(0, 0, 0, 0.14);
}

.about-hero .kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.exp-list { list-style: none; }
.exp-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
  font-size: 13.5px;
}
.exp-list li span:last-child { color: var(--ink-faint); white-space: nowrap; }

.about-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ============ Claude window ============ */

.claude-body { background: var(--claude-paper); display: flex; flex-direction: column; min-height: 100%; }

.claude-thread { flex: 1; padding: 28px 30px 18px; max-width: 660px; margin: 0 auto; width: 100%; }

.claude-msg-user {
  margin-left: auto;
  max-width: 78%;
  width: fit-content;
  background: #e9e2d4;
  border-radius: 18px 18px 5px 18px;
  padding: 11px 16px;
  font-size: 14px;
  color: #3d3929;
  margin-bottom: 22px;
}

.claude-msg-ai { font-size: 14.5px; line-height: 1.7; color: #3d3929; }
.claude-msg-ai p { margin-bottom: 13px; }
.claude-msg-ai strong { color: #29251a; }

.claude-mark {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--claude-coral);
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.exp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 14px 0 8px; }

.exp-card {
  background: rgba(255, 255, 255, 0.72);
  border: 0.5px solid rgba(61, 57, 41, 0.12);
  border-left: 3px solid var(--claude-coral);
  border-radius: 12px;
  padding: 14px 15px;
  font-size: 13px;
  line-height: 1.5;
  color: #57513e;
}

.exp-card h3 { font-size: 13.5px; margin-bottom: 4px; color: #29251a; }
.exp-card .tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--claude-coral);
}

.claude-inputbar {
  margin: 10px 30px 22px;
  max-width: 660px;
  align-self: center;
  width: calc(100% - 60px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 0.5px solid rgba(61, 57, 41, 0.16);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: #a8a193;
  box-shadow: 0 4px 14px rgba(61, 57, 41, 0.07);
}

/* ============ Notes window ============ */

.notes-body { display: grid; grid-template-columns: 215px 1fr; min-height: 100%; }

.notes-sidebar {
  background: rgba(246, 245, 242, 0.9);
  border-right: 0.5px solid rgba(0, 0, 0, 0.09);
  padding: 14px 10px;
  overflow-y: auto;
}

.notes-sidebar .notes-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0 10px 8px;
}

.note-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
}

.note-item .nt { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.note-item .ns { font-size: 12px; color: var(--ink-faint); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.note-item.active { background: #ffd84d; }
.note-item.active .ns { color: rgba(0, 0, 0, 0.55); }
.note-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.notes-main { padding: 26px 30px 36px; overflow-y: auto; }
.notes-main .note-date { font-size: 12px; color: var(--ink-faint); text-align: center; margin-bottom: 14px; }
.notes-main h1 { font-size: 22px; margin-bottom: 10px; letter-spacing: -0.01em; }
.notes-main p, .notes-main li { font-size: 14px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 10px; }
.notes-main ul { padding-left: 20px; }
.note-img {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 16px 0 4px;
  border-radius: 12px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

/* ============ Bin window ============ */

.bin-intro { margin-bottom: 18px; }

.bin-list { list-style: none; }

.bin-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 11px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bin-row:nth-child(even) { background: rgba(0, 0, 0, 0.028); }

.bin-row .bi {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 17px;
  background: rgba(0, 0, 0, 0.05);
}

.bin-row .bn { font-size: 13.5px; font-weight: 600; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.bin-row .bd { font-size: 12.5px; color: var(--ink-faint); }

.bin-row.emptied { opacity: 0; transform: translateX(26px) scale(0.96); }

.bin-footer { margin-top: 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bin-empty-msg { font-size: 13px; color: var(--ink-faint); font-style: italic; }

/* ============ LinkedIn / Instagram previews ============ */

.social-banner { height: 92px; }
.social-banner.li { background: linear-gradient(120deg, #0a66c2, #084e94); }

.social-card { padding: 0 28px 30px; }

.social-avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  margin-top: -43px;
  border: 4px solid #fff;
  background: url("assets/li-avatar.png") center / cover no-repeat;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.social-card h1 { font-size: 21px; margin: 12px 0 2px; }
.social-card .sub { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 4px; }
.social-card .meta { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 16px; }

.li-pronouns { font-size: 13px; font-weight: 400; color: var(--ink-faint); }

.social-card .meta { margin-bottom: 6px; }
.social-card .meta a { font-weight: 600; }

.li-connections {
  font-size: 13px;
  font-weight: 600;
  color: #0a66c2;
  margin-bottom: 16px;
}

.li-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.li-actions .btn { background: #0a66c2; }
.li-actions .btn.secondary { background: rgba(0, 0, 0, 0.06); }

.li-rows {
  border-top: 0.5px solid rgba(0, 0, 0, 0.09);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.li-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}

.li-row strong { color: var(--ink); }
.li-row-sub { font-size: 12px; color: var(--ink-faint); }

.li-tile {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ig-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 18px;
}

.ig-ring {
  width: 74px; height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf);
}

.ig-ring .ig-av {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: url("assets/avatar.png") no-repeat;
  background-size: 300%;
  background-position: 42% 12%;
}

.ig-head h1 { font-size: 18px; margin-bottom: 2px; }
.ig-head .sub { font-size: 13px; color: var(--ink-soft); }

.ig-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.ig-stats strong { color: var(--ink); font-weight: 700; }

.ig-bio {
  padding: 0 28px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 6px 0 18px;
}

.ig-grid > div { aspect-ratio: 1; }

.ig-post {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
}

.ig-post img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-post .ig-vid {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.ig-post .ig-likes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.ig-post:hover .ig-likes,
.ig-post:focus-visible .ig-likes { opacity: 1; }

.ig-post:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.social-foot { padding: 0 28px 28px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Case study windows ============ */

.case-hero {
  position: relative;
  aspect-ratio: 21 / 9;
  display: flex;
  align-items: flex-end;
  padding: 26px 32px;
}

.case-hero svg.case-glyph {
  position: absolute;
  top: 50%; right: 8%;
  width: 120px; height: 120px;
  transform: translateY(-50%);
  opacity: 0.9;
}

.case-hero h1 {
  position: relative;
  color: #fff;
  font-size: 30px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  padding: 22px 32px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.case-meta .cm-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}

.case-meta .cm-v { font-size: 13.5px; color: var(--ink); line-height: 1.45; }

.case-visuals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.case-visuals > div { aspect-ratio: 1; border-radius: 12px; }

/* ============ More case studies footer ============ */

.case-more {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.case-more-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

.case-more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 14px 12px;
}

.case-more-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  border: none;
  background: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s cubic-bezier(0.32, 0.72, 0.35, 1.2);
}

.case-more-item:hover { background: rgba(0, 0, 0, 0.04); }
.case-more-item:hover .cm-thumb { transform: scale(1.05); }
.case-more-item:active { transform: scale(0.97); }
.case-more-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cm-thumb {
  width: 60px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2), inset 0 0 0 0.5px rgba(255, 255, 255, 0.3);
  transition: transform 0.16s cubic-bezier(0.32, 0.72, 0.35, 1.2);
}

.cm-thumb svg,
.cm-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.cm-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}

/* ============ Rooted — custom case study ============ */

.rooted-case {
  --r-purple: #4a1f57;
  --r-purple-2: #7a3a92;
  --r-yellow: #f6c419;
  --r-ink: #2c1633;
  container-type: inline-size;
}

.rooted-hero {
  position: relative;
  width: 100%;
  /* full-bleed 16:9 — matches the proportions of the body visuals/videos */
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #3b1b46;
}

.rooted-hero-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rooted-titleblock {
  padding: 26px 34px 22px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

.rooted-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r-purple-2);
  margin-bottom: 10px;
}

.rooted-titleblock h1 {
  font-size: clamp(23px, 3.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--r-ink);
  max-width: 18ch;
}

.rooted-sub {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 52ch;
}

.rooted-body { padding-top: 26px; }
.rooted-body section { margin-bottom: 8px; }

.rooted-h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-purple-2);
  margin: 6px 0 14px;
  padding-bottom: 9px;
  border-bottom: 1.5px solid rgba(122, 58, 146, 0.22);
}

.rooted-body p { font-size: 14.5px; line-height: 1.62; color: var(--ink-soft); }

/* Full-bleed figures (images + video) */
.case-figure {
  margin: 26px 0;
}

.case-figure img,
.case-figure video {
  display: block;
  width: 100%;
  border-radius: 14px;
  background: #f0ecf2;
  box-shadow: 0 14px 34px rgba(44, 18, 56, 0.16), inset 0 0 0 0.5px rgba(0, 0, 0, 0.05);
}

.case-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
}

/* Approach — three layers */
.rooted-layers {
  list-style: none;
  margin: 18px 0 4px;
  padding: 0;
}

.rooted-layers li {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid rgba(122, 58, 146, 0.16);
}
.rooted-layers li:last-child { border-bottom: 1px solid rgba(122, 58, 146, 0.16); }

.rl-n {
  flex: 0 0 auto;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--r-yellow);
  -webkit-text-stroke: 0;
  line-height: 1.1;
  min-width: 40px;
}

.rooted-layers h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--r-ink);
  margin-bottom: 4px;
}

/* Outcome — enlarged stats */
.rooted-outcome {
  margin-top: 30px;
  padding: 28px 30px 32px;
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(122, 58, 146, 0.55), rgba(0, 0, 0, 0) 60%),
    linear-gradient(160deg, #4a1f57 0%, #2c1238 100%);
  color: #fff;
}

.rooted-outcome .rooted-h2 {
  color: var(--r-yellow);
  border-bottom-color: rgba(246, 196, 25, 0.3);
}

.rooted-outcome > p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin-bottom: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 28px;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0 20px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
}

.stat-n {
  font-size: clamp(48px, 9vw, 76px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.stat-n sup {
  font-size: 0.42em;
  font-weight: 700;
  vertical-align: super;
  color: var(--r-yellow);
  margin-left: 2px;
}

.stat-l {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34ch;
}

@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .rooted-outcome { padding: 24px 20px 26px; }
}

/* ============ The World Weekly — brand overrides ============ */

.tww-case {
  --r-purple: #1a1a1a;
  --r-purple-2: #a07c10;   /* dark gold for eyebrow + section labels */
  --r-yellow: #f4c400;     /* TWW yellow accent */
  --r-ink: #1a1a1a;
}

.tww-case .rooted-hero { background: #1a1a1a; }

.tww-case .rooted-h2 { border-bottom-color: rgba(160, 124, 16, 0.28); }

/* Discipline spans */
.tww-spans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}

.tww-spans .chip {
  background: rgba(160, 124, 16, 0.12);
  color: #6b5108;
}

/* Outcome panel — black with yellow accents */
.tww-outcome {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(244, 196, 0, 0.16), rgba(0, 0, 0, 0) 58%),
    linear-gradient(160deg, #232323 0%, #0a0a0a 100%);
}

.tww-outcome .stat-n sup { color: var(--r-yellow); }

/* Endorsement callouts */
.tww-endorse {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.endorse {
  padding: 16px 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--r-yellow);
}

.endorse-k {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--r-yellow);
  margin-bottom: 7px;
}

.endorse-v {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}
.endorse-v strong { color: #fff; }

/* Responsive YouTube embed */
.case-video .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22), inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}

.case-video .video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 560px) {
  .tww-endorse { grid-template-columns: 1fr; }
}

/* ============ TokenTraxx — brand overrides ============ */

.tt-case {
  --r-purple: #0e1116;
  --r-purple-2: #0d9488;   /* teal for eyebrow + section labels */
  --r-yellow: #2dd4bf;     /* teal accent */
  --r-ink: #0e1116;
}

.tt-case .rooted-hero { background: #000; }

.tt-case .rooted-h2 { border-bottom-color: rgba(13, 148, 136, 0.26); }

/* Discipline spans */
.tt-spans {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 6px;
}

.tt-spans .chip {
  background: rgba(13, 148, 136, 0.1);
  color: #0b7a6e;
}

/* Motion-use list with teal markers */
.tt-list {
  list-style: none;
  margin: 14px 0 6px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.tt-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.tt-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--r-yellow);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

/* Outcome panel — near-black with teal accents */
.tt-outcome {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(45, 212, 191, 0.18), rgba(0, 0, 0, 0) 58%),
    linear-gradient(160deg, #14201f 0%, #06090a 100%);
}

.tt-outcome .stat-n sup { color: var(--r-yellow); }

/* Generic editorial list with accent markers (reused across case studies) */
.case-list {
  list-style: none;
  margin: 14px 0 6px;
  padding: 0;
  display: grid;
  gap: 9px;
}

.case-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.case-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--r-yellow, var(--accent));
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* ============ Vodafone — brand overrides ============ */

.vf-case {
  --r-purple: #4a0000;
  --r-purple-2: #c20000;   /* Vodafone red for eyebrow + section labels */
  --r-yellow: #ff4d4d;     /* lighter red accent (bullets, units) */
  --r-ink: #1a1a1a;
}

.vf-case .rooted-hero { background: #990000; }

.vf-case .rooted-h2 { border-bottom-color: rgba(194, 0, 0, 0.24); }

.vf-case .tt-spans .chip {
  background: rgba(194, 0, 0, 0.09);
  color: #9c0000;
}

/* Tall full-page screenshots — show within a scrollable frame */
.tall-frame {
  max-height: 540px;
  overflow-y: auto;
  border-radius: 14px;
  background: #f0ecf2;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16), inset 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.tall-frame img {
  display: block;
  width: 100%;
  border-radius: 0;
  box-shadow: none;
}

/* Outcome panel — deep Vodafone red with light-red accents */
.vf-outcome {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 77, 77, 0.22), rgba(0, 0, 0, 0) 58%),
    linear-gradient(160deg, #7a0000 0%, #2a0000 100%);
}

.vf-outcome .rooted-h2 { border-bottom-color: rgba(255, 77, 77, 0.34); }

.vf-outcome .stat-n sup,
.vf-outcome .stat-n small { color: var(--r-yellow); }

/* ============ Global Student Prize — brand overrides ============ */

.gsp-case {
  --r-purple: #b8430a;
  --r-purple-2: #c2620e;   /* orange for eyebrow + section labels */
  --r-yellow: #f59e0b;     /* gold accent (bullets, units) */
  --r-ink: #3a1d04;
}

.gsp-case .rooted-hero { background: #ffffff; }

.gsp-case .rooted-h2 { border-bottom-color: rgba(194, 98, 14, 0.26); }

.gsp-case .case-list li::before { box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }

/* Outcome panel — deep amber with gold accents */
.gsp-outcome {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(245, 158, 11, 0.22), rgba(0, 0, 0, 0) 58%),
    linear-gradient(160deg, #6e3408 0%, #2a1404 100%);
}

.gsp-outcome .rooted-h2 { border-bottom-color: rgba(245, 158, 11, 0.34); }

.gsp-outcome .stat-n sup { color: var(--r-yellow); }

/* ============ Uswitch — brand overrides ============ */

.us-case {
  --r-purple: #16244f;
  --r-purple-2: #21386f;   /* navy for eyebrow + section labels */
  --r-yellow: #5e87d6;     /* lighter blue accent (bullets, lines, units) */
  --r-ink: #182a57;
}

.us-case .rooted-hero { background: #0e1b3d; }
/* Crop the 1px black edge baked into the hero video; anchor to the bottom
   so the car wheels at the foot of the frame stay in view */
.us-case .rooted-hero-media {
  transform: scale(1.025);
  transform-origin: bottom center;
  object-position: bottom center;
}

.us-case .rooted-h2 { border-bottom-color: rgba(94, 135, 214, 0.32); }

.us-case .case-list li::before { box-shadow: 0 0 0 3px rgba(94, 135, 214, 0.18); }

/* Outcome panel — navy with lighter-blue accents */
.us-outcome {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(120, 160, 232, 0.22), rgba(0, 0, 0, 0) 58%),
    linear-gradient(160deg, #1a2c5e 0%, #0a1430 100%);
}

.us-outcome .rooted-h2 { border-bottom-color: rgba(120, 160, 232, 0.34); }

.us-outcome .stat-n sup { color: var(--r-yellow); }

/* Small units inside a big stat number (M, under) */
.stat-n small {
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: baseline;
}

.us-outcome .stat-n small { color: var(--r-yellow); }

/* ============ Responsive ============ */

@media (max-width: 740px) {
  :root { --dock-h: 70px; }

  .menubar-menus, .mb-glyph { display: none; }

  .desktop-file { width: 92px; }
  .file-thumb { width: 70px; height: 70px; border-radius: 5px; }

  .dock { gap: 6px; padding: 8px 10px; border-radius: 22px; }
  .dock-icon { width: 46px; height: 46px; }

  .pane { padding: 22px 20px 30px; }
  .notes-body { grid-template-columns: 1fr; }
  .notes-sidebar { display: flex; gap: 6px; overflow-x: auto; border-right: none; border-bottom: 0.5px solid rgba(0,0,0,0.09); }
  .notes-sidebar .notes-head { display: none; }
  .note-item { flex: 0 0 auto; width: auto; }
  .note-item .ns { display: none; }

  .case-hero h1 { font-size: 22px; }
  .case-hero svg.case-glyph { width: 70px; height: 70px; right: 5%; }
  .case-meta, .case-hero { padding-left: 20px; padding-right: 20px; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===========================================================
   First-load intro / loader
   =========================================================== */

.intro { display: none; }

html.intro-on body { overflow: hidden; }

html.intro-on .intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
  opacity: 1;
  transition: opacity 0.6s ease;
}

html.intro-on .intro.done {
  opacity: 0;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.intro-logo-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.intro-logo {
  display: block;
  width: clamp(230px, 52vmin, 460px);
  height: auto;
  /* white logo on black; hidden until "written" left-to-right */
  clip-path: inset(0 100% 0 0);
  -webkit-clip-path: inset(0 100% 0 0);
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
}

.intro.writing .intro-logo {
  clip-path: inset(0 0 0 0);
  -webkit-clip-path: inset(0 0 0 0);
  transition: clip-path 1.9s cubic-bezier(0.65, 0, 0.35, 1),
              -webkit-clip-path 1.9s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Pen-tip glow that travels along the reveal edge */
.intro-pen {
  position: absolute;
  top: 56%;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, 0.55) 40%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  pointer-events: none;
}

.intro.writing .intro-pen {
  left: 100%;
  opacity: 1;
  transition: left 1.9s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease;
}

.intro.writing.penned .intro-pen {
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Loading bar */
.intro-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(38px, 9vh, 72px);
  transform: translateX(-50%);
  width: min(260px, 56vw);
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.intro-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
}

.intro.writing .intro-bar-fill {
  width: 100%;
  transition: width 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .intro-logo { clip-path: inset(0 0 0 0) !important; -webkit-clip-path: inset(0 0 0 0) !important; transition: none !important; }
  .intro-pen { display: none; }
  html.intro-on .intro.writing .intro-bar-fill { transition: width 0.6s linear; }
}
