:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #101010;
  --surface-2: #171717;
  --surface-3: #202020;
  --detail-bg: #141414;
  --text: #f4f1ea;
  --muted: #a7a29a;
  --line: rgba(255, 255, 255, 0.1);
  --soft-line: rgba(255, 255, 255, 0.06);
  --accent: #d7ff3f;
  --accent-2: #ff6f3c;
  --accent-3: #7bdff2;
  --accent-4: #f2b5d4;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --radius: 22px;
  --sidebar: 76px;
  --topbar: 78px;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.light {
  color-scheme: light;
  --bg: #f3f2ee;
  --surface: #ffffff;
  --surface-2: #ebe9e2;
  --surface-3: #dedbd1;
  --detail-bg: #eeeeea;
  --text: #11110f;
  --muted: #6b665f;
  --line: rgba(17, 17, 15, 0.12);
  --soft-line: rgba(17, 17, 15, 0.07);
  --shadow: 0 24px 54px rgba(49, 45, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  z-index: -1;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 18px 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-right: 1px solid var(--soft-line);
  backdrop-filter: blur(18px);
}

.sidebar-logo,
.brand-fav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: lowercase;
}

.brand-symbol {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.symbol-light {
  display: none;
}

body.light .symbol-dark {
  display: none;
}

body.light .symbol-light {
  display: block;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-icon:hover,
.nav-icon.is-active {
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-icon svg,
.search-wrap svg,
.action-button svg,
.mobile-theme svg,
.back-button svg,
.more-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  margin-top: auto;
}

.main-view {
  padding-left: var(--sidebar);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: auto minmax(220px, 680px) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(16px, 3vw, 34px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.search-wrap {
  height: 48px;
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-wrap input::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.mobile-theme {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: none;
  place-items: center;
  background: var(--surface);
  cursor: pointer;
}

.language-toggle {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 850;
  cursor: pointer;
}

.category-rail {
  position: sticky;
  top: var(--topbar);
  z-index: 30;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px clamp(16px, 3vw, 34px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--soft-line);
  backdrop-filter: blur(18px);
  scrollbar-width: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.category-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.category-button:hover,
.category-button.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-1px);
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px clamp(16px, 3vw, 34px) 0;
  color: var(--muted);
}

.feed-meta p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feed-meta span {
  font-size: 0.88rem;
}

.masonry {
  column-count: 5;
  column-gap: 18px;
  padding: 18px clamp(16px, 3vw, 34px) 44px;
}

.pin-card {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 0 var(--soft-line);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.pin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.pin-card:hover .visual {
  transform: scale(1.018);
}

.pin-card:hover .card-media {
  transform: scale(1.025);
}

.visual {
  position: relative;
  overflow: hidden;
  min-height: var(--card-height, 320px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  background:
    linear-gradient(135deg, var(--c1), var(--c2)),
    var(--surface-2);
  transition: transform 320ms ease;
}

.visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.18), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
  opacity: 0.55;
  pointer-events: none;
}

.media-visual {
  isolation: isolate;
  background: var(--surface-2);
}

.media-visual::before {
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent 38%, rgba(0, 0, 0, 0.08));
  opacity: 1;
}

.media-visual .statement {
  display: none;
}

.card-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--object-position, center);
  transition: transform 360ms ease;
}

.pin-card:not(.art-pin) .media-visual {
  min-height: 0;
  display: block;
  padding: 0;
}

.pin-card:not(.art-pin) .media-visual .card-media {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pin-card:not(.art-pin) .media-visual .card-top {
  position: absolute;
  inset: 18px 18px auto;
}

.pin-card:not(.art-pin) .media-visual .card-bottom {
  position: absolute;
  inset: auto 18px 18px;
}

.art-pin {
  background: var(--bg);
}

.mockup-visual {
  isolation: isolate;
  gap: 18px;
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--c2) 42%, transparent), transparent 28%),
    linear-gradient(145deg, color-mix(in srgb, var(--c1) 88%, #000), color-mix(in srgb, var(--c2) 22%, #090909));
}

.mockup-visual::before {
  z-index: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 36%),
    repeating-linear-gradient(-18deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 13px);
  opacity: 0.62;
}

