/* ============================================================
   플래니즘 회사 소개 사이트
   구조 레퍼런스: pnation.com (햄버거 단독 내비 + 전체화면 오버레이,
   풀블리드 히어로, 좌측 정렬 대문자 섹션 헤딩, 이미지 그리드,
   가로 스크롤 스트립, 커버플로 캐러셀, 원형 소셜 줄, 블록 푸터)
   테마: 시안 A "종이" (라이트 기본, 다크 전환 지원)

   형태 규칙 (지켜 주세요)
   - 모서리 반경 0. 예외는 원형 아바타(50%)뿐입니다.
   - 악센트는 코발트 하나. 다른 색을 추가하지 않습니다.
   - 섹션 헤딩은 장식 없는 대문자 한 줄. 부제나 라벨을 얹지 않습니다.
   ============================================================ */

/* ---------- 토큰 ---------- */
:root{
  --bg:        #F7F7F5;
  --bg-alt:    #EFEFEC;
  --ink:       #191919;
  --ink-2:     #5A5A5A;
  --ink-3:     #8C8C8C;
  --rule:      rgba(25,25,25,.14);
  --rule-2:    rgba(25,25,25,.30);
  /* 무채색으로 갑니다. 파랑 계열은 쓰지 않습니다.
     지금은 포커스 링에만 쓰이므로, 강조색이 필요해지면 여기 한 줄만 바꾸면 됩니다. */
  --accent:    #191919;
  --on-accent: #F7F7F5;
  --overlay:   #191919;
  --on-overlay:#F7F7F5;
  --scrim:     rgba(10,10,10,.46);
  --grain:     .030;

  /* 첫 화면 배경 모션에만 쓰는 색입니다. 본문은 그대로 무채색입니다.
     여기만 파랑을 둔 이유는 DESIGN.md 2장에 적어 두었습니다.
     assets/hero-motion.js 가 canvas 에 그리려고 이 값을 읽어 갑니다.
     canvas 는 var() 를 모르기 때문에 JS 가 대신 묻습니다. */
  --hero-ground: #0B1220;  /* 첫 화면 바탕. 글이 얹히므로 충분히 어두워야 합니다 */
  --hero-blue:   #3182F6;  /* 밝은 쪽. 선과 번짐 */
  --hero-blue-2: #0064FF;  /* 깊은 쪽. 채워지는 면 */
  --hero-tint:   #EAF2FF;  /* 선을 타고 지나가는 신호 */

  /* 한글과 라틴 모두 프리텐다드 하나로 갑니다. */
  --font: "Pretendard Variable", Pretendard, system-ui, -apple-system, sans-serif;

  /* 모서리. iOS 느낌으로 넉넉하게 굴립니다.
     화면 끝에 닿는 면(히어로, 섹션 바탕, 헤더)은 굴리지 않습니다. */
  --r-sm:   10px;  /* 작은 표시, 진행 바 */
  --r-md:   16px;  /* 버튼 */
  --r-lg:   24px;  /* 사진, 카드 */
  --r-icon:  7px;  /* 로고 마크 28px 기준 */
  --r-pill: 999px;
  /* 앱 카드 버튼. 반경은 16px 에서 더 키우지 마세요.
     높이가 51px 이라 20px 만 넘어도 위아래 직선이 11px 밖에 안 남고,
     24px 이면 3px 만 남아 좌우 끝이 반원이 됩니다. 가로는 136px 이라
     여전히 직선이 길게 남으므로, 세로만 캡슐이 되어 둘이 안 맞아 보입니다.
     더 둥글게 보이고 싶으면 반경 대신 아래 --corner-cta 의 지수를 내리세요. */
  --r-cta:   16px;

  /* 이 버튼만 곡선을 더 풍성하게 씁니다. 지수를 내리면 모서리가 원호에 가까워져
     같은 반경에서도 더 둥글어 보입니다. 직선 길이는 그대로라 네모 느낌은 유지됩니다.
     k = 2^1.4 = 약 2.64 로 2 보다 크므로 G2 연속도 그대로입니다. */
  --corner-cta: superellipse(1.4);

  /* 모서리 곡선의 모양. CSS 의 superellipse(p) 는 |x|^k + |y|^k = 1 에서
     k = 2^p 를 뜻합니다. p=1 이 보통의 원호(round), p=2 가 스쿼클(k=4)입니다.
     k > 2 이면 직선과 만나는 지점의 곡률이 0 이라 꺾임 없이 이어집니다(G2 연속).
     더 각지게 하려면 2.3 정도까지, 더 둥글게 하려면 1.6 쪽으로 내리세요. */
  --corner: superellipse(2);

  --max: 1440px;
  --pad: clamp(20px, 4.2vw, 64px);
  --head-h: 76px;

  --ease: cubic-bezier(.16,1,.3,1);
}

[data-theme="dark"]{
  --bg:        #0A0A0A;
  --bg-alt:    #121212;
  --ink:       #F2F2F0;
  --ink-2:     #A6A6A4;
  --ink-3:     #7A7A78;
  --rule:      rgba(242,242,240,.16);
  --rule-2:    rgba(242,242,240,.34);
  --accent:    #F2F2F0;
  --on-accent: #0A0A0A;
  --overlay:   #000000;
  --on-overlay:#F2F2F0;
  --scrim:     rgba(0,0,0,.52);
  --grain:     .042;
  /* 어두운 쪽에서는 막(--scrim)이 더 두꺼워서, 바탕을 같이 내려야
     파랑이 탁해지지 않습니다. 파랑 자체는 두 테마에서 같습니다. */
  --hero-ground: #070B14;
  --hero-blue:   #3182F6;
  --hero-blue-2: #0064FF;
  --hero-tint:   #EAF2FF;
}

/* ---------- 리셋 ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-weight:400;line-height:1.68;letter-spacing:-.011em;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  transition:background-color .4s var(--ease),color .4s var(--ease);
}
body.is-locked{overflow:hidden}

img{display:block;max-width:100%;height:auto}

/* 자리만 잡아 둔 사진입니다. 출처가 제각각이라 흑백으로 묶어 둡니다.
   실제 사진으로 바꿀 때 class="ph" 만 떼면 원래 색으로 돌아옵니다. */
.ph{filter:grayscale(1) contrast(1.05)}
[data-theme="dark"] .ph{filter:grayscale(1) contrast(1.05) brightness(.86)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}

/* 종이 질감. 소극적으로만 씁니다. 고정 + pointer-events:none 이라
   스크롤 중 리페인트가 생기지 않습니다. */
