:root {
  --bg: #f7f3ec;
  --surface: #fffcf7;
  --surface-elevated: #ffffff;
  --ink: #171a1c;
  --muted: #6e716a;
  --border: #ded6c8;
  --accent: #0f766e;
  --accent-2: #b7791f;
  --dark: #202725;
  --shadow: 0 24px 70px rgba(44, 39, 31, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 999px;
  --content: min(1120px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(15, 118, 110, 0.14), transparent 28rem),
    radial-gradient(circle at 85% 12%, rgba(183, 121, 31, 0.14), transparent 30rem),
    var(--bg);
  font-family: "Noto Sans KR", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.home-shell,
.portfolio-shell {
  width: var(--content);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.home-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.home-hero {
  width: min(920px, 100%);
  padding: clamp(32px, 6vw, 76px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.82);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font: 700 0.78rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Fraunces", "Noto Sans KR", serif;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 9vw, 7.3rem);
  line-height: 0.9;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.95;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-copy,
.headline {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions,
.hero-links,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button,
.text-link,
.project-links a,
.certificate-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}

.button {
  padding: 0 20px;
  border: 1px solid var(--border);
}

.button.primary {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.button.ghost,
.text-link,
.project-links a,
.certificate-card a {
  padding: 0 16px;
  color: var(--accent);
  background: rgba(15, 118, 110, 0.08);
}

.inline-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
  border-radius: 0;
}

.button.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.hero-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.hero-main,
.hero-card,
.section-block {
  border: 1px solid var(--border);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: var(--shadow);
}

.hero-main {
  display: flex;
  flex-direction: column;
  padding: clamp(32px, 6vw, 72px);
  border-radius: var(--radius-lg);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.avatar-mark {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 40px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--dark));
  font-family: "Fraunces", serif;
  font-size: 4.2rem;
}

.profile-photo {
  width: 100%;
  height: 100%;
  margin: 0;
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  border-radius: 40px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.16);
  object-fit: cover;
}

dl {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
}

.section-block {
  margin-top: 28px;
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading-skills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading.compact {
  margin-bottom: 16px;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.split p:last-child {
  max-width: 320px;
  color: var(--muted);
  line-height: 1.7;
}

.project-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-grid {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.skill-more-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 700 0.82rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  padding: 0;
  text-transform: uppercase;
}

.skill-group {
  display: grid;
  /*grid-template-columns: 150px minmax(0, 1fr);*/
  gap: 18px;
  align-items: start;
  width: fit-content;
  max-width: 100%;
  /*padding: 18px;*/
  /*border: 1px solid var(--border);*/
  border-radius: var(--radius-md);
  /*background: var(--surface-elevated);*/
}

.skill-group h3 {
  margin-bottom: 0;
  color: var(--muted);
  font: 700 0.78rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip-inline-hidden[hidden] {
  display: none;
}

.skill-chip-inline-hidden {
  display: contents;
}

.skill-chip,
.project-skill-chip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-elevated);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.history-summary {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.history-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.history-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.history-title-row h3 {
  margin: 0;
}

.history-detail {
  display: none;
}

.history-toggle:checked ~ .history-preview {
  display: none;
}

.history-toggle:checked ~ .history-detail {
  display: block;
}

.history-detail-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 13px;
}

.history-detail-button .close-label {
  display: none;
}

.history-toggle:checked ~ .history-title-row .open-label {
  display: none;
}

.history-toggle:checked ~ .history-title-row .close-label {
  display: inline;
}

.project-card,
.certificate-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}

.project-card {
  overflow: hidden;
  padding: 28px;
}

.project-media-link {
  display: block;
  margin: 0 0 24px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
}

.project-media {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(183, 121, 31, 0.16)),
    var(--surface);
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shnea-viewer img {
  cursor: zoom-in;
}

.shnea-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.14), transparent 34%),
    rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(8px);
}

.shnea-lightbox__surface {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1200px, 100%);
  max-height: 100%;
}

.shnea-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.45);
  cursor: zoom-out;
}

.shnea-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.project-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 22px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 247, 0.84);
  box-shadow: var(--shadow);
}

.project-detail .project-media {
  min-width: 0;
  min-height: 100%;
}

.project-detail-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.project-detail h1 {
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  line-height: 0.98;
}

