/* Kafein Bilişim — palette from the logo; Süt and Latte are the only derived tones. */
:root {
  --coffee: #59301b;
  --roast: #3a1f11;
  --ink: #1a1a1a;
  --gray-dark: #6f6e6e;
  --gray: #868485;
  --gray-light: #b5b4b4;
  --gray-lighter: #c6c5c5;
  --white: #ffffff;
  --milk: #faf6f1;
  --milk-deep: #f3ece3;
  --latte: #d8c3ae;

  --bg: var(--milk);
  --text: var(--ink);
  --muted: var(--gray-dark);
  --line: #e6ddd2;

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(58, 31, 17, 0.06), 0 12px 32px -12px rgba(58, 31, 17, 0.18);
  --wrap: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--coffee);
  color: var(--white);
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
}

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

.mono {
  font-family: var(--font-mono);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

:focus-visible {
  outline: 3px solid var(--coffee);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--coffee);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.skip:focus {
  top: 12px;
}

/* --- Buttons ------------------------------------------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: var(--coffee);
  color: var(--white);
  box-shadow: 0 6px 0 -2px var(--roast);
}

.btn-primary:hover {
  background: var(--roast);
}

.btn-ghost {
  border-color: var(--coffee);
  color: var(--coffee);
}

.btn-ghost:hover {
  background: var(--coffee);
  color: var(--white);
}

.btn-light {
  background: var(--milk);
  color: var(--roast);
}

.btn-light:hover {
  background: var(--white);
}

.btn-sm {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 15px;
}

/* --- Header ------------------------------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--milk) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand .brand-box {
  width: 40px;
  height: 56px;
  margin-top: -14px;
}

.wordmark {
  width: 118px;
  height: auto;
}

.wm-main {
  fill: var(--coffee);
}

.wm-sub {
  fill: var(--gray);
}

.brand-light .wm-main {
  fill: var(--white);
}

.brand-light .wm-sub {
  fill: var(--latte);
}

.main-nav {
  margin-inline-start: auto;
}

.nav-list {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-list > li {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
}

.nav-link:hover,
.nav-link[aria-current] {
  background: var(--milk-deep);
  color: var(--coffee);
}

.has-sub .nav-link {
  padding-inline-end: 4px;
}

.sub-toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 44px;
  margin-inline-start: -2px;
  border: 0;
  background: none;
  color: var(--gray-dark);
  cursor: pointer;
}

.sub-toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}

.sub {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 250px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.18s,
    transform 0.18s,
    visibility 0.18s;
}

.sub a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 15px;
}

.sub a:hover {
  background: var(--milk);
  color: var(--coffee);
}

.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.open .sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.has-sub.open .sub-toggle .icon {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 8px;
  font: 600 14px var(--font-mono);
  text-decoration: none;
  color: var(--gray-dark);
}

.lang [aria-current] {
  color: var(--coffee);
}

.lang:hover span:last-child {
  color: var(--coffee);
}

.lang-sep {
  color: var(--gray-light);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--milk-deep);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
  margin: auto;
}

.menu-close {
  display: none;
}

/* --- Coffee box --------------------------------------------------------------------------------------------------- */

.cbox {
  --level: 1;
  overflow: visible;
}

.cbox-left {
  fill: var(--gray-light);
}

.cbox-right {
  fill: var(--gray);
}

.cbox-rim {
  fill: #9e9d9d;
}

.cbox-coffee {
  fill: var(--coffee);
}

.cbox-inside {
  fill: var(--gray-dark);
}

.cbox-inside-wall {
  fill: #5a5959;
}

.cbox-coffee-wrap {
  transform-origin: 100px 80px;
  transform: scale(var(--level));
  transition: transform 1.2s var(--ease);
}

.cbox-ripple {
  fill: none;
  stroke: var(--latte);
  stroke-width: 2;
  opacity: 0;
}

.cbox-handle {
  fill: var(--gray-dark);
}

.cbox-handle-arm {
  fill: var(--gray);
}

.cbox-steam path {
  fill: none;
  stroke: var(--gray-lighter);
  stroke-width: 6;
  stroke-linecap: round;
  animation: steam 3.2s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: bottom;
}

.cbox-steam-b {
  animation-delay: -1.6s !important;
}

@keyframes steam {
  0% {
    opacity: 0;
    transform: translateY(14px) scaleY(0.7);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-22px) scaleY(1.1);
  }
}

.cold .cbox-steam {
  opacity: 0;
  transition: opacity 2s;
}

.cold .cbox {
  --level: 0.72;
}

/* --- Kicker + sections -------------------------------------------------------------------------------------------- */

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--coffee);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kicker span {
  color: var(--gray);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}

.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  max-width: 22ch;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.big {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--muted);
}

.milk-deep {
  background: var(--milk-deep);
}

.roast {
  background: var(--roast);
  color: var(--white);
}

.roast .kicker {
  color: var(--latte);
}

.roast .kicker span {
  color: var(--gray-light);
}

.roast .big,
.roast p {
  color: #eadfd4;
}

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

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 110px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(30deg, var(--line) 1px, transparent 1px), linear-gradient(150deg, var(--line) 1px, transparent 1px);
  background-size: 46px 26.5px;
  mask-image: radial-gradient(ellipse 70% 70% at 75% 40%, #000 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.h1-line {
  display: block;
}

