/* ==========================================================================
   Logan — lavender, ink, magenta, three floating objects.
   Name, three links, contact. Nothing invented.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Variable.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-stretch: 100%;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/DMMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: url("assets/fonts/DMMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eceaf4;
  --card: #ffffff;
  --ink: #121116;
  --ink-soft: #322f3c;
  --muted: #6c6879;
  --line: rgba(18, 17, 22, 0.12);
  --line-strong: rgba(18, 17, 22, 0.24);

  --magenta: #ff2f6d;
  --magenta-soft: #ffe3ec;
  --violet: #6a5cff;
  --violet-soft: #ece9ff;
  --black: #111014;

  --wrap: 1150px;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(70% 48% at 82% -8%, rgba(255, 47, 109, 0.1), transparent 62%),
    radial-gradient(60% 45% at 6% 18%, rgba(106, 92, 255, 0.1), transparent 60%);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--magenta);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 32px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 112px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--black);
  color: #fff;
  font-family: var(--mono);
  font-size: 10px;
  border-radius: 8px;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

/* Chrome ------------------------------------------------------------------ */

.grain {
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.sparks {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Main -------------------------------------------------------------------- */

main {
  min-height: 100vh;
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 92px 0 0;
}

.hero__glow {
  position: absolute;
  inset: -240px 0 auto 0;
  z-index: 0;
  height: 900px;
  pointer-events: none;
  background:
    radial-gradient(42% 44% at 78% 32%, rgba(255, 47, 109, 0.16), transparent 70%),
    radial-gradient(38% 40% at 18% 18%, rgba(106, 92, 255, 0.14), transparent 70%);
  filter: blur(30px);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 56px;
}

.hero__copy {
  min-width: 0;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(5.5rem, 15vw, 13.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.09em;
  margin-bottom: -0.09em;
}

.line > span {
  display: block;
  transform: translateY(112%);
  animation: line-up 1.1s var(--ease) forwards;
}

.hero__dot {
  color: var(--magenta);
  font-style: normal;
}

.hero__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 38px;
}

.hero__scroll,
.hero__mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  transition: color 200ms ease, border-color 200ms ease, gap 260ms var(--ease);
}

.hero__scroll {
  border-bottom-color: var(--ink);
  color: var(--ink);
}

.hero__scroll span {
  font-size: 12px;
  color: var(--magenta);
}

.hero__scroll:hover,
.hero__mail:hover {
  gap: 14px;
  color: var(--magenta);
  border-color: var(--magenta);
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
  aspect-ratio: 1 / 1;
}

.hero__orb {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 22%),
    radial-gradient(circle at 62% 62%, #ff8eb2 0%, #ff2f6d 36%, #6a5cff 70%, #2a2140 100%);
  opacity: 0.55;
  filter: blur(34px);
  animation: float 10s ease-in-out infinite;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Labels ------------------------------------------------------------------ */

.label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.label span {
  color: var(--magenta);
  letter-spacing: 0.06em;
}

.label--dark {
  color: rgba(18, 17, 22, 0.56);
}

.label--dark span {
  color: var(--ink);
}

/* Work -------------------------------------------------------------------- */

.work {
  padding: 104px 0 0;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.project {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 26px;
  border: 1px solid transparent;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 420ms var(--ease), border-color 300ms ease, box-shadow 420ms ease;
}

.project > * {
  position: relative;
  z-index: 1;
}

.project::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 0%),
    var(--spot, transparent),
    transparent 64%
  );
  transition: opacity 420ms ease;
}

.project:hover {
  transform: translateY(-5px);
}

.project:hover::before {
  opacity: 1;
}

/* Gang Chat’s own surface: near-black, dot grid, one lime signal. */
.project--chat {
  --spot: rgba(212, 255, 63, 0.08);
  border-color: #24272d;
  border-radius: 26px;
  background-color: #07080a;
  background-image:
    radial-gradient(circle at 84% 0%, rgba(204, 255, 63, 0.12), transparent 55%),
    radial-gradient(circle, rgba(255, 255, 255, 0.085) 1px, transparent 1.4px);
  background-size: auto, 18px 18px;
  color: #f4f4f1;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.3);
}

.project--chat .project__no {
  font-family: "JetBrains Mono", var(--mono);
  letter-spacing: 0.08em;
  color: #77777f;
}

