/* Landing page: the "more about me" section under the island (camera, featured photo, hobbies). */

.more { position: relative; padding-top: 120px; overflow: hidden; }

/* scroll-in animation (only when JS is running, so the text is never stuck hidden) */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- intro ---------- */
.more-intro { display: flex; flex-direction: column; gap: 26px; }
.more-title { margin: 0; padding-bottom: .06em; font: 800 11vw/0.9 var(--display); letter-spacing: -0.06em; }
.more-cols {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px 6vw; align-items: start;
  padding-top: 34px; border-top: 2px solid var(--ink);
}
.more-lead { margin: 0; font-size: clamp(24px, 2.6vw, 38px); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; }
.more-body { margin: 0; font-size: 18px; line-height: 1.55; color: var(--body); }

/* ---------- ticker ---------- */
.ticker {
  margin: 110px 0 0;
  overflow: hidden;
  background: var(--ink); color: #fff;
  transform: rotate(-1.5deg) scale(1.03);
}
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-track span { padding: 16px 0; font: 400 clamp(18px, 2vw, 28px) var(--pixel); letter-spacing: .04em; text-transform: uppercase; white-space: pre; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- hobby rows ---------- */
.hobby {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 6vw; align-items: center;
  padding-top: 130px; padding-bottom: 20px;
}
.hobby.flip-side .hobby-text { order: 2; }
.hobby-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hobby-title { margin: 0; padding-bottom: .06em; font: 800 clamp(56px, 7.2vw, 130px)/0.88 var(--display); letter-spacing: -0.06em; }
.hobby-text p { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.5; color: var(--body); }
.hobby-text .hint-line { font-size: 14px; color: var(--muted); }

.device-wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; }