.h1-line.l1 {
  color: var(--coffee);
}

.h1-line.l2 {
  font-weight: 600;
  font-size: 0.62em;
  letter-spacing: -0.02em;
  color: var(--gray-dark);
  margin-top: 0.3em;
}

.h1-line.l2::after {
  content: '';
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-inline-start: 0.12em;
  vertical-align: -0.1em;
  background: var(--coffee);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.lead {
  font-size: clamp(18px, 1.5vw, 20px);
  max-width: 58ch;
}

.sub {
  color: var(--muted);
  max-width: 54ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  min-height: 580px;
}

.hero-box {
  position: relative;
  width: min(72%, 300px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.hero-box .cbox {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 28px rgba(58, 31, 17, 0.18));
}

.hero-box.pour .cbox-ripple {
  animation: ripple 0.9s ease-out;
}

@keyframes ripple {
  0% {
    rx: 0;
    ry: 0;
    opacity: 1;
  }
  100% {
    rx: 60px;
    ry: 30px;
    opacity: 0;
  }
}

.hero-hint {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

.hero-art .hero-hint {
  position: absolute;
  top: 18px;
  inset-inline-start: 0;
}

.hero-art .hero-hint::after {
  content: ' ↘';
}

.nf-art .hero-hint {
  margin-top: 24px;
}

.terminal {
  position: absolute;
  inset-inline-end: 0;
  bottom: -24px;
  width: min(88%, 370px);
  background: var(--ink);
  color: #e9e3dc;
  border-radius: 14px;
  box-shadow: 0 24px 50px -18px rgba(26, 26, 26, 0.6);
  overflow: hidden;
}

.terminal-bar,
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #2a2a2a;
}

.terminal-bar span,
.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-dark);
}

.terminal-bar span:first-child,
.browser-bar span:first-child {
  background: var(--coffee);
}

.terminal-bar p,
.browser-bar p {
  margin: 0 auto;
  padding-inline-end: 36px;
  font-size: 12px;
  color: var(--gray-light);
}

.terminal-body {
  padding: 14px 16px 16px;
  font-size: 13px;
  line-height: 1.8;
  min-height: 190px;
}

.terminal-body li {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
}

.t-prefix::before {
  color: var(--latte);
}

.t-cmd .t-prefix::before {
  content: '$';
}

.t-ok .t-prefix::before {
  content: '✓';
  color: #b9d3a0;
}

.t-run .t-prefix::before {
  content: '◐';
}

.t-done .t-prefix::before {
  content: '→';
}

.t-done .t-text {
  color: var(--latte);
  font-weight: 600;
}

.js .terminal-body li {
  visibility: hidden;
}

.js .terminal-body li.shown {
  visibility: visible;
}

.terminal-body li.typing .t-text::after {
  content: '▋';
  margin-inline-start: 2px;
  animation: caret 0.8s steps(1) infinite;
}

.t-run.spinning .t-prefix::before {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Cards -------------------------------------------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-4px);
}

.service {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.service h3 {
  font-size: 23px;
}

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

.service-art {
  height: 130px;
  margin: -6px -6px 14px;
  border-radius: 12px;
  background: var(--milk);
  display: grid;
  place-items: center;
}

.iso {
  width: 170px;
  height: 128px;
  overflow: visible;
  transition: transform 0.5s var(--ease);
}

.service:hover .iso,
.service.built .iso {
  transform: translateY(-6px);
}

.iso-shadow {
  fill: var(--milk-deep);
}

.iso-top {
  fill: #9e9d9d;
}

.iso-face-l {
  fill: var(--gray-light);
}

.iso-face-r {
  fill: var(--gray);
}

.iso-screen {
  fill: var(--white);
}

.iso-bar {
  fill: var(--gray-lighter);
}

.iso-line {
  fill: var(--gray-lighter);
}

.iso-accent,
.iso-top.accent {
  fill: var(--coffee);
}

.iso-link {
  fill: none;
  stroke: var(--gray-light);
  stroke-width: 3;
  stroke-dasharray: 5 6;
  animation: dash 1.2s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -22;
  }
}

.iso-packet {
  fill: var(--coffee);
  offset-rotate: 0deg;
}

.iso-packet.p1 {
  offset-path: path('M40 70 L80 50 L120 70');
  animation: travel 2.4s linear infinite;
}

.iso-packet.p2 {
  offset-path: path('M80 50 L80 92');
  animation: travel 1.6s linear infinite 0.6s;
}

@keyframes travel {
  from {
    offset-distance: 0%;
  }
  to {
    offset-distance: 100%;
  }
}

.build-log {
  margin: 0 0 16px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #e9e3dc;
  font-size: 12.5px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.45s var(--ease),
    padding 0.45s var(--ease);
}

