body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 40px 0 80px 0;opacity: 0;
  animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

.site-container {
  width: 100%;
  max-width: 300px;
  margin: 40px auto;
  padding: 0 16px;
}

.logo-img {
  display: block;
  width: 300px;
  height: auto;
  margin: 0 auto 6px;
  opacity: 1;
  transform: none;
}

.container {
  width: 100%;
  max-width: 300px; 
  margin: 40px auto 80px auto; /* top, right, bottom, left */
  padding: 0 16px;
}


.container img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 6px; /* add space between sections */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}


.container img.loaded {
  opacity: 1;
  transform: translateY(0);
}

a.nav-image {
  display: block;
  margin-top: 10px;
}

.image-link {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  height: 300px; /* fixed height to keep layout stable */
  margin-bottom: 0x;
  margin-bottom: 0;
  font-size: 0;
}

.image-link img {
  margin-bottom: 0;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}


.image-link:hover img {
  transform: scale(1.05);
}

.homepage-stack {
  width: 300px;
  margin: 0 auto;
  padding: 0;               /* ← this is important */
  text-align: center;
  box-sizing: border-box;
}

.stack-item {
  display: block;
  width: 300px;
  height: 300px;
  margin-bottom: 6px; /* adjust to control spacing */
  overflow: hidden;
}

.stack-item:last-child {
  margin-bottom: 0;
}

.stack-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.stack-item:hover img {
  transform: scale(1.05);
}

.section img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  object-fit: cover;
  pointer-events: auto;
}

.section {
  overflow: hidden;
}
.section:active img,
.section:hover img {
  transform: scale(1.05);
}

.works-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 98px);
  gap: 4px;
  margin-top: 20px;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.works-logo img {
  width: 30px; /* or any smaller size you prefer */
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.knife-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
  justify-content: center
}

.knife-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 20px auto;
}

#main-image {
  width: 300px;
  height: auto;
  display: block;
  margin: 20px auto;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, 98px);
  gap: 4px;
  margin-top: 20px;
  justify-content: center;
}

.thumb {
  width: 98px;
  height: 98px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.thumb:hover {
  opacity: 1;
}

.square {
  display: block;
  width: 98px;
  height: 98px;
  object-fit: cover;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}

.square.loaded {
  opacity: 1;
  transform: translateY(0);

}

.about-container {
  width: 100%;
  max-width: 300px;
  margin: 40px auto;
  padding: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.6;
  box-sizing: border-box;
  text-align: left;
  font-weight: regular;
  overflow: visible; /* Ensure shadows are not clipped */
}

.about-logo img {
  width: 40px;
  margin-bottom: 40px;
}

.about-text p {
  margin: 0 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin-top: 80px;
  margin-bottom: 80px;
}

.about-text p.contact-link {
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-top: 80px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  font-size: 13px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #aaa;
  background-color: #f5f5f5;
  color: #111;
  font-family: inherit;
  resize: vertical;
}

.contact-form button {
  padding: 8px 12px;
  font-size: 13px;
  border: none;
  background-color: #111;
  color: #fff;
  cursor: pointer;
  width: fit-content;
}

.contact-form button:hover {
  background-color: #333;
}

.contact-form input,
.contact-form textarea {
  background-color: #d5d5d5;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 13px;
  color: #111;
}

.contact-form button {
  background-color: #d5d5d5;
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #111;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #c0c0c0;
}

.knife-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px; /* ~3mm */
  margin: 8px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.knife-button {
  flex: 1;
  padding: 3px 0;
  font-size: 12px;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  transition: all 0.2s ease;
  width: 100%;
  display: inline-block;
}

.knife-button.orange {
  background-color: #ffffff;
  color: #cc5200;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.knife-button.orange:hover {
  background-color: #fedfc0;
  border: 1px solid #fedfc0;
}

.knife-button.green {
  background-color: #ffffff;
  color: #2d662d;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.knife-button.green:hover {
  background-color: #b9eab9;
  border: 1px solid #b9eab9;
}

.knife-button.orange:active,
.knife-button.green:active {
  box-shadow: none;
  transform: translateY(1px);
}

.knife-button .small-text {
  font-size: 10px;
  font-weight: bold;
}

.knife-description p {
  text-align: center;
  font-weight: bold;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}