:root {
  --bg: #ffffff;
  --ink: #0e1116;
  --ink-2: #464c55;
  --ink-3: #8a9099;
  --line: #e6e8eb;
  --accent: #2448ff;
  --renti: #0a84ff;
  --wedding: #1f7a55;
  --trips: #ff5a36;
  --forest: #6a8f1f;
  --piano: #f2a20c;
  --display: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --body: "Geist", system-ui, -apple-system, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled {
  border-bottom-color: var(--line);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--ink);
}
@media (max-width: 640px) {
  .nav {
    display: none;
  }
}

/* hero */
.hero {
  padding: clamp(48px, 9vw, 120px) 0 0;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(40px, 8vw, 116px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0;
}
.rot {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.02em;
}
.rot span {
  grid-area: 1 / 1;
  transform: translateY(105%);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
}
.rot span.on {
  transform: translateY(0);
}
.rot span.out {
  transform: translateY(-105%);
}
.rot span:nth-child(1) {
  color: var(--renti);
}
.rot span:nth-child(2) {
  color: var(--wedding);
}
.rot span:nth-child(3) {
  color: var(--trips);
}
.rot span:nth-child(4) {
  color: var(--forest);
}
.rot span:nth-child(5) {
  color: var(--piano);
}
.hero-sub {
  display: flex;
  gap: 40px;
  align-items: end;
  justify-content: space-between;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-sub p {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-2);
  margin: 0;
  max-width: 46ch;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition:
    transform 0.2s,
    background 0.2s;
}
.cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}
.cta svg {
  width: 18px;
  height: 18px;
}

/* marquee: the signature */
.marquee {
  margin-top: clamp(48px, 7vw, 88px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 20px 0 48px;
  animation: slide 48s linear infinite;
}
.marquee:hover .track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(calc(-50% - 12px));
  }
}
.slide {
  width: 220px;
  flex: none;
  transition: transform 0.3s;
}
.slide:hover {
  transform: translateY(-8px) rotate(-1deg);
}
.slide .label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.slide .label i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
@media (prefers-reduced-motion: reduce) {
  .track {
    animation: none;
    overflow-x: auto;
  }
  .rot span {
    transition: none;
  }
}

.phone {
  background: #0b0c0e;
  border-radius: 32px;
  padding: 7px;
  box-shadow: 0 30px 60px -30px rgba(14, 17, 22, 0.5);
}
.phone img {
  border-radius: 26px;
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  background: #fff;
}
.browser {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(14, 17, 22, 0.08),
    0 40px 80px -40px rgba(14, 17, 22, 0.45);
}
.browser .bar {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: #f6f7f8;
}
.browser .bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dfe2e6;
}
.browser img {
  width: 100%;
  aspect-ratio: 1440 / 900;
  object-fit: cover;
  object-position: top;
}

/* sections */
section {
  padding: clamp(80px, 11vw, 140px) 0 0;
}
.kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}
h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  max-width: 16ch;
}
.intro {
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0;
  font-size: 18px;
}

