/* 내가그린오티즘 — coming soon */

:root {
  --brand: #e9350e;
  --paper: #ffffff;
  --ink: #0b0b0b;
  --rule: rgba(255, 255, 255, 0.55);

  --gutter: clamp(16px, 2.2vw, 32px);
  --rail: 26vw;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: "Archivo", "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;

  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--brand);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-x: hidden;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

img, svg { display: block; }

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

/* ───────── header ───────── */

.bar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--gutter);
  color: var(--ink);
  pointer-events: none;
}
.bar > * { pointer-events: auto; }

.controls { display: flex; gap: 8px; align-items: center; }

.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--ink);
}
.lang a {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.lang a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.lang a:not([aria-current]):hover { background: #333333; }

.ig {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.35s var(--ease-out);
}
.ig:hover { transform: rotate(-8deg) scale(1.06); }
.ig svg { width: 18px; height: 18px; }


/* ───────── hero ───────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  grid-template-rows: 1fr auto auto 1fr;
  padding: calc(var(--gutter) * 4) var(--gutter) calc(var(--gutter) * 3);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--gutter) + var(--rail));
  width: 1px;
  background: var(--rule);
  transform-origin: top;
}

.hero__logo {
  grid-column: 2;
  grid-row: 2;
  margin: 0 0 clamp(28px, 5vh, 56px);
  padding-left: clamp(16px, 2vw, 32px);
}
.hero__logo img {
  width: min(62vw, 1040px);
  height: auto;
}
.hero--en .hero__logo img { width: min(64vw, 1080px); }

.hero__label {
  grid-column: 1;
  grid-row: 3;
  align-self: start;
  justify-self: end;
  margin: 0;
  padding: 0.55em clamp(16px, 2vw, 32px) 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.hero__line {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
  padding-left: clamp(16px, 2vw, 32px);
  color: var(--paper);
  font-size: clamp(2.6rem, 5.6vw, 5.75rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero__line span { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__line span > i { display: block; font-style: normal; }

.hero--en .hero__line { letter-spacing: -0.04em; word-spacing: 0.08em; }
.hero__line, .peek__title { word-spacing: 0.04em; }

.hero__peek {
  grid-column: 2;
  grid-row: 4;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hero__peek .dot {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 5px solid var(--paper);
  border-radius: 50%;
  transition: transform 0.4s var(--ease-out);
}
.hero__peek:hover .dot { transform: translateY(4px); }

/* entrance — content is visible without JS; .is-ready opts into motion */
.js .hero::before { transform: scaleY(0); }
.js .hero__logo img { clip-path: inset(0 100% 0 0); }
.js .hero__line i { transform: translateY(105%); }
.js .hero__label,
.js .hero__peek { opacity: 0; }

.is-ready .hero::before { transform: scaleY(1); transition: transform 1.2s var(--ease-out); }
.is-ready .hero__logo img { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out) 0.15s; }
.is-ready .hero__line i { transform: none; transition: transform 0.9s var(--ease-out); }
.is-ready .hero__line span:nth-child(1) i { transition-delay: 0.55s; }
.is-ready .hero__line span:nth-child(2) i { transition-delay: 0.63s; }
.is-ready .hero__line span:nth-child(3) i { transition-delay: 0.71s; }
.is-ready .hero__line span:nth-child(4) i { transition-delay: 0.79s; }
.is-ready .hero__line span:nth-child(5) i { transition-delay: 0.87s; }
.is-ready .hero__label,
.is-ready .hero__peek { opacity: 1; transition: opacity 0.8s ease 1.1s; }

@media (prefers-reduced-motion: reduce) {
  .js .hero::before, .js .hero__logo img, .js .hero__line i, .js .hero__label, .js .hero__peek {
    transform: none; clip-path: none; opacity: 1; transition: none;
  }
}

/* ───────── peek field ───────── */

.peek {
  --x: 50%;
  --y: 50%;
  --r: clamp(56px, 6.2vw, 104px);
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  cursor: none;
  touch-action: pan-y;
}
.peek :focus-visible { outline-color: var(--paper); }

.peek__works {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 calc(100% - 1px), transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 calc(100% - 1px), transparent 100%);
}
.peek__works li {
  position: absolute;
  left: var(--l);
  top: var(--t);
  width: var(--w, 27%);
  transform: translate(-50%, -50%) rotate(var(--a));
}
.peek__works img {
  width: 100%;
  height: auto;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* the same works, sunk under the ink: you can tell something is there */
.peek__ghost {
  -webkit-mask-image: none;
          mask-image: none;
  opacity: 0.05;
  filter: grayscale(1) blur(9px);
}
.peek__ghost img { box-shadow: none; }

/* the ring: the logo's ㅇ at its own proportions (stroke ≈ 0.85 of the hole); it grows outward so the hole stays at --r */
.peek__ring {
  --stroke: calc(var(--r) * 0.85);
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--r) * 2 + var(--stroke) * 2 - 2px);
  height: calc(var(--r) * 2 + var(--stroke) * 2 - 2px);
  border: var(--stroke) solid var(--brand);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.peek__hint {
  position: absolute;
  left: var(--x);
  top: calc(var(--y) + var(--r) * 1.85 + 18px);
  transform: translateX(-50%);
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.peek__copy {
  position: absolute;
  inset: auto var(--gutter) calc(var(--gutter) * 1.5) var(--gutter);
  display: grid;
  grid-template-columns: var(--rail) 1fr auto;
  align-items: end;
  gap: var(--gutter);
  pointer-events: none;
}
.peek__copy > * { pointer-events: auto; }

.peek__note {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 22ch;
}
.peek__title {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 14px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease;
}
.pill svg { width: 22px; height: 22px; }
.pill:hover { transform: translateY(-2px); background: #e9e9e9; }
.pill:active { transform: translateY(0) scale(0.98); }

/* ───────── footer ───────── */

.foot {
  display: grid;
  grid-template-columns: var(--rail) 1fr auto;
  gap: var(--gutter);
  align-items: end;
  padding: calc(var(--gutter) * 3) var(--gutter) var(--gutter);
}
.foot__mark {
  grid-column: 1 / -1;
  margin: 0 0 calc(var(--gutter) * 2);
}
.foot__mark img { width: 100%; height: auto; opacity: 0.22; }
.foot p { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.3; }
.foot a { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot a:hover { text-decoration-thickness: 2px; }

/* ───────── narrow screens ───────── */

@media (max-width: 760px) {
  :root { --rail: 0px; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto auto auto 1fr;
    padding-top: 96px;
  }
  .hero::before { display: none; }
  .hero__logo, .hero__line, .hero__label, .hero__peek { grid-column: 1; padding-left: 0; }
  .hero__logo { grid-row: 2; }
  .hero__logo img,
  .hero--en .hero__logo img { width: 100%; }
  .hero__line { grid-row: 3; font-size: clamp(2.5rem, 12.5vw, 4rem); }
  .hero__label { grid-row: 4; justify-self: start; padding: 28px 0 0; }
  .hero__peek { grid-row: 5; }

  .peek { --r: clamp(48px, 15vw, 72px); }
  .peek__works li { width: var(--wm, 52%); }
  .peek__copy { grid-template-columns: 1fr; gap: 18px; }
  .peek__title { font-size: clamp(2.75rem, 14vw, 4.25rem); }
  .peek__note { order: 2; }
  .peek .pill { order: 3; justify-self: start; }

  .foot { grid-template-columns: 1fr; gap: 10px; }
}

@media (hover: none) { .peek { cursor: auto; } }

.hero__label a { text-decoration: none; }
.hero__label a:hover { text-decoration: underline; text-underline-offset: 3px; }
