:root {
  --paper: #fbf8ef;
  --paper-2: #f1eadf;
  --ink: #24211e;
  --muted: #70685f;
  --line: #ddd1c3;
  --tomato: #dd6245;
  --moss: #798b58;
  --blue: #416c8f;
  --white: #fffdf8;
  --shadow: 0 18px 60px rgba(65, 52, 36, 0.12);
  --max: 1180px;
  --gutter: clamp(18px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

body.is-locked {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px var(--gutter);
  color: var(--ink);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(251, 248, 239, 0.92);
  box-shadow: 0 1px 0 rgba(36, 33, 30, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(36, 33, 30, 0.2);
  border-radius: 50%;
  background: var(--white);
  color: var(--tomato);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.86rem;
  font-weight: 600;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--tomato);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  overflow: hidden;
  background: var(--paper-2);
}

.hero picture {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(251, 248, 239, 0.86), rgba(251, 248, 239, 0.44) 44%, rgba(251, 248, 239, 0.05));
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(680px, calc(100% - var(--gutter) * 2));
  margin-left: var(--gutter);
  padding-top: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.08;
  font-weight: 600;
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.22;
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
}

.lead {
  max-width: 34em;
  margin: 24px 0 0;
  color: #443f39;
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 28px;
  color: var(--tomato);
  font-weight: 700;
  text-decoration-color: rgba(221, 98, 69, 0.35);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.section-pad {
  padding: clamp(68px, 10vw, 132px) var(--gutter);
}

.intro,
.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: clamp(36px, 7vw, 104px);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro p,
.about-body p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), 100%);
  margin: 0 auto 28px;
}

.works {
  background: var(--white);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(var(--max), 100%);
  margin: 0 auto 34px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 32px);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.work-card {
  border: 1px solid rgba(36, 33, 30, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(36, 33, 30, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.work-card.is-hidden {
  display: none;
}

.work-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.work-card a {
  display: grid;
  min-height: 100%;
  text-decoration: none;
}

.work-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.work-info {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.work-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.work-kicker {
  color: var(--moss) !important;
  font-size: 0.72rem !important;
  font-weight: 700;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.work-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-page {
  background: var(--white);
}

.work-detail-shell {
  padding: 124px var(--gutter) clamp(68px, 9vw, 112px);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: start;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.detail-gallery {
  display: grid;
  gap: 14px;
}

.detail-main-image {
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-2);
}

.detail-main-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-thumb {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.detail-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  object-fit: cover;
}

.detail-thumb.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.detail-copy {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.back-link {
  width: fit-content;
  min-height: 44px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration-color: rgba(112, 104, 95, 0.35);
  text-underline-offset: 5px;
}

.detail-copy h1 {
  max-width: none;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.detail-description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
}

.detail-specs {
  display: grid;
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
}

.detail-specs div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.detail-specs dt,
.detail-specs dd {
  margin: 0;
}

.detail-specs dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-specs dd {
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin-top: 6px;
}

.detail-actions .text-link {
  margin-top: 0;
}

.purchase-button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.purchase-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.purchase-note,
.purchase-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.purchase-message:not(:empty) {
  color: var(--tomato);
}

.detail-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), 100%);
  margin: clamp(54px, 8vw, 96px) auto 0;
  background: rgba(36, 33, 30, 0.12);
}

.detail-pager a {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: center;
  padding: clamp(22px, 4vw, 34px);
  background: var(--paper);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 700;
  text-decoration: none;
}

.detail-pager a:last-child {
  text-align: right;
}

.detail-pager span {
  color: var(--blue);
  font-size: 0.72rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.related-section {
  width: min(var(--max), 100%);
  margin: clamp(58px, 8vw, 98px) auto 0;
}

.related-section .section-heading {
  width: 100%;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
}

.related-work {
  display: grid;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.related-work img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
}

.detail-empty {
  display: grid;
  gap: 18px;
  width: min(760px, 100%);
  min-height: 56svh;
  align-content: center;
  margin: 0 auto;
}

.detail-empty p {
  margin: 0;
  color: var(--muted);
}

.checkout-result {
  display: grid;
  gap: 20px;
  width: min(760px, 100%);
  min-height: 56svh;
  align-content: center;
  margin: 0 auto;
}

.checkout-result h1 {
  max-width: none;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
}

.checkout-result p {
  margin: 0;
  color: var(--muted);
}

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-body {
  display: grid;
  gap: 22px;
}

.guide {
  background: #eef1e7;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  background: rgba(36, 33, 30, 0.12);
}

.guide-list div {
  min-height: 220px;
  padding: clamp(24px, 4vw, 38px);
  background: #eef1e7;
}

.guide-list p {
  margin: 14px 0 0;
  color: #59624b;
}

.contact-panel {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 100%;
  min-height: 50px;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--tomato);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: #c94f34;
}

.small-note {
  color: #8c8379 !important;
  font-size: 0.86rem !important;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    padding-block: 12px;
  }

  .nav-toggle {
    position: relative;
    z-index: 22;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    grid-area: 1 / 1;
    background: var(--ink);
    transition: transform 160ms ease;
  }

  .nav-toggle span:first-child {
    transform: translateY(-4px);
  }

  .nav-toggle span:last-child {
    transform: translateY(4px);
  }

  .site-header.is-open .nav-toggle span:first-child {
    transform: rotate(42deg);
  }

  .site-header.is-open .nav-toggle span:last-child {
    transform: rotate(-42deg);
  }

  .site-nav {
    position: fixed;
    z-index: 21;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    background: rgba(251, 248, 239, 0.97);
    color: var(--ink);
    font-size: 1.35rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-header.is-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    min-height: 82svh;
  }

  .hero-image {
    object-position: 66% 50%;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(251, 248, 239, 0.72), rgba(251, 248, 239, 0.36) 48%, rgba(251, 248, 239, 0.88));
  }

  .hero-copy {
    align-self: end;
    padding: 96px 0 46px;
  }

  .intro,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .work-detail-shell {
    padding-top: 104px;
  }

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

  .detail-copy {
    position: static;
  }

  .detail-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .guide-list {
    grid-template-columns: 1fr;
  }

  .guide-list div {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 80svh;
  }

  .hero-copy {
    width: min(100% - 36px, 560px);
    margin-left: 18px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 4.3rem);
  }

  .lead {
    font-size: 1rem;
  }

  .section-heading {
    display: block;
  }

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

  .work-info {
    padding: 18px;
  }

  .detail-thumbs,
  .related-grid,
  .detail-pager {
    grid-template-columns: 1fr;
  }

  .detail-pager a:last-child {
    text-align: left;
  }

  .detail-specs div {
    grid-template-columns: 78px 1fr;
  }

  .detail-actions .button {
    width: 100%;
    min-width: 0;
  }

  .site-footer {
    display: grid;
  }
}
