/* Lex Build — dark, precise, lit from behind. */

:root {
  --bg: #06070b;
  --bg-2: #0b0d14;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #9097a8;
  --dim: #5d6475;
  --cyan: #43e0ff;
  --blue: #5b7cff;
  --coral: #ff7a59;
  --grad: linear-gradient(95deg, var(--cyan) 0%, var(--blue) 48%, var(--coral) 100%);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1180px;
  --r: 18px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: #04121a; }

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

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.grad {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shift 9s ease-in-out infinite alternate;
}
@keyframes shift { to { background-position: 100% 0; } }

/* ---------- header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 11, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--muted);
}
.mark b { color: var(--text); font-weight: 500; }
.mark__glyph {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(67, 224, 255, 0.45);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mark:hover .mark__glyph { transform: rotate(90deg); }

.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 0.92rem; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav .nav__cta {
  color: var(--text);
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav .nav__cta:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(67, 224, 255, 0.25); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
}
.hero__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__aurora {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 90%;
  background:
    radial-gradient(40% 55% at 22% 40%, rgba(67, 224, 255, 0.22), transparent 70%),
    radial-gradient(38% 50% at 62% 30%, rgba(91, 124, 255, 0.24), transparent 70%),
    radial-gradient(30% 45% at 88% 55%, rgba(255, 122, 89, 0.16), transparent 70%);
  filter: blur(30px);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translate3d(-3%, 0, 0) scale(1); }
  to { transform: translate3d(4%, 5%, 0) scale(1.08); }
}
.hero__inner { z-index: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 12px;
  margin-bottom: 28px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(6, 7, 11, 0.55);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text);
}
.chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero__title {
  font-size: clamp(2.7rem, 8.2vw, 6.6rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
}
.hero__me { display: block; color: var(--dim); }

.hero__lede {
  margin-top: clamp(24px, 3.5vw, 40px);
  max-width: 36em;
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: #c3c8d6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.25s, border-color 0.2s, background 0.2s;
}
.btn--solid { background: var(--text); color: #06070b; border-color: var(--text); }
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 10px 40px rgba(67, 224, 255, 0.35), 0 0 0 1px var(--cyan); }
.btn--solid span { transition: transform 0.2s; }
.btn--solid:hover span { transform: translateX(4px); }
.btn--ghost { background: rgba(6, 7, 11, 0.5); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--text); }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin: clamp(40px, 6vw, 72px) 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.hero__tags li::before { content: "+ "; color: var(--cyan); }

.rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.11s + 0.05s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
  animation: slide 44s linear infinite;
}
.ticker__track i { color: var(--cyan); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__sub { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

/* spotlight surface */
.glow {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  transition: border-color 0.3s, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(67, 224, 255, 0.13), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.glow:hover { border-color: var(--line-2); }
.glow:hover::before { opacity: 1; }

/* services */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { padding: clamp(24px, 3.2vw, 38px); }
.tile__icon {
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(67, 224, 255, 0.5));
}
.tile h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 10px; }
.tile p { color: var(--muted); max-width: 44ch; }

.budget {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin-top: 16px;
  padding: 20px clamp(20px, 3vw, 30px);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  color: #c3c8d6;
}
.budget__k { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral); }

/* work */
.work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { display: block; padding: 14px 14px 24px; text-decoration: none; }
.card:hover { transform: translateY(-4px); }
.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: 14px;
}

.frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #0d0f16; }
.frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--dim);
}
.frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.frame__bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.card:hover .frame img { transform: scale(1.03); }

.card__body { padding: 20px 10px 0; }
.card--wide .card__body { padding: 10px clamp(6px, 2vw, 24px) 10px 0; }
.card__tag { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.card h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 8px; }
.card--wide h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.card__body p:not(.card__tag) { color: var(--muted); }
.card__go { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 0.82rem; color: var(--text); }

/* about */
.about { border-block: 1px solid var(--line); background: var(--bg-2); }
.about__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.about h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.about__text { display: grid; gap: 18px; font-size: 1.1rem; color: #c3c8d6; }

/* track record */
.record { margin-top: clamp(48px, 7vw, 88px); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--panel);
  overflow: hidden;
}
.stat { padding: clamp(20px, 3vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat dt {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  width: fit-content;
}
.stat dd { margin: 12px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

.record__list { margin-top: clamp(36px, 5vw, 56px); }
.record__list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(24px, 5vw, 64px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.record__list li {
  position: relative;
  padding: 15px 0 15px 30px;
  border-top: 1px solid var(--line);
  color: #c3c8d6;
}
.record__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.45em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(67, 224, 255, 0.7);
  transform: rotate(45deg);
}
.record__note { margin-top: 28px; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; letter-spacing: -0.02em; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.step { position: relative; padding-top: 26px; border-top: 1px solid var(--line-2); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 1px; background: var(--grad); box-shadow: 0 0 14px var(--cyan); }
.step__n { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: 0.8rem; color: var(--cyan); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }

/* contact */
.contact { position: relative; overflow: hidden; padding: clamp(88px, 13vw, 170px) 0; border-top: 1px solid var(--line); }
.contact__aurora {
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 120%;
  background:
    radial-gradient(40% 50% at 30% 60%, rgba(91, 124, 255, 0.26), transparent 70%),
    radial-gradient(35% 45% at 70% 70%, rgba(67, 224, 255, 0.18), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.contact h2 { font-size: clamp(2.5rem, 7.5vw, 5.6rem); letter-spacing: -0.05em; max-width: 12ch; }
.contact__lede { margin: 22px 0 34px; font-size: 1.18rem; color: var(--muted); }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.contact__mail {
  font-size: clamp(1.6rem, 5.6vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.copy {
  font: 500 0.8rem var(--mono);
  color: var(--text);
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.copy:hover { border-color: var(--cyan); }
.copy.done { color: #3ddc84; border-color: #3ddc84; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 0.76rem; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 22px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s; }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: translateY(-4px); }

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

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .about__inner, .card--wide, .bento, .work, .steps { grid-template-columns: minmax(0, 1fr); }
  .card--wide { padding: 14px 14px 24px; gap: 0; }
  .card--wide .card__body { padding: 20px 10px 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .record__list ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nav a:not(.nav__cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .grad, .ticker__track, .chip__dot, .hero__aurora { animation: none; }
  .rise { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
