/* this is controller code css */
:root {
  --pink: #ff6fae;
  --pink-strong: #ff4f9a;
  --pink-soft: #ffd6e8;
  --lavender: #f6efff;
  --lavender-2: #efe7ff;

  --bg: #faf7ff;
  --bg-2: #f5efff;

  --text: #4a3a52;
  --muted: #6f5e79;

  --card: #ffffff;
  --line: rgba(214, 107, 232, 0.16);

  --shadow: 0 18px 44px rgba(167, 97, 207, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  color: var(--text);
  min-height: 100vh;
  padding-top: 78px;
  background:
    radial-gradient(circle at top left, rgba(255, 111, 174, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(185, 117, 255, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(255, 214, 232, 0.65), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

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

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(214, 107, 232, 0.14);
  box-shadow: 0 8px 26px rgba(167, 97, 207, 0.08);

}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* nav bar content */

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #5d476a;
  white-space: nowrap;
}

.brand small {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(93, 71, 106, 0.68);
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

nav a {
  color: rgba(93, 71, 106, 0.66);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: color 0.2s ease, transform 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--pink-strong);
  transform: translateY(-1px);
}

/*main*/

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.section,
.process-section,
.gallery-section,
.bom-section {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(214, 107, 232, 0.12);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border-radius: 26px;
}


.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  color: #6f3d67;
  margin-bottom: 10px;
  letter-spacing: -0.05em;
}

.subtitle {
  font-size: clamp(1.02rem, 1.7vw, 1.35rem);
  font-weight: 700;
  color: var(--pink-strong);
  text-align: center;
  margin-bottom: 18px;
}

.underline {
  width: min(420px, 70%);
  height: 2px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 111, 174, 0.52) 18%,
      rgba(255, 111, 174, 0.92) 50%,
      rgba(185, 117, 255, 0.82) 82%,
      transparent 100%);
  margin: 0 auto 28px;
  border-radius: 999px;
  opacity: 0.95;
}

.lead {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 26px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.02rem;
}


.gallery-section {
  margin-top: 60px;
}

.gallery-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pink-strong);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.carousel-card {
  max-width: 780px;
  margin: 0 auto 4px;
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(214, 107, 232, 0.12);
  box-shadow: var(--shadow);
  border-radius: 22px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;
}

.carousel-image-wrap {
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-image-wrap img {
  max-width: 100%;
  max-height: 390px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--pink-strong);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(167, 97, 207, 0.16);
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.98);
  color: var(--pink);
}

.prev-btn {
  left: 14px;
}

.next-btn {
  right: 14px;
}

/*Start of image gallery*/
.carousel-dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}


.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--pink);
}

/*end of image gallery*/
/*start of BOM .xlsx preview */
.bom-intro {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 22px;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1rem;
}

.bom-stats {
  max-width: 860px;
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(214, 107, 232, 0.12);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
}

