/* ============================================================
   pahang.co — About page (views/pages/about.php). Prefix tk-.
   Look: a hand-drawn travel notebook of Pahang — cream paper, navy ink, river blue, gold.
   Motion: SVG lines draw in, pins drop, numbers count up; all off with prefers-reduced-motion.
   ============================================================ */
.tk {
  --ink: #0d2b5e; --ink-2: #334155; --paper: #fbf6ea; --paper-2: #f3ead4; --line: #e7dcc2;
  --river: #2b9fd3; --leaf: #cfe5c4; --leaf-2: #a9d19a; --gold: #f59e0b; --gold-d: #b45309; --sea: #cfe9f6;
  --ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--paper); color: var(--ink-2); overflow: hidden;
}
.tk-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.tk a { color: inherit; }

/* ── hero ── */
.tk-hero { padding: 22px 0 8px; background: radial-gradient(60% 50% at 85% 10%, rgba(245,158,11,.14), transparent 70%); }
.tk-hero-in { display: grid; gap: 18px; }
.tk-crumb { font-size: 12px; color: #8a7f68; margin-bottom: 14px; }
.tk-crumb a { text-decoration: none; }
.tk-crumb span { margin: 0 6px; }
.tk-kicker { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-d); }
.tk h1 { font-family: 'Playfair Display', serif; color: var(--ink); font-size: clamp(34px, 9vw, 60px); line-height: 1.06; letter-spacing: -.5px; margin-top: 10px; }
.tk-mark { position: relative; display: inline-block; color: var(--river); font-style: italic; }
.tk-mark svg { position: absolute; left: 0; right: 0; bottom: -14px; width: 100%; height: 14px; overflow: visible; }
.tk-mark path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tk-draw 1.1s .6s var(--ease) forwards; }
.tk-lead { font-size: 16px; line-height: 1.75; margin-top: 18px; max-width: 540px; }
.tk-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tk-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 14px; text-decoration: none;
  border: 2px solid var(--ink); color: var(--ink); background: transparent; transition: transform .2s var(--ease), box-shadow .2s, background .2s; }
