/* ── Yousuf Shehadi · casio A168WA-1 portfolio ── */

@font-face {
  font-family: 'DSEG14';
  src: url('assets/DSEG14Classic-Regular.woff2') format('woff2');
  font-display: swap;
}

:root {
  --ink: #1a1c1e;
  --muted: #8a8d90;
  --line: #e4e5e6;
  --el: #3fd8e8;          /* electroluminescence cyan */
  --el-deep: #1a5fd8;     /* EL strip blue */
  --illum: #cc2218;       /* illuminator red */
  --lcd: #26282a;         /* segment ink */
  --bg: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.seg { font-family: 'DSEG14', 'Courier New', monospace; }

/* ─── LANDING ─── */

#landing {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

#landing.gone { opacity: 0; pointer-events: none; }
#landing.removed { display: none; }

.watch-wrap {
  position: relative;
  height: min(76vh, 780px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 1.1s cubic-bezier(0.7, 0, 0.9, 0.4);
  animation: floaty 5s ease-in-out infinite;
  transform-origin: 49.73% 40.13%;
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

.watch-wrap img {
  height: 100%;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.watch-base {
  filter: drop-shadow(0 24px 40px rgba(26,28,30,0.18));
}

/* vector name overlay — crisp at any scale, positioned over the LCD */
.lcd-name {
  position: absolute;
  left: 25.067%;
  top: 38.175%;
  width: 49.333%;
  height: 3.911%;
  pointer-events: none;
}

/* EL backlight — a second photo of the watch with the screen actually lit,
   cross-faded in on press, exactly like pressing LIGHT on the real thing */
.watch-lit {
  position: absolute;
  inset: 0;
  height: 100%;
  width: auto;
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

/* hover = backlight on, like resting your finger on LIGHT */
.watch-wrap:hover .watch-lit { opacity: 1; }

#landing.lit .watch-lit {
  opacity: 1;
  animation: elOn 0.5s ease forwards;
  filter: drop-shadow(0 0 26px rgba(96,214,214,0.45)) drop-shadow(0 24px 40px rgba(26,28,30,0.18));
}

/* the real EL tube doesn't snap on instantly — tiny warm-up flicker */
@keyframes elOn {
  0%   { opacity: 0; }
  30%  { opacity: 0.75; }
  45%  { opacity: 0.55; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

#landing.zooming .watch-wrap {
  animation: none;
  transform: scale(16);
}

.whiteout {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease 0.55s;
}

#landing.zooming .whiteout { opacity: 1; }

.hint {
  margin-top: 2.2rem;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  animation: pulse 2.4s ease-in-out infinite;
  text-align: center;
}

.hint .seg { font-size: 11px; letter-spacing: 0.2em; }

@keyframes pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.skip {
  position: absolute;
  bottom: 1.2rem;
  right: 1.4rem;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.skip:hover { color: var(--ink); }

/* ─── SITE · one simple, text-first page ─── */

:root {
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --cyan: #0891a0;
}

#site {
  display: none;
  opacity: 0;
  transition: opacity 0.7s ease;
  min-height: 100vh;
  background: #ffffff;
  color: #000;
  font-family: var(--mono);
  font-size: 14px;
  overflow-x: hidden;
}
#site.on { display: block; opacity: 1; }

#site a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#site a:hover { color: var(--cyan); }

/* ── header spans the full viewport so the clock sits at the true right edge ── */
.top {
  position: relative;
  padding: 28px 24px 24px;
  text-align: left;
}

.clock {
  position: absolute;
  top: 28px;
  right: 24px;
  color: #000;
}

.name-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 14px;
  font: inherit;
  font-weight: 700;
  color: inherit;
  text-align: left;
}
.name-btn:hover { color: var(--cyan); }

/* ── two-tab nav, right under the name ── */
.tabs { display: flex; gap: 18px; }
.tabs a { text-decoration: none; }
.tabs a.active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.meta { margin-bottom: 40px; }
.meta p { line-height: 1.75; }
.meta mark {
  background: rgba(8,145,160,0.15);
  color: inherit;
  padding: 0 2px;
}

/* ── thick double rule: edge to edge of the screen ── */
.rule {
  border: none;
  border-top: 4px double #000;
  margin: 0;
}

/* ── page body below the rule ── */
.page { padding: 40px 24px 80px; text-align: left; }

/* ── sections ── */
main { text-align: left; }

section { margin-bottom: 40px; }

section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ── about: indented "> " bullets, terminal-style ── */
.bullets,
.bullets ul { list-style: none; }

.bullets li {
  position: relative;
  padding-left: 1.5em;
  line-height: 1.75;
  margin-bottom: 6px;
}
.bullets > li { margin-bottom: 14px; }
.bullets > li:last-child { margin-bottom: 0; }

.bullets li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* each nesting level steps in one more notch */
.bullets ul {
  margin-top: 6px;
  margin-left: 0.75em;
}
.bullets ul li { color: #444; }
.bullets ul li::before { color: #b0b3b5; }

/* ── contact ── */
#contact p { margin-bottom: 4px; }

/* ── the stoop ── */
.stoop-intro { color: #444; margin-bottom: 18px; }

/* a plain concrete threshold: wall above, two steps below */
.stoop-scene {
  position: relative;
  height: 240px;
  border: 1px solid #000;
  background: #fff;
  overflow: hidden;
  cursor: default;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.stoop-scene::before {           /* upper step */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 52px;
  height: 66px;
  background: #f0f1f2;
  border-top: 2px solid #000;
}
.stoop-scene::after {            /* lower step */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52px;
  background: #e4e5e6;
  border-top: 2px solid #000;
}

.stoop-objects, .stoop-ghost { position: absolute; inset: 0; z-index: 5; }
.stoop-objects { pointer-events: none; }

.stoop-obj {
  position: absolute;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -85%);
  pointer-events: auto;          /* so the "left 3 days ago" tooltip works */
  animation: stoop-in 0.4s ease backwards;
}
.stoop-obj-tilt { display: block; width: 100%; height: 100%; }
.stoop-obj svg { display: block; width: 100%; height: 100%; }

@keyframes stoop-in {
  from { opacity: 0; translate: 0 5px; }
  to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stoop-obj { animation: none; }
}

.stoop-ghost {
  width: 48px;
  height: 48px;
  inset: auto;
  transform: translate(-50%, -85%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 200;
}
.stoop-ghost svg { display: block; width: 100%; height: 100%; }

.stoop-scene-note {
  position: absolute;
  top: 34px;
  left: 0; right: 0;
  text-align: center;
  color: var(--muted);
  z-index: 4;
  padding: 0 16px;
  pointer-events: none;
}

/* palette: seven flat buttons, cyan for the selected one */
.stoop-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.stoop-pick {
  width: 56px;
  height: 56px;
  padding: 4px;
  background: none;
  border: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.stoop-pick svg { display: block; width: 100%; height: 100%; }
.stoop-pick:hover { border-color: #000; }
.stoop-pick.sel {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan);
}
.stoop-pick:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--line);
  box-shadow: none;
}

.stoop-status { margin-top: 12px; color: #444; min-height: 1.75em; }

/* honeypot — off-screen, never display:none so naive bots still "see" it */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 560px) {
  .clock { position: static; display: block; margin-bottom: 12px; }
}
