/* 設計自由行 — editorial photography layout
   Inspired by school-site pacing (full-bleed photos, rails, light type).
   Hierarchy comes from size and space, not bold. */

:root {
  --bg: #f6f3ee;
  --bg-2: #efebe4;
  --surface: #fff;
  --ink: #1c1b19;
  --ink-2: #4a4742;
  --muted: #7a756c;
  --line: #e6e1d8;
  --line-strong: #d2ccc2;
  --accent: #1a7c86;
  --accent-hover: #14656d;
  --accent-ink: #0c3f44;
  --accent-soft: #e7f3f4;
  --gold: #b08a2a;
  --danger: #b23a2a;
  --overlay: rgba(18, 16, 14, 0.38);
  --container: 1180px;
  --header-h: 70px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --serif: "Cormorant Garamond", "Noto Serif TC", serif;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
  font-weight: 400;
}

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100dvh;
  font-weight: 400;
  letter-spacing: 0.01em;
}

body.menu-open {
  overflow: hidden;
  height: 100dvh;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  font-weight: 400;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
  font-weight: 400;
}

b,
strong {
  font-weight: 400;
}

h1,
h2,
h3,
.display {
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.en-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Buttons — rectangular, regular weight */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  transition: 0.18s ease;
  white-space: nowrap;
}

.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #000;
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.btn-lg {
  min-height: 50px;
  padding: 12px 24px;
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(246, 243, 238, 0.94);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.logo-mark {
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: transparent;
  color: var(--ink);
}

.logo-mark svg {
  width: 12px;
  height: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.desktop-nav a {
  padding: 8px 11px;
  color: var(--ink-2);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-actions .btn-text {
  padding: 8px 12px;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}

.header-actions .btn-text:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--ink);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  z-index: 200;
  background: var(--bg);
  display: none;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
}

.mobile-close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  font-size: 1.4rem;
  line-height: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 20px max(48px, env(safe-area-inset-bottom));
}

.mobile-nav a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
}

.mobile-nav a.is-active {
  color: var(--accent);
}

.mobile-auth {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* Full-bleed hero */
.hero-bleed {
  position: relative;
  min-height: min(88vh, 820px);
  color: #fff;
  display: grid;
  align-items: end;
}

.hero-bleed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 16, 0.12) 0%, rgba(20, 18, 16, 0.55) 70%);
}

.hero-bleed-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.hero-bleed .en-label {
  color: rgba(255, 255, 255, 0.82);
}

.hero-bleed h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  letter-spacing: 0.08em;
  line-height: 1.28;
  margin: 8px 0 16px;
}

.hero-bleed .lead {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
}

.search-stage {
  display: flex;
  gap: 0;
  max-width: 520px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.search-stage input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px 0;
  min-width: 0;
  color: #fff;
}

.search-stage input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.search-stage input:focus {
  outline: none;
}

.search-stage .btn {
  background: transparent;
  color: #fff;
  border: 0;
  letter-spacing: 0.16em;
}

.hero-bleed .btn-primary {
  background: #fff;
  color: var(--ink);
}

.hero-bleed .btn-primary:hover {
  background: #f3f0ea;
}

.hero {
  padding: 48px 0 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 14px;
}

.hero .lead {
  color: var(--ink-2);
  max-width: 38rem;
  margin-bottom: 24px;
}

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  margin-bottom: 10px;
}

.hot-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  align-items: center;
}

.hot-searches span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.chip {
  display: inline-flex;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  font-size: 0.9rem;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}

.chip:hover,
.chip.is-active {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.hero-panel {
  overflow: hidden;
}

.hero-panel img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.hero-panel-body {
  padding: 16px 0 0;
}

.avatar-row {
  display: flex;
  align-items: center;
}

.avatar-row img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  object-fit: cover;
}

.avatar-row img:first-child {
  margin-left: 0;
}

