/* ── TOKENS ─────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --bg2: #f7f6f4;
  --surface: #f0eeeb;
  --border: #ebebea;
  --bordhi: #ccc9c0;
  --text: #111111;
  --muted: #888880;
  --muted2: #bbb8b0;
  --ame: #6a4f7a;
  --oli: #86a36e;
  --grad: linear-gradient(135deg, #6a4f7a 0%, #96b0ac 55%, #b0c49c 100%);
  --gradt: linear-gradient(135deg, #6a4f7a 0%, #7a9e9a 55%, #9ab488 100%);
  --danger: #e05252;

  --fd: "Cormorant Garamond", Georgia, serif;
  --fu: "Syne", system-ui, sans-serif;
  --fm: "Space Mono", monospace;

  --nav-h: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --page-padding-x: clamp(20px, 3vw, 64px);
  --px: var(--page-padding-x);
  --page-max-width: none;

  --img-radius: 4px;
}

@media (max-width: 768px) {
  :root {
    --page-padding-x: 32px;
  }
}

@media (max-width: 480px) {
  :root {
    --page-padding-x: 20px;
    --img-radius: 2px;
  }
}

/* ── RESET ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* FIX: removed duplicate scroll-behavior: smooth — keeping auto */
html {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fu);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* cursor: none scoped to .hero via JS — default cursor active on other pages */
  cursor: none;
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.046;
  mix-blend-mode: multiply;
}

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

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

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  color: inherit;
  line-height: 1.2;
}

/* ── ACCESSIBILITY ──────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 6px;
  padding: 10px 16px;
  background: var(--ame);
  color: white;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  z-index: 10000;
  transition:
    top 0.2s ease,
    opacity 0.2s ease;
  opacity: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── FORM ELEMENTS ──────────────────────────────── */
input,
textarea,
select {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted2);
  opacity: 0.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--bordhi);
  outline: none;
}

label {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  margin-top: 4px;
  font-family: var(--fm);
}

/* ── SCROLLBAR ──────────────────────────────────── */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--bordhi);
  border-radius: 2px;
}

/* ── TAGS / PILLS / DIVIDERS ────────────────────── */
.ltag {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.pill {
  display: inline-block;
  color: white;
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
}
.tag {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--muted);
}
.fdot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted2);
  flex-shrink: 0;
  align-self: center;
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── BUTTONS ────────────────────────────────────── */
.btn1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--grad);
  color: white;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 100px;
  font-weight: 700;
  transition:
    opacity 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  line-height: 1;
}

.btn1:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(122, 112, 186, 0.22);
}

.btn1:focus {
  outline: 2px solid rgba(106, 79, 122, 0.3);
  outline-offset: 0;
}

.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--bordhi);
  color: var(--text);
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 28px;
  border-radius: 100px;
  background: transparent;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn2:hover {
  border-color: var(--ame);
  color: var(--ame);
  transform: translateY(-2px);
}

.btn2:focus {
  outline: 2px solid rgba(106, 79, 122, 0.3);
  outline-offset: 0;
}

/* ── NAV ────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding-x);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s,
    backdrop-filter 0.3s;
}

#nav.scrolled {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
}

.nlogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  cursor: pointer;
  transition: opacity 0.2s;
}
.nlogo:hover {
  opacity: 0.6;
}

.nlinks {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nlink {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}

.nlink::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nlink:hover,
.nlink.active {
  color: var(--text);
}

.nlink:hover::after,
.nlink.active::after {
  transform: scaleX(1);
}

.nlink:focus:not(:focus-visible) {
  outline: none;
}

.ncta {
  height: 36px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.35s ease;
}

.ncta:hover {
  border-color: var(--ame);
  color: var(--ame);
}

.ncta:focus:not(:focus-visible) {
  outline: none;
}


.nburger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-right: -10px;
  -webkit-tap-highlight-color: transparent;
}
.nburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}
.nburger span:nth-child(3) {
  transition: opacity 0.3s var(--ease);
}

.mmenu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  padding: 100px 48px 48px;
}
.mmenu.open {
  display: flex;
}

.mml {
  font-family: var(--fd);
  font-size: 48px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition:
    color 0.2s,
    padding-left 0.2s;
}
.mml:hover {
  color: var(--ame);
  padding-left: 10px;
}

/* ── PAGES / TRANSITIONS ────────────────────────── */
#app {
  min-height: 100vh;
  padding-top: var(--nav-h);
}

.page {
  display: none;
  animation: pgIn 0.5s var(--ease) both;
  min-height: calc(100vh - var(--nav-h));
  position: relative;
}

#page-home {
  position: relative;
}

.page.active {
  display: block;
}

@keyframes pgIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.rd1 {
  transition-delay: 0.1s;
}
.rd2 {
  transition-delay: 0.2s;
}
.rd3 {
  transition-delay: 0.3s;
}

/* ── LOADER ─────────────────────────────────────── */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 99999;
}

.loader-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #86a36e, #6a4f7a);
  animation: loadBar 1.2s cubic-bezier(0.1, 0.05, 0.1, 1) forwards;
}

@keyframes loadBar {
  0% {
    width: 0%;
    opacity: 1;
  }
  60% {
    width: 80%;
  }
  90% {
    width: 95%;
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}

/* ── PAGE ENTRANCE ──────────────────────────────── */
main#main {
  opacity: 0;
}
main#main.ready {
  opacity: 1;
  transition: opacity 0.45s ease;
}

/* ── FOOTER ─────────────────────────────────────── */
footer {
  min-height: 100px;
  border-top: 1px solid var(--border);
  padding: 40px var(--page-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: var(--bg2);
}

.flogo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fd);
  font-size: 17px;
  font-style: italic;
}

.flinks {
  display: flex;
  gap: 24px;
}

.flink {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.flink:hover {
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 10px;
}

.fcopy {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted2);
  white-space: nowrap;
}

/* ── LAYOUT HELPERS ─────────────────────────────── */
.sw {
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
}

.full-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.content-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 40px;
}

/* ══════════════════════════════════════════════════
   HOME
══════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────── */
.hero {
  height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--page-padding-x) 80px;
  position: relative;
  overflow: hidden;
  cursor: none;
}

