:root {
  --home-ink: #11120f;
  --home-paper: #f3f1e9;
  --home-paper-strong: #e8e5da;
  --home-blue: #245bb5;
  --home-cyan: #18b7dc;
  --home-orange: #ff6b21;
  --home-yellow: #ffc63b;
  --home-lime: #c8f45b;
  --home-line: rgba(17, 18, 15, 0.18);
  --home-muted: rgba(17, 18, 15, 0.64);
  --home-header: rgba(243, 241, 233, 0.84);
  --home-gutter: clamp(20px, 4.5vw, 72px);
}

html[data-theme="dark"] {
  --home-ink: #f3f1e9;
  --home-paper: #10110f;
  --home-paper-strong: #1b1c19;
  --home-blue: #6f9ee9;
  --home-cyan: #45c6e5;
  --home-orange: #ff7d3d;
  --home-yellow: #e9b945;
  --home-lime: #b8e85a;
  --home-line: rgba(243, 241, 233, 0.18);
  --home-muted: rgba(243, 241, 233, 0.66);
  --home-header: rgba(16, 17, 15, 0.84);
}

html {
  scroll-behavior: smooth;
}

body.homepage {
  overflow-x: hidden;
  color: var(--home-ink);
  background:
    radial-gradient(circle at 15% 14%, color-mix(in srgb, var(--home-yellow) 16%, transparent), transparent 25%),
    var(--home-paper);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  transition: color 220ms ease, background-color 220ms ease;
}

.homepage main {
  overflow: clip;
}

.homepage a:focus-visible,
.homepage button:focus-visible {
  outline: 3px solid var(--home-orange);
  outline-offset: 4px;
}

.home-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 82px;
  padding: 0 var(--home-gutter);
  border-bottom: 1px solid transparent;
  color: var(--home-ink);
  transition: height 220ms ease, background 220ms ease, border-color 220ms ease;
}

.home-header.is-scrolled {
  height: 68px;
  border-color: var(--home-line);
  background: var(--home-header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-wordmark {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.home-wordmark img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.home-nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 750;
}

.home-nav a {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.home-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  background: currentColor;
  transition: right 180ms ease;
}

.home-nav a:hover::after {
  right: 0;
}

.home-controls {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.home-language,
.home-theme-toggle {
  display: grid;
  place-items: center;
  height: 36px;
  border: 1px solid var(--home-ink);
  border-radius: 999px;
  color: var(--home-ink);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}

.home-language {
  min-width: 44px;
  padding: 0 11px;
}

.home-theme-toggle {
  position: relative;
  width: 58px;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
}

.home-theme-toggle::before {
  content: "";
  position: absolute;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--home-ink);
  transition: transform 200ms ease;
}

html[data-theme="dark"] .home-theme-toggle::before {
  transform: translateX(21px);
}

.home-theme-sun,
.home-theme-moon {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1;
}

.home-theme-sun {
  color: var(--home-paper);
}

.home-theme-moon {
  color: var(--home-ink);
}

html[data-theme="dark"] .home-theme-sun {
  color: var(--home-ink);
}

html[data-theme="dark"] .home-theme-moon {
  color: var(--home-paper);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 150px var(--home-gutter) 42px;
  border-bottom: 1px solid var(--home-line);
}

.home-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--home-orange);
  animation: home-pulse 1.8s infinite;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.home-hero h1 {
  max-width: 1120px;
  margin: 24px 0 32px;
  color: var(--home-ink);
  font-size: clamp(64px, 10.8vw, 176px);
  font-weight: 850;
  line-height: 0.83;
  letter-spacing: -0.075em;
}

.home-hero h1 > span {
  display: block;
}

.home-hero-indent {
  padding-left: 0.55em;
}

.home-hero h1 em {
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.08em;
}

.home-hero h1 em::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.03em;
  z-index: -1;
  height: 0.18em;
  border-radius: 50%;
  background: var(--home-lime);
  transform: rotate(-1deg);
}

