/* =========================================================================
   kalebross.media — v0 landing page
   Single stylesheet. Mobile-first. No framework, no build step.
   Order: fonts > tokens > base > layout > header > buttons > hero >
          platforms > content ledger > projects > footer > motion
   ========================================================================= */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallback so the font swap causes no layout shift.
   Archivo x-height ratio .526 vs Arial .519 -> size-adjust 98.6%. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto"), local("Segoe UI");
  size-adjust: 98.6%;
  ascent-override: 87.8%;
  descent-override: 21%;
  line-gap-override: 0%;
}

/* --------------------------------------------------------------- tokens */
:root {
  /* surfaces: near-black through graphite */
  --ink-950: #08080a;
  --ink-900: #0b0b0f;
  --ink-850: #101116;
  --ink-800: #15161c;

  --line:        rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* off-white type, very slightly warm */
  --fg:     #f3f1ed;
  --fg-mid: #c3c1cb;
  --fg-dim: #908e9a;

  /* One energetic accent — deliberately not a tool-manufacturer colour.
     --accent is tuned so white body text on it clears WCAG AA (5.05:1);
     --accent-hover goes darker, not lighter, to keep that true on hover.
     --accent-soft is the accent for small text ON dark (6.85:1). */
  --accent:       #7350f2;
  --accent-hover: #6742e8;
  --accent-soft:  #9b85ff;
  --accent-glow:  rgba(115, 80, 242, 0.35);

  /* platform tints: used on hover/focus only, never at rest */
  --tint-youtube:   #ff4747;
  --tint-instagram: #f3557f;
  --tint-facebook:  #3b87f7;
  --tint-tiktok:    #25d9e2;

  --step--2: clamp(0.6875rem, 0.67rem + 0.09vw, 0.75rem);
  --step--1: clamp(0.8125rem, 0.79rem + 0.13vw, 0.875rem);
  --step-0:  clamp(1rem, 0.97rem + 0.17vw, 1.0625rem);
  --step-1:  clamp(1.125rem, 1.07rem + 0.3vw, 1.3125rem);
  --step-2:  clamp(1.375rem, 1.24rem + 0.66vw, 1.75rem);
  --step-3:  clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --shell:  74rem;
  --radius: 1rem;

  color-scheme: dark;
}

/* ----------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--fg);
  font-family: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  font-size: var(--step-0);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* safety net; nothing should overflow anyway */
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------- layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.25rem, 9vw, 6rem); }
.section--tight { padding-top: 0; }

/* numbered section label: "01 / FOLLOW" */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.section-label::before {
  content: attr(data-index);
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-size: var(--step-3);
  font-weight: 800;
  font-stretch: 104%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-note {
  margin-top: 0.75rem;
  max-width: 46ch;
  color: var(--fg-dim);
  font-size: var(--step--1);
}

/* The one lag-bolt nod: a fine diagonal thread texture. Used on the hero
   (faded in from the left, matching the social card) and the Youngs card. */
.threads {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -62deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}

/* --------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(8, 8, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;   /* 44px tap target, independent of the 32px mark */
  text-decoration: none;
}
.wordmark__mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: none;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--accent), #4b32c4);
  font-size: 0.8125rem;
  font-weight: 800;
  font-stretch: 106%;
  letter-spacing: -0.03em;
  color: #fff;
}
.wordmark__text {
  font-size: var(--step--1);
  font-weight: 700;
  font-stretch: 104%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;   /* holds the lockup on one line on very narrow phones */
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease,
              border-color 0.15s ease;
}
.btn svg { width: 1.125rem; height: 1.125rem; flex: none; fill: currentColor; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px -10px var(--accent-glow);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--fg);
}
/* still a full 44px tap target — only the padding tightens */
.btn--sm { padding: 0.5rem 0.95rem; }

@media (hover: hover) {
  .btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
}

