:root { --ink: #111; --muted: #6e6e6e; --bg: #fff; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.45; }

header.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.94);
  display: grid;
  grid-template-columns: 0.8fr 0.85fr 1.35fr 0.9fr;
  align-items: center;
  gap: 8px;
  padding: 18px 5vw 16px;
}
body.home header.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: transparent;
}
header.nav a {
  font-size: clamp(12px, 3.15vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}
header.nav a:nth-child(1) { text-align: left; }
header.nav a:nth-child(2),
header.nav a:nth-child(3) { text-align: center; }
header.nav a:nth-child(4) { text-align: right; }

.cover {
  width: 100%;
  height: 100svh;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #fff url("id-lab-city-iso.jpg") center 30% / cover no-repeat;
}
.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
body.home footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(255,255,255,.85));
}

.intro {
  max-width: 38em;
  margin: 0 auto;
  padding: 10vh 7vw 14vh;
  text-align: center;
}
.intro p {
  font-size: clamp(17px, 3.6vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}
.intro .kicker {
  margin-top: 1.4em;
  font-size: clamp(15px, 3.2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 6vw 90px;
}
.wrap p {
  font-size: clamp(17px, 3.5vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.03em;
  margin-bottom: 1.05em;
}
.wrap .name {
  margin-top: 2em;
  padding-top: 1.3em;
  border-top: 1px solid #ececec;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.wrap .meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0.35em 0 1.3em;
}
.wrap .meta a { border-bottom: 1px solid #111; }

.slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 18px 0 8px;
  background: #f4f4f4;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.slideshow-caption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin: 8px 0 2.2em;
  min-height: 2.2em;
}

@font-face {
  font-family: "Lab Hand";
  src: url("lab/ArchitectsDaughter-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.integ {
  margin: 0;
  padding: 18px 3vw 28px;
}
.integ svg {
  width: 100%;
  max-width: 560px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.integ .blk path {
  fill: #fff;
  stroke: #111;
  stroke-width: 1.35;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.integ .title {
  font-family: Helvetica, Arial, "Helvetica Neue", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-anchor: middle;
  fill: #111;
}
.integ .note {
  font-family: "Lab Hand", "Segoe Print", cursive;
  font-size: 13px;
  letter-spacing: 0.04em;
  fill: #3a3a3a;
}
.integ .in {
  font-family: "Lab Hand", "Segoe Print", cursive;
  font-size: 12px;
  letter-spacing: 0.03em;
  fill: #111;
}
.integ .seq {
  fill: none;
  stroke: #111;
  stroke-width: 1.25;
  stroke-linecap: round;
}
.integ .spine {
  fill: none;
  stroke: #c4a035;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.integ .spine-label { fill: #8a7020; font-size: 14px; }
.integ .return { fill: #8a7020; font-size: 13px; }
.integ .end { fill: #3a3a3a; }
.integ figcaption {
  max-width: 560px;
  margin: 8px auto 0;
  padding: 0 6vw;
  font-size: clamp(16px, 3.6vw, 20px);
  letter-spacing: -0.03em;
}
.integ figcaption a { border-bottom: 1px solid #111; }

.lab-open {
  padding: 9vh 7vw 4vh;
  max-width: 16em;
}
.lab-open p {
  font-size: clamp(28px, 8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.lab-open .lab-sub {
  margin-top: 0.7em;
  font-size: clamp(16px, 3.6vw, 22px);
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--muted);
}

.lab-rail {
  position: sticky;
  top: 52px;
  z-index: 20;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 10px 6vw 12px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid #ececec;
  -webkit-overflow-scrolling: touch;
}
.lab-rail a {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plate { padding: 28px 5vw 10px; }
.plate img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}
.plate-cap {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: baseline;
  padding: 14px 1vw 8px;
}
.plate-cap span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.plate-cap h2 {
  font-size: clamp(22px, 5.5vw, 34px);
  letter-spacing: -0.04em;
  font-weight: 700;
}
.plate-cap p {
  grid-column: 2;
  margin-top: 0.25em;
  font-size: clamp(16px, 3.6vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.03em;
  max-width: 28em;
}

.lab-close {
  margin-top: 28px;
  position: relative;
}
.lab-close img {
  width: 100%;
  height: 72vw;
  max-height: 640px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.lab-close div {
  padding: 22px 7vw 36px;
}
.lab-close p {
  font-size: clamp(16px, 3.6vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.03em;
  margin-bottom: 0.7em;
}
.lab-close a { border-bottom: 1px solid #111; }

.services {
  list-style: none;
  margin: 2.4em 0 0;
  padding: 1.3em 0 0;
  border-top: 1px solid #ececec;
}
.services li {
  font-size: clamp(17px, 3.5vw, 24px);
  line-height: 1.5;
  letter-spacing: -0.03em;
  padding: 0.15em 0;
}

.contact-page {
  min-height: calc(100svh - 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 7vw 100px;
  gap: 22px;
}
.contact-page .lead,
.contact-page .where {
  color: var(--ink);
  font-size: clamp(16px, 3.4vw, 24px);
}
.contact-page .mail {
  font-size: clamp(18px, 3.8vw, 26px);
  font-weight: 500;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5vw 22px;
  font-size: 11px;
}
footer .ig {
  width: 16px; height: 16px;
  border: 1.4px solid #111;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
