:root {
  --bg: #090a0c;
  --surface: #101216;
  --surface-2: #15181d;

  --text: #f3f4f6;
  --muted: #8d939d;

  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.17);

  --glow: rgba(255, 255, 255, 0.055);

  --max: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}


/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
}


body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 75% 12%,
      rgba(255, 255, 255, 0.045),
      transparent 28rem
    ),
    var(--bg);

  color: var(--text);

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}


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


/* HEADER */

.site-header {
  width: min(calc(100% - 40px), var(--max));

  height: 84px;

  margin: auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);
}


.brand {
  font-size: 1.1rem;
  font-weight: 800;

  letter-spacing: -0.04em;

  user-select: none;

  transition:
    opacity 0.25s ease,
    transform 0.25s var(--ease);
}


.brand:hover {
  opacity: 0.7;

  transform: translateY(-1px);
}


nav {
  display: flex;

  gap: 28px;
}


nav a {
  position: relative;

  color: var(--muted);

  font-size: 0.86rem;

  transition:
    color 0.25s ease,
    transform 0.25s var(--ease);
}


nav a::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 100%;
  height: 1px;

  background: var(--text);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.3s var(--ease);
}


nav a:hover {
  color: var(--text);

  transform: translateY(-1px);
}


nav a:hover::after {
  transform: scaleX(1);
}


/* PAGE WIDTH */

main,
footer {
  width: min(calc(100% - 40px), var(--max));

  margin: auto;
}


/* HERO */

.hero {
  min-height: 78vh;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border-bottom: 1px solid var(--line);
}


.eyebrow,
.section-label,
.project-type,
.email-label {
  color: var(--muted);

  font-size: 0.7rem;
  font-weight: 700;

  letter-spacing: 0.15em;
}


.hero h1 {
  margin-top: 24px;

  max-width: 1000px;

  font-size: clamp(4rem, 9vw, 8rem);

  line-height: 0.9;

  letter-spacing: -0.075em;

  font-weight: 600;
}


.hero h1 span {
  color: #777d86;
}


.hero-copy {
  max-width: 620px;

  margin-top: 34px;

  color: var(--muted);

  font-size: 1.08rem;
}


.hero-actions {
  display: flex;

  gap: 12px;

  margin-top: 34px;
}


/* BUTTONS */

.button {
  padding: 12px 18px;

  border: 1px solid var(--line);
  border-radius: 10px;

  font-size: 0.88rem;
  font-weight: 650;

  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    border-color 0.25s ease;
}


.button:hover {
  transform: translateY(-2px);
}


.button.primary {
  background: var(--text);
  color: var(--bg);

  border-color: var(--text);
}


.button.ghost:hover {
  background: var(--surface-2);

  border-color: var(--line-strong);
}


/* GENERIC SECTION */

.section {
  padding: 120px 0;

  border-bottom: 1px solid var(--line);
}


.section-label {
  margin-bottom: 52px;
}


.split {
  display: grid;

  grid-template-columns: 0.9fr 1.1fr;

  gap: 100px;
}


h2 {
  font-size: clamp(2.8rem, 5vw, 5.2rem);

  line-height: 0.95;

  letter-spacing: -0.06em;

  font-weight: 550;
}


/* ABOUT */

.copy {
  max-width: 650px;
}


.copy p {
  font-size: 1.05rem;
}


.copy p + p {
  margin-top: 22px;
}


.muted {
  color: var(--muted);
}


/* PROJECT */

.project-card {
  min-height: 330px;

  padding: 38px;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  background:
    linear-gradient(
      145deg,
      var(--surface-2),
      #0d0f12
    );

  border: 1px solid var(--line);

  border-radius: 18px;

  box-shadow:
    inset 0 1px 0 var(--glow),
    0 24px 70px rgba(0, 0, 0, 0.25);

  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}


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

  border-color: var(--line-strong);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 32px 90px rgba(0, 0, 0, 0.32);
}


.project-card h3 {
  margin: 14px 0;

  font-size: clamp(2.5rem, 5vw, 4.8rem);

  letter-spacing: -0.06em;
}


.project-card p:not(.project-type) {
  max-width: 620px;

  color: var(--muted);
}


.project-arrow {
  color: var(--muted);

  font-size: 2rem;

  transition:
    transform 0.3s var(--ease),
    color 0.3s ease;
}


.project-card:hover .project-arrow {
  color: var(--text);

  transform: translate(4px, -4px);
}


.coming-soon {
  margin-top: 18px;

  color: var(--muted);

  font-size: 0.82rem;
}


/* TOOLS INTRO */

.tools-intro {
  align-items: end;
}


.tools-intro > p {
  max-width: 430px;
}


/* TOOL GRID */

.tool-grid {
  margin-top: 60px;

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;
}


