/* ---------------------------------------------------------------------------
   Callio — holding company site
   Warm, editorial, line-based. Royal blue accent. Serif display type.
--------------------------------------------------------------------------- */

:root {
  --bg: #f4f1eb;
  --ink: #191713;
  --muted: #6f6a5f;
  --line: #ddd7cb;
  --blue: #2e4bff;
  --blue-dark: #1a30cc;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --max: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: rgba(46, 75, 255, 0.18); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.nav__logo img { height: 24px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 15px;
  color: var(--ink);
}

.nav__links a:not(.btn):hover { color: var(--blue); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary,
a.btn--primary {
  color: #fff;
  background: var(--blue);
}

.btn--primary:hover { background: var(--blue-dark); }

.btn--ghost {
  color: var(--ink);
  border: 1px solid var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn--small { padding: 9px 18px; font-size: 14px; }

/* ------------------------------------------------------------------ type */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--blue { color: var(--blue); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  padding: 130px 0 110px;
  overflow: hidden;
}

.hero__bloom {
  position: absolute;
  top: -180px;
  right: -220px;
  width: 720px;
  height: 720px;
  pointer-events: none;
  background:
    radial-gradient(closest-side at 60% 40%, rgba(46, 75, 255, 0.10), transparent 70%),
    radial-gradient(closest-side at 40% 65%, rgba(255, 166, 87, 0.16), transparent 70%);
  filter: blur(40px);
  will-change: transform;
}

.hero > .wrap { position: relative; }

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.4rem);
  max-width: 32ch;
  margin-top: 28px;
}

.hero h1 em { color: var(--blue); }

/* accent words pick up a soft glow on hover */
.hero h1 em,
.statement h2 em {
  transition: text-shadow 0.4s ease;
}

.hero h1 em:hover,
.statement h2 em:hover {
  text-shadow:
    0 0 22px rgba(46, 75, 255, 0.40),
    0 0 55px rgba(46, 75, 255, 0.20);
}

.hero p {
  margin-top: 26px;
  font-size: 18px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 42px;
}

/* --------------------------------------------------------------- sections */

.section {
  border-top: 1px solid var(--line);
  padding: 90px 0 100px;
}

.section__label { margin-bottom: 56px; }

/* --------------------------------------------------------- column splits */

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.cols > div {
  padding: 0 56px;
  border-left: 1px solid var(--line);
}

.cols > div:first-child { padding-left: 0; border-left: 0; }
.cols > div:last-child { padding-right: 0; }

.cols h3 { font-size: 2.1rem; }

.cols .label { display: block; margin-bottom: 18px; }

.cols p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16.5px;
  max-width: 44ch;
}

/* ------------------------------------------------------------- statement */

.statement { text-align: center; }

.statement h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-top: 24px;
}

.statement h2 em { color: var(--blue); }

.statement > .wrap > p {
  margin: 22px auto 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 17px;
}

.traits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 72px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.trait {
  padding: 36px 32px 8px;
  border-left: 1px solid var(--line);
}

.trait:first-child { border-left: 0; padding-left: 0; }

.trait__square {
  width: 12px;
  height: 12px;
  background: var(--blue);
  margin-bottom: 48px;
}

.trait h3 { font-size: 1.5rem; }

.trait p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 24ch;
}

/* ------------------------------------------------- criteria list (about) */

.criteria {
  border-top: 1px solid var(--line);
  list-style: none;
}

.criteria li {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.criteria h3 { font-size: 1.5rem; }

.criteria p {
  color: var(--muted);
  font-size: 16.5px;
  max-width: 60ch;
}

/* back link (product pages) */
.backlink {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
  transition: color 0.2s ease;
}

.backlink:hover { color: var(--blue); }

/* ------------------------------------------------ product feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.feature {
  padding: 36px 32px 8px;
  border-left: 1px solid var(--line);
}

.feature:first-child { border-left: 0; padding-left: 0; }

.feature__square {
  width: 12px;
  height: 12px;
  background: var(--blue);
  margin-bottom: 40px;
}

.feature h3 { font-size: 1.5rem; }

.feature p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* product page hero: logo beside the name */
.phero__head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
}

