@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --white: #FFFFFF;
  --bg-gray: #F7F8FA;
  --line-gray: #E4E7EC;
  --navy: #2B3648;
  --navy-soft: #5B6472;
  --navy-dark: #1D2530;
  --coral: #ED7B5D;
  --coral-light: #FCEEE8;
  --coral-deep: #D9633F;

  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--bg-gray);
  --text: var(--navy);
  --text-soft: var(--navy-soft);
  --border: var(--line-gray);
  --accent: var(--coral);
  --accent-tint: var(--coral-light);
  --accent-strong: var(--coral-deep);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Pretendard', -apple-system, 'Malgun Gothic', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-decoration: none;
}
.header nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 24px;
  font-size: 15px;
}
.header nav a.active { color: var(--accent-strong); font-weight: 600; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 14px;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-1.in-view { transition-delay: 0.08s; }
.reveal-2.in-view { transition-delay: 0.16s; }
.reveal-3.in-view { transition-delay: 0.24s; }
.reveal-4.in-view { transition-delay: 0.32s; }

.header { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.header-hidden { transform: translateY(-100%); }

/* full-bleed photo hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media-inner {
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 62% 42%;
  animation: kenburns 24s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.16) translate3d(-1.5%, -1%, 0); }
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(29,37,48,.4) 0%, rgba(237,123,93,.14) 48%, rgba(29,37,48,.18) 100%),
    linear-gradient(180deg, rgba(29,37,48,.1) 0%, rgba(29,37,48,.32) 55%, rgba(20,26,35,.92) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: 90px; text-align: left; }
.hero .eyebrow { color: var(--coral); }
.hero h1 {
  font-size: 46px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 640px;
  text-shadow: 0 2px 24px rgba(0,0,0,.18);
}
.hero .sub {
  color: #E4E7EC;
  font-size: 19px;
  max-width: 520px;
}
.hero-in {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-in-1 { animation-delay: .2s; }
.hero-in-2 { animation-delay: .38s; }
.hero-in-3 { animation-delay: .58s; }
.hero-in-4 { animation-delay: 1.05s; }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
  .hero-in { animation: none; opacity: 1; transform: none; }
}
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 24px;
  z-index: 1;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  gap: 8px;
}
.scroll-cue::before {
  content: '';
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,.6);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: .4; }
  50% { transform: scaleY(1); opacity: 1; }
}

.page-hero {
  position: relative;
  padding: 130px 0 80px;
  text-align: left;
  color: var(--white);
  overflow: hidden;
}
.page-hero .hero-media img { animation: kenburns 20s ease-in-out infinite alternate; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: 34px; line-height: 1.5; font-weight: 700; max-width: 620px; }
.page-hero-sub { margin-top: 14px; color: #E4E7EC; font-size: 16px; max-width: 520px; }
.page-hero .eyebrow { color: var(--coral); }

/* section basics */
section { padding: 90px 0; }
section h2 {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 44px;
}

.about-block { text-align: center; border-bottom: 1px solid var(--border); }
.about-lead { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.about-body { max-width: 640px; margin: 0 auto; color: var(--text-soft); font-size: 16px; line-height: 1.8; }

/* card grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left;
}
.card .num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--accent-strong);
  font-size: 20px;
  font-weight: 600;
}
.card h3 { font-size: 17px; font-weight: 700; margin: 10px 0 8px; }
.card p { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
}
.fact-card .fact-value { font-size: 22px; font-weight: 700; color: var(--accent-strong); margin-bottom: 6px; }
.fact-card .fact-label { font-size: 13px; color: var(--text-soft); }

.value-section { background: var(--surface); }
.roadmap-section { background: var(--surface-alt); border-top: 1px solid var(--border); }
.phase-tag {
  display: inline-block;
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 4px;
}

/* flow steps */
.flow-section { text-align: center; }
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 16px;
  position: relative;
}
.flow-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.flow-step p { font-size: 14px; color: var(--text-soft); }
.flow-arrow { margin-top: 18px; color: var(--accent-strong); font-weight: 700; font-size: 15px; }

/* diff table */
.diff-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.diff-table th, .diff-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.diff-table th {
  background: var(--surface-alt);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.diff-table td:last-child { color: var(--accent-strong); font-weight: 600; }
.diff-table tr:last-child td { border-bottom: none; }

/* product teaser */
.product-teaser {
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.product-teaser h2 { margin-bottom: 12px; }
.teaser-desc { color: var(--text-soft); margin-bottom: 22px; max-width: 520px; margin-left: auto; margin-right: auto; }
.badge-soon {
  display: inline-block;
  background: var(--navy-dark);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: 100px;
}

/* founder / why-me */
.founder-section { text-align: center; background: var(--surface); border-top: 1px solid var(--border); }
.founder-quote {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
}
.founder-points {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.founder-points span {
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
}

/* newsletter */
.newsletter { text-align: center; }
.newsletter h2 { margin-bottom: 10px; }
.newsletter p { color: var(--text-soft); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 10px; justify-content: center; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  font-family: inherit;
}
.newsletter-form button {
  padding: 14px 24px;
  border: none;
  border-radius: 100px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.newsletter-form button:hover { background: var(--accent-strong); }

/* contact */
.contact { text-align: center; background: var(--surface-alt); border-top: 1px solid var(--border); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 280px;
  padding: 28px 16px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.15s ease;
  border: 1px solid var(--border);
  background: var(--white);
}
.btn:hover { transform: translateY(-3px); }
.btn-title { font-weight: 700; font-size: 18px; color: var(--text); }
.btn-desc { font-size: 13px; color: var(--text-soft); }
.btn-primary { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-primary .btn-title, .btn-primary .btn-desc { color: var(--white); }
.btn-primary .btn-desc { opacity: 0.75; }

.btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border: 1.5px solid var(--navy);
  border-radius: 100px;
  text-decoration: none;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.social-cta { text-align: center; background: var(--surface); }
.social-cta h2 { margin-bottom: 10px; }
.social-cta p { color: var(--text-soft); margin-bottom: 24px; }

/* journal */
.journal-coming { text-align: center; padding-bottom: 50px; }
.coming-desc { margin-top: 16px; color: var(--text-soft); }
.journal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.journal-card .journal-thumb { font-size: 24px; margin-bottom: 10px; }
.journal-tag {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 4px;
}

/* pinned scrollytelling section */
.pin-section { background: var(--surface); }
.pin-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.pin-media {
  position: sticky;
  top: 90px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow, 0 20px 50px rgba(43,54,72,.18));
}
.pin-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(0.16,1,0.3,1); }
.pin-text { display: flex; flex-direction: column; gap: 90px; padding-top: 20px; }
.pin-block h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.pin-block p { color: var(--text-soft); font-size: 15px; line-height: 1.75; }
.pin-block .phase-tag { margin-bottom: 10px; }

/* photo grid & gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  aspect-ratio: 1/1;
  transition: transform .5s cubic-bezier(0.16,1,0.3,1);
}
.photo-grid a:hover img, .photo-grid img:hover { transform: scale(1.06) rotate(-0.5deg); }
.photo-grid .tall { grid-row: span 2; }
.photo-grid .tall img { aspect-ratio: 1/2.05; }

/* auto-scrolling marquee */
.marquee-section { padding: 0; overflow: hidden; background: var(--navy-dark); }
.marquee-row { overflow: hidden; }
.marquee-row + .marquee-row { margin-top: 14px; }
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-left 38s linear infinite;
  padding: 14px 0;
}
.marquee-row.reverse .marquee-track { animation-name: marquee-right; animation-duration: 44s; }
.marquee-track img {
  height: 260px;
  width: auto;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0.96);
  transition: transform .4s cubic-bezier(0.16,1,0.3,1), filter .4s ease;
}
.marquee-track img:hover { transform: scale(1.04); filter: brightness(1.04); }
.marquee-section:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.gallery-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
}
.gallery-strip::-webkit-scrollbar { height: 6px; }
.gallery-strip::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
.gallery-strip figure {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
}
.gallery-strip img {
  width: 260px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.gallery-strip figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}
.gallery-strip figcaption b { color: var(--text); display: block; font-size: 14px; margin-bottom: 2px; }

/* image caption card (used with card class) */
.card-photo { padding: 0; overflow: hidden; }
.card-photo img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-photo .card-body { padding: 22px; }

/* founder split */
.founder-section { text-align: left; }
.founder-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: center; }
.founder-media { border-radius: 20px; overflow: hidden; aspect-ratio: 3/4; }
.founder-media img { width: 100%; height: 100%; object-fit: cover; }
.founder-quote { margin: 0 0 24px; text-align: left; max-width: none; }
.founder-points { justify-content: flex-start; }

/* hero flow with photos */
.flow-step { overflow: hidden; padding: 0; }
.flow-step img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.flow-step .flow-body { padding: 20px; }

.footer {
  padding: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--navy-dark);
}
.footer p { color: #C7CDD6; }

@media (max-width: 800px) {
  .grid-3, .grid-4, .flow-steps, .journal-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .pin-layout, .founder-layout { grid-template-columns: 1fr; }
  .pin-media { position: relative; top: 0; aspect-ratio: 16/10; }
  .pin-text { gap: 40px; padding-top: 0; }
  .founder-media { aspect-ratio: 16/9; }
}

@media (max-width: 700px) {
  .newsletter-form { flex-direction: column; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero { min-height: 78vh; }
  .marquee-track img { height: 160px; }
  .page-hero { padding: 110px 0 60px; }
  .contact-buttons { flex-direction: column; align-items: center; }
  .grid-3, .grid-4, .flow-steps, .journal-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid .tall { grid-row: span 1; }
  .photo-grid .tall img { aspect-ratio: 1/1; }
}

@media (max-width: 480px) {
  .header .wrap { height: auto; flex-wrap: wrap; padding: 12px 16px; gap: 6px 0; }
  .logo { font-size: 16px; }
  .header nav a { margin-left: 0; margin-right: 14px; font-size: 13px; }
}
