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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

header {
  position: relative;
  padding: 2rem 5%;
  text-align: center;
  border-bottom: 1px solid #333;
}

nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: all 0.3s;
}

nav a:hover {
  background-color: #111;
  border-radius: 4px;
}

.lang-switch {
  position: absolute;
  top: 1.5rem;
  right: 5%;
  display: flex;
  gap: 0.4rem;
}

.lang-btn {
  background: transparent;
  color: #888;
  border: 1px solid #333;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn:hover {
  color: #fff;
  border-color: #777;
}

.lang-btn.active {
  background-color: #fff;
  color: #000;
  border-color: #fff;
}

.line {
  width: 80%;
  max-width: 400px;
  height: 1px;
  background: #fff;
  margin: 1.5rem auto;
}

/* Page title (header h1) - single line, shrinks instead of wrapping */
h1 {
  font-size: clamp(1.5rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -1px;
  white-space: nowrap;
  hyphens: none;
  overflow-wrap: normal;
}

.intro-block {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 5% 0;
  text-align: center;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.7;
}

footer {
  text-align: center;
  padding: 3rem;
  opacity: 0.5;
  font-size: 0.9rem;
}

.projects-grid {
  display: flex;
  align-items: stretch;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 5%;
}

.project-card {
  flex: 1 1 0;
  min-width: 0;
  padding: 2.5rem 2rem;
  border: 1px solid #222;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card h2 {
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 300;
  margin-bottom: 1.25rem;
  white-space: nowrap;
  hyphens: none;
}

.project-card p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  flex-grow: 1;
}

@media (max-width: 700px) {
  .projects-grid {
    flex-direction: column;
    padding: 3rem 5%;
  }
}

.btn-outline {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.btn-outline:hover {
  background-color: #fff;
  color: #000;
}

/* Disclaimer page */
.notice {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 5%;
}

.notice p {
  margin-bottom: 1.4rem;
  opacity: 0.85;
  font-size: 1.05rem;
}

.notice .small {
  opacity: 0.5;
  font-size: 0.85rem;
  margin-top: 2.5rem;
}

/* Subproject page content (e.g. Triangle) */
.content-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 5%;
  border-top: 1px solid #222;
}

.content-section:first-of-type {
  border-top: none;
  padding-top: 4rem;
}

.content-section h3 {
  font-size: 1.6rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.content-section p {
  margin-bottom: 1.2rem;
  opacity: 0.85;
  font-size: 1.05rem;
}

.content-section ul {
  list-style: none;
  margin: 1.5rem 0;
}

.content-section li {
  padding: 0.9rem 0 0.9rem 1.5rem;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  opacity: 0.9;
}

.content-section li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.cta-center {
  text-align: center;
  padding: 3rem 5% 5rem;
}

/* Contact page */
.contact-section {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 5%;
  text-align: center;
}

.contact-section p {
  opacity: 0.8;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
