@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMonoNL-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

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

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMonoNL-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMonoNL-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ==========================================================================
   Tokens
   Layout, spacing and type scale mirror claude.com/product/cowork: alternating
   full-bleed bands separated by hairline rules, a wide centred container, a
   large display size with tight leading, and a muted lede. Palette stays
   black-and-white.
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Bands alternate tint / plain, each with its own hairline rule. */
  --band-tint: #f2f2f2;
  --band-plain: #ffffff;
  --rule-tint: #e0e0e0;
  --rule-plain: #ebebeb;

  --ink: #111111;
  --ink-2: #5e5e5e;
  --ink-3: #8a8a8a;
  --accent: #111111;
  --on-accent: #ffffff;

  /* Set per band so cards always sit one step above their background. */
  --band: var(--band-tint);
  --rule: var(--rule-tint);
  --card: var(--band-plain);
  --card-strong: #f7f7f7;

  --container: 1280px;
  --gutter: clamp(20px, 4.6vw, 60px);

  /* Cowork's vertical rhythm, measured at a 1280px viewport. */
  --band-top: clamp(64px, 9.6vw, 123px);
  --band-bottom: clamp(56px, 7.2vw, 92px);
  --row-gap: clamp(36px, 4.9vw, 62px);
  --col-gap: clamp(20px, 2.5vw, 32px);

  --radius-lg: clamp(20px, 2.3vw, 30px);
  --radius-md: clamp(16px, 1.8vw, 23px);
  --radius-sm: 12px;
  --pad-card: clamp(22px, 2.5vw, 32px);

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

@media (prefers-color-scheme: dark) {
  :root {
    --band-tint: #0d0d0d;
    --band-plain: #000000;
    --rule-tint: #242424;
    --rule-plain: #191919;

    --ink: #f5f5f5;
    --ink-2: #a8a8a8;
    --ink-3: #757575;
    --accent: #fafafa;
    --on-accent: #000000;

    --card: #151515;
    --card-strong: #0d0d0d;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--band-tint);
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--band-tint);
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

/* ==========================================================================
   Bands — full-bleed sections divided by hairline rules
   ========================================================================== */

.band {
  border-top: var(--hairline) solid var(--rule);
  background: var(--band);
  padding: var(--band-top) 0 var(--band-bottom);
}

.band--tint {
  --band: var(--band-tint);
  --rule: var(--rule-tint);
  --card: var(--band-plain);
}

.band--plain {
  --band: var(--band-plain);
  --rule: var(--rule-plain);
  --card: var(--card-strong);
}

.band--hero {
  border-top: 0;
  padding-top: clamp(56px, 9vw, 116px);
}

.band__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin: 0 auto;
}

/* ==========================================================================
   Image + name
   ========================================================================== */

.identity {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
}

/* A profile picture, not a hero image: capped so it never dominates. */
.avatar {
  width: clamp(109px, calc(11vw + 5px), 153px);
  flex: 0 0 auto;
  aspect-ratio: 1;
  display: block;
  overflow: hidden;
  border: var(--hairline) solid var(--rule-tint);
  border-radius: 50%;
  background: var(--card);
}

/* The source is already square and framed on the face, so it just fills. */
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.identity__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vw, 8px);
}

.identity__copy h1 {
  font-size: clamp(34px, 5.3vw, 68px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.identity__copy p {
  color: var(--ink-2);
  font-size: clamp(13px, 1.35vw, 17px);
}

/* ==========================================================================
   Type scale
   ========================================================================== */

.eyebrow {
  color: var(--ink-2);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 500;
}

.section-title {
  max-width: 21ch;
  font-size: clamp(29px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.12;
}

.lede {
  max-width: 56ch;
  margin-top: clamp(28px, 3.6vw, 48px);
  color: var(--ink-2);
  font-size: clamp(16px, 1.75vw, 22px);
  line-height: 1.5;
}

.section-head {
  display: grid;
  gap: clamp(12px, 1.6vw, 18px);
  margin-bottom: var(--row-gap);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: var(--hairline) solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.button:hover {
  opacity: 0.82;
}

.button:active {
  transform: scale(0.982);
}

.button--primary {
  background: var(--accent);
  color: var(--on-accent);
}

/* ==========================================================================
   App cards
   ========================================================================== */

/* Four projects read best as a 2x2 block rather than an auto-fit orphan row. */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
}

.project-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--pad-card);
  border: var(--hairline) solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--card);
  transition: border-color 0.18s ease;
}