.build-log li {
  opacity: 0;
  transform: translateX(-6px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}

.build-log li::before {
  content: '✓ ';
  color: #b9d3a0;
}

.service:hover .build-log,
.service:focus-within .build-log,
.service.built .build-log {
  max-height: 120px;
  padding-block: 10px;
}

.service:hover .build-log li,
.service:focus-within .build-log li,
.service.built .build-log li {
  opacity: 1;
  transform: none;
}

.service:hover .build-log li:nth-child(2),
.service.built .build-log li:nth-child(2) {
  transition-delay: 0.25s;
}

.service:hover .build-log li:nth-child(3),
.service.built .build-log li:nth-child(3) {
  transition-delay: 0.5s;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  font-weight: 600;
  color: var(--coffee);
  text-decoration: none;
}

.more .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.more:hover .icon,
.project-link:hover .more .icon {
  transform: translateX(4px);
}

/* --- Automation --------------------------------------------------------------------------------------------------- */

.auto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.roast .section-title {
  color: var(--white);
  max-width: none;
}

.example {
  margin: 28px 0 32px;
  padding: 20px 22px;
  border-inline-start: 3px solid var(--latte);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 12px 12px 0;
}

.example-label {
  font-size: 13px;
  color: var(--latte) !important;
  margin-bottom: 6px;
}

.example p:last-child {
  margin: 0;
}

.flow {
  position: relative;
  margin: 0;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flow ol {
  position: relative;
  display: grid;
  gap: 18px;
}

.flow ol::before {
  content: '';
  position: absolute;
  inset-inline-start: 21px;
  top: 22px;
  bottom: 22px;
  border-inline-start: 2px dashed rgba(216, 195, 174, 0.4);
}

.flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px 10px 0;
  font: 600 17px var(--font-head);
  color: var(--white);
}

.flow-box {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coffee);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.2);
  animation: blip 4s var(--ease) infinite;
  animation-delay: calc(var(--i) * 1s);
}

@keyframes blip {
  0%,
  100% {
    background: var(--coffee);
    transform: none;
  }
  8% {
    background: var(--latte);
    transform: scale(1.12);
  }
  20% {
    background: var(--coffee);
    transform: none;
  }
}

.flow-packet {
  position: absolute;
  inset-inline-start: 46px;
  top: 44px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--latte);
  animation: packet 4s linear infinite;
}

@keyframes packet {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(var(--flow-h, 186px));
  }
}

.flow figcaption {
  margin-top: 18px;
  font-size: 13px;
  color: var(--latte);
}

/* --- Projects ----------------------------------------------------------------------------------------------------- */

.project {
  overflow: hidden;
}

.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.project-visual {
  display: grid;
  place-items: end center;
  height: 250px;
  padding-top: 26px;
  background: var(--milk-deep);
  overflow: hidden;
}

.project-visual.apmatik {
  background: linear-gradient(160deg, #f1e4d6, var(--latte));
}

.project-visual.vites {
  background: linear-gradient(160deg, #ecebeb, var(--gray-lighter));
}

.project-visual.masa {
  background: linear-gradient(160deg, #e7d7c8, #c7ab92);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 26px 18px;
}

.project-body h3 {
  font-size: 26px;
  margin-bottom: 2px;
}

.project-sector {
  font-size: 13px;
  color: var(--coffee);
  margin-bottom: 10px;
}

.project-body p:not(.project-sector) {
  color: var(--muted);
}

.tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 600 12.5px var(--font-mono);
}

.tag-live {
  background: var(--coffee);
  color: var(--white);
}

.tag-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b9d3a0;
  animation: live 1.8s ease-in-out infinite;
}

@keyframes live {
  50% {
    opacity: 0.3;
  }
}

.phone {
  position: relative;
  width: 168px;
  height: 236px;
  padding: 10px 10px 0;
  border-radius: 28px 28px 0 0;
  background: var(--ink);
  transform: translateY(14px);
  transition: transform 0.45s var(--ease);
}

.project-link:hover .phone {
  transform: translateY(0) rotate(-2deg);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 52px;
  height: 14px;
  margin-left: -26px;
  border-radius: 10px;
  background: #000;
  z-index: 1;
}

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 36px 14px 14px;
  border-radius: 20px 20px 0 0;
  background: var(--white);
  overflow: hidden;
}

.ph-label {
  margin: 4px 0 0;
  font: 600 11px/1.3 var(--font-body);
  color: var(--gray-dark);
}

.ph-amount {
  padding: 10px;
  border-radius: 10px;
  background: var(--milk);
}

.ph-btn {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--coffee);
  color: var(--white);
  font: 600 11px var(--font-body);
}

.bar {
  display: block;
  height: 9px;
  border-radius: 6px;
  background: #ebe6e0;
}

.bar.dark {
  background: var(--gray-lighter);
}

.w30 {
  width: 30%;
}

.w50 {
  width: 50%;
}

.w60 {
  width: 60%;
}

.w70 {
  width: 70%;
}

.w80 {
  width: 80%;
}

.w90 {
  width: 90%;
}

.ph-dot {
  position: absolute;
  top: 40px;
  inset-inline-end: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coffee);
}

/* --- Git log process ---------------------------------------------------------------------------------------------- */

.gitlog {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.gitlog::before {
  content: '';
  position: absolute;
  top: 9px;
  inset-inline: 10px;
  height: 2px;
  background: var(--gray-light);
  transform-origin: left;
  transform: scaleX(var(--progress, 1));
}

.commit {
  position: relative;
  padding-top: 38px;
}

.commit-dot {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--milk-deep);
  border: 3px solid var(--coffee);
}

