:root {
  color-scheme: dark;
  --bg: #020202;
  --panel: #0b0b0d;
  --panel-2: #111114;
  --text: #f7f7f7;
  --muted: #a7a7a7;
  --dim: #6e6e73;
  --line: rgba(255, 255, 255, 0.13);
  --line-soft: rgba(255, 255, 255, 0.07);
  --container: min(1180px, calc(100vw - 48px));
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Pretendard",
    "Noto Sans KR",
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  line-height: 1.6;
}

body.lightbox-open,
body.contact-modal-open {
  overflow: hidden;
}

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

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  word-break: keep-all;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px max(24px, calc((100vw - 1320px) / 2));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.site-header a,
.site-header nav {
  pointer-events: auto;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-header nav {
  display: flex;
  gap: 30px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a,
.header-link {
  transition: color 180ms ease, opacity 180ms ease;
}

.site-header nav a:hover,
.header-link:hover {
  color: #fff;
}

.site-header nav a[aria-current="page"],
.header-link[aria-current="page"] {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-link {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-team-link {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  opacity: 0.56;
  z-index: -3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.62) 50%, #020202 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 42%, rgba(0, 0, 0, 0.72));
  z-index: -2;
}

.hero-content {
  width: var(--container);
  padding: 148px 0 116px;
  text-align: center;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 30px;
  font-size: clamp(48px, 7.2vw, 98px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero-content > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 auto 46px;
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.primary-button {
  background: #fff;
  color: #050505;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: transparent;
  color: #fff;
}

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

.secondary-button:hover {
  background: #fff;
  color: #050505;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  display: grid;
  width: 32px;
  height: 54px;
  place-items: center;
  transform: translateX(-50%);
  opacity: 0.76;
}

.scroll-cue span {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0));
}

.mobile-only {
  display: none;
}

.intro {
  padding: 150px 24px;
  background: linear-gradient(180deg, #020202, #0b0b0d);
}

.intro-inner,
.section-heading {
  width: min(840px, 100%);
  margin-inline: auto;
  text-align: center;
}

.intro h2,
.section-heading h2,
.feature-copy h2,
.contact h2 {
  margin-bottom: 28px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.intro p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.feature-copy p:not(.eyebrow),
.contact p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 300;
}

.intro-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 42px;
  flex-wrap: wrap;
}

.intro-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.engine,
.works,
.team {
  width: var(--container);
  margin-inline: auto;
  padding: 118px 0;
}

.engine-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 76px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.engine-grid article,
.team-grid article {
  min-height: 276px;
  padding: 42px;
  background: var(--panel);
}

.engine-grid span {
  display: block;
  margin-bottom: 58px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.engine-grid h3,
.team-grid h3 {
  margin-bottom: 18px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.engine-grid p,
.team-grid p:not(.role) {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 300;
}

.feature {
  display: grid;
  width: var(--container);
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  margin-inline: auto;
  padding: 130px 0;
}

.feature-image {
  overflow: hidden;
  background: var(--panel-2);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 700ms ease;
}

.feature:hover .feature-image img {
  transform: scale(1.035);
}

.feature-copy {
  max-width: 580px;
}

.works {
  padding-top: 132px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 76px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 0;
  background: var(--panel-2);
  cursor: pointer;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform 650ms ease, filter 650ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.84));
  opacity: 0.88;
}

.gallery-item span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}

.role {
  margin-bottom: 42px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact {
  display: grid;
  min-height: 78vh;
  place-items: center;
  padding: 150px 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.15), #020202 76%),
    url("./assets/contemplation.jpeg") center 30% / cover no-repeat;
  text-align: center;
}

.contact > div {
  width: min(820px, 100%);
}

.contact h2 {
  color: #fff;
}

.contact p:not(.eyebrow) {
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 34px max(24px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line-soft);
  background: #020202;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

.site-footer p,
.site-footer address {
  margin: 0;
  word-break: keep-all;
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer strong {
  color: var(--muted);
  font-weight: 600;
}

.site-footer span {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.2);
}

.site-footer address {
  color: #7f7f86;
  font-style: normal;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  padding: 36px;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-height: 78vh;
  object-fit: contain;
}

.lightbox > div {
  margin-top: 24px;
  text-align: center;
}

.lightbox-title {
  margin-bottom: 6px;
  font-size: 24px;
  font-weight: 300;
}

.lightbox-copy {
  margin-bottom: 0;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 44px;
  height: 44px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 40px;
  font-weight: 200;
  line-height: 1;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(16px);
}

.contact-modal[hidden] {
  display: none;
}

.contact-modal-panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 11, 13, 0.98);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.contact-modal-panel h2 {
  margin-bottom: 28px;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 42px;
  height: 42px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  font-weight: 200;
  line-height: 1;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050506;
  color: #fff;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-form input,
.contact-form select {
  min-height: 48px;
  padding: 0 14px;
}

.contact-form textarea {
  min-height: 132px;
  padding: 14px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.68);
  background: #08080a;
}

.contact-form ::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.contact-form .primary-button {
  width: 100%;
  max-width: none;
  margin-top: 8px;
  border: 0;
}

.contact-form .primary-button:disabled {
  cursor: progress;
  opacity: 0.68;
  transform: none;
}

.contact-form-status {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 300;
}

.team-page {
  background: #020202;
}

.team-hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  place-items: center;
  overflow: hidden;
  padding: 150px 24px 110px;
  isolation: isolate;
  text-align: center;
}

.team-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.team-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.34;
  filter: saturate(0.72);
}

