/* makeit.jst4.fun — cảm hứng từ web Hồng Xiêm (khối màu lớn, chữ đậm như áp phích),
   cá nhân hoá cho Thành: chất "kỹ sư" (mono, luồng tự động, bảng điều khiển) + chuyển động. */
:root {
  --ink: #17140f;
  --paper: #fbf6ec;
  --cream: #f3ead7;
  --orange: #e8501e;
  --sun: #f7c531;
  --pink: #f4a6c0;
  --cobalt: #3d5bd9;
  --sky: #8fb5ff;
  --green: #1f7a4c;
  --purple: #7b3fe4;
  --line: rgba(23, 20, 15, .14);
  --display: "Montserrat", "Be Vietnam Pro", system-ui, sans-serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(18px, 4vw, 56px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.fill { background: #fff1a8; color: #6b5300; border-radius: 4px; padding: 0 5px; font-weight: 600; font-style: normal; }

/* Chuột riêng (chỉ máy có chuột) */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 8px; height: 8px; background: var(--orange); }
.cursor__ring { width: 38px; height: 38px; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s; mix-blend-mode: difference; border-color: #fff; }
.cursor__label { font: 700 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; }
.cursor.is-view .cursor__ring { width: 96px; height: 96px; background: var(--sun); border-color: var(--sun); mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* Màn mở đầu */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--ink); display: grid; place-items: center; transition: transform 1s var(--ease) .15s; }
.loader__word { display: flex; font: 900 clamp(48px, 12vw, 180px)/1 var(--display); color: var(--paper); overflow: hidden; }
.loader__word span { display: inline-block; transform: translateY(110%); animation: up .7s var(--ease) forwards; }
.loader__word span:nth-child(2) { animation-delay: .05s } .loader__word span:nth-child(3) { animation-delay: .1s } .loader__word span:nth-child(4) { animation-delay: .15s }
.loader__word span:nth-child(6) { animation-delay: .25s; color: var(--sun) } .loader__word span:nth-child(7) { animation-delay: .3s; color: var(--sun) }
@keyframes up { to { transform: none; } }
body.loaded .loader { transform: translateY(-101%); }

.progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--orange), var(--sun), var(--pink), var(--cobalt)); z-index: 80; }