.project-card:hover {
  border-color: var(--ink-3);
}

.app-icon {
  width: clamp(56px, 6.6vw, 80px);
  height: clamp(56px, 6.6vw, 80px);
  border: var(--hairline) solid color-mix(in srgb, var(--rule-tint), transparent 30%);
  border-radius: 24%;
  object-fit: cover;
}

.project-card__copy {
  margin-top: clamp(26px, 3.4vw, 40px);
  display: grid;
  gap: 10px;
}

.project-card h3 {
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12px;
}

.project-card__copy > p:last-child {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: clamp(24px, 3vw, 34px);
}

.store-button {
  min-width: 168px;
  min-height: 54px;
  flex: 1 1 168px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 9px 17px;
  border: var(--hairline) solid transparent;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.store-button:hover {
  opacity: 0.82;
}

.store-button:active {
  transform: scale(0.982);
}

.store-button--primary {
  background: var(--accent);
  color: var(--on-accent);
}

.store-button--secondary {
  border-color: var(--rule-tint);
  background: var(--band-tint);
  color: var(--ink);
}

.store-button__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.store-button__copy > span {
  font-size: 8px;
  font-weight: 500;
}

.store-button__copy strong {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.mask-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* ==========================================================================
   Story — Cowork's two-column heading / body split
   ========================================================================== */

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--col-gap);
  align-items: start;
}

.story .section-head {
  margin-bottom: 0;
}

.story__body {
  display: grid;
  gap: clamp(16px, 1.8vw, 22px);
  color: var(--ink-2);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
}

.story__body p:first-child {
  color: var(--ink);
}

/* ==========================================================================
   Get in touch
   ========================================================================== */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 3vw, 40px);
}

.contact .section-head {
  margin-bottom: 0;
}

/* ==========================================================================
   Social buttons
   ========================================================================== */

.site-footer {
  border-top: var(--hairline) solid var(--rule-tint);
  background: var(--band-tint);
  padding: clamp(44px, 5.6vw, 72px) 0 clamp(28px, 3.2vw, 40px);
}

/* Four across, then an even 2x2 — an auto-fit remainder row reads lopsided. */
.social-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
}

.social-card {
  min-width: 0;
  min-height: 84px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 16px;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: var(--hairline) solid var(--rule-tint);
  border-radius: var(--radius-md);
  background: var(--band-plain);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s var(--ease);
}

.social-card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
}

.social-card:active {
  transform: translateY(0) scale(0.99);
}

.social-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: var(--hairline) solid var(--rule-tint);
  background: var(--band-tint);
}

.social-card__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.social-card__copy small {
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card__copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-card > .mask-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: var(--ink-3);
}

.footer-base {
  margin-top: clamp(32px, 4vw, 48px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: var(--hairline) solid var(--rule-tint);
  color: var(--ink-3);
  font-size: 12px;
}

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal {
  animation: enter 0.55s var(--ease) both;
  animation-delay: var(--delay, 0s);
}

.reveal--1 {
  --delay: 0.04s;
}

.reveal--2 {
  --delay: 0.12s;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 28px);
  }
}

/* Four across needs ~200px per card or the network label ellipsises. */
@media (max-width: 960px) {
  .social-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .identity {
    gap: 16px;
  }

  .store-row {
    flex-direction: column;
  }

  /* The 168px basis above is a WIDTH for the row layout. Once the row becomes a
     column, flex-basis controls height instead and grow stretches it further —
     which is what turned these buttons into giant black slabs. Reset both. */
  .store-button {
    flex: 0 0 auto;
    min-width: 0;
  }

  .store-button,
  .contact .button {
    width: 100%;
    justify-content: center;
  }

  .social-row {
    grid-template-columns: 1fr;
  }

  .social-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .social-card > .mask-icon {
    display: none;
  }
}

/* Keep the picture beside the name at every width; just give the name room. */
@media (max-width: 400px) {
  .avatar {
    width: 93px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .button:active,
  .store-button:active,
  .social-card:hover,
  .social-card:active {
    transform: none;
  }
}