.team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.07), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.54), #020202 88%);
  z-index: -1;
}

.team-hero-content {
  width: min(980px, 100%);
}

.team-hero h1 {
  margin-bottom: 28px;
}

.team-hero p:not(.eyebrow) {
  width: min(780px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 300;
}

.team-members {
  width: var(--container);
  margin-inline: auto;
  padding: 118px 0;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 74px;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.member-card {
  min-height: 292px;
  padding: 42px;
  background: var(--panel);
}

.member-number {
  margin-bottom: 58px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.member-card h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.member-card p:not(.member-number) {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 300;
}

.team-focus {
  display: grid;
  width: var(--container);
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(44px, 7vw, 110px);
  align-items: start;
  margin-inline: auto;
  padding: 118px 0 140px;
}

.team-focus-copy h2,
.team-cta h2 {
  margin-bottom: 28px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.team-focus-list {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.team-focus-list article {
  padding: 34px;
  background: #0b0b0d;
}

.team-focus-list h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
}

.team-focus-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 300;
}

.team-cta {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 110px 24px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), #020202 82%),
    url("./assets/rain-squad.jpeg") center 34% / cover no-repeat;
  text-align: center;
}

.team-cta > * {
  width: min(780px, 100%);
}

.team-cta p:not(.eyebrow) {
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 300;
}

@media (max-width: 940px) {
  .site-header nav {
    display: none;
  }

  .mobile-team-link {
    display: inline-flex;
  }

  .hero-content {
    padding-top: 132px;
  }

  .engine-grid,
  .team-grid,
  .feature,
  .member-grid,
  .team-focus {
    grid-template-columns: 1fr;
  }

  .engine-grid article,
  .team-grid article,
  .member-card {
    min-height: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-copy {
    max-width: none;
    text-align: center;
  }

  .team-focus-copy {
    text-align: center;
  }
}

@media (max-width: 560px) {
  :root {
    --container: min(100vw - 32px, 1180px);
  }

  .site-header {
    padding: 20px 18px;
  }

  .brand,
  .header-link {
    font-size: 12px;
  }

  .header-actions {
    gap: 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero > img {
    object-position: center top;
  }

  h1 {
    font-size: clamp(38px, 10.8vw, 46px);
  }

  .mobile-only {
    display: inline;
  }

  .hero-content > p:not(.eyebrow) {
    font-size: 16px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    max-width: 280px;
  }

  .intro,
  .engine,
  .works,
  .team,
  .feature,
  .team-members,
  .team-focus {
    padding-block: 86px;
  }

  .intro h2,
  .section-heading h2,
  .feature-copy h2,
  .contact h2,
  .team-focus-copy h2,
  .team-cta h2 {
    font-size: clamp(34px, 10vw, 44px);
  }

  .engine-grid,
  .team-grid,
  .gallery,
  .member-grid {
    margin-top: 48px;
  }

  .engine-grid article,
  .team-grid article,
  .member-card {
    padding: 30px;
  }

  .engine-grid span,
  .role,
  .member-number {
    margin-bottom: 34px;
  }

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

  .gallery-item {
    min-height: 420px;
  }

  .contact {
    min-height: 680px;
    padding: 96px 24px;
  }

  .team-hero {
    min-height: 680px;
    padding: 132px 18px 86px;
  }

  .team-focus-list article {
    padding: 28px;
  }

  .team-cta {
    min-height: 560px;
    padding: 92px 24px;
  }

  .site-footer {
    padding: 28px 18px;
    line-height: 1.8;
  }

  .site-footer span {
    margin: 0 6px;
  }

  .lightbox {
    padding: 22px;
  }

  .contact-modal {
    padding: 18px;
  }

  .contact-modal-panel {
    max-height: calc(100vh - 36px);
    padding: 34px 22px 24px;
  }
}
