@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::-moz-selection {
  background: rgba(139, 92, 246, 0.4);
  color: #f0f0f0;
}

::selection {
  background: rgba(139, 92, 246, 0.4);
  color: #f0f0f0;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Glass Card */

.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  transition: border-color var(--transition),
                transform var(--transition),
                background var(--transition);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-h);
  box-shadow: none;
  transform: none;
}

/* Buttons */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--text-primary);
  border: 1px solid var(--text-primary);
  transition: background var(--transition), border-color var(--transition);
  cursor: pointer;
  box-shadow: none;
}

.btn-primary:hover {
  background: #d8dce5;
  border-color: #d8dce5;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border-h);
  background: transparent;
  transition: color var(--transition),
                border-color var(--transition),
                transform var(--transition);
  cursor: pointer;
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-h);
  background: var(--glass-bg-hover);
  box-shadow: none;
}

/* Section label */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary-light);
}

.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: var(--primary-light);
  flex-shrink: 0;
}

/* Skill pill */

.skill-pill {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-bg-hover);
  border: 1px solid var(--glass-border);
  transition: background var(--transition), border-color var(--transition);
}

.skill-pill:hover {
  background: #202532;
  border-color: var(--glass-border-h);
}

/* Tag pill (smaller, used in project cards) */

.tag-pill {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(11, 13, 20, 0.82);
  border: 1px solid rgba(238, 240, 245, 0.12);
}

/* Navigation link */

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary-light);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Header: always visible background so logo is clear, stronger on scroll */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  background: rgba(11, 13, 20, 0.96);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--transition), border-color var(--transition), padding var(--transition);
}

#site-header.header-scrolled {
  background: var(--bg);
  border-bottom-color: var(--glass-border);
  padding: 0.75rem 0;
}

/* Divider */

.section-divider {
  height: 1px;
  background: var(--glass-border);
}

.static{
  position: static;
}

.fixed{
  position: fixed;
}

.absolute{
  position: absolute;
}

.relative{
  position: relative;
}

.right-6{
  right: 1.5rem;
}

.top-6{
  top: 1.5rem;
}

.z-10{
  z-index: 10;
}

.mx-auto{
  margin-left: auto;
  margin-right: auto;
}

.mb-12{
  margin-bottom: 3rem;
}

.mb-16{
  margin-bottom: 4rem;
}

.mb-6{
  margin-bottom: 1.5rem;
}

.mt-24{
  margin-top: 6rem;
}

.block{
  display: block;
}

.flex{
  display: flex;
}

.table{
  display: table;
}

.grid{
  display: grid;
}

.contents{
  display: contents;
}

.hidden{
  display: none;
}

.min-h-screen{
  min-height: 100vh;
}

.w-full{
  width: 100%;
}

.max-w-4xl{
  max-width: 56rem;
}

.max-w-7xl{
  max-width: 80rem;
}

.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize{
  resize: both;
}

.flex-col{
  flex-direction: column;
}

.items-start{
  align-items: flex-start;
}

.items-center{
  align-items: center;
}

.justify-center{
  justify-content: center;
}

.justify-between{
  justify-content: space-between;
}

.gap-12{
  gap: 3rem;
}

.gap-2{
  gap: 0.5rem;
}

.gap-2\.5{
  gap: 0.625rem;
}

.gap-3{
  gap: 0.75rem;
}

.gap-4{
  gap: 1rem;
}

.gap-8{
  gap: 2rem;
}

.overflow-hidden{
  overflow: hidden;
}