.hero-bg-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      ellipse 700px 500px at 80% 20%,
      rgba(122, 112, 186, 0.05),
      transparent 65%
    ),
    radial-gradient(
      ellipse 500px 400px at 10% 80%,
      rgba(176, 196, 156, 0.06),
      transparent 65%
    );
}

.hero-cursor-g {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: background 0.08s linear;
}

.hero-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6a4f7a 0%, #86a36e 100%);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(106, 79, 122, 0.22);
  display: none;
  transition:
    width 0.28s ease,
    height 0.28s ease,
    opacity 0.28s ease,
    box-shadow 0.28s ease;
}

.hero-cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(106, 79, 122, 0.4);
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  display: none;
  transition:
    width 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s ease;
  mix-blend-mode: difference;
}

.hero-cursor-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    rgba(106, 79, 122, 1),
    rgba(134, 163, 110, 1),
    rgba(106, 79, 122, 1)
  );
  opacity: 0;
  animation: cursorGradientSpin 1s linear infinite;
  transition: opacity 0.36s ease;
  z-index: -1;
}

.hero-cursor-ring::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: transparent;
}

.hero:hover .hero-cursor,
.hero:hover .hero-cursor-ring {
  display: block;
}

.hero-cursor-ring.is-hover {
  width: 78px;
  height: 78px;
  border: 0.5px solid rgba(106, 79, 122, 0.45);
  background: transparent;
  box-shadow: 0 0 18px rgba(106, 79, 122, 0.18);
  animation:
    cursorRingColor 1.8s ease-in-out infinite alternate,
    cursorRingGlow 1.8s ease-in-out infinite alternate;
}

.hero-cursor-ring.is-hover::before,
.hero-cursor-ring.is-hover::after {
  display: none;
}

.hero-cursor.is-hover {
  width: 8px;
  height: 8px;
  opacity: 0.9;
  box-shadow: 0 0 12px rgba(134, 163, 110, 0.2);
}

@keyframes cursorGradientSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cursorRingColor {
  0% {
    border-color: rgba(106, 79, 122, 0.38);
  }

  100% {
    border-color: rgba(134, 163, 110, 0.38);
  }
}

@keyframes cursorRingGlow {
  0% {
    box-shadow:
      0 0 12px 4px rgba(106, 79, 122, 0.16),
      0 0 28px 8px rgba(106, 79, 122, 0.06);
  }

  100% {
    box-shadow:
      0 0 12px 4px rgba(134, 163, 110, 0.16),
      0 0 28px 8px rgba(134, 163, 110, 0.06);
  }
}
.hero-c {
  position: relative;
  z-index: 1;
}

.hero-eye {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eye::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--grad);
}

.hero-title {
  font-family: var(--fd);
  font-size: clamp(56px, 9vw, 136px);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -0.04em;
  margin-bottom: 52px;
}
.hero-title .b {
  color: var(--text);
}
.hero-title .f1 {
  color: rgba(17, 17, 17, 0.28);
}
.hero-title .f2 {
  color: rgba(17, 17, 17, 0.13);
}
.hero-title em {
  font-style: italic;
}

.hero-bot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.hero-desc {
  max-width: 380px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.hero-act {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── MARQUEE ────────────────────────────────────── */
.mq {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  background: var(--bg2);
}
.mq-track {
  display: flex;
  animation: mqanim 50s linear infinite;
  width: max-content;
}
.mq-track:hover {
  animation-play-state: paused;
}
.mq-item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 28px;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.mq-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--oli);
}
@keyframes mqanim {
  to {
    transform: translateX(-50%);
  }
}

/* ── HOME — ABOUT STRIP ─────────────────────────── */
.h-about {
  padding-top: 120px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 80px;
  align-items: start;
}
.h-about h2 {
  font-family: var(--fd);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 24px;
}
.h-about p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
  max-width: 560px;
}

/* ── SECTION HEADER ─────────────────────────────── */
.shd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 24px;
}
.shd h2 {
  font-family: var(--fd);
  font-size: 44px;
  font-weight: 300;
  font-style: italic;
}

.la {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.2s,
    gap 0.2s;
}
.la:hover {
  color: var(--text);
  gap: 14px;
}

/* ── HOME — FEATURED WORKS ──────────────────────── */
.fw-list {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 120px;
  padding: 0;
}

.fw-item {
  position: relative;
  overflow: visible;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.fw-item::before {
  display: none;
}
.fw-item:hover::before {
  display: none;
}

.fw-row {
  display: contents;
  position: relative;
  z-index: 1;
}
.fw-num {
  font-family: var(--fm);
  font-size: 10px;
  color: var(--muted2);
  flex-shrink: 0;
  display: none;
}
.fw-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fw-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.fw-cat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted2);
  flex-shrink: 0;
}
.fw-catbadge {
  font-family: var(--fm);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ame);
}
.fw-yr {
  font-family: var(--fm);
  font-size: 14px;
  color: var(--muted2);
}

.fw-title {
  font-family: var(--fd);
  font-size: clamp(32px, 5vw, 52px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  transition: color 0.3s;
}
.fw-item:hover .fw-title {
  color: var(--ame);
}

.fw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.fw-arrow-wrap {
  flex-shrink: 0;
  display: none;
  align-items: center;
}

.fw-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.35s var(--ease);
  color: var(--muted);
}
.fw-item:hover .fw-circle {
  background: var(--grad);
  border-color: transparent;
  color: white;
  transform: scale(1.05);
}

.fw-preview {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/9;
  transition: all 0.4s var(--ease);
  pointer-events: auto;
  border-radius: var(--img-radius);
  order: -1;
}
.fw-preview-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: 80px;
  font-style: italic;
  color: rgba(0, 0, 0, 0.05);
  transition: transform 0.4s var(--ease);
  aspect-ratio: 16/9;
}
.fw-item:hover .fw-preview-inner {
  transform: scale(1.02);
}
.fw-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── HOME — CTA STRIP ───────────────────────────── */
.cstrip {
  border-top: 1px solid var(--border);
  padding: 80px var(--page-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  background: var(--bg2);
}
.cstrip-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 600px 300px at 30% 50%,
      rgba(122, 112, 186, 0.07),
      transparent
    ),
    radial-gradient(
      ellipse 400px 300px at 80% 50%,
      rgba(176, 196, 156, 0.08),
      transparent
    );
  pointer-events: none;
}
.cstrip h2 {
  font-family: var(--fd);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  position: relative;
}
.cstrip-act {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   WORKS PAGE
══════════════════════════════════════════════════ */
.wpage-hero {
  min-height: 56vh;
  padding: calc(var(--nav-h) + 72px) clamp(24px, 6vw, 96px) 88px;
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--border);
}

