/* KI TECH — the workbench.
   One pale cutting-mat surface runs the whole page; work is laid on it in device frames.
   Ink is the only text colour that carries weight; yellow is a fill, never type. */

:root {
  --mat: #e3e7e4;
  --mat-lit: #edf0ee;
  --mat-deep: #d3d9d5;
  --ink: #101413;
  --steel: #5a645e;
  --line: rgba(16, 20, 19, .14);
  --line-soft: rgba(16, 20, 19, .07);
  --yellow: #ffc400;
  --yellow-deep: #d9a400;

  --grid: 26px;
  --gut: clamp(20px, 4vw, 56px);
  --edge: max(var(--gut), calc((100% - 1320px) / 2));
  --sec: clamp(72px, min(9vw, 13vh), 150px);

  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --display: "Bricolage Grotesque", var(--sans);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  background: var(--mat);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* the bench under daylight: a soft top-lit backdrop that darkens gently towards the floor,
     a pool of light where the headline sits and a warm one behind KIT; paper grain comes from body::before */
  background-image:
    radial-gradient(1100px 640px at 16% -4%, rgba(255, 255, 255, .62), rgba(255, 255, 255, 0) 62%),
    radial-gradient(760px 540px at 84% 6%, rgba(255, 196, 0, .13), rgba(255, 196, 0, 0) 62%),
    linear-gradient(180deg, var(--mat-lit) 0%, var(--mat) 34%, #dde2de 100%);
}

/* fine paper grain over everything, so the flat colour reads as a material rather than a screen */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .16; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23g)'/></svg>"); }
/* alternate sections sit on a lighter band, a quiet way to mark where one subject ends and the next begins */
.band { background: rgba(255, 255, 255, .30); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -1px 0 rgba(16, 20, 19, .05); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
a, button, summary { -webkit-tap-highlight-color: rgba(16, 20, 19, .12); touch-action: manipulation; }

/* keyboard users land here first */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 90;
  padding: 12px 18px; background: var(--ink); color: var(--mat-lit);
  text-decoration: none; transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, .num {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
  font-variation-settings: "wdth" 100, "opsz" 24;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -.025em; line-height: 1.1; }
p { max-width: 64ch; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.5; color: var(--steel); }
.muted { color: var(--steel); }

.wrap { padding-inline: var(--edge); }
section { padding-block: var(--sec); position: relative; scroll-margin-top: 86px; }

/* section heads: a measured rule that reports where you are, not a decorative eyebrow */
.head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 40px; border-top: 2px solid var(--ink); padding-top: 18px; }
.head h2 { flex: 1 1 auto; }
.head .count { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--steel); letter-spacing: 0; flex: none; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px var(--edge);
  background: color-mix(in srgb, var(--mat) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.04em; white-space: nowrap; }
.brand span { display: block; font-size: 11.5px; color: var(--steel); letter-spacing: .02em; line-height: 1.1; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; font-size: 15.5px; color: var(--steel); padding: 6px 0; position: relative; transition: color .25s; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--ink); transition: right .3s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-size: 15.5px; font-weight: 500;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 13px 20px; border-radius: 2px;
  background: var(--ink); color: var(--mat-lit);
  transition: transform .18s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); background: #1d2523; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 0 rgba(255, 196, 0, .5); }
