:root {
  --paper: #ffffff;
  --ink: #666666;
  --ink-strong: #4d4d4d;
  --muted: #858585;
  --gold: #b49a4b;
  --line: #dedede;
  --footer: #f4f4f4;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  --header-height: 130px;
  --header-compact-height: 58px;
  --content-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  padding-top: var(--header-height);
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", "Noto Sans KR", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  background: #111111;
  color: #ffffff;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: fixed;
  z-index: 900;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  background: #ffffff;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: height 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-compact {
  height: var(--header-compact-height);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.header-inner {
  width: min(100% - 40px, 1060px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.brand {
  grid-column: 2;
  justify-self: center;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
}

.brand img {
  width: 88px;
  height: auto;
  transition: width 0.28s ease;
}

.site-header.is-compact .brand img {
  width: 44px;
}

.menu-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #242424;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-toggle__icon {
  width: 20px;
  display: grid;
  gap: 5px;
}

.menu-toggle__icon span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.menu-toggle__text {
  font-size: 13px;
  white-space: nowrap;
  transition: width 0.22s ease, opacity 0.18s ease, transform 0.22s ease;
}

.site-header.is-compact .menu-toggle__text {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-5px);
}

.menu-shell {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  visibility: hidden;
}

.menu-shell__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  cursor: default;
  transition: opacity 0.25s ease;
}

.menu-panel {
  position: relative;
  z-index: 1;
  width: min(330px, 86vw);
  height: 100%;
  padding: 28px 34px 36px;
  background: #ffffff;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.16);
  transform: translateX(-102%);
  transition: transform 0.25s ease;
}

.menu-open .menu-shell {
  pointer-events: auto;
  visibility: visible;
}

.menu-open .menu-shell__backdrop {
  opacity: 1;
}

.menu-open .menu-panel {
  transform: translateX(0);
}

.menu-close {
  width: 44px;
  height: 44px;
  margin: 0 0 36px auto;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #252525;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.menu-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-nav a {
  display: block;
  padding: 13px 4px;
  color: #454545;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #ededed;
}

.menu-nav a[aria-current="page"] {
  color: #111111;
  font-weight: 600;
}

.scene {
  --scene-bg-image: none;
  --scene-bg-x: 50%;
  --scene-bg-y: 50%;
  --parallax-offset: 0px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #ffffff;
}

.scene::before {
  position: absolute;
  z-index: -2;
  inset: -7% -4%;
  content: "";
  pointer-events: none;
  background-image: var(--scene-bg-image);
  background-position: var(--scene-bg-x) var(--scene-bg-y);
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(0, var(--parallax-offset), 0) scale(1.03);
}

.scene.parallax-active::before {
  will-change: transform;
}

.scene::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
}

.scene-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  min-height: inherit;
  margin: 0 auto;
  padding: 56px clamp(34px, 7vw, 116px);
  display: grid;
  align-items: center;
}

.scene-content--right {
  justify-items: end;
}

.content-block {
  width: min(48%, 570px);
}

.content-block--wide {
  width: min(60%, 700px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ink-strong);
  font-family: "Dancing Script", cursive;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
}

.section-title {
  margin: 0 0 20px;
  color: var(--ink-strong);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-copy {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 2;
  word-break: keep-all;
}

.detail-list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.button {
  min-height: 52px;
  padding: 11px 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #777777;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #696969;
  box-shadow: var(--shadow);
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: #5f5f5f;
  color: #ffffff;
  transform: translateY(-2px);
}

.scene--hero {
  min-height: 700px;
  --scene-bg-image: url("/assets/hero-desktop.jpg");
  --scene-bg-x: 50%;
  --scene-bg-y: 50%;
}

.scene--vegan {
  min-height: 800px;
  --scene-bg-image: url("/assets/vegan-desktop.jpg");
  --scene-bg-x: 46%;
  --scene-bg-y: 51%;
}

.scene--vegan::after {
  z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.12) 54%, transparent 76%);
}

.scene--vegan .scene-content {
  position: relative;
  z-index: 1;
}

.scene--vegan .section-title,
.scene--vegan .section-copy,
.scene--vegan .detail-list {
  color: #f5f5f5;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.scene--filter {
  min-height: 700px;
  --scene-bg-image: url("/assets/filter-desktop.jpg");
  --scene-bg-x: 50%;
  --scene-bg-y: 0%;
}

.scene--dripper {
  min-height: 800px;
  --scene-bg-image: url("/assets/dripper-desktop.jpg");
  --scene-bg-x: 50%;
  --scene-bg-y: 50%;
}

.scene--newsletter {
  min-height: 600px;
  --scene-bg-image: url("/assets/newsletter.jpg");
  --scene-bg-x: 50%;
  --scene-bg-y: 30%;
  color: #ffffff;
}