/* work */
.work-list {
  margin-top: 56px;
  display: grid;
  gap: 28px;
}
.work {
  --c: var(--accent);
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(26px, 4vw, 56px);
  background: color-mix(in srgb, var(--c) 9%, #fff);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.work.renti {
  --c: var(--renti);
}
.work.wedding {
  --c: var(--wedding);
}
.work.trips {
  --c: var(--trips);
}
.work.forest {
  --c: var(--forest);
}
.work.piano {
  --c: var(--piano);
}
.work.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.work.flip .work-text {
  order: 2;
}
.work .num {
  font-size: 13px;
  font-weight: 600;
  color: var(--c);
  margin: 0 0 10px;
  filter: brightness(0.8);
}
.work h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.work .what {
  font-size: 19px;
  font-weight: 600;
  margin: 0 0 14px;
}
.work p {
  color: var(--ink-2);
  margin: 0 0 22px;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.facts li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  background: var(--c)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
.media {
  position: relative;
}
.media .browser + .phone {
  position: absolute;
  width: 27%;
  right: -3%;
  bottom: -10%;
}
.media.phones {
  display: flex;
  gap: 18px;
  justify-content: center;
}
.media.phones .phone {
  width: min(46%, 230px);
}
.media.phones .phone:nth-child(2) {
  margin-top: 48px;
}
@media (max-width: 860px) {
  .work,
  .work.flip {
    grid-template-columns: 1fr;
  }
  .work.flip .work-text {
    order: 0;
  }
  .media .browser + .phone {
    width: 32%;
    right: 0;
    bottom: -12%;
  }
  .media {
    margin-bottom: 20px;
  }
}

/* approach */
.principles {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.principle {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 24px 30px;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.principle:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 24px 48px -28px rgba(14, 17, 22, 0.35);
}
.principle .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 22px;
}
.principle .ic svg {
  width: 22px;
  height: 22px;
}
.principle h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.principle p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}
@media (max-width: 960px) {
  .principles {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .principles {
    grid-template-columns: 1fr;
  }
}

/* guides */
.guides {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.guide {
  --c: var(--accent);
  border-radius: 22px;
  padding: 30px 28px;
  color: #fff;
  background: var(--c);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s;
}
.guide:hover {
  transform: translateY(-4px) rotate(-0.6deg);
}
.guide::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.guide.g1 {
  --c: var(--trips);
}
.guide.g2 {
  --c: var(--wedding);
}
.guide.g3 {
  --c: var(--renti);
}
.guide h3 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.guide p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}
.guide .status {
  margin-top: auto;
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 12px;
  border-radius: 999px;
}
@media (max-width: 860px) {
  .guides {
    grid-template-columns: 1fr;
  }
}

/* contact */
.contact {
  padding-bottom: clamp(64px, 9vw, 120px);
}
.contact-card {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: clamp(36px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 72, 255, 0.55), transparent 65%);
}
.contact-card > * {
  position: relative;
}
.contact-card h2 {
  color: #fff;
  margin: 0 0 14px;
}
.contact-card p {
  color: #b6bcc5;
  margin: 0;
  max-width: 44ch;
  font-size: 18px;
}
.contact-card .cta {
  background: #fff;
  color: var(--ink);
}
.contact-card .cta:hover {
  background: var(--accent);
  color: #fff;
}
@media (max-width: 760px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  font-size: 14px;
  color: var(--ink-3);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  color: var(--ink-2);
}

/* reveal on scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* prose page */
.prose {
  max-width: 68ch;
  padding: 56px 0 96px;
}
.prose h1 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 28px;
}
.prose h2 {
  font-size: 26px;
  margin: 36px 0 10px;
}
.prose p {
  color: var(--ink-2);
}

.slide { margin: 0; width: 240px; }
.slide.wide { width: 560px; align-self: center; }
.track { align-items: flex-start; gap: 32px; }
@keyframes slide { to { transform: translateX(calc(-50% - 16px)); } }
@media (max-width: 640px) { .slide { width: 200px; } .slide.wide { width: 420px; } }

.bg-renti { background: var(--renti); } .bg-wedding { background: var(--wedding); } .bg-trips { background: var(--trips); }
.bg-forest { background: var(--forest); } .bg-piano { background: var(--piano); }
.updated { margin-top: 40px; font-size: 13px; color: var(--ink-3); }

/* mono display type + terminal cursor */
.mark, .hero h1, h2, .work h3, .guide h3, .prose h1 { font-weight: 700; font-stretch: normal; }
.hero h1 { font-size: clamp(34px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.035em; }
.work h3 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.035em; }
.guide h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.prose h1 { letter-spacing: -0.035em; }
.mark { font-size: 18px; letter-spacing: -0.03em; }
.cursor::after, .mark::after {
  content: ""; display: inline-block; width: 0.08em; height: 0.92em; margin-left: 0.06em;
  vertical-align: -0.1em; background: currentColor; animation: blink 1.05s steps(1) infinite;
}
.mark::after { width: 2px; height: 1em; color: var(--accent); background: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor::after, .mark::after { animation: none; } }
.rot { height: 1.2em; padding-bottom: 0.18em; margin-bottom: -0.18em; vertical-align: top; }
.rot span::after {
  content: ""; display: inline-block; width: 0.08em; height: 0.92em; margin-left: 0.06em;
  vertical-align: -0.1em; background: var(--ink); animation: blink 1.05s steps(1) infinite;
}
.mark::after { margin-left: -6px; }
@media (prefers-reduced-motion: reduce) { .rot span::after { animation: none; } }
.rot span { transform: translateY(140%); }
.rot span.on { transform: translateY(0); }
.rot span.out { transform: translateY(-140%); }
