/* ============================================================
   iamshanemarks — home (2026 redesign)
   clean white page, cutout photos, mac-desktop details,
   text-selection highlights as the signature move.
   ============================================================ */

:root {
  --ink: #161616;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --paper: #ffffff;
  --mist: #e6e6e6;
  --mist-2: #f1f1f1;
  --blue: #1a73e8;
  --blue-soft: #d6e6ff;
  --yellow: #ffd400;
  --yellow-soft: #fff4b8;
  --green-soft: #c9f2b8;
  --pink-soft: #ffd0ea;
  --radius: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- selection highlight (the signature) ---------- */
.sel {
  position: relative;
  display: inline-block;
  padding: 0 .12em;
  --c: var(--blue);
  --bg: var(--blue-soft);
  background: linear-gradient(var(--bg), var(--bg)) no-repeat left / 0% 100%;
  transition: background-size .9s var(--ease) .15s;
}
.sel.yellow { --c: #f2b600; --bg: var(--yellow-soft); }
.sel::before, .sel::after {
  content: "";
  position: absolute;
  width: 3px;
  background: var(--c);
  border-radius: 2px;
  top: .06em; bottom: .02em;
  opacity: 0;
  transition: opacity .3s .15s;
}
.sel::before { left: -2px; }
.sel::after { right: -2px; transition-delay: 1s; }
.sel > i {
  position: absolute; width: .2em; height: .2em; min-width: 9px; min-height: 9px;
  border-radius: 50%; background: var(--c); opacity: 0; transition: opacity .3s .15s;
}
.sel > i:first-child { left: -2px; top: 0; transform: translate(-40%, -60%); }
.sel > i:last-child { right: -2px; bottom: 0; transform: translate(40%, 60%); transition-delay: 1s; }
.in .sel, .sel.in { background-size: 100% 100%; }
.in .sel::before, .in .sel::after, .in .sel > i,
.sel.in::before, .sel.in::after, .sel.in > i { opacity: 1; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  margin: 14px;
  height: min(94vh, 900px);
  min-height: 600px;
  border-radius: var(--radius);
  background:
    radial-gradient(70% 60% at 50% 100%, #f4f4f4 0%, transparent 70%),
    var(--mist);
  overflow: hidden;
  isolation: isolate;
}
.pills {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.pill {
  white-space: nowrap;
  font-size: 13px; letter-spacing: .01em;
  padding: 7px 20px; border-radius: 999px;
  background: #d4d4d4; color: #6d6d6d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 2px rgba(0,0,0,.06);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.pill:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }

.hero-name {
  position: absolute; top: 84px; left: 0; right: 0; text-align: center;
  font-size: 13px; color: var(--ink-3); letter-spacing: .3em; text-transform: lowercase; z-index: 1;
}
.hero-cut {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 80%; width: auto; max-width: none; z-index: 1;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.12));
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 9%);
          mask-image: linear-gradient(to left, transparent 0, #000 9%);
  animation: rise 1.2s var(--ease) both;
}
@keyframes rise { from { transform: translate(-50%, 8%); opacity: 0; } }

.wordmark {
  position: absolute; left: 0; right: 0; top: 47%; transform: translateY(-50%);
  margin: 0; text-align: center; z-index: 2;
  font-weight: 300; line-height: .8; letter-spacing: -.045em;
  font-size: clamp(88px, 19vw, 290px);
  color: #fff;
  -webkit-text-stroke: 1px rgba(0,0,0,.08);
  text-shadow: 0 4px 30px rgba(0,0,0,.12);
  animation: fade 1.4s .2s var(--ease) both;
}
.wordmark small {
  display: block; font-size: 14px; letter-spacing: .02em; line-height: 1.4; margin-top: 18px;
  font-weight: 500; -webkit-text-stroke: 0; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.25);
}
@keyframes fade { from { opacity: 0; transform: translateY(calc(-50% + 20px)); } }

/* fake cursor that wanders over the pills */
.ghost-cursor {
  position: absolute; z-index: 6; width: 18px; top: 40px; left: 50%;
  pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3));
  animation: wander 9s var(--ease) infinite;
}
@keyframes wander {
  0%, 8% { transform: translate(-210px, 0); }
  22%, 32% { transform: translate(-70px, 4px); }
  46%, 56% { transform: translate(60px, -2px); }
  70%, 80% { transform: translate(190px, 3px); }
  100% { transform: translate(-210px, 0); }
}