.btn--yellow:hover { background: #ffd23d; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--mat-lit); }
.btn svg { width: 17px; height: 17px; flex: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.mnav { display: none; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.burger i { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .3s var(--ease); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(36px, 5vh, 68px); padding-bottom: clamp(30px, 5vh, 60px); display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(24px, 4vw, 70px); align-items: center; min-height: min(84vh, 760px); }
.hero h1 { font-size: clamp(2.3rem, 4.9vw, 3.9rem); letter-spacing: -.04em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > i { display: block; font-style: normal; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > i { animation-delay: .09s; }
.hero h1 .line:nth-child(3) > i { animation-delay: .18s; }
@keyframes rise { to { transform: none; } }
.hero .lead { margin-top: 26px; max-width: 46ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 28px 40px; }
.proof div { min-width: 92px; }
.proof b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); letter-spacing: -.04em; line-height: 1; }
.proof span { font-size: 14px; color: var(--steel); line-height: 1.25; display: block; margin-top: 5px; }

/* the robot stands on the bench, with a real contact shadow under it */
.stage { position: relative; width: 100%; display: flex; flex-direction: column; gap: 14px; }
.stage__canvas { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.stage canvas { width: 100% !important; height: 100% !important; }
.stage__tag {
  font-size: 13.5px; color: var(--steel); line-height: 1.4; max-width: 46ch;
  padding-left: 14px; border-left: 2px solid var(--yellow);
}

/* ---------- what we make ---------- */
.make { display: grid; gap: 0; }
.make__row { display: grid; grid-template-columns: minmax(0, 7.5rem) minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(18px, 3vw, 48px); align-items: start; padding: clamp(28px, 3.4vw, 46px) 0; border-top: 1px solid var(--line); }
.make__row:last-child { border-bottom: 1px solid var(--line); }
.make__row h3 { padding-top: 2px; }
.make__row p { font-size: 16.5px; }
.make__list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.make__list li { list-style: none; font-size: 14px; line-height: 1; padding: 8px 12px; background: var(--mat-lit); border: 1px solid var(--line); }
.make__art { align-self: center; justify-self: end; width: 100%; max-width: 310px; }
.make__art svg { width: 100%; height: auto; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 34px); }
.piece { grid-column: span 6; }
.piece--wide { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 52px); align-items: center; }
.piece--phone { grid-column: span 4; }
.piece--half { grid-column: span 8; }

/* a device resting on the mat, tilted a little, with a cast shadow */
.device { position: relative; background: #fff; border: 1px solid rgba(16, 20, 19, .22); box-shadow: 0 22px 34px -22px rgba(16, 20, 19, .45); overflow: hidden; }
.device--screen { border-radius: 4px; }
.device--screen .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--mat-lit); border-bottom: 1px solid var(--line); }
.device--screen .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--mat-deep); }
.device--screen .bar span { margin-left: 8px; font-size: 11.5px; color: var(--steel); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device img { width: 100%; height: auto; }
.device--phone { border-radius: 26px; padding: 9px; background: var(--ink); border-color: var(--ink); max-width: 300px; }
.device--phone img { border-radius: 18px; }
.piece__meta { margin-top: 20px; }
.piece__meta h3 { margin-bottom: 8px; }
.piece__meta p { font-size: 16px; max-width: 54ch; }
.piece__where { font-size: 13.5px; color: var(--steel); margin-bottom: 10px; }
.piece__links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 14px; }
.piece__links a { font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; transition: border-color .25s; }
.piece__links a:hover { border-color: var(--ink); }