.home-hero-bottom {
  align-self: end;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 410px);
  align-items: end;
  gap: 40px;
}

.home-hero-bottom > p {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.home-scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-scroll-cue span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: home-bob 1.8s ease-in-out infinite;
}

.home-hero-shape {
  position: absolute;
  top: 17%;
  right: 1.5%;
  width: clamp(180px, 23vw, 380px);
  aspect-ratio: 1;
  border: 3px solid var(--home-ink);
  border-radius: 67% 33% 48% 52% / 34% 58% 42% 66%;
  background: linear-gradient(145deg, #245bb5 0 52%, #18b7dc 52% 72%, #ff6b21 72%);
  box-shadow: 18px 18px 0 var(--home-yellow);
  transform: rotate(12deg);
  animation: home-float 6s ease-in-out infinite;
}

.home-marquee {
  overflow: hidden;
  padding: 18px 0;
  color: var(--home-paper);
  background: var(--home-ink);
  transform: rotate(-1.2deg) scale(1.02);
  transform-origin: center;
}

.home-marquee-track {
  display: flex;
  width: max-content;
  animation: home-marquee 24s linear infinite;
}

.home-marquee span {
  padding-right: 32px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-marquee b {
  color: var(--home-lime);
}

.home-belief {
  padding: clamp(110px, 17vw, 260px) var(--home-gutter);
}

.home-section-grid {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) 1.8fr;
  gap: 5vw;
}

.home-section-index {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-belief h2 {
  max-width: 1030px;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(43px, 7.4vw, 116px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.home-soft {
  color: color-mix(in srgb, var(--home-ink) 30%, transparent);
}

.home-blue {
  color: var(--home-blue);
}

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

.home-principle {
  padding: 24px 32px 0 0;
  border-right: 1px solid var(--home-line);
}

.home-principle + .home-principle {
  padding-left: 32px;
}

.home-principle:last-child {
  border-right: 0;
}

.home-principle strong {
  display: block;
  margin-bottom: 28px;
  font-size: 42px;
  letter-spacing: -0.05em;
}

.home-principle p {
  max-width: 280px;
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.7;
}

.home-work {
  padding: 100px var(--home-gutter) 130px;
  border-radius: 38px 38px 0 0;
  color: #f3f1e9;
  background: #11120f;
}

.home-work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 64px;
}

.home-work h2 {
  margin: 15px 0 0;
  color: #f3f1e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 10vw, 150px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.home-work-note {
  max-width: 340px;
  margin: 0;
  color: rgba(243, 241, 233, 0.62);
  line-height: 1.6;
}

.home-apps-status {
  margin: -24px 0 24px;
  color: rgba(243, 241, 233, 0.58);
  font-size: 12px;
}

.home-apps-status[hidden] {
  display: none;
}

.home-projects {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.home-project {
  position: relative;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 28px;
  color: #11120f;
  transition: transform 280ms cubic-bezier(.2, .8, .2, 1), border-radius 280ms ease;
}

.home-project:hover {
  z-index: 2;
  border-radius: 52px;
  transform: translateY(-10px) rotate(-0.6deg);
}

.home-project--book {
  background: #ffc63b;
}

.home-project--up {
  background: #18b7dc;
}

.home-project:nth-child(4n + 3) {
  background: #ff7d3d;
}

.home-project:nth-child(4n) {
  background: #c8f45b;
}

.home-project-kicker {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-project h3 {
  position: relative;
  z-index: 1;
  margin: 36px 0 12px;
  color: #11120f;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.home-project > p {
  position: relative;
  z-index: 1;
  max-width: 370px;
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.home-project-links {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.home-project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #11120f;
  border-radius: 999px;
  color: #11120f;
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.home-project-links a:hover {
  color: #f3f1e9;
  background: #11120f;
}

.home-book-visual {
  position: absolute;
  right: -2%;
  bottom: -10%;
  width: 60%;
  height: 55%;
  border: 3px solid #11120f;
  border-radius: 12px 42px 10px 10px;
  background: #f3f1e9;
  box-shadow: -28px -20px 0 #ff6b21, -31px -23px 0 2px #11120f;
  transform: rotate(-8deg);
}

.home-book-visual::after {
  content: "BOOK / NOTES / LIFE";
  position: absolute;
  top: 32px;
  left: 30px;
  max-width: 130px;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.home-up-visual {
  position: absolute;
  right: -25%;
  bottom: -22%;
  display: grid;
  place-items: center;
  width: 95%;
  aspect-ratio: 1;
  border: 3px solid #11120f;
  border-radius: 50%;
  color: #f3f1e9;
  background: #ff6b21;
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 200;
  transform: rotate(-28deg);
}

.home-project-image {
  position: absolute;
  right: 7%;
  bottom: 6%;
  width: min(42%, 220px);
  aspect-ratio: 1;
  border: 3px solid #11120f;
  border-radius: 28%;
  object-fit: cover;
  transform: rotate(7deg);
}

.home-manifesto {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 17vw, 240px) var(--home-gutter);
  color: #fff;
  background: #245bb5;
  text-align: center;
}

.home-manifesto::before,
.home-manifesto::after {
  content: "";
  position: absolute;
  width: 36vw;
  aspect-ratio: 1;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.home-manifesto::before {
  top: -22vw;
  left: -7vw;
}

.home-manifesto::after {
  right: -12vw;
  bottom: -23vw;
}

.home-manifesto > p {
  margin: 0 0 32px;
  color: white;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-manifesto h2 {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  color: white;
  font-size: clamp(52px, 8.5vw, 136px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.home-manifesto h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.home-contact-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 58px;
  padding: 17px 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: white;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.home-contact-link:hover {
  color: #245bb5;
  background: white;
}

.home-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
  padding: 72px var(--home-gutter) 34px;
  color: #f3f1e9;
  background: #11120f;
}

.home-footer h2 {
  margin: 0;
  color: #f3f1e9;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.8;
  letter-spacing: -0.075em;
}

.home-footer p {
  margin: 25px 0 0;
  color: rgba(243, 241, 233, 0.55);
  font-size: 12px;
}

.home-footer-links {
  display: grid;
  gap: 10px;
  text-align: right;
  font-size: 13px;
}

.home-footer-links a {
  color: #f3f1e9;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(.2, .8, .2, 1);
}

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

@keyframes home-marquee {
  to { transform: translateX(-50%); }
}

@keyframes home-float {
  50% { transform: translateY(-18px) rotate(17deg); }
}

@keyframes home-pulse {
  50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes home-bob {
  50% { transform: translateY(5px); }
}

@media (max-width: 760px) {
  .home-header {
    grid-template-columns: 1fr auto;
    height: 68px;
  }

  .home-nav {
    display: none;
  }

  .home-controls {
    gap: 7px;
  }

  .home-hero {
    min-height: 860px;
    padding-top: 120px;
  }

  .home-hero h1 {
    font-size: clamp(60px, 19vw, 105px);
  }

  .home-hero-indent {
    padding-left: 0;
  }

  .home-hero-shape {
    top: 47%;
    right: 5%;
    width: 44vw;
  }

  .home-hero-bottom {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .home-scroll-cue {
    order: 2;
  }

  .home-hero-bottom > p {
    max-width: 72%;
  }

  .home-section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .home-principles {
    grid-template-columns: 1fr;
    margin-top: 62px;
  }

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

  .home-work {
    padding-top: 80px;
    border-radius: 24px 24px 0 0;
  }

  .home-work-header {
    display: block;
  }

  .home-work-note {
    margin-top: 36px;
  }

  .home-projects {
    grid-template-columns: 1fr;
  }

  .home-project {
    min-height: 480px;
  }

  .home-book-visual {
    width: 70%;
  }

  .home-up-visual {
    right: -15%;
    width: 80%;
  }

  .home-footer {
    grid-template-columns: 1fr;
  }

  .home-footer-links {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
