@font-face { font-family: Manrope; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --ground: #0B1416;
  --card: #13211F;
  --chip: #1C2A2C;
  --line: #2A3B3D;
  --line-2: #3A4E50;
  --ink: #E6EEEC;
  --ink-2: #B5C6C2;
  --ink-3: #93A8A4;
  --lime: #D4F27A;
  --lime-2: #ECFFB3;
  --stage: #E4ECE3;
  --bezel: #14201F;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); }
a:hover { color: var(--lime-2); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: Manrope, Inter, system-ui, sans-serif; font-weight: 800; margin: 0; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lime); color: var(--ground); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 12px; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 24px 0; }
.brand { font-family: Manrope, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.top nav a, .lang { color: var(--ink); text-decoration: none; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
.lang { background: none; border: 1px solid var(--line); font: inherit; cursor: pointer; }
.top nav a:hover, .lang:hover { color: var(--lime); }
.top nav a.cta { background: var(--lime); color: var(--ground); font-weight: 600; }
.top nav a.cta:hover { background: var(--lime-2); color: var(--ground); }

/* hero */
.hero { display: flex; flex-direction: column; gap: 24px; padding: 72px 0 88px; max-width: 880px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212, 242, 122, 0.12); }
.hero h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: 1; letter-spacing: -0.04em; text-wrap: balance; }
.hero p { margin: 0; max-width: 54ch; font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.btn.primary { background: var(--lime); color: var(--ground); }
.btn.primary:hover { background: var(--lime-2); color: var(--ground); }
.btn.ghost { border: 1px solid var(--line-2); color: var(--ink); font-weight: 500; }
.btn.ghost:hover { border-color: var(--lime); color: var(--lime); }

/* work */
.work { padding: 8px 0 64px; }
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.work-head h2 { font-size: 36px; letter-spacing: -0.02em; }
.pause { background: none; border: 1px solid var(--line); color: var(--ink-3); border-radius: 999px; min-height: 36px; padding: 0 14px; font: inherit; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pause:hover { color: var(--ink); border-color: var(--line-2); }

.rot { position: relative; height: 800px; }
.card { position: absolute; border-radius: 28px; background: var(--card); overflow: hidden;
  transition: left 0.9s var(--ease), top 0.9s var(--ease), width 0.9s var(--ease), height 0.9s var(--ease); }
.card[data-slot="0"] { left: 0; top: 0; width: 100%; height: 500px; z-index: 2; }
.card[data-slot="1"] { left: 0; top: 520px; width: calc((100% - 40px) / 3); height: 280px; }
.card[data-slot="2"] { left: calc((100% - 40px) / 3 + 20px); top: 520px; width: calc((100% - 40px) / 3); height: 280px; }
.card[data-slot="3"] { left: calc(2 * (100% - 40px) / 3 + 40px); top: 520px; width: calc((100% - 40px) / 3); height: 280px; }

.feat, .compact { position: absolute; inset: 0; }
.feat { padding: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 36px; align-items: stretch;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.card[data-slot="0"] .feat { opacity: 1; pointer-events: auto; transition: opacity 0.45s ease 0.6s; }
.compact { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px; text-align: left; width: 100%;
  background: none; border: 1px solid transparent; border-radius: 28px; color: inherit; font: inherit; cursor: pointer;
  opacity: 1; transition: opacity 0.45s ease 0.6s, border-color 0.2s ease; }
.compact:hover { border-color: var(--line-2); }
.card[data-slot="0"] .compact { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }

.kicker { font-size: 14px; color: var(--lime); font-weight: 600; }
.feat-text { display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.feat-text h3 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.feat-text p, .compact p { margin: 0; color: var(--ink-2); }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15px; }
.points li { display: flex; gap: 12px; }
.points li::before { content: "—"; color: var(--lime); font-weight: 600; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.tags span { padding: 5px 12px; border-radius: 999px; background: var(--chip); }
.repo { font-size: 14px; font-weight: 500; }
.compact h3 { font-size: 23px; line-height: 1.2; }
.compact .more { margin-top: auto; font-size: 14px; color: var(--ink-3); }
.compact:hover .more { color: var(--lime); }

/* the light stage that holds screenshots */
.stage { border-radius: 22px; background: var(--stage); display: flex; align-items: center; justify-content: center; padding: 20px; min-width: 0; min-height: 0; }
.phones { display: flex; gap: 14px; justify-content: center; }
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.phone a { display: block; width: 142px; border-radius: 22px; background: var(--bezel); padding: 4px; }
.phone img { width: 100%; height: auto; aspect-ratio: 361 / 802; object-fit: cover; object-position: top; border-radius: 18px; }
.phone figcaption { font-size: 12.5px; color: #2E3B38; font-weight: 600; }

.viewer { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.browser { position: relative; width: 100%; margin: 0; border-radius: 12px; background: var(--bezel); padding: 0 0 4px; }
.browser .chrome { display: flex; gap: 6px; padding: 9px 12px; }
.browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.shots { position: relative; margin: 0 4px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #fff; }
.shots a { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; pointer-events: none; }
.shots a.on { opacity: 1; pointer-events: auto; }
.shots img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.shots a, .phone a { cursor: zoom-in; }
.nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -6px; border-radius: 50%; border: none; background: rgba(11, 20, 22, 0.86);
  color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1; }
.nav:hover { background: var(--ground); color: var(--lime); }
.nav.prev { left: 10px; }
.nav.next { right: 10px; }
.viewer-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 0 4px; }
.caption { font-size: 12.5px; color: #2E3B38; font-weight: 600; }
.dots { display: flex; }
.dots button { width: 28px; height: 28px; border: none; background: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dots button span { width: 8px; height: 8px; border-radius: 999px; background: #9DB0AA; transition: width 0.25s ease, background 0.25s ease; }
.dots button[aria-current="true"] span { width: 22px; background: var(--ground); }

/* about */
.about { border-top: 1px solid var(--line); padding: 48px 0 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.about h2 { font-size: 22px; margin-bottom: 12px; }
.about p { margin: 0; color: var(--ink-2); }
.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* tablets and phones: no moving cards, every project shown in full */
@media (max-width: 880px) {
  .rot { height: auto; display: grid; gap: 16px; }
  .card, .card[data-slot] { position: relative; left: auto; top: auto; width: auto; height: auto; transition: none; }
  .feat, .card[data-slot] .feat { position: relative; opacity: 1; pointer-events: auto; grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 22px; transition: none; }
  .compact { display: none; }
  .pause { display: none; }
  .feat-text h3 { font-size: 28px; }
  .stage { padding: 16px; }
  .phones { overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scroll-snap-type: x mandatory; gap: 12px; }
  .phone { scroll-snap-align: start; }
  .phone a { width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .feat, .compact, .shots a { transition: none !important; }
}