.phero__head h1 { margin-top: 0; }

/* ------------------------------------------------------------- portfolio */

.plist { border-top: 1px solid var(--line); }

.prow {
  display: grid;
  grid-template-columns: 176px 56px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}

/* square company logo tile — holds an <img> clipped to a 4px square */
.plogo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--muted);
  flex-shrink: 0;
}

.plogo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plogo--lg {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
}

.prow__name a:hover { color: var(--blue); }
a.plogo:hover { border-color: var(--blue); }
a.prow__arrow:hover { color: var(--blue-dark); }

.prow__name {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.1;
  transition: color 0.15s ease;
}

.prow__desc { color: var(--muted); font-size: 16px; }

.prow__arrow {
  font-size: 20px;
  color: var(--blue);
}

/* ------------------------------------------------ portfolio page entries */

.entries {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.entry {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.entry:nth-child(odd) { padding-right: 48px; }

.entry:nth-child(even) {
  padding-left: 48px;
  border-left: 1px solid var(--line);
}

.entry__head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.entry__head .label { display: block; margin-bottom: 6px; }

.entry__head h2 { font-size: clamp(1.8rem, 2.4vw, 2.3rem); }

.entry__head h2 a { transition: color 0.2s ease; }
.entry__head h2 a:hover { color: var(--blue); }

.entry__body {
  margin-top: 22px;
  padding-left: 92px;
}

.entry__body p { color: var(--muted); font-size: 16.5px; }

.entry__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue);
}

.entry__link:hover { color: var(--blue-dark); }

/* ------------------------------------------------------------------- cta */

.cta {
  border-top: 1px solid var(--line);
  padding: 110px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__bloom {
  position: absolute;
  bottom: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(46, 75, 255, 0.09), transparent 70%),
    radial-gradient(closest-side at 65% 60%, rgba(255, 166, 87, 0.12), transparent 70%);
  filter: blur(40px);
}

.cta > .wrap { position: relative; }

.cta h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-top: 24px;
}

.cta p {
  margin: 20px auto 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 17px;
}

.cta .btn { margin-top: 38px; }

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logo img { height: 20px; width: auto; }

.footer__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.footer__links a:hover { color: var(--ink); }

.footer__note {
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .hero { padding: 90px 0 80px; }
  .section { padding: 70px 0; }

  .cols { grid-template-columns: 1fr; }
  .cols > div {
    padding: 36px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .cols > div:first-child { border-top: 0; padding-top: 0; }
  .cols > div:last-child { padding-bottom: 0; }

  .traits { grid-template-columns: 1fr; }
  .trait { padding: 28px 0 8px; border-left: 0; }
  .trait + .trait { border-top: 1px solid var(--line); }
  .trait__square { margin-bottom: 24px; }

  .prow {
    grid-template-columns: 48px 1fr auto;
    gap: 4px 16px;
    padding: 22px 0;
    align-items: center;
  }
  .prow .plogo { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; }
  .prow .label { grid-column: 2; grid-row: 1; }
  .prow .prow__name { grid-column: 2; grid-row: 2; }
  .prow .prow__arrow { grid-column: 3; grid-row: 1 / span 2; }

  .entries { grid-template-columns: 1fr; }
  .entry { padding: 40px 0; }
  .entry:nth-child(odd) { padding-right: 0; }
  .entry:nth-child(even) { padding-left: 0; border-left: 0; }
  .entry__head { gap: 18px; }
  .entry__body { padding-left: 0; margin-top: 20px; }

  .criteria li { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }

  .features { grid-template-columns: 1fr; }
  .feature { padding: 28px 0 8px; border-left: 0; }
  .feature + .feature { border-top: 1px solid var(--line); }
  .feature__square { margin-bottom: 24px; }
  .phero__head { gap: 16px; }

  .nav__links a:not(.btn) { display: none; }
  .hero__actions { flex-wrap: wrap; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero__bloom { transform: none !important; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
