:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --fg-soft: #3d3d3d;
  --muted: #767676;
  --line: #e2e2e2;
  --line-dark: #cfcfcf;
  --surface: #f7f7f5;
  --surface-2: #eeeeeb;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

::selection {
  color: var(--bg);
  background: var(--fg);
}

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

button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.container {
  width: min(1200px, calc(100vw - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.label {
  font-family: var(--font-mono);
  font-size: 11.2px;
  line-height: 1.5;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.brand,
.nav-contact {
  color: var(--fg);
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.display {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.055em;
}

.hero {
  padding-block: clamp(96px, 14vw, 176px) 80px;
}

.hero h1 {
  max-width: 16ch;
  margin: 0;
  color: var(--fg);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
}

.hero .label {
  margin: 0 0 32px;
}

.hero-copy-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: clamp(40px, 6vw, 72px);
}

.hero-copy-grid p {
  grid-column: 6 / span 7;
  margin: 0;
  color: var(--fg-soft);
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.625;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 40px;
}

.link-underline {
  position: relative;
  color: var(--fg);
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  padding: 22px 0;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.fact + .fact {
  padding-left: 28px;
}

.fact:last-child {
  border-right: 0;
}

.fact p {
  margin: 0;
}

.fact p:not(.label) {
  margin-top: 8px;
  color: var(--fg);
  font-size: 18px;
  line-height: 1.35;
}

.focus-nav {
  margin-top: 74px;
  margin-bottom: 86px;
}

.sweep {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 28px;
  min-height: 74px;
  margin-inline: -12px;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(100%);
  transition: transform 240ms ease;
  z-index: -1;
}

.sweep:hover::before {
  transform: translateY(0);
}

.sweep:hover {
  color: var(--bg);
}

.sweep:hover .index,
.sweep:hover .focus-view,
.sweep:hover .arrow {
  color: var(--bg);
}

.index,
.focus-view,
.arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-title {
  flex: 1;
  font-size: clamp(31px, 5vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 600;
}

.focus-view {
  margin-left: auto;
}

.notice-section {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  margin-top: 52px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-section .label {
  grid-column: 1 / span 4;
  margin: 0;
  color: var(--fg);
}

.notice-section p:not(.label) {
  grid-column: 5 / span 8;
  max-width: 780px;
  margin: 0;
  color: var(--fg-soft);
  font-size: 17px;
  line-height: 1.625;
}

.work-section {
  scroll-margin-top: 80px;
  border-top: 1px solid var(--line);
  padding-block: clamp(64px, 9vw, 96px);
}

.section-intro {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px 32px;
  margin-bottom: 16px;
}

.section-kicker {
  grid-column: 1 / span 4;
}

.section-kicker .label {
  margin: 0 0 8px;
}

.section-kicker h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 48px);
  line-height: 0.95;
}

.section-intro > p {
  grid-column: 5 / span 8;
  max-width: 672px;
  margin: 0;
  color: var(--fg-soft);
  font-size: 18px;
  line-height: 1.625;
}

.project-list {
  display: grid;
}

.project-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  padding-block: 42px;
  border-bottom: 1px solid var(--line);
}

.project-row.has-link {
  position: relative;
  margin-inline: -16px;
  padding-inline: 16px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.project-row.has-link:hover {
  background: var(--surface);
  transform: translateX(4px);
}

.project-row.has-link:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.project-row.no-link {
  cursor: default;
}

.project-left {
  grid-column: 1 / span 4;
}

.project-right {
  grid-column: 5 / span 8;
  max-width: 672px;
}

.project-left h3 {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 0.98;
}

.project-left .label {
  margin: 12px 0 0;
}

.project-right p {
  margin: 0;
  color: var(--fg-soft);
  line-height: 1.625;
}

.project-right .lead {
  color: var(--fg);
  font-size: 18px;
  margin-bottom: 12px;
}

.project-right ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  color: var(--fg-soft);
}

.project-right li {
  position: relative;
  margin-top: 8px;
  padding-left: 20px;
  line-height: 1.5;
}

.project-right li::before {
  content: "▪";
  position: absolute;
  left: 0;
  color: var(--fg);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.also-block {
  padding-top: 32px;
}

.also-block > .label {
  margin: 0 0 4px;
}

.also-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 24px;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-soft);
}

.also-row span:nth-child(2),
.also-row span:nth-child(3) {
  font-family: var(--font-mono);
  font-size: 11.2px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.also-row:not(.no-link) {
  transition: color 180ms ease, background 180ms ease, padding-inline 180ms ease;
}

.also-row:not(.no-link):hover {
  color: var(--fg);
  background: var(--surface);
  padding-inline: 12px;
}

.also-row.no-link {
  cursor: default;
}

.safety-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding-block: 44px;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.safety-grid .label {
  grid-column: 1 / span 4;
  margin: 0;
}

.safety-grid p:not(.label) {
  grid-column: 5 / span 8;
  max-width: 780px;
  margin: 0;
  color: var(--fg-soft);
  font-size: 18px;
  line-height: 1.625;
}

.contact-section {
  padding-block: clamp(96px, 14vw, 160px);
}

.contact-section .label {
  margin: 0 0 24px;
}

.contact-section h2 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 0.95;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin-top: 42px;
}

.copy-email {
  width: fit-content;
}

.email-large,
.contact-link-large {
  display: inline-flex;
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-transform: none;
}

.email-large:hover,
.contact-link-large:hover {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 7px;
}

.social-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
  transition: background 180ms ease, color 180ms ease;
}

.social-button:hover {
  background: var(--fg);
  color: var(--bg);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 64px;
  height: auto;
  padding-block: 20px;
}

.rise {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 650ms ease forwards;
}

.rise-1 { animation-delay: 80ms; }
.rise-2 { animation-delay: 160ms; }
.rise-3 { animation-delay: 240ms; }
.rise-4 { animation-delay: 320ms; }
.rise-5 { animation-delay: 400ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .container {
    width: min(100vw - 32px, 1200px);
  }

  .hero {
    padding-top: 88px;
  }

  .hero-copy-grid,
  .section-intro,
  .project-row,
  .notice-section,
  .safety-grid {
    display: block;
  }

  .hero-copy-grid p,
  .section-intro > p,
  .project-right,
  .notice-section p:not(.label),
  .safety-grid p:not(.label) {
    max-width: none;
    margin-top: 28px;
  }

  .project-row.has-link {
    margin-inline: 0;
    padding-inline: 0;
  }

  .project-row.has-link:hover {
    transform: none;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact,
  .fact + .fact {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact:last-child {
    border-bottom: 0;
  }

  .sweep {
    gap: 16px;
  }

  .focus-title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .focus-view {
    display: none;
  }

  .project-left,
  .project-right {
    width: 100%;
  }

  .project-right {
    margin-top: 22px;
  }

  .also-row {
    grid-template-columns: 1fr 24px;
  }

  .also-row span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .header-inner {
    height: 72px;
  }

  .hero h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .hero-links,
  .contact-links {
    flex-direction: column;
  }

  .sweep {
    min-height: 64px;
    padding-block: 20px;
  }

  .index,
  .arrow {
    font-size: 11px;
  }

  .work-section {
    padding-block: 64px;
  }

  .project-row {
    padding-block: 34px;
  }

  .contact-section h2 {
    font-size: clamp(42px, 13vw, 58px);
  }
}
