/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #777777;
  --border: #dddddd;
  --gap: 24px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a:hover {
  color: var(--muted);
}

/* ===== SECTIONS ===== */
.section {
  padding: 64px 32px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* ===== SUB NAV (works / shop subsections) ===== */
.sub-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
}

.sub-nav a {
  color: var(--muted);
  font-size: 14px;
}

.sub-nav a:hover {
  color: var(--fg);
}

/* ===== SUBSECTIONS ===== */
.subsection {
  margin-bottom: 48px;
}

.subsection-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ===== GRID (portfolio items placeholder) ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.grid-item {
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  border: 1px solid var(--border);
}

/* ===== TEXT BLOCKS (services / about) ===== */
.text-block {
  max-width: 640px;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 24px 32px;
  font-size: 13px;
  color: var(--muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .main-nav {
    gap: 20px;
    flex-wrap: wrap;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== DESIGN: works with images ===== */
.group-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin: 32px 0 16px;
}

.group-note {
  font-size: 14px;
  color: var(--muted);
  margin: -8px 0 32px;
}

.grid-item.work {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  background: none;
  border: 0;
}

.grid-item.work img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f2f2f2;
  border: 1px solid var(--border);
}

.grid-item.work:hover img {
  border-color: var(--fg);
}

.caption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}

.caption b {
  color: var(--fg);
  font-weight: 500;
}

.project {
  margin-bottom: 56px;
  scroll-margin-top: 24px;
}

.project-title {
  font-size: 18px;
  font-weight: 500;
}

.project-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 8px;
}

.project-text {
  max-width: 640px;
  margin-bottom: 16px;
}

.caption em {
  color: #b04a2f;
  font-style: normal;
}

/* ===== WORKS: slider, page parts ===== */
.subsection-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.subsection-head .subsection-title {
  margin-bottom: 0;
}

.subsection-title a:hover,
.see-all:hover,
.project-title a:hover,
.back:hover,
.work-nav a:hover {
  color: var(--muted);
}

.see-all {
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
}

.slider-wrap {
  position: relative;
  margin-bottom: 32px;
}

.slider {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
}

.slide {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.slide img {
  height: 420px;
  width: auto;
  max-width: 85vw;
  object-fit: contain;
  background: #f2f2f2;
  border: 1px solid var(--border);
}

.slide:hover img {
  border-color: var(--fg);
}

.slider-nav {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.slider-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 16px;
  cursor: pointer;
}

.slider-nav button:hover {
  border-color: var(--fg);
}

.page-intro {
  max-width: 640px;
  color: var(--muted);
  margin: -8px 0 24px;
}

.grid-small {
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.work-images {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 32px;
}

.work-images figure {
  scroll-margin-top: 24px;
}

.work-images img {
  display: block;
  border: 1px solid var(--border);
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
}

.work-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

@media (max-width: 768px) {
  .slide img { height: 260px; }
  .grid-small { grid-template-columns: repeat(3, 1fr); }
  .subsection-head { flex-direction: column; gap: 4px; }
}