.wpage-hero-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: clamp(48px, 8vw, 120px);
}

.wpage-hero h1 {
  font-family: var(--fd);
  font-size: clamp(88px, 13vw, 180px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.wpage-sub {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  max-width: 340px;
  line-height: 1.75;
  justify-self: end;
  padding-bottom: 10px;
}
.wpage-sub .ltag {
  margin-bottom: 8px;
}

/* ── FILTER BUTTONS ─────────────────────────────── */
/* FIX: merged two duplicate .fbtn blocks into one */
.wfilters {
  padding: 28px var(--page-padding-x);
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  background: var(--bg);
}
.wfilters::-webkit-scrollbar {
  display: none;
}

.fbtn {
  position: relative;
  height: 36px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.fbtn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s ease;
}

.fbtn:hover {
  border-color: var(--bordhi);
  color: var(--text);
}

.fbtn.active,
.fbtn.active:hover {
  background: transparent;
  color: #fff;
  border-color: transparent;
}

.fbtn.active::before {
  opacity: 1;
}

/* ── WORKS GRID ─────────────────────────────────── */
.works-projects {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: var(--bg);
}

.wgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  width: 100%;
}
.wgrid::after {
  content: "";
  background: var(--bg);
  display: none;
}
.wgrid.has-odd::after {
  display: block;
}

.wgi {
  background: var(--bg);
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: stretch;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 420px;
}
.wgi:hover {
  background: var(--bg2);
}

.wgi-num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 36px;
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted2);
  border-right: 1px solid var(--border);
}

.wgi-body {
  padding: 36px clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
}
.wgi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}
.wgi-yr {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.wgi-arr {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  transition: all 0.2s;
}
.wgi:hover .wgi-arr {
  background: var(--grad);
  border: none;
  color: white;
  transform: rotate(45deg);
  filter: none;
}
.wgi-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: var(--img-radius);
  flex-shrink: 0;
}
.wgi-cover {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: clamp(44px, 5vw, 72px);
  font-style: italic;
  color: rgba(0, 0, 0, 0.07);
  transition: transform 0.5s var(--ease);
}
.wgi:hover .wgi-cover {
  transform: scale(1.03);
}
.wgi-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wgi-title {
  font-family: var(--fd);
  font-size: clamp(27px, 2.3vw, 38px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  flex: 1;
}
.wgi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ══════════════════════════════════════════════════
   WORK DETAIL
══════════════════════════════════════════════════ */
.wd-hero {
  padding: calc(var(--nav-h) + 80px) var(--page-padding-x) 80px;
}

.wd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 48px;
  transition:
    color 0.2s,
    gap 0.2s;
}
.wd-back:hover {
  color: var(--text);
  gap: 14px;
}

.wd-title {
  font-family: var(--fd);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 100%;
  margin-bottom: 64px;
}

.wd-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 16px;
  gap: 24px 0;
}
.wd-meta > div {
  min-width: 0;
}
.wd-ml {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.wd-mv {
  font-size: 16px;
  color: var(--text);
}

@media (max-width: 600px) {
  .wd-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    margin-bottom: 24px;
  }
}

.wd-cover {
  padding: 0 var(--page-padding-x);
}
.wd-cover-inner {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--img-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fd);
  font-size: clamp(60px, 10vw, 130px);
  font-style: italic;
  color: rgba(0, 0, 0, 0.06);
}
.wd-cover-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wd-body {
  padding: 80px var(--page-padding-x);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.wd-body-label {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.wd-body-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.wd-nav {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--border);
  gap: 1px;
}
.wd-ni {
  background: var(--bg);
  padding: 40px var(--page-padding-x);
  cursor: pointer;
  transition: background 0.2s;
}
.wd-ni:hover {
  background: var(--bg2);
}
.wd-ni .dir {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.wd-ni .ttl {
  font-family: var(--fd);
  font-size: 22px;
  font-style: italic;
}
.wd-ni.nx {
  text-align: right;
}

.wd-section {
  padding: 80px var(--page-padding-x);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.wd-section-label {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  padding-top: 6px;
}
.wd-section-heading {
  font-family: var(--fd);
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
}
.wd-section-body {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}
.wd-section-body p {
  margin-bottom: 24px;
}
.wd-section-body p:last-child {
  margin-bottom: 0;
}
.wd-section-body ul {
  margin: 0 0 24px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wd-section-body ul:last-child {
  margin-bottom: 0;
}
.wd-section-body ul li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}
.wd-section-body ul li::before {
  content: "•";
  font-size: 12px;
  color: var(--muted);
  opacity: 0.4;
  flex-shrink: 0;
}
.wd-section-body b,
.wd-section-body strong { font-family: inherit; font-weight: 600; font-style: normal; color: var(--text); }
.wd-section-body i,
.wd-section-body em { font-family: inherit; font-style: italic; }
.wd-section-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 2px;
}
/* ══════════════════════════════════════════════════
   SUBPAGE HERO (SHARED)
══════════════════════════════════════════════════ */
.subpage-hero {
  width: 100%;
  padding: clamp(96px, 10vw, 140px) var(--page-padding-x) clamp(56px, 6vw, 88px);
  border-bottom: 1px solid var(--border);
}
.subpage-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: clamp(40px, 6vw, 96px);
}
.subpage-hero__title {
  margin: 0;
  font-family: var(--fd);
  font-size: clamp(64px, 8vw, 128px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text);
}
.subpage-hero__description {
  margin: 0;
  max-width: 420px;
  font-family: var(--fu);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.45;
  color: var(--muted);
}

/* ══════════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════════ */

/* Hero */
.about-hero {
  width: 100%;
  padding: clamp(120px, 12vw, 180px) var(--page-padding-x)
    clamp(80px, 8vw, 120px);
}

.about-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: clamp(64px, 8vw, 140px);
  align-items: start;
}