/* Round icon-only link, 44px. Used for the secondary platforms in the hero. */
.icon-btn {
  --tint: var(--accent-soft);
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  transition: color 0.15s ease, border-color 0.15s ease,
              background-color 0.15s ease, transform 0.15s ease;
}
.icon-btn svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }
.icon-btn--instagram { --tint: var(--tint-instagram); }
.icon-btn--facebook  { --tint: var(--tint-facebook); }
.icon-btn--tiktok    { --tint: var(--tint-tiktok); }
@media (hover: hover) {
  .icon-btn:hover {
    color: var(--tint);
    border-color: color-mix(in srgb, var(--tint) 45%, transparent);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
  }
}
.icon-btn:focus-visible { color: var(--tint); }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 9vw, 5rem) clamp(2.75rem, 8vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}
.hero__glow {
  position: absolute;
  top: -38%;
  left: -22%;
  width: min(42rem, 130%);
  aspect-ratio: 1.4;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
  pointer-events: none;
}
/* thread texture, faded in from the left — same move as the OG card */
.hero > .threads {
  -webkit-mask-image: linear-gradient(to right, transparent 30%, #000 100%);
  mask-image: linear-gradient(to right, transparent 30%, #000 100%);
}
.hero__inner {
  position: relative;
  container-type: inline-size;   /* lets the masthead size itself to the shell */
}

.hero__eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--fg-dim);
}
.hero__eyebrow b { color: var(--fg-mid); font-weight: 700; }

/* The name is the whole identity, so it is set to fill the column.
   Stacked on phones (sized so "KALEB" runs ~92% of the width), one masthead
   line from tablet up (sized so "KALEB ROSS" runs the full shell width).
   Both use the measured em-widths of the words at these font settings. */