.mock-bg-word {
  display: none;
}

.mock-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  margin: 4px 0;
}

.mock-frame {
  position: absolute;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

.mock-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.mock-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mock-caption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 6px;
  max-width: 92%;
}

.mock-caption.is-quiet strong,
.card-bottom.is-quiet {
  display: none;
}

.mock-caption span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-caption strong {
  color: #fff;
  font-size: clamp(1.28rem, 2.8vw, 2.45rem);
  line-height: 0.96;
  font-weight: 850;
  letter-spacing: -0.055em;
  overflow-wrap: normal;
}

.art-pin[data-layout="case-board"] .mock-stage {
  min-height: 310px;
}

.art-pin[data-layout="case-board"] .frame-1 {
  inset: 8% 6% 22% 10%;
  transform: rotate(-5deg);
}

.art-pin[data-layout="case-board"] .frame-2 {
  inset: 40% 32% 4% 2%;
  transform: rotate(7deg);
}

.art-pin[data-layout="case-board"] .frame-3 {
  inset: 36% 2% 0 55%;
  transform: rotate(-3deg);
}

.art-pin[data-layout="browser-board"] .mock-stage {
  min-height: 230px;
}

.art-pin[data-layout="browser-board"] .frame-1 {
  inset: 8% 0 6% 0;
  border-radius: 14px;
  transform: perspective(900px) rotateX(7deg) rotateZ(-2deg);
}

.art-pin[data-layout="browser-board"] .frame-1::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.art-pin[data-layout="stack-board"] .mock-stage {
  min-height: 250px;
}

.art-pin[data-layout="stack-board"] .frame-1 {
  inset: 4% 7% 12% 2%;
  transform: rotate(-4deg);
}

.art-pin[data-layout="stack-board"] .frame-2 {
  inset: 20% 0 0 24%;
  transform: rotate(5deg);
}

.art-pin[data-layout="product-board"] .mock-stage {
  min-height: 250px;
}

.art-pin[data-layout="product-board"] .frame-1 {
  inset: 0 -8% 2% -8%;
  border-radius: 26px;
}

.art-pin[data-layout="metric-board"] .mockup-visual {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--c2) 74%, #fff), color-mix(in srgb, var(--c1) 88%, #050505));
}

.art-pin[data-layout="metric-board"] .mock-stage {
  min-height: 300px;
}

.art-pin[data-layout="metric-board"] .frame-1 {
  inset: 15% 8% 4% 8%;
  border-radius: 28px;
}

.art-pin[data-layout="metric-board"] .mock-bg-word {
  content: "";
  top: 22%;
  right: auto;
  left: 10px;
  bottom: auto;
  color: rgba(5, 5, 5, 0.24);
  transform: none;
  font-size: clamp(4.5rem, 15vw, 10rem);
}

.art-pin[data-layout="poster-board"] .mock-stage {
  min-height: 350px;
}

.art-pin[data-layout="poster-board"] .frame-1 {
  inset: 0 8% 0 8%;
  border-radius: 24px;
  transform: rotate(2.5deg);
}

.art-pin[data-layout="poster-board"] .frame-1 img {
  object-position: center top;
}

.pin-card[data-tone="paper"] .visual::before,
.pin-card[data-tone="mono"] .visual::before {
  opacity: 0.28;
}

.card-top,
.card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.34);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.free-badge {
  background: var(--accent);
  color: #15150f;
}

.more-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  opacity: 0;
  transition: opacity 180ms ease;
}

