:root {
  --bg: #fcfcfb;
  --surface: #ffffff;
  --ink: #141414;
  --body: #565656;
  --muted: #909090;
  --line: #ecebe8;
  --line-strong: #e2e1dd;
  --radius: 14px;
  --pad: clamp(18px, 5vw, 40px);
  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.wrap {
  width: min(940px, 100% - (var(--pad) * 2));
  margin-inline: auto;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.site-head { flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.head { display: flex; align-items: center; min-height: clamp(50px, 7.4vh, 62px); }
.wordmark { font-size: 0.95rem; font-weight: 500; letter-spacing: -0.015em; }

/* ---------- main ---------- */
main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 3.2vh, 34px);
  padding: clamp(12px, 3vh, 34px) 0;
}

.hero h1 {
  font-size: clamp(1.75rem, min(6.6vw, 6.2vh), 3.3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(8px, 1.6vh, 16px);
}

/* ---------- work ---------- */
.cards { display: grid; gap: clamp(8px, 1.6vh, 14px); grid-template-columns: 1fr; }
.card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: clamp(11px, 1.9vh, 18px) clamp(13px, 1.8vw, 18px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: #cfcecb;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -18px rgba(20, 20, 20, 0.35);
}
.card-logo {
  width: clamp(30px, 4.4vh, 40px);
  height: clamp(30px, 4.4vh, 40px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-logo img { width: 62%; height: 62%; object-fit: contain; }
.card-body { min-width: 0; }
.card h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.94rem, min(3.5vw, 2.1vh), 1.05rem);
  font-weight: 500;
  letter-spacing: -0.018em;
}
.card h3 span { color: var(--muted); font-size: 0.82rem; transition: transform 0.18s ease, color 0.18s ease; }
.card:hover h3 span { transform: translate(3px, -3px); color: var(--ink); }
.card p {
  margin-top: 3px;
  font-size: clamp(0.8rem, min(3vw, 1.8vh), 0.9rem);
  color: var(--body);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.05em; }

/* ---------- contact ---------- */
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: clamp(9px, 1.6vh, 15px) 2px;
  border-top: 1px solid var(--line);
  transition: padding-left 0.18s ease;
}
.rows .row:last-child { border-bottom: 1px solid var(--line); }
.row:hover { padding-left: 10px; }
.row-k {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.row-v {
  font-size: clamp(0.9rem, min(3.4vw, 2vh), 1rem);
  font-weight: 450;
  letter-spacing: -0.012em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row-a { color: var(--muted); font-size: 0.9rem; transition: transform 0.18s ease, color 0.18s ease; }
.row:hover .row-a { transform: translate(3px, -3px); color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { flex: 0 0 auto; border-top: 1px solid var(--line); }
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(10px, 1.8vh, 18px) 0;
  font-size: 0.76rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
  .card:hover h3 span, .row:hover .row-a { transform: none; }
  .row:hover { padding-left: 2px; }
}

/* --- wide: work side by side --- */
@media (min-width: 620px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .card { grid-template-columns: auto 1fr; grid-template-areas: "logo meta" "body body"; row-gap: 12px; }
  .card-logo { grid-area: logo; justify-self: start; }
  .card-meta { grid-area: meta; justify-self: end; align-self: center; }
  .card-body { grid-area: body; }
  .card p { white-space: normal; }
}

/* --- short viewports: shed the optional line --- */
@media (max-height: 700px) {
  .card p { display: none; }
  .site-foot .foot { padding: 8px 0 10px; }
}
@media (max-height: 600px) {
  .hero h1 { font-size: min(5vw, 5vh); }
  main { gap: 10px; }
  .label { margin-bottom: 6px; }
}