.hero__name {
  margin-top: 0.5rem;
  font-size: clamp(3.75rem, 23.7vw, 10rem);
  font-weight: 800;
  font-stretch: 104%;
  line-height: 0.85;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero__name span { display: block; }
.hero__name span + span { color: var(--fg-mid); }

.hero__rule {
  width: 4.5rem;
  height: 5px;
  margin-block: clamp(1.25rem, 4vw, 1.75rem) 1.25rem;
  border-radius: 999px;
  background: var(--accent);
}

.hero__lede {
  max-width: 24ch;
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.hero__sub {
  margin-top: 0.85rem;
  max-width: 42ch;
  color: var(--fg-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
/* phones: full-width primary, then the three secondary platforms */
.hero__actions .btn--primary { flex: 1 1 100%; }
.hero__icons { display: flex; gap: 0.5rem; }

/* Optional real photograph. Not shipped — see README for what to supply.
   Sits behind the type on the right, faded out toward the left so the
   masthead stays legible; the dark bottom fade keeps the CTAs readable. */
.hero__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(72%, 46rem);
  height: 100%;
  object-fit: cover;
  object-position: center top;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 45%),
    linear-gradient(to top, transparent 0%, #000 45%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 45%),
    linear-gradient(to top, transparent 0%, #000 45%);
  mask-composite: intersect;
  pointer-events: none;
}
.hero--photo .hero__glow,
.hero--photo > .threads { display: none; }

@media (min-width: 48rem) {
  .hero__name {
    font-size: min(13vw, 10.3rem);                /* fallback without cqi */
    font-size: calc(100cqi / 6.59 * 0.985);       /* one line, full shell */
    white-space: nowrap;
  }
  .hero__name span { display: inline; }
  .hero__actions .btn--primary { flex: 0 0 auto; }
}

@media (min-width: 62rem) {
  .hero__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem 3rem;
  }
  .hero__actions { margin-top: 0; }
  .hero__rule { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------ platforms */
.platforms { display: grid; gap: 0.75rem; }

@media (min-width: 40rem) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}

.platform {
  --tint: var(--accent);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.75rem;           /* generous phone touch target */
  padding: 1.1rem 1.25rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.platform::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 130%;
  background: radial-gradient(closest-side, var(--tint), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
/* lift real content above the ::after glow — but never the absolutely
   positioned .threads layer, which must stay out of flow */
.platform > *:not(.threads) { position: relative; }

.platform__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.platform__icon svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

.platform__name {
  display: block;
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 104%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.platform__handle {
  display: block;
  margin-top: 0.2rem;
  color: var(--fg-dim);
  font-size: var(--step--1);
  overflow-wrap: anywhere;
}

.platform__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg-dim);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.18s ease, transform 0.18s ease;
}
.platform__action svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) {
  .platform:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--tint) 45%, transparent);
  }
  .platform:hover::after { opacity: 0.1; }
  .platform:hover .platform__icon {
    color: var(--tint);
    border-color: color-mix(in srgb, var(--tint) 35%, transparent);
  }
  .platform:hover .platform__action { color: var(--fg); transform: translateX(2px); }
}
.platform:focus-visible { border-color: var(--accent-soft); }
.platform:focus-visible .platform__icon { color: var(--tint); }

.platform--youtube   { --tint: var(--tint-youtube); }
.platform--instagram { --tint: var(--tint-instagram); }
.platform--facebook  { --tint: var(--tint-facebook); }
.platform--tiktok    { --tint: var(--tint-tiktok); }

/* ------------------------------------------------------- content ledger */
/* Typographic, not boxed: the platforms are actions and get cards; this is
   identity and gets type. Word sizes derive from "EXPERIMENTS" = 7.76em. */
.makes {
  display: grid;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  container-type: inline-size;
}
.make {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: start;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.make__index {
  padding-top: 0.3em;              /* hangs at the big word's cap line */
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.make__title {
  font-size: clamp(1.875rem, 8.5vw, 3.25rem);                    /* fallback */
  font-size: min(3.25rem, calc((100cqi - 2.5rem) / 7.76));
  font-weight: 800;
  font-stretch: 104%;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.make__body {
  grid-column: 2;
  margin-top: 0.4rem;
  color: var(--fg-dim);
  font-size: var(--step-0);
  line-height: 1.4;
}
@media (min-width: 62rem) {
  .makes { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .make { padding-block: 1.75rem; }
  .make__title { font-size: min(3.25rem, calc((50cqi - 4rem) / 7.76)); }
}

/* ------------------------------------------------------------- projects */
.project {
  position: relative;
  display: grid;
  gap: 1.25rem;
  overflow: hidden;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-900);
}
@media (min-width: 46rem) {
  .project {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
  }
}
.project > *:not(.threads) { position: relative; }
.project__kicker {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.project__name {
  margin-top: 0.4rem;
  font-size: var(--step-2);
  font-weight: 700;
  font-stretch: 104%;
  letter-spacing: -0.015em;
}
.project__body {
  margin-top: 0.4rem;
  max-width: 44ch;
  color: var(--fg-dim);
  font-size: var(--step--1);
}

/* --------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
  background: var(--ink-900);
}
.site-footer__top {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 46rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 3rem;
  }
}
.site-footer__name {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 104%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.site-footer__domain {
  margin-top: 0.15rem;
  color: var(--fg-dim);
  font-size: var(--step--1);
}

/* business contact: plain mailto, deliberately not a form */
.contact__label {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  margin-top: 0.25rem;
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.15s ease;
}
.contact__link svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (hover: hover) { .contact__link:hover { text-decoration-color: var(--accent-soft); } }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;        /* keeps footer links tappable on phones */
  min-width: 2.75rem;         /* short labels like "TikTok" still get 44px */
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  color: var(--fg-mid);
  transition: color 0.15s ease;
}
@media (hover: hover) { .footer-links a:hover { color: var(--fg); } }

.site-footer__meta {
  margin-top: 1rem;
  color: var(--fg-dim);
  font-size: var(--step--2);
}

/* --------------------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.5s cubic-bezier(0.22, 0.85, 0.3, 1) both;
    animation-delay: var(--delay, 0s);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.75rem); }
    to   { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