.has-lightbox {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 52px);
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(18px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox-image {
  max-width: min(92vw, 1180px);
  max-height: 84vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-meta {
  position: fixed;
  left: 24px;
  bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pin-card:hover .more-button {
  opacity: 1;
}

.statement {
  position: relative;
  z-index: 1;
  max-width: 92%;
  margin: auto 0;
  color: var(--statement-color, #fff);
  font-size: clamp(1.6rem, 3.2vw, 3.5rem);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.06em;
  overflow-wrap: normal;
}

.visual-note .statement {
  font-size: clamp(2.4rem, 6vw, 5.4rem);
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.pin-card[data-tone="paper"] .card-title,
.pin-card[data-tone="light"] .card-title {
  color: #11110f;
}

.card-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.pin-card[data-tone="paper"] .card-subtitle,
.pin-card[data-tone="light"] .card-subtitle {
  color: rgba(17, 17, 15, 0.68);
}

.empty-state {
  padding: 70px 16px;
  color: var(--muted);
  text-align: center;
}

.detail-view {
  min-height: calc(100vh - var(--topbar));
  padding: 24px clamp(16px, 4vw, 48px) 64px;
  background: var(--detail-bg);
}

.detail-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.detail-actions-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.back-button,
.action-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
}

.detail-action-row {
  display: flex;
  gap: 8px;
}

.action-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, background 180ms ease;
}

.action-button:hover,
.action-button.is-on {
  transform: translateY(-1px);
  background: var(--text);
  color: var(--bg);
}

.detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.hero-visual {
  min-height: min(72vh, 760px);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.hero-visual .visual {
  min-height: min(72vh, 760px);
  border-radius: inherit;
}

.hero-media {
  min-height: min(72vh, 760px);
  display: grid;
  place-items: center;
  background: var(--surface);
}

.detail-image {
  width: 100%;
  height: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  display: block;
}

.project-gallery {
  display: grid;
  min-height: min(72vh, 760px);
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--surface);
}

.gallery-main {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px;
  border-top: 1px solid var(--soft-line);
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex: 0 0 78px;
  height: 58px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  background: var(--surface-2);
  cursor: pointer;
  opacity: 0.72;
}

.gallery-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-copy {
  position: sticky;
  top: 156px;
  padding: 22px 0;
}

.detail-copy .label {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line);
}

.detail-copy h1 {
  margin: 18px 0 12px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.92;
  font-weight: 850;
  letter-spacing: -0.065em;
}

.detail-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.credit {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.credit-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent);
  color: #11110f;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.external-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 750;
}

.profile-page,
.contact-page {
  max-width: 1180px;
  margin: 0 auto;
}

.article-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.article-header {
  max-width: 920px;
  margin: clamp(18px, 4vw, 48px) 0 clamp(18px, 4vw, 38px);
}

.article-header h1 {
  margin: 18px 0;
  font-size: clamp(3rem, 8vw, 8.2rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: 0;
}

.article-header p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.article-hero {
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-hero img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin: clamp(28px, 6vw, 76px) auto 0;
}

.article-body p {
  margin: 0 0 1.35em;
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}

.article-body p:first-child {
  color: var(--text);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.bio-hero,
.contact-page {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 170px);
}

.bio-mark {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 80%, #fff), #111),
    var(--surface);
  color: #080808;
  font-size: clamp(4.8rem, 16vw, 13rem);
  line-height: 0.8;
  font-weight: 900;
}

.bio-mark .brand-symbol {
  width: 70%;
  height: 70%;
}

.bio-copy h1,
.contact-intro h1 {
  max-width: 820px;
  margin: 20px 0;
  font-size: clamp(3rem, 7vw, 7.6rem);
  line-height: 0.88;
  font-weight: 850;
}

.bio-copy p,
.contact-intro p,
.profile-note p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.6;
}

.bio-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.bio-actions a,
.contact-links a,
.submit-brief {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.bio-actions a:first-child,
.submit-brief {
  border-color: transparent;
  background: var(--accent);
  color: #10100d;
}

.service-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0 12px;
}

.service-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 750;
}

.profile-note {
  margin-top: clamp(28px, 5vw, 80px);
  padding: clamp(18px, 4vw, 44px) 0;
  border-top: 1px solid var(--soft-line);
}

