/* RICECookey — reference design */

@font-face {
  font-family: "ChangwonDanggamAsak";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2108@1.1/CWDangamAsac-Bold.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream:       #fff6ec;
  --ink:         #2b1e12;
  --ink-mid:     #3d2c1e;
  --ink-soft:    #5a4636;
  --ink-faint:   #8a7560;
  --orange:      #ff6a1a;
  --orange-deep: #c94e0c;
  --yellow:      #ffb02e;
  --shadow-card: #f0e4d2;
  --shadow-team: #e8d6be;

  --display:     "ChangwonDanggamAsak", "Pretendard", sans-serif;
  --body:        "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --maxw:        1200px;
  --gut:         clamp(1rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

::selection {
  background: var(--yellow);
  color: #2a1a0e;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.display {
  font-family: var(--display);
  font-weight: 400;
}
.accent { color: var(--orange); }

[id] { scroll-margin-top: 5rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 246, 236, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(43, 30, 18, 0.06);
  padding-top: env(safe-area-inset-top, 0);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
}

.brand__icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 var(--orange-deep);
  flex-shrink: 0;
}

.brand__grain {
  width: 13px;
  height: 19px;
  background: var(--cream);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  transform: rotate(-12deg);
}

.brand__text {
  font-size: 1.44rem;
  letter-spacing: -0.5px;
  line-height: 1;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 2.1rem);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.nav__links a:not(.nav__cta):hover { color: var(--orange); }

.nav__cta {
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.nav__cta:hover { background: var(--orange); }

.lang-switch {
  display: flex;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-switch__btn {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-switch__btn.is-active {
  background: var(--orange);
  color: #fff;
}

/* ---------- hero ---------- */
.hero-wrap {
  position: relative;
}

.hero__grain {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  animation: ricefloat 6.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero__grain--1 {
  top: 12%;
  right: 14%;
  width: 22px;
  height: 32px;
  background: #fff;
  --r: -18deg;
}

.hero__grain--2 {
  top: 38%;
  right: 6%;
  width: 16px;
  height: 24px;
  background: var(--yellow);
  --r: 24deg;
  animation-delay: 0.6s;
  animation-duration: 7.5s;
}

.hero__grain--3 {
  top: 70%;
  left: 4%;
  width: 18px;
  height: 27px;
  background: #fff;
  --r: 12deg;
  animation-delay: 0.3s;
  animation-duration: 6.8s;
}

.hero {
  position: relative;
  z-index: 1;
  padding-block: clamp(3.5rem, 9vw, 6.875rem) clamp(4.375rem, 10vw, 8.125rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3.75rem);
}

.hero__grid > * {
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fbead3;
  border: 2px solid var(--ink);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero__dot {
  width: 9px;
  height: 9px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.875rem, 8vw, 5.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
  word-break: keep-all;
}

.hero__title-line {
  display: block;
}

.hero__title-line + .hero__title-line {
  white-space: nowrap;
}

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 500;
  max-width: 30rem;
  margin-bottom: 2.125rem;
}

.hero__note {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-faint);
  font-size: 0.85em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 0 var(--orange-deep);
}
.btn--primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--orange-deep); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.btn--ghost:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }

.hero__art {
  display: flex;
  justify-content: center;
}

.bowl {
  position: relative;
  width: clamp(220px, 30vw, 320px);
  height: clamp(220px, 30vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

.bowl__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, #ffe6c2 0%, #fbead3 55%, transparent 72%);
  border-radius: 50%;
}

.bowl__steam {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.125rem;
  z-index: 3;
}

.bowl__steam span {
  width: 7px;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255, 106, 26, 0.25);
  animation: steam 2.8s ease-in-out infinite;
}
.bowl__steam span:nth-child(2) { animation-delay: 0.9s; }
.bowl__steam span:nth-child(3) { animation-delay: 1.6s; }

.bowl__inner {
  position: relative;
  width: 78%;
  z-index: 2;
}

.bowl__rice {
  position: relative;
  height: 86px;
  margin: 0 auto -14px;
  width: 88%;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 60% 60% 30% 30% / 90% 90% 30% 30%;
  z-index: 2;
  box-shadow: inset 0 -6px 0 var(--shadow-card);
}

.bowl__pot {
  position: relative;
  height: 120px;
  background: var(--orange);
  border: 3px solid var(--ink);
  border-radius: 14% 14% 50% 50% / 12% 12% 100% 100%;
  z-index: 1;
  box-shadow: inset 0 -10px 0 var(--orange-deep);
}

.bowl__shine {
  position: absolute;
  top: 34px;
  left: 16px;
  right: 16px;
  height: 4px;
  background: rgba(255, 255, 255, 0.33);
  border-radius: 999px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes steam {
  0% { transform: translateY(6px) scaleY(0.6); opacity: 0; }
  40% { opacity: 0.7; }
  100% { transform: translateY(-18px) scaleY(1.1); opacity: 0; }
}

/* ---------- marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 0;
  overflow: hidden;
  border-block: 3px solid var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__text {
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  padding-right: 0;
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- sections shared ---------- */
.section {
  padding-block: clamp(4rem, 11vw, 8rem);
}

.eyebrow {
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.eyebrow--light { color: var(--yellow); }

.section__head {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section__head--center { margin-inline: auto; }

.section__title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 0.6rem;
}

/* ---------- about ---------- */
.about__lede {
  text-align: center;
  font-family: var(--body);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 45rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.about-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 8px 0 var(--shadow-card);
  transition: transform 0.2s ease;
}

.about-card:hover { transform: translateY(-3px); }

.about-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 1rem;
}

.about-card__title {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.about-card__body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- team ---------- */
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}

.team-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 26px;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 10px 0 var(--shadow-team);
  transition: transform 0.2s ease;
}

.team-card:hover { transform: translateY(-4px); }

.team-card__avatar {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 2rem;
  color: #fff;
}

.team-card__avatar--t { background: linear-gradient(150deg, #ff8a3d, var(--orange)); }
.team-card__avatar--c { background: linear-gradient(150deg, #ffb347, #ff8f52); }
.team-card__avatar--r { background: linear-gradient(150deg, #ff9a5c, #e85d24); }

.team-card__name {
  font-family: var(--body);
  font-size: 1.4rem;
  font-weight: 800;
}

.team-card__role {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--orange);
}

.team-card__tag {
  display: inline-block;
  margin-top: 0.85rem;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ---------- lab ---------- */
.lab {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.lab__grain {
  position: absolute;
  border: 2px solid var(--cream);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  opacity: 0.5;
  animation: ricefloat 7s ease-in-out infinite;
}

.lab__grain--1 {
  top: 18%;
  left: 8%;
  width: 20px;
  height: 30px;
  background: var(--yellow);
}

.lab__grain--2 {
  bottom: 16%;
  right: 10%;
  width: 24px;
  height: 34px;
  background: var(--orange);
  animation-delay: 1.5s;
}

@keyframes ricefloat {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-22px) rotate(calc(var(--r, 0deg) + 14deg)); }
}

.lab__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.lab__title {
  font-size: clamp(3.25rem, 12vw, 8rem);
  font-weight: 400;
  line-height: 0.95;
  margin-top: 0.75rem;
  animation: wobble 4s ease-in-out infinite;
}

.lab__quote {
  font-size: clamp(1.35rem, 4vw, 2.5rem);
  color: var(--yellow);
  margin-top: 1.25rem;
}

.lab__body {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 246, 236, 0.78);
  max-width: 36rem;
  margin: 1.25rem auto 0;
  line-height: 1.75;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

.lab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  text-align: left;
}

.lab-card {
  background: rgba(255, 246, 236, 0.08);
  border: 2px solid rgba(255, 246, 236, 0.2);
  border-radius: 20px;
  padding: 1.5rem;
}

.lab-card__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

.lab-card__title {
  font-size: 1.05rem;
  font-weight: 800;
}

.lab-card__body {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: rgba(255, 246, 236, 0.72);
  line-height: 1.65;
}

.lab__cta {
  margin-top: 2.5rem;
}

.lab__cta-main {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.3;
}

.lab__cta-sub {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: rgba(255, 246, 236, 0.7);
}

.contact {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 246, 236, 0.15);
}

.contact__email {
  display: inline-block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--yellow);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.contact__email:hover { border-color: var(--yellow); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(43, 30, 18, 0.08);
  padding: 2rem 0;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy {
  font-size: 0.88rem;
  color: var(--ink-faint);
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid rgba(43, 30, 18, 0.1);
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav__links a:not(.nav__cta) { display: none; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero__art { order: -1; }

  .hero {
    padding-block: clamp(1.25rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
  }

  .hero__title {
    font-size: clamp(2.1rem, 10.5vw, 3.75rem);
  }

  .hero__title-line + .hero__title-line {
    white-space: normal;
  }

  .hero__lede {
    max-width: none;
    margin-bottom: 1.75rem;
  }

  .hero__badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    margin-bottom: 1.1rem;
  }

  .bowl {
    width: clamp(190px, 52vw, 260px);
    height: clamp(190px, 52vw, 260px);
  }

  .hero__grain--1 { top: 4%; right: 8%; }
  .hero__grain--2 { top: 22%; right: 2%; }
  .hero__grain--3 { top: 55%; left: 2%; }

  .marquee__text { font-size: 1.05rem; }

  .section { padding-block: clamp(3rem, 8vw, 5rem); }

  .about__grid,
  .team__grid,
  .lab__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .nav {
    padding-block: 0.7rem;
    gap: 0.5rem;
  }

  .brand {
    gap: 0.5rem;
    min-width: 0;
  }

  .brand__icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
  }

  .brand__grain {
    width: 11px;
    height: 16px;
  }

  .brand__text {
    font-size: 1.1rem;
  }

  .nav__right {
    gap: 0.4rem;
  }

  .nav__cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
  }

  .lang-switch {
    padding: 2px;
  }

  .lang-switch__btn {
    font-size: 0.62rem;
    padding: 0.32rem 0.42rem;
  }

  .hero__copy {
    text-align: left;
  }

  .hero__badge {
    max-width: 100%;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    min-height: 2.75rem;
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
  }

  .hero__title {
    font-size: clamp(1.9rem, 9.5vw, 2.75rem);
    margin-bottom: 1rem;
  }

  .hero__lede {
    font-size: 1rem;
    text-align: left;
  }

  .bowl__rice { height: 72px; }
  .bowl__pot { height: 100px; }

  .lab__title {
    font-size: clamp(2.5rem, 14vw, 4.5rem);
  }

  .lab__quote {
    font-size: clamp(1.1rem, 5vw, 1.75rem);
  }

  .contact__email {
    font-size: 1rem;
    word-break: break-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bowl, .bowl__steam span, .lab__title, .lab__grain, .marquee__track, .hero__grain { animation: none; }
  .btn:hover, .about-card:hover, .team-card:hover { transform: none; }
}