.commit-hash {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--gray);
}

.commit h3 {
  font-size: 22px;
}

.step-no {
  color: var(--coffee);
}

.commit p:last-child {
  color: var(--muted);
}

.js .commit {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s,
    transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 0.18s);
}

.js .gitlog.in .commit {
  opacity: 1;
  transform: none;
}

.js .gitlog::before {
  --progress: 0;
  transition: transform 1.2s var(--ease);
}

.js .gitlog.in::before {
  transform: scaleX(1);
}

/* --- Google reviews (Google's own palette on purpose) ------------------------------------------------------------- */

.browser {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.g-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  font-family: 'Roboto', Arial, sans-serif;
  color: #202124;
}

.g-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border-inline-end: 1px solid #dadce0;
}

.g-logo {
  margin: 0 0 12px;
  font: 500 26px/1 'Roboto', Arial, sans-serif;
  letter-spacing: -0.5px;
}

.g-logo span:nth-child(1),
.g-logo span:nth-child(4) {
  color: #4285f4;
}

.g-logo span:nth-child(2),
.g-logo span:nth-child(6) {
  color: #ea4335;
}

.g-logo span:nth-child(3) {
  color: #fbbc04;
}

.g-logo span:nth-child(5) {
  color: #34a853;
}

.g-score {
  margin: 0;
  font-size: 54px;
  line-height: 1;
}

.g-stars {
  display: inline-flex;
  gap: 1px;
  margin: 6px 0;
}

.g-stars svg {
  width: 18px;
  height: 18px;
}

.g-stars .on {
  fill: #fbbc04;
  stroke: #e37400;
  stroke-width: 0.6;
}

.g-stars .off {
  fill: #dadce0;
}

.g-count {
  margin: 0;
  color: #5f6368;
  font-size: 14px;
}

.g-badge {
  margin: 12px 0 0;
  font-size: 12px;
  color: #70757a;
}

.g-nav {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.g-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #dadce0;
  background: var(--white);
  color: #5f6368;
  cursor: pointer;
}

.g-nav button:hover {
  background: #f1f3f4;
}

.g-nav .icon {
  width: 20px;
  height: 20px;
}

.g-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  padding: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.g-card {
  scroll-snap-align: start;
  padding: 18px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: var(--white);
}

.g-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.g-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  font-weight: 500;
  font-size: 18px;
}

.g-name {
  margin: 0;
  font-weight: 500;
  font-size: 15px;
}

.g-when {
  margin: 0;
  color: #70757a;
  font-size: 13px;
}

.g-mark {
  margin-inline-start: auto;
  font-weight: 700;
  color: #4285f4;
}

.g-text {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #3c4043;
}

/* --- Closing + footer --------------------------------------------------------------------------------------------- */

.closing {
  background: var(--coffee);
  color: var(--white);
  padding-block: clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.closing-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}

.closing h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
}

.closing p {
  color: #f0e6dc;
  font-size: 19px;
  max-width: 48ch;
}

.closing-art .cbox {
  width: 200px;
  height: auto;
  animation: bob 5s ease-in-out infinite;
}

.closing .cbox-left {
  fill: #7a4a31;
}

.closing .cbox-right {
  fill: var(--roast);
}

.closing .cbox-rim {
  fill: #6a3d26;
}

.closing .cbox-coffee {
  fill: var(--ink);
}

.closing .cbox-handle {
  fill: var(--roast);
}

.closing .cbox-handle-arm {
  fill: #4a2816;
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

.site-footer {
  background: var(--roast);
  color: #eadfd4;
  padding-top: 64px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr) 1.25fr;
  gap: 32px;
}

.foot-brand p {
  margin-top: 16px;
  max-width: 28ch;
  color: var(--latte);
}

.site-footer .brand-box .cbox-left {
  fill: #7a4a31;
}

.site-footer .brand-box .cbox-right {
  fill: #5c331f;
}

.site-footer .brand-box .cbox-rim {
  fill: #6a3d26;
}

.site-footer .brand-box .cbox-coffee {
  fill: var(--latte);
}

.foot-col h2 {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 14px;
}

.foot-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #eadfd4;
  text-decoration: none;
  font-size: 15px;
}

.foot-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.foot-contact .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--latte);
}

.foot-contact a {
  overflow-wrap: anywhere;
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 48px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.foot-bottom p {
  margin: 0;
}

.foot-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.foot-bottom a {
  color: var(--latte);
  text-decoration: none;
}

.foot-bottom a:hover {
  color: var(--white);
}

.compiled {
  margin-inline-start: auto !important;
  font-size: 12.5px;
  color: var(--gray-light);
}

.mobile-bar {
  display: none;
}

/* --- Toast + rain ------------------------------------------------------------------------------------------------- */

.toast {
  position: fixed;
  z-index: 80;
  inset-inline-end: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 12px 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5);
  font-size: 15px;
  animation: toast-in 0.35s var(--ease);
}

.toast[hidden] {
  display: none;
}

.toast p {
  margin: 0;
}

