:root {
  color-scheme: light;
  --paper: #fffdf7;
  --paper-warm: #f5efe4;
  --ink: #11130f;
  --ink-soft: #30372f;
  --muted: #5d6358;
  --line: #cfc5b3;
  --seal: #a7261d;
  --moss: #425b3f;
  --shadow: 0 18px 46px rgba(42, 34, 24, 0.12);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(23, 25, 21, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 25, 21, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 82% 10%, rgba(167, 38, 29, 0.07), transparent 26rem),
    var(--paper);
  background-size: 34px 34px, 34px 34px, auto, auto;
  color: var(--ink);
}

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

.white-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.96);
}

.white-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
}

.white-mark {
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(167, 38, 29, 0.5);
  border-radius: 4px;
  background: var(--seal);
  color: #fffaf3;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(167, 38, 29, 0.18);
}

.white-brand strong,
.white-brand small {
  display: block;
}

.white-brand strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.white-brand small {
  margin-top: 0.12rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.white-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2.2vw, 1.7rem);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.white-nav a {
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.white-nav a:hover,
.white-nav a:focus-visible {
  border-color: var(--seal);
  color: var(--ink);
}

.white-hero {
  display: grid;
  min-height: 82vh;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--seal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(5.4rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.04em;
}

.seal-line {
  display: inline-flex;
  width: fit-content;
  margin: 1.3rem 0 0;
  border-left: 3px solid var(--seal);
  padding-left: 0.8rem;
  color: var(--ink-soft);
  font-weight: 800;
}

.lead {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.05rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.85rem 1.15rem;
  font-weight: 900;
  line-height: 1.1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: #fffaf3;
}

.button-light {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.home-visual {
  position: relative;
  min-height: 30rem;
  border: 1px solid #c7bca8;
  border-radius: 4px;
  padding: 1.15rem;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-visual::before,
.home-visual::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.home-visual::before {
  inset: 1rem;
  border: 1px solid rgba(199, 188, 168, 0.92);
}

.home-visual::after {
  right: 2rem;
  bottom: 2rem;
  width: 4.8rem;
  height: 4.8rem;
  border: 1px solid rgba(167, 38, 29, 0.5);
  border-radius: 50%;
}

.visual-top,
.room-card,
.device-grid {
  position: relative;
  z-index: 1;
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.visual-top strong {
  color: var(--seal);
  font-size: 2.3rem;
  line-height: 1;
}

.room-card {
  margin-top: 4.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.35rem 0;
}

.room-card span,
.room-card small {
  display: block;
  color: var(--ink-soft);
  font-weight: 800;
}

.room-card strong {
  display: block;
  margin: 0.75rem 0 0.45rem;
  color: var(--ink);
  font-size: clamp(4.6rem, 9vw, 7rem);
  line-height: 0.92;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.device-grid div {
  min-height: 7.4rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 253, 247, 0.72);
}

.device-grid span {
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin-bottom: 1.8rem;
  border-radius: 50%;
  background: var(--moss);
}

.device-grid div:nth-child(2) span,
.device-grid div:nth-child(4) span {
  background: var(--seal);
}

.device-grid strong,
.device-grid small {
  display: block;
}

.device-grid small {
  margin-top: 0.28rem;
  color: var(--ink-soft);
}

.white-section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5.5rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.4rem);
}

h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
}

.projects {
  background: rgba(255, 255, 255, 0.48);
}

.white-project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.white-project a {
  display: flex;
  min-height: 23rem;
  flex-direction: column;
  justify-content: flex-end;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem;
  background: rgba(251, 250, 246, 0.45);
  transition:
    background 180ms ease,
    color 180ms ease;
}

.white-project a:hover,
.white-project a:focus-visible {
  background: #fffdf8;
  color: var(--seal);
}

.project-num {
  color: rgba(23, 25, 21, 0.22);
  font-size: clamp(3rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.9;
}

.project-type {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.6rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.white-project h3 {
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.12;
}

.white-project p {
  margin: 0.9rem 0 0;
  color: #283027;
  line-height: 1.8;
}

.white-project strong {
  margin-top: 1rem;
  color: var(--seal);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.capability {
  background: linear-gradient(180deg, rgba(244, 240, 232, 0.42), rgba(251, 250, 246, 0.8));
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-list div {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
}

.capability-list div:last-child {
  border-right: 0;
}

.capability-list span {
  color: var(--seal);
  font-weight: 900;
}

.capability-list h3 {
  margin: 2.6rem 0 0;
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
}

.capability-list p {
  max-width: 24rem;
  margin: 1rem 0 0;
  color: #283027;
  line-height: 1.85;
}

.white-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5.5rem);
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 40%, rgba(178, 59, 46, 0.045), transparent 28rem),
    var(--paper);
}

.white-contact h2 {
  max-width: 13ch;
}

.white-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 5vw, 5.5rem);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fffdf8;
  font-size: 0.9rem;
}

.white-footer a:hover,
.white-footer a:focus-visible {
  color: var(--seal);
}

@media (max-width: 1180px) {
  .white-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .white-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .capability-list {
    grid-template-columns: 1fr;
  }

  .capability-list div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-list div:last-child {
    border-bottom: 0;
  }

  .white-contact {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .white-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.86rem;
  }

  h1 {
    font-size: clamp(4.4rem, 24vw, 6.2rem);
  }

  .button {
    width: 100%;
  }

  .home-visual {
    min-height: auto;
  }

  .room-card {
    margin-top: 2.2rem;
  }

  .device-grid,
  .white-project-grid {
    grid-template-columns: 1fr;
  }

  .white-project a {
    min-height: 21rem;
  }

  .section-heading,
  .white-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
