/* UniMetric One homepage draft, stage 3 (internal board only; scripts and forms are blocked there, so CSS only).
   Six sections: first screen (대학 현황), number band, the report band (보고서 화면, AI 초안, 한글 파일), feature tiles,
   trust, closing band. Base: a plain document in reading order with every image, number and line in its final place.
   Motion: only inside the block at the end, under prefers-reduced-motion: no-preference and @supports for
   animation-timeline: view() and animation-range. transform and opacity only, decelerating curves, nothing loops,
   everything stops in its final place. */

@font-face { font-family: "Pretendard One"; src: url("fonts/Pretendard-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Pretendard One"; src: url("fonts/Pretendard-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Pretendard One"; src: url("fonts/Pretendard-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #141B26;          /* 17.6:1 on white */
  --sub: #4A5566;          /* 7.6:1 on white */
  --brand: #3a68b8;        /* product primary; white text on it 5.5:1 */
  --brand-deep: #2f5aa8;   /* 6.7:1 on white */
  --line: #E3E7ED;
  --frame: #D9E1EB;
  --sky: #EAF1FC;
  --mint: #E6F6F2;
  --apricot: #FDF1E6;
  --lime: #EFF7E6;
  --lavender: #F1ECFB;
  --night: #0E1726;
  --night-cell: #172235;
  --night-line: #26344D;
  --night-sub: #B8C4D6;    /* 9.8:1 on --night */
  --night-accent: #8fb3ec; /* 8.4:1 on --night */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: 40px;
  --section: 112px;        /* the one gap between sections */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Pretendard One", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
p { text-wrap: pretty; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid rgba(58, 104, 184, .5); outline-offset: 3px; border-radius: 6px; }

main { overflow-x: clip; } /* the floating crops run a little past their panels; never a sideways scroll */
.wrap { max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 15px; z-index: 20; }
.skip:focus { top: 12px; }
.nb { white-space: nowrap; }

.eyebrow { font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--brand-deep); }
.eyebrow-dark { color: var(--night-accent); }
.section-title { font-size: 44px; line-height: 1.3; font-weight: 700; text-wrap: balance; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 12px;
  font-size: 17px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid #C5CFDC; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-white:hover { background: var(--sky); }
.btn-small { height: 40px; padding: 0 18px; font-size: 15px; border-radius: 10px; }

/* ---------- header ---------- */
.site-head { position: relative; background: #fff; z-index: 10; }
.site-head-row { display: flex; align-items: center; gap: 40px; height: 72px; }
.site-logo { display: block; flex: none; }
.site-logo img { width: 212px; height: auto; }
.site-nav { display: flex; gap: 32px; margin-left: auto; }
.site-nav a { font-size: 16px; font-weight: 600; color: var(--sub); text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }

/* ---------- screen crops, their labels ---------- */
.shot img { border-radius: 14px; border: 1px solid var(--frame); background: #fff;
  box-shadow: 0 1px 2px rgba(20, 27, 38, .06), 0 14px 36px rgba(20, 27, 38, .10); }
.shot-float img { box-shadow: 0 2px 6px rgba(20, 27, 38, .08), 0 24px 56px rgba(20, 27, 38, .18); }
/* short screen-name label above a crop: white chip, 14px, a 16px window icon */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; margin-bottom: 10px; padding: 0 10px 0 8px;
  border-radius: 8px; background: #fff; border: 1px solid var(--frame); font-size: 14px; font-weight: 600; line-height: 1; color: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 27, 38, .06); }
.tag::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--brand);
  background: linear-gradient(var(--brand), var(--brand)) top / 100% 4px no-repeat; }
.tag-dark { background: var(--night-cell); border-color: var(--night-line); color: #fff; box-shadow: none; }
.tag-dark::before { border-color: var(--night-accent); background: linear-gradient(var(--night-accent), var(--night-accent)) top / 100% 4px no-repeat; }

/* ---------- 1 first screen ---------- */
.hero { padding-top: 80px; }
.hero-copy { text-align: center; }
.hero-title { margin-top: 14px; font-size: 64px; line-height: 1.2; font-weight: 700; text-wrap: balance; }
.hero-lead { max-width: 760px; margin: 24px auto 0; font-size: 20px; line-height: 1.65; color: var(--sub); text-wrap: balance; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* the stage: a sky panel; the 대학 현황 window fills it, the 졸업생 진로 card floats over its lower right corner and past the panel */
.hero-stage { position: relative; margin-top: 64px; padding: 56px 56px 0; border-radius: 32px;
  background: radial-gradient(900px 420px at 15% 0%, #dfe9fb, transparent 70%), radial-gradient(700px 380px at 95% 100%, #e3f3ef, transparent 70%), var(--sky); }
.hero-window img { border-radius: 16px 16px 0 0; border-bottom: 0; box-shadow: 0 2px 6px rgba(20, 27, 38, .06), 0 30px 70px rgba(20, 27, 38, .16); }
.hero-card { position: absolute; z-index: 2; right: -28px; bottom: -56px; width: 30%; }
.demo-note { margin-top: 84px; font-size: 14px; line-height: 1.6; color: var(--sub); text-align: center; }

/* ---------- 2 number band ---------- */
.numbers { padding-top: 72px; }
.numbers-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.num-item { text-align: center; padding: 4px 24px; }
.num-item + .num-item { border-left: 1px solid var(--line); }
.num { display: flex; align-items: baseline; justify-content: center; gap: 4px; font-size: 56px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.num-word { font-size: 44px; line-height: 1.25; color: var(--brand-deep); }
.num-anim { display: none; }
.num-unit { font-size: 24px; font-weight: 600; color: var(--sub); }
.num-label { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.5; }
.num-basis { margin-top: 4px; font-size: 15px; line-height: 1.6; color: var(--sub); }

/* ---------- 3 report band ---------- */
.report { margin-top: var(--section); padding: var(--section) 0; color: #fff;
  background: radial-gradient(800px 500px at 85% 0%, rgba(58, 104, 184, .35), transparent 70%), radial-gradient(700px 500px at 0% 70%, rgba(34, 106, 106, .25), transparent 70%), var(--night); }
.report .section-title { margin-top: 12px; color: #fff; }
.report-head { max-width: 820px; }
.report-lead { margin-top: 20px; font-size: 20px; line-height: 1.65; color: var(--night-sub); }

/* three rows read top to bottom; a line runs down through the numbers on wide screens */
.rflow { position: relative; margin-top: 72px; display: grid; gap: 96px; }
.rrow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: center; }
.rrow-rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.rrow-rev .rrow-text { order: 2; }
.rno { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--night-accent); color: var(--night); font-size: 18px; font-weight: 700; line-height: 1; }
.rrow-title { margin-top: 18px; font-size: 32px; line-height: 1.3; font-weight: 700; }
.rrow-body { margin-top: 14px; font-size: 18px; line-height: 1.7; color: var(--night-sub); }
.rrow-small { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--night-sub); }
.rrow-small a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.rrow-shot img { border-color: transparent; box-shadow: 0 24px 60px rgba(0, 0, 0, .40); }

/* the AI draft in two pieces of the same screen: the first lines (cut at the right with a fade) and its check line */
.rrow-pieces { display: grid; gap: 10px; justify-items: start; }
.piece-text img { -webkit-mask-image: linear-gradient(to right, #000 86%, transparent); mask-image: linear-gradient(to right, #000 86%, transparent); }
.piece-check { width: 100%; }

/* the file: three pages fanned out, the readable part of page 33 in front of them */
.file-stage { position: relative; }
.fan { position: relative; aspect-ratio: 16 / 10.5; }
.page { position: absolute; top: 6%; width: 34%; border-radius: 6px; background: #fff; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.page-1 { left: 4%; transform: rotate(-8deg); }
.page-3 { right: 4%; transform: rotate(8deg); }
.page-2 { left: 31%; top: 0; width: 38%; z-index: 2; transform: none; }
.file-detail { position: relative; z-index: 3; width: 56%; margin: -13% 2% 0 auto; }
.report-note { margin-top: 72px; font-size: 14px; line-height: 1.7; color: var(--night-sub); }

/* ---------- 4 feature tiles ---------- */
.features { padding-top: var(--section); }
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; padding: 32px 32px 0; }
.tile-wide { grid-column: span 2; }
.panel-sky { background: var(--sky); }
.panel-mint { background: var(--mint); }
.panel-apricot { background: var(--apricot); }
.panel-lime { background: var(--lime); }
.panel-lavender { background: var(--lavender); }
.tile-label { font-size: 15px; font-weight: 700; color: var(--brand-deep); }
.tile-title { margin-top: 8px; font-size: 24px; line-height: 1.35; font-weight: 700; }
.tile-body { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--sub); }
/* the crop fills the tile under its text and runs into the tile's lower edge; in the narrow tiles it is cut from its top left
   (the wide tile keeps its whole crop and sets the row's height) */
.tile-body { margin-bottom: 28px; }
.tile-shot { width: 100%; flex: 1 1 0; min-height: 240px; object-fit: cover; object-position: left top; margin-bottom: -2px;
  border-radius: 14px 14px 0 0; border: 1px solid var(--frame); border-bottom: 0; background: #fff;
  box-shadow: 0 1px 2px rgba(20, 27, 38, .06), 0 14px 36px rgba(20, 27, 38, .10); }
.tile-wide .tile-shot { flex: none; min-height: 0; }
.tile-shot-fade { -webkit-mask-image: linear-gradient(to right, #000 80%, transparent); mask-image: linear-gradient(to right, #000 80%, transparent); }

/* ---------- 5 trust ---------- */
.trust { padding-top: var(--section); }
.trust-list { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.trust-item { border-top: 2px solid var(--ink); padding-top: 24px; }
.trust-no { font-size: 15px; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.trust-title { margin-top: 10px; font-size: 22px; line-height: 1.4; font-weight: 700; }
.trust-body { margin-top: 10px; font-size: 17px; line-height: 1.7; color: var(--sub); }

/* ---------- 6 closing band ---------- */
.closing { margin-top: var(--section); padding: 88px 0; background: var(--brand); color: #fff; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.closing-title { font-size: 36px; line-height: 1.35; font-weight: 700; text-wrap: balance; }

/* ---------- footer ---------- */
.site-foot { padding: 40px 0 64px; font-size: 14px; line-height: 1.7; color: var(--sub); }
.foot-ci { display: inline-block; margin-bottom: 14px; }
.foot-ci img { display: block; width: 144px; height: auto; } /* numenore.biz wordmark, colour turned to #111111 for the white ground */
.foot-mail a { color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }
.foot-mail a:hover { color: var(--brand-deep); }
.foot-copy { margin-top: 8px; letter-spacing: .02em; }

/* ---------- widths ---------- */
@media (max-width: 1099px) {
  :root { --section: 96px; }
  .hero-title { font-size: 52px; }
  .hero-lead, .report-lead { font-size: 19px; }
  .section-title { font-size: 36px; }
  .num { font-size: 44px; }
  .num-word { font-size: 34px; }
  .rrow, .rrow-rev { gap: 40px; }
  .rrow-title { font-size: 28px; }
  .hero-stage { padding: 40px 40px 0; }
}
@media (max-width: 900px) {
  :root { --pad: 20px; }
  .site-head-row { gap: 20px; }
  .site-logo img { width: 168px; }
  .site-nav { gap: 20px; }
  .hero { padding-top: 56px; }
  .hero-stage { margin-top: 48px; padding: 20px 16px 0; border-radius: 22px; }
  .hero-card { position: relative; right: auto; bottom: auto; width: 72%; margin: -64px -8px 0 auto; }
  .demo-note { margin-top: 24px; }
  .rflow { margin-top: 48px; gap: 64px; }
  .rrow, .rrow-rev { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rrow-rev .rrow-text { order: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: 1 / -1; }
  .trust-list { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 40px; }
  .closing { padding: 64px 0; }
}
@media (max-width: 734px) {
  :root { --section: 72px; }
  .hero-title { font-size: 38px; }
  .hero-lead, .report-lead { font-size: 18px; }
  .section-title { font-size: 28px; }
  .closing-title { font-size: 28px; }
  .rrow-title { font-size: 24px; }
  .rrow-body { font-size: 17px; }
  .num { font-size: 40px; }
  .num-word { font-size: 32px; }
  .num-unit { font-size: 20px; }
  .numbers-row { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .num-item + .num-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 36px; }
  .tile { padding: 24px 20px 0; }
  .tile-shot { flex: none; min-height: 0; object-fit: fill; }
  .tile-shot-fade { -webkit-mask-image: none; mask-image: none; }
  .tile-title { font-size: 22px; }
  .file-detail { width: 100%; margin-top: -8%; }
  .closing-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .site-head-row { flex-wrap: wrap; height: auto; padding-top: 14px; padding-bottom: 10px; row-gap: 6px; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 18px; }
  .site-nav a { font-size: 15px; }
  .site-head-row .btn-small { margin-left: auto; }
  .site-logo img { width: 150px; }
  .hero-title { font-size: 32px; }
  .hero-actions .btn { flex: 1 1 140px; }
  .hero-card { width: 86%; margin-top: -40px; }
}

/* ---------- motion: only when motion is welcome and every feature it needs is there ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 50%) {
    /* first screen, once on load: the window stands up from a tilt and stops flat, the card follows */
    .hero-stage { perspective: 1800px; }
    .hero-window { transform-origin: 50% 100%; animation: window-up 1.1s var(--ease) both; }
    .hero-card { animation: card-in .9s var(--ease) .45s both; }
    @keyframes window-up { from { opacity: .4; transform: rotateX(16deg) translateY(48px) scale(.96); } to { opacity: 1; transform: none; } }
    @keyframes card-in { from { opacity: 0; transform: translateY(36px) scale(.96); } to { opacity: 1; transform: none; } }

    /* header: stays at the top and gets its ground and line only after the page has moved */
    .site-head { position: sticky; top: 0; background: transparent; isolation: isolate; }
    .site-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; box-shadow: 0 1px 0 var(--line);
      opacity: 0; animation: head-ground linear both; animation-timeline: scroll(root); animation-range: 0 96px; }
    @keyframes head-ground { to { opacity: 1; } }
    section[id] { scroll-margin-top: 88px; }
    @media (max-width: 520px) { section[id] { scroll-margin-top: 112px; } }

    /* number band: the drawn number counts from 0 to the real value as the band comes in and stays there.
       The real number stays in the text for screen readers; the counting one is aria-hidden. */
    @property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
    .num-value { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .num-anim { display: inline-block; text-align: right; counter-reset: c var(--n); animation-timing-function: var(--ease); animation-fill-mode: both;
      animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .num-anim::before { content: counter(c); }
    .num-34 { min-width: 2ch; animation-name: count-34; }
    .num-456 { min-width: 3ch; animation-name: count-456; }
    @keyframes count-34 { from { --n: 0; } to { --n: 34; } }
    @keyframes count-456 { from { --n: 0; } to { --n: 456; } }

    @keyframes soft-up { from { opacity: .15; transform: translateY(24px); } to { opacity: 1; transform: none; } }
    @keyframes from-right { from { opacity: .3; transform: translateX(64px); } to { opacity: 1; transform: none; } }
    @keyframes from-left { from { opacity: .3; transform: translateX(-64px); } to { opacity: 1; transform: none; } }
    .num-label, .num-basis, .num-word { animation: soft-up var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 35%; }

    /* report band: each row's text rises, its screen comes in from the side away from the text */
    .rrow-text { animation: soft-up var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .rrow-shot { animation: from-right var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .rrow-rev .rrow-shot { animation-name: from-left; }
    .piece-check { animation: soft-up var(--ease) both; animation-timeline: view(); animation-range: entry 20% cover 40%; }
    /* the pages start as one stack and fan out; the readable part rises in front of them last */
    .file-stage { animation: none; }
    .fan { view-timeline: --fan block; }
    .page-1 { animation: fan-left var(--ease) both; animation-timeline: --fan; animation-range: entry 20% cover 50%; }
    .page-3 { animation: fan-right var(--ease) both; animation-timeline: --fan; animation-range: entry 20% cover 50%; }
    .page-2 { animation: soft-up var(--ease) both; animation-timeline: --fan; animation-range: entry 10% cover 40%; }
    .file-detail { animation: soft-up var(--ease) both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    @keyframes fan-left { from { transform: translateX(80%) rotate(0deg); } to { transform: rotate(-8deg); } }
    @keyframes fan-right { from { transform: translateX(-80%) rotate(0deg); } to { transform: rotate(8deg); } }

    /* feature tiles come up one after another */
    .tile { animation: soft-up var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    .tile:nth-child(2) { animation-range: entry 6% cover 30%; }
    .tile:nth-child(4) { animation-range: entry 6% cover 30%; }
    .tile:nth-child(5) { animation-range: entry 12% cover 35%; }

    /* trust: the three columns rise in turn */
    .trust-item { animation: soft-up var(--ease) both; animation-timeline: view(); }
    .trust-item:nth-child(1) { animation-range: entry 10% cover 30%; }
    .trust-item:nth-child(2) { animation-range: entry 16% cover 34%; }
    .trust-item:nth-child(3) { animation-range: entry 22% cover 38%; }
  }
}