.about-hero__content {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* FIX: merged two conflicting .about-hero__title rules — removed !important override */
.about-hero__title {
  margin: 0;
  font-family: var(--fd);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  font-style: normal;
}

.about-hero__info {
  display: grid;
  gap: 8px;
  margin-top: 48px;
}

/* FIX: merged two duplicate .about-hero__info h2 rules — kept animated version only */
.about-hero__info h2 {
  margin: 0;
  font-family: var(--fd);
  font-style: italic;
  font-size: clamp(64px, 7vw, 112px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
  background: linear-gradient(135deg, #6a4f7a, #86a36e, #6a4f7a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}

.about-hero__info p {
  margin: 0;
  font-size: clamp(16px, 1vw, 24px);
  line-height: 1.4;
  color: var(--muted);
}

.about-hero__image-wrap {
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--img-radius);
}
.about-hero__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--img-radius);
}

/* About Lab section */
.about-lab {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 120px var(--page-padding-x) 100px;
  background: var(--bg);
  overflow: hidden;
}

.about-lab-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  min-height: calc(100vh - 220px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.about-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.about-label {
  font-family: var(--fm);
  font-size: 16px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 100px;
}
.about-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86a36e;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.about-lab-title {
  width: 100%;
  font-family: var(--fd);
  font-size: clamp(32px, 4.2vw, 72px);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 48px;
}
.about-lab-title span {
  color: rgba(17, 17, 17, 0.45);
}

.about-lab-desc {
  max-width: 800px;
  font-family: var(--fu);
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--muted);
  margin-bottom: 80px;
}

.about-ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.about-way-num {
  font-family: var(--fm);
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--muted2);
  margin-bottom: 20px;
}
.about-way h3 {
  margin: 0 0 14px;
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}
.about-way p {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}

/* About content sections */
/* FIX: merged two conflicting .ab-sec > div rules — removed max-width: 1120px version */
.ab-sec {
  padding: 80px var(--px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-top: 1px solid var(--border);
}
.ab-sec > div {
  max-width: none;
  margin: 0;
}

.ab-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 200px;
  align-items: start;
}
.ab-row-label {
  font-family: var(--fm);
  font-size: 14px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 8px;
}
.ab-row-content {
  min-width: 0;
}

.about-intro {
  font-family: var(--fd);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3.5vw, 64px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}
.about-body {
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 14px;
}
.about-quote-inline {
  font-size: 20px;
  line-height: 1.7;
  color: var(--muted2);
  font-style: italic;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.hi-ame {
  color: var(--ame);
  font-style: italic;
}
.hi-oli {
  color: var(--oli);
  font-style: italic;
}
.hi-bold {
  color: var(--text);
  font-weight: 500;
}

.ab-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.ab-skill-label {
  font-family: var(--fm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--oli);
  margin-bottom: 18px;
  margin-top: 8px;
}
.ab-skill-list {
  font-size: 20px;
  line-height: 2.2;
  color: var(--muted);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.tl-item:first-child {
  padding-top: 0;
}
.tl-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.tl-role {
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.tl-co {
  font-family: var(--fm);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ame);
}
.tl-period {
  font-family: var(--fm);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
  text-align: right;
}
.tl-url {
  font-size: 11px;
  color: var(--muted2);
}

.ab-lbl {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.sk-l {
  display: flex;
  flex-direction: column;
}
.sk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.sk-name {
  font-size: 13px;
  color: var(--text);
}
.sk-bar {
  width: 72px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.sk-fill {
  height: 100%;
  border-radius: 1px;
  background: var(--grad);
  transition: width 1.2s var(--ease);
}

.cbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fm);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ame);
  border: 1px solid rgba(122, 112, 186, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
}
.cbadge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ame);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.tools-l {
  display: flex;
  flex-direction: column;
}
.tl-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.tl-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--grad);
  flex-shrink: 0;
}

.sv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sv-chip {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  color: var(--muted);
  transition: all 0.2s;
}
.sv-chip:hover {
  border-color: var(--ame);
  color: var(--ame);
}

.about-profile {
  width: 100%;
  padding: 80px var(--page-padding-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 450px);
  align-items: center;
  gap: 80px;
}
.about-profile__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-role {
  margin: 0;
  font-family: var(--fu);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.about-profile__photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-copy {
  padding: 0 var(--page-padding-x) 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 80px;
}
.about-copy p {
  font-family: var(--fu);
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0 0 24px;
}

.about-quote {
  padding: 44px 40px 44px 48px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.about-quote p {
  font-family: var(--fd);
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin: 0;
}
.about-quote span {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.about-list li {
  font-size: 15px;
  color: var(--text);
}

/* ══════════════════════════════════════════════════
   QUIET (BLOG) PAGE
══════════════════════════════════════════════════ */
/* FIX: removed duplicate .qpage-hero from works section — single definition here */
.qpage-hero {
  height: calc(100vh - var(--nav-h));
  padding: 60px var(--page-padding-x) 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.qpage-hero h1 {
  font-family: var(--fd);
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.qpage-sub {
  text-align: right;
  max-width: 320px;
}
.qpage-sub p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
}

.q-list {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.q-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px var(--page-padding-x);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
  overflow: hidden;
}
.q-item:last-child {
  border-bottom: none;
}

/* ===== QUIET LIST: COVER IMAGE ON HOVER ===== */

.q-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;

  width: 50%;
  z-index: 0;

  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%
    ),
    var(--q-cover, none);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  opacity: 0;
  filter: grayscale(100%);
  mix-blend-mode: normal;

  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.q-item:hover::before {
  opacity: 0.3;
}

.q-num,
.q-main,
.q-right,
.q-circle {
  position: relative;
  z-index: 1;
}

.q-num {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted2);
}
.q-catdate {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.q-cat {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ame);

  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.q-cat::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted2);
  opacity: 0.8;
  display: inline-block;
}
.q-date {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted2);
}
.q-title {
  font-family: var(--fd);
  font-size: clamp(32px, 4vw, 56px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.q-item:hover .q-title {
  color: var(--ame);
}
.q-excerpt {
  font-size: 20px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

.q-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.q-reading {
  font-family: var(--fm);
  font-size: 9px;
  color: var(--muted2);
  letter-spacing: 1px;
}
.q-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.4s var(--ease);
  color: var(--muted);
}

/* Quiet Detail */
.qd-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  padding: calc(var(--nav-h) + 80px) var(--page-padding-x) 64px;
  border-bottom: 1px solid var(--border);
}
.qd-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 48px;
  transition:
    color 0.2s,
    gap 0.2s;
}
.qd-back:hover {
  color: var(--text);
  gap: 14px;
}