.scene--newsletter::after {
  z-index: -1;
  background: rgba(0, 0, 0, 0.38);
}

.scene--newsletter .scene-content {
  position: relative;
  z-index: 1;
  justify-items: center;
  text-align: center;
}

.scene--newsletter .section-title,
.scene--newsletter .section-copy {
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

.newsletter-form {
  width: min(100%, 610px);
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
}

.newsletter-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.newsletter-form input {
  width: 100%;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #313131;
}

.newsletter-form input::placeholder {
  color: #676767;
}

.newsletter-form button {
  min-width: 108px;
  min-height: 52px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #575757;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.netlify-cdn .scene--hero {
  --scene-bg-image: url("/.netlify/images?url=/assets/hero-desktop.jpg&w=2400&q=82");
}

.netlify-cdn .scene--vegan {
  --scene-bg-image: url("/.netlify/images?url=/assets/vegan-desktop.jpg&w=2000&q=82");
}

.netlify-cdn .scene--filter {
  --scene-bg-image: url("/.netlify/images?url=/assets/filter-desktop.jpg&w=2400&q=82");
}

.netlify-cdn .scene--dripper {
  --scene-bg-image: url("/.netlify/images?url=/assets/dripper-desktop.jpg&w=2400&q=82");
}

.netlify-cdn .scene--newsletter {
  --scene-bg-image: url("/.netlify/images?url=/assets/newsletter.jpg&w=1800&q=80");
}

.contact-main,
.simple-main {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header-height) - 100px);
  padding: 58px 24px 70px;
  display: grid;
  place-items: center;
  background-color: #646d72;
  background-image: url("/assets/dripper-desktop.jpg");
  background-position: 37% 48%;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-main::before,
.simple-main::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.52);
}

.netlify-cdn .contact-main,
.netlify-cdn .simple-main {
  background-image: url("/.netlify/images?url=/assets/dripper-desktop.jpg&w=2400&q=82");
}

.contact-shell {
  width: min(100%, 760px);
  color: #ffffff;
  text-align: center;
}

.contact-title,
.simple-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-intro,
.simple-copy {
  margin: 12px 0 34px;
  color: #ffffff;
  font-weight: 500;
  word-break: keep-all;
}

.contact-form {
  text-align: left;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.required-mark {
  color: #ffe8a8;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #222222;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.field input {
  min-height: 48px;
  padding: 10px 14px;
}

.field textarea {
  min-height: 155px;
  padding: 12px 14px;
  resize: vertical;
}

.submit-row {
  text-align: center;
}

.submit-button {
  min-width: 118px;
  min-height: 48px;
  padding: 11px 26px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #595959;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.submit-button:hover {
  background: #ffffff;
  color: #222222;
}

.simple-card {
  width: min(100%, 680px);
  padding: 50px clamp(24px, 6vw, 64px);
  background: rgba(0, 0, 0, 0.46);
  color: #ffffff;
  text-align: center;
  backdrop-filter: blur(5px);
}

.simple-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  min-height: 100px;
  padding: 24px 20px;
  display: grid;
  place-items: center;
  background: var(--footer);
  color: #929292;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copyright {
  margin: 8px 0 0;
  font-size: 12px;
}

.copyright strong {
  color: #6f6f6f;
}

.back-to-top {
  position: fixed;
  z-index: 10;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #bdbdbd;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: #6a6a6a;
  font-size: 18px;
}

