/* ==========================================================
   Kaung Htet San — portfolio
   All fonts are self-hosted from /font. No CDN.
   Colours come from the original kaunghtetsan.online palette.
   ========================================================== */

@font-face { font-family: 'Oswald'; src: url('../font/Oswald/Oswald-VariableFont_wght.ttf') format('truetype'); font-weight: 200 700; font-display: swap; }
@font-face { font-family: 'Jakarta'; src: url('../font/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Caveat'; src: url('../font/Caveat/Caveat-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --c-red: #ff0000;
  --c-red-dim: #cc0000;
  --c-red-deep: #b30000;
  --c-red-soft: #fff1f1;
  --c-red-line: #f3c9c9;
  --c-ink: #101010;
  --c-ink-2: #1c1c1c;
  --c-white: #ffffff;
  --c-soft: #f7f7f6;
  --c-line: #e9e9e9;
  --c-text: #333333;
  --c-muted: #555555;
  --c-ok: #1fb25a;

  --f-display: 'Oswald', 'Arial Narrow', sans-serif;
  --f-body: 'Jakarta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-script: 'Caveat', 'Comic Sans MS', cursive;
  --f-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: 40px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --pill: 999px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--c-white); color: var(--c-ink); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.on-red :focus-visible, .hero :focus-visible, .contact :focus-visible, .site-footer :focus-visible { outline-color: var(--c-white); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: var(--pill); background: var(--c-ink); color: var(--c-white); text-decoration: none; font-weight: 700; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- type helpers ---------- */
.disp { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.95; margin: 0; }
.h-xl { font-size: clamp(56px, 8.4vw, 120px); line-height: 0.92; }
.h-lg { font-size: clamp(46px, 6.6vw, 96px); }
.red { color: var(--c-red); }
.mono { font-family: var(--f-mono); }
.script { font-family: var(--f-script); font-weight: 700; }
.lead { font-size: 18px; line-height: 1.6; color: var(--c-text); max-width: 560px; margin: 0; }
.sticker { display: inline-block; padding: 4px 16px 6px; background: var(--c-ink); color: var(--c-white); font-family: var(--f-script); font-weight: 700; font-size: 30px; line-height: 1.1; transform: rotate(-3deg); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 16px; }
.sec-head .lead { max-width: 420px; font-size: 17px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: var(--pill); border: 0; text-decoration: none; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease); white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-white { background: var(--c-white); color: var(--c-ink); }
.btn-ink { background: var(--c-ink); color: var(--c-white); }
.btn-red { background: var(--c-red-dim); color: var(--c-white); }
.btn-red:hover { background: var(--c-ink); }
.btn-ghost { background: transparent; color: var(--c-white); border: 1.5px solid rgba(255,255,255,.7); font-weight: 600; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.link-red { color: var(--c-red-dim); font-weight: 700; font-size: 14px; text-decoration: none; }
.link-red:hover { text-decoration: underline; }
.tag { display: inline-block; padding: 5px 10px; border-radius: var(--pill); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; line-height: 1.3; }
.tag-red { background: var(--c-red); color: var(--c-white); }
.tag-line { border: 1px solid #555; color: var(--c-white); }
.chip { display: inline-block; padding: 7px 12px; border-radius: var(--pill); background: var(--c-white); border: 1px solid var(--c-line); font-family: var(--f-mono); font-size: 12px; }

/* ==========================================================
   HEADER / NAV
   ========================================================== */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
.site-header.is-scrolled { background: rgba(255, 0, 0, .96); box-shadow: 0 8px 30px rgba(120, 0, 0, .25); }
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 92px; color: var(--c-white); }
.logo { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; text-decoration: none; line-height: 1; font-size: 20px; letter-spacing: .02em; }
.logo span { display: block; font-size: 28px; line-height: .95; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--pill); background: rgba(16,16,16,.18); list-style: none; margin: 0; }
.nav-links a { display: flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: var(--pill); color: var(--c-white); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color .2s var(--ease), color .2s var(--ease); }
.nav-links a:hover { background: rgba(255,255,255,.16); }
.nav-links a.is-active { background: var(--c-white); color: var(--c-ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.talk { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 6px; border-radius: var(--pill); background: var(--c-white); color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.talk-avatar { position: relative; width: 38px; height: 38px; border-radius: 50%; background: var(--c-red-soft); overflow: visible; flex-shrink: 0; }
.talk-avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; }
.talk-avatar::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--c-ok); border: 2px solid var(--c-white); }
.menu-btn { display: none; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--c-white); color: var(--c-ink); align-items: center; justify-content: center; cursor: pointer; }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 60; background: var(--c-ink); color: var(--c-white); padding: 24px 16px; display: flex; flex-direction: column; gap: 32px; transform: translateY(-100%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.drawer li a { display: block; padding: 14px 0; border-bottom: 1px solid #2a2a2a; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 44px; line-height: 1; text-decoration: none; }
.drawer li a:hover { color: var(--c-red); }
.drawer .btn { align-self: stretch; }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; margin-top: -92px; padding-top: 92px; color: var(--c-white); overflow: hidden;
  background-color: var(--c-red);
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(180deg, var(--c-red) 0%, var(--c-red-dim) 100%);
  background-size: 80px 80px, 80px 80px, 100% 100%; }
.hero-grid { display: flex; gap: 40px; align-items: flex-end; padding-top: 40px; }
.hero-copy { flex: 1 1 640px; min-width: 0; padding-bottom: 90px; display: flex; flex-direction: column; gap: 28px; }
.underline { width: min(520px, 80%); height: auto; margin-top: -22px; }
.hero-copy p { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-art { flex: 0 0 440px; position: relative; height: 560px; }
.code-block { position: absolute; right: 0; bottom: 0; width: 360px; height: 420px; background: var(--c-red-deep); display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-weight: 700; font-size: 170px; letter-spacing: -.06em; color: #ff2a2a; user-select: none; }
.hero-photo { position: absolute; right: 50px; bottom: 0; height: 480px; width: auto; filter: drop-shadow(0 20px 40px rgba(80,0,0,.35)); }
.hero-note { position: absolute; left: 0; top: 40px; width: 240px; font-family: var(--f-script); font-weight: 700; font-size: 32px; line-height: 1.05; transform: rotate(-6deg); }
.hero-arrow { position: absolute; left: 150px; top: 120px; width: 110px; height: 110px; }

/* trust strip */
.strip { border-bottom: 1px solid var(--c-line); }
.strip .wrap { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.strip .label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--c-muted); }
.strip .name { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 22px; color: var(--c-text); }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding-top: 120px; padding-bottom: 120px; }
.section-tight { padding-top: 0; }

/* IS THIS YOU */
.problem { max-width: 1080px; }
.notepad { margin-top: 18px; background: var(--c-red-soft); border-radius: var(--radius-md); overflow: hidden; box-shadow: 0 20px 50px rgba(204,0,0,.12); transform: rotate(-.6deg); }
.notepad-top { height: 34px; background: var(--c-red); }
.notepad ul { position: relative; list-style: none; margin: 0; padding: 10px 40px 24px 96px; background-image: linear-gradient(transparent 63px, var(--c-red-line) 63px, var(--c-red-line) 64px); background-size: 100% 64px; }
.notepad ul::before { content: ''; position: absolute; left: 72px; top: 0; bottom: 0; width: 2px; background: #ff7070; }
.notepad li { position: relative; min-height: 64px; display: flex; align-items: center; font-size: 18px; }
.notepad li svg { position: absolute; left: -62px; }
.good-news { margin-top: 72px; }

/* WORK RAIL */
.work { background: var(--c-ink); color: var(--c-white); padding: 110px 0 120px; }
.work .sec-head { margin-top: 0; }
.drag-hint { display: flex; align-items: center; gap: 20px; }
.drag-hint .script { font-size: 30px; transform: rotate(-4deg); }
.rail { margin-top: 56px; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 24px; cursor: grab; scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging a { pointer-events: none; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 8px; }
.card { flex: 0 0 420px; scroll-snap-align: start; background: var(--c-ink-2); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--c-white); transition: transform .25s var(--ease); }
.card:hover { transform: translateY(-4px); }
.card-title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.card-sub { font-size: 15px; color: #c9c9c9; }
.card-cta { margin-top: auto; font-weight: 700; font-size: 14px; }
.card .tag { align-self: flex-start; }

/* mini app screens (shared by rail + projects page) */
.shot { border-radius: 16px; padding: 20px 20px 0; height: 240px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px 10px 0 0; }
.shot-team { background: #6e1f2a; }
.shot-pos { background: #2a2a2a; }
.shot-sales { background: #1a1a1f; }
.shot-img { background: #2a2a2a; }
.mini { height: 100%; border-radius: 10px 10px 0 0; padding: 14px; font-size: 12px; display: flex; flex-direction: column; gap: 8px; }
.mini-team { background: #fbf7f2; color: #2a1a1c; }
.mini-team .row { background: #fff; border: 1px solid #eadfd8; border-radius: 8px; padding: 9px 10px; display: flex; justify-content: space-between; gap: 8px; }
.mini-team .late { color: #8a1f2b; font-weight: 700; }
.mini-pos { background: #303030; color: #f2f2f2; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; font-size: 11px; padding: 12px; }
.mini-pos span { background: #3c3c3c; border-radius: 8px; padding: 8px; display: flex; align-items: flex-end; }
.mini-pos .sel { outline: 2px solid #f2f2f2; }
.mini-pos .pay { background: #f2f2f2; color: #262626; font-weight: 700; }
.mini-sales { background: #121214; color: #ededf0; }
.mini-sales .kpis { display: flex; gap: 8px; }
.mini-sales .kpi { flex: 1; background: #1c1c21; border-radius: 8px; padding: 8px; }
.mini-sales .kpi small { display: block; font-size: 10px; color: #9a9aa5; }
.mini-sales .kpi b { font-family: var(--f-display); font-size: 20px; font-weight: 600; }
.mini-sales .bars { flex: 1; background: #1c1c21; border-radius: 8px; padding: 10px; display: flex; align-items: flex-end; gap: 6px; }
.mini-sales .bars i { flex: 1; background: #3a3a44; border-radius: 3px 3px 0 0; }
.mini-sales .bars i:last-child { background: var(--c-red); }

/* SERVICES */
.services-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.svc { background: var(--c-soft); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.svc-art { height: 200px; border-radius: 16px; overflow: hidden; position: relative; }
.svc-body { padding: 4px 8px 10px; }
.svc-body h3 { margin: 0; font-size: 22px; }
.svc-body p { margin: 6px 0 12px; font-size: 15px; line-height: 1.55; color: #444; }
.art-check { background: var(--c-red); padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.art-check span { padding: 8px 14px; border-radius: var(--pill); background: rgba(255,255,255,.22); color: var(--c-white); font-size: 13px; font-weight: 600; }
.art-check span:nth-child(even) { align-self: flex-end; }
.art-check span.ok { background: var(--c-white); color: var(--c-ink); }
.art-site { background: var(--c-ink); padding: 22px 22px 0; }
.art-site .win { background: #fff; border-radius: 10px 10px 0 0; height: 100%; overflow: hidden; }
.art-site .bar { display: flex; gap: 5px; padding: 9px 10px; background: var(--c-line); }
.art-site .bar i { width: 8px; height: 8px; border-radius: 50%; background: #bbb; }
.art-site .body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.art-site .body i { display: block; height: 8px; border-radius: 3px; background: var(--c-line); }
.art-site .body i.t { height: 12px; width: 60%; background: var(--c-ink); }
.art-site .body i.b { height: 26px; width: 110px; border-radius: var(--pill); background: var(--c-red); margin-top: 6px; }
.art-chart { background: var(--c-red-soft); padding: 22px; display: flex; align-items: flex-end; gap: 10px; }
.art-chart i { flex: 1; background: var(--c-red-line); border-radius: 6px 6px 0 0; }
.art-chart i:last-child { background: var(--c-red); }
.art-receipt { background: var(--c-line); display: flex; align-items: center; justify-content: center; }
.receipt { width: 170px; background: #fff; padding: 14px; font-family: var(--f-mono); font-size: 10px; line-height: 1.7; transform: rotate(3deg); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.receipt .c { text-align: center; font-weight: 700; }
.receipt .r { display: flex; justify-content: space-between; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 6px 0; }
.art-cal { background: #fff; border: 1px solid var(--c-line); padding: 18px; }
.art-cal .cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; font-size: 11px; text-align: center; }
.art-cal .cal b { color: var(--c-muted); font-weight: 400; }
.art-cal .cal .on { background: var(--c-red-dim); color: #fff; border-radius: 6px; }
.art-cal .sticker { position: absolute; right: 16px; bottom: 10px; font-size: 22px; transform: rotate(-4deg); }
.art-pwa { background: var(--c-ink); display: flex; align-items: center; justify-content: center; gap: 18px; color: #fff; }
.art-pwa .phone { width: 96px; height: 170px; border-radius: 18px; border: 2px solid #555; padding: 16px 10px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; align-content: start; }
.art-pwa .phone i { height: 30px; border-radius: 8px; background: #333; }
.art-pwa .phone i.on { background: var(--c-red); }
.art-pwa .script { font-size: 24px; line-height: 1; transform: rotate(-5deg); }

/* RESUME */
.resume-grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 32px; align-items: start; }
.panel-soft { background: var(--c-soft); border-radius: var(--radius-lg); padding: 40px 40px 40px 48px; }
.panel-label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--c-muted); margin-bottom: 28px; }
.timeline { list-style: none; margin: 0 0 0 8px; padding: 0; border-left: 2px solid var(--c-red); }
.timeline li { position: relative; padding: 0 0 44px 44px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -10px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--c-red); }
.timeline .when { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--c-red-dim); }
.timeline h3 { margin: 6px 0 0; font-size: 24px; letter-spacing: -.02em; }
.timeline .where { margin-top: 2px; font-size: 15px; font-weight: 600; color: var(--c-text); }
.timeline p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: #444; max-width: 520px; }
.skills { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.skills .panel-label { margin-bottom: 0; }
.skills .sticker { position: absolute; right: 28px; top: 22px; font-size: 22px; padding: 2px 12px 4px; transform: rotate(4deg); }
.skill-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.skill-top span:last-child { font-family: var(--f-mono); font-size: 13px; }
.meter { margin-top: 8px; height: 10px; border-radius: var(--pill); background: var(--c-red-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: var(--pill); background: var(--c-red); width: 0; transition: width 1.2s var(--ease); }
.is-visible .meter i { width: var(--w); }
.also { margin-top: 20px; background: var(--c-red); color: #fff; border-radius: var(--radius-lg); padding: 30px 36px; display: flex; flex-direction: column; gap: 14px; }
.also .panel-label { color: #fff; margin: 0; }
.also .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.also .chip { border: 0; color: var(--c-ink); }

.ai { margin-top: 20px; background: var(--c-ink); color: #fff; border-radius: var(--radius-lg); padding: 30px 36px; display: flex; flex-direction: column; gap: 14px; }
.ai-head { display: flex; align-items: center; gap: 12px; }
.ai-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--c-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai .panel-label { color: #fff; margin: 0; }
.ai p { margin: 0; font-size: 15px; line-height: 1.6; color: #d6d6d6; }
.ai .chip { background: #2a2a2a; border-color: #3a3a3a; color: #fff; }

/* ABOUT */
.about { background: var(--c-soft); }
.about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 60px; align-items: end; padding-top: 120px; }
.about-art { position: relative; height: 520px; }
.about-art .block { position: absolute; left: 0; right: 40px; bottom: 0; height: 380px; background: var(--c-red); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.about-art img { position: absolute; left: 50%; transform: translateX(-58%); bottom: 0; height: 480px; width: auto; }
.about-art .note { position: absolute; right: 0; top: 40px; width: 170px; font-family: var(--f-script); font-weight: 700; font-size: 28px; line-height: 1.05; transform: rotate(5deg); }
.about-copy { padding-bottom: 120px; display: flex; flex-direction: column; gap: 22px; }
.about-copy p { margin: 0; font-size: 18px; line-height: 1.7; color: var(--c-text); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* CONTACT */
.contact { background: var(--c-red); color: #fff; padding: 110px 0 30px; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 48px; align-items: start; }
.contact-intro { display: flex; flex-direction: column; gap: 22px; }
.contact-intro .sticker { align-self: flex-start; }
.contact-intro p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 440px; }
.ways { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.way { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius-md); background: rgba(16,16,16,.14); color: #fff; text-decoration: none; transition: background-color .2s var(--ease); }
a.way:hover { background: rgba(16,16,16,.28); }
.way-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--c-red-dim); display: flex; align-items: center; justify-content: center; }
.way small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; }
.way strong { display: block; font-size: 17px; word-break: break-word; }
.form-card { position: relative; background: #fff; color: var(--c-ink); border-radius: 32px; padding: 40px; box-shadow: 0 30px 60px rgba(100,0,0,.28); }
.form-card > .sticker { position: absolute; right: 28px; top: -22px; font-size: 24px; padding: 2px 14px 4px; transform: rotate(4deg); }
.form-card h3 { margin: 0 0 18px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 0 18px; border-radius: 14px; border: 1.5px solid var(--c-line); background: var(--c-soft); font-size: 16px; color: var(--c-ink); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.field textarea { padding: 14px 18px; min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-ink); background: #fff; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form .btn { align-self: flex-start; min-height: 58px; padding: 0 32px; }
.form .btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.form-status { min-height: 24px; margin: 0; font-size: 15px; font-weight: 600; }
.form-status.ok { color: #137a3c; }
.form-status.err { color: var(--c-red-dim); }

/* FOOTER */
.site-footer { background: var(--c-red); color: #fff; padding: 40px 24px 24px; }
.footer-card { max-width: 1340px; margin: 0 auto; background: #fff; color: var(--c-ink); border-radius: var(--radius-lg); padding: 48px; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.6fr); gap: 40px; }
.footer-logo { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 38px; line-height: 1; color: var(--c-red); }
.footer-logo span { display: block; font-size: 54px; line-height: .95; }
.footer-card p { margin: 16px 0 0; font-size: 15px; line-height: 1.6; color: #444; max-width: 300px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; font-size: 15px; line-height: 2; }
.footer-cols h4 { margin: 0 0 6px; font-family: var(--f-mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; color: var(--c-muted); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--c-red-dim); text-decoration: underline; }
.footer-cols .social { display: inline-flex; align-items: center; gap: 10px; padding: 3px 0; }
.social-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--c-red-soft); color: var(--c-red-dim); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background-color .2s var(--ease), color .2s var(--ease); }
.footer-cols .social:hover { text-decoration: none; }
.footer-cols .social:hover .social-icon { background: var(--c-red); color: #fff; }
.copyright { padding-top: 24px; text-align: center; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; }

/* ==========================================================
   PROJECTS PAGE
   ========================================================== */
.page-hero { padding-bottom: 90px; }
.page-hero .wrap { padding-top: 60px; }
.page-hero p { margin: 24px 0 0; max-width: 560px; font-size: 19px; line-height: 1.6; }
.filters { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: var(--pill); background: var(--c-soft); }
.filters button { min-height: 46px; padding: 0 22px; border-radius: var(--pill); border: 0; background: transparent; color: var(--c-ink); font-size: 15px; font-weight: 600; cursor: pointer; }
.filters button span { color: var(--c-muted); margin-left: 4px; }
.filters button[aria-pressed="true"] { background: var(--c-ink); color: #fff; }
.filters button[aria-pressed="true"] span { color: #bbb; }
.proj-grid { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.proj { background: var(--c-soft); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .25s var(--ease); }
.proj:hover { transform: translateY(-4px); }
.proj[hidden] { display: none; }
.proj .shot { height: 220px; padding: 18px 18px 0; }
.proj .shot-img { background: var(--c-line); }
.proj-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 6px; }
.proj-meta .mono { font-size: 11px; letter-spacing: .08em; color: var(--c-muted); }
.proj h2 { margin: 0; padding: 0 6px; font-size: 24px; letter-spacing: -.02em; }
.proj p { margin: 0; padding: 0 6px; font-size: 15px; line-height: 1.55; color: #444; }
.proj .link-red { margin: auto 6px 6px; }
.page-cta { background: var(--c-red); color: #fff; padding: 80px 0 30px; }
.page-cta .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .meter i { width: var(--w); }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .nav-links a { padding: 0 12px; font-size: 14px; }
  .services-grid, .proj-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  :root { --gutter: 16px; }
  .nav-links, .talk-text { display: none; }
  .talk { padding: 0 6px; }
  .menu-btn { display: flex; }
  .nav { min-height: 76px; }
  .hero { margin-top: -76px; padding-top: 76px; }
  .hero-grid, .sec-head, .contact-grid, .resume-grid, .about-grid, .footer-card { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { padding-bottom: 0; }
  .hero-copy p { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-art { flex: none; width: 100%; height: 400px; }
  .code-block { width: 250px; height: 290px; font-size: 110px; right: 0; }
  .hero-photo { height: 360px; right: 30px; }
  .hero-note { font-size: 24px; width: 140px; top: 10px; }
  .hero-arrow { left: 70px; top: 80px; width: 80px; height: 80px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .notepad ul { padding: 4px 16px 12px 56px; background-size: 100% 64px; }
  .notepad ul::before { left: 42px; }
  .notepad li { font-size: 15px; }
  .notepad li svg { left: -48px; width: 22px; height: 22px; }
  .card { flex-basis: 300px; }
  .shot { height: 190px; padding: 14px 14px 0; }
  .services-grid, .proj-grid, .form-row, .footer-cols { grid-template-columns: minmax(0,1fr); }
  .panel-soft { padding: 28px 22px 28px 26px; }
  .skills { padding: 28px 22px; }
  .about-grid { padding-top: 72px; gap: 32px; }
  .about-art { height: 400px; }
  .about-art img { height: 380px; }
  .about-art .block { height: 300px; }
  .about-copy { padding-bottom: 72px; }
  .contact { padding-top: 72px; }
  .form-card { padding: 28px 20px; }
  .form .btn { align-self: stretch; }
  .footer-card { padding: 28px 22px; gap: 28px; }
  .strip .wrap { gap: 14px 24px; justify-content: flex-start; }
  .strip .label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .meter i { width: var(--w); }
}