.tool-card {
  position: relative;

  aspect-ratio: 1 / 1;

  min-width: 0;

  padding: 18px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #171a1f,
      #0e1013
    );

  border: 1px solid var(--line);

  border-radius: 16px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 12px 35px rgba(0, 0, 0, 0.22);

  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}


.tool-card::before {
  content: "";

  position: absolute;

  width: 120px;
  height: 120px;

  top: -75px;
  right: -75px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.06);

  filter: blur(32px);

  opacity: 0;

  transition: opacity 0.35s ease;
}


.tool-card:hover {
  transform: translateY(-6px);

  border-color: rgba(255, 255, 255, 0.2);

  background:
    linear-gradient(
      145deg,
      #1b1e24,
      #101216
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 20px 45px rgba(0, 0, 0, 0.28);
}


.tool-card:hover::before {
  opacity: 1;
}


/* TOOL LOGO SQUARE */

.tool-icon {
  position: relative;
  z-index: 1;

  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.11);

  border-radius: 13px;

  background:
    linear-gradient(
      145deg,
      #111318,
      #08090b
    );

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 20px rgba(0, 0, 0, 0.25);

  overflow: hidden;

  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease;
}


.tool-card:hover .tool-icon {
  transform: scale(1.06);

  border-color: rgba(255, 255, 255, 0.19);
}


/* SVG ICONS */

.brand-icon {
  width: 27px;
  height: 27px;

  object-fit: contain;

  filter: invert(1);

  opacity: 0.92;

  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease);
}


.tool-card:hover .brand-icon {
  opacity: 1;

  transform: scale(1.04);
}


/* CUSTOM MARKS */

.custom-tool-icon,
.chatgpt-mark,
.macos-mark {
  color: #f1f2f4;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 0.85rem;
  font-weight: 800;

  letter-spacing: -0.04em;
}


.macos-mark {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 0.8rem;

  letter-spacing: -0.03em;
}


/* TOOL LABEL */

.tool-info {
  position: relative;
  z-index: 1;

  display: flex;
  flex-direction: column;

  gap: 2px;
}


.tool-info strong {
  color: #d8dade;

  font-size: 0.8rem;
  font-weight: 650;
}


.tool-info span {
  color: #626872;

  font-size: 0.68rem;
}


/* CONTACT */

.contact h2 {
  margin-bottom: 26px;
}


.contact > p {
  max-width: 580px;

  color: var(--muted);
}


.email-list {
  margin-top: 50px;

  border-top: 1px solid var(--line);
}


.email-card {
  min-height: 100px;

  display: grid;

  grid-template-columns: 180px 1fr auto;

  gap: 24px;

  align-items: center;

  border-bottom: 1px solid var(--line);

  transition:
    padding-left 0.3s var(--ease),
    background 0.3s ease;
}


.email-card:hover {
  padding-left: 12px;

  background: rgba(255, 255, 255, 0.018);
}


.email-card strong {
  font-size: clamp(1rem, 2.2vw, 1.55rem);

  font-weight: 500;

  letter-spacing: -0.025em;
}


.primary-email .email-label {
  color: #d6d8dc;
}


.arrow {
  color: var(--muted);

  transition:
    color 0.3s ease,
    transform 0.3s var(--ease);
}


.email-card:hover .arrow {
  color: var(--text);

  transform: translate(3px, -3px);
}


/* FOOTER */

footer {
  min-height: 110px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  color: #626872;

  font-size: 0.76rem;
}


/* TABLET */

@media (max-width: 900px) {

  .split {
    grid-template-columns: 1fr;

    gap: 38px;
  }


  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }

}


/* MOBILE */

@media (max-width: 620px) {

  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max));
  }


  .site-header {
    height: 70px;
  }


  nav {
    gap: 14px;
  }


  nav a {
    font-size: 0.75rem;
  }


  nav a:nth-child(2) {
    display: none;
  }


  .hero {
    min-height: 82vh;
  }


  .hero h1 {
    font-size: clamp(3.5rem, 18vw, 5.6rem);
  }


  .hero-actions {
    flex-direction: column;

    align-items: flex-start;
  }


  .section {
    padding: 82px 0;
  }


  .section-label {
    margin-bottom: 36px;
  }


  .project-card {
    min-height: 300px;

    padding: 26px;
  }


  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .tool-card {
    padding: 16px;
  }


  .tool-icon {
    width: 50px;
    height: 50px;
  }


  .brand-icon {
    width: 25px;
    height: 25px;
  }


  .email-card {
    grid-template-columns: 1fr auto;

    gap: 7px 15px;

    padding: 22px 0;
  }


  .email-label {
    grid-column: 1 / -1;
  }


  .email-card strong {
    overflow-wrap: anywhere;
  }


  footer {
    flex-direction: column;

    justify-content: center;
    align-items: flex-start;

    gap: 5px;
  }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}