.project--chat .pill {
  border-color: #2c2c31;
  background: #17171a;
  color: #a3a3a8;
  font-family: "JetBrains Mono", var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.project--chat .project__name {
  font-family: "Space Grotesk", var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f4f4f1;
}

.project--chat .project__url {
  border-top-color: #222226;
  font-family: "JetBrains Mono", var(--mono);
  font-size: 8px;
  color: #66666d;
}

.project--chat .project__arrow {
  color: #8d8d95;
}

.project--chat:hover {
  border-color: rgba(212, 255, 63, 0.45);
  box-shadow: 0 32px 76px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(212, 255, 63, 0.08);
}

.project--chat:hover .project__arrow {
  color: var(--lime);
  transform: translate(3px, -3px);
}

.project--chat:hover .project__url {
  color: #a3a3a8;
}

/* Watercooler / gang-bet: cool white surfaces, blue signal, faint lattice. */
.project--market {
  --spot: rgba(28, 85, 251, 0.06);
  border-color: #d2deee;
  border-radius: 16px;
  background-color: #f3f6fb;
  background-image:
    linear-gradient(45deg, rgba(28, 85, 251, 0.065) 1px, transparent 1px),
    linear-gradient(-45deg, rgba(28, 85, 251, 0.065) 1px, transparent 1px),
    radial-gradient(circle at 88% 0%, rgba(28, 85, 251, 0.11), transparent 52%);
  background-size: 26px 26px, 26px 26px, auto;
  color: #1d2129;
  box-shadow: 0 24px 60px rgba(28, 85, 251, 0.1);
}

.project--market .project__no {
  color: #86909c;
}

.project--market .pill {
  border-color: transparent;
  background: #e8efff;
  color: #1c55fb;
}

.project--market .project__name {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.05em;
  color: #1d2129;
}

.project--market .project__url {
  border-top-color: rgba(29, 33, 41, 0.1);
  color: #86909c;
}

.project--market .project__arrow {
  color: #86909c;
}

.project--market:hover {
  border-color: rgba(28, 85, 251, 0.38);
  box-shadow: 0 32px 76px rgba(28, 85, 251, 0.15);
}

.project--market:hover .project__arrow {
  color: #1c55fb;
  transform: translate(3px, -3px);
}

.project--market:hover .project__url {
  color: #4e5969;
}

/* Shared card skeleton */
.project__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project__no {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pill {
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1.3;
}

.project__arrow {
  margin-left: auto;
  font-size: 16px;
  color: var(--muted);
  transition: color 240ms ease, transform 320ms var(--ease);
}

.project__name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-size: clamp(2.2rem, 3.2vw, 2.9rem);
  line-height: 0.98;
}

.project__mark {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
}

.project__url {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid transparent;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  transition: color 240ms ease;
}

.project__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.project__sub {
  margin-top: 14px;
}

.sub-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #e0e8f5;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(28, 85, 251, 0.06);
  color: #1d2129;
  transition: transform 300ms var(--ease), border-color 240ms ease, box-shadow 300ms ease;
}

.sub-entry:hover {
  transform: translateY(-1px);
  border-color: rgba(28, 85, 251, 0.38);
  box-shadow: 0 12px 26px rgba(28, 85, 251, 0.12);
}