/* Thanh trên */
.top { position: fixed; inset: 0 0 auto 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); transition: background .3s, box-shadow .3s, transform .4s var(--ease); }
.top.is-solid { background: rgba(251, 246, 236, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top.is-hidden { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; }
.brand__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--ink); color: var(--sun); display: grid; place-items: center; font: 900 15px var(--display); transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }
.brand__text { font-family: var(--mono); font-size: 15px; }
.menu { display: flex; gap: 6px; }
.menu a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; position: relative; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .4s var(--ease); }
.menu a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.top__right { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: var(--ink); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: transparent; color: var(--paper); font-weight: 700; font-size: 13px; min-width: 44px; height: 34px; border-radius: 999px; transition: background .3s, color .3s; }
.lang button.on { background: var(--sun); color: var(--ink); }
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper); transition: transform .35s var(--ease); }
.burger span:first-child { top: 17px } .burger span:last-child { top: 25px }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 55; background: var(--orange); padding: 96px var(--pad) 40px; display: flex; flex-direction: column; gap: 6px; }
.drawer[hidden] { display: none; }
.drawer a { font: 900 clamp(34px, 9vw, 56px)/1.15 var(--display); color: var(--paper); text-decoration: none; text-transform: uppercase; opacity: 0; transform: translateY(20px); animation: up2 .5s var(--ease) forwards; }
.drawer a:nth-child(2) { animation-delay: .05s } .drawer a:nth-child(3) { animation-delay: .1s } .drawer a:nth-child(4) { animation-delay: .15s } .drawer a:nth-child(5) { animation-delay: .2s; color: var(--sun) }
@keyframes up2 { to { opacity: 1; transform: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: background .3s, color .3s, transform .3s var(--ease); will-change: transform; }
.btn:hover { background: var(--orange); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; min-height: 100svh; padding: 130px var(--pad) 70px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; max-width: 1440px; margin: 0 auto; }
.hero__blobs i { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .9; will-change: transform; }
.hero__blobs .b1 { width: 34vmin; height: 34vmin; background: var(--sun); right: 6%; top: 14%; border-radius: 42% 58% 61% 39% / 45% 39% 61% 55%; animation: morph 12s ease-in-out infinite; }
.hero__blobs .b2 { width: 20vmin; height: 20vmin; background: var(--pink); right: 30%; top: 58%; animation: morph 9s ease-in-out infinite reverse; }
.hero__blobs .b3 { width: 14vmin; height: 14vmin; background: var(--cobalt); right: 12%; top: 64%; border-radius: 30%; animation: spin 18s linear infinite; }
.hero__blobs .b4 { width: 9vmin; height: 9vmin; background: var(--orange); right: 40%; top: 18%; animation: morph 7s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: translateY(-14px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__kicker { font: 600 18px var(--sans); margin: 0 0 10px; position: relative; }
.hero__kicker::before { content: "👋"; margin-right: 8px; display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: none } 10%, 30% { transform: rotate(14deg) } 20% { transform: rotate(-8deg) } }
.hero__big { margin: 0; font: 900 clamp(76px, 17vw, 260px)/.86 var(--display); text-transform: uppercase; letter-spacing: -.035em; position: relative; display: flex; flex-wrap: wrap; column-gap: .22em; }
.hero__big .w { display: inline-flex; overflow: hidden; padding-bottom: .04em; }
.hero__big .w--it { font-family: var(--serif); font-style: italic; font-weight: 700; text-transform: none; color: var(--orange); letter-spacing: 0; }
.hero__big .ch { display: inline-block; transform: translateY(105%) rotate(6deg); transition: transform .9s var(--ease); }
body.loaded .hero__big .ch { transform: none; }
.hero__rot { font: 700 clamp(22px, 3vw, 36px)/1.3 var(--sans); margin: 22px 0 0; min-height: 1.3em; }
.rot__txt { background: linear-gradient(90deg, var(--cobalt), var(--purple), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rot__caret { animation: blink 1s steps(1) infinite; color: var(--orange); margin-left: 2px; }
@keyframes blink { 50% { opacity: 0 } }
.hero__lead { max-width: 640px; font-size: clamp(17px, 1.6vw, 20px); margin: 18px 0 28px; position: relative; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.hero__name { position: absolute; left: var(--pad); bottom: 28px; display: flex; gap: 14px; align-items: baseline; font-size: 14px; }
.hero__name b { font-size: 15px; }
.hero__name span { font-family: var(--mono); color: #6b6455; }
.scrollcue { position: absolute; right: var(--pad); bottom: 28px; width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 14px; }
.scrollcue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1 } 100% { transform: translateY(16px); opacity: 0 } }

/* Dải chạy */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 18px 0; transform: rotate(-1.6deg); margin: 10px -20px; }
.marquee__track { display: flex; width: max-content; gap: 34px; animation: slide 38s linear infinite; font: 800 clamp(18px, 2.4vw, 28px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--sun); margin-left: 34px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Tiêu đề mục */
.sec-title { display: flex; align-items: baseline; gap: 14px; margin: 0 0 40px; font: 900 clamp(38px, 6vw, 84px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.sec-no { font: 500 15px var(--mono); color: var(--orange); letter-spacing: 0; transform: translateY(-1.6em); }
.sec-title--light { color: var(--paper); }

/* Giới thiệu */
.about { padding-top: 120px; padding-bottom: 100px; }
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
.about__body p { font-size: clamp(18px, 1.8vw, 23px); margin: 0 0 18px; }
.about__body p:first-child::first-letter { font: 900 3.4em/.8 var(--display); float: left; margin: 6px 10px 0 0; color: var(--orange); }
.about__facts { margin: 0; display: grid; gap: 0; align-content: start; }
.about__facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.about__facts dt { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #7d7564; }
.about__facts dd { margin: 4px 0 0; font-weight: 600; font-size: 17px; }
.live { margin-top: 64px; }
.live__label { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: #7d7564; margin: 0 0 14px; }
.live__label::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; margin-right: 8px; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0) } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0) } }
.live__list { display: flex; flex-wrap: wrap; gap: 10px; }
.live__list a { font: 500 14px var(--mono); text-decoration: none; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, transform .3s var(--ease); }
.live__list a:hover { background: var(--ink); color: var(--sun); transform: translateY(-3px); }

/* Dự án nổi bật */
.featured { background: var(--ink); color: var(--paper); padding: 110px 0 120px; border-radius: 40px 40px 0 0; position: relative; }
.feat__head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; margin-bottom: 48px; }
.feat__name { margin: 0; font: 900 clamp(56px, 10vw, 150px)/.9 var(--display); letter-spacing: -.04em; background: linear-gradient(100deg, var(--sun), var(--pink) 45%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat__tag { margin: 0 0 12px; font: 500 clamp(18px, 2vw, 26px)/1.35 var(--serif); font-style: italic; max-width: 520px; color: #e8dfcd; }
.flow { position: relative; margin: 0 0 64px; }
.flow__line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: rgba(251, 246, 236, .18); overflow: hidden; }
.flow__line i { position: absolute; top: -1px; left: -20%; width: 20%; height: 4px; background: linear-gradient(90deg, transparent, var(--sun), transparent); animation: pulse 3.2s linear infinite; }
@keyframes pulse { to { left: 100%; } }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; position: relative; }
.flow__steps li { position: relative; }
.flow__steps .node { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font: 800 15px var(--mono); color: var(--ink); background: var(--sun); transition: transform .5s var(--ease), border-radius .5s; }
.flow__steps li:nth-child(2) .node { background: var(--pink) } .flow__steps li:nth-child(3) .node { background: var(--sky) } .flow__steps li:nth-child(4) .node { background: var(--orange); color: #fff }
.flow__steps li:nth-child(5) .node { background: #9be3b4 } .flow__steps li:nth-child(6) .node { background: var(--cream) } .flow__steps li:nth-child(7) .node { background: #7cc4ff }
.flow__steps li:hover .node { transform: translateY(-6px) rotate(-8deg); border-radius: 50%; }
.flow__steps b { display: block; margin: 14px 0 4px; font-size: 16px; }
.flow__steps p { margin: 0; font-size: 13.5px; color: #c9bfab; line-height: 1.5; }
.flow.in .node { animation: pop .7s var(--ease) both; }
.flow.in li:nth-child(2) .node { animation-delay: .08s } .flow.in li:nth-child(3) .node { animation-delay: .16s } .flow.in li:nth-child(4) .node { animation-delay: .24s }
.flow.in li:nth-child(5) .node { animation-delay: .32s } .flow.in li:nth-child(6) .node { animation-delay: .4s } .flow.in li:nth-child(7) .node { animation-delay: .48s }
@keyframes pop { from { transform: scale(.3); opacity: 0 } }
.feat__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.feat__text h4 { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--sun); margin: 26px 0 8px; }
.feat__text h4:first-child { margin-top: 0; }
.feat__text ul { margin: 0; padding-left: 18px; }
.feat__text li { margin-bottom: 6px; color: #e8dfcd; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font: 500 12.5px var(--mono); padding: 5px 10px; border-radius: 8px; background: rgba(251, 246, 236, .08); box-shadow: inset 0 0 0 1px rgba(251, 246, 236, .16); }
/* Bảng điều khiển giả lập — chỉ khối, không dữ liệu */
.dash { background: #221e17; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: perspective(1400px) rotateY(-9deg) rotateX(5deg); transition: transform .8s var(--ease); }
.dash:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.dash__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #2c271f; }
.dash__bar i { width: 10px; height: 10px; border-radius: 50%; background: #f2766b } .dash__bar i:nth-child(2) { background: #f3c552 } .dash__bar i:nth-child(3) { background: #74d38c }
.dash__url { margin-left: 12px; font: 500 12px var(--mono); color: #8d846f; }
.dash__body { display: grid; grid-template-columns: 120px 1fr; min-height: 330px; }
.dash__side { padding: 18px 14px; display: grid; gap: 12px; align-content: start; background: #1c1913; }
.dash__side b { height: 10px; border-radius: 5px; background: #3a342a; } .dash__side b:first-child { background: var(--sun); width: 70%; }
.dash__main { padding: 18px; display: grid; gap: 16px; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash__kpis div { background: #2c271f; border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.dash__kpis em { height: 7px; width: 60%; border-radius: 4px; background: #4a4235; }
.dash__kpis strong { height: 14px; border-radius: 4px; background: var(--pink); width: 45%; }
.dash__kpis div:nth-child(2) strong { background: var(--sky); width: 60% } .dash__kpis div:nth-child(3) strong { background: #9be3b4; width: 35% } .dash__kpis div:nth-child(4) strong { background: var(--sun); width: 52% }
.dash__chart { height: 110px; display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: #2c271f; border-radius: 10px; }
.dash__chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(var(--orange), #b33b12); height: 20%; transition: height 1.2s var(--ease); }
.dash.in .dash__chart span:nth-child(1) { height: 42% } .dash.in .dash__chart span:nth-child(2) { height: 55% } .dash.in .dash__chart span:nth-child(3) { height: 38% } .dash.in .dash__chart span:nth-child(4) { height: 70% }
.dash.in .dash__chart span:nth-child(5) { height: 62% } .dash.in .dash__chart span:nth-child(6) { height: 80% } .dash.in .dash__chart span:nth-child(7) { height: 66% } .dash.in .dash__chart span:nth-child(8) { height: 88% }
.dash.in .dash__chart span:nth-child(9) { height: 74% } .dash.in .dash__chart span:nth-child(10) { height: 92% } .dash.in .dash__chart span:nth-child(11) { height: 84% } .dash.in .dash__chart span:nth-child(12) { height: 97% }
.dash__chart span:nth-child(n) { transition-delay: calc(var(--i, 0) * 60ms); }
.dash__rows { display: grid; gap: 8px; }
.dash__rows p { margin: 0; height: 26px; border-radius: 8px; background: #2c271f; position: relative; }
.dash__rows i { position: absolute; right: 10px; top: 7px; width: 46px; height: 12px; border-radius: 6px; }
.dash__rows .ok { background: #74d38c } .dash__rows .wait { background: var(--sun) } .dash__rows .warn { background: #f2766b }
.dash__note { margin: 0; padding: 10px 14px; font: 500 11.5px var(--mono); color: #8d846f; background: #1c1913; }

/* Ô dự án — khối màu như Hồng Xiêm */
.work { padding-top: 110px; padding-bottom: 60px; }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { --bg: var(--sun); --fg: var(--ink); grid-column: span 3; position: relative; container-type: inline-size; border-radius: 26px; background: var(--bg); color: var(--fg); padding: 26px 26px 0; min-height: 520px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; isolation: isolate; transition: transform .6s var(--ease), box-shadow .6s var(--ease); transform-style: preserve-3d; will-change: transform; }
.tile:nth-child(3n+1) { grid-column: span 4; } .tile:nth-child(3n+2) { grid-column: span 2; } .tile:nth-child(3n) { grid-column: span 6; min-height: 460px; }
.tiles[data-group="personal"] .tile { grid-column: span 3 !important; }
.tile:hover { box-shadow: 0 30px 60px -20px rgba(23, 20, 15, .35); }
.tile__no { font: 500 14px var(--mono); opacity: .75; }
.tile__name { margin: 6px 60px 6px 0; font: 900 clamp(22px, 8.4cqi, 50px)/1 var(--display); overflow-wrap: break-word; text-transform: uppercase; letter-spacing: -.02em; }
.tile__tag { margin: 0; font-weight: 500; max-width: 520px; }
.tile__meta { margin-top: 10px; font: 500 12.5px var(--mono); opacity: .8; }
.tile__imgs { position: relative; margin-top: auto; padding-top: 22px; height: 300px; }
.tile:nth-child(3n) .tile__imgs { height: 260px; }
.tile__pc { position: absolute; left: 0; right: 70px; bottom: -16px; border-radius: 14px 14px 0 0; overflow: hidden; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); transition: transform .8s var(--ease); background: #fff; }
.tile__pc img { width: 100%; height: 280px; object-fit: cover; object-position: top; }
.tile__dt { position: absolute; right: 0; bottom: 18px; width: 120px; border: 5px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); transition: transform .8s var(--ease); background: #fff; }
.tile__dt img { width: 100%; height: 230px; object-fit: cover; object-position: top; }
.tile:hover .tile__pc { transform: translateY(-14px) scale(1.02); }
.tile:hover .tile__dt { transform: translateY(-24px) rotate(-5deg); }
.tile__go { position: absolute; right: 22px; top: 22px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 22px; transition: transform .5s var(--ease); z-index: 2; }
.tile:hover .tile__go { transform: rotate(-45deg) scale(1.1); }
.c-green { --bg: #1f7a4c; --fg: #f4fbf6 } .c-blue { --bg: var(--cobalt); --fg: #fff } .c-cream { --bg: #ecd9b3 } .c-pink { --bg: var(--pink) }
.c-orange { --bg: var(--orange); --fg: #fff } .c-purple { --bg: #2a1747; --fg: #fbeaff } .c-paper { --bg: #e9e1cf } .c-ink { --bg: var(--ink); --fg: var(--paper) }

/* Cách làm — thẻ xếp chồng khi cuộn */
.how { padding: 110px 0; background: var(--sun); border-radius: 40px; margin: 40px clamp(6px, 1.4vw, 18px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { position: sticky; top: calc(96px + var(--i) * 14px); background: var(--paper); border-radius: 24px; padding: 28px 30px; display: grid; grid-template-columns: 90px 1fr 1.3fr; gap: 24px; align-items: center; box-shadow: 0 -2px 0 var(--ink) inset, 0 18px 40px -24px rgba(23, 20, 15, .4); min-height: 130px; }
.steps .n { font: 900 54px/1 var(--display); color: var(--orange); }
.steps b { font: 800 clamp(20px, 2.2vw, 28px)/1.15 var(--display); text-transform: uppercase; }
.steps p { margin: 0; font-size: 16.5px; }

/* Kỹ năng */
.skills { padding-top: 90px; padding-bottom: 80px; }
.skill { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); transition: padding .4s var(--ease), background .4s; position: relative; }
.skill:hover { padding-left: 14px; }
.skill::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--orange); transition: width .6s var(--ease); }
.skill:hover::before { width: 100%; }
.skill h3 { margin: 0; font: 800 22px/1.2 var(--display); text-transform: uppercase; }
.skill p { margin: 0; font-size: 17px; }

/* Tải tài liệu */
.docs { padding-top: 40px; padding-bottom: 110px; }
.docs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.doc { position: relative; border-radius: 22px; padding: 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; overflow: hidden; transition: transform .5s var(--ease); }
.doc span { font: 900 64px/1 var(--display); opacity: .9; }
.doc b { font-size: 17px; }
.doc i { font: 600 13px var(--mono); font-style: normal; }
.doc::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: transform .6s var(--ease); }
.doc:hover { transform: translateY(-6px) rotate(-1.5deg); }
.doc:hover::after { transform: scale(2.6); }
.doc--y { background: var(--sun) } .doc--b { background: var(--cobalt); color: #fff } .doc--p { background: var(--pink) } .doc--o { background: var(--orange); color: #fff }

/* Liên hệ */
.contact { background: var(--orange); color: var(--paper); padding: 120px 0 110px; border-radius: 40px 40px 0 0; }
.contact__title { margin: 0; font: 900 clamp(46px, 8.5vw, 132px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.03em; max-width: 1100px; }
.contact__lead { font-size: clamp(18px, 2vw, 24px); max-width: 640px; margin: 26px 0 40px; }
.contact__rows { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.contact__rows div { border-top: 2px solid rgba(251, 246, 236, .5); padding-top: 12px; }
.contact__rows dt { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.contact__rows dd { margin: 4px 0 0; font-weight: 700; font-size: 18px; }
.foot { background: var(--ink); color: #b9b09c; font-size: 13px; padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot b { color: var(--paper); }

/* Hộp chi tiết dự án */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(23, 20, 15, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0 } }
.modal__card { position: relative; width: min(1180px, 100%); max-height: 92svh; overflow: auto; background: var(--paper); border-radius: 28px 28px 0 0; animation: rise .6s var(--ease); overscroll-behavior: contain; }
@keyframes rise { from { transform: translateY(60px); opacity: 0 } }
.modal__x { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); font-size: 26px; line-height: 1; z-index: 3; transition: transform .4s var(--ease); }
.modal__x:hover { transform: rotate(90deg); }
.m-head { padding: 40px clamp(20px, 4vw, 56px) 28px; background: var(--bg, var(--sun)); color: var(--fg, var(--ink)); }
.m-head h3 { margin: 6px 0; font: 900 clamp(34px, 5.5vw, 72px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.m-head p { margin: 0; font-size: 18px; max-width: 760px; }
.m-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; font: 500 13px var(--mono); }
.m-meta a { font-weight: 700; }
.m-gal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; padding: 28px clamp(20px, 4vw, 56px); align-items: start; }
.m-gal figure { margin: 0; }
.m-gal .g-pc { grid-column: span 4; } .m-gal .g-dt { grid-column: span 2; }
.frame-pc { border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -24px rgba(23, 20, 15, .45); background: #fff; }
.frame-pc::before { content: ""; display: block; height: 22px; background: #ece4d2 radial-gradient(circle at 14px 11px, #f2766b 4px, transparent 5px), radial-gradient(circle at 30px 11px, #f3c552 4px, transparent 5px); background-color: #ece4d2; }
.frame-dt { border: 6px solid var(--ink); border-radius: 26px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px -24px rgba(23, 20, 15, .55); max-width: 260px; margin: 0 auto; }
.m-gal figcaption { font: 500 12.5px var(--mono); color: #7d7564; margin-top: 8px; text-align: center; }
.m-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 44px; padding: 8px clamp(20px, 4vw, 56px) 50px; }
.m-body h4 { margin: 0 0 8px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--orange); }
.m-body ul { margin: 0; padding-left: 18px; }
.m-body li { margin-bottom: 6px; }
.m-body .chips span { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.m-body .m-design { grid-column: 1 / -1; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 22px 26px; }
.m-body .m-design h4 { color: var(--sun); }

/* Hiện dần khi cuộn */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Điện thoại */
@media (max-width: 980px) {
  .menu, .top .btn--sm { display: none; }
  .burger { display: block; }
  .about__grid, .feat__grid, .feat__head { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow__steps { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flow__line { left: 27px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .flow__line i { left: -1px; top: -20%; width: 4px; height: 20%; background: linear-gradient(transparent, var(--sun), transparent); animation: pulseY 3.2s linear infinite; }
  @keyframes pulseY { to { top: 100%; } }
  .flow__steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .flow__steps b { margin: 4px 0 2px; } .flow__steps p { grid-column: 2; }
  .flow__steps .node { grid-row: span 2; }
  .dash { transform: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile:nth-child(n), .tiles[data-group="personal"] .tile { grid-column: auto !important; min-height: 470px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; top: calc(80px + var(--i) * 10px); padding: 22px; }
  .steps .n { font-size: 40px; }
  .skill { grid-template-columns: 1fr; gap: 6px; }
  .docs__grid, .contact__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-gal .g-pc, .m-gal .g-dt { grid-column: 1 / -1; }
  .m-body { grid-template-columns: minmax(0, 1fr); }
  .hero__name { position: static; margin-top: 34px; flex-direction: column; gap: 2px; }
  .scrollcue { display: none; }
}
@media (max-width: 520px) {
  .lang button { min-width: 40px; }
  .brand__text { display: none; }
  .tile { padding: 22px 20px 0; }
  .tile__name { font-size: clamp(22px, 8.4cqi, 34px); }
  .tile__pc { right: 52px; } .tile__dt { width: 96px; }
  .tile__dt img { height: 190px; }
  .docs__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .doc { min-height: 170px; } .doc span { font-size: 46px; }
  .contact__rows { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
