/* trukhan.dev v2 — a sibling of the product sites (monthbee.com, maybejar.com, readglot.com, monli.app, caretail.app):
   Onest, aurora + glass, pill buttons, large tight headings. Neutral slate/ink palette of its own. Light and dark follow the system. */

@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(fonts/onest-regular.woff2) format("woff2"); }
@font-face { font-family: Onest; font-weight: 500; font-display: swap; src: url(fonts/onest-medium.woff2) format("woff2"); }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(fonts/onest-semibold.woff2) format("woff2"); }
@font-face { font-family: Onest; font-weight: 700; font-display: swap; src: url(fonts/onest-bold.woff2) format("woff2"); }
/* Metric-matched fallback (Arial scaled to Onest), same as the product sites. */
@font-face { font-family: "Onest Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 105.4%; ascent-override: 92%; descent-override: 29%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #121822;
  --text-2: rgba(18, 24, 34, 0.7);
  --text-3: rgba(18, 24, 34, 0.54);
  --accent: #2e4a6e;
  --accent-bright: #4a6d9c;
  --accent-soft: rgba(46, 74, 110, 0.12);
  --pill: #121822;
  --on-pill: #ffffff;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.95);
  --line: rgba(18, 24, 34, 0.1);
  --shadow: 0 10px 30px rgba(30, 44, 70, 0.1);
  --lift: 0 30px 60px rgba(30, 44, 70, 0.18), 0 2px 6px rgba(30, 44, 70, 0.08);
  --aurora-1: rgba(150, 176, 218, 0.5);
  --aurora-2: rgba(226, 208, 176, 0.42);
  --aurora-3: rgba(176, 204, 200, 0.46);
  --grad: linear-gradient(100deg, #2e4a6e 0%, #5a7fae 55%, #8c7650 100%);
  --art-filter: none;
  --ease-out: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b0e13;
    --surface: #161b23;
    --text: #f2f4f8;
    --text-2: rgba(242, 244, 248, 0.72);
    --text-3: rgba(242, 244, 248, 0.52);
    --accent: #a9c1e6;
    --accent-bright: #c6d7f0;
    --accent-soft: rgba(169, 193, 230, 0.16);
    --pill: #f2f4f8;
    --on-pill: #0b0e13;
    --glass: rgba(170, 190, 225, 0.07);
    --glass-strong: rgba(170, 190, 225, 0.13);
    --glass-border: rgba(190, 210, 240, 0.14);
    --line: rgba(200, 215, 240, 0.13);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --lift: 0 30px 60px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5);
    --aurora-1: rgba(52, 84, 140, 0.45);
    --aurora-2: rgba(120, 98, 60, 0.22);
    --aurora-3: rgba(36, 84, 88, 0.34);
    --grad: linear-gradient(100deg, #a9c1e6 0%, #e1e9f6 55%, #d8c39a 100%);
    --art-filter: brightness(0.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 17px/1.55 Onest, "Onest Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; overflow-x: clip; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }

.skip { position: fixed; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--pill); color: var(--on-pill); text-decoration: none; }
.skip:not(:focus) { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; }

/* ── Ambient ──────────────────────────────────────────────────────────── */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { left: -25vmax; top: -32vmax; background: radial-gradient(closest-side, var(--aurora-1), transparent); animation: drift-a 46s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { right: -32vmax; top: 8vh; background: radial-gradient(closest-side, var(--aurora-2), transparent); animation: drift-b 58s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { left: 10vw; bottom: -48vmax; background: radial-gradient(closest-side, var(--aurora-3), transparent); animation: drift-c 52s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(18vw, 20vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-20vw, 18vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(14vw, -24vh) scale(1.2); } }

/* ── Header ───────────────────────────────────────────────────────────── */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top)); transition: background-color 0.4s, box-shadow 0.4s; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
.nav a:hover { color: var(--text); background: var(--glass); }
.top > .btn-small { margin-left: 8px; }
@media (max-width: 760px) { .nav { display: none; } .top > .btn-small { margin-left: auto; } }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; background: var(--pill); color: var(--on-pill); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; text-decoration: none; box-shadow: var(--shadow); transition: transform 0.35s var(--ease-spring), box-shadow 0.3s, background-color 0.3s; }
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow), 0 0 0 6px var(--accent-soft); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--glass-border); box-shadow: none; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-ghost:hover { background: var(--glass-strong); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.chip:hover { color: var(--text); border-color: var(--accent-bright); background: var(--glass); }

/* ── Section bits ─────────────────────────────────────────────────────── */
.landing > section { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter) 0; }
.section-head { max-width: 700px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
h2 { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.045em; }
.sub { margin-top: 18px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-2); }
.glass { background: var(--glass); border: 1px solid var(--glass-border); backdrop-filter: blur(24px) saturate(1.3); -webkit-backdrop-filter: blur(24px) saturate(1.3); box-shadow: var(--shadow); }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.landing > .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: end; gap: clamp(32px, 5vw, 72px); padding-top: clamp(48px, 9vw, 120px); }
.hero h1 { font-size: clamp(40px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.055em; }
.hero h1 span { display: block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.hero .lead { max-width: 600px; margin-top: 28px; font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--text-2); }
.hero .actions { margin-top: 36px; }
.hero-copy > .reveal:nth-child(2) { --d: 0.08s; } .hero-copy > .reveal:nth-child(3) { --d: 0.16s; }
.hero > .profile { --d: 0.24s; }
.profile { padding: 26px 28px; border-radius: 28px; }
.profile-name { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.facts { margin: 14px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--text-2); }
.facts li { position: relative; padding: 9px 0 9px 18px; border-top: 1px solid var(--line); }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 10px var(--accent-bright); position: absolute; left: 0; top: calc(9px + 0.78em - 3px); }
.facts a, .profile a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* ── Experience ───────────────────────────────────────────────────────── */
.landing > .experience { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.experience-head { position: sticky; top: 110px; }
.career { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(8px, 2vw, 16px) clamp(22px, 3.4vw, 40px) clamp(22px, 3.4vw, 36px); border-radius: 36px; }
.career article { width: 100%; padding: 24px 0; border-bottom: 1px solid var(--line); }
.career .btn { margin-top: 26px; }
.role { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 20px; }
.role h3 { font-size: clamp(20px, 2vw, 23px); line-height: 1.2; letter-spacing: -0.03em; }
.role span { font-size: 14px; font-weight: 500; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.company { margin: 4px 0 10px; font-weight: 600; color: var(--accent); }
.career p:last-child { color: var(--text-2); font-size: 16px; }

/* ── Leadership ───────────────────────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 34px); border-radius: 32px; }
.service h3 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -0.035em; line-height: 1.15; }
.service p { color: var(--text-2); font-size: 16px; }
.service .detail { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--accent); }
.service-grid > .reveal:nth-child(2) { --d: 0.08s; } .service-grid > .reveal:nth-child(3) { --d: 0.16s; }

/* ── Products ─────────────────────────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.project { grid-column: span 2; display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 32px; transition: transform 0.45s var(--ease-spring), box-shadow 0.4s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--lift); }
.project-featured { grid-column: span 3; }
.artwork { width: 100%; aspect-ratio: 548 / 300; object-fit: cover; border-radius: 24px; filter: var(--art-filter); }
.project-info { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px 14px; }
.project-name { display: flex; align-items: center; gap: 14px; }
.project-name img { width: 44px; height: 44px; border-radius: 22.5%; box-shadow: 0 6px 14px rgba(30, 44, 70, 0.2); }
.project-name h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.035em; }
.category { font-size: 14px; font-weight: 500; color: var(--text-3); }
.project-description { color: var(--text-2); font-size: 16px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.project-grid > .reveal:nth-child(even) { --d: 0.08s; }

/* ── Contact ──────────────────────────────────────────────────────────── */
.contact-in { padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 64px); border-radius: 40px; text-align: center; }
.contact-in .sub { max-width: 560px; margin-inline: auto; }
.contact-in .actions { justify-content: center; margin-top: 32px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.foot { margin-top: clamp(80px, 12vw, 150px); border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) max(36px, env(safe-area-inset-bottom)); }
.foot-business { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }
.foot nav a { color: var(--text-2); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot-copy { flex-basis: 100%; font-size: 13px; color: var(--text-3); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .landing > .hero { grid-template-columns: 1fr; align-items: start; }
  .profile { max-width: 520px; }
  .landing > .experience { grid-template-columns: 1fr; }
  .experience-head { position: static; }
  .service-grid { grid-template-columns: 1fr; }
  .project, .project-featured { grid-column: span 3; }
}
@media (max-width: 640px) {
  .project-grid { grid-template-columns: 1fr; }
  .project, .project-featured { grid-column: auto; }
  .hero .actions .btn, .contact-in .actions .btn { flex: 1 1 auto; }
  .career { border-radius: 28px; }
  .project-links .btn { flex-basis: 100%; }
  .project-links .chip { flex: 1 1 0; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .project:hover, .btn:hover { transform: none; }
}

/* Get in touch: choose email or LinkedIn */
.menu { position: relative; z-index: 20; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::after { content: ""; position: static; width: 8px; height: 8px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.25s var(--ease-spring); }
.menu[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.menu-pop { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; padding: 8px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 96%, transparent); display: grid; gap: 2px; animation: menu-in 0.22s var(--ease-spring); }
.menu-pop a { display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; color: var(--text); text-decoration: none; font-weight: 600; }
.menu-pop a small { color: var(--text-2); font-weight: 400; font-size: 14px; }
.menu-pop a:hover, .menu-pop a:focus-visible { background: var(--glass); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .menu-pop { animation: none; } }
