/* Conic Lab GmbH — minimalist site styles */

:root {
  --bg: #fbfbfa;
  --bg-soft: #f3f3f1;
  --ink: #16171b;
  --ink-soft: #3a3c44;
  --muted: #76787f;
  --line: #e4e3df;
  --accent: #4b46c4;
  --accent-ink: #322ea0;
  --maxw: 1080px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand svg { display: block; color: var(--ink); }
.brand .brand-name { font-size: 1.05rem; }
.brand .brand-suffix { color: var(--muted); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  font-size: 0.93rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta {
  color: var(--accent-ink);
  font-weight: 500;
}
@media (max-width: 620px) {
  .nav-links { gap: 1.15rem; }
  .nav-links .nav-hide { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* faint conic glow in the corner */
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 46rem;
  height: 46rem;
  background: radial-gradient(closest-side, rgba(75, 70, 196, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--muted);
  display: inline-block;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.2vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-ink);
}

.hero-lede {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 2.4rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Founder byline in hero */
.founder-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-top: 1.9rem;
  border-top: 1px solid var(--line);
  max-width: 47rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.founder-byline:hover .founder-name { color: var(--accent-ink); }
.founder-byline:hover .founder-more { gap: 0.5rem; color: var(--ink); }
.founder-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #efeefb, #e3e2f6);
  color: var(--accent-ink);
  border: 1px solid var(--line);
}
.founder-avatar img { position: absolute; width: 125%; height: auto; left: -16.25%; top: -36.28%; display: block; }
.founder-avatar .monogram { font-family: var(--serif); font-size: 1.25rem; letter-spacing: -0.02em; }
.founder-text { font-size: 0.98rem; line-height: 1.5; }
.founder-text .founder-name { color: var(--ink); font-weight: 600; transition: color 0.18s ease; }
.founder-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
  color: var(--muted);
  white-space: nowrap;
  transition: gap 0.18s ease, color 0.18s ease;
}
.founder-more svg { flex: none; }
@media (max-width: 560px) {
  .founder-byline { flex-wrap: wrap; gap: 0.85rem; }
  .founder-more { margin-left: 0; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.72rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); background: #000; }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 90px; }

.block { padding: clamp(3.5rem, 8vw, 6rem) 0; border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 2.6rem;
}
.section-index {
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  letter-spacing: -0.01em;
  margin: 0;
}

.lead {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 30ch;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
}

/* About: two columns */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about-grid p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.about-grid p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.cap {
  background: var(--bg);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 168px;
}
.cap.feature {
  background: linear-gradient(180deg, #f7f6ff, var(--bg) 60%);
}
.cap-tag {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
}
.cap h3 {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.cap p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.cap .cap-mark { margin-bottom: 0.2rem; color: var(--accent); }
@media (max-width: 680px) { .cap-grid { grid-template-columns: 1fr; } }

/* Work / clients */
.work-list { display: flex; flex-direction: column; }
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.7rem 0;
  border-top: 1px solid var(--line);
}
.work:last-child { border-bottom: 1px solid var(--line); }
.work-client { display: flex; flex-direction: column; gap: 0.25rem; }
.work-client .name {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work-client .meta { font-size: 0.82rem; color: var(--muted); }
.work-desc { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.work-domain {
  justify-self: end;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}
@media (max-width: 760px) {
  .work { grid-template-columns: 1fr; gap: 0.5rem; }
  .work-domain { justify-self: start; margin-top: 0.4rem; }
}

.note {
  margin-top: 1.8rem;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
}
.note svg { flex: none; margin-top: 2px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: end; }
.contact .lead { max-width: 22ch; }
.contact-right { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-link {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  transition: border-color 0.2s ease, color 0.2s ease;
  width: fit-content;
}
.contact-link:hover { border-color: var(--accent); color: var(--accent-ink); }
.contact-meta { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
@media (max-width: 680px) { .contact { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Footer ---------- */
.site-footer { padding: 2.6rem 0 3rem; }
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-row .brand .brand-name { font-size: 0.95rem; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { text-decoration: none; color: var(--muted); transition: color 0.18s ease; }
.footer-links a:hover { color: var(--ink); }

/* ---------- About page ---------- */
.about-hero { padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line); }
.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.4rem, 4vw, 2.6rem);
  align-items: center;
}
.avatar {
  position: relative;
  width: clamp(108px, 18vw, 156px);
  height: clamp(108px, 18vw, 156px);
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #efeefb, #e3e2f6);
  color: var(--accent-ink);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -12px rgba(40, 38, 90, 0.28);
  flex: none;
}
/* Zoomed + panned to center the face (photo is a tall full-body shot) */
.avatar img { position: absolute; width: 125%; height: auto; left: -16.25%; top: -36.28%; display: block; }
.avatar .monogram {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: -0.02em;
}
.profile h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5.4vw, 3.2rem);
  letter-spacing: -0.018em;
  margin: 0 0 0.5rem;
}
.profile .role { color: var(--ink-soft); font-size: clamp(1rem, 2.4vw, 1.15rem); margin: 0; }
.profile .role strong { color: var(--accent-ink); font-weight: 600; }
@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; text-align: left; }
}

.bio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: start;
}
.bio p { color: var(--ink-soft); margin: 0 0 1.1rem; font-size: 1.05rem; }
.bio p:last-child { margin-bottom: 0; }
.bio strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .bio-grid { grid-template-columns: 1fr; gap: 2rem; } }

.facts { display: flex; flex-direction: column; }
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact dt { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fact dd { margin: 0; font-size: 0.98rem; color: var(--ink); }
.fact dd .sub { color: var(--muted); font-size: 0.88rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