body::after{
  content:"";position:fixed;inset:0;z-index:90;pointer-events:none;
  opacity:var(--grain);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 공통 ---------- */
.wrap{max-width:var(--max);margin:0 auto;padding-inline:var(--pad)}
.skip{position:absolute;left:-9999px;top:0;z-index:200;padding:14px 20px;background:var(--ink);color:var(--bg);
  border-radius:var(--r-sm)}
.skip:focus{left:0}

/* 섹션 헤딩: 장식 없는 대문자 한 줄 */
.sec{padding-block:clamp(84px,11vw,168px)}
.sec--alt{background:var(--bg-alt)}
/* 크기는 모든 섹션 제목(소개 제목 포함)이 같이 씁니다. 예전 값은 clamp(1.25rem,2.1vw,1.6rem) */
.sec-title{
  font-weight:700;
  font-size:clamp(1.75rem,3.8vw,3.1rem);
  letter-spacing:.03em;text-transform:uppercase;line-height:1.2;
}
.sec-body{margin-top:clamp(44px,6.5vw,104px)}

/* ---------- 헤더 ---------- */
.head{
  position:fixed;top:0;left:0;right:0;z-index:70;height:var(--head-h);
  display:flex;align-items:center;
  background:color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid transparent;
  transition:border-color .3s, background-color .4s var(--ease);
}
.head.is-stuck{border-bottom-color:var(--rule)}
/* 히어로 사진 위에서는 바탕을 비우고 글자를 밝게 둡니다.
   구분선은 어디서나 있습니다 — 어두운 첫 화면 위에서는 옅은 흰 선, 밝은 바탕에서는 --rule 선(아래 dawnInk 가 넘겨줌). */
.head.is-over{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;
  border-bottom-color:rgba(247,247,245,.22);color:#F7F7F5}

/* 스크롤하면 숨는 머리줄 — 내려가는 만큼 머리줄도 따라 올라가 사라지고(main.js 가 transform 을 직접 줌),
   올리기 시작하면 위에서 한 번에 튀어나옵니다(.is-revealing 이 그때만 transition 을 켬).
   내려가는 동안에는 transition 이 없어야 스크롤과 1:1 로 붙어 움직입니다. */
.head{will-change:transform}
.head.is-revealing{transition:transform .42s var(--ease), border-color .3s, background-color .4s var(--ease)}
.head .wrap{display:flex;align-items:center;justify-content:space-between;width:100%}

.logo{display:inline-flex;align-items:center;gap:11px;  font-weight:700;font-size:15px;letter-spacing:.14em;text-transform:uppercase}
.logo .mark{
  width:28px;height:28px;border:2px solid currentColor;border-radius:var(--r-icon);
  display:grid;place-items:center;font-size:14px;line-height:1;letter-spacing:0;
}

.burger{width:44px;height:44px;display:grid;place-items:center;margin-right:-10px;border-radius:var(--r-sm)}
.burger span{display:block;width:26px;height:2px;background:currentColor;position:relative;
  transition:transform .3s var(--ease), background-color .2s}
.burger span::before,.burger span::after{
  content:"";position:absolute;left:0;width:26px;height:2px;background:currentColor;
  transition:transform .3s var(--ease), top .3s var(--ease)}
.burger span::before{top:-8px}
.burger span::after{top:8px}

/* ---------- 전체화면 오버레이 메뉴 ---------- */
/* 닫힐 때 — 항목이 아래 것부터 가라앉으며 사라지고(아래 .menu-nav a), 조금 뒤 판 전체가 고르게 옅어집니다.
   여는 쪽 곡선(--ease)은 처음에 거의 다 움직여 버려서, 닫을 때 쓰면 판이 한순간에 꺼진 것처럼 보입니다.
   그래서 닫을 때는 고르게 옅어지는 곡선을 쓰고, 다 옅어진 뒤에 visibility 를 숨깁니다. */
.menu{
  position:fixed;inset:0;z-index:80;background:var(--overlay);color:var(--on-overlay);
  display:flex;flex-direction:column;
  opacity:0;visibility:hidden;
  transition:opacity var(--dur-menu-close,.5s) cubic-bezier(.4,0,.2,1) .12s,
             visibility 0s linear calc(var(--dur-menu-close,.5s) + .12s);
}
/* 열릴 때 */
.menu.is-open{opacity:1;visibility:visible;
  transition:opacity var(--dur-menu,.42s) var(--ease),visibility 0s}
.menu-top{height:var(--head-h);display:flex;align-items:center;flex-shrink:0}
.menu-top .wrap{display:flex;align-items:center;justify-content:space-between;width:100%}
.menu-close{width:44px;height:44px;display:grid;place-items:center;margin-right:-10px;font-size:0;
  border-radius:var(--r-sm)}
.menu-close svg{width:22px;height:22px}
.menu-mid{flex:1;display:flex;align-items:center;overflow-y:auto}
.menu-mid .wrap{width:100%}
.menu-nav{display:flex;flex-direction:column;gap:clamp(10px,1.8vh,22px)}
.menu-nav a{
  font-weight:700;text-transform:uppercase;
  font-size:clamp(1.6rem,4.4vw,2.6rem);letter-spacing:.02em;line-height:1.15;
  width:max-content;position:relative;
  opacity:0;transform:translateY(18px);
  /* 닫힐 때 — 열릴 때의 반대로, 아래 항목부터 차례로 가라앉으며 사라집니다 */
  transition:opacity calc(var(--dur-menu-close,.5s) * .6) cubic-bezier(.4,0,1,1),
             transform calc(var(--dur-menu-close,.5s) * .6) cubic-bezier(.4,0,1,1);
}
.menu-nav a:nth-child(5){transition-delay:.04s}
.menu-nav a:nth-child(4){transition-delay:.08s}
.menu-nav a:nth-child(3){transition-delay:.12s}
.menu-nav a:nth-child(2){transition-delay:.16s}
.menu-nav a:nth-child(1){transition-delay:.20s}
.menu.is-open .menu-nav a{opacity:1;transform:none;
  transition:opacity var(--dur-menu,.42s) var(--ease),transform var(--dur-menu,.42s) var(--ease)}
.menu.is-open .menu-nav a:nth-child(1){transition-delay:.10s}
.menu.is-open .menu-nav a:nth-child(2){transition-delay:.16s}
.menu.is-open .menu-nav a:nth-child(3){transition-delay:.22s}
.menu.is-open .menu-nav a:nth-child(4){transition-delay:.28s}
.menu.is-open .menu-nav a:nth-child(5){transition-delay:.34s}
.menu.is-open .menu-nav a:nth-child(6){transition-delay:.40s}
.menu-nav a::after{content:"";position:absolute;left:0;bottom:-.1em;width:100%;height:2px;
  background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .34s var(--ease)}
.menu-nav a:hover::after,.menu-nav a:focus-visible::after{transform:scaleX(1)}
.menu-bot{flex-shrink:0;padding-bottom:clamp(28px,5vh,56px)}
.theme-switch{display:inline-flex;align-items:center;gap:16px;
  font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase}
.theme-switch button{opacity:.42;transition:opacity .2s;padding:4px 0}
.theme-switch button:hover{opacity:.8}
.theme-switch button[aria-pressed="true"]{opacity:1}
.theme-switch .bar{width:1px;height:14px;background:currentColor;opacity:.4}

/* ---------- 히어로 ---------- */
.hero{position:relative}
/* 첫 화면 한 장. 바탕색이 차오르는 동안 화면에 붙어 있습니다(아래 "첫 화면 → 소개 전환"). */
.hero-pin{position:relative;min-height:100dvh;display:grid;place-items:center;overflow:hidden;isolation:isolate}
.hero-media{position:absolute;inset:0;z-index:-2}
.hero-media img{width:100%;height:100%;object-fit:cover;position:relative}
/* 사진 경로가 비어 있으면 깨진 그림 표시가 왼쪽 위에 뜨므로 숨깁니다 */
.hero-media img[src=""]{visibility:hidden}
/* 배경 — 우리 앱 화면이 기둥 다섯 줄로 천천히 위로 흐릅니다(2026-10-28, 예전 파란 선 모션 대신).
   사진보다 아래에 깔려서, 편집 화면에서 "배경 사진 경로" 를 채우면 사진이 덮습니다.
   기둥 전체를 살짝 기울이고 키워 화면 모서리까지 채웁니다. 색은 줄이고 어둡게 눌러 글자 뒤에서만 보이게 합니다.
   각 기둥(.reel-run)에는 같은 화면 묶음이 두 번 들어 있어 절반(-50%)만큼 올리면 처음과 같은 모습이 되어 끊김 없이 돕니다.
   기둥마다 속도와 시작 위치를 달리해 줄이 맞춰 움직이지 않게 합니다. 속도는 --reel-len. transform 만 움직입니다. */
.hero-media{background:#0D0E10}
.hero-reel{position:absolute;inset:-18% -12%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
  gap:clamp(14px,1.6vw,26px);transform:rotate(-8deg);
  filter:saturate(.6) brightness(.5)}
.reel-col{overflow:hidden}
.reel-run{display:flex;flex-direction:column;gap:clamp(14px,1.6vw,26px);
  animation:reelUp var(--reel-len,80s) linear infinite;will-change:transform}
.reel-run img{display:block;width:100%;height:auto;border-radius:clamp(12px,1.4vw,22px);
  box-shadow:0 18px 40px rgba(0,0,0,.35)}
/* translateY(-50%) 만큼 다 올라가면 두 번째 묶음이 첫 묶음 자리에 와 있습니다. 사이 간격 절반을 더 올려 이음매를 맞춥니다 */
@keyframes reelUp{from{transform:translateY(0)} to{transform:translateY(calc(-50% - clamp(14px,1.6vw,26px) / 2))}}
.reel-col:nth-child(1) .reel-run{animation-duration:calc(var(--reel-len,80s) * 1.00);animation-delay:calc(var(--reel-len,80s) * -.10)}
.reel-col:nth-child(2) .reel-run{animation-duration:calc(var(--reel-len,80s) * 1.25);animation-delay:calc(var(--reel-len,80s) * -.55)}
.reel-col:nth-child(3) .reel-run{animation-duration:calc(var(--reel-len,80s) * .90);animation-delay:calc(var(--reel-len,80s) * -.30)}
.reel-col:nth-child(4) .reel-run{animation-duration:calc(var(--reel-len,80s) * 1.15);animation-delay:calc(var(--reel-len,80s) * -.75)}
.reel-col:nth-child(5) .reel-run{animation-duration:calc(var(--reel-len,80s) * .95);animation-delay:calc(var(--reel-len,80s) * -.45)}
/* 좁은 화면은 기둥 셋 */
@media (max-width:860px){
  .hero-reel{grid-template-columns:repeat(3,minmax(0,1fr));inset:-12% -30%}
  .reel-col:nth-child(n+4){display:none}
}
/* 움직임을 줄이는 설정이면 멈춘 채로 둡니다 */
@media (prefers-reduced-motion:reduce){ .reel-run{animation:none} }
/* 히어로 사진이 코드 화면이라 밝은 글자가 많습니다. 평평한 막만으로는
   가운데 문구가 묻히므로, 글이 놓이는 자리에 한 겹 더 눌러 줍니다. */
.hero-media::after{content:"";position:absolute;inset:0;
  background:
    radial-gradient(ellipse 72% 58% at 50% 47%, rgba(8,8,8,.74), rgba(8,8,8,0) 72%),
    var(--scrim)}
/* 사진 자리가 비어 배경 모션이 보일 때는 막을 얇게 합니다.
   저 막은 밝은 코드 사진을 누르려고 두껍게 잡은 것입니다. 모션은 우리가
   어둡게 그리고 있어서, 같은 두께를 씌우면 파랑이 거의 남지 않습니다.
   가운데 글자 대비는 radial 한 겹으로 그대로 지킵니다.
   :has() 를 모르는 브라우저는 위의 두꺼운 막을 그대로 씁니다. */
.hero-media:has(img[src=""])::after{
  /* 앱 화면 배경 위 — 가운데 글자 뒤를 더 눌러 읽히게 하고, 위아래 끝은 바탕색으로 스며들게 합니다 */
  background:
    radial-gradient(ellipse 58% 46% at 50% 47%, rgba(8,8,10,.78), rgba(8,8,10,0) 74%),
    linear-gradient(to bottom, rgba(8,8,10,.55), rgba(8,8,10,.12) 30%, rgba(8,8,10,.12) 70%, rgba(8,8,10,.6)),
    rgba(8,8,10,.18)}
/* 좁은 화면에서는 글이 거의 폭 전체를 쓰고 판도 상대적으로 커져서,
   위 막으로는 설명 문단이 기준선(4.5:1) 근처까지 내려갑니다.
   가로로 넓은 타원 한 겹을 더 눌러 줍니다. */
@media (max-width:860px){
  .hero-media:has(img[src=""])::after{
    background:
      radial-gradient(ellipse 120% 44% at 50% 46%, rgba(8,8,12,.74), rgba(8,8,12,0) 78%),
      rgba(8,8,12,.20)}
}
.hero-inner{text-align:center;padding-inline:var(--pad);color:#F7F7F5}
.hero-kicker{
  font-weight:700;text-transform:uppercase;
  font-size:clamp(.8rem,1.35vw,1.05rem);letter-spacing:.42em;
  /* 단어 사이를 띄우는 데 &nbsp; 를 쓰면 편집 화면에서 지워지기 쉽습니다.
     보통 띄어쓰기를 쓰고 간격은 여기서 줍니다. */
  word-spacing:1.1em;
  opacity:.82;margin-bottom:clamp(22px,3.2vw,40px);
}
/* 윗줄 세 단어 — 정육면체 한 칸씩. 마우스를 올리면 그 단어가 위로 넘어가 아랫면(data-flip 의 단어)을 보여 주고,
   마우스를 내리면 돌아옵니다. 면의 높이(1.2em)의 절반만큼 앞뒤로 띄워 진짜 상자처럼 돕니다.
   두 면을 같은 칸에 겹쳐 두어 칸 폭은 긴 쪽에 맞고, 넘어가도 옆 단어가 밀리지 않습니다.
   transform 만 움직입니다(6장). 터치 화면처럼 마우스를 올릴 수 없는 곳에서는 그대로 둡니다. */
.hero-kicker .cube{display:inline-block;perspective:40em;vertical-align:top}
.cube-in{display:inline-grid;justify-items:center;transform-style:preserve-3d;
  transform:translateZ(-.6em);transition:transform var(--dur-cube,.6s) var(--ease)}
.cube-face{grid-area:1/1;line-height:1.2em;backface-visibility:hidden;-webkit-backface-visibility:hidden}
.cube-front{transform:translateZ(.6em)}
.cube-back{transform:rotateX(-90deg) translateZ(.6em)}
@media (hover:hover){
  .hero-kicker .cube:hover .cube-in{transform:translateZ(-.6em) rotateX(90deg)}
}
.hero h1{
  font-size:clamp(2.5rem,6.2vw,5rem);font-weight:700;line-height:1.24;
  letter-spacing:.02em;text-wrap:balance;
}
.hero-sub{margin-top:clamp(24px,3.2vw,40px);font-size:clamp(1.05rem,1.55vw,1.35rem);
  color:rgba(247,247,245,.82);max-width:46ch;margin-inline:auto;line-height:1.72;word-break:keep-all;text-wrap:balance}
.scroll-cue{
  position:absolute;left:50%;bottom:36px;transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;gap:14px;color:rgba(247,247,245,.8);
  font-weight:500;font-size:11px;letter-spacing:.3em;text-transform:uppercase;
}
.scroll-cue i{display:block;width:1px;height:54px;background:currentColor;opacity:.5;overflow:hidden;position:relative}
.scroll-cue i::after{content:"";position:absolute;inset:0;background:#F7F7F5;
  animation:cue 2.1s var(--ease) infinite}
@keyframes cue{0%{transform:translateY(-100%)}60%,100%{transform:translateY(100%)}}

/* ---------- ABOUT ---------- */
.about-stmt{
  font-size:clamp(1.5rem,3.5vw,2.75rem);font-weight:700;line-height:1.34;
  letter-spacing:-.032em;max-width:22ch;
}
/* 사진은 붙어 있고 오른쪽 글만 바뀝니다.
   .about-scroll 이 세 문단만큼의 스크롤 길이를 만들고,
   그 안의 .about-sticky 가 화면에 붙어 있습니다.
   .about-track 의 세 칸은 보이지 않는 기준점이고,
   화면 가운데를 지나는 칸의 번호가 data-active 로 들어옵니다. */
/* --pin 은 사진이 붙어 있는 동안의 스크롤 길이입니다.
   네 구간이 이 길이를 나눠 씁니다. 전체 높이는 여기에 화면 한 개를 더한 값입니다. */
/* --step : 문단 하나가 머무는 길이. 이 값이 체감 속도를 정합니다.
   --pin  : 문단 셋을 합친 길이. 기준 칸(.about-track)이 이만큼 깔립니다.
            문단 수를 바꾸면 아래 곱하는 수(3)도 같이 바꿔야 합니다.
   --hold : 마지막 문단이 끝난 뒤에도 사진이 더 붙어 있는 길이.
            이게 없으면 마지막 문단이 뜨자마자 사진이 풀려 글이 금방 지나가 버립니다.
            트랙 밖에서는 pick() 이 마지막 칸을 계속 현재 칸으로 두므로 글이 그대로 남습니다. */
/* --lead : 제목만 큼지막하게 서 있는 첫 구간(넓은 화면에서는 첫 화면 PLANISM 을 이어받아 ABOUT 이 붙고
            제자리로 가는 구간). 기준 칸을 이만큼 내려서 시작하면
            그동안은 어떤 칸도 판정선을 지나지 않아 계속 intro 로 남습니다. */
/* 소개 섹션은 위 여백을 두지 않습니다. 제목이 붙어 있는 무대 안에 있어서, 위 여백이 있으면
   첫 화면 PLANISM 이 빠져나간 뒤 제목이 들어오기까지 빈 화면이 생깁니다. */
#about{padding-top:0}
#about .sec-body{margin-top:0}
.about-scroll{position:relative;
  --lead:var(--lead-about,100vh);
  --step:var(--step-about,100vh);
  --pin:calc(var(--step) * 3);
  --hold:var(--hold-last,60vh);
  height:calc(var(--lead) + var(--pin) + var(--hold) + 100dvh)}

/* 붙어 있는 동안 화면 세로 한가운데에 놓입니다.
   위아래 패딩을 같게 두어야 정확히 가운데에 옵니다. 헤더를 피하려고 위만 키우면
   그 차이의 절반만큼 사진이 아래로 밀립니다. */
.about-sticky{position:sticky;top:0;height:100dvh;
  display:grid;align-content:center;
  padding-block:32px}

/* 가운데 오는 것은 사진이어야 합니다. 그래서 중앙 정렬 계산에 들어가는 것은
   .about-main 하나뿐이고, 제목은 흐름에서 빼 그 위에 얹습니다.
   제목을 흐름에 두면 [제목 + 사진] 덩어리가 가운데 정렬되어 사진이 아래로 밀립니다. */
.about-stage{position:relative}

/* 이 섹션만 제목이 맨 위가 아니라 사진 바로 위에 섭니다.
   스크롤 내내 자리를 지키고 사라지지 않습니다.
   크기는 다른 섹션 제목과 같습니다(.sec-title). 아래 회색 문단(27px)보다 충분히 커서 위계가 뒤집히지 않습니다. */
/* 폭을 글자에 맞춰 둬야 left 로 가로 가운데에 세울 수 있습니다.
   left:0 / right:0 으로 꽉 채우면 가로 위치를 옮길 수가 없습니다. */
.about-title{position:absolute;left:0;width:max-content;max-width:100%;
  bottom:calc(100% + clamp(18px,2.6vw,34px));
  transform-origin:center center;
  transition:transform .7s var(--ease), left .7s var(--ease)}

/* 첫 구간에서 제목이 서는 자리(제자리에서 내려가는 거리). main.js 가 첫 화면 PLANISM 한가운데로
   다시 재서 덮어씁니다. 아래는 스크립트가 돌기 전의 기본값(사진 한가운데)입니다. */
.about-stage{--title-drop:calc(26dvh + 52px)}
@media (max-height:880px){ .about-stage{--title-drop:calc(23dvh + 52px)} }
@media (max-height:720px){ .about-stage{--title-drop:calc(20dvh + 52px)} }

/* animation-timeline 을 모르는 브라우저용. 가로세로 한가운데에 크게 세웁니다. */
.about-scroll[data-active="intro"] .about-title{
  left:50%;
  transform:translate(-50%, var(--title-drop)) scale(var(--intro-zoom,1.9));
}

/* 스크롤 진행을 재는 기준 두 개. cover 0 은 그 칸 윗변이 화면 아래끝에 닿는 순간,
   cover 100vh 는 그 칸이 화면 위에 붙는 순간입니다. 소개 제목이 움직이는 방식은
   아래 "첫 화면 PLANISM → 소개 제목" 블록에 있습니다. */
@supports (animation-timeline: view()){
  :root{timeline-scope:--aboutView, --heroView}
  .about-scroll{view-timeline-name:--aboutView;view-timeline-axis:block}
}

/* ---------- 첫 화면 → 소개 전환 ----------
   첫 화면이 --dawn-len 만큼 화면에 붙어 있는 동안, 아래 경계에서부터 다음 화면 바탕색(--bg)이
   차올라 회색 첫 화면을 덮습니다. 다 덮이면 두 화면의 색이 같아져 경계선이 사라집니다.
   PLANISM 만 가운데 남아 점점 커지고, 글자색은 바탕을 따라 갈립니다(회색 위 흰색, 차오른 바탕 위 짙은색).
   윗줄 · 설명 · SCROLL 은 처음에 사라집니다. 머리줄 글자는 바탕이 머리줄을 지날 때 짙어집니다.
   (빛 번짐 같은 따뜻한 색은 넣지 않습니다. 무채색 그대로입니다 — 2장)

   .dawn 은 화면 1.7배 높이의 판입니다. 위쪽 8% 는 투명 → --bg 로 번지는 앞머리,
   그 아래는 --bg 로 꽉 찹니다. 화면 아래끝에서 출발해 자기 높이만큼 올라가면 화면 전체가 --bg 입니다.
   transform · opacity 만 움직입니다(6장). 모션 축소 · 미지원 브라우저에서는 예전처럼 정지 화면입니다.

   진행 구간(첫 화면이 붙어 있는 길이 --dawn-len 을 100 으로 볼 때)
     0 ~ 22   윗줄 · 설명 · SCROLL 이 옅어지며 사라짐
     4 ~ 100  바탕색이 차오름 (PLANISM 은 판이 덮은 부분부터 짙은색으로 갈림)
     0 ~ 100  PLANISM 이 1 → --hero-grow 배로 커짐
     58 ~ 72  머리줄 글자가 밝은색 → --ink */
.dawn{display:none}

@media (prefers-reduced-motion:no-preference){
@supports (animation-timeline: view()){
  .hero{height:calc(100dvh + var(--dawn-len,140vh));view-timeline-name:--heroView;view-timeline-axis:block}
  .hero-pin{position:sticky;top:0;height:100dvh}

  .dawn{
    display:block;position:absolute;left:0;right:0;top:100%;height:170%;z-index:-1;pointer-events:none;
    /* 앞머리(투명 → --bg)를 8% 로 짧게 두어, 바탕이 바뀌는 선이 글자 위를 지날 때 또렷하게 보이게 합니다 */
    background:linear-gradient(to bottom, transparent 0%, var(--bg) 8%, var(--bg) 100%);
    will-change:transform;
    animation:dawnRise linear both;animation-timeline:--heroView;
    animation-range:cover calc(100vh + var(--dawn-len,140vh) * .04) cover calc(100vh + var(--dawn-len,140vh));
  }
  /* 끝까지 올리면 판의 아랫변이 화면 아랫변에 딱 맞아 1px 회색 선이 비칩니다. 98% 만 올려 아래로 조금 넘치게 둡니다 */
  @keyframes dawnRise{from{transform:translateY(0)} to{transform:translateY(-98%)}}

  /* 바탕색이 거의 다 차면 아래의 회색 바탕(사진 · 막)도 걷어 냅니다.
     남겨 두면 차오르는 판의 가장자리에서 회색이 1px 비쳐 경계선처럼 보입니다. */
  .hero-media{
    animation:dawnClear linear both;animation-timeline:--heroView;
    animation-range:cover calc(100vh + var(--dawn-len,140vh) * .8) cover calc(100vh + var(--dawn-len,140vh));
  }
  @keyframes dawnClear{to{opacity:0}}

  /* PLANISM 은 자리를 지키며 점점 커집니다(--hero-grow 배). */
  .hero h1{
    will-change:transform;
    animation:dawnGrow linear both;animation-timeline:--heroView;
    animation-range:cover 100vh cover calc(100vh + var(--dawn-len,140vh));
  }
  @keyframes dawnGrow{to{transform:scale(var(--hero-grow,1.7))}}

  /* 글자색은 바탕을 그대로 따라갑니다. 흰 PLANISM(h1) 위에 같은 자리 · 같은 크기의 짙은 PLANISM 을 겹치되,
     짙은 쪽은 차오르는 판(.dawn) 안에 넣어 판이 덮은 곳에서만 보이게 합니다.
     그래서 바탕이 바뀌는 선이 글자를 지나는 동안 한 글자 안에서 위는 흰색, 아래는 짙은색으로 또렷하게 갈립니다.
     판은 글자 위에 올라와(z-index:1) 흰 글자를 가리고, .dawn-ink 는 판과 반대로 움직여(dawnHold) 글자를 제자리에 둡니다.
     짙은 글자의 세로 자리(--ink-top)는 main.js 가 h1 을 재서 넣습니다. */
  .dawn{z-index:1;overflow:hidden}
  /* 짙은 글자는 앞머리의 한가운데(판 높이의 4%, 바탕이 반쯤 밝아진 곳)부터 보입니다.
     판 맨 윗변부터 보이면 아직 회색인 곳에서 글자가 먼저 짙어집니다.
     .dawn-ink 는 판과 같은 크기로 되돌려(위 -4%/.96, 높이 100%/.96) 계산이 판 기준 그대로가 되게 합니다. */
  .dawn-clip{position:absolute;left:0;right:0;top:4%;bottom:0;overflow:hidden}
  .dawn-ink{position:absolute;left:0;right:0;top:calc(-4% / .96);height:calc(100% / .96);
    animation:dawnHold linear both;animation-timeline:--heroView;
    animation-range:cover calc(100vh + var(--dawn-len,140vh) * .04) cover calc(100vh + var(--dawn-len,140vh));
  }
  @keyframes dawnHold{from{transform:translateY(0)} to{transform:translateY(98%)}}
  .dawn-word{
    position:absolute;left:50%;top:var(--ink-top,-50dvh);translate:-50% -50%;
    font-size:clamp(2.5rem,6.2vw,5rem);font-weight:700;line-height:1.24;letter-spacing:.02em;
    text-align:center;white-space:nowrap;color:var(--ink);
    will-change:transform;
    animation:dawnGrow linear both;animation-timeline:--heroView;
    animation-range:cover 100vh cover calc(100vh + var(--dawn-len,140vh));
  }

  /* 머리줄(로고 · 햄버거)은 바탕이 머리줄 높이를 지나는 동안(약 58~72) 밝은색 → --ink */
  .head{
    animation:dawnInk linear both;animation-timeline:--heroView;
    animation-range:cover calc(100vh + var(--dawn-len,140vh) * .58) cover calc(100vh + var(--dawn-len,140vh) * .72);
  }
  /* 글자색과 함께 구분선(옅은 흰 선 → --rule)과 바탕(투명 → 밝은 유리)도 넘겨줍니다.
     그래야 소개 장면처럼 아직 첫 화면 칸 안이지만 바탕이 밝아진 곳에서도 머리줄이 선으로 구분됩니다 */
  @keyframes dawnInk{
    from{color:#F7F7F5;border-bottom-color:rgba(247,247,245,.22);background-color:transparent}
    to  {color:var(--ink);border-bottom-color:var(--rule);background-color:color-mix(in srgb, var(--bg) 84%, transparent)}
  }

  /* 윗줄 · 설명 · SCROLL 은 처음에 살짝 떠오르며 사라집니다 */
  .hero-kicker,.hero-sub,.scroll-cue{
    animation:dawnFade linear both;animation-timeline:--heroView;
    animation-range:cover 100vh cover calc(100vh + var(--dawn-len,140vh) * .22);
  }
  @keyframes dawnFade{to{opacity:0;translate:0 -14px}}
}
}

/* ---------- 첫 화면 PLANISM → 소개 제목 ----------
   소개 제목이 따로 올라오지 않습니다. 첫 화면의 큰 PLANISM 을 그대로 이어받아 왼쪽에 ABOUT 이 생기고,
   ABOUT PLANISM 이 된 뒤 사진 위 제자리로 줄어들며 소개가 시작됩니다.

   1) 소개 섹션을 화면 한 장만큼 끌어올립니다(margin-top:-100dvh). 그러면 첫 화면이 풀리는 바로 그 순간
      (바탕이 다 찬 순간) 소개 무대가 화면에 붙습니다. 첫 화면이 위로 빠져나가는 구간이 없어집니다.
   2) 그 순간 소개 제목은 PLANISM 과 같은 자리 · 같은 크기 · 같은 색 · 같은 자간으로 서 있고
      (자리와 배율은 main.js 가 재서 넣음), 첫 화면은 숨습니다(heroOff). 그래서 바뀌는 순간이 보이지 않습니다.
      소개 제목은 그보다 조금 앞서 나타나 있지만 첫 화면이 위에 덮여 있어(z-index) 보이지 않습니다.
   3) 소개 무대가 붙은 뒤 --lead 를 100 으로 볼 때
        0 ~ 6     PLANISM 만 (첫 화면 끝과 같은 모습)
        6 ~ 42    왼쪽에 ABOUT 이 떠오르고, PLANISM 은 그만큼 오른쪽으로 비켜 둘이 같이 가운데에 섭니다
        42 ~ 62   ABOUT PLANISM 이 크게 서 있음
        62 ~ 100  사진 위 제자리로 줄어들며 들어감 → 이어서 사진과 첫 문단(main.js 의 data-active)
   좁은 화면(860px 이하)은 소개를 쌓아 보여 주므로 이어받지 않고, 제목이 섹션 맨 위에 그대로 섭니다.
   첫 화면 제목(hero.title)을 PLANISM 이 아닌 글로 바꾸면 이어받는 글자가 달라지니 여기 .about-name 도 같이 바꿔 주세요.
   transform · opacity 만 움직입니다(제자리로 갈 때의 left 는 예전부터 쓰던 것). */
@media (prefers-reduced-motion:no-preference) and (min-width:861px){
@supports (animation-timeline: view()){
  .hero{z-index:1}
  #about{margin-top:-100dvh}
  .hero-pin{
    animation:heroOff linear both;animation-timeline:--heroView;
    animation-range:cover calc(100vh + var(--dawn-len,140vh) * .99) cover calc(100vh + var(--dawn-len,140vh));
  }
  @keyframes heroOff{to{visibility:hidden}}

  .about-title{
    letter-spacing:.02em;   /* 첫 화면 PLANISM 과 같은 자간. 다르면 이어받는 순간 글자 폭이 바뀝니다 */
    transition:none;        /* 위의 transition 은 스크롤 연출을 못 쓰는 브라우저용입니다 */
    animation:titleShow linear both, titleSettle linear both;
    animation-timeline:--aboutView, --aboutView;
    animation-range:
      cover 88vh cover 96vh,
      cover calc(100vh + var(--lead) * .62) cover calc(100vh + var(--lead));
  }
  @keyframes titleShow{from{opacity:0} to{opacity:1}}
  @keyframes titleSettle{
    from{left:50%;transform:translate(-50%, var(--title-drop)) scale(var(--title-zoom,3.5))}
    to  {left:0;transform:translate(0,0) scale(1)}
  }

  /* ABOUT 이 생기기 전에는 PLANISM 만 가운데에 오도록 --name-shift(= ABOUT 과 띄어쓰기 폭의 절반)만큼
     왼쪽에 옮겨 둡니다. ABOUT 은 그보다 조금 더 왼쪽에서 떠오르며 붙습니다. */
  .about-words{animation:wordIn linear both}
  .about-name{display:inline-block;animation:nameIn linear both}
  /* 줄임형(animation:)이 기준을 지우므로 기준과 범위는 그 뒤에 둡니다 */
  .about-words,.about-name{
    animation-timeline:--aboutView;
    animation-range:cover calc(100vh + var(--lead) * .06) cover calc(100vh + var(--lead) * .42);
  }
  @keyframes wordIn{
    from{opacity:0;transform:translateX(calc(var(--name-shift,0px) * -1 - .4em))}
    to  {opacity:1;transform:none}
  }
  @keyframes nameIn{
    from{transform:translateX(calc(var(--name-shift,0px) * -1))}
    to  {transform:none}
  }
}
}
/* 제목만 보이는 동안 사진과 글은 비켜 둡니다. 자리는 그대로 차지해서
   제목 위치가 흔들리지 않습니다. */
.about-main{transition:opacity .6s var(--ease), transform .6s var(--ease)}
.about-scroll[data-active="intro"] .about-main{opacity:0;transform:translateY(26px)}

/* "Planism" 앞의 단어만 바뀝니다. 네 단어를 같은 칸에 겹쳐 두고 하나만 띄웁니다.
   칸 너비는 main.js 가 현재 단어 폭으로 맞춰 줍니다. 가장 긴 단어에 고정하면
   짧은 단어일 때 "Planism" 앞에 빈 자리가 크게 남습니다.
   폭에 전환을 걸어 두어, 단어가 바뀔 때 "Planism" 이 부드럽게 따라 움직입니다. */
.about-words{display:inline-grid;vertical-align:bottom;overflow:hidden;
  transition:width var(--dur-swap,.55s) var(--ease)}
.about-words > span{grid-area:1/1;justify-self:start;white-space:nowrap;
  opacity:0;transform:translateY(7px);
  transition:opacity var(--dur-swap,.55s) var(--ease), transform var(--dur-swap,.55s) var(--ease)}
.about-scroll[data-active="intro"] .about-words > span[data-when="intro"],
.about-scroll[data-active="0"]     .about-words > span[data-when="0"],
.about-scroll[data-active="1"]     .about-words > span[data-when="1"],
.about-scroll[data-active="2"]     .about-words > span[data-when="2"],
.about-scroll[data-active="all"]   .about-words > span[data-when="intro"]{opacity:1;transform:none}

.about-main{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(24px,4vw,64px)}
.about-figure{aspect-ratio:16/10;max-height:52dvh;overflow:hidden;background:var(--bg-alt);border-radius:var(--r-lg)}
/* 화면이 낮으면 사진을 줄여 위쪽 제목이 헤더와 겹치지 않게 합니다. */
@media (max-height:880px){ .about-figure{max-height:46dvh} }
@media (max-height:720px){ .about-figure{max-height:40dvh} }
.about-figure img{width:100%;height:100%;object-fit:cover}

.about-notes{position:relative}
.about-note{
  position:absolute;left:0;right:0;
  color:var(--ink-2);
  font-size:clamp(1.3rem,1.75vw,1.7rem);font-weight:700;
  line-height:1.6;letter-spacing:-.022em;
  max-width:24ch;
  opacity:0;transform:translateY(14px);pointer-events:none;
  transition:opacity var(--dur-swap,.55s) var(--ease), transform var(--dur-swap,.55s) var(--ease);
}
/* translate 와 transform 은 별개 속성이라, 가운데 정렬을 해 두고도
   transform 으로 따로 움직일 수 있습니다. */
.about-note[data-slot="top"]{top:0}
.about-note[data-slot="mid"]{top:50%;translate:0 -50%}
.about-note[data-slot="bot"]{bottom:0}

/* 사진이 가운데에 멈추는 순간부터 첫 문단이 떠 있습니다. */
.about-scroll[data-active="0"] .about-note[data-slot="top"],
.about-scroll[data-active="1"] .about-note[data-slot="mid"],
.about-scroll[data-active="2"] .about-note[data-slot="bot"]{opacity:1;transform:none}

/* 기준 칸은 "붙어 있는 구간"에만 깔립니다. 전체 높이에 깔면 마지막 문단이
   사진이 이미 떨어져 나간 뒤에도 남아 있게 됩니다.
   판정선이 화면 한가운데(50dvh)라서 그만큼 내려서 시작합니다. */
.about-track{position:absolute;left:0;right:0;top:calc(50dvh + var(--lead));height:var(--pin);pointer-events:none}
.about-step{height:33.3333%}

/* 스크롤 연출을 쓸 수 없는 경우(좁은 화면, 모션 축소, IO 미지원)에는
   세 문단을 그냥 차례로 쌓아 둡니다. */
.about-scroll[data-active="all"]{height:auto}
.about-scroll[data-active="all"] .about-sticky{position:static;height:auto;padding-block:0}
.about-scroll[data-active="all"] .about-title{position:static;margin-bottom:28px}
/* 쌓아 두면 앞 단어는 ABOUT 하나만 보입니다. 나머지 단어를 빼야 칸이 가장 긴 단어 폭으로 벌어지지 않습니다 */
.about-scroll[data-active="all"] .about-words > span:not([data-when="intro"]){display:none}
.about-scroll[data-active="all"] .about-main{grid-template-columns:1fr}
.about-scroll[data-active="all"] .about-figure{max-height:none}
.about-scroll[data-active="all"] .about-track{display:none}
.about-scroll[data-active="all"] .about-notes{margin-top:28px}
.about-scroll[data-active="all"] .about-note{
  position:static;opacity:1;transform:none;translate:none;max-width:40ch}
.about-scroll[data-active="all"] .about-note + .about-note{margin-top:20px}

/* ---------- WHAT WE DO (이미지 그리드) ---------- */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.4vw,34px)}

/* 카드 하나가 통째로 링크입니다. 사진만 따로 확대되지 않게,
   호버하면 사진과 글과 버튼이 한 덩어리로 같이 뜹니다. */
.tile{display:block;position:relative;text-align:center;
  transition:transform var(--dur-hover,.42s) var(--ease)}
.tile:hover{transform:translateY(var(--lift-card,-8px))}
.tile:active{transform:translateY(calc(var(--lift-card,-8px) / 2))}
.tile figure{aspect-ratio:3/4;overflow:hidden;background:var(--bg-alt);border-radius:var(--r-lg)}
.tile img{width:100%;height:100%;object-fit:cover}
/* 앱 아이콘이 있는 카드 — 사진 대신 아이콘을 판 한가운데에 앱 아이콘 모양(둥근 사각)으로 둡니다.
   아이콘은 앱의 얼굴이라 흑백(.ph)으로 바꾸지 않고 원래 색 그대로 씁니다. */
/* 앱 섹션 바탕이 --bg-alt 라 판도 --bg-alt 면 판이 사라집니다. 판만 --bg 로 한 단계 밝힙니다. */
.tile figure.is-icon{display:grid;place-items:center;background:var(--bg)}
.tile figure.is-icon img{width:42%;height:auto;aspect-ratio:1;object-fit:contain;
  border-radius:22.37%;box-shadow:0 10px 28px rgba(0,0,0,.16)}
/* 앱 이름이 한글이라 대문자 자간 처리를 쓰지 않습니다. */
.tile h3{
  margin-top:22px;text-align:center;font-weight:700;
  font-size:clamp(1.05rem,1.6vw,1.3rem);letter-spacing:-.025em;line-height:1.3;
}
.tile p{margin-top:10px;text-align:center;color:var(--ink-2);font-size:.9375rem;line-height:1.7;
  max-width:28ch;margin-inline:auto}

/* 버튼처럼 보이지만 실제 링크는 카드 전체입니다. 그래서 span 입니다. */
.tile-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  margin-top:22px;padding:13px 24px;border:1px solid var(--rule-2);border-radius:var(--r-cta);
  font-size:.875rem;font-weight:700;letter-spacing:-.005em;white-space:nowrap;
  transition:background-color var(--dur-hover,.42s) var(--ease),color var(--dur-hover,.42s) var(--ease),border-color var(--dur-hover,.42s) var(--ease);
}
.tile-cta svg{width:11px;height:11px;flex-shrink:0}

/* 1단계 — 카드 어딘가에 커서가 올라온 상태.
   버튼은 "깨어나는" 정도만 합니다. 커서가 사진 위에 있는데 멀리 있는 버튼이
   완전히 반전되면, 건드리지도 않은 것이 혼자 반응하는 것처럼 보입니다. */
.tile:hover .tile-cta{
  border-color:var(--ink);
  background:color-mix(in srgb, var(--ink) 7%, transparent);
}

/* 2단계 — 버튼 위에 직접 올렸을 때만 완전히 반전합니다.
   키보드 포커스와 누르는 중에도 같은 상태로 둡니다. 둘 다 대상이 분명한 경우입니다. */
.tile .tile-cta:hover,
.tile:focus-visible .tile-cta,
.tile:active .tile-cta{
  background:var(--ink);
  color:var(--bg);
  border-color:var(--ink);
}

/* 준비 중인 앱 — 소개 페이지가 아직 없어 누를 수 없습니다(href 없음).
   카드가 떠오르거나 단추가 반전되지 않게 위의 호버 효과를 모두 끄고, 단추는 옅은 점선 테두리 · 옅은 글자로 둡니다. */
.tile.is-soon{cursor:default}
.tile.is-soon:hover,.tile.is-soon:active{transform:none}
.tile.is-soon .tile-cta,
.tile.is-soon:hover .tile-cta,
.tile.is-soon .tile-cta:hover,
.tile.is-soon:active .tile-cta{background:none;color:var(--ink-3);border-color:var(--rule-2);border-style:dashed}

/* ---------- WORK (대표 + 가로 스트립) ---------- */
.feature figure{aspect-ratio:16/9;overflow:hidden;background:var(--bg-alt);border-radius:var(--r-lg)}
.feature img{width:100%;height:100%;object-fit:cover}
.feature .meta{margin-top:26px;color:var(--ink-2);font-size:.9375rem;letter-spacing:.02em}
.feature h3{margin-top:8px;font-size:clamp(1.3rem,2.6vw,2rem);font-weight:700;letter-spacing:-.03em;line-height:1.26}

.strip{margin-top:clamp(48px,6vw,88px)}
.strip-track{
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,32%);
  gap:clamp(16px,2.2vw,30px);
  overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-ms-overflow-style:none;padding-bottom:4px;
}
.strip-track::-webkit-scrollbar{display:none}
.strip-item{scroll-snap-align:start}
.strip-item figure{aspect-ratio:16/9;overflow:hidden;background:var(--bg-alt);border-radius:var(--r-lg)}
.strip-item img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.strip-item:hover img{transform:scale(1.04)}
.strip-item p{margin-top:16px;font-size:.9375rem;line-height:1.66;word-break:keep-all}
.strip-item span{display:block;margin-top:6px;color:var(--ink-3);font-size:.8125rem;letter-spacing:.02em}
.strip-bar{margin-top:clamp(28px,3.4vw,44px);height:3px;background:var(--rule);position:relative;
  border-radius:var(--r-pill)}
.strip-bar i{position:absolute;left:0;top:0;height:100%;background:var(--ink);width:18%;border-radius:var(--r-pill);
  transition:width .12s linear, transform .12s linear}

/* ---------- NEWS (커버플로) ---------- */
.flow{position:relative}
.flow-stage{position:relative;height:clamp(300px,42vw,460px);overflow:hidden}
.flow-track{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.flow-card{
  position:absolute;width:clamp(230px,30vw,380px);aspect-ratio:1;overflow:hidden;background:var(--bg-alt);
  border-radius:var(--r-lg);
  transition:transform var(--dur-swap,.55s) var(--ease), opacity var(--dur-swap,.55s) var(--ease);
}
.flow-card img{width:100%;height:100%;object-fit:cover}
/* 카드는 그 글로 가는 링크입니다(news-view.js). 초점 링은 바깥쪽으로 두면
   overflow:hidden 에 잘리므로 안쪽에 그립니다. */
.flow-card:focus-visible{outline-offset:-4px}
/* 이미지가 없는 소식. 앱 아이콘을 가운데 작게, 앱도 없으면 P 마크 */
.flow-card .news-icon,.flow-card .news-mark{position:absolute;inset:0;display:grid;place-items:center}
.flow-card .news-icon img{width:34%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:22%;
  box-shadow:0 0 0 1px var(--rule)}
.flow-card .news-mark{font-weight:700;font-size:clamp(3rem,7vw,5.5rem);line-height:1;color:var(--ink-3)}
/* 제목 줄도 링크입니다. 무채색이라 밑줄 색으로만 알립니다. */
.flow-title a{text-decoration:underline;text-decoration-color:transparent;text-underline-offset:6px;
  text-decoration-thickness:1px;transition:text-decoration-color .2s}
.flow-title a:hover{text-decoration-color:var(--rule-2)}
/* 이미지가 있는 소식은 아이콘을 먼저 두고 이미지가 오면 바꿉니다(news-view.js) */
.news-lazy{position:absolute;inset:0;display:block}
.news-lazy > .ph{width:100%;height:100%;object-fit:cover}
/* 받는 동안. 무대 높이는 그대로 두어 아래 내용이 들썩이지 않게 합니다 */
.flow.is-loading .flow-meta,.flow.is-loading #flowPrev,.flow.is-loading #flowNext{visibility:hidden}
/* 소식이 없거나 한 장뿐일 때 */
.flow.is-empty .flow-stage,.flow.is-empty .flow-meta{display:none}
.flow.is-empty .flow-title{color:var(--ink-3);font-weight:500;min-height:0}
.flow.is-empty #flowPrev,.flow.is-empty #flowNext,
.flow.is-single #flowPrev,.flow.is-single #flowNext{display:none}
.flow-meta{margin-top:clamp(28px,3.6vw,46px);display:flex;align-items:baseline;
  justify-content:space-between;gap:20px;border-top:1px solid var(--rule);padding-top:20px}
.flow-meta .who{font-weight:700;font-size:.8125rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2)}
.flow-meta .when{font-size:.8125rem;letter-spacing:.1em;color:var(--ink-3)}
.flow-title{margin-top:18px;text-align:center;font-size:clamp(1.2rem,2.4vw,1.85rem);
  font-weight:700;letter-spacing:-.03em;line-height:1.3;min-height:2.6em}
.flow-ctrl{margin-top:clamp(28px,3.4vw,44px);display:flex;align-items:center;justify-content:flex-end;gap:26px}
.flow-ctrl .all{font-weight:700;font-size:.8125rem;
  letter-spacing:.14em;text-transform:uppercase}
/* 무채색이라 색상 대비 대신 밝기 대비로 호버를 알립니다. */
.flow-ctrl .all{color:var(--ink-2);transition:color .2s}
.flow-ctrl .all:hover{color:var(--ink)}
.flow-ctrl button{width:44px;height:44px;display:grid;place-items:center;border-radius:var(--r-sm);
  color:var(--ink-2);transition:color .2s,transform .2s}
.flow-ctrl button:hover{color:var(--ink)}
.flow-ctrl button:active{transform:translateY(1px)}
.flow-ctrl svg{width:24px;height:16px}

/* ---------- FOLLOW ---------- */
/* 채널 셋(인스타그램 · 카카오톡 채널 · 유튜브). 좁은 화면에서도 세 개를 한 줄에 둡니다 */
.circles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(20px,3vw,48px)}
.circle{text-align:center}
.circle figure{width:100%;max-width:210px;margin-inline:auto;aspect-ratio:1;border-radius:50%;
  overflow:hidden;background:var(--bg-alt);
  border:1px solid var(--rule);transition:border-color .25s,transform .35s var(--ease)}
