@font-face {
  font-family: "Hanken Grotesk";
  src: url(assets/fonts/hanken-grotesk-latin.woff2) format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  --paper: #f2f1ed;
  --ink: #141412;
  --mid: #5d5c57;
  --soft: #9a988f;
  --line: rgba(20, 20, 18, 0.16);
  --gut: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

/* placeholders stay visible until real content arrives */
.ph { border-bottom: 1px dotted var(--soft); }

/* top bar */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gut);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid var(--line);
}
.mark { font-weight: 600; letter-spacing: 0.01em; }
.bar nav { display: flex; gap: clamp(14px, 2.4vw, 34px); color: var(--mid); font-size: 15px; }
.bar nav a { padding: 6px 0; transition: color 0.2s; }
.bar nav a:hover { color: var(--ink); }

/* hero */
.hero {
  min-height: 100svh;
  padding: 140px var(--gut) 44px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-title {
  font-weight: 500;
  font-size: clamp(44px, 9.4vw, 176px);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.ln > span { display: block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.ln:nth-child(2) > span { animation-delay: 0.1s; }
.ln:nth-child(3) > span { animation-delay: 0.2s; }
@keyframes rise { to { transform: none; } }

.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: 56px;
  opacity: 0; animation: fade 0.9s 0.7s ease forwards;
}
.hero-foot p { max-width: 34ch; color: var(--mid); font-size: clamp(16px, 1.3vw, 19px); }
.down { color: var(--mid); white-space: nowrap; }
.down:hover { color: var(--ink); }
@keyframes fade { to { opacity: 1; } }

/* facts */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 0.5px solid var(--ink); border-bottom: 0.5px solid var(--line);
}
.facts div { padding: 22px var(--gut) 22px 0; display: flex; flex-direction: column; gap: 2px; }
.facts div:first-child { padding-left: var(--gut); }
.facts div + div { padding-left: clamp(16px, 2vw, 32px); border-left: 0.5px solid var(--line); }
.facts strong { font-size: clamp(24px, 2.6vw, 40px); font-weight: 500; letter-spacing: -0.02em; width: fit-content; }
.facts span { color: var(--mid); font-size: 14px; }

/* blocks */
.block { padding: clamp(64px, 9vw, 150px) var(--gut) 0; }
.block-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px;
}
.block-head h2 { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -0.015em; }
.block-head a { color: var(--mid); }
.block-head a:hover { color: var(--ink); }

/* project index */
.index { border-top: 0.5px solid var(--ink); }
.index li { border-bottom: 0.5px solid var(--line); }
.index a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(120px, 0.5fr) 80px 120px;
  gap: 16px; align-items: center;
  padding: 18px 0;
  transition: padding 0.5s var(--ease), color 0.3s;
}
.index .n { color: var(--soft); font-size: 14px; }
.index .t { font-size: clamp(22px, 3.2vw, 56px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; }
.index .loc, .index .yr { color: var(--mid); font-size: 15px; width: fit-content; }
.thumb { height: 56px; background: #e4e2db; border-radius: 2px; overflow: hidden; display: block; }
.thumb i { display: block; width: 100%; height: 100%; background-size: cover; background-position: center; }
.index:hover li a { color: var(--soft); }
.index li:hover a { color: var(--ink); padding-left: 12px; }
.note { margin-top: 14px; color: var(--soft); font-size: 13px; }

/* hover photo */
.peek {
  position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none;
  width: clamp(240px, 24vw, 420px);
  opacity: 0; transform: translate3d(0, 0, 0) scale(0.94);
  transition: opacity 0.25s ease;
}
.peek.on { opacity: 1; }
.peek-img {
  aspect-ratio: 3 / 2; background: #d8d6ce; background-size: cover; background-position: center;
  border-radius: 2px;
}
.peek span { display: block; margin-top: 8px; font-size: 13px; color: var(--mid); }

/* services */
.rows { border-top: 0.5px solid var(--ink); }
.rows li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0; border-bottom: 0.5px solid var(--line);
  font-size: clamp(20px, 2.4vw, 38px); letter-spacing: -0.02em; font-weight: 500;
}
.rows i { font-style: normal; font-size: 14px; font-weight: 400; color: var(--soft); letter-spacing: 0; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 0.5px solid var(--ink); }
.steps li { padding: 18px 20px 0 0; }
.steps i { font-style: normal; color: var(--soft); font-size: 14px; display: block; }
.steps b { display: block; font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; margin: 6px 0 6px; letter-spacing: -0.01em; }
.steps p { color: var(--mid); width: fit-content; }

/* contact */
.close { padding: clamp(80px, 12vw, 200px) var(--gut) clamp(48px, 6vw, 96px); }
.close h2 { font-size: clamp(36px, 6.4vw, 120px); font-weight: 500; line-height: 0.98; letter-spacing: -0.035em; }
.contact { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 36px; color: var(--mid); font-size: clamp(16px, 1.3vw, 19px); }
.contact .ph { width: fit-content; }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--gut) 28px; border-top: 0.5px solid var(--line);
  color: var(--mid); font-size: 14px;
}
.foot a:hover { color: var(--ink); }

/* tablet */
@media (max-width: 1023px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:nth-child(3) { border-left: 0; padding-left: var(--gut); }
  .facts div:nth-child(n+3) { border-top: 0.5px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li { padding-bottom: 20px; }
}

/* phone */
@media (max-width: 599px) {
  .bar nav a:not(:last-child) { display: none; }
  .hero { padding-top: 110px; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .index a { grid-template-columns: 30px minmax(0, 1fr) 80px; row-gap: 4px; }
  .index .t { grid-column: 2; }
  .index .thumb { grid-column: 3; grid-row: 1 / span 2; height: 52px; }
  .index .loc { grid-column: 2; grid-row: 2; }
  .index .yr { display: none; }
  .steps { grid-template-columns: 1fr; }
  .note { display: none; }
}

/* touch: no hover photo */
@media (hover: none) { .peek { display: none; } .index li:hover a { padding-left: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ln > span { transform: none; animation: none; }
  .hero-foot { opacity: 1; animation: none; }
  .index a, .peek { transition: none; }
}
.contact a:hover{color:var(--ink)}

/* text pages */
.doc { padding: 150px var(--gut) clamp(64px, 9vw, 140px); max-width: 880px; min-height: 70svh; }
.doc h1 { font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 16px; }
.doc h2 { font-size: clamp(18px, 1.6vw, 24px); font-weight: 500; margin: 40px 0 8px; letter-spacing: -0.01em; }
.doc p { color: var(--mid); margin-top: 10px; max-width: 62ch; }
.doc .lead { color: var(--soft); }
.doc a { color: var(--ink); border-bottom: 0.5px solid var(--soft); }
