:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #0e0e0e;
  --panel-2: #151515;
  --ink: #f4f4f4;
  --muted: #a6a6a6;
  --soft: #727272;
  --line: #2a2a2a;
  --line-strong: #3a3a3a;
  --white: #ffffff;
  --black: #000000;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 360px),
    var(--bg);
  line-height: 1.75;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px clamp(20px, 5vw, 72px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: 108px;
  height: auto;
  mix-blend-mode: screen;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 28px);
  min-width: 0;
}

.nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.nav a,
.site-footer a {
  padding: 4px 0;
  white-space: nowrap;
}

.nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--white);
}

.menu-toggle {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-5px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(5px);
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.home-stage {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(72px, 9vw, 118px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px) clamp(34px, 6vw, 88px);
  width: min(100%, 860px);
}

.project-tile {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  text-align: center;
}

.project-icon {
  display: grid;
  place-items: center;
  width: clamp(104px, 15vw, 156px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--black);
  border: 1px solid transparent;
  border-radius: 20px;
  transition: transform 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.project-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 180ms ease;
}

.project-tile:hover .project-icon {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.project-tile:hover .project-name {
  color: var(--white);
}

.project-tile-static {
  cursor: default;
}

.project-tile-static:hover .project-icon {
  transform: none;
  border-color: transparent;
}

.project-tile-static:hover .project-name {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9.5em;
  margin-bottom: 26px;
  font-size: clamp(50px, 9vw, 114px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.12;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  color: var(--black);
  background: var(--white);
  border-color: var(--white);
}

.button.primary:hover {
  background: #dcdcdc;
  border-color: #dcdcdc;
}

.button.secondary,
.button.inverted {
  color: var(--white);
  background: transparent;
}

.button.secondary:hover,
.button.inverted:hover {
  border-color: var(--white);
}

.section {
  padding: clamp(40px, 5vw, 64px) clamp(20px, 5vw, 72px);
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.work-list-simple {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}

.work-card,
.legal-block,
.support-card,
.profile-card {
  min-height: 0;
  padding: clamp(20px, 3vw, 28px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.work-card.featured {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 58%),
    var(--panel);
}

.work-card-inquiry {
  grid-column: 1 / -1;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.work-card p,
.legal-block p,
.legal-block li,
.support-card p,
.profile-card p,
.page-lead {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  margin-right: 18px;
  color: var(--ink);
  font-weight: 800;
}

.work-card .text-link {
  font-size: 12px;
}

.text-link::after {
  content: none;
  margin-left: 6px;
}

.mail-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-links div {
  display: grid;
  gap: 4px;
}

.contact-links span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.inline-link {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link.inline-link {
  margin-top: 0;
}

.text-link.inline-link::after,
.inline-link::after {
  content: none;
}

.page-hero {
  padding: clamp(36px, 5vw, 58px) clamp(20px, 5vw, 72px) clamp(28px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
}

.page-hero > * {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.page-lead {
  max-width: 1120px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.8;
}
.support-grid,
.legal-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.55fr);
  gap: 18px;
}

.support-grid {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
}

.detail-list {
  display: grid;
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  background: var(--panel);
}

.detail-list dt {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
}

.support-grid,
.legal-grid {
  align-items: start;
}

.legal-stack {
  display: grid;
  gap: 14px;
  max-width: 1040px;
  margin-right: auto;
  margin-left: auto;
  padding-top: clamp(36px, 5vw, 58px);
  padding-bottom: clamp(48px, 6vw, 72px);
}

.work-card h2,
.support-card h2,
.support-card h3,
.profile-card h2,
.profile-card h3,
.legal-block h2 {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.22;
}

.legal-block h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 16px;
}

.legal-block p,
.legal-block li {
  color: var(--ink);
}

.support-card .button {
  margin-top: 18px;
}

.legal-block {
  min-height: auto;
  padding: clamp(20px, 3vw, 28px);
}

.legal-block ul {
  margin: 0;
  padding-left: 20px;
}

.notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.2;
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    padding: 14px 16px;
  }

  .header-actions {
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-header.is-menu-open .nav {
    display: flex;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .work-list,
  .support-grid,
  .legal-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    width: 82px;
  }

  h1 {
    font-size: 50px;
  }

  .button {
    width: 100%;
  }

  .project-grid {
    gap: 24px 18px;
  }

  .project-icon {
    width: min(28vw, 116px);
    border-radius: 16px;
  }

  .home-stage {
    align-items: start;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .project-name {
    font-size: 13px;
  }

  .card-topline {
    margin-bottom: 26px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
