/* ---------- Base ---------- */
:root {
  --bg: #F9F6F1;
  --bg-card: #ffffff;
  --text: #282420;
  --text-soft: #726c62;
  --accent: #C16E4F;
  --accent-soft: #E8D7CD;
  --border: rgba(40, 36, 32, 0.12);
  --max: 1180px;
}

html.dark {
  --bg: #16140f;
  --bg-card: #211e18;
  --text: #f2ece1;
  --text-soft: #a89e8f;
  --accent: #e0916a;
  --accent-soft: #3a2c22;
  --border: rgba(255, 255, 255, 0.12);
}

html { transition: background-color 0.2s ease; }
body { transition: background-color 0.2s ease, color 0.2s ease; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  margin: 0;
}

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

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

nav.main {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-soft);
}

nav.main a:hover,
nav.main a.current {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--text);
}

.theme-toggle {
  position: relative;
  display: flex;
  width: 84px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 3px);
  height: calc(100% - 4px);
  border-radius: 999px;
  background: var(--accent);
  transition: transform 0.25s ease;
  z-index: 0;
}
.theme-toggle.is-dark .thumb { transform: translateX(100%); }
.theme-toggle .label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.25s ease;
}
.theme-toggle:not(.is-dark) .label.day,
.theme-toggle.is-dark .label.night {
  color: #fff;
}

@media (max-width: 640px) {
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  nav.main.open { display: flex; }
  nav.main a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
  nav.main .theme-toggle {
    margin: 14px auto;
  }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text { flex: 1; min-width: 0; }

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 16px;
}

.hero p {
  color: var(--text-soft);
  max-width: 480px;
  font-size: 16px;
}

.hero-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.hero-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 5px solid var(--bg-card);
  box-shadow: 0 6px 20px rgba(0,0,0,0.14);
}
.hero-photo .cap {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 12px;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .hero { flex-direction: column-reverse; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
}

/* ---------- Intro / stats strip ---------- */
.intro-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.intro-strip-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px 0;
}
.intro-strip-row h2 {
  font-size: clamp(20px, 3vw, 26px);
}
.intro-strip-row p {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 360px;
  text-align: right;
  margin: 0;
}
.stats-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.stats-row b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
}
.stats-row span {
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 640px) {
  .intro-strip-row { flex-direction: column; align-items: flex-start; }
  .intro-strip-row p { text-align: left; }
  .stats-row { gap: 28px; }
}

/* ---------- Category zigzag stacks ---------- */
.zig-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.zig-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.zig-row:last-child { border-bottom: none; }
.zig-row.rev { flex-direction: row-reverse; }

.zig-text { flex: 1; text-align: right; }
.zig-row.rev .zig-text { text-align: left; }
.zig-text h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.zig-text p {
  color: var(--text-soft);
  max-width: 420px;
  margin-left: auto;
  margin-bottom: 18px;
}
.zig-row.rev .zig-text p { margin-left: 0; margin-right: auto; }
.zig-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.stack-group {
  display: flex;
  gap: 60px;
  flex-shrink: 0;
}
.stack-single {
  position: relative;
  width: 195px;
  height: 250px;
  flex-shrink: 0;
}
.stack-single img {
  position: absolute;
  width: 130px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5;
  border: 3px solid var(--bg-card);
}
.stack-single .peek {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  filter: saturate(0.75) brightness(0.94);
}
.stack-single .peek1 { top: 46px; left: 46px; transform: rotate(6deg); z-index: 1; }
.stack-single .peek2 { top: 23px; left: 23px; transform: rotate(3deg); z-index: 2; }
.stack-single .front {
  top: 0;
  left: 0;
  z-index: 3;
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
}
.stack-single .count {
  position: absolute;
  bottom: -8px;
  right: -6px;
  z-index: 4;
  background: var(--text);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .zig-row, .zig-row.rev {
    flex-direction: column;
    text-align: center;
    gap: 32px;
    padding: 48px 0;
  }
  .zig-text, .zig-row.rev .zig-text { text-align: center; }
  .zig-text p, .zig-row.rev .zig-text p { margin-left: auto; margin-right: auto; }
  .stack-group { gap: 40px; margin: 0 auto; }
  .stack-single { width: 160px; height: 205px; }
  .stack-single img { width: 105px; }
  .stack-single .peek1 { top: 38px; left: 38px; }
  .stack-single .peek2 { top: 19px; left: 19px; }
}
@media (max-width: 480px) {
  .stack-group { gap: 24px; }
  .stack-single { width: 140px; height: 150px; }
  .stack-single img { width: 90px; }
  .stack-single .peek1 { left: 42px; }
  .stack-single .peek2 { left: 20px; }
}

/* ---------- Filters ---------- */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0 28px;
}

.filters button {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
}

.filters button.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Grid + cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.thumb {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  color: #fff;
  background: var(--accent-soft);
}
.thumb span {
  background: rgba(0,0,0,0.15);
  padding: 4px 10px;
  border-radius: 4px;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption { padding: 14px 16px 18px; }
.caption .item { font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.caption .note { font-size: 13px; color: var(--text-soft); margin: 0; }

.show-more {
  display: block;
  margin: 8px auto 48px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.show-more:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (non-home pages) ---------- */
.page-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-head h1 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 10px; }
.page-head p { color: var(--text-soft); max-width: 520px; }

/* ---------- About page ---------- */
.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.about-photo {
  aspect-ratio: 4/5;
  background: var(--accent-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-soft);
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 22px;
  margin: 14px 0 0;
  text-align: center;
}
.about-text p { margin: 0 0 18px; max-width: 560px; }
.about-text h3 { font-size: 17px; margin: 32px 0 12px; }

@media (max-width: 700px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 220px; }
}

/* ---------- Services page ---------- */
.services-list {
  display: grid;
  gap: 20px;
  padding-bottom: 48px;
}
.service-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: var(--bg-card);
}
.service-row h3 { font-size: 17px; margin-bottom: 8px; }
.service-row p { color: var(--text-soft); margin: 0; max-width: 560px; }

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 56px;
}
.process-step {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.process-step .num { color: var(--accent); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.process-step h4 { font-size: 15px; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--text-soft); margin: 0; }

@media (max-width: 780px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.contact-info p { color: var(--text-soft); margin: 0 0 20px; max-width: 400px; }
.contact-info .line {
  margin-bottom: 14px;
  font-size: 16px;
}
.contact-info .line span {
  color: var(--text-soft);
  font-size: 13px;
  display: block;
}

form.contact-form { display: grid; gap: 14px; }
form.contact-form label {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 6px;
  display: block;
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}
form.contact-form textarea { min-height: 110px; resize: vertical; }
form.contact-form button {
  justify-self: start;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 11px 26px;
  border-radius: 6px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

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

/* ---------- Custom cursor ---------- */
body.cursor-active { cursor: none; }
body.cursor-active a,
body.cursor-active button,
body.cursor-active .card { cursor: none; }
body.cursor-active input,
body.cursor-active textarea,
body.cursor-active select { cursor: auto; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  display: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--text);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease;
}
.cursor-ring.hover {
  width: 54px;
  height: 54px;
  border-color: var(--accent);
}

.cursor-lens {
  position: fixed;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid var(--text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  overflow: hidden;
  z-index: 10000;
  display: none;
  background-repeat: no-repeat;
}

.cursor-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  display: none;
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 28px 0 48px;
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