.sub-entry__mark {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.sub-entry__title {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sub-entry__tag {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e8efff;
  color: #1c55fb;
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.sub-entry__arrow {
  margin-left: auto;
  color: #1c55fb;
  font-size: 13px;
  transition: transform 300ms var(--ease);
}

.sub-entry:hover .sub-entry__arrow {
  transform: translate(2px, -2px);
}

/* Contact ----------------------------------------------------------------- *//* Contact ----------------------------------------------------------------- */

.contact {
  padding: 108px 0 0;
}

.contact__panel {
  position: relative;
  overflow: hidden;
  padding: 42px 48px 36px;
  border-radius: 30px;
  background: var(--magenta);
  color: var(--ink);
  box-shadow: 0 36px 80px rgba(224, 28, 88, 0.22);
}

.contact__panel > * {
  position: relative;
  z-index: 1;
}

.contact__list {
  margin-top: 26px;
}

.contact__list li {
  border-top: 1px solid rgba(18, 17, 22, 0.2);
}

.contact__list li:last-child {
  border-bottom: 1px solid rgba(18, 17, 22, 0.2);
}

.contact__list a {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  transition: padding-left 300ms var(--ease);
}

.contact__list a:hover {
  padding-left: 8px;
}

.contact__label {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(18, 17, 22, 0.56);
}

.contact__value {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  transition: color 200ms ease;
}

.contact__arrow {
  justify-self: end;
  font-size: 16px;
  color: rgba(18, 17, 22, 0.84);
  transition: color 200ms ease, transform 300ms var(--ease);
}

.contact__list a:hover .contact__value,
.contact__list a:hover .contact__arrow {
  color: #fff;
}

.contact__list a:hover .contact__arrow {
  transform: translate(3px, -3px);
}

.contact__mark {
  position: absolute;
  right: 10px;
  bottom: -58px;
  z-index: 0;
  font-family: var(--display);
  font-size: 250px;
  font-weight: 800;
  line-height: 1;
  color: rgba(18, 17, 22, 0.07);
  pointer-events: none;
  user-select: none;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding: 26px 0 34px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.site-footer__inner a {
  transition: color 200ms ease;
}

.site-footer__inner a:hover {
  color: var(--magenta);
}

.site-footer__inner i {
  font-style: normal;
  color: var(--magenta);
}

/* Motion ------------------------------------------------------------------ */

@keyframes line-up {
  from {
    transform: translateY(112%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -16px, 0) scale(1.03);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.js .hero__links,
.js .hero__visual {
  opacity: 0;
  animation: fade-up 900ms var(--ease) forwards;
}

.js .hero__links {
  animation-delay: 0.35s;
}

.js .hero__visual {
  animation-delay: 0.2s;
}

.reveal {
  transition: opacity 850ms var(--ease), transform 850ms var(--ease);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .projects .project:nth-child(2) {
  transition-delay: 70ms;
}

.js .projects .project:nth-child(3) {
  transition-delay: 140ms;
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1100px) {
  .hero__grid {
    gap: 36px;
  }
}

@media (max-width: 960px) {
  .wrap {
    width: calc(100% - 72px);
  }

  .hero {
    padding-top: 64px;
  }

  .hero__title {
    font-size: clamp(5rem, 14vw, 9rem);
  }

  .hero__visual {
    width: min(100%, 380px);
  }

  .contact__panel {
    padding: 36px 36px 32px;
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero__title {
    font-size: clamp(5.4rem, 16vw, 10rem);
  }

  .hero__links {
    margin-top: 28px;
  }

  .hero__visual {
    justify-self: start;
    width: min(100%, 360px);
    margin-top: 10px;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .project,
  .project:last-child {
    grid-column: auto;
    min-height: 220px;
    padding: 22px;
  }

  .project__name {
    gap: 12px;
    margin-top: 30px;
    font-size: 2.4rem;
  }

  .project__mark {
    width: 34px;
    height: 34px;
  }

}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .hero {
    padding-top: 40px;
  }

  .hero__title {
    font-size: clamp(4.6rem, 22vw, 7rem);
  }

  .hero__links {
    margin-top: 24px;
  }

  .hero__visual {
    width: min(100%, 330px);
  }

  .work {
    padding-top: 72px;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
  }

  .project,
  .project:last-child {
    grid-column: auto;
    min-height: 200px;
    padding: 20px;
    border-radius: 20px;
  }

  .project__name {
    margin-top: 28px;
    font-size: clamp(1.9rem, 8vw, 2.3rem);
  }

  .sub-entry {
    padding: 8px 10px;
    gap: 7px;
  }

  .sub-entry__title {
    font-size: 13px;
  }

  .sub-entry__mark {
    width: 20px;
    height: 20px;
  }

  .sub-entry__tag {
    padding: 2px 6px;
    font-size: 7px;
  }

  .contact {
    padding-top: 72px;
  }

  .contact__panel {
    padding: 24px;
    border-radius: 22px;
  }

  .contact__list a {
    grid-template-columns: 62px minmax(0, 1fr) 18px;
    gap: 10px;
    padding: 14px 0;
  }

  .contact__value {
    font-size: clamp(1.05rem, 5vw, 1.3rem);
  }

  .contact__mark {
    font-size: 160px;
    bottom: -34px;
    right: -6px;
  }

  .site-footer__inner {
    font-size: 8px;
  }
}

@media (max-width: 400px) {
  .contact__list a {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .contact__arrow {
    display: none;
  }

  .contact__value {
    font-size: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .hero__links,
  .js .hero__visual,
  .js .reveal,
  .line > span {
    opacity: 1;
    transform: none;
  }
}
