/* FranOS. Un escritorio para el ordenador y un iPhone para el móvil, con las mismas vistas dentro. */

@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --accent: #1084ba;
  --accent-ink: #fff;
  --ink: #1d1d1f;
  --ink-2: #57575c;
  --ink-3: #86868b;
  --line: rgba(0, 0, 0, .1);
  --win: #fff;
  --win-2: #f5f5f7;
  --bar: rgba(246, 246, 248, .9);
  --menubar: rgba(246, 246, 248, .62);
  --glass: rgba(255, 255, 255, .42);
  --shadow: 0 22px 70px rgba(0, 0, 0, .32), 0 0 0 .5px rgba(0, 0, 0, .22);
  --sticky: #fff3a6;
  --sticky-ink: #3b3320;
  --k-work: #1084ba;
  --k-study: #8e5bd8;
  --k-project: #e8712a;
  --k-life: #2fa35a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #3aa7dc;
    --ink: #f2f2f4;
    --ink-2: #c1c1c6;
    --ink-3: #8e8e93;
    --line: rgba(255, 255, 255, .12);
    --win: #232325;
    --win-2: #2c2c2f;
    --bar: rgba(44, 44, 47, .92);
    --menubar: rgba(30, 30, 32, .55);
    --glass: rgba(40, 40, 44, .45);
    --shadow: 0 22px 70px rgba(0, 0, 0, .6), 0 0 0 .5px rgba(255, 255, 255, .16);
    --k-work: #3aa7dc;
    --k-study: #a97ff0;
    --k-project: #ff8f4d;
    --k-life: #48c072;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #3aa7dc;
  --ink: #f2f2f4;
  --ink-2: #c1c1c6;
  --ink-3: #8e8e93;
  --line: rgba(255, 255, 255, .12);
  --win: #232325;
  --win-2: #2c2c2f;
  --bar: rgba(44, 44, 47, .92);
  --menubar: rgba(30, 30, 32, .55);
  --glass: rgba(40, 40, 44, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font: 14px/1.45 var(--font);
  color: var(--ink);
  background: #2d3a4a url("../img/fotos/montana.webp") center 40% / cover no-repeat fixed;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-phone { background-image: url("../img/fotos/montana-s.webp"); background-position: 62% center; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
.svg { display: inline-flex; }
.svg svg { width: 100%; height: 100%; }
.tiny { width: 14px; height: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 30px; padding: 0 14px; border-radius: 7px;
  background: var(--win-2); border: .5px solid var(--line);
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink);
  box-shadow: 0 .5px 1px rgba(0, 0, 0, .08);
}
.btn:hover { filter: brightness(.97); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- Escritorio ---------- */

.menubar {
  position: fixed; inset: 0 0 auto 0; height: 28px; z-index: 9000;
  display: flex; justify-content: space-between; align-items: center; padding: 0 10px;
  background: var(--menubar);
  backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
:root .menubar { color: var(--ink); text-shadow: none; }
.mb-left, .mb-right { display: flex; align-items: center; gap: 2px; height: 100%; }
.mb-left > button, .mb-lang button { height: 22px; padding: 0 9px; border-radius: 5px; }
.mb-left > button:hover, .mb-lang button:hover { background: rgba(0, 0, 0, .08); }
.mb-mark { width: 34px; display: grid; place-items: center; }
.mb-mark .svg { width: 16px; height: 16px; }
.mb-app { font-weight: 700; }
.mb-lang { display: flex; gap: 0; margin-right: 6px; }
.mb-lang button { font-size: 12px; letter-spacing: .02em; color: var(--ink-2); }
.mb-lang button.on { color: var(--ink); font-weight: 700; }
.mb-clock { padding: 0 6px; white-space: nowrap; }

.desk { position: fixed; inset: 28px 0 0 0; }
.desk::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 300px; pointer-events: none;
  background: linear-gradient(to left, rgba(12, 22, 38, .34), rgba(12, 22, 38, 0));
}

.desk-icons {
  position: absolute; top: 14px; right: 10px; bottom: 96px;
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 106px); grid-auto-columns: 92px;
  direction: rtl; gap: 2px 4px;
}
.desk-icons > * { direction: ltr; }

.ico {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  width: 92px; padding: 6px 4px; border-radius: 8px;
}
.ico .ico-pic { width: 58px; height: 58px; }
.ico img.ico-pic { object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .28)); }
.ico img.ico-pic.cover, .p-icon.cover, .ev-open img.cover, .pico img.cover, .pfolder img.cover {
  object-fit: cover; border-radius: 22%; background: #fff;
}
.ico-label {
  max-width: 100%; padding: 1px 5px; border-radius: 4px;
  font-size: 12px; line-height: 1.25; text-align: center; font-weight: 500;
  color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .75), 0 0 1px rgba(0, 0, 0, .6);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.desk-icons .ico:hover .ico-label, .desk-icons .ico:focus-visible .ico-label { background: rgba(20, 90, 200, .75); text-shadow: none; }