.stat-row {
  display: flex;
  gap: 22px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.stat-row strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-head,
.section-kicker {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-kicker {
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
}

.section-head h2,
.section-kicker h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: 0.12em;
}

.section-head p {
  color: var(--muted);
  margin-top: 6px;
}

.link-more {
  letter-spacing: 0.12em;
  font-size: 0.86rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-more:hover {
  opacity: 0.65;
}

.section-muted {
  background: var(--bg-2);
}

.block-section {
  padding: 48px 0 28px;
}

.block-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
}

.pickup-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  min-height: 88px;
  min-width: 0;
  background: var(--surface);
}

.pickup-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
}

.pickup-card > div {
  padding: 10px 14px 10px 0;
}

.pickup-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.pickup-card p {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Department / category photo cards */
.dept-card {
  position: relative;
  min-height: 420px;
  color: #fff;
  overflow: hidden;
}

.dept-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dept-card:hover img {
  transform: scale(1.04);
}

.dept-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(16, 14, 12, 0.72));
}

.dept-card-body {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.dept-card .en-label,
.dept-card p,
.dept-card .go {
  color: rgba(255, 255, 255, 0.82);
}

.dept-card h3 {
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  margin: 4px 0 8px;
}

.dept-card .go {
  margin-top: 10px;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cat-card {
  background: var(--surface);
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cat-icon {
  display: none;
}

.cat-card h3 {
  font-size: 1.02rem;
  margin: 12px 0 6px;
  letter-spacing: 0.08em;
}

.cat-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.cat-card .go {
  margin-top: 10px;
  letter-spacing: 0.1em;
  font-size: 0.82rem;
}

/* Cards */
.freelancer-grid,
.service-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 20px;
}

.service-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card:hover .card-media img,
.card:hover img {
  opacity: 0.92;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}

.card-media a {
  position: absolute;
  inset: 0;
  display: block;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  z-index: 2;
  color: #fff;
  background: rgba(20, 18, 16, 0.28);
}

.heart:hover,
.heart.is-saved {
  color: #fff;
}

.heart.is-saved svg {
  fill: currentColor;
}

.freelancer-card .card-body,
.service-card .card-body {
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.freelancer-card .card-body {
  padding-right: 0;
}

.person {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar,
.avatar-lg {
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
}

.avatar {
  width: 44px;
  height: 44px;
}

.avatar-lg {
  width: 92px;
  height: 92px;
}

.person h3 {
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.person .role {
  color: var(--muted);
  font-size: 0.86rem;
}

.meta-row,
.stars {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.stars .score,
.stars b {
  color: var(--ink);
  letter-spacing: 0;
}

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

.tag {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.price {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-top: auto;
}

.price small {
  color: var(--muted);
  font-size: 0.8rem;
}

.service-card .who {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-card .who img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.service-card .card-body > a:last-child {
  letter-spacing: 0.1em;
  font-size: 0.86rem;
  margin-top: 8px;
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 2px;
}

/* Photo essays */
.essay-band {
  position: relative;
  min-height: min(72vh, 640px);
  color: #fff;
  display: grid;
  align-items: center;
}

.essay-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.essay-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 14, 12, 0.38);
}

.essay-copy {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  max-width: 28rem;
}

.essay-band:nth-child(even) .essay-copy {
  margin-left: auto;
  margin-right: max(20px, calc((100vw - var(--container)) / 2));
}

.essay-num {
  font-family: var(--serif);
  font-size: 2.4rem;
  letter-spacing: 0.12em;
  opacity: 0.85;
  margin-bottom: 8px;
}

.essay-copy h2,
.essay-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.16em;
  margin: 4px 0 12px;
}

.essay-copy p {
  color: rgba(255, 255, 255, 0.86);
}

.essay-copy .en-label {
  color: rgba(255, 255, 255, 0.75);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  padding: 0;
}

.step-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 12px;
}

.step h3 {
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.step p {
  color: var(--muted);
}

/* Portfolio mosaic */
.masonry,
.mosaic {
  columns: 3;
  column-gap: 12px;
}

.work-card {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.work-card img {
  width: 100%;
  display: block;
}

.work-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 14px;
  background: linear-gradient(transparent, rgba(16, 14, 12, 0.72));
  color: #fff;
}

.work-card h3 {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.work-card p {
  font-size: 0.78rem;
  opacity: 0.86;
}

/* CTA bleed */
.cta-band {
  margin: 0;
}

.cta-inner,
.cta-bleed {
  position: relative;
  min-height: 420px;
  color: #fff;
  display: grid;
  align-items: center;
}

.cta-bleed img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bleed::after,
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 14, 12, 0.45);
}

.cta-bleed-content,
.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-bleed-content {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 72px 0;
}

.cta-inner {
  padding: 64px 0;
  min-height: 0;
  background: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-inner::before {
  display: none;
}

.cta-bleed h2,
.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.cta-bleed p,
.cta-inner p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cta-bleed .btn-primary,
.cta-inner .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-bleed .btn-ghost,
.cta-inner .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.cta-inner .cta-actions {
  margin-top: 0;
}

/* Inner pages */
.page-hero {
  padding: 40px 0 12px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.1em;
}

.page-hero p {
  color: var(--muted);
  margin-top: 10px;
  max-width: 40rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.listing {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding-bottom: 80px;
}

.filter-panel {
  padding: 0 0 24px;
  height: fit-content;
  position: sticky;
  top: 92px;
  background: transparent;
  border: 0;
}

.filter-panel h2,
.filter-panel h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin: 20px 0 8px;
}

.filter-panel h3:first-of-type {
  margin-top: 16px;
}

.filter-panel #filter-close {
  display: none;
}

.filter-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-actions {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.toolbar .search-mini {
  display: flex;
  border-bottom: 1px solid var(--line-strong);
  padding: 4px 0;
  min-width: min(100%, 280px);
}

.toolbar input,
.toolbar select {
  border: 0;
  background: transparent;
  padding: 8px 0;
  min-width: 0;
}

.toolbar select {
  border-bottom: 1px solid var(--line-strong);
  padding: 8px 0;
}

.filter-toggle {
  display: none;
  min-height: 44px;
  padding: 0 4px;
  border-bottom: 1px solid var(--ink);
  letter-spacing: 0.12em;
}

.filter-backdrop {
  display: none;
}

.result-count {
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.empty-state {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  color: var(--muted);
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-bottom: 80px;
}

.profile-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 8px 0 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.kpis strong {
  color: var(--ink);
  display: block;
  letter-spacing: 0.06em;
}

.panel {
  position: relative;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 24px 0;
  margin-bottom: 8px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h2,
.panel-head .eyebrow {
  margin-bottom: 0;
}

.panel h2 {
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.panel .heart,
.sticky-card .heart {
  position: static;
  color: var(--ink);
  background: transparent;
}

.sticky-card {
  position: sticky;
  top: 92px;
}

.svc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.svc-row:last-child {
  border-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 8px;
  margin-bottom: 28px;
}

.gallery-main,
.gallery-side img,
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main {
  min-height: 380px;
  background: var(--bg-2);
  overflow: hidden;
}

.gallery-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 380px;
}

.gallery-side img {
  height: 100%;
  min-height: 0;
  cursor: pointer;
  opacity: 0.7;
}

.gallery-side img.is-active,
.gallery-side img:hover {
  opacity: 1;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-bottom: 40px;
}

.prose h3 {
  margin: 22px 0 8px;
  letter-spacing: 0.1em;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose ul {
  padding-left: 1.1rem;
  list-style: disc;
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  letter-spacing: 0.06em;
}

.faq p {
  margin-top: 8px;
  color: var(--muted);
}

.auth-wrap {
  min-height: calc(100dvh - 180px);
  display: grid;
  place-items: center;
  padding: 40px 0 72px;
}

.auth-card,
.form-card {
  width: min(100%, 460px);
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.form-wide {
  width: min(100%, 720px);
  margin: 0 auto 72px;
  border-top: 1px solid var(--line);
  padding: 32px 0;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.field span,
.field label {
  font-size: 0.86rem;
  letter-spacing: 0.1em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 0;
  padding: 10px 0;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.08em;
}

.choice input {
  display: none;
}

.choice:has(input:checked),
.choice.is-on {
  border-bottom-color: var(--ink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.success-banner {
  display: none;
  border-left: 2px solid var(--accent);
  color: var(--accent-ink);
  padding: 12px 0 12px 14px;
  margin-bottom: 18px;
  letter-spacing: 0.06em;
}

.success-banner.is-show {
  display: block;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.benefit {
  padding: 0;
}

.benefit h3 {
  margin: 10px 0 6px;
  letter-spacing: 0.1em;
}

.benefit p {
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.site-footer {
  background: #161513;
  color: #ece8df;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h3 {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  padding: 4px 0;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.58);
  margin-top: 12px;
  max-width: 18rem;
}

.footer-bottom {
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(17, 16, 14, 0.62);
  display: none;
  place-items: center;
  padding: 20px;
}

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

.modal-card {
  width: min(100%, 820px);
  max-height: min(88dvh, 860px);
  overflow: auto;
  background: var(--bg);
  position: relative;
}

.modal-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.modal-body {
  padding: 20px 0 28px;
  width: min(calc(100% - 40px), 720px);
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
}

.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 260;
  display: grid;
  gap: 8px;
}

.toast {
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  min-width: 220px;
  letter-spacing: 0.06em;
}

.legal {
  max-width: 720px;
}

.legal p,
.legal li {
  color: var(--ink-2);
  margin-bottom: 10px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0 40px;
}

.stat-box {
  padding: 0;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.stat-box strong {
  font-size: 1.5rem;
  display: block;
  letter-spacing: 0.06em;
}

@media (max-width: 1100px) {
  .hero-grid,
  .profile-layout,
  .detail-layout,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    min-height: 240px;
  }

  .gallery-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .gallery-side img {
    height: 120px;
  }

  .block-grid,
  .cat-grid,
  .service-grid.cols-4,
  .benefit-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .freelancer-grid,
  .service-grid,
  .related-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .masonry,
  .mosaic {
    columns: 2;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 20px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .btn-text,
  .header-actions .btn {
    display: none;
  }

  .listing {
    grid-template-columns: 1fr;
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
  }

  .filter-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(88vw, 360px);
    z-index: 220;
    transform: translateX(-110%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    margin: 0;
    padding: 20px;
    background: var(--bg);
  }

  .filter-panel.is-open {
    transform: translateX(0);
  }

  .filter-panel #filter-close {
    display: inline-flex;
  }

  .filter-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 16, 14, 0.45);
    z-index: 210;
  }

  .filter-backdrop.is-open {
    display: block;
  }

  .sticky-card {
    position: static;
  }

  .essay-band:nth-child(even) .essay-copy {
    margin-right: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero-bleed {
    min-height: 78vh;
  }

  .hero-bleed h1 {
    font-size: 2rem;
  }

  .search-stage {
    flex-direction: column;
    border-bottom: 0;
  }

  .search-stage input {
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  }

  .block-grid,
  .cat-grid,
  .freelancer-grid,
  .service-grid,
  .service-grid.cols-4,
  .related-grid,
  .steps,
  .benefit-grid,
  .stats,
  .form-row,
  .choice-row,
  .gallery-side {
    grid-template-columns: 1fr;
  }

  .masonry,
  .mosaic {
    columns: 1;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero,
  .cta-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel img,
  .split img,
  .modal-card img {
    height: 210px;
  }

  .toolbar .search-mini {
    width: 100%;
    min-width: 0;
  }

  .essay-band {
    min-height: 70vh;
  }
}
