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

:root {
  --bg: #1c1c1e;
  --surface: #252527;
  --text: #e8e0d8;
  --muted: #8a8278;
  --copper: #b87333;
  --bronze: #8c7853;
  --steel: #71797E;
  --patina: #4a7c6f;
  --brass: #a08060;
  --border: rgba(113, 121, 126, 0.2);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(184, 115, 51, 0.3);
  color: var(--text);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  padding: 3rem 0 2rem;
}

.company-name {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(
    135deg,
    var(--copper) 0%,
    #d4956b 25%,
    var(--bronze) 50%,
    var(--copper) 75%,
    #d4956b 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s ease-in-out infinite;
}

.company-kanji {
  display: block;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-top: 0.25rem;
  opacity: 0.7;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  flex-shrink: 0;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1.3;
  max-width: 560px;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
}

/* Status dot */
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--patina);
  margin-left: 0.5rem;
  vertical-align: middle;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Sections */
section {
  padding: 2rem 0;
}

section + section {
  border-top: 1px solid rgba(113, 121, 126, 0.12);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.25rem;
}

/* What We Build */
.build-grid {
  display: grid;
  gap: 2rem;
}

.build-item {
  padding-left: 1rem;
  border-left: 2px solid var(--surface);
  transition: border-color 0.4s ease;
}

.build-item:hover {
  border-left-color: var(--copper);
}

.build-item h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.build-item p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Project stubs (build-item used as link) */
a.build-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.build-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

a.build-item p {
  line-height: 1.6;
}

.stub-arrow {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--copper);
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

a.build-item:hover .stub-arrow {
  opacity: 1;
  transform: translateX(3px);
}

.stub-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.75rem;
}

.stub-models {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

.model-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, color 0.3s ease;
}

a.build-item:hover .model-pill {
  border-color: rgba(184, 115, 51, 0.3);
  color: var(--text);
}

/* Philosophy */
.philosophy p {
  font-size: 1rem;
  color: var(--text);
  max-width: 600px;
  opacity: 0.9;
}

.philosophy p + p {
  margin-top: 1rem;
}

/* Contact */
.contact a {
  color: var(--copper);
  text-decoration: none;
  border-bottom: 1px solid rgba(184, 115, 51, 0.3);
  transition: border-color 0.3s ease;
}

.contact a:hover {
  border-bottom-color: var(--copper);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.contact-link a {
  color: var(--copper);
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(113, 121, 126, 0.12);
}

footer p {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 0 1.25rem;
  }

  header {
    padding: 2rem 0 1.5rem;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  section {
    padding: 1.5rem 0;
  }

  .company-name {
    font-size: 1.25rem;
  }
}
