/* ==========================================================================
   Paraegis — About page
   ========================================================================== */

/* — Fonts — */
@font-face {
  font-family: 'PyeojinGothic';
  src: url("../assets/fonts/PyeojinGothic-Regular.woff") format('woff');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PyeojinGothic';
  src: url("../assets/fonts/PyeojinGothic-Medium.woff") format('woff');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'PyeojinGothic';
  src: url("../assets/fonts/PyeojinGothic-SemiBold.woff") format('woff');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'PyeojinGothic';
  src: url("../assets/fonts/PyeojinGothic-Bold.woff") format('woff');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'PyeojinGothic';
  src: url("../assets/fonts/PyeojinGothic-ExtraBold.woff") format('woff');
  font-weight: 800;
  font-display: swap;
}

/* — Tokens — */
:root {
  --color-ink: #0E2029;
  --color-navy-deep: #0F3350;
  --color-navy: #16456B;
  --color-teal: #2E9AA3;
  --color-teal-light: #7FD4DC;
  --color-gold: #B07A3E;

  --color-text: #4A5D67;
  --color-text-strong: #3E525C;
  --color-text-nav: #465A64;

  --color-bg-tint: #F2F8F9;
  --color-bg-gray: #F7F9FA;
  --color-border: #D3DDE2;
  --color-line: #CFDDE2;

  --color-footer-bg: #0A2739;
  --color-footer-muted: #5E7D91;
  --color-footer-text: #89A3B4;

  --font-base: "PyeojinGothic", system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-pad: clamp(48px, 6vw, 88px);
  --header-offset: 76px;
}

/* — Base — */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--color-ink);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  text-wrap: pretty;
}
h1, h2, h3 { font-family: var(--font-base); font-weight: 700; line-height: 1.12; }
strong, button, a { font-weight: 700; }
p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: var(--color-navy); text-decoration: none; }
a:hover { color: var(--color-teal); }
:focus-visible { outline: 2px solid var(--color-teal); outline-offset: 2px; }
::selection { background: #C9E4E8; color: var(--color-navy-deep); }
input, textarea, button { font-family: inherit; }

@keyframes blink-caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* — Layout — */
.page { max-width: 100%; overflow-x: hidden; }
.section { scroll-margin-top: var(--header-offset); }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) var(--gutter);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}
.min-0 { min-width: 0; }

/* — Shared text — */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-teal);
  margin-bottom: 14px;
}
.eyebrow--navy { color: var(--color-navy); }
.eyebrow--gold { color: var(--color-gold); }

.section-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-navy-deep);
}

/* — Buttons — */
.btn {
  display: inline-block;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: 10px;
  white-space: nowrap;
}
.btn-primary { background: var(--color-navy); color: #fff; }
.btn-primary:hover { background: var(--color-teal); color: #fff; }
.btn-outline {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  padding: 15px 26px;
}
.btn-outline:hover { border-color: var(--color-teal); color: var(--color-teal); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #EAEEF0;
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-header__logo { display: flex; flex: none; }
.site-header__logo img { height: 28px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text-nav);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-navy-deep); }
.site-nav a.site-nav__cta {
  background: var(--color-teal);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
}
.site-nav a.site-nav__cta:hover { background: var(--color-navy); color: #fff; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { background: linear-gradient(180deg, var(--color-bg-tint) 0%, #fff 100%); }
.hero .container {
  max-width: 1120px;
  padding: clamp(48px, 6vw, 96px) var(--gutter) clamp(40px, 5vw, 72px);
  text-align: center;
}
.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 20px;
}
.hero__brand img { width: 20px; height: auto; }
.hero__brand span { font-size: 14px; font-weight: 600; color: var(--color-teal); }
.hero__title {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.042em;
  color: var(--color-navy-deep);
}
.hero__caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 2px;
  background: var(--color-navy-deep);
  transform: translateY(0.08em);
  animation: blink-caret 0.9s step-end infinite;
}
.hero__lead {
  margin: 24px auto 0;
  max-width: 44ch;
  font-size: clamp(16.5px, 1.6vw, 19px);
  line-height: 1.75;
  color: var(--color-text);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

/* ==========================================================================
   Mission · Vision
   ========================================================================== */
.mission { background: var(--color-bg-tint); }
.mission .container { gap: clamp(32px, 5vw, 72px); }
.mission .eyebrow { margin-bottom: 16px; }
.mission__text {
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.58;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: var(--color-navy-deep);
}

/* ==========================================================================
   The name
   ========================================================================== */
.name { background: #fff; }
.name .section-title { margin-bottom: clamp(28px, 3.4vw, 44px); }
.name__pair {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 20px);
  flex-wrap: wrap;
}
.name__ring {
  --ring: min(60vw, 340px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--ring);
  height: var(--ring);
  margin-left: calc(var(--ring) / -2);
  margin-top: calc(var(--ring) / -2);
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--color-navy), var(--color-teal), var(--color-teal-light), transparent, var(--color-navy));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  animation: spin-slow 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.name__card {
  position: relative;
  z-index: 1;
  flex: 1 1 220px;
  min-width: 0;
  background: var(--color-bg-tint);
  border-radius: 16px;
  padding: clamp(22px, 2.6vw, 32px);
}
.name__word {
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-teal);
  line-height: 1;
  text-align: center;
}
.name__desc {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--color-text-strong);
}
.name__desc strong { color: var(--color-navy-deep); }
/* No z-index here on purpose: the ring inside must stack behind the cards. */
.name__plus {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
}
.name__plus-sign {
  position: relative;
  z-index: 1;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: var(--color-navy);
}