@media (max-width: 1023px) {
  :root {
    --header-height: 108px;
    --header-compact-height: 56px;
  }

  .brand img {
    width: 74px;
  }

  .site-header.is-compact .brand img {
    width: 42px;
  }

  .scene-content {
    padding-inline: clamp(30px, 6vw, 70px);
  }

  .content-block,
  .content-block--wide {
    width: min(58%, 560px);
  }

  .scene--hero {
    min-height: 700px;
    --scene-bg-image: url("/assets/hero-tablet.jpg");
    --scene-bg-x: 75%;
    --scene-bg-y: 50%;
  }

  .scene--vegan {
    min-height: 760px;
    --scene-bg-image: url("/assets/vegan-tablet.jpg");
    --scene-bg-x: 9%;
    --scene-bg-y: 65%;
  }

  .scene--vegan::after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.1) 70%, transparent);
  }

  .scene--filter {
    min-height: 700px;
    --scene-bg-image: url("/assets/filter-tablet.jpg");
    --scene-bg-x: 90%;
    --scene-bg-y: 0%;
  }

  .scene--dripper {
    min-height: 760px;
    --scene-bg-image: url("/assets/dripper-tablet.jpg");
    --scene-bg-x: 51%;
    --scene-bg-y: 50%;
  }

  .scene-content--right::before,
  .scene-content--left::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    pointer-events: none;
  }

  .scene-content--right::before {
    background: linear-gradient(90deg, transparent 25%, rgba(255, 255, 255, 0.65) 100%);
  }

  .scene-content--left::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.65), transparent 74%);
  }

  .netlify-cdn .scene--hero {
    --scene-bg-image: url("/.netlify/images?url=/assets/hero-tablet.jpg&w=1800&q=82");
  }

  .netlify-cdn .scene--vegan {
    --scene-bg-image: url("/.netlify/images?url=/assets/vegan-tablet.jpg&w=1600&q=82");
  }

  .netlify-cdn .scene--filter {
    --scene-bg-image: url("/.netlify/images?url=/assets/filter-tablet.jpg&w=1800&q=82");
  }

  .netlify-cdn .scene--dripper {
    --scene-bg-image: url("/.netlify/images?url=/assets/dripper-tablet.jpg&w=1800&q=82");
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 92px;
    --header-compact-height: 52px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 62px;
  }

  .site-header.is-compact .brand img {
    width: 38px;
  }

  .menu-toggle__text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .scene {
    min-height: 760px;
  }

  .scene-content {
    min-height: 760px;
    padding: 28px 18px 34px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .content-block,
  .content-block--wide {
    width: 100%;
    max-width: 500px;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.86);
    text-align: center;
    backdrop-filter: blur(4px);
  }

  .eyebrow {
    font-size: 25px;
  }

  .section-title {
    margin-bottom: 16px;
    font-size: clamp(27px, 9vw, 38px);
  }

  .section-copy {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.75;
  }

  .detail-list {
    margin-bottom: 20px;
    font-size: 12px;
  }

  .button {
    min-height: 48px;
    padding: 10px 25px;
    font-size: 15px;
  }

  .scene--hero {
    --scene-bg-image: url("/assets/hero-mobile.jpg");
    --scene-bg-x: 50%;
    --scene-bg-y: 50%;
  }

  .scene--vegan {
    --scene-bg-image: url("/assets/vegan-mobile.jpg");
    --scene-bg-x: 42%;
    --scene-bg-y: 58%;
  }

  .scene--vegan::after {
    background: rgba(0, 0, 0, 0.08);
  }

  .scene--vegan .section-title,
  .scene--vegan .section-copy,
  .scene--vegan .detail-list {
    color: var(--ink-strong);
    text-shadow: none;
  }

  .scene--filter {
    --scene-bg-image: url("/assets/filter-mobile.jpg");
    --scene-bg-x: 50%;
    --scene-bg-y: 0%;
  }

  .scene--dripper {
    --scene-bg-image: url("/assets/dripper-mobile.jpg");
    --scene-bg-x: 50%;
    --scene-bg-y: 50%;
  }

  .scene--newsletter {
    min-height: 560px;
    --scene-bg-image: url("/assets/newsletter.jpg");
  }

  .scene--newsletter .scene-content {
    min-height: 560px;
    align-items: center;
  }

  .scene--newsletter .content-block {
    border: 0;
    background: rgba(0, 0, 0, 0.35);
  }

  .scene--newsletter .section-title,
  .scene--newsletter .section-copy {
    color: #ffffff;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-form button {
    width: 100%;
  }

  .netlify-cdn .scene--hero {
    --scene-bg-image: url("/.netlify/images?url=/assets/hero-mobile.jpg&w=900&q=80");
  }

  .netlify-cdn .scene--vegan {
    --scene-bg-image: url("/.netlify/images?url=/assets/vegan-mobile.jpg&w=900&q=80");
  }

  .netlify-cdn .scene--filter {
    --scene-bg-image: url("/.netlify/images?url=/assets/filter-mobile.jpg&w=900&q=80");
  }

  .netlify-cdn .scene--dripper {
    --scene-bg-image: url("/.netlify/images?url=/assets/dripper-mobile.jpg&w=900&q=80");
  }

  .netlify-cdn .scene--newsletter {
    --scene-bg-image: url("/.netlify/images?url=/assets/newsletter.jpg&w=900&q=80");
  }

  .contact-main,
  .simple-main {
    min-height: calc(100svh - var(--header-height));
    padding: 42px 18px 54px;
    background-image: url("/assets/dripper-mobile.jpg");
    background-position: 50% 50%;
  }

  .netlify-cdn .contact-main,
  .netlify-cdn .simple-main {
    background-image: url("/.netlify/images?url=/assets/dripper-mobile.jpg&w=900&q=80");
  }

  .contact-title,
  .simple-title {
    font-size: 34px;
  }

  .contact-intro {
    margin-bottom: 28px;
  }

  .field {
    margin-bottom: 17px;
  }

  .field label {
    text-align: left;
  }

  .site-footer {
    min-height: 116px;
  }

  .back-to-top {
    right: 10px;
    bottom: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .scene {
    --parallax-offset: 0px !important;
  }

  .scene::before {
    transform: translate3d(0, 0, 0) scale(1.03) !important;
  }
}
