

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #eeeeee;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 800 400'%3E%3Cdefs%3E%3CradialGradient id='a' cx='396' cy='281' r='514' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23C28868'/%3E%3Cstop offset='1' stop-color='%23EEEEEE'/%3E%3C/radialGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='400' y1='148' x2='400' y2='333'%3E%3Cstop offset='0' stop-color='%2347402A' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%2347402A' stop-opacity='0.5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='800' height='400'/%3E%3Cg fill-opacity='0.24'%3E%3Ccircle fill='url(%23b)' cx='267.5' cy='61' r='300'/%3E%3Ccircle fill='url(%23b)' cx='532.5' cy='61' r='300'/%3E%3Ccircle fill='url(%23b)' cx='400' cy='30' r='300'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed;
  background-size: cover;
  padding: 0px;
	margin: 0px;
}

a {
  color: #95502e;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #462b22;
}

.project-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.glass, .panel, .section-nav, .hero {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(46, 37, 1, 0.12);
}

.hero {
  padding: 2.4rem 2rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #95502e 0%, #ee9d75 50%, #95502e 100%);
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tag-year {
  background: rgba(33, 150, 243, 0.2);
  color: #1565c0;
}

.tag-personal {
  background: rgba(76, 175, 80, 0.2);
  color: #2e7d32;
}

.tag-stack {
  background: rgba(255, 7, 7, 0.15);
  color: #300000;
}

.hero-title {
  font-family: "Colonna MT", "Sawarabi Mincho", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  color: #462b22;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.hero-subtitle {
  color: #95502e;
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-lead {
  color: #555;
  max-width: 62ch;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: #701e2c;
  border: 1px solid #701e2c;
  color: #f0e7d6;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  background-color: #b58a8b;
  border-color: #b58a8b;
  color: #f0e7d6;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #95502e;
  border-color: rgba(149, 80, 46, 0.35);
}

.btn-ghost:hover {
  background: rgba(149, 80, 46, 0.12);
  color: #462b22;
  border-color: #95502e;
}

.section-nav {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.section-nav a {
  color: #462b22;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.section-nav a:hover,
.section-nav a.is-active {
  background: rgba(149, 80, 46, 0.12);
  border-color: rgba(149, 80, 46, 0.3);
  color: #95502e;
}

.panel {
  padding: 1.75rem 1.6rem;
  margin-bottom: 1.35rem;
}

.panel + .panel {
  scroll-margin-top: 4.5rem;
}

.panel-heading {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(149, 80, 46, 0.2);
}

.panel-heading h2 {
  font-family: "Colonna MT", "Sawarabi Mincho", Georgia, serif;
  color: #462b22;
  font-size: 1.7rem;
  font-weight: 600;
}

.panel-heading .ligne {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #ee9d75, transparent);
  border-radius: 2px;
}

.panel p {
  color: #555;
  margin-bottom: 0.85rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.why-card {
  background: rgba(149, 80, 46, 0.06);
  border-left: 4px solid rgba(149, 80, 46, 0.35);
  border-radius: 10px;
  padding: 1rem 1.05rem;
}

.why-card h3 {
  color: #462b22;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.why-card p {
  margin: 0;
  font-size: 0.92rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.feature-card {
  background: rgba(254, 254, 250, 0.85);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(46, 37, 1, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(46, 37, 1, 0.18);
}

.feature-label {
  background-image: linear-gradient(135deg, #95502e 0%, #c5734a 20%, #ee9d75 50%, #c5734a 80%, #95502e 100%);
  color: rgba(70, 43, 34, 0.9);
  padding: 0.55rem 0.8rem;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-body {
  padding: 0.85rem 0.95rem 1rem;
  flex: 1;
}

.feature-body p {
  margin: 0;
  font-size: 0.9rem;
  text-align: justify;
}

.feature-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.filter-chip {
  border: 1px solid #d1d5da;
  background: rgba(255, 255, 255, 0.55);
  color: #462b22;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
}

.filter-chip:hover,
.filter-chip.is-on {
  border-color: #95502e;
  background: rgba(149, 80, 46, 0.12);
  color: #95502e;
}

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

.tech-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 800px) {
  .tech-layout {
    grid-template-columns: 1fr;
  }
}
.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tech-table th,
.tech-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(149, 80, 46, 0.15);
  vertical-align: top;
}

.tech-table th {
  color: #462b22;
  font-weight: 700;
  width: 34%;
}

.tech-table td {
  color: #555;
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.stack-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(149, 80, 46, 0.12);
  color: #95502e;
  border: 1px solid rgba(149, 80, 46, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.arch-list {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.arch-list li {
  background: rgba(149, 80, 46, 0.06);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  color: #555;
  font-size: 0.9rem;
  border-left: 3px solid #c28868;
}

.arch-list strong {
  color: #462b22;
  display: block;
  margin-bottom: 0.15rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.stat {
  text-align: center;
  background: rgba(254, 254, 250, 0.9);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  box-shadow: 0 4px 14px rgba(46, 37, 1, 0.1);
}

.stat-value {
  font-family: "Colonna MT", "Sawarabi Mincho", Georgia, serif;
  font-size: 1.8rem;
  color: #95502e;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: #555;
  margin-top: 0.25rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.shot {
  margin: 0;
}

.shot-frame {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(149, 80, 46, 0.12), rgba(194, 136, 104, 0.2));
  border: 1px dashed rgba(149, 80, 46, 0.45);
  box-shadow: 0 4px 16px rgba(46, 37, 1, 0.12);
}

.shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  background: #fefefa;
}

.shot-frame img.is-missing {
  opacity: 0;
  pointer-events: none;
}

.shot-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #95502e;
  text-align: center;
  padding: 1rem;
}

.shot-placeholder i {
  font-size: 1.6rem;
  opacity: 0.85;
}

.shot-placeholder em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9rem;
  color: #462b22;
}

.shot-placeholder small {
  color: #555;
  font-size: 0.78rem;
}

.shot figcaption {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  color: #555;
  text-align: center;
}

.back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #701e2c;
  color: #f0e7d6;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 50;
}

.back-top.is-shown {
  opacity: 1;
  pointer-events: auto;
}

.back-top:hover {
  background: #b58a8b;
}

@media (max-width: 640px) {
  .hero,
  .panel {
    padding: 1.35rem 1.1rem;
  }
  .section-nav {
    top: 0.4rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}

.brand-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}
.brand-hero img {
  width: 90%;
  margin:15px;
  border-radius: 14px;
  background: #0a0a0a00;
  box-shadow: 0 8px 28px rgba(46, 37, 1, 0.2);
}
.brand-hero .brand-note {
  font-size: 0.9rem;
  color: #555;
  margin: 0;
}
.tag-thesis {
  background: rgba(112, 30, 44, 0.18);
  color: #701e2c;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}
.compare-card {
  background: rgba(254, 254, 250, 0.9);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  box-shadow: 0 4px 14px rgba(46, 37, 1, 0.1);
  border-top: 4px solid #c28868;
}
.compare-card h3 {
  color: #462b22;
  font-size: 1.05rem;
  margin-bottom: 0.55rem;
}
.compare-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #555;
  font-size: 0.9rem;
}
.compare-card li { margin-bottom: 0.3rem; }
.roadmap-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.roadmap-list li {
  background: rgba(149, 80, 46, 0.06);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  color: #555;
  font-size: 0.9rem;
  border-left: 3px solid #701e2c;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #555;
}
.meta-row strong { color: #462b22; }
@media (max-width: 800px) {
  .brand-hero { grid-template-columns: 1fr; }
}