.stat span {
  display: block;
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--pink-strong);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.stat p {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.bom-table-wrap {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(214, 107, 232, 0.12);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.bom-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
  font-size: 0.92rem;
}

.bom-table thead th {
  background: rgba(255, 111, 174, 0.12);
  color: var(--pink-strong);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.bom-table th,
.bom-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.bom-table tbody tr:hover {
  background: rgba(255, 111, 174, 0.03);
}

.bom-table td.cost {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bom-table td.level {
  white-space: nowrap;
  width: 70px;
  color: rgba(255, 255, 255, 0.78);
}

.bom-table td.partnum {
  white-space: nowrap;
  width: 120px;
  color: #fff;
  font-weight: 700;
}

.bom-table td.vendor {
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
}


.sheet-frame {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  color: #202020;
  border-radius: 12px;
  border: 1px solid #d7d7d7;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
}

.sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #ffffff, #f4f4f4);
  border-bottom: 1px solid #d9d9d9;
}

.sheet-topbar strong {
  display: block;
  font-size: 0.95rem;
  color: #444;
  font-weight: 700;
}

.sheet-topbar span {
  display: block;
  font-size: 0.78rem;
  color: #777;
  margin-top: 2px;
}

.sheet-pill {
  background: #f8f8f8;
  color: #666;
  border: 1px solid #d2d2d2;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.sheet-scroll {
  overflow-x: auto;
  background: #ffffff;
}

.sheet-table {
  width: 100%;
  min-width: 1110px;
  border-collapse: collapse;
  font-size: 0.72rem;
  line-height: 1.15;
}

.sheet-table thead th,
.sheet-table tbody th,
.sheet-table td {
  border: 1px solid #e0e0e0;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  background: #ffffff;
  color: #222;
}

.sheet-table thead th {
  background: #f3f3f3;
  color: #5f5f5f;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.sheet-table thead .sheet-corner {
  background: #ededed;
  width: 42px;
}

.sheet-table tbody th {
  background: #f7f7f7;
  width: 42px;
  text-align: center;
  color: #666;
  font-weight: 700;
  white-space: nowrap;
}

.sheet-table td:nth-child(2) {
  min-width: 72px;
}

/* Level */
.sheet-table td:nth-child(3) {
  min-width: 92px;
}

/* Part # */
.sheet-table td:nth-child(4) {
  min-width: 220px;
}

/* Part Name */
.sheet-table td:nth-child(5) {
  min-width: 360px;
}

/* Description */
.sheet-table td:nth-child(6) {
  min-width: 82px;
}

/* Material */
.sheet-table td:nth-child(7) {
  min-width: 92px;
}

/* Cost */
.sheet-table td:nth-child(8) {
  min-width: 140px;
}

/* Vendor */

.sheet-table td:nth-child(7) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sheet-table td:nth-child(4),
.sheet-table td:nth-child(5),
.sheet-table td:nth-child(8) {
  white-space: normal;
  word-break: break-word;
}

.sheet-header-row td {
  background: #eaf4e2;
  font-weight: 700;
  color: #365b2e;
  white-space: nowrap;
}

.sheet-total-row td,
.sheet-total-row th {
  background: #fff7df;
}

.sheet-total-row td strong {
  color: #7a4c06;
}

.bom-actions {
  max-width: 900px;
  margin: 18px auto 0;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* end of bom preview */

/* generic process section */
.process-section {
  margin-top: 0;
}

.full-width-card,
.process-card {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(214, 107, 232, 0.12);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 14px;
  position: relative;
}

.process-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 111, 174, 0.14);
  color: var(--pink-strong);
  border: 1px solid rgba(255, 111, 174, 0.25);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}

.process-image {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 18px;
  background: #ffffff;
  object-fit: contain;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--pink-strong);
  color: var(--pink-strong);
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: 999px;
  transition: 0.2s ease;
  background: rgba(255, 111, 174, 0.06);
}

.download-btn:hover {
  background: var(--pink-strong);
  color: white;
}


.process-list {
  max-width: 850px;
  margin: 20px auto 0;
  padding-left: 24px;

  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
}

.process-list li {
  margin-bottom: 8px;
}

.process-list a {
  color: #0066cc;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
}

.process-list a:hover {
  color: #004999;
}

/* End of controller code css */

/* CSS for territoria.html */


.section-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 28px;
}

.section-row .box {
  min-width: 0;
  width: 100%;
}

.box .value {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.caption {
  font-size: 0.9rem;
  margin-top: 8px;
  color: var(--muted);
  text-align: center;
}


.info-card,
.box,
.gallery-item {
  background: none;
  box-shadow: none;
  padding: 5px;
}

.info-stack {
  display: grid;
  gap: 14px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin-top: 20px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}


/* End of territoria.html CSS */
/* CSS for guitar.html */
.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  justify-content: center;
  align-items: flex-start;
  min-width: 0;

  gap: 5px;
  margin: 30px 0;
  width: 100%;

}

.guitar-image {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
  object-fit: contain;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 111, 174, 0.12);
  border: 1px solid rgba(255, 111, 174, 0.18);
  color: var(--pink-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}


#imageZoomIn {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, .9);
  z-index: 99999;
  cursor: zoom-out;
}

#imageZoomIn.active {
  display: flex;
}

#imageZoomIn img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

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

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

  .shot {
    height: 280px;
  }

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

  .section,
  .process-section,
  .gallery-section,
  .bom-section {
    padding: 28px;
  }

}

@media (max-width: 640px) {
  .header-inner {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    gap: 18px;
  }

  main {
    padding: 28px 16px 60px;
  }

  .title .section-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .lead,
  .bom-intro {
    font-size: 1rem;
  }

  .gallery-title {
    font-size: 1.35rem;
  }

  .bom-stats {
    grid-template-columns: 1fr;
  }

  .bom-table th,
  .bom-table td {
    padding: 12px 12px;
  }

  .sheet-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-badge {
    position: static;
    display: inline-flex;
    margin-bottom: 12px;
  }

  .process-card {
    padding: 10px;
  }

  .process-image {
    height: auto;
    max-height: 70vh;
    object-fit: contain;
  }

  .section-row {
    grid-template-columns: 1fr !important;
  }

  .section-row .box {
    width: 100%;
  }
}