.contact-intro {
  align-self: start;
  padding-top: clamp(18px, 5vw, 74px);
}

.contact-form {
  align-self: start;
  margin-top: clamp(18px, 5vw, 58px);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label,
.service-options legend {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 14px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.full-field,
.service-options {
  grid-column: 1 / -1;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  margin: 0;
  padding: 0;
}

.service-options legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.service-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  background: var(--bg);
  color: var(--text);
}

.service-options input {
  width: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.submit-brief {
  width: 100%;
  margin-top: 16px;
  cursor: pointer;
}

.form-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.related-title {
  margin: 46px 0 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.bottom-nav {
  display: none;
}

@media (max-width: 1320px) {
  .masonry {
    column-count: 4;
  }
}

@media (max-width: 1060px) {
  .masonry {
    column-count: 3;
  }

  .detail-main {
    grid-template-columns: 1fr;
  }

  .detail-copy {
    position: static;
    max-width: 720px;
  }

  .bio-hero,
  .contact-page {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .bio-mark {
    max-width: 360px;
  }

  .contact-form {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar: 72px;
    --radius: 18px;
  }

  body {
    padding-bottom: 82px;
  }

  .sidebar {
    display: none;
  }

  .main-view {
    padding-left: 0;
  }

  .topbar {
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    padding: 12px 12px;
  }

  .brand-name {
    display: none;
  }

  .brand-fav {
    width: 42px;
    height: 42px;
  }

  .search-wrap {
    height: 46px;
    padding: 0 14px;
  }

  .search-wrap input::placeholder {
    font-size: 0;
  }

  .mobile-theme {
    display: grid;
  }

  .category-rail {
    top: 71px;
    padding: 12px;
  }

  .feed-meta {
    padding: 16px 12px 0;
  }

  .masonry {
    column-count: 2;
    column-gap: 12px;
    padding: 14px 12px 28px;
  }

  .pin-card {
    margin-bottom: 12px;
    border-radius: 18px;
  }

  .visual {
    min-height: calc(var(--card-height, 300px) * 0.72);
    padding: 13px;
  }

  .mockup-visual {
    gap: 12px;
  }

  .mock-caption strong {
    font-size: clamp(1.25rem, 7vw, 2.1rem);
  }

  .art-pin[data-layout="case-board"] .mock-stage,
  .art-pin[data-layout="metric-board"] .mock-stage,
  .art-pin[data-layout="poster-board"] .mock-stage {
    min-height: 260px;
  }

  .statement {
    font-size: clamp(1.7rem, 12vw, 3.4rem);
  }

  .label {
    min-height: 26px;
    padding: 6px 8px;
    font-size: 0.64rem;
  }

  .more-button {
    opacity: 1;
    width: 30px;
    height: 30px;
  }

  .card-title {
    font-size: 0.86rem;
  }

  .bottom-nav {
    position: fixed;
    inset: auto 10px 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    min-height: 62px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
  }

  .bottom-nav .nav-icon {
    width: 100%;
    height: 48px;
  }

  .add-button {
    background: var(--text);
    color: var(--bg);
  }

  .detail-view {
    padding: 16px 12px 34px;
  }

  .detail-actions-top {
    align-items: flex-start;
  }

  .detail-action-row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-visual,
  .hero-visual .visual,
  .project-gallery,
  .hero-media {
    min-height: 0;
    border-radius: 24px;
  }

  .gallery-main {
    padding: 0;
  }

  .detail-image {
    height: auto;
    max-height: none;
  }

  .bio-copy h1,
  .contact-intro h1 {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
  }

  .bio-mark {
    max-width: 240px;
    border-radius: 24px;
  }

  .contact-form {
    padding: 16px;
    border-radius: 22px;
  }

  .form-grid,
  .service-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .masonry {
    column-count: 1;
  }

  .visual {
    min-height: var(--card-height, 300px);
  }
}