.toast-action {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--latte);
  color: var(--roast);
  font: 600 14px var(--font-body);
  cursor: pointer;
}

.toast-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-light);
  cursor: pointer;
}

.toast-close .icon {
  width: 18px;
  height: 18px;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

.rain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
}

.rain svg {
  position: absolute;
  top: -60px;
  width: 30px;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(var(--rot, 180deg));
  }
}

/* --- Project page ------------------------------------------------------------------------------------------------- */

.hero-inner {
  padding-top: 28px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--gray-dark);
}

.crumbs li:not(:last-child)::after {
  content: '/';
  margin-inline-start: 8px;
  color: var(--gray-light);
}

.crumbs a {
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--coffee);
  text-decoration: underline;
}

.inner-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.h1-inner {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.h1-inner span {
  display: block;
  margin-top: 10px;
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--coffee);
}

.mock-stage {
  position: relative;
  margin: 0;
  padding-bottom: 40px;
}

.panel-mock {
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s var(--ease);
}

.mock-stage:hover .panel-mock {
  transform: none;
}

.pm-body {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 330px;
  font-size: 13px;
}

.pm-nav {
  padding: 16px 10px;
  background: var(--roast);
  color: #eadfd4;
}

.pm-nav li {
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 2px;
}

.pm-nav li.on {
  background: var(--coffee);
  color: var(--white);
  font-weight: 600;
}

.pm-main {
  padding: 16px;
  background: var(--milk);
}

.pm-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pm-card {
  padding: 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
}

.pm-card p {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-dark);
}

.pm-table {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
}

.pm-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pm-table-head p {
  margin: 0;
  font-weight: 700;
}

.pm-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coffee);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
}

.pm-table li {
  display: grid;
  grid-template-columns: 1fr 70px 76px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}

.status {
  justify-self: end;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.s0 {
  background: var(--coffee);
  color: var(--white);
}

.s1 {
  background: var(--latte);
  color: var(--roast);
}

.s2 {
  background: #e6e5e5;
  color: var(--gray-dark);
}

.phone-float {
  position: absolute;
  inset-inline-end: -10px;
  bottom: 0;
  height: 300px;
  border-radius: 28px;
  padding-bottom: 10px;
  transform: rotate(4deg);
  box-shadow: 0 30px 50px -20px rgba(26, 26, 26, 0.55);
}

.phone-float .phone-screen {
  border-radius: 20px;
}

.mock-stage:hover .phone-float {
  transform: rotate(0deg) translateY(-8px);
}

.ph-toast {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto 0 0;
  padding: 8px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 600;
  animation: notify 5s var(--ease) infinite;
}

.ph-toast .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@keyframes notify {
  0%,
  12% {
    opacity: 0;
    transform: translateY(10px);
  }
  20%,
  80% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}

.mock-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--gray-dark);
}

.problem-grid,
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.two-col {
  align-items: start;
}

.gather {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
}

.scattered li {
  position: absolute;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 15px;
  white-space: nowrap;
  transition:
    transform 0.9s var(--ease),
    opacity 0.9s;
  transition-delay: calc(var(--i) * 0.12s);
}

.scattered li span {
  color: var(--muted);
}

.scattered li:nth-child(1) {
  top: 6%;
  inset-inline-start: 2%;
  rotate: -5deg;
}

.scattered li:nth-child(2) {
  top: 12%;
  inset-inline-end: 0;
  rotate: 4deg;
}

.scattered li:nth-child(3) {
  bottom: 18%;
  inset-inline-start: 0;
  rotate: 3deg;
}

.scattered li:nth-child(4) {
  bottom: 8%;
  inset-inline-end: 4%;
  rotate: -4deg;
}

.gather-box .cbox {
  width: 150px;
  height: auto;
}

.gathered {
  position: absolute;
  bottom: -4px;
  margin: 0;
  font-weight: 600;
  color: var(--coffee);
  opacity: 0;
  transition: opacity 0.5s 0.9s;
}

.gather.in .scattered li:nth-child(1) {
  transform: translate(120px, 110px) scale(0.3);
  opacity: 0;
}

.gather.in .scattered li:nth-child(2) {
  transform: translate(-110px, 90px) scale(0.3);
  opacity: 0;
}

.gather.in .scattered li:nth-child(3) {
  transform: translate(120px, -60px) scale(0.3);
  opacity: 0;
}

.gather.in .scattered li:nth-child(4) {
  transform: translate(-110px, -50px) scale(0.3);
  opacity: 0;
}

.gather.in .gathered {
  opacity: 1;
}

.gather.in .gather-box .cbox {
  animation: gulp 0.6s var(--ease) 0.8s;
}

@keyframes gulp {
  40% {
    transform: scale(1.12, 0.92);
  }
}

.modules {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.modules li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  font: 600 17px/1.3 var(--font-head);
  transition:
    transform 0.3s var(--ease),
    background-color 0.3s,
    color 0.3s;
}

.modules li:hover {
  transform: translateY(-4px);
  background: var(--coffee);
  color: var(--white);
}

.modules .icon {
  width: 30px;
  height: 30px;
  color: var(--coffee);
  transition: color 0.3s;
}