.tk-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--ink); }
.tk-btn:active { transform: translateY(1px); box-shadow: none; }
.tk-btn:focus-visible, .tk-row:focus-visible, .tk-chip:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.tk-btn.is-gold { background: var(--gold); border-color: var(--ink); color: #1f1300; }

/* ── map drawing ── */
.tk-map { margin: 0; filter: drop-shadow(0 18px 30px rgba(13,43,94,.14)); }
.tk-map svg { width: 100%; height: auto; display: block; }
.tk-paper { fill: #fffaf0; stroke: var(--ink); stroke-width: 2.5; }
.tk-map path, .tk-map circle { stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tk-hill { fill: var(--leaf-2); } .tk-hill.back { fill: var(--leaf); }
.tk-tea path { fill: none; stroke: #5f9b52; stroke-width: 2; stroke-dasharray: 4 6; }
.tk-land { fill: #eef3d9; }
.tk-sea { fill: var(--sea); }
.tk-waves path { fill: none; stroke: #4aa7cf; animation: tk-wave 3.2s ease-in-out infinite; }
.tk-waves path:nth-child(2n) { animation-delay: -1.6s; }
.tk-sun circle { fill: #fcd34d; }
.tk-rays path { fill: none; stroke: var(--gold-d); }
.tk-rays { transform-origin: 548px 104px; animation: tk-spin 30s linear infinite; }
.tk-bird { fill: none; animation: tk-bob 4s ease-in-out infinite; }
.tk-bird.b2 { animation-delay: -2s; }
.tk-cloud path { fill: #fff; animation: tk-drift 14s ease-in-out infinite alternate; }
.tk-boat path { fill: #fff; } .tk-boat path + path { fill: var(--gold); }
.tk-boat { transform-box: fill-box; transform-origin: center; animation: tk-rock 3s ease-in-out infinite; }
.tk-river { fill: none; stroke: var(--river) !important; stroke-width: 11 !important; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tk-draw 2.4s .3s var(--ease) forwards; }
.tk-route { fill: none; stroke-width: 2.4 !important; stroke-dasharray: .012 .012; opacity: 0; animation: tk-fade .6s 1.6s forwards; }
.tk-fish path { fill: #fde68a; stroke-width: 1.6; }
.tk-fish { transform-box: fill-box; transform-origin: center; opacity: 0; animation: tk-jump 3.6s 2.6s ease-in-out infinite; }
.tk-pin { opacity: 0; transform: translateY(-26px); animation: tk-drop .7s calc(1.2s + var(--i) * .16s) var(--ease) forwards; }
.tk-pin path { fill: #ef4444; }
.tk-pin:nth-child(even) path { fill: var(--gold); }
.tk-pin-dot { fill: #fff; }
.tk-pin text { font: 700 15px 'DM Sans', sans-serif; fill: var(--ink); paint-order: stroke; stroke: #fffaf0; stroke-width: 5px; }
.tk-compass circle { fill: #fff; } .tk-compass path { fill: var(--ink); }
.tk-compass text { font: 700 12px 'DM Sans', sans-serif; fill: var(--ink); stroke: none; }

/* ── numbers ── */
.tk-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 18px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.tk-num { padding: 18px 8px 16px; border-bottom: 1px dashed #cdbf9f; }
.tk-num:nth-child(odd) { border-right: 1px dashed #cdbf9f; padding-right: 14px; }
.tk-num:nth-child(even) { padding-left: 14px; }
.tk-num:nth-last-child(-n+2) { border-bottom: 0; }
.tk-num b { display: block; font: 900 clamp(32px, 8vw, 46px)/1 'Playfair Display', serif; color: var(--ink); font-feature-settings: 'lnum' 1; }
.tk-num span { display: block; font-size: 13px; margin-top: 6px; line-height: 1.4; }

/* ── story note ── */
.tk-story { padding-top: 46px; padding-bottom: 10px; }
.tk-note { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 6px; padding: 30px 22px 24px;
  box-shadow: 8px 8px 0 var(--paper-2), 8px 8px 0 2px var(--ink); transform: rotate(-.8deg); max-width: 760px; margin: 0 auto; }
.tk-tape { position: absolute; top: -14px; left: 50%; width: 110px; height: 26px; margin-left: -55px; background: rgba(245,158,11,.55); transform: rotate(2deg); }
.tk-note-k { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-d); }
.tk-note-big { font: 700 clamp(21px, 5.4vw, 30px)/1.3 'Playfair Display', serif; color: var(--ink); margin: 10px 0 14px; }
.tk-note p:last-child { font-size: 15px; line-height: 1.8; }

/* ── what's inside ── */
.tk-inside { padding-top: 50px; }
.tk-h2 { font: 900 clamp(26px, 6.4vw, 40px)/1.15 'Playfair Display', serif; color: var(--ink); margin-bottom: 14px; }
.tk-row { display: grid; grid-template-columns: 34px 52px 1fr; gap: 12px; align-items: center; padding: 18px 4px; border-top: 1px solid var(--line); text-decoration: none; position: relative; }
.tk-row:last-of-type { border-bottom: 1px solid var(--line); }
.tk-row-n { font: 700 15px 'Playfair Display', serif; color: var(--gold-d); font-feature-settings: 'lnum' 1; align-self: start; padding-top: 4px; }
.tk-ico { width: 52px; height: 52px; padding: 6px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); transition: transform .3s var(--ease), background .3s; }
.tk-ico path, .tk-ico rect { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tk-row-t b { display: block; font: 700 19px 'Playfair Display', serif; color: var(--ink); }
.tk-row-t span { display: block; font-size: 14px; line-height: 1.6; margin-top: 3px; }
.tk-row-go { display: none; }
.tk-row:hover .tk-ico { transform: rotate(-6deg) scale(1.06); background: #fde68a; }
.tk-row:hover .tk-row-t b { color: var(--river); }

/* ── districts ── */
.tk-dist { margin-top: 56px; padding: 44px 0; background: var(--ink); color: #dbe5f5; position: relative; }
.tk-dist::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 18px; background: var(--paper);
  -webkit-mask: radial-gradient(12px 10px at 12px 0, #000 98%, transparent) 0 0 / 24px 18px repeat-x; mask: radial-gradient(12px 10px at 12px 0, #000 98%, transparent) 0 0 / 24px 18px repeat-x; }
.tk-dist .tk-h2 { color: #fff; }
.tk-sub { font-size: 14px; color: #a9bbdb; margin-top: -4px; }
.tk-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tk-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35);
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.tk-chip b { font-size: 12px; background: var(--gold); color: #1f1300; border-radius: 999px; padding: 4px 9px; font-feature-settings: 'lnum' 1; }
.tk-chip:hover { background: rgba(255,255,255,.1); border-color: var(--gold); transform: translateY(-2px); }

/* ── business steps ── */
.tk-biz { padding-top: 56px; }
.tk-steps { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; position: relative; }
.tk-steps-line { display: none; }
.tk-steps li { background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 20px 18px 18px; position: relative; }
.tk-steps li > span { position: absolute; top: -16px; left: 16px; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink);
  display: grid; place-items: center; font: 900 16px 'Playfair Display', serif; color: var(--ink); }
.tk-steps b { display: block; font: 700 19px 'Playfair Display', serif; color: var(--ink); margin-top: 4px; }
.tk-steps p { font-size: 14px; line-height: 1.6; margin: 6px 0 10px; }
.tk-steps a { font-weight: 700; font-size: 14px; color: var(--river); text-decoration: none; }
.tk-steps a:hover { text-decoration: underline; }

/* ── end ── */
.tk-end { margin-top: 56px; padding: 40px 0 56px; background: var(--paper-2); border-top: 2px solid var(--ink); }
.tk-end-in { display: grid; gap: 16px; align-items: center; }
.tk-end-art { width: 200px; max-width: 60%; }
.tk-end-hill { fill: var(--leaf-2); stroke: var(--ink); stroke-width: 2; }
.tk-end-river { fill: none; stroke: var(--river); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tk-end-pin path { fill: #ef4444; stroke: var(--ink); stroke-width: 2; } .tk-end-pin circle { fill: #fff; }
.tk-end-pin { transform-box: fill-box; transform-origin: bottom; animation: tk-bob 2.6s ease-in-out infinite; }
.tk-end.is-in .tk-end-river { animation: tk-draw 1.6s var(--ease) forwards; }
.tk-end h2 { font: 900 clamp(24px, 6vw, 34px)/1.2 'Playfair Display', serif; color: var(--ink); }
.tk-end p { font-size: 15px; line-height: 1.7; margin-top: 8px; }
.tk-sign { font-family: 'Playfair Display', serif; color: var(--ink); margin-top: 22px !important; }
.tk-sign b { color: var(--gold-d); }

/* ── scroll reveal (only when JS is running; no JS = everything visible) ── */
.tk-js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.tk-js [data-reveal].is-in { opacity: 1; transform: none; }
.tk-js .tk-dist .tk-chip { opacity: 0; transform: scale(.9); transition: opacity .4s var(--ease), transform .4s var(--ease), background .2s, border-color .2s; transition-delay: var(--d, 0ms); }
.tk-js .tk-dist.is-in .tk-chip { opacity: 1; transform: none; }
.tk-steps-line path { fill: none; stroke: var(--gold-d); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.tk-steps.is-in .tk-steps-line path { transition: stroke-dashoffset 1.6s .2s var(--ease); stroke-dashoffset: 0; }

@keyframes tk-draw { to { stroke-dashoffset: 0; } }
@keyframes tk-fade { to { opacity: 1; } }
@keyframes tk-drop { 0% { opacity: 0; transform: translateY(-26px); } 70% { opacity: 1; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
@keyframes tk-wave { 50% { transform: translateX(-8px); } }
@keyframes tk-spin { to { transform: rotate(360deg); } }
@keyframes tk-bob { 50% { transform: translateY(-6px); } }
@keyframes tk-drift { to { transform: translateX(40px); } }
@keyframes tk-rock { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(2px); } }
@keyframes tk-jump { 0%, 60%, 100% { opacity: 0; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; transform: translate(8px, -22px) rotate(-30deg); } 85% { opacity: 1; transform: translate(18px, -4px) rotate(30deg); } }

/* ── larger screens ── */
@media (min-width: 760px) {
  .tk-hero { padding: 36px 0 18px; }
  .tk-nums { grid-template-columns: repeat(4, 1fr); }
  .tk-num { border-bottom: 0; padding: 22px 18px !important; border-right: 1px dashed #cdbf9f; }
  .tk-num:last-child { border-right: 0; }
  .tk-note { padding: 40px 44px 34px; }
  .tk-row { grid-template-columns: 50px 64px 1fr 40px; gap: 22px; padding: 22px 8px; }
  .tk-ico { width: 64px; height: 64px; }
  .tk-row-go { display: block; font-size: 24px; color: var(--ink); transition: transform .3s var(--ease); }
  .tk-row:hover .tk-row-go { transform: translateX(6px); }
  .tk-steps { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 34px; }
  .tk-steps-line { display: block; position: absolute; left: 4%; top: 50%; width: 92%; height: 30px; margin-top: -15px; z-index: 0; }
  .tk-steps li { z-index: 1; }
  .tk-end-in { grid-template-columns: 240px 1fr; gap: 36px; }
  .tk-end-art { width: 240px; max-width: none; }
}
@media (min-width: 960px) {
  .tk-hero-in { grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
  .tk-row-t span { max-width: 640px; }
}

@media (prefers-reduced-motion: reduce) {
  .tk *, .tk *::before { animation: none !important; transition: none !important; }
  .tk-river, .tk-mark path, .tk-end-river, .tk-steps-line path { stroke-dashoffset: 0 !important; }
  .tk-pin, .tk-route { opacity: 1 !important; transform: none !important; }
  .tk-js [data-reveal], .tk-js .tk-dist .tk-chip { opacity: 1 !important; transform: none !important; }
}