.project-card h3 {
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.back-nav {
  margin: 0 0 18px;
}

.detail-text {
  font-size: 1.08rem;
}

.detail-links {
  margin-top: 30px;
}

.project-topline,
.timeline-date {
  color: var(--accent-2);
  font: 700 0.78rem/1.4 "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.project-summary,
.muted,
.rich-text {
  color: var(--muted);
  line-height: 1.75;
}

.rich-text .shnea-blocknote-viewer,
.rich-text .shnea-blocknote-viewer .bn-container,
.rich-text .shnea-blocknote-viewer .bn-editor {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  background: transparent !important;
  background-color: transparent !important;
}

.rich-text .shnea-blocknote-viewer [data-mantine-color-scheme],
.rich-text .shnea-blocknote-viewer .bn-mantine,
.rich-text .shnea-blocknote-viewer .bn-default-styles,
.rich-text .shnea-blocknote-viewer .bn-block-group {
  background: transparent !important;
  background-color: transparent !important;
}

.rich-text .shnea-blocknote-viewer img,
.rich-text .shnea-blocknote-viewer video,
.rich-text .shnea-blocknote-viewer iframe {
  display: block;
  max-width: 100% !important;
  height: auto !important;
}

.rich-text .shnea-blocknote-viewer figure,
.rich-text .shnea-blocknote-viewer [data-content-type="image"] {
  max-width: 100%;
  overflow: hidden;
}

.shnea-blocknote-modal {
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr) !important;
  align-items: stretch !important;
  justify-items: center !important;
  min-height: 100vh;
  min-height: 100dvh;
}

.shnea-blocknote-modal__image {
  max-width: min(100%, 1200px) !important;
  max-height: calc(100vh - 96px) !important;
}

.shnea-blocknote-modal__stage {
  box-sizing: border-box;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 32px;
}

.shnea-blocknote-modal__toolbar {
  align-self: start;
  justify-self: center;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.certificate-card {
  padding: 22px;
}

.portfolio-ask-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.portfolio-ask-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-ask-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.portfolio-ask-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portfolio-source-pill,
.portfolio-source-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.portfolio-ask-widget {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}

.portfolio-ask-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(23, 26, 28, 0.42);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.portfolio-ask-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 64px;
  width: 64px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--dark);
  box-shadow: 0 22px 44px rgba(22, 28, 30, 0.22);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 180ms ease, transform 180ms ease;
}

.portfolio-ask-fab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
}

.portfolio-ask-fab-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-ask-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, calc(100vw - 32px));
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: rgba(255, 252, 247, 0.98);
  box-shadow: -18px 0 60px rgba(18, 22, 24, 0.18);
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 260ms ease;
  pointer-events: auto;
}

.portfolio-ask-widget.is-open .portfolio-ask-panel {
  transform: translateX(0);
}

.portfolio-ask-widget.is-open .portfolio-ask-fab {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
}

.portfolio-ask-sheet-header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid rgba(222, 214, 200, 0.72);
  background: rgba(255, 252, 247, 0.98);
}

.portfolio-ask-sheet-header h3 {
  margin-bottom: 0;
}

.portfolio-ask-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-elevated);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.portfolio-ask-sheet-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
}

.portfolio-ask-sheet-body > .portfolio-ask-description {
  padding: 18px 22px 0;
}

.portfolio-ask-chat {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  padding: 16px 22px 28px;
}

.portfolio-chat-message {
  display: grid;
  gap: 8px;
}

.portfolio-chat-message-user {
  justify-items: end;
}

.portfolio-chat-message-assistant {
  justify-items: start;
}

.portfolio-chat-message-guide {
  margin-top: 2px;
}

.portfolio-chat-meta {
  color: var(--muted);
  font: 700 0.72rem/1 "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-chat-bubble {
  max-width: min(88%, 320px);
  padding: 14px 16px;
  border-radius: 18px;
  line-height: 1.7;
}

.portfolio-chat-message-user .portfolio-chat-bubble {
  border-bottom-right-radius: 6px;
  background: var(--dark);
  color: #fff;
}

.portfolio-chat-message-assistant .portfolio-chat-bubble {
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.portfolio-chat-bubble-markdown > :first-child {
  margin-top: 0;
}

.portfolio-chat-bubble-markdown > :last-child {
  margin-bottom: 0;
}

.portfolio-chat-bubble-markdown p,
.portfolio-chat-bubble-markdown ul,
.portfolio-chat-bubble-markdown ol,
.portfolio-chat-bubble-markdown blockquote,
.portfolio-chat-bubble-markdown .portfolio-chat-table-wrap,
.portfolio-chat-bubble-markdown pre {
  margin: 0 0 10px;
}

.portfolio-chat-bubble-markdown h3,
.portfolio-chat-bubble-markdown h4,
.portfolio-chat-bubble-markdown h5 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  line-height: 1.4;
}

.portfolio-chat-bubble-markdown ul,
.portfolio-chat-bubble-markdown ol {
  padding-left: 18px;
}