.circle:hover figure{border-color:var(--rule-2);transform:translateY(-4px)}
.circle img{width:100%;height:100%;object-fit:cover}
.circle figure.mono{display:grid;place-items:center}
.circle figure.mono span{font-weight:700;letter-spacing:.08em;
  font-size:2.6rem;line-height:1;color:var(--ink-3);transition:color .25s}
.circle:hover figure.mono span{color:var(--ink)}
/* 서비스 아이콘 — 글자 대신 단색 선 아이콘. 평소엔 옅게, 커서를 올리면 진하게 */
.circle figure.mono svg{width:30%;height:auto;color:var(--ink-3);transition:color .25s}
.circle:hover figure.mono svg{color:var(--ink)}
.circle span{display:block;margin-top:18px;font-size:.875rem;color:var(--ink-2);letter-spacing:.01em}

/* ---------- CONTACT ---------- */
.contact-lead{font-size:clamp(1.05rem,1.5vw,1.25rem);color:var(--ink-2);max-width:48ch;line-height:1.74}
.btn-out{
  display:inline-flex;align-items:center;justify-content:center;gap:12px;
  margin-top:clamp(32px,4vw,52px);
  min-width:300px;padding:24px 36px;border:1px solid var(--rule-2);border-radius:var(--r-md);
  font-weight:700;font-size:.875rem;
  letter-spacing:.14em;text-transform:uppercase;white-space:nowrap;
  transition:background-color .28s var(--ease),color .28s var(--ease),border-color .28s var(--ease),transform .14s;
}
.btn-out:hover{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.btn-out:active{transform:translateY(1px)}

/* ---------- 문의 창 ----------
   문의 남기기를 누르면 뜨는 창(<dialog>). 색은 전부 토큰이라 다크 테마를 그대로 따라갑니다.
   열릴 때만 살짝 떠오릅니다(transform · opacity). 닫힐 때는 바로 닫힙니다. */
.ask{margin:auto;padding:0;border:0;background:transparent;color:var(--ink);
  width:min(560px, calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:visible}
.ask::backdrop{background:rgba(10,10,10,.5);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.ask[open]{animation:askIn .42s var(--ease)}
.ask[open]::backdrop{animation:askFade .3s var(--ease)}
@keyframes askIn{from{opacity:0;transform:translateY(16px)}}
@keyframes askFade{from{opacity:0}}
.ask-box{position:relative;background:var(--bg);border-radius:var(--r-lg);
  padding:clamp(28px,4vw,44px);max-height:calc(100dvh - 32px);overflow-y:auto;
  box-shadow:0 24px 64px rgba(0,0,0,.22)}
.ask-x{position:absolute;top:14px;right:14px;width:44px;height:44px;display:grid;place-items:center;
  border-radius:var(--r-sm);color:var(--ink-2);transition:color .2s}
.ask-x:hover{color:var(--ink)}
.ask-x svg{width:20px;height:20px}
/* 제목은 섹션 제목처럼 대문자 한 줄. 창 안이라 한 단계 작게 둡니다 */
.ask-title{font-weight:700;font-size:clamp(1.6rem,3vw,2.1rem);letter-spacing:.03em;text-transform:uppercase;line-height:1.2;padding-right:40px}
.ask-lead{margin-top:12px;color:var(--ink-2);font-size:.9375rem;line-height:1.7}

/* 문의 종류 — 동그란 단추 넷 중 하나. 고른 것이 메일 제목이 됩니다 */
.ask-topics{margin-top:26px;border:0;display:flex;flex-wrap:wrap;gap:8px}
.ask-topics legend{width:100%;margin-bottom:10px;font-size:.8125rem;font-weight:700;color:var(--ink-2);letter-spacing:.02em}
.ask-topics label{position:relative;cursor:pointer}
/* 보이지 않게 덮어 두되 키보드 · 읽기 프로그램에는 그대로 단추입니다 */
.ask-topics input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.ask-topics span{display:block;padding:9px 16px;border:1px solid var(--rule-2);border-radius:var(--r-pill);
  font-size:.875rem;font-weight:600;color:var(--ink-2);
  transition:background-color .2s,color .2s,border-color .2s}
.ask-topics label:hover span{color:var(--ink);border-color:var(--ink)}
.ask-topics input:checked + span{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.ask-topics input:focus-visible + span{outline:2px solid var(--accent);outline-offset:3px}

.ask-field{display:block;margin-top:22px}
.ask-field > span{display:block;margin-bottom:10px;font-size:.8125rem;font-weight:700;color:var(--ink-2);letter-spacing:.02em}
.ask-field textarea{display:block;width:100%;resize:vertical;min-height:140px;
  padding:14px 16px;border:1px solid var(--rule-2);border-radius:var(--r-md);
  background:transparent;color:var(--ink);font:inherit;font-size:.9375rem;line-height:1.65;
  transition:border-color .2s}
.ask-field textarea::placeholder{color:var(--ink-3)}
.ask-field textarea:focus{outline:none;border-color:var(--ink)}

.ask-actions{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ask-btn{display:flex;align-items:center;justify-content:center;min-height:52px;padding:0 16px;
  border:1px solid var(--rule-2);border-radius:var(--r-md);
  font-weight:700;font-size:.875rem;letter-spacing:.02em;text-align:center;
  transition:background-color .2s,color .2s,border-color .2s,transform .14s}
.ask-btn:hover{border-color:var(--ink)}
.ask-btn:active{transform:translateY(1px)}
.ask-btn.is-main{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.ask-btn.is-main:hover{opacity:.88}

/* 받는 주소 — 웹메일을 따로 쓰는 사람은 복사해 갑니다 */
.ask-addr{margin-top:18px;padding-top:16px;border-top:1px solid var(--rule);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  font-size:.875rem;color:var(--ink-2)}
.ask-addr span{overflow-wrap:anywhere}
.ask-addr button{flex-shrink:0;padding:6px 2px;font-weight:700;font-size:.8125rem;color:var(--ink);
  text-decoration:underline;text-underline-offset:4px}
.ask-addr button.is-done{text-decoration:none;color:var(--ink-2)}
@media (max-width:520px){
  .ask-actions{grid-template-columns:1fr}
}

/* ---------- 푸터 ---------- */
.foot{background:var(--bg-alt);padding-block:clamp(60px,7vw,104px) clamp(40px,5vw,64px)}
.foot .logo{color:var(--ink)}
.foot-info{margin-top:clamp(32px,4vw,52px);display:flex;flex-direction:column;gap:14px;
  font-size:.9375rem;color:var(--ink-2);line-height:1.7}
.foot-info a{transition:color .2s}
.foot-info a:hover{color:var(--ink)}
/* 맨 아랫줄 — 왼쪽 저작권, 오른쪽 정책 링크. 좁으면 두 줄로 쌓입니다 */
.foot-bottom{margin-top:clamp(40px,5vw,72px);padding-top:24px;border-top:1px solid var(--rule);
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:12px 32px}
.foot-legal{font-size:.8125rem;color:var(--ink-3);letter-spacing:.01em}
.foot-policy{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:.8125rem;color:var(--ink-2);letter-spacing:.01em}
.foot-policy a{transition:color .2s}
.foot-policy a:hover{color:var(--ink)}
/* 개인정보처리방침은 다른 링크와 구별되게 굵고 진하게 */
.foot-policy a:first-child{font-weight:700;color:var(--ink)}
/* 지금 보고 있는 문서는 밑줄로 알립니다 */
.foot-policy a[aria-current="page"]{text-decoration:underline;text-underline-offset:4px}

/* ---------- 문서 페이지 (privacy.html · terms.html) ----------
   회사 소개와 같은 머리 · 메뉴 · 맨 아래를 쓰고, 가운데는 긴 글을 읽기 좋게만 둡니다.
   섹션 헤딩은 다른 곳처럼 대문자 영문 한 단어(Privacy / Terms), 그 아래 한글 문서 이름을 크게.
   넓은 화면에서는 왼쪽에 목차를 붙여 두고 오른쪽 본문은 약 70자 폭으로 묶습니다.
   표와 안내 상자는 그림자 없이 1px 괘선으로 나눕니다(4장). DESIGN.md 12장. */
.doc .sec{padding-top:calc(var(--head-h) + clamp(56px,7vw,112px))}
.doc-name{margin-top:clamp(20px,2.6vw,36px);font-size:clamp(1.9rem,4vw,3rem);font-weight:700;
  line-height:1.24;letter-spacing:-.032em}
.doc-updated{margin-top:14px;font-size:.875rem;color:var(--ink-3)}

.doc-cols{margin-top:clamp(44px,6.5vw,104px);display:grid;grid-template-columns:minmax(0,1fr);
  gap:clamp(40px,5vw,64px)}

.doc-toc{padding-block:4px 0;font-size:.9375rem;line-height:1.55}
.doc-toc-label{font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);
  margin-bottom:16px}
.doc-toc ol{list-style:none;display:flex;flex-direction:column;gap:10px;counter-reset:toc}
.doc-toc a{display:inline-flex;gap:12px;color:var(--ink-2);transition:color .2s}
.doc-toc a:hover{color:var(--ink)}
/* 개인정보처리방침 목차에는 번호가 글에 없어서 앞에 붙여 줍니다(이용약관은 "제1조"가 이미 있음) */
.doc-toc[data-num] li{counter-increment:toc}
.doc-toc[data-num] a::before{content:counter(toc,decimal-leading-zero);flex:none;color:var(--ink-3);
  font-variant-numeric:tabular-nums}

.doc-body{max-width:46rem;font-size:1rem;line-height:1.8;color:var(--ink-2);word-break:keep-all;overflow-wrap:break-word}
.doc-body > * + *{margin-top:16px}
.doc-body h2{margin-top:clamp(56px,6vw,84px);padding-top:28px;border-top:1px solid var(--rule);
  font-size:clamp(1.15rem,1.6vw,1.35rem);font-weight:700;line-height:1.4;letter-spacing:-.02em;color:var(--ink);
  scroll-margin-top:calc(var(--head-h) + 24px)}
.doc-body h3{margin-top:32px;font-size:1.0625rem;font-weight:700;color:var(--ink)}
.doc-body strong{font-weight:700;color:var(--ink)}
.doc-body ul,.doc-body ol{padding-left:1.25em}
.doc-body li + li{margin-top:8px}
.doc-body li > ul{margin-top:8px}
.doc-body a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--rule-2);
  text-underline-offset:3px;transition:text-decoration-color .2s}
.doc-body a:hover{text-decoration-color:var(--ink)}

.doc-notice{padding:20px 24px;border:1px solid var(--rule);border-radius:var(--r-lg);
  background:var(--bg-alt);font-size:.9375rem;line-height:1.75}
.doc-body > .doc-notice:first-child{margin-top:0}

.tablewrap{overflow-x:auto;border:1px solid var(--rule);border-radius:var(--r-lg)}
.tablewrap table{width:100%;min-width:520px;border-collapse:collapse;font-size:.9375rem;line-height:1.65}
.tablewrap th,.tablewrap td{padding:14px 18px;text-align:left;vertical-align:top;border-bottom:1px solid var(--rule)}
.tablewrap tr:last-child td{border-bottom:0}
.tablewrap th{background:var(--bg-alt);color:var(--ink);font-weight:700;white-space:nowrap}
.tablewrap td:first-child{color:var(--ink);font-weight:500}

/* ---------- 소식 페이지 (news.html) ----------
   문서 페이지와 같은 머리를 쓰고, 그 아래 목록 또는 글 하나를 둡니다.
   내용은 news-view.js 가 Firestore 소식에서 그립니다. DESIGN.md 13장.
   색은 전부 무채색 토큰입니다. 파랑은 첫 화면 캔버스 밖으로 나가지 않습니다(2장). */
.news{margin-top:clamp(44px,6.5vw,96px)}
.news-empty{padding:48px 0;color:var(--ink-3);font-size:1rem}
.news-retry{padding:11px 18px;border:1px solid var(--rule-2);border-radius:var(--r-md);font-weight:700;
  font-size:.875rem;color:var(--ink);transition:background-color .2s,color .2s}
.news-retry:hover{background:var(--ink);color:var(--bg)}

/* 고르는 줄. 고른 것은 채운 알약, 나머지는 테두리만 */
.news-filter{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:clamp(28px,3.4vw,44px)}
.news-filter button{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;
  border:1px solid var(--rule);border-radius:var(--r-pill);font-size:.875rem;font-weight:700;
  color:var(--ink-2);transition:color .2s,border-color .2s,background-color .2s}
.news-filter button:hover{color:var(--ink);border-color:var(--rule-2)}
.news-filter button[aria-pressed="true"]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.news-filter .n{font-weight:500;font-variant-numeric:tabular-nums;opacity:.6}

/* 목록 한 줄: 그림 · 글 · 날짜 */
.news-list{list-style:none;border-top:1px solid var(--rule)}
.news-row{display:grid;grid-template-columns:clamp(64px,7vw,96px) minmax(0,1fr) auto;gap:clamp(16px,2.4vw,32px);
  align-items:center;padding-block:clamp(18px,2.2vw,28px);border-bottom:1px solid var(--rule)}
.news-fig{position:relative;display:block;aspect-ratio:1;overflow:hidden;border-radius:var(--r-md);background:var(--bg-alt)}
.news-fig > img{width:100%;height:100%;object-fit:cover}
.news-fig .news-icon,.news-fig .news-mark{position:absolute;inset:0;display:grid;place-items:center}
.news-fig .news-icon img{width:58%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:22%;
  box-shadow:0 0 0 1px var(--rule)}
.news-fig .news-mark{font-weight:700;font-size:1.6rem;line-height:1;color:var(--ink-3)}
.news-row-txt{display:flex;flex-direction:column;gap:6px;min-width:0}
.news-meta{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;font-size:.8125rem;color:var(--ink-3);
  letter-spacing:.02em}
.news-meta b{font-weight:700;color:var(--ink-2)}
.news-type{font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:.75rem}
.news-row-title{font-size:clamp(1.05rem,1.5vw,1.25rem);font-weight:700;letter-spacing:-.02em;line-height:1.4;
  color:var(--ink);word-break:keep-all;overflow-wrap:break-word}
.news-row-sum{font-size:.9375rem;color:var(--ink-2);line-height:1.6;
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.news-date{font-size:.8125rem;color:var(--ink-3);letter-spacing:.06em;font-variant-numeric:tabular-nums;white-space:nowrap}
/* 무채색이라 줄 전체의 밝기로 호버를 알립니다(4장) */
.news-row .news-row-title{transition:color .2s}
@media (hover:hover){
  .news-list:hover .news-row .news-row-title{color:var(--ink-2)}
  .news-list .news-row:hover .news-row-title{color:var(--ink)}
}
@media (max-width:620px){
  .news-row{grid-template-columns:56px minmax(0,1fr);align-items:start}
  .news-row .news-date{grid-column:2;grid-row:1;justify-self:end;align-self:start}
  .news-row .news-row-txt{grid-column:2;grid-row:1}
  .news-row .news-meta{padding-right:90px}
}

/* 글 하나 */
.news-page.is-article .doc-name,.news-page.is-article .doc-updated{display:none}
.news-back{display:inline-flex;align-items:center;gap:10px;font-size:.875rem;font-weight:700;color:var(--ink-2);
  transition:color .2s}
.news-back::before{content:"";width:18px;height:1px;background:currentColor}
.news-back:hover{color:var(--ink)}
.news-article{max-width:46rem;margin-top:clamp(28px,3.4vw,44px)}
.news-article-head{display:flex;flex-direction:column;gap:14px;padding-bottom:clamp(24px,3vw,36px);
  border-bottom:1px solid var(--rule)}
.news-title{font-size:clamp(1.6rem,3.4vw,2.6rem);font-weight:700;line-height:1.28;letter-spacing:-.03em;
  color:var(--ink);word-break:keep-all;overflow-wrap:break-word}
.news-hero{margin-top:clamp(28px,3.4vw,44px);aspect-ratio:auto;border-radius:var(--r-lg)}
.news-hero > img{height:auto;max-height:min(70vh,640px)}
.news-body{margin-top:clamp(28px,3.4vw,44px)}
.news-body h3:first-child{margin-top:0}

.news-pager{max-width:46rem;margin-top:clamp(56px,6vw,84px);display:grid;grid-template-columns:1fr 1fr;gap:16px;
  border-top:1px solid var(--rule);padding-top:24px}
.news-pager a{display:flex;flex-direction:column;gap:6px;min-width:0;color:var(--ink-2);transition:color .2s}
.news-pager a:hover{color:var(--ink)}
.news-pager-next{text-align:right;align-items:flex-end}
.news-pager .k{font-size:.75rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.news-pager .t{font-weight:700;line-height:1.45;word-break:keep-all;overflow-wrap:break-word}

@media (min-width:1024px){
  .doc-cols{grid-template-columns:minmax(200px,280px) minmax(0,46rem);gap:clamp(56px,7vw,128px);align-items:start}
  .doc-toc{position:sticky;top:calc(var(--head-h) + 40px);max-height:calc(100dvh - var(--head-h) - 80px);overflow-y:auto}
}

/* ---------- 스쿼클 ----------
   iPhone 아이콘처럼 직선에서 곡선으로 넘어가는 지점이 눈에 띄지 않게 합니다.
   보통의 border-radius 는 원호라서 그 지점에서 곡률이 0 에서 1/r 로 튑니다(G1).
   스쿼클은 곡률이 0 에서 서서히 올라가므로 꺾임이 보이지 않습니다(G2 연속).

   1순위: corner-shape. 테두리까지 같이 따라오므로 버튼에도 그대로 씁니다.
   2순위: corner-shape 가 없는 브라우저에서는 main.js 가 테두리 없는 요소에만
          clip-path 로 같은 곡선을 그립니다. 자세한 내용은 DESIGN.md 4장. */
@supports (corner-shape: squircle){
  /* 반경이 0 인 요소에는 corner-shape 가 아무 영향을 주지 않습니다.
     그래서 전체에 걸어 둡니다. 나중에 둥근 요소를 추가해도 여기를 고칠 필요가 없습니다.
     지금 영향을 받는 곳: 사진과 카드, 두 버튼, 로고 마크, 아이콘 버튼,
     스트립 진행 바, 채널 아바타, 건너뛰기 링크. */
  *{corner-shape:var(--corner)}
  /* 앱 카드 버튼만 더 풍성한 곡선을 씁니다. 반경을 키우면 캡슐이 되므로
     반경은 그대로 두고 곡선 모양으로 둥근 느낌을 냅니다. */
  .tile-cta{corner-shape:var(--corner-cta)}
}

/* ---------- 한 장면 = 한 화면 ----------
   넓은 화면에서 Apps · Work(두 장면) · News · Follow · Contact 는 각각 화면 한 장 높이입니다.
   내용이 화면보다 크면 사진 · 카드를 화면 높이에 맞춰 줄이고, 작으면 화면 가운데에 세웁니다.
   --avail   : 헤더와 위아래 여백을 뺀, 내용이 쓸 수 있는 높이
   --title-h : 섹션 제목 한 줄 높이(.sec-title 글자 크기 × 줄 높이 1.2)
   사진을 줄일 때 빼는 고정값(190px 등)은 그 아래 글 · 단추 높이에 여유를 조금 둔 값입니다. 글을 늘리면 같이 늘리세요.
   Work 는 내용이 많아 두 장면으로 나눴습니다 — work-a(제목 + 대표), work-b(스트립).
   Contact 는 맨 아래 줄(footer)과 합쳐 한 화면입니다(--foot-h 는 main.js 가 잽니다).
   좁은 화면(860px 이하)이나 아주 낮은 화면(600px 미만)에서는 예전처럼 내용 길이대로 흐릅니다. */
@media (min-width:861px) and (min-height:600px){
  :root{
    --scene-top:clamp(16px,3.5vh,44px);
    --scene-bot:clamp(28px,5vh,64px);
    --scene-gap:clamp(20px,3.6vh,44px);
    --avail:calc(100dvh - var(--head-h) - var(--scene-top) - var(--scene-bot));
    --title-h:calc(clamp(1.75rem,3.8vw,3.1rem) * 1.2);
  }
  #apps,#news,#follow,#contact,#work .work-a,#work .work-b{
    min-height:100dvh;display:flex;flex-direction:column;justify-content:center;
    padding-block:calc(var(--head-h) + var(--scene-top)) var(--scene-bot);
  }
  #apps > .wrap,#news > .wrap,#follow > .wrap,#contact > .wrap{width:100%}
  #work{padding-block:0}
  #contact{min-height:calc(100dvh - var(--foot-h, 0px))}
  #apps .sec-body,#work .sec-body,#news .sec-body,#follow .sec-body,#contact .sec-body{margin-top:var(--scene-gap)}

  /* Apps — 카드 판 높이를 남는 높이에 맞춥니다(아래 이름 · 설명 두 줄 · 단추 몫 190px) */
  /* width:100% 를 꼭 둡니다. 없으면 비율(3:4)을 지키려고 판 폭까지 줄어 아래 글과 가운데가 어긋납니다 */
  .tile figure{width:100%;max-height:calc(var(--avail) - var(--title-h) - var(--scene-gap) - 190px)}

  /* Work 대표 — 판 높이를 맞추고, 그림은 잘리지 않게 판 안에 다 들어가게 둡니다.
     그림 바탕과 판 색이 같아(#ECEBE7) 양옆이 남아도 이음매가 보이지 않습니다. 아래 분류 · 제목 몫 110px */
  .feature figure{width:100%;max-height:calc(var(--avail) - var(--title-h) - var(--scene-gap) - 110px);background:#ECEBE7}
  .feature img{object-fit:contain}
  /* Work 스트립 — 화면 한 장을 혼자 쓰므로 칸을 키웁니다. 높이가 넘지 않게 칸 폭을 남는 높이에서 거꾸로 셈(글 · 진행 바 몫 200px) */
  .work-b .strip{margin-top:0}
  .work-b .strip-track{grid-auto-columns:min(50%, calc((var(--avail) - 200px) * 16 / 9))}

  /* News — 무대와 카드를 남는 높이에 맞춥니다(아래 분류 줄 · 제목 · 넘김 단추 몫 230px) */
  #news{--stage:min(clamp(300px,42vw,460px), calc(var(--avail) - var(--title-h) - var(--scene-gap) - 230px))}
  .flow-stage{height:var(--stage)}
  .flow-card{width:min(clamp(230px,30vw,380px), calc(var(--stage) - 24px))}
  .flow-meta{margin-top:clamp(16px,2.4vh,32px)}
  .flow-ctrl{margin-top:clamp(12px,2vh,28px)}

  /* Follow — 세 동그라미를 내용 폭 양 끝(제목 왼쪽 끝 ~ 오른쪽 끝)에 맞춰 고른 간격으로. 크기도 화면 높이를 넘지 않게 */
  .circles{display:flex;justify-content:space-between}
  .circle{width:min(clamp(160px,17vw,250px), calc(var(--avail) - var(--title-h) - var(--scene-gap) - 60px))}
  .circle figure{max-width:none}

  /* Contact + 맨 아래 줄 — 둘이 합쳐 한 화면이라, 여백을 화면 높이(vh)에 맞춰 줄여 낮은 화면에서도 넘지 않게 합니다 */
  #contact .btn-out{margin-top:var(--scene-gap)}
  .foot{padding-block:clamp(28px,5vh,64px) clamp(20px,3vh,40px)}
  .foot-info{margin-top:clamp(18px,3vh,40px)}
  .foot-bottom{margin-top:clamp(22px,3.5vh,56px)}
}

/* ---------- 등장 ---------- */
.rv{opacity:0;transform:translateY(var(--rise-reveal,22px))}
.rv.in{opacity:1;transform:none;
  transition:opacity var(--dur-reveal,.8s) var(--ease),transform var(--dur-reveal,.8s) var(--ease)}

/* ---------- 반응형 ---------- */
@media (max-width:860px){
  :root{--head-h:64px}
  /* 좁은 화면에서는 붙여 두는 연출을 끄고 세 문단을 쌓습니다. */
  .about-scroll{height:auto}
  .about-sticky{position:static;height:auto;padding-block:0}
  .about-title{position:static;margin-bottom:28px}
  .about-main{grid-template-columns:1fr}
  .about-figure{max-height:none}
  .about-track{display:none}
  .about-notes{margin-top:28px}
  .about-note{position:static;opacity:1;transform:none;translate:none;max-width:40ch}
  .about-note + .about-note{margin-top:20px}
  .tiles{grid-template-columns:1fr;gap:48px}
  .tile figure{aspect-ratio:4/3}
  .strip-track{grid-auto-columns:minmax(230px,78%)}
  .circles{gap:16px}
  .btn-out{min-width:0;width:100%;padding:22px 24px}
  .flow-ctrl{justify-content:space-between}
}
@media (max-width:520px){
  .hero-kicker{letter-spacing:.3em}
  .flow-meta{flex-direction:column;gap:6px}
}

/* ---------- 모션 축소 ---------- */
@media (prefers-reduced-motion:reduce){
  .rv{opacity:1;transform:none}
  .scroll-cue i::after{animation:none;opacity:0}
  .menu .menu-nav a{opacity:1;transform:none}
  /* 아래 규칙은 길이만 줄이므로, 메뉴의 지연(계단 · 닫힐 때 기다림)도 같이 없앱니다 */
  .menu,.menu .menu-nav a{transition-delay:0s!important}
  *,*::before,*::after{
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}