.qd-meta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.qd-cat {
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--grad);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 700;
}
.qd-date {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}
.qd-reading {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted2);
}

.qd-title {
  font-family: var(--fd);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.qd-body {
  padding: 80px var(--page-padding-x);
  max-width: 1000px;
  margin: 0 auto;
}

.qd-lead {
  font-family: var(--fd);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 48px;
  font-style: italic;
}
.qd-text {
  font-size: 17px;
  line-height: 1.85;
  color: #333;
}
.qd-text p {
  margin-bottom: 28px;
}
.qd-text h2 {
  font-family: var(--fd);
  font-size: 28px;
  font-style: italic;
  font-weight: 600;
  margin: 48px 0 20px;
  color: var(--text);
}
.qd-text h3 {
  font-family: var(--fu);
  font-size: 18px;
  font-weight: 600;
  margin: 36px 0 16px;
  color: var(--text);
}
.qd-text blockquote {
  border-left: 3px solid;
  border-image: var(--grad) 1;
  padding-left: 24px;
  margin: 32px 0;
  font-family: var(--fd);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--oli);
  line-height: 1.5;
}
.qd-divider {
  margin: 48px 0;
  border: none;
  border-top: 1px solid var(--border);
}

.q-nav {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--border);
  gap: 1px;
}
.q-ni {
  background: var(--bg);
  padding: 40px var(--page-padding-x);
  cursor: pointer;
  transition: background 0.2s;
}
.q-ni:hover {
  background: var(--bg2);
}
.q-ni .dir {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.q-ni .ttl {
  font-family: var(--fd);
  font-size: 22px;
  font-style: italic;
}
.q-ni.nx {
  text-align: right;
}

/* ══════════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════════ */
.con-hero {
  height: calc(100vh - var(--nav-h));
  padding: 60px var(--page-padding-x) 80px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.con-title {
  font-family: var(--fd);
  font-size: clamp(50px, 8vw, 120px);
  font-weight: 300;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
}
.con-info {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.ci-lbl {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ci-val {
  font-size: 14px;
  transition: color 0.2s;
}
.ci-val a:hover {
  color: var(--ame);
}

.con-sec {
  padding: 80px var(--px);
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.con-sec + .con-sec {
  border-top: 1px solid var(--border);
}

.con-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 300px;
  align-items: start;
}
/* ===== CONTACT SECTION LABEL DESCRIPTION ===== */

.con-sec--connect .con-row-label {
  gap: 20px;
}

.con-row-label {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 4px;
}

.con-row-label span {
  font-family: var(--fm);
  font-size: 20px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.con-row-label p {
  max-width: 500px;
  font-family: var(--fu);
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.con-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.con-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.con-info-label {
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--oli);
  margin-top: 4px;
  margin-bottom: 24px;
}
.con-info-val {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.8;
}
.con-info-val a:hover {
  color: var(--ame);
}

.con-body {
  padding: 80px var(--page-padding-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.cform {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fg textarea {
  resize: vertical;
  min-height: 130px;
}

/* ── Contact responsive balance ─────────────────── */

@media (max-width: 1440px) {
  .con-sec {
    padding: 72px var(--px);
  }

  .con-row {
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 120px;
    align-items: start;
  }

  .con-row-label p {
    max-width: 300px;
  }

  .con-form-wrap {
    max-width: 1000px;
    width: 100%;
  }
}

@media (max-width: 960px) {
  .con-sec {
    padding: 64px var(--px);
  }

  .con-row {
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 80px;
  }

  .con-row-label span {
    font-size: 16px;
  }

  .con-row-label p {
    max-width: 260px;
    font-size: 16px;
    line-height: 1.7;
  }

  .con-info-val {
    font-size: 16px;
  }

  .con-form-wrap {
    max-width: none;
    width: 100%;
  }

  .frow {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.soc-l {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-top: 34px;
}
.soc-a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.2s;
}
.soc-a:hover {
  padding-left: 8px;
}
.soc-name {
  font-family: var(--fd);
  font-size: 26px;
  font-style: italic;
  transition: color 0.2s;
}
.soc-a:hover .soc-name {
  color: var(--ame);
}
.soc-arr {
  color: var(--muted);
  transition: color 0.2s;
}
.soc-a:hover .soc-arr {
  color: var(--ame);
}

/* ══════════════════════════════════════════════════
   ADMIN
══════════════════════════════════════════════════ */
.a-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg);
}
.a-box {
  width: 100%;
  max-width: 400px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}
.a-box h2 {
  font-family: var(--fd);
  font-size: 32px;
  font-style: italic;
  margin-bottom: 8px;
}
.a-box p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 32px;
}
.a-form-in {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lerr {
  color: var(--danger);
  font-size: 12px;
  margin-top: -8px;
  display: none;
}
.lerr.show {
  display: block;
}

.a-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.a-topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
}
.a-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.a-export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
  transition: opacity 0.2s, transform 0.2s;
}
.a-export-btn:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.a-layout {
  display: flex;
  min-height: 100vh;
}
.a-side {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 0 0 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.a-side-ttl {
  font-family: var(--fm);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.ani {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  transition: all 0.15s;
  border-left: 2px solid transparent;
}
.ani:hover {
  color: var(--text);
  background: var(--surface);
}
.ani.active {
  color: var(--ame);
  border-left-color: var(--ame);
  background: rgba(122, 112, 186, 0.04);
}


.a-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--fm);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--danger);
  cursor: pointer;
  transition: opacity 0.2s;
}
.a-logout:hover {
  opacity: 0.7;
}

.a-cont {
  flex: 1;
  padding: 48px;
  padding-bottom: 120px;
  background: var(--bg);
}
.a-sec {
  display: none;
}
.a-sec.active {
  display: block;
}
.a-ptl {
  font-family: var(--fd);
  font-size: 40px;
  font-style: italic;
  margin-bottom: 8px;
}
.a-psub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 40px;
}

.wtbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.wtbl th {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.wtbl td {
  padding: 16px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: middle;
}
.wtbl tr:last-child td {
  border-bottom: none;
}
.wtbl tr:hover td {
  background: var(--bg2);
}

.ta {
  display: flex;
  gap: 8px;
}
.bed {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--bordhi);
  color: var(--muted);
  background: var(--bg);
  transition: all 0.15s;
}
.bdel {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: var(--danger);
  background: none;
  transition: all 0.15s;
}
.bed:hover {
  border-color: var(--ame);
  color: var(--ame);
}
.bdel:hover {
  border-color: var(--danger);
  background: rgba(224, 82, 82, 0.06);
}

.badd {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  color: white;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 700;
  margin-bottom: 20px;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}
.badd:hover {
  opacity: 0.85;
}

.mo {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}
.mo.open {
  display: flex;
}
.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  animation: moIn 0.3s var(--ease);
}
@keyframes moIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mhd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 32px 48px 24px;
  border-bottom: 1px solid var(--border);
}
.mttl {
  font-family: var(--fd);
  font-size: 26px;
  font-style: italic;
}
.mcls {
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.mcls:hover {
  color: var(--text);
}
.mform {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  flex: 1;
  padding: 28px 48px 24px;
  scrollbar-width: thick;
  scrollbar-color: var(--border) transparent;
}
.mform [contenteditable] b,
.mform [contenteditable] strong {
  font-weight: 600;
}
.mform::-webkit-scrollbar {
  width: 10px;
}
.mform::-webkit-scrollbar-track {
  background: transparent;
}
.mform::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 2px solid white;
}
.mrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mact {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 16px 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.bsave {
  background: var(--grad);
  color: white;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 700;
  transition: opacity 0.2s;
  cursor: pointer;
  border: none;
}
.bsave:hover {
  opacity: 0.85;
}
.bcanc {
  border: 1px solid var(--bordhi);
  color: var(--muted);
  background: none;
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.2s;
  cursor: pointer;
}
.bcanc:hover {
  color: var(--text);
  border-color: var(--text);
}
.a-frm {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
}
.ab-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  .ab-skills-grid { grid-template-columns: 1fr; }
}

.toast {
  position: fixed;
  top: 72px;
  right: 28px;
  z-index: 9999;
  background: #86a36e;
  color: #fff;
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 22px;
  border-radius: 100px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(134, 163, 110, 0.35);
  animation:
    tIn 0.25s var(--ease),
    tOut 0.25s var(--ease) 2.3s forwards;
}
.toast::before {
  content: "✓";
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
}
.toast-error {
  background: #c0392b;
  box-shadow: 0 4px 20px rgba(192, 57, 43, 0.3);
}
.toast-error::before {
  content: "✕";
}
.toast-info {
  background: #5a7a9a;
  box-shadow: 0 4px 20px rgba(90, 122, 154, 0.3);
}
.toast-info::before {
  content: "…";
  letter-spacing: 0;
}
@keyframes tIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tOut {
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

/* ══════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════ */
.text-muted {
  color: var(--muted);
}
.text-small {
  font-size: 11px;
}
.text-xs {
  font-size: 13px;
}
.font-mono {
  font-family: var(--fm);
}
.letter-spacing-2 {
  letter-spacing: 2px;
}
.uppercase {
  text-transform: uppercase;
}
.line-height-16 {
  line-height: 1.6;
}
.margin-top-8 {
  margin-top: 8px;
}
.margin-bottom-16 {
  margin-bottom: 16px;
}
.margin-bottom-32 {
  margin-bottom: 32px;
}
.margin-bottom-48 {
  margin-bottom: 48px;
}
.padding-top-80 {
  padding-top: 80px;
}
.padding-bottom-120 {
  padding-bottom: 120px;
}
.padding-top-16 {
  padding-top: 16px;
}
.skill-95 {
  width: 95%;
}
.skill-82 {
  width: 82%;
}
.skill-90 {
  width: 90%;
}
.skill-88 {
  width: 88%;
}
.skill-85 {
  width: 85%;
}
.skill-93 {
  width: 93%;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ab-wrap {
    grid-template-columns: 1fr;
  }
  .ab-rc {
    display: none;
  }
  .ab-lc {
    padding-left: var(--page-padding-x);
  }
}

@media (max-width: 980px) {
  .about-profile {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .about-profile__photo {
    justify-content: flex-start;
  }
  .about-copy {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 960px) {
  #nav {
    padding: 0 24px;
  }
  .nlinks {
    display: none;
  }
  .nburger {
    display: flex;
  }

  .hero {
    padding: 0 24px 60px;
  }
  .hero-bot {
    flex-direction: column;
    align-items: flex-start;
  }

  .wpage-hero {
    min-height: auto;
    padding: calc(var(--nav-h) + 72px) var(--page-padding-x) 64px;
  }
  .wpage-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .wpage-sub {
    justify-self: start;
    text-align: left;
    max-width: 420px;
  }

  .qpage-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .wgrid {
    grid-template-columns: 1fr;
  }
  .wgi {
    grid-template-columns: 42px 1fr;
    min-height: auto;
  }
  .wgi-body {
    padding: 28px 24px;
  }
  .wgi-num {
    padding-top: 28px;
  }

  .wd-body,
  .wd-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .wd-nav,
  .q-nav {
    grid-template-columns: 1fr;
  }

  .ab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tl-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tl-period {
    text-align: left;
  }

  .con-body {
    grid-template-columns: 1fr;
  }
  .frow {
    grid-template-columns: 1fr;
  }
  .cstrip {
    flex-direction: column;
  }

  .q-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .q-num {
    display: none;
  }
  .q-right {
    flex-direction: row;
    align-items: center;
  }

  .fw-row {
    display: contents;
  }
  .fw-num {
    display: none;
  }
  .fw-preview {
    width: 100%;
    aspect-ratio: 16/9;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .a-layout {
    flex-direction: column;
  }
  .a-side {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
  }
  .a-cont {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .fbtn {
    height: 36px;
    min-height: 36px;
    padding: 0 20px;
  }

  .ab-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ab-skills-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .con-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .con-info-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-hero {
    padding: 96px var(--page-padding-x) 64px;
  }
  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-hero__content {
    min-height: auto;
    gap: 80px;
  }
  .about-lab {
    padding: 80px var(--page-padding-x) 72px;
  }
  .about-ways {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .subpage-hero {
    padding: 96px var(--page-padding-x) 56px;
  }
  .subpage-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .subpage-hero__title {
    font-size: clamp(48px, 16vw, 72px);
  }
  .subpage-hero__description {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .h-about {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .con-info {
    gap: 24px;
  }

  .con-info-val {
    font-size: 15px;
  }

  .wpage-hero h1 {
    font-size: clamp(72px, 22vw, 110px);
  }
  .wgi {
    grid-template-columns: 36px 1fr;
  }
  .wgi-body {
    padding: 24px 20px;
  }
  .wgi-num {
    padding-top: 24px;
  }
  .wgi-arr {
    width: 38px;
    height: 38px;
  }
  .wgi-title {
    font-size: 26px;
  }

  .about-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
  .about-profile {
    padding: 60px var(--page-padding-x) 40px;
    gap: 40px;
  }
  .about-role {
    font-size: 16px;
  }

  .content-container {
    padding: 40px 20px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .flinks {
    flex-direction: column;
    gap: 12px;
  }
  .fdot {
    display: none;
  }

  .wfilters {
    flex-wrap: wrap;
    gap: 8px;
  }
  .cstrip {
    padding: 60px var(--page-padding-x);
    align-items: flex-start;
  }
  .cstrip-act {
    flex-direction: column;
    width: 100%;
  }
  .cstrip-act .btn1,
  .cstrip-act .btn2 {
    width: 100%;
    justify-content: center;
  }

  .fw-preview {
    display: block;
    border-radius: 0;
    margin: 0 -20px;
    width: 100vw;
  }
  .shd {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .fw-cat-row {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .fw-tags {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
  }
  .fw-circle {
    display: none;
  }
  .fw-list .tag {
    font-size: 10px;
    padding: 2px 8px;
  }

  .nburger {
    gap: 6px;
  }
}
/* ── BACK TO TOP ───────────────────────────────── */

.btt {
  position: fixed;
  right: 8px;
  bottom: 8px;

  width: 36px;
  height: 36px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--bordhi);

  color: var(--muted);
  font-size: 0;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  z-index: 90;

  transition:
    opacity 0.25s var(--ease),
    visibility 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    color 0.25s var(--ease);
}

.btt.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.btt::before {
  content: "↑";
  font-family: var(--fm);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.btt:hover {
  background: none;
  box-shadow: none;
  color: white;
  transform: translateY(-2px);
}

/* ===== CAT RESPONSIVE FIX ===== */

#catImg {
  width: 650px;
  position: absolute;
  right: -200px;
  bottom: 140px;
  pointer-events: none;
  z-index: 1;
}
/* Desktop lớn: >= 1440px */
@media (min-width: 1440px) {
  #catImg {
    width: 600px;
    right: -150px;
    bottom: 120px;
  }
}

/* Laptop / tablet ngang: 1024px - 1439px */
@media (max-width: 1439px) and (min-width: 1024px) {
  #catImg {
    width: 500px;
    right: -180px;
    bottom: 120px;
  }
}

/* Màn hẹp kiểu 900px - 1023px */
@media (max-width: 1023px) and (min-width: 769px) {
  #catImg {
    width: 480px;
    right: -220px;
    bottom: 130px;
  }
}
/* Mobile */
@media (max-width: 768px) {
  .hero {
    position: relative;
    overflow: hidden;
  }

  #catImg {
    width: 80vw;
    right: -42vw;
    bottom: 0;

    position: absolute;
    z-index: 1;

    mix-blend-mode: multiply;

    animation: none !important;
    transition: none !important;
    transform: none !important;

    pointer-events: none;
  }

  .hero-c {
    position: relative;
    z-index: 3;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  #catImg {
    width: 80vw;
    right: -48vw;
    bottom: 0;

    position: absolute;
    z-index: 1;

    mix-blend-mode: multiply;

    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .hero-c {
    position: relative;
    z-index: 3;
  }
}
@media (max-width: 768px) {
  .hero-desc {
    max-width: 68vw;
  }
}

@media (max-width: 480px) {
  .hero-desc {
    max-width: 60vw;
  }
}

/* ===== QUIET LIST: desktop layout ===== */

@media (min-width: 769px) {
  .q-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 72px;
    align-items: start;
    gap: 24px;
  }

  .q-num {
    display: block;
    align-self: start;
    padding-top: 2px;
  }

  .q-main {
    align-self: start;
  }

  .q-right {
    display: contents;
  }

  .q-reading {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    margin-top: 24px;

    font-family: var(--fm);
    font-size: 11px;
    color: var(--muted2);
    letter-spacing: 3px;
    white-space: nowrap;
  }

  .q-circle {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: start;

    width: 56px;
    height: 56px;
  }
}

/* ===== QUIET LIST: tablet / mobile fix ===== */

@media (max-width: 768px) {
  .q-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px;
    gap: 20px;
    align-items: start;
    padding: 36px var(--page-padding-x);
  }

  .q-num {
    display: none;
  }

  .q-main {
    grid-column: 1;
    min-width: 0;
  }

  .q-catdate {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
  }

  .q-title {
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.05;
    max-width: 100%;
  }

  .q-excerpt {
    font-size: 15px;
    line-height: 1.75;
    max-width: 100%;
  }

  .q-right {
    display: contents;
  }

  .q-reading {
    grid-column: 1;
    margin-top: 18px;
    font-size: 10px;
    letter-spacing: 2px;
  }

  .q-circle {
    grid-column: 2;
    grid-row: 1;
    width: 48px;
    height: 48px;
    justify-self: end;
    align-self: start;
  }

  .q-item::before {
    width: 100%;
    opacity: 0;
    background-position: center;
  }

  .q-item:hover::before {
    opacity: 0.16;
  }
}

@media (max-width: 480px) {
  .q-item {
    grid-template-columns: 1fr 44px;
    gap: 16px;
    padding: 32px var(--page-padding-x);
  }

  .q-title {
    font-size: clamp(30px, 10vw, 46px);
  }

  .q-excerpt {
    font-size: 14px;
  }

  .q-circle {
    width: 44px;
    height: 44px;
  }
}
/* Quiet list button: clean default outline, no stroke on hover */
.q-list .q-circle {
  border: none !important;
  outline: none !important;
  background: transparent;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--border);
}

.q-list .q-item:hover .q-circle,
.q-list .q-circle:hover {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  background: var(--grad);
  color: white;
  transform: rotate(45deg);
}

/* ===== QUIET DETAIL RESPONSIVE SPACING FIX ===== */

/* Tablet / small laptop: <= 960px */
@media (max-width: 960px) {
  .qd-hero {
    padding: calc(var(--nav-h) + 56px) var(--page-padding-x) 44px;
  }

  .qd-meta-row {
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  .qd-title {
    font-size: clamp(52px, 8vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.035em;
  }

  .qd-cover {
    padding: 36px var(--page-padding-x) 0;
  }

  .qd-cover-inner {
    aspect-ratio: 16 / 10;
    border-radius: var(--img-radius);
  }

  .qd-body {
    padding: 48px var(--page-padding-x) 84px;
    display: block;
  }

  .qd-lead {
    font-size: clamp(30px, 5.6vw, 44px);
    line-height: 1.32;
    margin-bottom: 40px;
    white-space: pre-line;
  }

  .qd-text {
    font-size: 16px;
    line-height: 1.85;
  }

  .qd-text p {
    margin-bottom: 24px;
  }

  .qd-text h2 {
    font-size: clamp(28px, 5vw, 38px);
    line-height: 1.16;
    margin: 52px 0 22px;
  }

  .qd-text blockquote {
    font-size: 20px;
    line-height: 1.55;
    margin: 32px 0;
  }
}

/* Mobile large: <= 768px */
@media (max-width: 768px) {
  .qd-hero {
    padding: calc(var(--nav-h) + 44px) var(--page-padding-x) 40px;
  }

  .qd-meta-row {
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
  }

  .qd-title {
    font-size: clamp(46px, 12vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .qd-cover {
    padding: 28px var(--page-padding-x) 0;
  }

  .qd-cover-inner {
    aspect-ratio: 16 / 10.5;
    border-radius: var(--img-radius);
  }

  .qd-body {
    padding: 40px var(--page-padding-x) 72px;
    display: block;
  }

  .qd-lead {
    font-size: clamp(28px, 7.2vw, 38px);
    line-height: 1.36;
    margin-bottom: 36px;
    white-space: pre-line;
  }

  .qd-text {
    font-size: 16px;
    line-height: 1.82;
  }

  .qd-text p {
    margin-bottom: 22px;
  }

  .qd-text h2 {
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.14;
    margin: 48px 0 20px;
  }

  .qd-text blockquote {
    font-size: 19px;
    line-height: 1.55;
    margin: 30px 0;
  }
}

/* Small mobile: <= 480px */
@media (max-width: 480px) {
  .qd-hero {
    padding: calc(var(--nav-h) + 36px) var(--page-padding-x) 36px;
  }

  .qd-meta-row {
    margin-bottom: 24px;
  }

  .qd-title {
    font-size: clamp(42px, 11vw, 56px);
    line-height: 1;
  }

  .qd-cover {
    padding-top: 28px;
  }

  .qd-cover-inner {
    aspect-ratio: 4 / 3;
    border-radius: var(--img-radius);
  }

  .qd-body {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  .qd-lead {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.38;
    margin-bottom: 32px;
  }

  .qd-text {
    font-size: 15.5px;
    line-height: 1.82;
  }

  .qd-text p {
    margin-bottom: 20px;
  }

  .qd-text h2 {
    font-size: clamp(26px, 7vw, 34px);
    margin: 44px 0 18px;
  }
}

/* Cat animation handled by JS RAF loop in index.html */
#catImg {
  will-change: transform;
}

/* ===== DISABLE CUSTOM CURSOR ON TOUCH / MOBILE ===== */

@media (max-width: 768px), (pointer: coarse) {
  body,
  .hero {
    cursor: auto !important;
  }

  .hero-cursor,
  .hero-cursor-ring,
  .hero-cursor-g {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
/* ══════════════════════════════════════════════════
   404 PAGE
══════════════════════════════════════════════════ */

.page-404 {
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  cursor: auto;
}

.notfound {
  width: 100%;
  min-height: 100vh;
  padding: var(--page-padding-x);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: center;
  gap: clamp(48px, 8vw, 140px);
}

.notfound-copy {
  text-align: left;
}

.notfound .ltag {
  margin-bottom: 28px;
  font-size: 14px;
  letter-spacing: 3px;
}

.notfound-title {
  max-width: 920px;
  font-family: var(--fd);
  font-size: clamp(56px, 8vw, 132px);
  font-weight: 300;
  line-height: 0.97;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}

.notfound-title em {
  font-style: italic;
}

.notfound-desc {
  max-width: 520px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.notfound-cat {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

@media (max-width: 768px) {
  .notfound {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 40px;
  }

  .notfound-cat {
    max-width: 260px;
    justify-self: start;
    order: -1;
  }

  .notfound-title {
    font-size: clamp(48px, 16vw, 80px);
  }
}
.notfound-cat.flying-cat {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  width: clamp(180px, 24vw, 420px);
  max-width: none;
  justify-self: auto;
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: darken;
}

.float-item {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 19;
  width: 100px;
  height: 100px;
  max-width: none;
  pointer-events: none;
  will-change: transform;
  mix-blend-mode: multiply;
}
@media (max-width: 768px) {
  .page-404 {
    overflow: hidden;
  }

  .notfound {
    min-height: 100vh;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 28px;
    padding: 32px 20px;
  }

  .notfound-copy {
    max-width: 100%;
    text-align: left;
    position: relative;
    z-index: 5;
  }

  .notfound .ltag {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 2.4px;
  }

  .notfound-title {
    max-width: 100%;
    font-size: clamp(44px, 16vw, 72px);
    line-height: 0.95;
    margin-bottom: 24px;
  }

  .notfound-desc {
    max-width: 320px;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .notfound-cat.flying-cat {
    width: 145px;
    max-width: none;
  }

  .float-item {
    display: none;
  }
}