.desk-icons .ico:active .ico-pic { filter: brightness(.8) drop-shadow(0 3px 6px rgba(0, 0, 0, .28)); }

.sticky {
  position: absolute; left: 28px; top: 22px; width: 232px; z-index: 5;
  padding: 18px 18px 14px; background: var(--sticky); color: var(--sticky-ink);
  font: 600 23px/1.08 var(--hand);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .22), 0 1px 0 rgba(0, 0, 0, .05);
  transform: rotate(-2.2deg); cursor: grab; touch-action: none; user-select: none;
}
.sticky::before {
  content: ""; position: absolute; left: 50%; top: -9px; width: 70px; height: 20px; translate: -50% 0; rotate: 3deg;
  background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}
.sticky p { margin: 0 0 8px; }
.sticky p:first-child { font-size: 30px; }
.sticky.dragging { cursor: grabbing; box-shadow: 0 18px 32px rgba(0, 0, 0, .28); }
.sticky-go { font: inherit; font-size: 24px; color: #8a4b00; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* Ventanas */
.win {
  position: absolute; display: flex; flex-direction: column;
  background: var(--win); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
  min-width: 280px;
}
.win:not(.front) { box-shadow: 0 12px 40px rgba(0, 0, 0, .22), 0 0 0 .5px rgba(0, 0, 0, .2); }
.win.hidden { display: none; }
.win.opening { animation: win-open .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes win-open { from { transform: scale(.96) translateY(8px); } }
.win.dragging { user-select: none; }
.win-bar {
  position: relative; flex: none; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--bar); border-bottom: .5px solid var(--line); cursor: default; touch-action: none; user-select: none;
}
.win-title { font-size: 13px; font-weight: 600; color: var(--ink-2); max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win.front .win-title { color: var(--ink); }
.lights { position: absolute; left: 13px; top: 50%; translate: 0 -50%; display: flex; gap: 8px; }
.light { width: 12px; height: 12px; border-radius: 50%; border: .5px solid rgba(0, 0, 0, .18); }
.light.close { background: #ff5f57; }
.light.min { background: #febc2e; }
.light.max { background: #28c840; }
.win:not(.front) .light { background: #d6d6d9; }
.lights:hover .light { background-image: radial-gradient(circle, rgba(0, 0, 0, .45) 1.5px, transparent 2px); }
.win-body { flex: 1; overflow: auto; overscroll-behavior: contain; }
.win.dark { background: #1c1c1e; }
.win.dark .win-bar { background: #2b2b2e; border-color: #000; }
.win.dark .win-title { color: #c9c9cd; }

/* Dock */
.dock {
  position: fixed; left: 50%; bottom: 8px; translate: -50% 0; z-index: 8000;
  display: flex; align-items: flex-end; gap: 4px; height: 70px; padding: 6px 8px;
  background: var(--glass); border-radius: 20px;
  border: .5px solid rgba(255, 255, 255, .45);
  backdrop-filter: saturate(170%) blur(20px); -webkit-backdrop-filter: saturate(170%) blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.dock-item { position: relative; width: 54px; height: 54px; transition: transform .16s ease, margin .16s ease; transform-origin: bottom center; }
.dock-item .ico-pic { width: 54px; height: 54px; border-radius: 12px; }
.dock-item img.ico-pic { object-fit: cover; }
.dock-item .ico-pic.round { border-radius: 13px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.dock-item:hover { transform: scale(1.32) translateY(-6px); margin: 0 9px; }
.dock-tip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 0; scale: .76;
  padding: 3px 10px; border-radius: 6px; white-space: nowrap; pointer-events: none;
  background: var(--bar); color: var(--ink); font-size: 13px; box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
  opacity: 0; transition: opacity .12s;
}
.dock-item:hover .dock-tip, .dock-item:focus-visible .dock-tip { opacity: 1; }
.dock-dot { position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; translate: -50% 0; border-radius: 50%; background: rgba(0, 0, 0, .55); opacity: 0; }
.dock-item.running .dock-dot { opacity: 1; }
.dock-sep { width: 1px; height: 46px; margin: 0 4px 4px; background: rgba(0, 0, 0, .18); }

/* ---------- Vistas ---------- */

/* Sobre mí */
.about { padding: 26px 34px 28px; text-align: center; }
.about-photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.about-name { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
.about-role { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.about-intro { margin: 14px auto 0; max-width: 430px; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 20px auto 0; max-width: 430px; text-align: left; font-size: 13px; }
.specs dt { color: var(--ink-3); text-align: right; }
.specs dd { margin: 0; }
.about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }

/* Proyectos (Finder) */
.finder { display: grid; grid-template-columns: 190px 1fr; height: 100%; }
.finder-side { padding: 12px 10px; background: var(--win-2); border-right: .5px solid var(--line); display: flex; flex-direction: column; gap: 1px; overflow: auto; }
.finder-cat { text-align: left; padding: 5px 10px; border-radius: 6px; font-size: 13px; color: var(--ink); }
.finder-cat:hover { background: rgba(0, 0, 0, .05); }
.finder-cat.on { background: rgba(16, 132, 186, .16); color: var(--accent); font-weight: 600; }
.finder-main { display: flex; flex-direction: column; min-width: 0; }
.finder-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: .5px solid var(--line); }
.finder-searchbox { flex: 1; display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; background: var(--win-2); color: var(--ink-3); }
.finder-search { flex: 1; border: 0; outline: 0; background: none; font-size: 13px; color: var(--ink); min-width: 0; }
.finder-count { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.finder-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); align-content: start; gap: 8px 4px; padding: 16px 12px; }
.finder-item { display: flex; flex-direction: column; align-items: center; }
.finder .ico { width: 100%; }
.finder .ico img.ico-pic { width: 64px; height: 64px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18)); }
.finder .ico-label { color: var(--ink); text-shadow: none; }
.finder .ico:hover { background: rgba(0, 0, 0, .05); }
.finder-years { font-size: 11px; color: var(--ink-3); margin-top: -3px; }
.finder-empty { grid-column: 1 / -1; color: var(--ink-3); text-align: center; margin-top: 40px; }

/* Ficha de proyecto */
.project { padding: 24px 28px 30px; }
.p-head { display: flex; gap: 16px; align-items: center; }
.p-icon { width: 76px; height: 76px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .2)); }
.p-titles h2 { margin: 0; font-size: 26px; line-height: 1.12; letter-spacing: -.01em; }
.p-tag { margin: 3px 0 0; font-size: 15px; color: var(--ink-2); }
.p-meta { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }
.p-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; }
.p-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.p-link:hover { text-decoration: underline; }
.gallery { display: flex; gap: 12px; margin: 20px -28px 4px; padding: 4px 28px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 28px; }
.shot { flex: none; scroll-snap-align: start; border-radius: 10px; overflow: hidden; background: var(--win-2); box-shadow: 0 0 0 .5px var(--line), 0 6px 16px rgba(0, 0, 0, .12); }
.shot img { height: 300px; width: auto; max-width: none; }
.shot-phone { border-radius: 22px; }
.shot-wide img { height: 260px; }
.shot:hover img { filter: brightness(.96); }
.p-sec { margin-top: 18px; }
.p-sec h3 { margin: 0 0 5px; font-size: 13px; font-weight: 700; color: var(--ink); }
.p-sec p { margin: 0 0 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; max-width: 64ch; }
.p-stack { font-family: var(--mono); font-size: 12.5px !important; color: var(--ink) !important; }
.p-note { margin-top: 18px; padding-top: 12px; border-top: .5px solid var(--line); font-size: 12.5px; color: var(--ink-3); }

/* Cartas de Yo Nunca */
.cards { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 18px 0 6px; padding: 20px; border-radius: 14px; background: #e3312d; }
.card-face {
  width: min(320px, 100%); min-height: 132px; display: grid; place-items: center; padding: 18px 22px;
  background: #fff; color: #1d1d1f; border-radius: 12px; text-align: center;
  font: 700 19px/1.25 var(--font); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); rotate: -1.5deg;
}
.card-face.in { animation: card-in .35s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes card-in { from { transform: translateY(14px) rotate(4deg) scale(.96); } }
.cards .btn.primary { background: #fff; color: #e3312d; }

/* Historia */
.story { padding: 24px 28px 34px; }
.story-head h2 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.story-head p { margin: 6px 0 14px; color: var(--ink-2); max-width: 52ch; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 8px; background: var(--win-2); }
.seg button { padding: 4px 11px; border-radius: 6px; font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: var(--win); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.yr { position: relative; display: grid; grid-template-columns: 78px 1fr; gap: 0 10px; margin-top: 18px; }
.yr-num { margin: 0; font: 700 34px/1 var(--hand); color: var(--accent); padding-top: 2px; }
.yr-evs { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px dotted var(--line); }
.ev { position: relative; padding: 0 0 14px; }
.ev-dot { position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--win); border: 3px solid var(--k-project); }
.k-work .ev-dot { border-color: var(--k-work); }
.k-study .ev-dot { border-color: var(--k-study); }
.k-life .ev-dot { border-color: var(--k-life); }
.ev-meta { margin: 0; font-size: 12px; color: var(--ink-3); }
.k-work .ev-meta::first-letter, .ev-meta { font-variant-numeric: tabular-nums; }
.ev-title { margin: 1px 0 0; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ev-text { margin: 3px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.ev-img { margin-top: 8px; width: 100%; max-width: 360px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .14); rotate: -.6deg; }
.ev-open { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; padding: 4px 10px 4px 5px; border-radius: 8px; background: var(--win-2); font-size: 12.5px; font-weight: 600; color: var(--accent); }
.ev-open img { width: 20px; height: 20px; object-fit: contain; }
.ev-open:hover { filter: brightness(.96); }
.story-end { margin: 18px 0 0 88px; font: 600 24px/1.1 var(--hand); color: var(--ink-2); }

/* Fotos */
.photos { padding: 16px 18px 20px; }
.photos-sub { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; }
.ph { aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: var(--win-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ph:hover img { transform: scale(1.04); }

/* Correo */
.mail { display: flex; flex-direction: column; height: 100%; }
.mail-row { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: .5px solid var(--line); font-size: 13.5px; }
.mail-row > span { color: var(--ink-3); width: 58px; flex: none; }
.mail-in { flex: 1; border: 0; outline: 0; background: none; }
.mail-body { flex: 1; min-height: 160px; border: 0; outline: 0; resize: none; padding: 14px 18px; background: none; font-size: 14px; line-height: 1.5; }
.mail-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px 16px; border-top: .5px solid var(--line); }
.mail-links { display: flex; gap: 14px; }
.mail-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; color: var(--ink-2); }
.mail-link img { width: 18px; height: 18px; }

/* CV */
.cv { display: flex; flex-direction: column; height: 100%; background: #525659; }
.cv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--win-2); font-size: 12.5px; color: var(--ink-2); }
.cv-doc { flex: 1; width: 100%; border: 0; }
.cv-fallback, .cv-phone img { width: min(100%, 620px); margin: 16px auto; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }
.cv-phone { display: block; text-align: center; color: #fff; text-decoration: none; padding-bottom: 20px; }

/* Papelera */
.trash { padding: 18px 22px 24px; }
.trash-sub { margin: 0 0 12px; color: var(--ink-2); font-size: 13.5px; }
.trash-list { list-style: none; margin: 0; padding: 0; }
.trash-list li { padding: 10px 0; border-top: .5px solid var(--line); }
.trash-name { margin: 0; font-weight: 600; }
.trash-name span { font-weight: 400; color: var(--ink-3); margin-left: 8px; font-size: 12.5px; }
.trash-why { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }

/* Terminal */
.term { min-height: 100%; padding: 12px 14px; background: #1c1c1e; color: #e6e6e8; font: 13px/1.5 var(--mono); cursor: text; }
.term-line { white-space: pre-wrap; word-break: break-word; }
.term-line.dim { color: #8e8e93; }
.term-line.err { color: #ff8a80; }
.term-ps { color: #7ee787; }
.term-live { display: flex; }
.term-in { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #e6e6e8; font: inherit; caret-color: #7ee787; }

/* Visor */
.lb { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(0, 0, 0, .86); padding: 40px 60px 70px; }
.lb-img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; margin: 0; text-align: center; color: #e6e6e8; font-size: 13.5px; }
.lb-nav, .lb-close { position: absolute; color: #fff; font-size: 34px; line-height: 1; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .22); }
.lb-nav.prev { left: 12px; top: 50%; translate: 0 -50%; }
.lb-nav.next { right: 12px; top: 50%; translate: 0 -50%; }
.lb-close { top: 14px; right: 14px; font-size: 28px; }

/* ---------- iPhone ---------- */

body.is-phone { overflow: hidden; }
.phone { position: fixed; inset: 0; display: flex; flex-direction: column; color: #fff; }
.phone::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .1) 70%, rgba(0, 0, 0, .32)); pointer-events: none; }
.status { position: relative; display: flex; justify-content: space-between; align-items: center; padding: max(10px, env(safe-area-inset-top)) 26px 0; height: calc(44px + env(safe-area-inset-top)); font-weight: 600; font-size: 15px; }
.st-icons { display: flex; gap: 6px; align-items: center; }
.st-icons .svg:nth-child(1) { width: 17px; height: 11px; }
.st-icons .svg:nth-child(2) { width: 16px; height: 12px; }
.st-icons .svg:nth-child(3) { width: 26px; height: 12px; }
.plang { position: relative; display: flex; justify-content: center; gap: 2px; margin: 2px auto 0; padding: 2px; border-radius: 9px; background: rgba(0, 0, 0, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.plang button { padding: 2px 12px; border-radius: 7px; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.plang button.on { background: rgba(255, 255, 255, .9); color: #1d1d1f; }
.pages { position: relative; flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pages::-webkit-scrollbar { display: none; }
.page { flex: 0 0 100%; scroll-snap-align: start; padding: 14px 18px 0; overflow-y: auto; }
.widget {
  display: grid; grid-template-columns: 76px 1fr; gap: 4px 14px; align-items: center;
  margin: 4px 4px 18px; padding: 14px; border-radius: 22px;
  background: rgba(255, 255, 255, .78); color: #1d1d1f;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.widget-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.widget-name { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.2; }
.widget-role { margin: 1px 0 0; font-size: 13px; color: #57575c; }
.widget-line { margin: 4px 0 0; font-size: 12.5px; color: #57575c; line-height: 1.35; }
.widget-actions { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; }
.wbtn { flex: 1; height: 36px; border-radius: 11px; background: rgba(0, 0, 0, .06); font-weight: 600; font-size: 14px; }
.wbtn.primary { background: var(--accent); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 6px; padding: 0 2px 16px; }
.pico { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.pico .ico-pic { width: 60px; height: 60px; border-radius: 14px; }
.pico img.ico-pic { object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .25)); }
.pico .ico-pic.round { border-radius: 14px; object-fit: cover; }
.pico-label { max-width: 100%; font-size: 11.5px; line-height: 1.2; text-align: center; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pico:active .ico-pic { filter: brightness(.75); }
.pfolder { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 7px; background: rgba(255, 255, 255, .32); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pfolder img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 3px; }
.pdots { position: relative; display: flex; justify-content: center; gap: 8px; padding: 6px 0 8px; }
.pdots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.pdots span.on { background: #fff; }
.pdock {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; justify-items: center;
  margin: 0 12px calc(10px + env(safe-area-inset-bottom)); padding: 14px 10px; border-radius: 30px;
  background: rgba(255, 255, 255, .28); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.pfolder-ov { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(20, 20, 24, .45); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); animation: fade .2s; }
.pfolder-title { margin: 0; font-size: 28px; font-weight: 700; }
.pfolder-box { display: grid; grid-template-columns: repeat(3, 84px); gap: 18px 14px; padding: 22px 18px; border-radius: 34px; background: rgba(255, 255, 255, .22); }
@keyframes fade { from { opacity: 0; } }

.sheet {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: var(--win); color: var(--ink);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.sheet.in { transform: none; }
.sheet.out { transform: translateX(100%); }
.sheet.dark { background: #1c1c1e; }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: env(safe-area-inset-top) 8px 0; height: calc(48px + env(safe-area-inset-top)); background: var(--bar); border-bottom: .5px solid var(--line); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.sheet.dark .nav { background: #2b2b2e; color: #f2f2f4; }
.nav-back { display: inline-flex; align-items: center; gap: 4px; justify-self: start; padding: 6px 6px; color: var(--accent); font-size: 16px; }
.nav-back .svg { width: 11px; height: 18px; }
.nav-title { margin: 0; font-weight: 600; font-size: 16px; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }

@media (max-width: 760px) {
  .about { padding: 22px 20px 30px; }
  .project, .story { padding: 20px 18px 30px; }
  .gallery { margin: 18px -18px 4px; padding: 4px 18px 12px; scroll-padding: 18px; }
  .shot img { height: 360px; }
  .shot-wide img { height: 200px; }
  .p-icon { width: 64px; height: 64px; }
  .p-titles h2 { font-size: 23px; }
  .finder { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; }
  .finder-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: .5px solid var(--line); padding: 8px 10px; }
  .finder-cat { white-space: nowrap; }
  .finder-grid { grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
  .yr { grid-template-columns: 58px 1fr; }
  .yr-num { font-size: 28px; }
  .story-end { margin-left: 68px; }
  .photos-grid { grid-template-columns: repeat(3, 1fr); gap: 3px; }
  .ph { border-radius: 0; }
  .lb { padding: 50px 8px 70px; }
  .lb-nav { display: none; }
  .term { min-height: 100%; }
  .mail { min-height: 100%; }
  .cv { min-height: 100%; }
}

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