.modules li:hover .icon {
  color: var(--latte);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.chips li {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-weight: 500;
}

.integrations {
  margin: 20px 0 0;
}

.integrations div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.integrations dt {
  font-size: 13px;
  color: var(--coffee);
  padding-top: 4px;
}

.integrations dd {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.integrations dd span {
  padding: 3px 12px;
  border-radius: 8px;
  background: var(--milk-deep);
  font-size: 15px;
}

.checks {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.checks li {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 18px;
}

.checks .icon {
  width: 26px;
  height: 26px;
  color: var(--latte);
  flex-shrink: 0;
}

.facts {
  display: grid;
  gap: 18px;
}

.facts div {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.facts h3 {
  color: var(--latte);
  font-size: 19px;
}

.facts p {
  margin: 0;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}

.store-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.store-label {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--gray-dark);
}

.store-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.store-head h3 {
  margin: 0;
  font-size: 22px;
}

.store-head p {
  margin: 0;
  color: var(--coffee);
  font-size: 14px;
}

.store-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: var(--milk);
  flex-shrink: 0;
}

.googlePlay .store-icon {
  border-radius: 14px;
}

.store-icon .cbox {
  width: 46px;
  height: auto;
  margin-top: 6px;
}

.store-get {
  margin-inline-start: auto;
  padding: 6px 18px;
  border-radius: 999px;
  background: var(--milk-deep);
  color: var(--coffee);
  font-weight: 700;
}

.googlePlay .store-get {
  border-radius: 8px;
  background: var(--coffee);
  color: var(--white);
}

.store-short {
  margin: 16px 0;
  font-weight: 600;
}

.store-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.store-shots span {
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  background:
    linear-gradient(var(--white) 0 0) 14% 18% / 72% 8% no-repeat,
    linear-gradient(var(--coffee) 0 0) 14% 34% / 34% 6% no-repeat,
    linear-gradient(var(--white) 0 0) 14% 52% / 72% 22% no-repeat,
    linear-gradient(160deg, var(--latte), var(--milk-deep));
}

.store-long {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* --- 404 ---------------------------------------------------------------------------------------------------------- */

.nf {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
}

.nf-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.nf h1 {
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 800;
}

.nf h1 .accent {
  display: block;
  color: var(--coffee);
}

.nf-art {
  display: grid;
  justify-items: center;
}

.nf-box {
  position: relative;
  width: min(100%, 300px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nf-box .cbox {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  --level: 0;
  transform-origin: 80% 95%;
  transform: rotate(-24deg);
  transition: transform 1s var(--ease);
}

.nf-box .cbox-body {
  animation: wobble 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: 80% 100%;
}

.nf-box .cbox-steam {
  opacity: 0;
}

.nf-box .spill {
  position: absolute;
  inset-inline-start: -22%;
  bottom: 0;
  width: 80%;
  height: 40px;
  border-radius: 48% 62% 44% 58% / 60% 50% 50% 40%;
  background: var(--coffee);
  transform-origin: 90% 50%;
  transition:
    transform 0.8s var(--ease),
    opacity 0.8s;
}

.nf-box.fixed .cbox {
  --level: 1;
  transform: none;
}

.nf-box.fixed .cbox-body {
  animation: none;
}

.nf-box.fixed .cbox-steam {
  opacity: 1;
  transition: opacity 1s 0.8s;
}

.nf-box.fixed .spill {
  transform: scale(0.2);
  opacity: 0;
}

@keyframes wobble {
  50% {
    rotate: 3deg;
  }
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.nf-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
}

.nf-links .icon {
  width: 16px;
  height: 16px;
  color: var(--coffee);
}

.nf-links a:hover {
  border-color: var(--coffee);
  color: var(--coffee);
}

/* --- Inner pages -------------------------------------------------------------------------------------------------- */

.hero-inner {
  padding-bottom: clamp(36px, 4vw, 60px);
}

.hero-inner .h1-inner {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  margin-bottom: 20px;
}

.hero-project .h1-inner {
  font-size: clamp(40px, 5.6vw, 68px);
}

.hero-legal .h1-inner,
.hero-post .h1-inner {
  font-size: clamp(32px, 4vw, 50px);
}

.inner-solo {
  position: relative;
  max-width: 860px;
}

.inner-copy .sub {
  margin-top: 4px;
}

.section-tight {
  padding-top: 0;
}

.grid-3.flush {
  margin-top: 0;
}

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

.tag-sample {
  background: var(--milk-deep);
  color: var(--coffee);
  border: 1px dashed var(--latte);
}

.detail-art {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 60%, var(--white), transparent 70%),
    var(--milk-deep);
  border: 1px solid var(--line);
}

.detail-art .iso {
  width: 78%;
  height: auto;
}

.solution-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.solution-kicker .icon {
  width: 22px;
  height: 22px;
}

.hero-inner .gather {
  min-height: 380px;
  border-radius: 28px;
  background: var(--milk-deep);
  border: 1px solid var(--line);
}

.hero-inner .gathered {
  bottom: 22px;
}

.hero-inner .scattered li {
  transition-delay: calc(0.9s + var(--i) * 0.15s);
}

.gather-box {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}

/* Heading + body rows on detail pages */

.doc {
  padding-block: clamp(48px, 6vw, 84px);
}

.doc-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.doc-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  max-width: 18ch;
}

.doc-body .big {
  margin-bottom: 0;
}

.doc-body .btn {
  margin-top: 28px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-list li {
  display: flex;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.feature-list .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--coffee);
}

.feature-list h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.note-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--latte);
  border-inline-start: 5px solid var(--coffee);
}

.note-card .icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--coffee);
}