/* ---------- dock ---------- */
.dock {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: flex-end; gap: 6px; z-index: 4;
  padding: 8px 10px; border-radius: 22px;
  background: rgba(255,255,255,.38);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.app { position: relative; width: 46px; height: 46px; transition: transform .25s var(--ease), margin .25s var(--ease); }
.app .ico, .app .ico svg { display: block; width: 100%; height: 100%; }
.app:hover { transform: translateY(-10px) scale(1.25); margin: 0 6px; }
.app::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: 11px; padding: 4px 10px; border-radius: 8px;
  background: rgba(30,30,30,.85); color: #fff; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.app:hover::after { opacity: 1; }
.app.playing::before {
  content: ""; position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: #333;
}
.dock-sep { width: 1px; align-self: stretch; margin: 4px 4px; background: rgba(0,0,0,.15); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 0 80px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; display: flex; flex-direction: column; align-items: center; }
.about-photo img {
  width: min(400px, 90%);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 96%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to bottom, #000 62%, transparent 96%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
          mask-composite: intersect;
}
.toolbar {
  display: flex; gap: 8px; margin-top: -26px; position: relative; z-index: 1;
  padding: 8px 12px; border-radius: 14px; background: #ededed;
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgba(0,0,0,.08);
}
.tool {
  width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: -.02em;
  transition: transform .2s var(--ease);
}
.tool:hover { transform: translateY(-4px); }
.t-ps { background: #001e36; color: #31a8ff; }
.t-ai { background: #330000; color: #ff9a00; }
.t-pr { background: #00005b; color: #9999ff; }
.t-ae { background: #00005b; color: #d291ff; }
.t-lr { background: #001e36; color: #31a8ff; }
.t-cv { background: conic-gradient(from 200deg, #00c4cc, #7d2ae8, #00c4cc); color: #fff; border-radius: 50%; }
.t-cc { background: #000; color: #fff; }

.h-sec { font-size: clamp(44px, 6vw, 72px); font-weight: 400; letter-spacing: -.045em; line-height: 1; margin: 0 0 28px; }
.about-copy p { color: var(--ink-2); font-size: 15px; line-height: 1.75; margin: 0 0 14px; max-width: 54ch; }
.about-copy mark { background: var(--yellow-soft); color: inherit; padding: 0 .15em; border-radius: 3px; }
.label { font-size: 13px; font-weight: 600; margin: 30px 0 12px; }
.rows { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; padding: 6px 8px; margin-left: -8px; border-radius: 12px; transition: background .2s; }
.row:hover { background: var(--mist-2); }
.row svg { width: 44px; height: 34px; flex: none; }
.row b { display: block; font-size: 13px; font-weight: 600; }
.row span { display: block; font-size: 12px; color: var(--ink-3); font-style: italic; }
.bubbles { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 4px; }
.bubble {
  position: relative; font-size: 12px; padding: 5px 16px; border-radius: 999px;
  background: var(--blue); color: #fff; font-weight: 500;
}
.bubble::after {
  content: ""; position: absolute; right: -2px; bottom: -3px; width: 12px; height: 10px;
  background: var(--blue); clip-path: polygon(0 0, 100% 100%, 30% 40%);
}
.bubble.alt { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.bubble.alt::after { display: none; }

/* ============================================================
   DESKTOP SCATTER
   ============================================================ */
.scatter { position: relative; height: 760px; margin: 0 auto; width: min(1000px, 100%); }
.scatter-cut {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  height: 620px; width: auto; max-width: none;
  filter: drop-shadow(0 30px 24px rgba(0,0,0,.18));
  pointer-events: none;
}
.scatter-cut + .shadow {
  position: absolute; left: 50%; top: calc(50% + 300px); width: 180px; height: 26px; margin-left: -90px;
  border-radius: 50%; background: radial-gradient(rgba(0,0,0,.18), transparent 70%);
}
.folder {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 110px; touch-action: none; user-select: none; cursor: grab; z-index: 3;
  transition: filter .2s;
}
.folder:active { cursor: grabbing; }
.folder svg { width: 74px; height: 58px; transition: transform .25s var(--ease); pointer-events: none; }
.folder:hover svg { transform: scale(1.06); }
.folder span { font-size: 12px; color: var(--ink-2); padding: 2px 8px; border-radius: 6px; pointer-events: none; }
.folder.dragging { z-index: 10; filter: drop-shadow(0 14px 20px rgba(0,0,0,.18)); }
.folder.picked span { background: var(--blue); color: #fff; }

.sticker {
  position: absolute; font-size: 34px; pointer-events: none; z-index: 2;
  animation: bob 4s ease-in-out infinite;
}
.sticker:nth-of-type(2n) { animation-duration: 5s; animation-delay: -1.5s; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(8deg); } }

.ctx {
  position: absolute; z-index: 4; width: 170px; padding: 5px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0,0,0,.08); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.14);
}
.ctx button, .ctx a {
  display: flex; justify-content: space-between; width: 100%; text-align: left;
  font-size: 12px; padding: 5px 10px; border-radius: 6px;
}
.ctx button:hover, .ctx a:hover { background: var(--blue); color: #fff; }
.ctx kbd { font-family: inherit; opacity: .45; }
.ctx hr { border: 0; height: 1px; background: rgba(0,0,0,.08); margin: 4px 6px; }
.ctx-cursor { position: absolute; width: 16px; right: 18px; top: 58px; pointer-events: none; }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc { padding: 60px 0 120px; text-align: center; }
.h-giant { font-size: clamp(54px, 10vw, 132px); font-weight: 500; letter-spacing: -.06em; line-height: .95; margin: 0 0 40px; }
.tiles { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 230px; }
.tile-num { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; color: var(--ink-3); align-self: flex-start; margin-left: 10px; }
.tile-box {
  position: relative; width: 230px; height: 230px; border-radius: 30px; background: var(--mist);
  display: grid; place-items: center; transition: background .3s;
}
.tile-box img {
  width: 76%; aspect-ratio: 1; object-fit: cover; border-radius: 10px;
  border: 6px solid #fff; box-shadow: 0 14px 28px rgba(0,0,0,.18);
  transform: rotate(var(--r, -6deg)) translateX(var(--x, 14px));
  transition: transform .45s var(--ease), box-shadow .45s;
}
.tile:nth-child(2) .tile-box img { --r: 5deg; --x: -6px; }
.tile:nth-child(3) .tile-box img { --r: -3deg; --x: 18px; }
.tile:hover .tile-box { background: #dedede; }
.tile:hover .tile-box img { transform: rotate(0) translate(0, -10px) scale(1.04); box-shadow: 0 22px 40px rgba(0,0,0,.22); }
.hl { font-size: 13px; padding: 2px 10px; border-radius: 4px; }
.hl.y { background: var(--yellow); }
.hl.g { background: var(--green-soft); }
.hl.p { background: var(--pink-soft); }
.toc-more { display: inline-block; margin-top: 46px; font-size: 14px; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.toc-more:hover { color: var(--blue); }

/* ============================================================
   LET'S WORK TOGETHER
   ============================================================ */
.cta { padding: 60px 0 40px; text-align: center; }
.cta-title { font-size: clamp(56px, 10vw, 128px); font-weight: 500; letter-spacing: -.06em; line-height: .98; margin: 0; }
.cta-title .sel { padding: 0 .06em; }
.cta p { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 30px 0 0; }
.cta p em { display: block; }
.actions {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 30px; padding: 5px;
  border-radius: 999px; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.08);
}
.actions button, .actions a { font-size: 12px; padding: 7px 16px; border-radius: 999px; transition: background .2s; }
.actions button:hover, .actions a:hover { background: var(--mist-2); }
.actions .liked { color: #e0245e; }
.contact-line { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; margin-top: 50px; font-size: 13px; color: var(--ink-2); }
.contact-line a:hover { color: var(--blue); }

.foot {
  margin: 70px 14px 14px; padding: 22px 28px; border-radius: 20px; background: var(--mist-2);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--ink-3);
}
.foot nav { display: flex; gap: 18px; }
.foot a:hover { color: var(--ink); }

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 50;
  background: rgba(25,25,25,.9); color: #fff; font-size: 13px; padding: 10px 18px; border-radius: 12px;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .about { padding-top: 80px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo img { width: min(320px, 80%); }
  .scatter { height: 640px; }
  .scatter-cut { height: 500px; }
  .scatter-cut + .shadow { top: calc(50% + 240px); }
}
@media (max-width: 600px) {
  .hero { margin: 8px; min-height: 560px; height: 86svh; border-radius: 22px; }
  .pills { gap: 6px; top: 18px; }
  .pill { padding: 6px 11px; font-size: 11.5px; }
  .ghost-cursor { display: none; }
  .hero-name { top: 64px; }
  .hero-cut { height: 70%; }
  .wordmark { top: 44%; }
  .dock { gap: 3px; padding: 6px 7px; bottom: 14px; border-radius: 16px; }
  .app { width: 32px; height: 32px; }
  .app:hover { transform: none; margin: 0; }
  .app::after, .hide-sm { display: none; }
  .scatter { height: 560px; }
  .scatter-cut { height: 420px; }
  .scatter-cut + .shadow { top: calc(50% + 200px); }
  .folder { width: 84px; }
  .folder svg { width: 54px; height: 42px; }
  .sticker { font-size: 26px; }
  .ctx { width: 150px; }
  .tiles { gap: 10px; flex-wrap: nowrap; }
  .tile { width: calc((100vw - 60px) / 3); gap: 10px; }
  .tile-box { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; }
  .tile-box img { border-width: 3px; border-radius: 6px; }
  .tile-num { margin-left: 4px; }
  .tiles .tile-box img { --x: 0px !important; }
  .hl { font-size: 11px; padding: 2px 6px; white-space: nowrap; }
  .f-ig { left: 70% !important; top: 42% !important; }
  .ctx { left: 34% !important; top: 70% !important; }
  .foot { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .sel { background-size: 100% 100%; }
  .sel::before, .sel::after, .sel > i { opacity: 1; }
}
