:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --muted: #626262;
  --faint: #8d8d8d;
  --line: #dedede;
  --surface: #f7f7f5;
  --surface-strong: #efefe9;
  --accent: #246bfe;
  --accent-dark: #174fc1;
  --shadow: 0 18px 60px rgba(17, 17, 17, 0.08);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(36, 107, 254, 0.3);
  outline-offset: 4px;
}

.site-header,
.section-shell,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 720;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 47%, var(--ink) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, var(--ink) 47% 53%, transparent 53%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100svh - 136px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 72px;
  align-items: center;
  padding: 72px 0 86px;
  border-bottom: 1px solid var(--line);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(82px, 11vw, 166px);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 780;
}

.hero-copy p {
  max-width: 640px;
  margin: 30px 0 0;
  color: #303030;
  font-size: clamp(21px, 2.2vw, 31px);
  line-height: 1.16;
  font-weight: 520;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 680;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg,
.project-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--ink);
  color: #ffffff;
  border: 1px solid var(--ink);
}

.button-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #ffffff;
}

.button-secondary:hover {
  border-color: #bdbdbd;
  background: var(--surface);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4ff;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.dog-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  box-shadow:
    inset 0 0 32px 12px rgba(237, 244, 255, 0.36),
    inset 0 -80px 80px rgba(237, 244, 255, 0.2);
}

.dog-panel img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 72%;
  transform: scale(1.03);
}

.dog-panel p {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  color: #111111;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.2;
  padding: 13px 14px;
}

.projects,
.about {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.about h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 760;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  background: #ffffff;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

a.project-card:hover {
  transform: translateY(-2px);
  border-color: #b8b8b8;
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.08);
}

.project-index {
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.project-main {
  display: grid;
  gap: 7px;
}

.project-main strong {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.08;
  letter-spacing: 0;
}

.project-main span {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.muted-card {
  background: var(--surface);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 72px;
  align-items: start;
}

.about-copy {
  position: sticky;
  top: 24px;
}

.about-copy p {
  margin: 24px 0 0;
  max-width: 520px;
  color: #303030;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.22;
  font-weight: 520;
}

.principles {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.principles div {
  display: grid;
  grid-template-columns: 48px minmax(0, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.principles span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 700;
}

.principles strong {
  font-size: 18px;
  line-height: 1.2;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.site-footer {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 740;
}

.site-footer a {
  font-weight: 640;
}

@media (max-width: 860px) {
  .site-header,
  .section-shell,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .site-header {
    min-height: 68px;
  }

  .nav-links {
    gap: 14px;
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 52px 0 68px;
  }

  .hero-copy h1 {
    font-size: clamp(74px, 22vw, 118px);
  }

  .hero-copy p {
    margin-top: 24px;
  }

  .hero-panel {
    display: none;
  }

  .section-heading,
  .about {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .projects,
  .about {
    padding: 68px 0;
  }

  .about-copy {
    position: static;
  }

  .project-card {
    grid-template-columns: 40px minmax(0, 1fr);
    min-height: 0;
    padding: 20px;
  }

  .project-link {
    grid-column: 2;
    justify-content: flex-start;
  }

  .principles div {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px 18px;
  }

  .principles p {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 26px 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

}