.note-card p {
  margin: 0;
  font-size: 17px;
}

/* Solution and blog cards */

.solution-card a,
.post-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px;
  text-decoration: none;
}

.solution-card p,
.post-card p {
  color: var(--muted);
}

.solution-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--milk-deep);
  color: var(--coffee);
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.4s var(--ease);
}

.solution-icon .icon {
  width: 28px;
  height: 28px;
}

.solution-card:hover .solution-icon {
  background: var(--coffee);
  color: var(--white);
  transform: rotate(-8deg);
}

.solution-card h3,
.post-card h3 {
  font-size: 21px;
}

.post-tag {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--coffee);
}

.modules-wide {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.modules-wide li {
  font-size: 16px;
}

.facts-row {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* About */

.about-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 20px);
  padding: 30px 0;
}

.about-art .cbox {
  width: min(56%, 260px);
  height: auto;
}

.about-art .mono {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 600;
  color: var(--latte);
  line-height: 1;
}

.principles {
  counter-reset: none;
}

.principles .card {
  padding: 28px;
}

.principle-no {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 600;
  color: var(--latte);
}

.principles h3 {
  font-size: 22px;
}

.principles p:last-child {
  margin: 0;
  color: var(--muted);
}

.diff {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.diff-bar {
  margin: 0;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--gray-light) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.diff ul {
  padding: 10px 0;
  font-size: 15.5px;
}

.diff li {
  display: flex;
  gap: 14px;
  padding: 8px 18px;
}

.diff li span {
  flex-shrink: 0;
  width: 1ch;
}

.diff .del {
  color: var(--gray-light);
  background: rgba(255, 255, 255, 0.03);
}

.diff .add {
  color: var(--white);
  background: rgba(216, 195, 174, 0.16);
  font-weight: 600;
}

.diff .add span {
  color: var(--latte);
}

/* Blog post + legal prose */

.prose {
  max-width: 720px;
  font-size: 18px;
}

.prose h2 {
  margin-top: 1.8em;
  font-size: clamp(22px, 2.4vw, 28px);
}

.prose-list {
  display: grid;
  gap: 14px;
  margin: 0 0 1.4em;
  counter-reset: item;
}

.prose-list li {
  position: relative;
  padding: 18px 20px 18px 62px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--line);
}

.prose-list li::before {
  position: absolute;
  inset-inline-start: 20px;
  top: 17px;
  font: 600 15px var(--font-mono);
  color: var(--coffee);
}

ol.prose-list li {
  counter-increment: item;
}

ol.prose-list li::before {
  content: counter(item, decimal-leading-zero);
}

ul.prose-list li::before {
  content: '→';
}

.prose-list strong {
  font-family: var(--font-head);
}

.legal {
  font-size: 17px;
}

.legal h2 {
  font-size: 21px;
}

.legal-draft {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--milk-deep);
  border: 1px dashed var(--latte);
  color: var(--coffee);
  font-size: 13px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.legal-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  text-decoration: none;
  font-size: 15px;
}

.legal-nav a[aria-current] {
  background: var(--coffee);
  border-color: var(--coffee);
  color: var(--white);
}

/* FAQ */

.faq-list {
  max-width: 860px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow 0.3s;
}

.faq-list details[open] {
  box-shadow: var(--shadow);
}

.faq-list summary {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 22px;
  cursor: pointer;
  list-style: none;
  font: 700 18px/1.3 var(--font-head);
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-no {
  font-size: 13px;
  color: var(--latte);
}

.faq-q {
  flex: 1;
}

.faq-list summary .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--coffee);
  transition: transform 0.3s var(--ease);
}

.faq-list details[open] summary .icon {
  transform: rotate(180deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 22px 60px;
  color: var(--muted);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  font: 700 clamp(17px, 1.8vw, 21px) / 1.2 var(--font-head);
  overflow-wrap: anywhere;
  transition:
    border-color 0.25s,
    transform 0.3s var(--ease);
}

.contact-card:hover {
  border-color: var(--coffee);
  transform: translateX(4px);
}

.contact-card .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--coffee);
}

.contact-card small {
  display: block;
  margin-bottom: 4px;
  font: 500 13px var(--font-body);
  color: var(--muted);
}

.contact-art {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.contact-art .cbox {
  width: 150px;
  height: auto;
}

.brief {
  padding: clamp(22px, 3vw, 36px);
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brief h2 {
  font-size: 26px;
}

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  font-weight: 600;
  font-size: 15px;
}

.field label span {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--gray-lighter);
  background: var(--milk);
  font: inherit;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coffee);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(89, 48, 27, 0.15);
}

.field [aria-invalid='true'] {
  border-color: var(--coffee);
  background: #fbefe7;
}