.px-6{
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-16{
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-24{
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.py-28{
  padding-top: 7rem;
  padding-bottom: 7rem;
}

.py-8{
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.pb-16{
  padding-bottom: 4rem;
}

.pt-24{
  padding-top: 6rem;
}

.text-center{
  text-align: center;
}

.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Scroll-reveal classes (controlled by IntersectionObserver) */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 350ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 350ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 350ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay helpers */

/* Kept as a utility for content that still uses the class. */

/* ─── Design Tokens ──────────────────────────────────────── */

:root {
  --bg:              #0b0d14;
  --primary:         #8b5cf6;
  --primary-light:   #c4b5fd;
  --accent:          #c4b5fd;
  --glass-bg:        #11141c;
  --glass-bg-hover:  #1a1e28;
  --glass-border:    rgba(238, 240, 245, 0.08);
  --glass-border-h:  rgba(238, 240, 245, 0.14);
  --text-primary:    #eef0f5;
  --text-secondary:  #a3a9b8;
  --text-muted:      #8e96a7;
  --text-dim:        #71798a;
  --radius-card:     14px;
  --radius-pill:     8px;
  --transition:      160ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Base ───────────────────────────────────────────────── */

/* ─── Components ─────────────────────────────────────────── */

/* ─── Utilities ──────────────────────────────────────────── */

/* Availability badge */

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.availability-badge svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ─── Code Terminal ──────────────────────────────────────── */

.code-terminal {
  width: 100%;
  max-width: 520px;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  position: relative;
  z-index: 2;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red    {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green  {
  background: #28c840;
}

.terminal-filename {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.terminal-body {
  padding: 1rem 1.25rem 1.25rem;
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-line {
  display: block;
  white-space: nowrap;
  color: var(--text-secondary);
}

.line-num {
  display: inline-block;
  width: 2rem;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-align: right;
  margin-right: 1rem;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Syntax highlight tokens */

.syn-keyword {
  color: #c678dd;
}

.syn-type    {
  color: #61afef;
}

.syn-string  {
  color: #98c379;
}

.syn-method  {
  color: #e5c07b;
}

.syn-param   {
  color: #e06c75;
}

/* Blinking cursor */

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--primary-light);
  animation: cursorBlink 1.1s step-end infinite;
  vertical-align: middle;
  border-radius: 1px;
}

/* Terminal glow behind */

.terminal-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  animation: glowFloat 8s ease-in-out infinite;
}

/* Terminal floating animation */

.terminal-float {
  animation: terminalFloat 6s ease-in-out infinite;
}

/* ─── Hero backgrounds ───────────────────────────────────── */

.hero-bg {
  background: var(--bg);
}

.hero-availability {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero-availability-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary-light);
}

.hero-h1 {
  margin: 0 0 1.5rem;
  color: var(--text-primary);
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-sub {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0 0 2rem;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  list-style: none;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-ctas .btn-primary {
  color: #11141c;
  background: #eef0f5;
  border-color: #eef0f5;
  box-shadow: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.hero-ctas .btn-primary:hover {
  color: #11141c;
  background: #fff;
  border-color: #fff;
  box-shadow: none;
  transform: none;
}

.hero-ctas .btn-ghost {
  border-color: rgba(238, 240, 245, 0.14);
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.hero-ctas .btn-ghost:hover {
  background: rgba(238, 240, 245, 0.05);
  border-color: rgba(238, 240, 245, 0.24);
  box-shadow: none;
  transform: none;
}

.hero-exp-card {
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
  background: #11141c;
  border: 1px solid rgba(238, 240, 245, 0.1);
  border-radius: 1rem;
}

.hero-exp-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

.hero-exp-route {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  color: var(--primary-light);
}

.hero-exp-entry + .hero-exp-entry {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(238, 240, 245, 0.08);
}

.hero-exp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.hero-exp-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-exp-company {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero-exp-period {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hero-exp-description {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(238, 240, 245, 0.08);
  font-size: 0.875rem;
  line-height: 1.65;
}

.hero-exp-description p {
  margin: 0;
}

.hero-exp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  color: var(--primary-light);
  border-top: 1px solid rgba(238, 240, 245, 0.08);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  transition: color 160ms ease;
}

.hero-exp-link:hover {
  color: var(--text-primary);
}

.hero-exp-link:focus-visible,
.hero-ctas a:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1;
  transform: translateX(-50%);
}

@media (max-width: 767px) {
  .hero-h1 {
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    letter-spacing: -0.02em;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-exp-card {
    padding: 1.25rem;
  }

  .hero-exp-header {
    flex-direction: column;
    gap: 0.375rem;
  }

  .hero-exp-title {
    font-size: 1.25rem;
  }

  .hero-exp-period {
    text-align: left;
  }

  .hero-scroll {
    bottom: 1.25rem;
  }
}

/* ─── Project card image ─────────────────────────────────── */

.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover .card-img-wrap img {
  transform: scale(1.07);
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.72) 0%, rgba(10,10,10,0.08) 60%, transparent 100%);
}

/* Project card wrapper link (same tab, no nested links) */

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.project-card-link:hover .project-card-cta {
  color: #f0f0f0;
  gap: 0.5rem;
}

/* ─── Project detail page (layouts/project.html) ───────────── */

.project-main {
  padding-top: 7rem;
  /* Clear fixed header so content does not overlap */
}

.project-page {
  min-height: 60vh;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.project-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1023px) {
  .project-layout {
    grid-template-columns: 1fr;
  }
}

/* Sidebar: Project Overview (weight 1=H1, 2–4=indented) */

.project-sidebar {
  position: sticky;
  top: 6rem;
  padding: 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.project-toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.project-toc {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-toc-toc {
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-toc-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.project-toc-toc li {
  margin: 0.35rem 0;
}

.project-toc-toc a {
  color: var(--text-secondary);
  transition: color var(--transition);
}

.project-toc-toc a:hover {
  color: var(--primary-light);
}

.project-toc-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 1px solid transparent;
  overflow: hidden;
  max-width: 100%;
}

.project-toc-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
  border-color: var(--glass-border);
}

.project-toc-link.active {
  color: var(--primary-light);
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--glass-border-h);
}

.project-toc-link.depth-1 {
  padding-left: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-toc-link.depth-2 {
  padding-left: 1.5rem;
}

.project-toc-link.depth-3 {
  padding-left: 2.25rem;
  font-size: 0.82rem;
}

.project-toc-link.depth-4 {
  padding-left: 3rem;
  font-size: 0.78rem;
  opacity: 0.9;
}

.project-toc-pre {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.project-toc-link.active .project-toc-pre {
  color: var(--primary-light);
}

.project-toc-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.project-toc-text.marquee {
  text-overflow: clip;
  animation: project-toc-marquee 6s linear infinite;
}

.project-toc-link:hover .project-toc-text.marquee {
  animation-play-state: running;
}

@keyframes project-toc-marquee {
  0%   {
    transform: translateX(0);
  }

  15%  {
    transform: translateX(0);
  }

  85%  {
    transform: translateX(calc(-100% + 100px));
  }

  100% {
    transform: translateX(calc(-100% + 100px));
  }
}

.project-toc-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Main content area */

.project-content {
  padding: 2rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.project-content-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.project-content-body {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.project-content-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.project-content-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.25rem 0 0.5rem;
}

.project-content-body h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1rem 0 0.5rem;
}

.project-content-body p {
  margin: 0.75rem 0;
}

.project-content-body ul, .project-content-body ol {
  margin: 0.75rem 0;
  padding-left: 1.5rem;
}

.project-content-body li {
  margin: 0.25rem 0;
}

.project-content-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.project-content-body a {
  color: var(--primary-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.project-content-body a:hover {
  border-bottom-color: var(--primary-light);
}

.project-content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  margin: 1rem 0;
}

/* Terminal / technical: JetBrains Mono */

.project-content-body pre,
.project-content-body code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

.project-content-body code {
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--primary-light);
}

.project-content-body pre {
  margin: 1rem 0;
  padding: 1.25rem;
  overflow-x: auto;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
}

.project-content-body pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--text-secondary);
}

/* ─── Keyframe Animations ────────────────────────────────── */

@keyframes seedGrow {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }

  50%       {
    transform: scale(1.06) rotate(4deg);
  }
}

@keyframes glowFloat {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.5;
  }

  50%       {
    transform: translateY(-18px);
    opacity: 0.9;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to   {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes terminalFloat {
  0%, 100% {
    transform: translateY(0px);
  }

  50%      {
    transform: translateY(-14px);
  }
}

@keyframes cursorBlink {
  0%, 100% {
    opacity: 1;
  }

  50%      {
    opacity: 0;
  }
}

@keyframes lineGrow {
  from {
    transform: scaleX(0);
  }

  to   {
    transform: scaleX(1);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to   {
    transform: rotate(360deg);
  }
}

.hero-stats     {
  animation: fadeInUp 0.8s ease 0.62s both;
}

.hero-seed-wrap {
  animation: fadeInUp 0.9s ease 0.3s  both;
}

/* Seed SVG animation */

.seed-svg       {
  animation: seedGrow 9s ease-in-out infinite;
  transform-origin: center;
}

.seed-glow      {
  animation: glowFloat 7s ease-in-out infinite;
}

.scroll-arrow {
  display: inline-block;
  /* Đảm bảo transform có hiệu lực */
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg);
}

/* Mobile nav */

#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu a {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  transition: color var(--transition), background var(--transition);
  padding: 0.65rem 1rem;
  border-radius: 8px;
}

#mobile-menu a:hover {
  color: var(--primary-light);
  background: var(--glass-bg-hover);
}

.mobile-menu-language {
  border: 1px solid var(--glass-border-h);
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font: inherit;
  cursor: pointer;
}

/* Hamburger icon */

.hamburger {
  cursor: pointer;
  width: 24px;
  height: 18px;
  position: relative;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 1.5px;
  width: 100%;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
  left: 0;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 8px;
}

.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.open span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
  background: var(--primary-light);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
  background: var(--primary-light);
}

/* Section background variation */

.about-bg {
  background: none;
}

.contact-bg {
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#site-header {
  padding: 0.875rem 0;
}

:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.section-heading {
  margin-top: 0.75rem;
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-heading-accent {
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--primary);
}

.section-description {
  max-width: 520px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--glass-border-h);
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.language-toggle:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.header-contact-link {
  padding: 8px 14px;
  font-size: 0.8rem;
}

#menu-close {
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
}

#mobile-menu .btn-primary {
  color: var(--bg);
  background: var(--text-primary);
}

.project-card-image-link {
  display: block;
}

.project-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.project-card-topline,
.project-card-labels,
.project-card-footer,
.project-card-actions {
  display: flex;
  align-items: center;
}

.project-card-topline,
.project-card-footer {
  justify-content: space-between;
  gap: 12px;
}

.project-card-labels {
  flex-wrap: wrap;
  gap: 6px;
}

.project-year,
.project-platform {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.project-card-title {
  margin: 16px 0 8px;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.35;
}

.project-card-description {
  position: relative;
  display: -webkit-box;
  height: 4.95em;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-card-description.has-overflow::after {
  position: absolute;
  inset: auto 0 0 auto;
  width: 60%;
  height: 1.65em;
  background: linear-gradient(to right, transparent, rgba(17, 20, 28, 0.2));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask-image: linear-gradient(to right, transparent, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 100%);
  content: "";
  pointer-events: none;
}

.project-card-tags {
  position: relative;
  display: flex;
  height: auto;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  overflow: hidden;
}

.project-card-tags.has-overflow::after {
  position: absolute;
  inset: auto 0 0 auto;
  width: 60%;
  height: 27px;
  background: linear-gradient(to right, transparent, rgba(17, 20, 28, 0.2));
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  mask-image: linear-gradient(to right, transparent, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 100%);
  content: "";
  pointer-events: none;
}

.project-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.project-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-card-actions {
  justify-content: flex-end;
  gap: 12px;
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 500;
}

.project-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.project-section-header > div:first-child {
  min-width: 0;
}

.project-section-header .section-description {
  margin-bottom: 0;
}

.studio-project-group {
  scroll-margin-top: 96px;
}

.studio-project-group + .studio-project-group {
  margin-top: 40px;
}

.studio-project-group-header {
  margin-bottom: 12px;
}

.studio-project-group-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.35rem;
  font-weight: 500;
}

.project-carousel-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.project-carousel-controls[hidden] {
  display: none;
}

.project-carousel-control {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border-h);
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
}

.project-carousel-control:hover:not(:disabled) {
  border-color: var(--primary-light);
  background: var(--glass-bg-hover);
  color: var(--primary-light);
}

.project-carousel-control:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 3px;
}

.project-carousel-control:disabled {
  cursor: default;
  opacity: 0.4;
}

.project-carousel-viewport {
  margin-right: -24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 0 20px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.project-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.project-carousel-track {
  display: flex;
  width: -moz-max-content;
  width: max-content;
  min-width: 100%;
  align-items: stretch;
  gap: 24px;
}

.project-carousel-track > .project-card {
  width: calc(100vw - 96px);
  min-width: 0;
  flex: 0 0 calc(100vw - 96px);
  scroll-snap-align: start;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), filter var(--transition), opacity var(--transition);
}

.project-carousel-track > .project-card.project-card-peek {
  filter: blur(4px);
  opacity: 0.48;
  pointer-events: none;
}

.project-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--glass-bg);
}

.project-card .card-img-wrap {
  border-radius: 0;
}

.project-card-studio .card-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12), transparent 68%), #0f1118;
}

