@font-face {
  font-family: "Afacad Flux Variable";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("assets/fonts/afacad-flux-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --background: #0a0a0a;
  --text: #f0f0ee;
  --secondary: #bdbdb8;
  --muted: #a3a3a0;
  --border: #2b2b2b;
  --focus: #eee;
  /* One centered shell for the header, content, and footer. */
  --header-height: 88px;
  --page-gutter: 64px;
  --content-max-width: 1504px;
  --content-inset: 24px;
  font-family: "Afacad Flux Variable", "Afacad Flux", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--text); }
img { display: block; max-width: 100%; }
h1, h2, p { margin: 0; }
a { color: inherit; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: var(--background); background: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
section:focus { outline: none; }
section { scroll-margin-top: calc(var(--header-height) + 24px); }

.container { width: min(var(--content-max-width), calc(100% - var(--page-gutter) * 2)); margin-inline: auto; }
main.container { position: relative; z-index: 1; padding-top: var(--content-inset); }
.skip-link {
  position: fixed;
  top: 12px;
  left: var(--page-gutter);
  z-index: 60;
  padding: 10px 16px;
  background: var(--text);
  color: var(--background);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 40; background: var(--background); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  min-height: calc(var(--header-height) + 1px);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; max-width: 100%; }
.brand__fish { width: auto; height: 56px; }
.brand__wordmark { width: auto; height: 38px; }
.brand:hover { opacity: 0.8; }
.header__nav { display: flex; align-items: center; gap: 18px; }
.header__nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 450;
  text-decoration: none;
}
.header__nav > a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; }