.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.choice label {
  position: relative;
  font-weight: 500;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.choice span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--gray-lighter);
  background: var(--milk);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.choice input:checked + span {
  background: var(--coffee);
  border-color: var(--coffee);
  color: var(--white);
}

.choice input:focus-visible + span {
  outline: 3px solid var(--coffee);
  outline-offset: 2px;
}

.brief .btn {
  width: 100%;
  justify-content: center;
}

.form-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

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

@media (max-width: 1080px) {
  .foot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .foot-brand {
    grid-column: 1 / -1;
  }

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

@media (max-width: 960px) {
  :root {
    --header-h: 66px;
  }

  .menu-toggle {
    display: grid;
  }

  .header-actions .btn {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    margin: 0;
    padding: 16px 20px 120px;
    background: var(--milk);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.2s,
      transform 0.2s,
      visibility 0.2s;
  }

  .nav-open .main-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-open .menu-open {
    display: none;
  }

  .nav-open .menu-close {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list > li {
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
  }

  .nav-link {
    flex: 1;
    min-height: 56px;
    font-size: 19px;
    font-family: var(--font-head);
    font-weight: 700;
  }

  .sub-toggle {
    width: 56px;
    height: 56px;
  }

  .sub {
    position: static;
    flex-basis: 100%;
    display: none;
    padding: 0 0 12px 12px;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-sub.open .sub {
    display: block;
  }

  .has-sub:hover .sub {
    display: none;
  }

  .has-sub.open:hover .sub {
    display: block;
  }

  .hero-grid,
  .auto-grid,
  .inner-grid,
  .problem-grid,
  .two-col,
  .nf-grid,
  .grid-3,
  .gitlog,
  .stores {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    justify-items: center;
    min-height: 0;
    padding-bottom: 230px;
  }

  .hero-hint {
    padding-inline-start: 0;
  }

  .gitlog::before {
    top: 10px;
    bottom: 10px;
    inset-inline: 9px auto;
    width: 2px;
    height: auto;
    transform-origin: top;
    transform: scaleY(var(--progress, 1));
  }

  .js .gitlog.in::before {
    transform: scaleY(1);
  }

  .commit {
    padding: 0 0 0 40px;
  }

  .g-panel {
    grid-template-columns: 1fr;
  }

  .g-summary {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    border-inline-end: 0;
    border-bottom: 1px solid #dadce0;
  }

  .g-logo {
    flex-basis: 100%;
    margin: 0;
  }

  .g-score {
    font-size: 40px;
  }

  .g-badge {
    flex-basis: 100%;
    margin: 0;
  }

  .g-nav {
    display: none;
  }

  .g-list {
    grid-auto-columns: 84%;
    padding: 16px;
  }

  .closing-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .closing-art .cbox {
    width: 130px;
  }

  .doc-row,
  .contact-grid,
  .grid-3.two {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-art {
    max-width: 420px;
  }

  .about-art {
    padding: 0;
  }

  .about-art .cbox {
    width: 180px;
  }

  .nf-art {
    order: -1;
  }

  .nf-box {
    width: 200px;
  }

  .nf {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
    padding-bottom: 76px;
  }

  .wordmark {
    width: 100px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .hero-art {
    padding-bottom: 210px;
  }

  .hero-box {
    width: 220px;
  }

  .terminal {
    inset-inline: 0;
    width: 100%;
  }

  .terminal-body {
    font-size: 12px;
    min-height: 170px;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-col:last-child {
    grid-column: 1 / -1;
  }

  .compiled {
    margin-inline-start: 0 !important;
  }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 30px -18px rgba(58, 31, 17, 0.4);
  }

  .mb-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-weight: 700;
    text-decoration: none;
    color: var(--coffee);
  }

  .mb-call .icon {
    width: 20px;
    height: 20px;
  }

  .toast {
    bottom: 88px;
    inset-inline: 16px;
    max-width: none;
  }

  .pm-body {
    grid-template-columns: 1fr;
  }

  .pm-nav {
    display: none;
  }

  .phone-float {
    height: 250px;
    width: 140px;
    inset-inline-end: -6px;
    bottom: -10px;
  }

  .panel-mock {
    margin-inline-end: 70px;
    transform: none;
  }

  .pm-table li {
    grid-template-columns: 1fr 36px auto;
    gap: 6px;
  }

  .pm-table li .w30 {
    width: 100%;
  }

  .mock-stage .mock-note {
    max-width: 55%;
  }

  .modules {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .modules li {
    padding: 16px;
    font-size: 15px;
  }

  .integrations div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gather {
    min-height: 300px;
  }

  .scattered li {
    font-size: 14px;
    padding: 8px 12px;
  }

  .feature-list,
  .modules-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .prose {
    font-size: 17px;
  }

  .prose-list li {
    padding: 16px 16px 16px 52px;
  }

  .prose-list li::before {
    inset-inline-start: 16px;
  }

  .faq-list summary {
    padding: 14px 16px;
    font-size: 16.5px;
  }

  .faq-list details p {
    padding: 0 16px 18px;
  }

  .hero-inner .gather {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .js .terminal-body li,
  .js .commit {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .cbox-steam path {
    opacity: 0.8;
  }

  .iso-packet,
  .flow-packet {
    display: none;
  }
}