/* ---------- process: the one genuine sequence on the page ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(20px, 2.6vw, 40px); }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0;
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--yellow); color: var(--ink); border-radius: 50%;
}
.step::after { content: ""; position: absolute; top: 17px; left: 42px; right: -14px; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 16px; }

/* ---------- about + contact ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.about__card { background: var(--mat-lit); border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.about__card dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; margin-top: 4px; }
.about__card dt { color: var(--steel); font-size: 14.5px; }
.about__card dd { font-size: 15.5px; }
.about__more { margin-top: 20px; }

.contact { background: var(--ink); color: var(--mat-lit); }
.contact .head { border-color: var(--mat-lit); }
.contact .head .count, .contact .muted { color: #9aa49e; }
.contact h2 { max-width: 18ch; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: end; }
.contact__lead { color: #c3cbc6; }
.contact__ways { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.contact a.big { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 2rem); letter-spacing: -.035em; text-decoration: none; border-bottom: 3px solid var(--yellow); }

.foot { padding: 26px var(--edge) 34px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; font-size: 14px; color: var(--steel); }
.foot .brand b { font-size: 16px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot__year { margin-left: auto; }

/* ---------- reveal: one quiet lift, not on every element ---------- */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .stage { max-width: 460px; margin-inline: auto; order: -1; }
  .stage__canvas { aspect-ratio: 1 / .82; }
  .stage__tag { display: none; }
  .piece--wide { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .burger { display: block; }
  .top.open + .mnav { display: grid; }
  .mnav { display: none; position: sticky; top: 63px; z-index: 55; background: var(--mat-lit); border-bottom: 1px solid var(--line); padding: 10px var(--edge) 18px; gap: 2px; }
  .mnav a { padding: 12px 0; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .make__row { grid-template-columns: 1fr; gap: 14px; }
  .make__art { display: none; }
  .piece, .piece--phone, .piece--half { grid-column: span 12; }
  .step::after { display: none; }
  .device--phone { margin-inline: auto; }
}
@media (max-width: 860px) {
  .head { flex-wrap: wrap; gap: 6px 22px; }
  .head h2 { flex: 1 0 100%; }
  .top { gap: 10px; padding-block: 11px; }
  .top .btn { padding: 10px 14px; font-size: 14.5px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 18px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .proof { gap: 20px 26px; }
  .cta .btn, .contact .btn { width: 100%; justify-content: center; }
  .top .btn span { display: none; }
  .top .btn { padding: 10px 12px; }
  .brand span span { display: none; }
}

/* ---------- what we make: real work instead of placeholder drawings ---------- */
.make__art--fan { position: relative; height: 170px; max-width: 330px; }
.fan { position: absolute; left: 0; top: 0; width: 206px; margin: 0; background: #fff; border: 1px solid rgba(16, 20, 19, .22); border-radius: 3px; overflow: hidden; box-shadow: 0 18px 28px -18px rgba(16, 20, 19, .5); transform-origin: 50% 100%; transition: transform .6s var(--ease); }
.fan img { display: block; width: 100%; height: auto; }
.fan:nth-child(1) { transform: translate(0, 30px) rotate(-5deg); }
.fan:nth-child(2) { transform: translate(58px, 12px) rotate(-1deg); }
.fan:nth-child(3) { transform: translate(118px, 0) rotate(4deg); }
.make__row:hover .fan:nth-child(1) { transform: translate(-10px, 26px) rotate(-7deg); }
.make__row:hover .fan:nth-child(3) { transform: translate(128px, -4px) rotate(6deg); }
.make__art--phone { display: flex; align-items: flex-end; gap: 18px; }
.miniphone { margin: 0; width: 118px; padding: 6px; background: var(--ink); border-radius: 18px; box-shadow: 0 18px 28px -18px rgba(16, 20, 19, .6); flex: none; }
.miniphone img { display: block; width: 100%; height: auto; border-radius: 12px; }
.stores { list-style: none; display: grid; gap: 8px; padding-bottom: 14px; }
.stores li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; padding: 8px 12px 8px 9px; background: var(--mat-lit); border: 1px solid var(--line); white-space: nowrap; }
.stores i { width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); position: relative; flex: none; }
.stores i::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.flow { display: grid; gap: 10px; max-width: 300px; font-size: 13.5px; }
.flow__in { background: #fff; border: 1px solid var(--line); padding: 10px 12px; line-height: 1.4; border-radius: 3px 14px 14px 14px; }
.flow__who { display: block; font-size: 11.5px; color: var(--steel); margin-bottom: 3px; }
.flow__node { display: flex; justify-content: center; position: relative; height: 22px; }
.flow__node::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px dashed rgba(16, 20, 19, .35); }
.flow__node span { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.flow__out { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.flow__out li { background: var(--ink); color: var(--mat-lit); font-size: 12.5px; line-height: 1.25; padding: 8px 9px; text-align: center; opacity: .35; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rv.in .flow__out li { opacity: 1; transform: none; }
.rv.in .flow__out li:nth-child(1) { transition-delay: .35s; }
.rv.in .flow__out li:nth-child(2) { transition-delay: .7s; }
.rv.in .flow__out li:nth-child(3) { transition-delay: 1.05s; }
.rv.in .flow__node span { animation: flow-pulse 1.3s var(--ease) .2s 2; }
@keyframes flow-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, .7); } 50% { box-shadow: 0 0 0 10px rgba(255, 196, 0, 0); } }

/* ---------- work thumbnails: sit on the mat, lift when you reach for them ---------- */
.device { box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 2px 4px -2px rgba(16, 20, 19, .25), 0 26px 40px -24px rgba(16, 20, 19, .5); transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.piece:hover .device { transform: translateY(-5px); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 4px 8px -4px rgba(16, 20, 19, .3), 0 40px 56px -28px rgba(16, 20, 19, .55); }
.device--screen img { display: block; border-top: 0; }
.device--phone { box-shadow: 0 28px 44px -26px rgba(16, 20, 19, .7); }
.piece:hover .device--phone { box-shadow: 0 44px 60px -30px rgba(16, 20, 19, .75); }

/* ---------- hero: a soft pool of light under KIT so he sits on the bench rather than on a grid ---------- */
.stage__canvas::after { content: ""; position: absolute; inset: auto 8% 6% 8%; height: 34%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 196, 0, .22), rgba(255, 196, 0, 0) 68%); pointer-events: none; z-index: -1; }
@media (prefers-reduced-motion: reduce) { .rv.in .flow__node span { animation: none; } .flow__out li { transition: none; } .fan, .device { transition: none; } }
.stage.is-docked .stage__canvas::after { display: none; }
