/* =========================================================
   Zach Bunyan UGC portfolio: "my phone" home screen
   Two layouts share everything:
   - .layout-phone: on big screens an iPhone sits beside the giant name
   - .layout-full:  the home screen fills the window
   On phones both are the same full-bleed home screen.
   ========================================================= */

:root {
  --sky-top: #8EC8F2;
  --sky-mid: #B4DCF8;
  --sky-low: #DDF0FD;
  --hl: #FFF04D;
  --hl-soft: #FFF59A;
  --ink: #111216;
  --muted: #5A6270;          /* 6:1 on white */
  --ios-blue: #0A7AFF;       /* links, back buttons (4.6:1 on white) */
  --ios-bg: #F2F2F7;
  --ios-line: #E3E3E8;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --icon: 60px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wallpaper:
    radial-gradient(60% 18% at 20% 22%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(50% 14% at 85% 48%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(70% 20% at 35% 82%, rgba(255,255,255,.8), transparent 70%),
    linear-gradient(180deg, var(--sky-top), var(--sky-mid) 50%, var(--sky-low));
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; overflow: hidden;
  background: var(--sky-mid);
  color: var(--ink); font-family: var(--font-ui); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
mark { background: none; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ios-blue); outline-offset: 3px; border-radius: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sky behind everything (visible around the framed phone) ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--wallpaper); }
.sky::after { content: ""; position: absolute; inset: 0; background: var(--grain); background-size: 180px; opacity: .22; mix-blend-mode: multiply; }
.cloud {
  position: absolute; width: var(--w); height: calc(var(--w) * .3);
  background:
    radial-gradient(closest-side, #fff, transparent) 10% 70% / 45% 90% no-repeat,
    radial-gradient(closest-side, #fff, transparent) 40% 30% / 45% 120% no-repeat,
    radial-gradient(closest-side, #fff, transparent) 70% 55% / 50% 110% no-repeat;
  filter: blur(5px); opacity: .9; animation: drift var(--t) linear infinite alternate;
}
.c1 { --w: 520px; --t: 110s; top: 8%; left: -6%; }
.c2 { --w: 400px; --t: 90s; top: 60%; right: -4%; }
.c3 { --w: 600px; --t: 130s; top: 78%; left: 20%; opacity: .7; }
.c4 { --w: 300px; --t: 80s; top: 30%; left: 44%; opacity: .6; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

/* ---------- Preview switcher (localhost only) ---------- */
.switcher {
  position: fixed; left: 14px; top: 14px; z-index: 60; display: flex; align-items: center; gap: 2px; padding: 3px;
  border-radius: 999px; background: var(--ink); box-shadow: 0 10px 30px rgba(17, 18, 22, .3);
}
.switcher__sep { width: 1px; height: 16px; margin: 0 4px; background: rgba(255,255,255,.2); }
.switcher button { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 0; background: none; color: #fff; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
.switcher button:hover { background: rgba(255,255,255,.12); }
.switcher svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.switcher button[aria-pressed="true"] { background: var(--hl); color: var(--ink); }

/* ---------- Device: full-bleed by default ---------- */
.intro { display: none; }
.device { position: fixed; inset: 0; }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  background: #0A2A86;
}

/* Phone wallpaper: an original iOS-style abstract (navy, teal and periwinkle orbs), optionally blurred */
:root { --label: #fff; --label-shadow: 0 1px 3px rgba(0, 0, 0, .45); --dots: 255, 255, 255; --status: #fff; }
.wall { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(165deg, #0B1F63 0%, #0A2A86 45%, #081A52 100%); }
.wall__art { position: absolute; inset: -6%; transition: filter .5s var(--ease-out), transform .5s var(--ease-out); }
[data-wall="blur"] .wall__art { filter: blur(18px) saturate(1.15); transform: scale(1.04); }
.orb { position: absolute; display: block; border-radius: 50%; aspect-ratio: 1; }
.orb--ring { width: 210%; left: -112%; top: -58%; box-shadow: inset 0 0 0 2px #3F6FE6, 0 0 40px rgba(63, 111, 230, .35); }
.orb--peri {
  width: 74%; left: 33%; top: -6%;
  background: linear-gradient(205deg, #A9BCF7 0%, #6C8BE6 45%, #3C5BCC 100%);
  box-shadow: inset 6px -10px 30px rgba(20, 40, 140, .45), 0 0 0 1px rgba(170, 195, 255, .4);
}
.orb--teal {
  width: 132%; left: -58%; top: 30%;
  background: linear-gradient(200deg, #78D9C6 0%, #3E9E95 38%, #17575C 70%, #0D3340 100%);
  box-shadow: inset -12px 16px 40px rgba(180, 255, 235, .25), 0 0 0 1.5px rgba(80, 140, 230, .7);
}
.orb--glow { width: 70%; right: -30%; bottom: 4%; background: radial-gradient(closest-side, rgba(120, 185, 255, .85), transparent); filter: blur(20px); }

/* Framed phone beside the name (phone layout, big screens) */
@media (min-width: 900px) {
  .layout-phone body { overflow-x: hidden; overflow-y: auto; }
  .layout-phone .stage {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 5vw, 90px);
    height: 100dvh; max-width: 1240px; margin: 0 auto; padding: 20px clamp(24px, 4vw, 56px);
  }
  .layout-phone .intro { display: block; position: relative; z-index: 2; }
  .layout-phone .device {
    position: relative; inset: auto;
    width: 413px; height: 872px; flex: none;
    padding: 10px; border-radius: 66px; background: #1B1C1F;
    box-shadow: inset 0 0 0 1.5px #5B5E66, 0 0 0 1px #9A9DA5, 0 4px 10px rgba(10, 30, 70, .22), 0 22px 40px -10px rgba(10, 30, 70, .45);
  }
  .layout-phone .screen { border-radius: 56px; }
  .layout-phone .island { display: block; position: absolute; top: 11px; left: 50%; translate: -50% 0; z-index: 20; width: 124px; height: 36px; border-radius: 20px; background: #000; }
}

/* ---------- Intro (beside the phone) ---------- */
.bubble {
  display: inline-block; margin: 0 0 18px; padding: 8px 18px; border-radius: 22px 22px 22px 6px;
  background: #fff; box-shadow: 0 8px 20px rgba(20, 50, 90, .14);
  font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -.02em; transform: rotate(-2deg);
}
.bigname {
  margin: 0; font-family: var(--font-display); font-weight: 900; text-transform: lowercase;
  font-size: clamp(5rem, 10vw, 9.5rem); line-height: .8; letter-spacing: -.055em;
}
.bigname > span { display: block; }
.bigname > span:first-child, .widget--name__big > span:first-child { font-weight: 300; letter-spacing: -.045em; }
.bigname__last { margin: .04em 0 0 .5em; }
.bigname mark, .widget--name mark { background: var(--hl); padding: 0 .08em .06em .04em; display: inline-block; transform: rotate(-1.2deg); }
.intro__headline { margin: 34px 0 4px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.hl { font-style: normal; background: linear-gradient(transparent 58%, var(--hl-soft) 58%); }
.intro__sub { margin: 0; color: #3D4654; font-size: 17px; }
.intro__blurb { margin: 16px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.6; color: #2E3644; }
.intro__blurb strong, .widget--name__blurb strong { color: var(--ink); font-weight: 700; }
.ul { text-decoration: underline; text-decoration-color: #4F95E8; text-decoration-thickness: 2.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.intro__blurb .hl, .widget--name__blurb .hl { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 55%, var(--hl) 55%); }
.intro__blurb:empty, .widget--name__blurb:empty { display: none; }
.widget--name__blurb { display: none; font-size: 13px; line-height: 1.45; color: #2E3644; margin-top: 6px; }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hint {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: auto 0 -4px; padding: 7px 14px;
  border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px rgba(0, 20, 60, .2);
  animation: hint-bob 2s ease-in-out infinite; transition: opacity .3s;
}
.hint span { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
@keyframes hint-bob { 50% { transform: translateY(-4px); } }
.screen.has-app .hint { opacity: 0; }
.dock .icon { animation: icon-hop 3.2s ease-in-out 1.2s 2; }
.dock .appicon:nth-child(2) .icon { animation-delay: 1.35s; }
.dock .appicon:nth-child(3) .icon { animation-delay: 1.5s; }
@keyframes icon-hop { 0%, 12%, 100% { transform: none; } 6% { transform: translateY(-10px); } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: 0 6px 16px rgba(17, 18, 22, .22); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--hl); }
.notif {
  position: absolute; z-index: 2; display: flex; gap: 11px; align-items: flex-start; width: 286px; padding: 12px 14px;
  border-radius: 22px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 10px 30px rgba(20, 50, 90, .16);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  animation: notif-in .7s var(--ease-out) both;
}
.notif:hover { transform: translateY(-3px) rotate(0deg) !important; box-shadow: 0 16px 36px rgba(20, 50, 90, .22); }
.notif__icon { --icon: 38px; border-radius: 9px; box-shadow: none; }
.notif__icon--z { background: var(--hl); }
.notif__body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.notif__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); }
.notif__meta b { font-weight: 600; text-transform: uppercase; letter-spacing: .03em; font-size: 11px; }
.notif__title { font-size: 14px; font-weight: 700; margin-top: 1px; }
.notif__text { font-size: 13px; color: #2E3440; }
.notif--tt { right: 0; top: 0; transform: rotate(2deg); animation-delay: .6s; }
@keyframes notif-in { from { opacity: 0; translate: 0 -14px; } }
@keyframes twinkle { 50% { opacity: .5; scale: .8; } }

/* ---------- Status bar + home bar ---------- */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 15; height: 50px;
  display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 34px;
  font-weight: 600; font-size: 15px; pointer-events: none; transition: color .2s; color: var(--status);
}
.screen.has-app .statusbar { color: var(--ink); }
.statusbar__icons { display: inline-flex; gap: 6px; align-items: center; }
.statusbar__icons svg { height: 12px; width: auto; fill: currentColor; }
.screen.has-app.is-dark .statusbar { color: #fff; }
.homebar {
  position: absolute; left: 50%; bottom: 7px; translate: -50% 0; z-index: 15;
  width: 134px; height: 5px; border-radius: 3px; background: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.screen.has-app .homebar { opacity: .85; pointer-events: auto; }
.screen.is-dark .homebar { background: #fff; }
.homebar::before { content: ""; position: absolute; inset: -14px -10px; }

/* ---------- Home screen ---------- */
.home {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column;
  padding: 58px 0 max(16px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
}
.springboard {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 86px; grid-auto-flow: dense;
  gap: 14px 14px; padding: 8px 22px 0;
}
.appicon {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.icon {
  display: block; width: var(--icon); height: var(--icon); border-radius: 23%; overflow: hidden; flex: none;
  box-shadow: 0 4px 10px rgba(20, 50, 90, .18); transition: transform .2s var(--ease-out), filter .2s;
}
.icon svg { width: 100%; height: 100%; display: block; }
.appicon:hover .icon { transform: translateY(-3px); }
.appicon:active .icon { transform: scale(.92); filter: brightness(.85); }
.icon--files { background: #fff; }
.icon--insta { background: radial-gradient(circle at 30% 107%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.icon--mail { background: linear-gradient(180deg, #2CB4FF, #0A6CFF); }
.appicon__label { font-size: 12px; font-weight: 500; color: var(--label); text-shadow: var(--label-shadow); white-space: nowrap; }

.widget {
  border-radius: 24px; padding: 14px 16px; text-decoration: none; overflow: hidden;
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 8px 22px rgba(20, 50, 90, .14);
}
.widget--name { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; gap: 4px; background: #fff; }
.widget--name__role { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #E3F1FC; font-size: 12px; font-weight: 600; }
.widget--name__big { font-family: var(--font-display); font-weight: 900; text-transform: lowercase; font-size: 50px; line-height: .95; letter-spacing: -.05em; }
.widget--name__line { color: var(--muted); font-size: 13px; line-height: 1.35; }
.widget--stats { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: #fff; }
.stat { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.stat b { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat:first-child b { color: var(--hl); }
.stat small { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 600; }
.widget--reel { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; gap: 8px; padding: 12px 0 14px; }
.widget--reel__head { padding: 0 16px; font-size: 13px; font-weight: 700; }
.reel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.reel__track { display: flex; gap: 10px; width: max-content; padding-right: 10px; animation: roll var(--dur, 30s) linear infinite; }
.reel:hover .reel__track, .reel:focus-within .reel__track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.thumb { position: relative; flex: none; width: 74px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; display: block; }
.thumb video, .thumb .poster, .tile video, .tile .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb__views { position: absolute; left: 5px; bottom: 5px; display: inline-flex; gap: 3px; align-items: center; padding: 1px 6px; border-radius: 999px; background: rgba(17,18,22,.7); color: #fff; font-size: 10px; font-weight: 700; }
.thumb__views svg { width: 10px; height: 10px; }
.poster--gradient { background: var(--g); }

.dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 12px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(var(--dots), .35); }
.dots i.on { background: rgba(var(--dots), .9); }
.dock {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; justify-content: space-around; margin: 0 12px; padding: 14px 10px; border-radius: 32px;
  background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
}
.dock .appicon__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Apps (shared) ---------- */
.app {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column;
  padding-top: 50px; background: #fff; overflow: hidden;
}
.app--dark { background: #000; color: #fff; }
.appbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 14px; border-bottom: 1px solid var(--ios-line); font-size: 16px;
}
.appbar__back { justify-self: start; color: var(--ios-blue); text-decoration: none; padding: 8px 4px; font-weight: 500; }
.appbar__title { font-weight: 700; }
.appbar__send { justify-self: end; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ios-blue); }
.appbar__send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.app__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 40px; }

/* ---------- TikTok ---------- */
.tt__top { position: absolute; top: 50px; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 4px 8px 8px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.tt__home { display: grid; place-items: center; width: 40px; height: 40px; flex: none; }
.tt__home svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.tt__tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tt__tabs::-webkit-scrollbar { display: none; }
.tt__tab { flex: none; border: 0; background: none; color: rgba(255,255,255,.65); font-weight: 700; font-size: 15px; padding: 8px 10px; cursor: pointer; position: relative; }
.tt__tab[aria-pressed="true"] { color: #fff; }
.tt__tab[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; translate: -50% 0; width: 22px; height: 3px; border-radius: 2px; background: #fff; }
.tt__feed { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.tt__feed::-webkit-scrollbar { display: none; }
.tt__item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.tt__overlay { position: absolute; inset: 0; margin: 0 auto; max-width: calc(100dvh * 9 / 16); }
.tt__media { position: absolute; inset: 0; }
.tt__media video, .tt__media .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tt__soon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.55); font-size: 14px; font-weight: 600; white-space: nowrap; }
.tt__info { position: absolute; left: 0; right: 76px; bottom: 0; padding: 0 16px 34px; background: linear-gradient(transparent, rgba(0,0,0,.55)); padding-top: 60px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tt__handle { margin: 0 0 4px; font-weight: 700; font-size: 16px; }
.tt__title { margin: 0; font-size: 15px; }
.tt__tag { font-weight: 700; }
.tt__rail { position: absolute; right: 8px; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.tt__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--hl); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 22px; border: 2px solid #fff; }
.tt__act { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 13px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.tt__act svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.tt__act--like svg { color: #FE2C55; }
.tt__sound { position: absolute; right: 12px; top: 104px; z-index: 3; border: 0; border-radius: 999px; padding: 6px 12px; background: rgba(255,255,255,.2); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tt__sound[aria-pressed="true"] { background: rgba(255,255,255,.9); color: var(--ink); }

/* ---------- Instagram ---------- */
.ig__profile { display: flex; align-items: center; gap: 22px; }
.ig__avatar {
  flex: none; display: grid; place-items: center; width: 86px; height: 86px; border-radius: 50%; overflow: hidden;
  font-family: var(--font-display); font-weight: 900; font-size: 38px; background: var(--hl);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #E1306C;
}
.ig__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig__stats { flex: 1; display: flex; justify-content: space-around; text-align: center; font-size: 13px; }
.ig__stats b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.ig__name { margin: 14px 0 0; font-weight: 700; }
.ig__bio { margin: 2px 0 14px; font-size: 14px; color: #262A31; }
.ig__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.ig__btn { display: grid; place-items: center; min-height: 36px; border-radius: 9px; background: #EFEFF2; font-weight: 600; font-size: 14px; text-decoration: none; }
.ig__btn--blue { background: #0095F6; color: #fff; }
.ig__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0 -18px; }
.tile { position: relative; aspect-ratio: 3 / 4; overflow: hidden; display: block; border: 0; padding: 0; background: #ddd; cursor: pointer; }
.tile__views { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.tile__views svg { width: 13px; height: 13px; }

/* ---------- Files ---------- */
.app#app-files .app__scroll { background: var(--ios-bg); }
.files__folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 22px 12px; }
.folder { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; text-align: center; padding: 6px 2px; border-radius: 12px; }
.folder:hover { background: rgba(10, 122, 255, .08); }
.folder svg { width: 76px; height: 60px; }
.folder b { font-size: 14px; font-weight: 600; }
.folder small { color: var(--muted); font-size: 12px; }
.files__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 12px; }
.card { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.card__thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(20, 40, 70, .12); transition: transform .25s var(--ease-out); }
.card__thumb video, .card__thumb .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__thumb { transform: translateY(-3px); }
.card__name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__stats { display: flex; gap: 10px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__stats span { display: inline-flex; align-items: center; gap: 3px; }
.card__stats svg { width: 13px; height: 13px; }
.card__stats .like svg { color: #FF3B5C; }
.soon { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; white-space: nowrap; padding: 3px 9px; border-radius: 999px; background: rgba(17,18,22,.65); color: #fff; font-size: 11px; font-weight: 600; }
.work__status { margin: 0; color: var(--muted); }
.work__status:empty { display: none; }

/* ---------- Notes ---------- */
.app--notes { background: #FFFDF6; }
.app--notes .appbar__back { color: #C99A00; }
.notes__date { margin: 0 0 14px; text-align: center; color: var(--muted); font-size: 12px; }
.notes__title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 900; font-size: 34px; letter-spacing: -.04em; line-height: 1.02; }
.notes__title mark { background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 92%, transparent 92%); padding: 0 .04em; }
.notes__inner { display: flex; flex-direction: column; gap: 18px; }
.notes__text { margin: 0; font-size: 17px; line-height: 1.6; max-width: 62ch; }
.about__photo { width: 150px; aspect-ratio: 4 / 5; object-fit: cover; padding: 6px 6px 20px; background: #fff; box-shadow: 0 6px 16px rgba(20,40,70,.16); transform: rotate(-3deg); }

/* ---------- Mail ---------- */
.compose__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 46px; border-bottom: 1px solid var(--ios-line); font-size: 15px; }
.compose__row > span { color: var(--muted); }
.compose__email { user-select: all; word-break: break-all; }
.copy-btn { margin-left: auto; min-height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: var(--ios-bg); font-size: 13px; font-weight: 600; cursor: pointer; }
.compose__title { margin: 26px 0 0; font-family: var(--font-display); font-weight: 900; font-size: 40px; letter-spacing: -.045em; line-height: 1; }
.compose__title mark { background: var(--hl); padding: 0 .06em; margin-right: -.04em; display: inline-block; transform: rotate(-1.5deg); }
.compose__text { margin: 14px 0 22px; color: var(--muted); font-size: 16px; }
.btn--send { background: var(--ios-blue); color: #fff; }

/* ---------- Rates + reviews ---------- */
.rate { padding: 16px 0; border-bottom: 1px solid var(--ios-line); }
.rate h3 { margin: 0; color: var(--ios-blue); font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.rate__price { margin: 2px 0 10px; font-family: var(--font-display); font-weight: 900; font-size: 30px; }
.rate__price:empty { display: none; }
.rate ul { list-style: none; margin: 0; padding: 0; }
.rate li { display: flex; gap: 10px; padding: 6px 0; font-size: 15px; }
.rate li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #B6B6BD; }
.messages { list-style: none; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.msg { display: flex; flex-direction: column; max-width: 84%; }
.msg:nth-child(even) { align-self: flex-end; align-items: flex-end; }
.msg__brand { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 12px 3px; }
.msg__bubble { margin: 0; padding: 9px 14px; border-radius: 20px; background: #E9E9EB; font-size: 15px; line-height: 1.4; }
.msg:nth-child(even) .msg__bubble { background: var(--ios-blue); color: #fff; }

/* ---------- Full-screen layout on big screens ---------- */
@media (min-width: 900px) {
  .layout-full { --icon: 84px; }
  .layout-full .home { padding-top: 80px; }
  .layout-full .springboard {
    grid-template-columns: repeat(8, minmax(0, 1fr)); grid-auto-rows: 116px; gap: 22px 26px;
    width: min(1100px, 100% - 64px); margin: 0 auto; padding: 0;
  }
  .layout-full .widget--name { padding: 22px 30px; }
  .layout-full .widget--name__big { font-size: clamp(64px, 6.5vw, 96px); }
  .layout-full .widget--name__line { font-size: 16px; }
  .layout-full .stat b { font-size: 38px; }
  .layout-full .widget--stats { padding: 20px 24px; }
  .layout-full .appicon__label { font-size: 14px; }
  .layout-full .thumb { width: 100px; }
  .layout-full .widget--reel { grid-column: span 8; }
  .layout-full .dock { align-self: center; gap: 22px; padding: 14px 22px; margin-bottom: 8px; }
  .layout-full .app__scroll { padding-inline: max(24px, calc((100% - 760px) / 2)); }
  .layout-full .ig__grid { margin: 0; }
  .layout-full .notes__title { font-size: 52px; }
  .layout-full .compose__title { font-size: 64px; }
  .layout-full .tt__top { justify-content: center; }
  .layout-full .tt__home { position: absolute; left: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reel__track > [aria-hidden="true"] { display: none; }
}

/* ---------- "This phone works" cues ---------- */
.tryit { display: none; }
@media (min-width: 900px) {
  .layout-phone .tryit {
    position: absolute; right: calc(100% + 18px); bottom: 64px; z-index: 3;
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none;
    font-weight: 700; font-size: 15px; box-shadow: 0 10px 24px rgba(17, 18, 22, .25);
    animation: tryit-nudge 1.8s var(--ease-out) infinite;
  }
  .layout-phone .tryit svg { width: 40px; height: 16px; fill: none; stroke: var(--hl); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
  /* Simulator-style touch cursor over the phone screen */
  .layout-phone .screen { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='15' fill='rgba(255,255,255,.45)' stroke='rgba(17,18,22,.55)' stroke-width='2'/%3E%3C/svg%3E") 20 20, pointer; }
}
@keyframes tryit-nudge { 50% { transform: translateX(8px); } }
/* Pulsing touch ring on the TikTok icon until the first app is opened */
.appicon--tt { position: relative; }
.appicon--tt::after {
  content: ""; position: absolute; left: 50%; top: calc(var(--icon) / 2); width: var(--icon); height: var(--icon);
  translate: -50% -50%; border-radius: 30%; box-shadow: 0 0 0 3px var(--hl); pointer-events: none;
  animation: ring 1.6s ease-out infinite;
}
@keyframes ring { from { opacity: .95; scale: 1; } to { opacity: 0; scale: 1.55; } }
.explored .tryit, .explored .hint, .explored .appicon--tt::after { display: none !important; }
/* Full-screen layout: no dock, its apps sit with the others */
.appicon--full { display: none; }
.appicon--full::after { display: none; }
@media (min-width: 900px) {
  .layout-full .appicon--full { display: flex; }
  .layout-full .appicon--full.appicon--tt::after { display: block; }
  .layout-full .dock { display: none; }
  .layout-full .hint { display: none; }
}

/* Where there's no intro beside the phone (phones, full-screen layout), the name widget carries the blurb */
@media (max-width: 899px) {
  .widget--name { grid-row: span 3; }
  .widget--name__blurb { display: block; }
}
@media (min-width: 900px) {
  .layout-full .widget--name__blurb { display: block; font-size: 15px; max-width: 52ch; }
  .layout-full .widget--name { grid-row: span 3; }
  .layout-full .widget--stats { grid-row: span 3; }
}

/* ---------- Brands (Photos-style albums) ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 14px; }
.album { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; background: none; text-align: left; cursor: pointer; }
.album__cover { display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--ios-bg); box-shadow: inset 0 0 0 1px var(--ios-line); transition: transform .25s var(--ease-out); }
.album:hover .album__cover { transform: translateY(-3px); }
.album__cover img { width: 70%; height: 70%; object-fit: contain; }
.album__mono { font-family: var(--font-display); font-weight: 900; font-size: 44px; letter-spacing: -.04em; }
.album b { font-size: 15px; }
.album small { color: var(--muted); font-size: 13px; }
.brand-note { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

/* ---------- What I offer ---------- */
.offer h3 { margin: 4px 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.offer ul { list-style: none; margin: 0 0 18px; padding: 0; }
.offer li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--ios-line); font-size: 15px; }
.offer li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; background: var(--ios-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- How I work (Calendar-style) ---------- */
.process__turn { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #FFF6C8; font-weight: 600; }
.process { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 0 0 20px; counter-increment: step; }
.process li::before {
  content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--ios-line), 0 2px 6px rgba(20,40,70,.08);
  font-family: var(--font-display); font-weight: 300; font-size: 26px; border-top: 10px solid #FF3B30;
}
.process li:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 58px; bottom: 6px; width: 2px; background: var(--ios-line); }
.process b { display: block; font-size: 16px; margin-top: 4px; }
.process span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.tt__style { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(255,255,255,.22); font-size: 12px; font-weight: 700; }
.files__heading { grid-column: 1 / -1; margin: 18px 0 -6px; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Below the phone (phone layout, big screens) ---------- */
.below { display: none; }
@media (min-width: 900px) { .layout-phone .below { display: block; padding-bottom: 40px; } }
.band { height: 14px; margin: 18px -20px 0; background: var(--hl); transform: rotate(-1.5deg); box-shadow: 0 6px 16px rgba(20, 50, 90, .12); }
.band__track { display: flex; width: max-content; animation: roll 45s linear infinite; }
.band__item { display: inline-flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; white-space: nowrap; }
.band__item::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.sec { max-width: 1120px; margin: 0 auto; padding: 96px clamp(24px, 4vw, 56px) 0; }
.sec__title { margin: 0 0 28px; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 4.2rem); letter-spacing: -.045em; line-height: 1; }
.sec__title .light { font-weight: 300; letter-spacing: -.04em; }
.sec__title mark { background: var(--hl); padding: 0 .08em; display: inline-block; transform: rotate(-1.2deg); }
.brand-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.brand-card {
  display: grid; place-items: center; min-height: 112px; padding: 18px; border-radius: 22px; text-align: center;
  background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 6px 18px rgba(20, 50, 90, .1); font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em;
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.brand-card:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 14px 30px rgba(20, 50, 90, .16); }
.brand-card img { max-width: 70%; max-height: 56px; object-fit: contain; }
.review-grid { columns: 3 280px; column-gap: 16px; }
.review { break-inside: avoid; margin: 0 0 16px; padding: 18px 20px; border-radius: 24px 24px 24px 6px; background: #fff; box-shadow: 0 6px 18px rgba(20, 50, 90, .1); }
.review:nth-child(even) { background: var(--ios-blue); color: #fff; border-radius: 24px 24px 6px 24px; }
.review p { margin: 0 0 10px; font-size: 17px; line-height: 1.5; }
.review b { font-size: 14px; opacity: .8; }
.review--placeholder { opacity: .7; border: 2px dashed rgba(17,18,22,.25); }
.review--placeholder:nth-child(even) { border-color: rgba(255,255,255,.5); }
.foot { display: flex; justify-content: space-between; gap: 16px; max-width: 1120px; margin: 96px auto 0; padding: 24px clamp(24px, 4vw, 56px); color: #3D4654; font-size: 14px; border-top: 1px solid rgba(17, 18, 22, .12); }
.foot a { font-weight: 600; text-decoration: none; }

img.darken { filter: brightness(0); }
.brand-card img, .album__cover img { mix-blend-mode: multiply; }
img.invert { filter: invert(1); }

/* ---------- Layout switch: iPhone page-swipe ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
[data-swipe="left"]::view-transition-old(root)  { animation-name: page-out-left; }
[data-swipe="left"]::view-transition-new(root)  { animation-name: page-in-right; }
[data-swipe="right"]::view-transition-old(root) { animation-name: page-out-right; }
[data-swipe="right"]::view-transition-new(root) { animation-name: page-in-left; }
@keyframes page-out-left  { to   { transform: translateX(-100%); } }
@keyframes page-in-right  { from { transform: translateX(100%); } }
@keyframes page-out-right { to   { transform: translateX(100%); } }
@keyframes page-in-left   { from { transform: translateX(-100%); } }