.portfolio-chat-bubble-markdown li + li {
  margin-top: 4px;
}

.portfolio-chat-bubble-markdown blockquote {
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
}

.portfolio-chat-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.portfolio-chat-bubble-markdown table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.portfolio-chat-bubble-markdown th,
.portfolio-chat-bubble-markdown td {
  padding: 8px 10px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.portfolio-chat-bubble-markdown th {
  background: rgba(15, 23, 42, 0.06);
  font-weight: 800;
}

.portfolio-chat-bubble-markdown code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.08);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85em;
}

.portfolio-chat-bubble-markdown pre {
  overflow-x: auto;
  padding: 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.08);
}

.portfolio-chat-bubble-markdown pre code {
  padding: 0;
  background: transparent;
}

.portfolio-chat-bubble-markdown a {
  color: var(--accent);
}

.portfolio-chat-bubble-pending {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.portfolio-chat-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.portfolio-chat-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.32;
  animation: portfolio-chat-dot 1.2s infinite ease-in-out;
  will-change: opacity, transform;
}

.portfolio-chat-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.portfolio-chat-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.portfolio-chat-cancel {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.portfolio-chat-cancel:hover:not(:disabled) {
  border-color: rgba(15, 23, 42, 0.24);
  color: var(--ink);
}

.portfolio-chat-cancel:disabled {
  cursor: default;
  opacity: 0.45;
}

.portfolio-ask-input-wrap {
  display: block;
}

.portfolio-ask-input-wrap textarea {
  width: 100%;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-elevated);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.portfolio-ask-input-wrap textarea::placeholder {
  color: var(--muted);
}

.portfolio-ask-sheet-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.portfolio-ask-composer {
  display: grid;
  gap: 12px;
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 18px 22px 22px;
  margin-top: auto;
  border-top: 1px solid rgba(222, 214, 200, 0.7);
  background: rgba(255, 252, 247, 0.98);
}

.portfolio-ask-open {
  overflow: hidden;
}

.reveal {
  animation: reveal 680ms ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes portfolio-chat-dot {
  0%, 80%, 100% {
    opacity: 0.28;
    transform: scale(0.9);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .portfolio-chat-dots span {
    animation-duration: 1.2s !important;
    animation-iteration-count: infinite !important;
  }
}

@media (max-width: 860px) {
  :root {
    --content: min(100% - 28px, 720px);
  }

  .home-shell,
  .portfolio-shell {
    padding: 28px 0 44px;
  }

  .hero-grid,
  .project-detail,
  .project-grid,
  .certificate-list,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .skill-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-card {
    gap: 28px;
  }

  .section-heading.split {
    display: block;
  }

  .project-card {
    padding: 22px;
  }

  .portfolio-ask-panel {
    width: min(420px, calc(100vw - 20px));
    max-height: 100dvh;
    height: 100%;
  }

  .portfolio-ask-widget.is-open .portfolio-ask-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .portfolio-ask-sheet-header {
    padding: 18px 18px 16px;
  }

  .portfolio-ask-sheet-body > .portfolio-ask-description {
    padding: 16px 18px 0;
  }

  .portfolio-ask-sheet-body {
    position: relative;
    overflow: hidden;
  }

  .portfolio-ask-chat {
    padding: 14px 18px 208px;
  }

  .portfolio-ask-composer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    margin-top: 0;
    padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .hero-links,
  .project-links {
    flex-direction: column;
  }

  .button,
  .text-link,
  .project-links a,
  .certificate-card a {
    justify-content: center;
    width: 100%;
  }

  .shnea-lightbox {
    padding: 20px;
  }

  .shnea-lightbox__image {
    max-height: calc(100vh - 72px);
  }

  .portfolio-ask-chip-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .portfolio-ask-chip {
    flex: 0 0 auto;
  }

  .portfolio-ask-fab {
    right: 16px;
    bottom: 16px;
    width: 64px;
    min-width: 64px;
    padding: 0;
  }

  .portfolio-ask-panel {
    right: 0;
    width: min(100vw - 12px, 380px);
    max-height: 100dvh;
    height: 100%;
  }

  .portfolio-ask-sheet-header {
    padding: 14px 14px 12px;
  }

  .portfolio-ask-sheet-body > .portfolio-ask-description {
    padding: 14px 14px 0;
  }

  .portfolio-ask-chat {
    padding: 12px 14px 228px;
  }

  .portfolio-ask-composer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .portfolio-ask-sheet-actions .button {
    width: 100%;
  }

  .portfolio-ask-input-wrap textarea {
    min-height: 88px;
  }
}
