/* JTravels Media — dark studio style (v5, chosen 2026-11-29)
   Inspired by Fragment Studio. Unslop rules: one coral accent, quiet chrome, real photos and work carry the color.
   Toolkit used: Fontshare (General Sans, Satoshi), Transitions.dev (page fades), Animated Buttons (rolling labels),
   Navbar Gallery (hide on scroll), Footer.design (giant wordmark footer), details.so (cursor dot),
   Kawaii Text Animation + Animation Dictionary (blur-focus titles). Unslop method by Damir Sokolovsky (@heydamir), CC BY 4.0 */

:root {
  --bg: #0b0d10; --bg-2: #121519; --bg-3: #1a1e24; --line: rgba(236, 232, 225, .09);
  --text: #ece8e1; --text-2: #a9adb5; --muted: #747a85;
  --coral: #ff7a59; --coral-hover: #ff9475; --on-coral: #1d0f0a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Satoshi", system-ui, sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--coral); color: var(--on-coral); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
h1, h2, h3 { font-family: "General Sans", sans-serif; font-weight: 300; letter-spacing: -0.03em; margin: 0; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.dim { color: var(--muted); }

/* Page fade between pages (Transitions.dev) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .25s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(6px); } }

/* Buttons with a rolling label (Animated Buttons) */
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 500; font-size: 15px; text-decoration: none; transition: background-color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-coral { background: var(--coral); color: var(--on-coral); }
.btn-coral:hover { background: var(--coral-hover); }
.btn-line { box-shadow: inset 0 0 0 1px rgba(236, 232, 225, .25); }
.btn-line:hover { background: rgba(236, 232, 225, .06); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.roll { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.roll > span { display: block; transition: transform .35s var(--ease); }
.roll > span::after { content: attr(data-t); display: block; }
.btn:hover .roll > span, a:hover > .roll > span { transform: translateY(-50%); }

/* ---------- Nav (hides on scroll down: Navbar Gallery) ---------- */
.nav { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px 48px; background: linear-gradient(180deg, rgba(11, 13, 16, .9), rgba(11, 13, 16, 0)); transition: transform .45s var(--ease); }
.nav.hide { transform: translateY(-110%); }
.logo { font-family: "General Sans", sans-serif; font-weight: 500; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.links { display: flex; gap: 32px; font-size: 14px; }
.links a { text-decoration: none; color: var(--text-2); transition: color .15s var(--ease); }
.links a:hover, .links a[aria-current="page"] { color: var(--text); }
.menu-btn { display: none; }

/* ---------- Home hero: 3D cascade of real work and travel photos ---------- */
.hero { position: relative; height: 100vh; min-height: 720px; overflow: hidden; }
.cascade { position: absolute; top: -6vh; right: -6vw; width: 74vw; height: 92vh; perspective: 1400px; }
.stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(18deg) rotateY(-28deg) rotateZ(14deg); transition: transform .9s var(--ease); }
.tile { position: absolute; width: 22vw; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--bg-3); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px rgba(0, 0, 0, .55); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 40%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; background: linear-gradient(180deg, rgba(11, 13, 16, 0), var(--bg) 85%); z-index: 4; pointer-events: none; }
.hero-copy { position: absolute; z-index: 5; left: 48px; bottom: 72px; max-width: 760px; }
.hero-copy h1 { font-size: clamp(48px, 5.6vw, 92px); line-height: 1.02; }
.hero-copy h1 > span { display: block; }
.hero-copy .row { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.hero-copy p { margin: 0; max-width: 30rem; color: var(--text-2); font-size: 16px; }

/* Draggable card carousel in the hero */
.cascade { z-index: 3; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cascade.dragging { cursor: grabbing; }
.cascade.dragging .tile { transition: none; }
.tile { display: block; text-decoration: none; transition: opacity .3s var(--ease), box-shadow .3s var(--ease); }
.tile img { pointer-events: none; -webkit-user-drag: none; }
.tile:hover, .tile:focus-visible { box-shadow: 0 0 0 2px var(--coral), 0 30px 60px rgba(0, 0, 0, .55); }
.tile-label { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(11, 13, 16, .82); color: var(--text); font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.tile:hover .tile-label, .tile:focus-visible .tile-label { opacity: 1; transform: none; }
.drag-hint { display: block; margin-bottom: 20px; color: var(--text-2); }

.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) { .hint-desk { display: none; } .hint-touch { display: inline; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 180px 0 64px; }
.page-hero h1 { font-size: clamp(48px, 6vw, 96px); line-height: 1.02; max-width: 14ch; }
.page-hero h1 .dim { display: block; }
.page-hero .lede { color: var(--text-2); font-size: 19px; max-width: 36rem; margin: 28px 0 0; }
.page-hero .btns { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.crumb { display: inline-block; margin-bottom: 28px; text-decoration: none; }
.crumb:hover { color: var(--text); }

section { padding: 120px 0; }
.label { display: block; margin-bottom: 28px; }

/* ---------- Services list ---------- */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 28px 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h3 { font-size: clamp(36px, 3.6vw, 56px); line-height: 1.05; color: var(--muted); transition: color .3s var(--ease); display: flex; align-items: center; gap: 16px; }
.svc h3 i { width: 10px; height: 10px; border: 1.5px solid var(--coral); transform: rotate(45deg); opacity: 0; transition: opacity .3s var(--ease); flex: none; }
.svc:hover h3, .svc.on h3 { color: var(--text); }
.svc:hover h3 i, .svc.on h3 i { opacity: 1; }
.svc p { margin: 0 0 16px; color: var(--text-2); max-width: 34rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13px; color: var(--text-2); padding: 5px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.price { margin-top: 14px; font-size: 14px; color: var(--muted); }
.price b { color: var(--text); font-weight: 500; }

/* ---------- Project cards that stack as you scroll ---------- */
.card { position: sticky; top: 96px; display: grid; grid-template-columns: 1.15fr 1fr; min-height: 560px; margin-bottom: 40px; border-radius: 20px; overflow: hidden; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line), 0 -20px 60px rgba(0, 0, 0, .5); text-decoration: none; }
.card:nth-child(2) { top: 116px; }
.card:nth-child(3) { top: 136px; }
.shot { position: relative; overflow: hidden; background: var(--bg-3); min-height: 360px; }
.shot > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.55); transition: transform .8s var(--ease); }
.card:hover .shot > img.bg { transform: scale(1.04); }
.shot .frame { position: absolute; left: 9%; right: 9%; top: 50%; transform: translateY(-50%); }
.frame { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; background: #e9e4da; }
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .2); }
.frame-bar span { flex: 1; margin: 0 18px 0 8px; height: 17px; line-height: 17px; border-radius: 5px; background: #fff; color: #555; font-size: 11px; text-align: center; overflow: hidden; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.info { padding: 48px; display: flex; flex-direction: column; }
.info h3 { font-size: clamp(32px, 3vw, 48px); line-height: 1.08; margin: 12px 0 20px; }
.info p { color: var(--text-2); margin: 0 0 24px; }
.stats-row { display: flex; gap: 32px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.stats-row b { display: block; font-family: "General Sans", sans-serif; font-weight: 400; font-size: 30px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats-row span { font-size: 13px; color: var(--muted); }
.go { margin-top: 24px; color: var(--coral); font-weight: 500; font-size: 15px; }

/* ---------- Case study ---------- */
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0; }
.meta div { padding: 20px 0; }
.meta dt { margin-bottom: 4px; }
.meta dd { margin: 0; font-size: 15px; }
.big-shot { position: relative; height: min(78vh, 760px); min-height: 520px; border-radius: 20px; overflow: hidden; margin-top: 48px; }
.big-shot > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.big-shot .frame { position: absolute; left: 50%; top: 50%; width: min(980px, 82%); transform: translate(-50%, -50%); }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.numbers div { background: var(--bg-2); padding: 28px; }
.numbers b { display: block; font-family: "General Sans", sans-serif; font-weight: 300; font-size: 48px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.numbers span { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.note { margin: 12px 0 0; }
.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.story h2 { font-size: clamp(32px, 3vw, 48px); line-height: 1.08; }
.story p { color: var(--text-2); }
.built { list-style: none; margin: 0; padding: 0; counter-reset: b; }
.built li { counter-increment: b; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.built li::before { content: counter(b, decimal-leading-zero); font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--coral); padding-top: 4px; }
.next { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 48px 0; border-top: 1px solid var(--line); text-decoration: none; }
.next h3 { font-size: clamp(40px, 5vw, 80px); line-height: 1; transition: color .3s var(--ease); }
.next:hover h3 { color: var(--coral); }

/* ---------- Steps, about, contact ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.steps div { background: var(--bg-2); padding: 28px; }
.steps h3 { font-size: 26px; margin: 12px 0 8px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.about h2 { font-size: clamp(40px, 4vw, 64px); line-height: 1.04; }
.about p { color: var(--text-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.facts div { background: var(--bg-2); padding: 24px; }
.facts b { display: block; font-family: "General Sans", sans-serif; font-weight: 400; font-size: 30px; letter-spacing: -0.03em; }
.facts span { font-size: 14px; color: var(--muted); }
.mail { display: inline-block; font-family: "General Sans", sans-serif; font-weight: 300; font-size: clamp(32px, 5vw, 72px); letter-spacing: -0.03em; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .3s var(--ease), border-color .3s var(--ease); }
.mail:hover { color: var(--coral); border-color: var(--coral); }
.rows { margin-top: 56px; }
.rows div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.final { text-align: center; padding: 160px 24px; border-top: 1px solid var(--line); }
.final h2 { font-size: clamp(48px, 6vw, 96px); line-height: 1; }
.final h2 span { color: var(--coral); }
.final p { color: var(--text-2); margin: 20px 0 32px; }

/* ---------- Footer with a giant wordmark (Footer.design) ---------- */
footer { border-top: 1px solid var(--line); padding-top: 56px; overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { margin: 8px 0 0; color: var(--text-2); }
.foot ul { list-style: none; margin: 8px 0 0; padding: 0; }
.foot li { padding: 3px 0; }
.foot a { text-decoration: none; color: var(--text-2); }
.foot a:hover { color: var(--text); }
.clock { font-variant-numeric: tabular-nums; }
.giant { font-family: "General Sans", sans-serif; font-weight: 500; font-size: 17.5vw; line-height: .8; letter-spacing: -0.06em; margin: 56px 0 8px -0.06em; color: var(--bg-3); white-space: nowrap; user-select: none; }
.legal { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 28px; border-top: 1px solid var(--line); }

/* Sunrise: the giant footer name lights up letter by letter when it scrolls into view */
.giant .l { display: inline-block; transition: color 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.giant.in .l { color: var(--text); }
.giant.in .l.sun { color: var(--coral); }

/* ---------- Cursor dot (details.so) ---------- */
.cursor { position: fixed; z-index: 50; top: 0; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--coral); pointer-events: none; opacity: 0; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .2s var(--ease), background-color .25s var(--ease); }
.cursor.on { opacity: 1; }
.cursor.big { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: rgba(255, 122, 89, .18); box-shadow: inset 0 0 0 1px var(--coral); }

/* ---------- Titles come into focus (Kawaii Text Animation "Blur In") ---------- */
.fx .focus .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(8px); transition: opacity .6s var(--ease), filter .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.fx .focus.in .w { opacity: 1; filter: none; transform: none; }
.fx .fade { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s; }
.fx .fade.in { opacity: 1; transform: none; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1000px) {
  .card, .story, .about { grid-template-columns: 1fr; }
  .card { position: relative; top: auto !important; }
  .numbers, .steps, .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 20px; }
  .nav { padding: 14px 20px; flex-wrap: wrap; }
  .links { display: none; width: 100%; flex-direction: column; gap: 0; padding-top: 12px; }
  .links a { padding: 12px 0; font-size: 18px; border-top: 1px solid var(--line); }
  .nav.open { background: var(--bg); }
  .nav.open .links { display: flex; }
  .nav .btn-line { display: none; }
  .menu-btn { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--bg-3); color: var(--text); font: 500 14px "Satoshi", sans-serif; cursor: pointer; }
  .hero { min-height: 760px; }
  .cascade { width: 150vw; right: -40vw; top: -4vh; height: 70vh; }
  .tile { width: 42vw; }
  .hero-copy { left: 20px; right: 20px; bottom: 40px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-copy .row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-hero { padding: 130px 0 40px; }
  .page-hero h1 { font-size: 46px; }
  section { padding: 72px 0; }
  .svc { grid-template-columns: 1fr; gap: 12px; }
  .info { padding: 28px 22px; }
  .big-shot { height: 46vh; min-height: 320px; }
  .big-shot .frame { width: 88%; }
  .rows div { grid-template-columns: 1fr; gap: 4px; }
  .final { padding: 110px 20px; }
  .foot { grid-template-columns: 1fr; }
  .giant { font-size: 19vw; }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fx .focus .w, .fx .fade { opacity: 1; filter: none; transform: none; }
  .giant .l { color: var(--text); }
  .cursor { display: none; }
}
