:root {
  --stage: #ffffff;
  --ink: #111111;
  --muted: #6d6d72;
  --line: rgba(60, 60, 67, 0.14);
  --app-bg: #f2f2f7;
  --card: #ffffff;
  --accent: #f27a45;
  --label: #ffffff;
  --widget-label: #ffffff;
  --icon: 62px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --stage: #0e0e10;
  --ink: #f2f2f7;
  --muted: #98989f;
  --line: rgba(255, 255, 255, 0.12);
  --app-bg: #000000;
  --card: #1c1c1e;
  --label: #ffffff;
  --widget-label: rgba(255, 255, 255, 0.86);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--stage);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    Inter, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

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

/* ---------- Stage: studio backdrop ---------- */
.stage {
  --rx: 0;
  --ry: 0;
  --gx: 30%;
  --gy: 20%;
  --fa: 150deg;
  --shx: 14px;
  --shy: 30px;
  --t: 36px;
  --radius: 58px;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 440px) auto;
  justify-content: center;
  align-items: center;
  column-gap: clamp(48px, 8vw, 120px);
  padding: 40px 32px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 62% 38%, #fbfaf8 0%, rgba(251, 250, 248, 0) 70%),
    radial-gradient(120% 80% at 50% 120%, #c9c4be 0%, rgba(201, 196, 190, 0) 60%),
    linear-gradient(180deg, #eeebe7 0%, #ddd8d2 100%);
}

html[data-theme="dark"] .stage {
  background:
    radial-gradient(55% 50% at 62% 36%, #2a2a30 0%, rgba(42, 42, 48, 0) 70%),
    radial-gradient(120% 80% at 50% 125%, #1a1a1f 0%, rgba(26, 26, 31, 0) 60%),
    linear-gradient(180deg, #141417 0%, #050506 100%);
}

/* ---------- Intro beside the phone ---------- */
.intro {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both 0.15s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

.intro h1 {
  margin: 0;
  font-size: clamp(48px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 760;
}

.intro-lead {
  margin: 20px 0 30px;
  max-width: 400px;
  font-size: 19px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 74%, var(--muted));
}

.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 650;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn.primary {
  background: var(--ink);
  color: var(--stage);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.btn.ghost {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  color: var(--ink);
}

.intro-hint {
  margin: 34px 0 0;
  font-size: 13px;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 3D scene ---------- */
.scene {
  height: 100%;
  max-height: 840px;
  display: grid;
  place-items: center;
  perspective: 2200px;
  perspective-origin: 50% 40%;
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.device,
.cast-shadow {
  grid-area: 1 / 1;
  height: 100%;
  aspect-ratio: 715 / 1496;
  max-width: calc(100vw - 20px);
  border-radius: var(--radius);
}

.floor {
  grid-area: 1 / 1;
  align-self: end;
  width: calc(var(--dw, 380px) * 0.78);
  height: 34px;
  margin-bottom: -30px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
  filter: blur(6px);
  transform: translateX(calc(var(--shx) * 0.6));
  pointer-events: none;
}

html[data-theme="dark"] .floor { background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0)); }

.cast-shadow {
  background: #000;
  opacity: 0.32;
  filter: blur(38px);
  transform: translate(var(--shx), var(--shy)) scale(0.92);
  pointer-events: none;
}

html[data-theme="dark"] .cast-shadow { opacity: 0.75; }

.device {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
  will-change: transform;
}

/* titanium side wall, built from stacked rings */
.edges {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.edges i {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 3px solid #4a4a4f;
  backface-visibility: visible;
}



.side-btn {
  position: absolute;
  width: calc(var(--t) * 0.5);
  border-radius: 3px;
  background: linear-gradient(90deg, #6b6b70, #a5a5aa 45%, #55555a);
  transform-origin: left center;
}

.side-btn.left {
  left: -2px;
  transform: translateZ(calc(var(--t) * -0.25)) rotateY(90deg);
}

.side-btn.right {
  left: calc(100% + 2px);
  transform: translateZ(calc(var(--t) * -0.25)) rotateY(90deg);
}

.side-btn.action { top: 14.5%; height: 3.4%; }
.side-btn.vol-up { top: 21%; height: 6.4%; }
.side-btn.vol-down { top: 29%; height: 6.4%; }
.side-btn.power { top: 23.5%; height: 10%; }

/* front: titanium rim + black glass bezel */
.face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 3px solid transparent;
  padding: 6px;
  background:
    linear-gradient(#050506, #050506) padding-box,
    linear-gradient(var(--fa), #e9e9ec 0%, #8e8e93 18%, #3a3a3e 46%, #7c7c81 74%, #d4d4d8 100%) border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.screen {
  position: relative;
  height: 100%;
  border-radius: calc(var(--radius) - 9px);
  overflow: hidden;
  background: #1a120e;
  container-type: size;
}

/* reflections on the glass, they move with the tilt */
.glass {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 3px);
  pointer-events: none;
  z-index: 20;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0) 31%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: screen;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.wallpaper {
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(70% 45% at 18% 8%, #ffc59b 0%, rgba(255, 197, 155, 0) 70%),
    radial-gradient(65% 40% at 92% 26%, #ff8fb1 0%, rgba(255, 143, 177, 0) 70%),
    radial-gradient(85% 55% at 22% 70%, #8a72ff 0%, rgba(138, 114, 255, 0) 70%),
    radial-gradient(80% 50% at 88% 96%, #2c5be0 0%, rgba(44, 91, 224, 0) 70%),
    linear-gradient(170deg, #f4a07e 0%, #c37ad6 42%, #6a5ae6 70%, #2a3fae 100%);
  transition: filter 0.4s ease;
}

html[data-theme="dark"] .wallpaper {
  background:
    radial-gradient(70% 45% at 18% 6%, #5b2d73 0%, rgba(91, 45, 115, 0) 70%),
    radial-gradient(60% 40% at 95% 30%, #7a2852 0%, rgba(122, 40, 82, 0) 70%),
    radial-gradient(85% 55% at 20% 72%, #2a2f8f 0%, rgba(42, 47, 143, 0) 70%),
    radial-gradient(80% 50% at 90% 98%, #0c4b6e 0%, rgba(12, 75, 110, 0) 70%),
    linear-gradient(170deg, #2a1838 0%, #1b1640 45%, #0d1230 75%, #05070f 100%);
}

.screen.is-locked .wallpaper { filter: brightness(0.92); }

.status {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  color: #fff;
  pointer-events: none;
}

.screen.is-app .status { color: #111; }
.screen.is-locked .clock { opacity: 0; }
html[data-theme="dark"] .screen.is-app .status { color: #fff; }

.clock {
  position: absolute;
  top: 16px;
  left: 26px;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.island {
  position: absolute;
  top: 2.8cqw;
  left: 50%;
  width: 31.5cqw;
  height: 9.3cqw;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.6cqw;
  overflow: hidden;
  transition:
    width 0.55s cubic-bezier(0.34, 1.32, 0.64, 1),
    height 0.55s cubic-bezier(0.34, 1.32, 0.64, 1),
    border-radius 0.55s cubic-bezier(0.34, 1.32, 0.64, 1),
    top 0.55s cubic-bezier(0.34, 1.32, 0.64, 1);
}

.lens {
  position: absolute;
  right: 3.2cqw;
  top: 50%;
  width: 3.4cqw;
  height: 3.4cqw;
  margin-top: -1.7cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4a7a 0%, #10141f 45%, #050507 70%);
  box-shadow: inset 0 0 0 1px #111;
  transition: opacity 0.2s ease;
}

.isl-lead,
.isl-trail {
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #fff;
  white-space: nowrap;
  font-size: 3.5cqw;
  font-weight: 600;
}

.isl-lead { display: grid; place-items: center; }
.isl-lead .glyph { width: 6.4cqw; height: 6.4cqw; border-radius: 1.6cqw; box-shadow: none; }
.isl-lead .glyph.g-in,
.isl-lead .glyph.g-mindler { font-size: 3cqw; letter-spacing: 0; }

.island.activity { width: 64cqw; }
.clock,
.status-icons { transition: opacity 0.2s ease; }
.screen.island-wide .clock,
.screen.island-wide .status-icons { opacity: 0; }
.island.activity .isl-lead,
.island.activity .isl-trail { opacity: 1; transition-delay: 0.18s; }
.island.activity .lens,
.island.faceid .lens { opacity: 0; }

.isl-face {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 15cqw;
  height: 15cqw;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.island.faceid {
  width: 36cqw;
  height: 36cqw;
  top: 5cqw;
  border-radius: 10cqw;
}

.island.faceid .isl-face { opacity: 1; transition-delay: 0.2s; }
.fid-check { opacity: 0; stroke: #34c759; stroke-dasharray: 40; stroke-dashoffset: 40; }
.island.faceid .fid-face { animation: scan 0.7s ease-in-out 0.25s 1; }
.island.faceid.ok .fid-frame,
.island.faceid.ok .fid-face { opacity: 0; transition: opacity 0.15s ease; }
.island.faceid.ok .fid-check { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.35s ease 0.05s, opacity 0.1s; }

@keyframes scan {
  0%, 100% { transform: none; }
  30% { transform: translateX(-2px); }
  65% { transform: translateX(2px); }
}

.status-icons {
  position: absolute;
  top: 17px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.view.active,
.view.closing,
.view.behind { display: flex; }

.view { overflow: hidden; }

.view[data-view="home"] {
  flex-direction: column;
  padding: 64px 0 22px;
  color: var(--label);
}

.widgets {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  padding: 0 18px;
}

.widget-col { min-width: 0; }

.widget {
  display: block;
  width: 100%;
  aspect-ratio: 1.05 / 1;
  border: 0;
  border-radius: 22px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.widget-label {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 12px;
  letter-spacing: -0.1px;
  color: var(--widget-label);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .widget-label {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.gh { background: #fff; }
html[data-theme="dark"] .gh { background: #161b22; }

.gh-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  height: 100%;
  padding: 12px;
}

.gh-grid i {
  display: block;
  border-radius: 2px;
  background: #ebedf0;
}

html[data-theme="dark"] .gh { background: #0d1117; }
html[data-theme="dark"] .gh-grid i { background: #161b22; }
html[data-theme="dark"] .gh-grid i.l1 { background: #0e4429; }
html[data-theme="dark"] .gh-grid i.l2 { background: #006d32; }
html[data-theme="dark"] .gh-grid i.l3 { background: #26a641; }
html[data-theme="dark"] .gh-grid i.l4 { background: #39d353; }
html[data-theme="dark"] .g-gh { background: #f2f2f7; color: #111; }
.gh-grid i.l1 { background: #9be9a8; }
.gh-grid i.l2 { background: #40c463; }
.gh-grid i.l3 { background: #30a14e; }
.gh-grid i.l4 { background: #216e39; }

.now {
  color: #fff;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(62, 74, 96, 0.72), rgba(32, 38, 52, 0.62));
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.now-place { font-size: 13px; font-weight: 600; }
.now-big {
  font-size: 42px;
  line-height: 1;
  font-weight: 560;
  letter-spacing: -1px;
  margin-top: 4px;
}
.now-detail { margin-top: auto; font-size: 12px; line-height: 1.25; opacity: 0.92; overflow: hidden; }
.now { min-height: 0; }

.apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 0;
  padding: 18px 8px 0;
  justify-items: center;
}

.icon-hit {
  width: var(--icon);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
}

.glyph {
  width: var(--icon);
  height: var(--icon);
  border-radius: 22%;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.glyph { transition: transform 0.18s ease, filter 0.18s ease; }
.icon-hit:active .glyph { transform: scale(0.88); filter: brightness(0.85); }
.glyph svg { width: 54%; height: 54%; }
.glyph img { width: 100%; height: 100%; object-fit: cover; }

.icon-hit span {
  font-size: 11px;
  letter-spacing: -0.1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  max-width: 74px;
  text-align: center;
}

.g-about { background: linear-gradient(180deg, #ffb340 0%, #ff7a2f 100%); }
.g-work { background: linear-gradient(180deg, #5fa8ff 0%, #1f63e6 100%); }
.g-projects { background: linear-gradient(180deg, #c77dff 0%, #7a4cf0 100%); }
.g-edu { background: linear-gradient(180deg, #7d7bff 0%, #3c32c8 100%); }
.g-skills { background: linear-gradient(180deg, #4cdb7a 0%, #1fa64b 100%); }
.g-mail { background: linear-gradient(180deg, #63b6ff 0%, #1a78f0 100%); }
.g-gh { background: linear-gradient(180deg, #ffffff 0%, #ececf0 100%); }
.g-in { background: linear-gradient(180deg, #2d8ae0 0%, #0a5fb4 100%); color: #fff; font-weight: 800; font-size: 22px; }
.g-settings { background: linear-gradient(180deg, #e9e9ee 0%, #a9a9b0 100%); }
.g-photo { background: #fff; }

.home-spacer { flex: 1; }

.search-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 7px 16px 7px 12px;
  font-size: 15px;
  margin-bottom: 12px;
}

.dock {
  margin: 0 14px;
  padding: 12px 10px 14px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(18px);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.dock .icon-hit > span:not(.glyph) { display: none; }
.dock .icon-hit { width: auto; }

.app-scroll {
  height: 100%;
  overflow: auto;
  background: var(--app-bg);
  color: var(--ink);
}

.app-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 96px;
  padding: 58px 16px 0;
  display: flex;
  align-items: flex-end;
}

.view.compact .app-bar {
  background: color-mix(in srgb, var(--app-bg) 82%, transparent);
  backdrop-filter: blur(16px);
  align-items: center;
  min-height: 96px;
}

.back {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 70%, #d8d8de);
  color: var(--accent);
  display: grid;
  place-items: center;
}

html[data-theme="dark"] .back { background: #2c2c2e; }

.compact-title {
  position: absolute;
  left: 48px;
  right: 48px;
  bottom: 10px;
  text-align: center;
  font-weight: 650;
  font-size: 16px;
  opacity: 0;
}

.view.compact .compact-title { opacity: 1; }

.app-body { padding: 6px 18px 36px; }

.app-body h2 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.6px;
  font-weight: 760;
}

.view.compact .app-body h2 { visibility: hidden; height: 0; margin: 0; overflow: hidden; }

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 14px;
}

.lead { font-weight: 650; font-size: 17px; line-height: 1.35; margin: 0 0 10px; }
.app-body p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: color-mix(in srgb, var(--ink) 78%, var(--muted)); }
.lead { color: var(--ink); }

.kicker {
  margin: 18px 8px 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.group {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}

.row, .job {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.row:last-child, .job:last-child { border-bottom: 0; }

.row-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-main strong { font-size: 16px; font-weight: 600; }
.row-main small, .role { color: var(--muted); font-size: 13px; }
.chev { margin-left: auto; color: #c7c7cc; font-size: 20px; align-self: center; }

.badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex: none;
  margin-top: 2px;
}

.in { background: #0a66c2; font-family: Georgia, serif; }
.gh-badge { background: #24292f; font-size: 10px; }
.mail-badge { background: #007aff; }
.tone-a { background: #1c1c1e; }
.tone-b { background: #34c759; }
.tone-c { background: #ff9f0a; }
.tone-d { background: #0a84ff; }
.tone-e { background: #ff375f; }

.job h3 { margin: 0; font-size: 16px; font-weight: 700; }
.job h3 span { color: #c7c7cc; font-weight: 500; }
.job .role { margin: 2px 0 4px; }
.job p:last-child { margin: 0; font-size: 13px; line-height: 1.4; }

.photo-card {
  margin: 0;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
}

.photo-card img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.photo-card figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.photo-card span { color: var(--muted); font-size: 13px; }

.form-card .field {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.form-card .field:last-child { border-bottom: 0; }
.field span { color: var(--muted); font-size: 15px; }
.field input {
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  font-size: 16px;
}
.field input[readonly] { font-weight: 600; }

.message-box {
  display: block;
  margin-top: 14px;
  background: var(--card);
  border-radius: 16px;
  padding: 12px 14px;
}

.message-box textarea {
  width: 100%;
  min-height: 140px;
  border: 0;
  resize: vertical;
  background: transparent;
  outline: none;
  font-size: 16px;
}

.send {
  width: 100%;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  font-size: 17px;
  padding: 12px 16px;
}

.form-error { color: #ff3b30; font-size: 13px; min-height: 0; }
.fine { color: var(--muted); font-size: 12px; margin-top: 10px; }

.segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 3px;
  background: color-mix(in srgb, var(--muted) 22%, var(--card));
  border-radius: 10px;
}

.segment button {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.segment button[aria-checked="true"] {
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.spotlight {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: color-mix(in srgb, var(--app-bg) 94%, transparent);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  padding: 64px 16px 24px;
  color: var(--ink);
}

.spotlight[hidden] { display: none; }

.spot-bar { display: flex; gap: 8px; align-items: center; }
.spot-bar input {
  flex: 1;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
}
.spot-bar button {
  border: 0;
  background: none;
  color: var(--accent);
  font-weight: 600;
}

#searchResults {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  overflow: auto;
}

#searchResults button, #searchResults a {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-decoration: none;
  display: block;
  font-size: 16px;
}

#searchResults li:first-child button,
#searchResults li:first-child a { border-radius: 14px 14px 0 0; }
#searchResults li:last-child button,
#searchResults li:last-child a { border-radius: 0 0 14px 14px; border-bottom: 0; }
#searchResults .empty { padding: 16px; color: var(--muted); }

.grabber {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 8px;
  width: 128px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

.screen.is-app .grabber { background: #1c1c1e; }
html[data-theme="dark"] .screen.is-app .grabber { background: #fff; }

:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}

@container (max-height: 720px) {
  :root { --icon: 54px; }
  .now-big { font-size: 34px; }
  .apps { gap: 10px 0; padding-top: 12px; }
}

@media (max-width: 960px) {
  .stage { grid-template-columns: auto; padding: 28px 16px; }
  .intro {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .stage { --radius: 46px; padding: 10px; }
  .face { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ---------- Lock screen ---------- */
.lock {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15cqw 4.5cqw 7cqw;
  color: #fff;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.screen:not(.is-locked) .lock { display: none; }
.screen.is-locked .view,
.screen.is-locked .home-zone,
.screen.is-locked .edge-zone { visibility: hidden; }

.lock-top { display: flex; flex-direction: column; align-items: center; }

.padlock { width: 5.2cqw; height: 5.2cqw; color: #fff; overflow: visible; }
.padlock .shackle { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); transform-origin: 16px 11px; }
.lock.open .padlock .shackle { transform: translateY(-2px) rotate(28deg); }

.lock-date {
  margin: 3cqw 0 0;
  font-size: 4.9cqw;
  font-weight: 600;
  opacity: 0.92;
}

.lock-time {
  margin: -1cqw 0 0;
  font-size: 25cqw;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.12);
}

.notif {
  margin-top: auto;
  width: 100%;
  display: flex;
  gap: 3cqw;
  align-items: center;
  padding: 3.4cqw 3.6cqw;
  border-radius: 6cqw;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  color: #fff;
  animation: notifIn 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) 0.9s both;
}

html[data-theme="dark"] .notif { background: rgba(40, 40, 46, 0.55); }

.notif img { width: 10cqw; height: 10cqw; border-radius: 2.6cqw; object-fit: cover; flex: none; }
.notif-main { min-width: 0; flex: 1; }
.notif p { margin: 0; font-size: 3.6cqw; line-height: 1.3; }
.notif-head { display: flex; justify-content: space-between; gap: 2cqw; }
.notif-head span { opacity: 0.7; font-size: 3.2cqw; }

@keyframes notifIn {
  from { opacity: 0; transform: translateY(8cqw) scale(0.94); }
  to { opacity: 1; transform: none; }
}

.lock-bottom {
  width: 100%;
  margin-top: 6cqw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4cqw;
}

.round {
  width: 13cqw;
  height: 13cqw;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.round svg { width: 5.4cqw; height: 5.4cqw; }

.lock-hint {
  font-size: 3.6cqw;
  font-weight: 600;
  animation: hint 2.4s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { opacity: 0.45; transform: translateY(0); }
  50% { opacity: 0.95; transform: translateY(-1.2cqw); }
}

/* ---------- Gesture zones ---------- */
.home-zone,
.edge-zone {
  position: absolute;
  z-index: 9;
  display: none;
  touch-action: none;
}

.screen.is-app .home-zone,
.screen.is-app .edge-zone { display: block; }

.home-zone {
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: grab;
}

.edge-zone {
  left: 0;
  top: 90px;
  bottom: 40px;
  width: 18px;
  cursor: grab;
}

.home-zone:active,
.edge-zone:active { cursor: grabbing; }

.grabber { transition: width 0.25s ease; }
.screen.is-locked .grabber { width: 36%; }

/* ---------- Mindler case study ---------- */
.tone-m { background: linear-gradient(180deg, #3fc4b0, #0f8a7e); }
.g-mindler { background: linear-gradient(180deg, #46d3bd, #0b7f74); color: #fff; font-weight: 800; font-size: 28px; letter-spacing: -1px; }

button.job {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  color: inherit;
}

.case-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, #39c6b0 0%, #0e7d73 60%, #0a4f5c 100%);
  box-shadow: 0 10px 24px rgba(14, 125, 115, 0.3);
}

.case-hero strong { font-size: 24px; letter-spacing: -0.4px; }
.case-hero span { font-size: 13px; opacity: 0.9; }
.case-hero .case-tag { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; font-weight: 700; opacity: 0.85; }
.case-hero .case-link { margin-top: 10px; font-weight: 650; opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
}

.send.as-link { display: block; text-align: center; text-decoration: none; margin-top: 22px; }

/* icon letters (the label rule above targets every span inside an icon) */
.icon-hit .glyph.g-mindler { font-size: 28px; letter-spacing: -1px; text-shadow: none; max-width: none; }
.icon-hit .glyph.g-in { font-size: 22px; text-shadow: none; max-width: none; }
.isl-lead .glyph.g-mindler,
.isl-lead .glyph.g-in { font-size: 3.4cqw; font-weight: 800; letter-spacing: 0; }

/* ---------- iOS-style icon finish ---------- */
.glyph {
  position: relative;
  border-radius: 23%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.glyph::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 46%);
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.glyph svg { width: 60%; height: 60%; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14)); }
.g-gh svg, .g-settings svg { filter: none; }
.g-settings svg { width: 72%; height: 72%; }

.icon-hit { position: relative; }

.app-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  z-index: 2;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff3b30;
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  line-height: 21px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ---------- Education & Skills screens ---------- */
.edu-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px;
  margin-bottom: 16px;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, #6d6bff 0%, #3c32c8 60%, #241c86 100%);
  box-shadow: 0 10px 24px rgba(60, 50, 200, 0.28);
}

.edu-card strong { font-size: 24px; letter-spacing: -0.4px; margin-top: 8px; }
.edu-card span { font-size: 13px; opacity: 0.9; }
.edu-cap { opacity: 1 !important; }

button.row {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
}

.note-date { text-align: center; color: var(--muted); font-size: 13px; margin: -4px 0 14px; }
.note h3 { margin: 18px 0 6px; font-size: 19px; font-weight: 700; }
.note h3:first-child { margin-top: 0; }

.checks { list-style: none; margin: 0; padding: 0; }
.checks li {
  position: relative;
  padding: 7px 0 7px 32px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #34c759 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