.project-card-studio .card-img-wrap .project-card-icon {
  width: min(42%, 168px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

.project-card .card-img-wrap img {
  transition: none;
}

.project-card .card-img-overlay {
  background: linear-gradient(to top, rgba(11, 13, 20, 0.72), transparent 70%);
}

.project-card-role {
  margin: -6px 0 14px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.project-card-link {
  color: inherit;
}

.project-card-title-link {
  color: var(--text-primary);
  transition: color var(--transition);
}

.project-card-title-link:hover,
.project-card-cta:hover {
  color: var(--primary-light);
}

.type-badge,
.featured-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: rgba(11, 13, 20, 0.82);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
}

.featured-badge {
  color: var(--text-primary);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(238, 240, 245, 0.16);
  border-radius: 8px;
  background: rgba(11, 13, 20, 0.88);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}

.store-btn:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-h);
}

.skill-category-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.skill-category-title,
.experience-heading {
  margin: 0 0 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-copy {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.75;
}

.about-copy > p {
  margin: 0 0 16px;
}

.about-experience {
  margin-top: 32px;
}

.experience-list {
  display: grid;
  gap: 20px;
}

.experience-item {
  position: relative;
  padding-left: 16px;
  border-left: 1px solid var(--glass-border);
}

.experience-item::before {
  position: absolute;
  top: 6px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  content: "";
}

.experience-item.is-current::before {
  background: var(--primary-light);
}

.experience-item-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.experience-item-meta {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.experience-item-description {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
}

.contact-heading {
  margin: 0 auto 16px;
}

.contact-heading .section-heading-accent {
  margin-right: auto;
  margin-left: auto;
}

.contact-subtext {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-email {
  margin-bottom: 32px;
}

.contact-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.itch-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("/icon/icons8-itch-io-30.png") no-repeat center / contain;
  mask: url("/icon/icons8-itch-io-30.png") no-repeat center / contain;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-color: var(--glass-border);
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.social-link:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-h);
  color: var(--text-primary);
}

.project-detail-wrapper {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
  width: min(100%, 1360px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 24px 48px;
}

.project-sidebar.glass-card {
  position: sticky;
  top: 88px;
  display: flex;
  max-height: calc(100vh - 112px);
  flex-direction: column;
  overflow: hidden;
  background: var(--glass-bg);
}

.project-sidebar.glass-card:hover,
.project-content.glass-card:hover {
  transform: none;
}

.sidebar-inner {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.sidebar-header {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-project-title {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.toc-nav {
  min-height: 0;
  overflow: auto;
  padding: 8px 0;
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-item {
  margin: 0;
}

.toc-root-link {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 12px;
  overflow: hidden;
  border-left: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.toc-link:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.toc-active > .toc-link {
  border-left-color: var(--primary-light);
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.toc-item.depth-2 > .toc-link {
  padding-left: 24px;
}

.toc-item.depth-3 > .toc-link {
  padding-left: 36px;
}

.toc-item.depth-4 > .toc-link {
  padding-left: 48px;
}

.toc-pre {
  flex: none;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.toc-title-wrap {
  min-width: 0;
  overflow: hidden;
}

.toc-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-content.glass-card {
  min-width: 0;
  padding: 40px;
  background: var(--glass-bg);
}

.project-content-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.project-page-title {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.project-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
}

.project-body h2,
.project-body h3,
.project-body h4 {
  color: var(--text-primary);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.project-body h2 {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
  font-size: 1.35rem;
}

.project-body h3 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
}

.project-body h4 {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.project-body p {
  margin: 12px 0;
}

.project-body ul,
.project-body ol {
  margin: 12px 0;
  padding-left: 24px;
}

.project-body li {
  margin: 6px 0;
}

.project-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

.project-body a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-body a:hover {
  color: var(--text-primary);
}

.project-body img,
.project-body video,
.project-body iframe {
  max-width: 100%;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
}

.project-body img {
  height: auto;
}

.project-body video {
  width: 100%;
  height: auto;
}

.project-body blockquote {
  margin: 24px 0;
  padding: 12px 16px;
  border-left: 2px solid var(--primary-light);
  color: var(--text-secondary);
}

.project-body pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: #0b0d14;
}

.project-body code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
}

.project-body :not(pre) > code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--glass-bg-hover);
  color: var(--primary-light);
}

.project-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.project-body th,
.project-body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
  vertical-align: top;
}

.project-body th {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
}

.studio-project-page {
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 112px 24px 64px;
}

.studio-project-back {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.studio-project-back:hover {
  color: var(--text-primary);
}

.studio-project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
}

.studio-project-hero:hover,
.studio-project-fact:hover,
.studio-project-media-card:hover,
.studio-project-story:hover {
  transform: none;
}

.studio-project-cover {
  min-height: 300px;
  aspect-ratio: 16 / 10;
  background: var(--glass-bg-hover);
}

.studio-project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.studio-project-cover-icon {
  display: grid;
  place-items: center;
  background: #0f1118;
}

.studio-project-cover-icon img {
  width: clamp(150px, 42%, 240px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 22%;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

.studio-project-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(24px, 4vw, 44px);
}

.studio-project-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.studio-project-title {
  margin: 20px 0 12px;
  color: var(--text-primary);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.studio-project-summary {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.studio-project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.studio-project-actions .project-card-cta,
.studio-project-actions .store-btn {
  min-height: 40px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  text-decoration: none;
}

.studio-project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 32px;
}

.studio-project-fact {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
}

.studio-project-fact dt {
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.studio-project-fact dd {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
}

.studio-project-section {
  margin-top: 32px;
}

.studio-project-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.studio-project-section-heading > div {
  min-width: 0;
}

.studio-project-section-number {
  flex: 0 0 40px;
  color: var(--primary-light);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.studio-project-section-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 500;
}

.studio-project-section-kicker {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.studio-project-overview {
  padding: 24px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
}

.studio-project-overview-copy {
  max-width: 760px;
  margin: 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.studio-project-overview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin: 20px 0 0;
  padding: 16px 0 0 20px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.studio-project-overview-list li {
  padding-left: 4px;
}

.studio-project-responsibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.studio-project-responsibility {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
}

.studio-project-responsibility span {
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.studio-project-responsibility h3 {
  margin: 24px 0 0;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.studio-project-contribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.studio-project-contribution {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
}

.studio-project-contribution > span {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary-light);
}

.studio-project-contribution p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

.studio-project-collaboration-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.studio-project-collaboration-list p {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
}

.studio-project-collaboration-list strong {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
}

.studio-project-collaboration-list span {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.studio-project-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.studio-project-screenshots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studio-project-screenshots .studio-project-media-frame {
  min-height: 0;
  aspect-ratio: auto;
}

.studio-project-screenshots .studio-project-media-frame img {
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
}

.studio-project-media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-bg);
}

.studio-project-media-card figure {
  margin: 0;
}

.studio-project-media-frame {
  display: grid;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  background: rgba(11, 13, 20, 0.68);
}

.studio-project-media-frame img,
.studio-project-media-frame video,
.studio-project-media-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  -o-object-fit: cover;
     object-fit: cover;
}

.studio-project-media-frame video {
  -o-object-fit: contain;
     object-fit: contain;
}

.studio-project-video {
  max-width: 900px;
  margin: 20px auto 0;
}

.studio-project-video .studio-project-media-frame {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.studio-media-placeholder {
  display: grid;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  padding: 24px;
  place-items: center;
  border: 1px dashed var(--glass-border-h);
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
}

.studio-project-media-caption {
  margin: 0;
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.studio-project-tags {
  height: auto;
  margin: 0;
  overflow: visible;
}

.studio-project-story {
  height: auto;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
}

.cv-page {
  width: min(100%, 880px);
  margin: 0 auto;
  padding: 112px 24px 64px;
}

.cv-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.cv-content {
  padding: 32px 40px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
}

.cv-content h1 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.cv-content h2 {
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 500;
}

.cv-content h3 {
  margin: 20px 0 4px;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.cv-content p {
  margin: 8px 0;
}

.cv-content ul {
  margin: 8px 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.cv-content li {
  margin: 4px 0;
}

.cv-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

.cv-content a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cv-content hr {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--glass-border);
}

.footer-top-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer-top-link:hover {
  color: var(--text-primary);
}

@media (max-width: 900px) {
  .studio-project-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-project-cover {
    max-height: 420px;
  }

  .studio-project-screenshots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-project-responsibility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-project-collaboration-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-detail-wrapper {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 96px 20px 40px;
  }

  .project-sidebar.glass-card {
    position: static;
    max-height: none;
  }

  .toc-nav {
    max-height: 240px;
  }

  .project-content.glass-card {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .studio-project-page {
    padding: 88px 16px 40px;
  }

  .studio-project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .studio-project-media-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-project-overview-list,
  .studio-project-responsibility-grid,
  .studio-project-contribution-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .studio-project-section-heading {
    gap: 12px;
  }

  .studio-project-section-number {
    flex-basis: 32px;
  }

  .studio-project-collaboration-list p {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-detail-wrapper {
    padding: 88px 16px 32px;
  }

  .project-content.glass-card {
    padding: 20px;
  }

  .cv-page {
    padding: 88px 16px 40px;
  }

  .cv-content {
    padding: 24px 20px;
  }

  .cv-toolbar {
    justify-content: stretch;
  }

  .cv-toolbar .btn-primary {
    justify-content: center;
    width: 100%;
  }

  .project-card-body {
    padding: 16px;
  }

  .project-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card-actions {
    width: 100%;
    justify-content: space-between;
  }

  .project-section-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 32px;
  }

  .project-carousel-controls {
    align-self: flex-end;
    margin-top: -8px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .project-carousel-track > .project-card {
    width: calc((100vw - 96px) / 2);
    flex-basis: calc((100vw - 96px) / 2);
  }
}

@media (min-width: 1024px) {
  .project-carousel-viewport {
    margin-right: calc(-1 * min(80px, max(24px, (100vw - 1280px) / 2)));
  }

  .project-carousel-track > .project-card {
    width: calc((min(100vw, 1280px) - 120px) / 3);
    flex-basis: calc((min(100vw, 1280px) - 120px) / 3);
  }
}

.group:hover .group-hover\:shadow-lg{
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

@media (min-width: 768px){
  .md\:flex{
    display: flex;
  }

  .md\:hidden{
    display: none;
  }

  .md\:flex-row{
    flex-direction: row;
  }
}

@media (min-width: 1024px){
  .lg\:col-span-1{
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-2{
    grid-column: span 2 / span 2;
  }

  .lg\:col-span-3{
    grid-column: span 3 / span 3;
  }

  .lg\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-5{
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:gap-16{
    gap: 4rem;
  }
}
