:root {
  --ink: #122b36;
  --ink-soft: #496069;
  --paper: #f6f1e7;
  --paper-deep: #e8dfd0;
  --white: #fffdf7;
  --blue: #2464d8;
  --blue-deep: #143d94;
  --sky: #9edff0;
  --coral: #f06a5f;
  --mint: #b9dfc7;
  --line: rgba(18, 43, 54, 0.16);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 15px;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 64px), var(--shell));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 64px), var(--shell));
  min-height: 84px;
  margin: 0 auto;
  color: var(--white);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}

.site-header nav a {
  position: relative;
  padding: 8px 0;
}

.site-header nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--sky);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 94svh);
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% 5%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 27, 36, 0.94) 0%, rgba(7, 27, 36, 0.78) 35%, rgba(7, 27, 36, 0.12) 70%),
    linear-gradient(0deg, rgba(7, 27, 36, 0.72), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), var(--shell));
  margin: 0 auto;
  padding: 160px 0 76px;
}

.eyebrow,
.section-index,
.work-category {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.hero .eyebrow {
  color: var(--sky);
}

.hero h1 {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(66px, 8.8vw, 132px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}

.hero-school {
  margin: 17px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.hero-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0 0;
}

.hero-traits span {
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.hero-intro {
  max-width: 510px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.8;
}

.hero-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--sky);
  color: var(--white);
  font-weight: 750;
}

.hero-link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--sky);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.hero-link:hover svg {
  transform: translateY(3px);
}

.hero-side-note {
  position: absolute;
  right: 24px;
  bottom: 44px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
}

.about-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0 118px;
  background: var(--paper);
}

.about-section::before {
  position: absolute;
  top: -180px;
  right: -80px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(36, 100, 216, 0.12);
  border-radius: 50%;
  content: "";
}

.section-heading {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 40px;
  align-items: start;
}

.section-index {
  padding-top: 9px;
  color: var(--blue);
}

.section-heading h2,
.works-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.trait {
  position: relative;
  min-height: 330px;
  padding: 28px 30px 34px;
}

.trait + .trait {
  border-left: 1px solid var(--line);
}

.trait-number {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
}

.trait-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-top: 45px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.trait:nth-child(2) .trait-icon {
  background: var(--coral);
}

.trait:nth-child(3) .trait-icon {
  background: var(--ink);
}

.trait-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.trait h3 {
  margin: 25px 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.trait p {
  max-width: 330px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.works-section {
  padding: 112px 0 124px;
  background: var(--ink);
  color: var(--white);
}

.works-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 40px;
  align-items: end;
}

.works-heading .section-index {
  color: var(--sky);
}

.works-heading h2 {
  margin-top: 8px;
}

.works-heading > p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 15px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.work-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #183640;
  transition:
    transform 240ms ease,
    border-color 240ms ease,
    box-shadow 240ms ease;
}

.work-card:hover {
  border-color: rgba(158, 223, 240, 0.62);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
  transform: translateY(-7px);
}

.work-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0d1d2c;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover .work-media img {
  transform: scale(1.025);
}

.work-number {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  min-width: 38px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 5px;
  background: rgba(7, 24, 32, 0.64);
  font-family: var(--mono);
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.work-open {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(7, 24, 32, 0.66);
  backdrop-filter: blur(8px);
}

.work-open svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.work-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 28px 30px;
}

.work-category {
  color: var(--sky);
}

.work-copy h3 {
  margin: 12px 0 10px;
  font-family: var(--display);
  font-size: 31px;
  line-height: 1.25;
}

.work-copy > p:not(.work-category) {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 15px;
}

.work-link-text {
  margin-top: auto;
  padding-top: 25px;
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.work-link-text::after {
  display: inline-block;
  margin-left: 8px;
  color: var(--sky);
  content: "→";
  transition: transform 180ms ease;
}

.work-card:hover .work-link-text::after {
  transform: translateX(4px);
}

.site-footer {
  padding: 36px 0;
  background: #091b22;
  color: rgba(255, 255, 255, 0.64);
}

.site-footer .section-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(7, 27, 36, 0.94), rgba(7, 27, 36, 0.45) 68%, rgba(7, 27, 36, 0.16)),
      linear-gradient(0deg, rgba(7, 27, 36, 0.78), transparent 50%);
  }

  .hero-image {
    object-position: 62% 5%;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .trait {
    min-height: 0;
    padding: 28px 0 34px;
  }

  .trait + .trait {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trait-icon {
    margin-top: 28px;
  }

  .works-heading {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .section-shell,
  .site-header,
  .hero-content {
    width: min(calc(100% - 32px), var(--shell));
  }

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

  .brand-copy small {
    display: none;
  }

  .site-header nav {
    gap: 15px;
    font-size: 12px;
  }

  .hero {
    min-height: max(720px, 100svh);
  }

  .hero-image {
    object-position: 62% 5%;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(7, 27, 36, 0.96) 0%, rgba(7, 27, 36, 0.72) 40%, rgba(7, 27, 36, 0.08) 72%),
      linear-gradient(90deg, rgba(7, 27, 36, 0.55), transparent);
  }

  .hero-content {
    padding: 280px 0 42px;
  }

  .hero h1 {
    font-size: clamp(54px, 17vw, 78px);
  }

  .hero-intro {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-side-note {
    display: none;
  }

  .about-section,
  .works-section {
    padding: 76px 0 82px;
  }

  .section-heading h2,
  .works-heading h2 {
    font-size: 42px;
  }

  .trait-grid,
  .work-grid {
    margin-top: 44px;
  }

  .work-grid {
    gap: 18px;
  }

  .work-copy {
    padding: 22px 20px 24px;
  }

  .work-copy h3 {
    font-size: 27px;
  }

  .site-footer .section-shell {
    display: block;
  }

  .site-footer p + p {
    margin-top: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