/* Mobile: stack the cards, with the ring and "+" between them. */
@media (max-width: 600px) {
  .name__pair { flex-direction: column; gap: 0; }
  .name__card { flex: none; }
  .name__plus { width: auto; height: 120px; }
  .name__ring { --ring: 150px; }
}
.name__statement {
  margin-top: calc(clamp(60px, 8vw, 120px) + 30px);
  text-align: center;
}
.name__statement p {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-navy-deep);
}

/* ==========================================================================
   Product
   ========================================================================== */
.product { background: var(--color-bg-gray); }
.product__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(12px, 1.6vw, 20px);
}
.product .eyebrow { margin-bottom: 16px; }
.product__logo {
  height: clamp(32px, 3.4vw, 42px);
  width: auto;
  margin-bottom: 18px;
}
.product__headline {
  margin-bottom: 12px;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--color-navy-deep);
}
.product__sub {
  margin-bottom: 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-gold);
}
.product__body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-text);
}
.product__screen { width: 100%; height: auto; }
.product .btn { font-size: 16.5px; padding: 17px 32px; }

@media (max-width: 600px) {
  .product .btn { display: block; width: fit-content; margin-inline: auto; }
}

/* ==========================================================================
   Founder
   ========================================================================== */
.founder { background: var(--color-bg-tint); }
.founder .container { padding-block: clamp(40px, 5vw, 80px); }
.founder__profile {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.founder__photo {
  flex: 0 0 auto;
  width: clamp(160px, 18vw, 220px);
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 32px -8px rgba(15, 51, 80, 0.35);
}
/* Crop from near the top so there's headroom above the hair.
   0% = top-aligned (lowest the photo can sit), 50% = centered. */
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 10%; }

@media (max-width: 600px) {
  .founder__photo { margin-inline: auto; }
}
.founder__info { flex: 1 1 320px; min-width: 0; }
.founder__name-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.founder__name {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-navy-deep);
}
.founder__linkedin {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  font-size: 14.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 10px;
  white-space: nowrap;
}
.founder__linkedin:hover { border-color: var(--color-teal); color: var(--color-teal); }
.founder__role {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}
.founder__bio {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--color-text-strong);
}

.founder__history {
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--color-line);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
}
.founder__history .eyebrow { font-size: 12.5px; }
.founder__education { flex: 0 1 220px; min-width: 0; }
.founder__education div:not(.eyebrow) {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--color-navy-deep);
  line-height: 1.9;
}
.founder__experience { flex: 1 1 480px; min-width: 0; }
.founder__experience .eyebrow { margin-bottom: 4px; }

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2 380px;
  column-gap: clamp(20px, 3vw, 40px);
}
.timeline li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #DDE6EA;
  break-inside: avoid;
}
.timeline__year {
  flex: none;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-teal);
}
.timeline__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-text-strong);
}

/* ==========================================================================
   IR
   ========================================================================== */
.ir { background: var(--color-bg-tint); }
.ir .container { gap: clamp(32px, 5vw, 64px); align-items: start; }
.ir__lead {
  max-width: 42ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--color-text);
}
.ir__mail {
  display: inline-block;
  margin-top: 26px;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.02em;
}

.ir-form {
  min-width: 0;
  background: #fff;
  border-radius: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 24px 48px -16px rgba(15, 51, 80, 0.28), 0 4px 12px -4px rgba(15, 51, 80, 0.08);
  animation: float-card 5s ease-in-out infinite;
}
.ir-form label { display: flex; flex-direction: column; gap: 7px; }
.ir-form label span { font-size: 13.5px; font-weight: 600; color: var(--color-text-nav); }
.ir-form input,
.ir-form textarea {
  border: 1px solid #D9E2E6;
  border-radius: 10px;
  background: #F8FAFB;
  padding: 14px;
  font-size: 15.5px;
  color: var(--color-ink);
}
.ir-form input:focus,
.ir-form textarea:focus { border-color: var(--color-navy); background: #fff; outline: none; }
.ir-form textarea { resize: vertical; min-height: 100px; }
.ir-form button {
  background: var(--color-navy);
  color: #fff;
  border: 0;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 26px;
  border-radius: 10px;
  cursor: pointer;
}
.ir-form button:hover { background: var(--color-navy-deep); }
.ir-form button:disabled { opacity: 0.6; cursor: default; }
.ir-form__done,
.ir-form__error {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--color-navy);
  font-weight: 700;
}
.ir-form__error { color: #C0392B; }
.ir-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-footer-bg); color: #fff; }
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(30px, 3.6vw, 48px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  align-items: start;
}
.site-footer__logo {
  height: 40px;
  width: auto;
  background: #fff;
  padding: 9px 12px;
  border-radius: 8px;
}
.site-footer__tagline { margin-top: 16px; font-size: 14.5px; color: var(--color-footer-text); }
.site-footer__col { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-footer-muted);
}
.site-footer__col a { font-size: 15px; font-weight: 600; color: #fff; }
.site-footer__col a:hover { color: var(--color-teal-light); }
.site-footer__copy { font-size: 13px; color: var(--color-footer-muted); }