.language { position: relative; }
.language__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 52px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 16px;
  font-weight: 450;
  line-height: 1;
}
.language__toggle:hover, .menu-toggle:hover { background: #202020; }
.language__chevron { width: 6px; height: 6px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-2px) rotate(45deg); }
.language__toggle[aria-expanded="true"] .language__chevron { transform: translateY(1px) rotate(225deg); }
.language__options {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 200px;
  max-height: min(420px, calc(100dvh - var(--header-height) - 32px));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #151515;
}
.language__options button { width: 100%; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 2px; background: transparent; text-align: left; font-size: 16px; }
.language__options button:hover { background: #292929; }
.language__options button[aria-pressed="true"] { text-decoration: underline; text-underline-offset: 5px; }
.language__options button:focus-visible { outline-offset: -2px; }

.studio { position: relative; isolation: isolate; min-height: 200px; padding-block: 14px 36px; }
.studio__copy { position: relative; z-index: 2; width: 68%; min-width: 0; }
h1 { font-size: clamp(48px, 6vw, 92px); font-weight: 650; line-height: 1.05; letter-spacing: -0.035em; }
h1 span { white-space: nowrap; }
.studio__tagline { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.studio__description { max-width: 640px; color: var(--secondary); font-size: clamp(26px, 2.6vw, 40px); line-height: 1.3; }
.studio__smile { flex: 0 0 68px; width: 68px; height: 52px; color: #edc868; transform: rotate(-7deg); }
.studio__water { position: absolute; top: calc(var(--header-height) + var(--content-inset) + 52px); left: 0; right: 0; height: 300px; overflow: hidden; pointer-events: none; }
.studio__water svg { display: block; width: 100%; height: 100%; }
.studio__wave { transform-origin: center bottom; animation: water-drift 11s ease-in-out infinite; }
.studio__wave--back { opacity: 0.65; animation-duration: 15s; animation-direction: reverse; }
.studio__wave--front { opacity: 0.65; animation-delay: -4s; }
.studio__art { position: absolute; z-index: 1; top: -14px; right: 12px; width: min(46%, 600px); aspect-ratio: 15 / 8; pointer-events: none; }
.studio__current, .studio__bubbles { position: absolute; inset: 0; width: 100%; height: 100%; }
.studio__trail { color: #a3a3a0; animation: swim-trail 18s linear infinite; }
.studio__note { position: absolute; left: 20%; top: 30%; color: #b6b6b2; font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; font-size: clamp(16px, 1.45vw, 22px); line-height: 1.25; white-space: nowrap; transform: rotate(-13deg); }
.studio__note span { padding-left: 24px; }
.studio__fish { position: absolute; top: 5%; right: 14%; width: 40%; height: auto; animation: studio-swim 7s ease-in-out infinite; }
.studio__bubble { stroke: #c5c5c1; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: bubble-drift 6s ease-in-out infinite; }
.studio__bubble--two { animation-duration: 7.5s; animation-delay: -2.5s; }
.studio__bubble--three { animation-duration: 5.5s; animation-delay: -4s; }
@keyframes studio-swim { 0%, 100% { transform: translate(0, 4px) rotate(-2deg); } 50% { transform: translate(4px, -5px) rotate(1deg); } }
@keyframes water-drift { 0%, 100% { transform: translate(-12px, 5px) scaleY(0.96); } 50% { transform: translate(14px, -5px) scaleY(1.03); } }
@keyframes bubble-drift { 0%, 100% { opacity: 0.6; transform: translate(0, 4px) scale(0.97); } 50% { opacity: 0.95; transform: translate(3px, -8px) scale(1.04); } }
@keyframes swim-trail { to { stroke-dashoffset: -52; } }
@media (prefers-reduced-motion: reduce) {
  .studio__fish, .studio__wave, .studio__bubble, .studio__trail { animation: none; }
}
:lang(ko) .studio__description, :lang(ko) .product__description { word-break: keep-all; overflow-wrap: break-word; }

.products { position: relative; display: grid; gap: 64px; }
.product { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); grid-template-areas: "image information"; gap: 40px; align-items: start; }
.product__image { grid-area: image; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; }
.product__information { grid-area: information; min-width: 0; padding-top: 6px; }
.product__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 12px; color: var(--secondary); font-size: 13px; font-weight: 450; line-height: 1.5; }
.product__category { font-weight: 600; letter-spacing: 0.05em; }
.product__separator { color: #82827c; }
h2 { font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.product__description { margin-top: 14px; max-width: 48ch; color: var(--secondary); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.development-progress { display: flex; align-items: center; gap: 14px; width: min(280px, 100%); margin-top: 20px; }
.development-progress progress { appearance: none; -webkit-appearance: none; display: block; flex: 1; min-width: 0; height: 4px; border: 0; border-radius: 999px; background: #2b2b2b; overflow: hidden; }
.development-progress progress::-webkit-progress-bar { border-radius: 999px; background: #2b2b2b; }
.development-progress progress::-webkit-progress-value { border-radius: 999px; background: var(--text); }
.development-progress progress::-moz-progress-bar { border-radius: 999px; background: var(--text); }
.development-progress span { flex: 0 0 auto; color: var(--text); font-size: 16px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.tools-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7%; background: #111111; }
.tools-art__fish { width: 25%; height: auto; }
.tools-art__wordmark { width: 53%; height: auto; }

.footer { margin-top: 24px; background: var(--background); color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; border-top: 1px solid var(--border); padding-block: 26px 52px; }
.footer__social { display: flex; align-items: center; gap: 10px; justify-self: start; }
.footer__business { display: flex; align-items: baseline; justify-content: center; gap: 10px; min-width: 0; text-align: center; }
.footer__registration { white-space: nowrap; }
.footer__copyright { display: inline-flex; align-items: center; justify-self: end; font-size: inherit; text-align: right; white-space: nowrap; }

@media (min-width: 900px) and (max-width: 1350px) {
  .studio__art { width: 40%; }
}

@media (max-width: 1100px) {
  :root { --page-gutter: 32px; }
}

@media (max-width: 899px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .footer__social, .footer__copyright { justify-self: center; text-align: center; }
  .footer__business { flex-wrap: wrap; }
  .header__inner { gap: 0 12px; }
  .brand { gap: 10px; }
  .brand__fish { height: 48px; }
  .brand__wordmark { height: 32px; }
  .header__nav { flex-wrap: wrap; width: 100%; padding-bottom: 12px; }
  .js .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; }
  .menu-toggle span { width: 20px; height: 1px; background: currentColor; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .js .menu-toggle:hover { background: #202020; }
  .js .header__nav { display: none; position: absolute; top: 100%; left: var(--page-gutter); right: var(--page-gutter); width: auto; max-height: calc(100dvh - var(--header-height) - 24px); overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px; border: 1px solid var(--border); border-radius: 6px; background: #111111; flex-direction: column; align-items: stretch; gap: 4px; }
  .js .header__nav[data-open="true"] { display: flex; }
  .js .header__nav { flex-wrap: nowrap; }
  .js .header__nav > * { flex-shrink: 0; }
  .header__nav > a { min-height: 44px; }
  .language__toggle { justify-content: flex-start; padding-inline: 0; }
  .language__options { position: static; min-width: 0; max-height: none; margin-top: 4px; }
  .studio { min-height: 210px; padding-block: 16px 40px; }
  .studio__copy { width: 65%; }
  .studio__art { top: 0; right: 0; width: 40%; }
  .studio__note { display: none; }
  .studio__water { top: calc(var(--header-height) + var(--content-inset) + 34px); height: 230px; }
  h1 { font-size: 44px; }
  .studio__description { font-size: 26px; }
  .studio__smile { flex-basis: 50px; width: 50px; height: 40px; }
  .products { gap: 56px; }
  .product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "information" "image"; gap: 24px; }
  .product__information { padding-top: 0; }
  h2 { font-size: 28px; }
  .product__description { max-width: 60ch; font-size: 17px; }
}

@media (max-width: 760px) {
  :root { --page-gutter: 20px; --header-height: 76px; }
  .header__nav > a, .language__toggle { font-size: 14px; }
  .footer { margin-top: 18px; }
}

@media (max-width: 600px) {
  .footer__business { flex-direction: column; align-items: center; gap: 2px; }
  .footer__separator { display: none; }
  .studio { min-height: 0; padding-block: 18px 28px; }
  .studio__copy { width: 100%; }
  h1 { font-size: clamp(38px, 8vw, 48px); }
  .studio__tagline { gap: 12px; margin-top: 10px; }
  .studio__description { font-size: 24px; }
  .studio__smile { flex-basis: 46px; width: 46px; height: 36px; }
  .studio__art { position: relative; top: auto; right: auto; width: 280px; max-width: 100%; margin: 10px 0 0 auto; }
  .studio__water { top: calc(var(--header-height) + var(--content-inset) + 160px); height: 220px; }
  .studio__trail { stroke-width: 2.5; }
}

@media (min-width: 1280px) {
  :root { --content-inset: 16px; }
}