/* ---------- camera (X-S10-ish) ---------- */
.camera {
  position: relative;
  width: min(460px, 100%);
  padding-top: 30px;
  transform: rotate(3deg);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.camera:hover, .camera:focus-within { transform: rotate(0deg) translateY(-4px); }
.cam-top {
  position: absolute; left: 0; right: 0; top: 0; height: 33px;
  display: flex; align-items: flex-end; gap: 18px;
  padding: 0 34px;
}
.cam-dial {
  width: 58px; height: 16px;
  border: 3px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(90deg, #3a3c41 0 4px, #24262a 4px 7px);
}
.cam-dial.d2 { width: 46px; margin-left: auto; margin-right: 54px; }
.cam-hump {
  position: relative;
  width: 104px; height: 33px;
  border: 3px solid var(--ink); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #2a2c30;
}
.cam-hump i { position: absolute; left: 50%; top: 7px; width: 38px; height: 12px; transform: translateX(-50%); border: 2px solid #0d0e10; border-radius: 4px; background: #121316; }
.cam-shutter {
  position: absolute; right: 30px; top: 8px; z-index: 0;
  width: 34px; height: 22px;
  border: 3px solid var(--ink); border-bottom: 0; border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #e9e9e6, #a9aaa6);
  cursor: pointer;
  transition: transform .08s ease;
}
.cam-shutter:hover { background: linear-gradient(180deg, #fff, #bdbeba); }
.cam-shutter.is-pressed, .cam-shutter:active { transform: translateY(5px); }
/* small "press" hint floating above the shutter, outside the camera so nothing overlaps it */
.cam-hint {
  position: absolute; right: 6px; top: -38px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  background: var(--ink); color: #fff;
  font: 400 11px var(--pixel); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  animation: hint-bob 1.6s ease-in-out infinite;
}
.cam-hint::after {
  content: ''; position: absolute; right: 34px; bottom: -6px;
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink);
}
@keyframes hint-bob { 50% { transform: translateY(-4px); } }

.cam-body {
  position: relative; z-index: 1;
  display: flex; gap: 16px;
  padding: 18px;
  border: 3px solid var(--ink); border-radius: 18px;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 1.5px) 0 0 / 5px 5px,
    linear-gradient(180deg, #2b2d31, #18191c);
  box-shadow: 8px 8px 0 var(--ink);
}
.cam-lcd {
  position: relative; flex: 1;
  aspect-ratio: 3 / 2;
  border: 3px solid #000; border-radius: 4px;
  outline: 2px solid #45474d;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}
.cam-img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cam-osd { position: absolute; inset: 6px 8px; font: 400 10px var(--pixel); color: #fff; text-shadow: 1px 1px 0 #000; pointer-events: none; }
.cam-osd span { position: absolute; }
.cam-osd b { font-weight: 400; }
.osd-tl { left: 0; top: 0; } .osd-tr { right: 0; top: 0; }
.osd-bl { left: 0; bottom: 0; } .osd-br { right: 0; bottom: 0; color: #7ddb7f; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.cam-buttons { flex: none; width: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.cb { display: grid; place-items: center; border: 2px solid #0d0e10; border-radius: 50%; background: #3a3c41; color: #c9c9c9; font: 400 10px var(--pixel); }
.cb.q { width: 28px; height: 28px; }
.cb.pad { width: 54px; height: 54px; background: #2f3135; }
.cb.pad i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #0d0e10; background: #45474d; }
.cb.sm { width: 18px; height: 18px; }

/* ---------- featured photo + camera roll ---------- */
.featured { padding-top: 140px; }
.feat {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 5vw; align-items: center;
  margin: 0;
}
.feat-frame {
  position: relative;
  border: 3px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
  background: #fff;
}
.feat-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.feat-badge {
  position: absolute; left: -3px; top: 22px;
  padding: 8px 12px;
  background: var(--ink); color: #fff;
  font: 400 12px var(--pixel); letter-spacing: .08em; text-transform: uppercase;
}
.feat-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.feat-title { margin: 0; padding-bottom: .06em; font: 800 clamp(56px, 6.4vw, 120px)/0.88 var(--display); letter-spacing: -0.06em; }
.feat-meta { margin: 0; font: 400 12px var(--pixel); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feat-text p:not(.feat-meta) { margin: 0; max-width: 460px; font-size: 19px; line-height: 1.5; color: var(--body); }

.roll { margin-top: 110px; }
.roll-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; margin-top: 22px; }
.tile { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tile-frame { overflow: hidden; border: 2px solid var(--ink); background: #e7e7e4; }
.tile-frame img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tile:hover .tile-frame img { transform: scale(1.04); }
.tile figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; }
.tile figcaption span:first-child { font-family: var(--pixel); font-weight: 400; font-size: 12px; color: var(--muted); }
.roll-grid .tile:nth-child(odd) { margin-top: 48px; }

@media (max-width: 820px) {
  .featured { padding-top: 90px; }
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat-frame { box-shadow: 8px 8px 0 var(--ink); }
  .feat-title { font-size: 15vw; }
  .roll { margin-top: 70px; }
  .roll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .roll-grid .tile:nth-child(odd) { margin-top: 0; }
  .roll-grid .tile:nth-child(even) { margin-top: 32px; }
}

/* ---------- other hobbies ---------- */
.others { padding-top: 140px; }
.other-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 26px; }
.other {
  --k: 3;
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  border: 2px solid var(--ink); background: #fff;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease, opacity .8s ease;
}
.other:nth-child(1) { --tilt: -1.5deg; }
.other:nth-child(2) { --tilt: 1deg; }
.other:nth-child(3) { --tilt: -0.5deg; }
.other, .js .other.reveal.in { transform: rotate(var(--tilt, 0deg)); }
.other:hover, .js .other.reveal.in:hover { transform: rotate(0deg) translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.other .spr { background-image: var(--idle); animation: idle4 .9s steps(4) infinite; }
.other:hover .spr { background-image: var(--jump); background-size: calc(192px * var(--k)) calc(38px * var(--k)); animation: jump8 .8s steps(8) infinite; }
.other h3 { margin: 6px 0 0; font: 800 34px/0.95 var(--display); letter-spacing: -0.04em; }
.other p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--body); }

/* ---------- closing ---------- */
.more-end {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  padding-top: 130px; padding-bottom: 72px;
}
.more-close { margin: 0; max-width: 760px; font: 800 clamp(32px, 4.4vw, 64px)/1 var(--display); letter-spacing: -0.045em; }
.more-end .actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .more { padding-top: 70px; }
  .more-title { font-size: 16vw; }
  .more-cols { grid-template-columns: minmax(0, 1fr); }
  .ticker { margin-top: 70px; }
  .hobby { grid-template-columns: minmax(0, 1fr); padding-top: 80px; }
  .hobby.flip-side .hobby-text { order: 0; }
  .hobby-title { font-size: 14.5vw; }
  .others { padding-top: 90px; }
  .more-end { padding-top: 90px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .camera, .other, .tile-frame img { transition: none; }
  .cam-flash.go, .cam-hint { animation: none; }
}
