/* kantid.me — "REFLET" (Monet night theme), per design_handoff/README.md.
   Tokens live in :root; asset slots are file swaps in assets/ (logo, icons,
   backgrounds), not markup changes. Zero frameworks, one self-hosted font. */

@font-face {
  font-family: "Space Grotesk Variable";
  src: url("fonts/space-grotesk.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #0a1027;
  --ink: #eef1fb;
  --body: #c3cbe4;
  --muted: #a5b0cc;
  --faint: #7d89ab;
  --violet: #c4b5fd;
  --cyan: #67e8f9;
  --grad: linear-gradient(92deg, #c4b5fd, #67e8f9);
  --radius: 14px;
  --pad: clamp(20px, 5vw, 72px);   /* page side padding */
  --gap: 20px;                     /* carousel gap */
  --mono: ui-monospace, Menlo, monospace;
  --sys: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk Variable", var(--sys);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

/* layered background: painting, dark veil, dot grid, cursor glow */
.bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bg-painting {
  background-image: url("assets/monet/water-lilies-1914-26-web.jpg");
  background-size: cover;
  background-position: center 55%;
  opacity: 0.55;
}
.bg-veil {
  background: linear-gradient(180deg,
    rgba(10, 16, 39, 0.82) 0%,
    rgba(10, 16, 39, 0.5) 40%,
    rgba(10, 16, 39, 0.72) 75%,
    rgba(10, 16, 39, 0.92) 100%);
}
.bg-dots {
  background-image: radial-gradient(rgba(165, 180, 252, 0.14) 1px, transparent 1px);
  background-size: 24px 24px;
}
#glow {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(167, 139, 250, 0.25),
    rgba(103, 232, 249, 0.08) 55%,
    transparent 70%);
  pointer-events: none;
  left: -700px;
  top: -700px;
  will-change: transform;
}

header, main, footer { position: relative; }

/* header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--pad);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.brand { color: var(--cyan); text-decoration: none; }
.top nav { display: flex; gap: 28px; align-items: center; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--violet); }

/* hero */
.hero {
  padding: clamp(60px, 10vh, 110px) var(--pad) clamp(48px, 8vh, 80px);
  /* 960px of content: the prototype measured max-width content-box,
     here box-sizing is border-box so the side paddings are added back */
  max-width: calc(960px + 2 * var(--pad));
}
.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.eyebrow span { color: var(--faint); }
h1 {
  margin: 0 0 26px;
  font-size: clamp(46px, 7.2vw, 96px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* balanced two-line break («I build products» / «from zero to live.»);
   on narrow screens the text wraps naturally instead */
.h1-br { display: none; }
@media (min-width: 700px) { .h1-br { display: inline; } }
.sub {
  margin: 0;
  font-size: clamp(17px, 1.8vw, 19px);
  color: var(--body);
  max-width: 560px;
  line-height: 1.55;
}
.offer {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.offer a {
  color: inherit;
}

/* section labels */
h2 {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  margin: 20px 0 22px;
}
.projects > h2 { padding: 0 var(--pad); margin-bottom: 12px; }

/* projects — infinite carousel, full bleed; JS drives the auto-drift,
   the container itself is a normal scroller (wheel, touch, drag) */
.marquee {
  overflow-x: auto;
  width: 100%;
  /* the scroll container clips its content: leave headroom for the
     hover lift (translateY(-5px) + glow) above and the shadow below */
  padding-top: 10px;
  padding-bottom: 10px;
  cursor: grab;
  scrollbar-width: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee.dragging { cursor: grabbing; user-select: none; }
.track {
  display: flex;
  gap: var(--gap);
  width: max-content;
}
.set {
  display: flex;
  gap: var(--gap);
  flex-shrink: 0;
}
.set:first-child { padding-left: var(--pad); }

/* cards — five crops of one painting (Nymphéas W 1698); --crop is set per card */
.card {
  position: relative;
  width: 340px;
  min-height: 232px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.35);
  box-shadow: 0 10px 30px rgba(5, 8, 20, 0.5);
  background-image: url("assets/monet/w1698-web.jpg");
  background-size: 300% auto;
  background-position: var(--crop, 50% 50%);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(7, 11, 28, 0.25) 0%,
    rgba(7, 11, 28, 0.5) 45%,
    rgba(7, 11, 28, 0.88) 100%);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.7);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.35);
}
.card-body {
  position: relative;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: rgba(238, 241, 251, 0.9);
  /* product logos are full-bleed squares — fill the chip, the radius clips them */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 4px 12px rgba(5, 8, 20, 0.5);
}
/* the jetmetrics SVG carries its own rounded mask — keep it inset, not full-bleed */
.chip--inset { background-size: 32px 32px; }
.status {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
  background: rgba(7, 11, 28, 0.55);
  border: 1px solid;
}
.status.live   { color: var(--cyan);   border-color: rgba(103, 232, 249, 0.5); }
.status.sunset { color: var(--violet); border-color: rgba(196, 181, 253, 0.5); }
.status.soon   { color: var(--muted);  border-color: rgba(165, 176, 204, 0.4); }
.card h3 {
  margin: auto 0 0;   /* pins the text block to the card bottom */
  font-size: 21px;
  font-weight: 650;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(5, 8, 20, 0.6);
}
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--cyan); }
/* stretched link: the title's link covers the whole card */
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.card .desc {
  margin: 0;
  color: rgba(224, 230, 246, 0.92);
  font-size: 14.5px;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(5, 8, 20, 0.6);
}
.card .metric {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--cyan);
}

/* contact — label left, big links right */
.contact {
  display: grid;
  grid-template-columns: minmax(160px, 22%) 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px var(--pad);
}
.contact h2 { margin: 48px 0 22px; }
.contact-line {
  margin: 42px 0 18px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink);
  max-width: 480px;
}
.cta {
  display: inline-block;
  padding: 14px 26px;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(103, 232, 249, 0.45);
  border-radius: 10px;
}
.cta:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.3);
}
.handles {
  margin: 20px 0 0;
  font-family: var(--mono);
  font-size: 13px;
}
.handles a {
  color: var(--muted);
  text-decoration: none;
}
.handles a:hover { color: var(--violet); }
@media (max-width: 620px) {
  .contact { grid-template-columns: 1fr; gap: 0; }
  .contact-line { margin-top: 8px; }
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  padding: 48px var(--pad) 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--faint);
  border-top: 1px solid rgba(167, 139, 250, 0.25);
  margin-top: 24px;
}
footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
