:root {
  --ink: #101418;
  --ink-soft: #565f68;
  --paper: #fafaf8;
  --paper-raised: #ffffff;
  --line: #e4e4e0;
  --accent: #1fb8ae;
  --accent-ink: #0b2a28;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
}
.nav-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: block;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a {
  color: var(--ink-soft);
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper) !important;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle .icon {
  width: 26px;
  height: 26px;
  background-image: url('assets/menu-toggle-sprite.png');
  background-repeat: no-repeat;
  background-size: 208px 26px; /* 8 frames, 26px each */
  background-position: 0 0;    /* frame 1 = hamburger */
}
.mobile-menu {
  display: none;
  max-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: max-height 0.3s ease;
}
.mobile-menu.open { max-height: 320px; }
.mobile-menu-inner {
  padding: 8px 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-inner a {
  padding: 12px 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-menu-inner a:last-child { border-bottom: none; }
.mobile-menu-inner a[aria-current="page"] { color: var(--ink); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
}

/* signature monogram motif */
.monogram-bleed {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.045;
  line-height: 0.75;
  letter-spacing: -0.04em;
  white-space: nowrap;
  user-select: none;
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--line);
}
.hero .monogram-bleed {
  font-size: 420px;
  top: -110px;
  right: -60px;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 14px 0 20px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* generic section */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.section:last-of-type { border-bottom: none; }
.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin-top: 10px;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 12px;
  font-size: 1.02rem;
}

/* services grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--paper-raised);
  padding: 32px 28px;
}
.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.card .tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: rgba(31, 184, 174, 0.12);
  padding: 4px 9px;
  border-radius: 5px;
  margin-bottom: 14px;
}

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

/* portfolio grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.work-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-raised);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.work-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.work-thumb {
  height: 200px;
  background: linear-gradient(135deg, #eafbf9, #f3f7f6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-thumb .eyebrow { color: var(--ink-soft); opacity: 0.5; }
.work-body { padding: 22px 24px; }
.work-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.work-body p { color: var(--ink-soft); font-size: 0.92rem; }
.work-tags { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.work-tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 5px;
}

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

/* offerings page */
.offer-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.offer-card h3 { font-size: 1.1rem; }
.offer-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.offer-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.offer-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 5px;
}
.offer-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  align-self: flex-start;
}

/* about page */
.about-lead {
  font-size: 1.3rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  max-width: 680px;
  line-height: 1.4;
}
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.stack-list span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
}

/* footer */
.footer {
  padding: 40px 0;
}
.footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.footer-links { display: flex; gap: 20px; font-size: 0.85rem; }
.footer-links a { color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
  .wrap { padding: 0 22px; }
}

/* cat sits top-right of the contact section and bleeds off the right edge
   of the page itself — clipped by the page boundary, not a crop box */
.cat-peek {
  position: absolute;
  top: 20px;
  right: -60px;
  width: 320px;
  pointer-events: none;
  z-index: 0;
}
.cat-peek img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(16, 20, 24, 0.18));
}

@media (max-width: 900px) {
  .cat-peek { width: 240px; right: -40px; }
}

@media (max-width: 640px) {
  .cat-peek {
    position: absolute;
    top: auto;
    bottom: -20px;
    right: 0;
    width: 160px;
    height: auto;
    margin: 0;
    border-radius: 0;
    overflow: visible;
  }
  .cat-peek img {
    width: 100%;
    height: auto;
    object-fit: initial;
  }
}


