/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
  --c-bg:     #F5F5F7;
  --c-white:  #FFFFFF;
  --c-dark:   #110231;
  --c-muted:  #6E6E73;
  --c-green:  #90CF6D;
  --c-border: #E1E1E1;
  --c-red:    #DE2208;

  --f-system: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --f-inter:  'Inter', sans-serif;
  --f-moto:   'Montserrat', sans-serif;

  --r-card: 16px;
  --r-pill: 60px;
}

/* ================================================
   RESET & BASE
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--c-bg);
  color: var(--c-dark);
  font-family: var(--f-system);
  letter-spacing: -0.03em;
  word-spacing: -0.04em;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ================================================
   LAYOUT
   ================================================ */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================
   UTILITIES
   ================================================ */
.c-dark  { color: var(--c-dark); }
.c-muted { color: var(--c-muted); }

/* ================================================
   NAV + HERO
   ================================================ */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,245,247,0.88);
  backdrop-filter: blur(12px);
  padding: 48px 0;
}

.topnav .container { display: flex; align-items: center; }

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: normal;
  word-spacing: normal;
}

.topnav__avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.hero {
  padding-top: 80px;
  padding-bottom: 40px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- Headline --- */
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero__headline {
  font-family: var(--f-inter);
  font-size: 45px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.03em;
  max-width: 1080px;
  margin-bottom: 8px;
}

/* --- CTA row --- */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.btn-outline {
  padding: 12px 18px;
  border: 1px solid var(--c-muted);
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 500;
  color: var(--c-dark);
  transition: background 0.15s, color 0.15s;
}

.btn-outline:hover {
  background: var(--c-dark);
  color: var(--c-white);
  border-color: var(--c-dark);
}

.open-to-work {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 10px;
}

.open-to-work__dot {
  width: 12px;
  height: 12px;
  background: #7AC352;;
  border-radius: 50%;
  flex-shrink: 0;
}

.open-to-work__label {
  color: #7AC352;
  font-size: 16px;
  font-weight: 500;
}

/* ================================================
   CASE STUDIES
   ================================================ */
.case-studies {
  padding-top: 72px;
  padding-bottom: 84px;
}

.section-label {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--c-dark);
  margin-bottom: 18px;
}

.case-grid {
  display: flex;
  gap: 18px;
}

.case-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 36px 0 0 64px;
  border-radius: var(--r-card);
  overflow: hidden;
  background-size: cover;
  background-position: top center;
  gap: 24px;
  cursor: pointer;
  transition: transform 0.2s;
}

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

.case-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 64px;
}

.case-card__title {
  font-size: 28px;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 8px;
}

.case-card__desc {
  font-family: var(--f-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--c-white);
}

.case-card__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 8px 16px;
  border: 1px solid var(--c-white);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-white);
}

/* Ensure case-card tags stay white even if 2/style.css overrides .tag */
.case-card .tag {
  padding: 8px 16px !important;
  border: 1px solid var(--c-white) !important;
  border-radius: var(--r-pill) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--c-white) !important;
  background: transparent !important;
}

.case-card__screenshot {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 439 / 356;
  height: auto;
  margin-top: auto;
  border-top-left-radius: 8px;
  flex-shrink: 0;
  align-self: flex-start;
  object-fit: cover;
  object-position: left top;
}

/* ================================================
   DIVIDER
   ================================================ */
.divider {
  border: none;
  border-top: 1px solid var(--c-border);
  max-width: 1120px;
  margin: 0 auto;
}

/* ================================================
   CONTACT
   ================================================ */
.contact {
  padding-top: 112px;
  padding-bottom: 112px;
}

.contact__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
}

.contact__title {
  flex: 0 0 360px;
  color: #110231;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact__right {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact__tagline {
  color: #6E6E73;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.375;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 460px;
}

.contact__divider {
  height: 1px;
  background: #E1E1E1;
}

.contact__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.contact__row:hover .contact__email {
  color: #6E6E73;
}

.contact__email {
  color: #110231;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.375;
}

.contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.contact__icon img {
  transition: transform 0.2s ease, opacity 0.15s ease;
}

.contact__row:hover .contact__icon img {
  opacity: 0.5;
  transform: rotate(45deg);
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  padding-top: 84px;
  padding-bottom: 92px;
}

.about__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
}

/* --- Left column --- */
.about__left {
  flex: 0 0 360px;
  position: relative;
  min-height: 560px;
}

.about__hello {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-dark);
}

.about__photos {
  position: absolute;
  top: -30px;
  left: 70px;
  width: 100%;
  height: 100%;
}

.about__photo {
  position: absolute;
  width: 270px;
  height: 325px;
  left: 34px;
  top: 170px;
  border-radius: 22px;
  object-fit: cover;
  transform: rotate(-5deg);
  transform-origin: top center;
  z-index: 1;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about__deco {
  position: absolute;
  object-fit: contain;
  z-index: 2;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about__deco--top {
  width: 80px;
  height: 80px;
  left: 8px;
  top: 190px;
}

.about__deco--enter {
  width: 110px;
  height: 110px;
  right: 0;
  top: 166px;
}

.about__deco--shirt {
  width: 110px;
  height: 110px;
  left: -8px;
  top: 410px;
}

.about__deco--bottom {
  width: 90px;
  height: 90px;
  right: -8px;
  top: 410px;
}

/* --- Right column --- */
.about__right {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: auto;
  padding-top: 0;
}

.about__text {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-muted);
}

.about__text strong {
  color: var(--c-dark);
  font-weight: 600;
}

/* ================================================
   OTHER WORKS
   ================================================ */
.works {
  padding-top: 84px;
  padding-bottom: 100px;
}

.works__header {
  margin-bottom: 24px;
}

.works__subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-muted);
  margin-top: 10px;
}

.works__rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.works-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.works-row--ara {
  gap: 32px;
}

.works-row--pawsitter {
  /* inherits align-items: stretch from .works-row */
}

/* -------- Work card base -------- */
.work-card {
  background: var(--c-white);
  border-radius: var(--r-card);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-card--wide   {
  flex: 1.695 1 0;
  padding-bottom: 36px;
}

.work-card--api-bridge {
  padding-bottom: 36px;
}

.work-card__img--api {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-card);
}

.work-card--pawsitter {
  padding-bottom: 36px;
}

.work-card--narrow {
  flex: 1 1 0;
  padding-bottom: 36px;
}

.work-card__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-card__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--c-dark);
}

.work-card__desc {
  font-family: var(--f-inter);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--c-dark);
  margin-bottom: 22px;
}

.work-card__img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  display: block;
}

/* Skydrone scroll preview */
.work-card__scroll-wrap {
  width: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--c-border);
}

.work-card__scroll-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* PawSitter stacked phones */
.work-card__phones {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: center;
  align-items: flex-start;
}

.work-card--pawsitter .work-card__phones {
  flex: 1;
}

.work-card__phones img {
  width: 138px;
  min-width: 138px;
  flex-shrink: 0;
  height: auto;
}

.work-card__phones--offset {
  margin-top: auto;
}

/* Garance */
.work-card--garance {
  width: min(100%, 560px);
}

.work-card__garance {
  position: relative;
  flex: 1;
}

.work-card__garance-dash {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.work-card__garance-mobile {
  position: absolute;
  width: 118px;
  height: auto;
  right: 0;
  bottom: -10px;
  border-radius: 20px;
}

/* ================================================
   KS MOTORCYCLE — Full-width card
   ================================================ */
.work-card--ks {
  width: 100%;
  padding: 36px;
}

.ks-showcase {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}

.ks-screen-img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}

/* ---- Phone shell ---- */
.ks-phone {
  width: 196px;
  min-height: 423px;
  border-radius: 25px;
  outline: 6px solid #2C2C2C;
  background: var(--c-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

/* ---- Status bar ---- */
.ks-phone__bar {
  height: 26px;
  background: var(--c-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  flex-shrink: 0;
  border-bottom: 0.5px solid #E0E0E0;
  position: relative;
}

.ks-bar__time {
  font-family: var(--f-moto);
  font-size: 6px;
  font-weight: 600;
  color: var(--c-dark);
  width: 28px;
  position: relative;
  z-index: 1;
}

.ks-bar__notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 14px;
  width: auto;
}

.ks-bar__rightside {
  height: 7px;
  width: auto;
  position: relative;
  z-index: 1;
}

/* ---- Screen ---- */
.ks-phone__screen {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--f-moto);
}

/* Hero banner (vehicle selector) */
.ks-banner {
  background: var(--c-red);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ks-banner__text {
  font-size: 6px;
  font-weight: 600;
  color: var(--c-white);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.3;
}

.ks-selectors {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ks-selector {
  background: var(--c-white);
  border-radius: 15px;
  padding: 3px 14px;
  font-size: 6px;
  font-weight: 500;
  color: #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ks-btn-find {
  background: none;
  border: 0.5px solid var(--c-white);
  border-radius: 15px;
  padding: 4px 20px;
  font-size: 6px;
  font-weight: 600;
  color: var(--c-white);
  text-align: center;
}

/* Slide */
.ks-slide {
  position: relative;
  height: 111px;
  flex-shrink: 0;
}

.ks-slide__bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 100%);
}

.ks-slide__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
}

.ks-slide__title {
  font-size: 8px;
  font-weight: 700;
  color: var(--c-white);
  text-align: center;
}

.ks-slide__sub {
  font-size: 5px;
  font-weight: 500;
  color: var(--c-white);
  text-align: center;
}

.ks-cta {
  display: inline-block;
  border: 0.5px solid var(--c-white);
  border-radius: 15px;
  padding: 3px 12px;
  font-size: 6px;
  font-weight: 600;
  color: var(--c-white);
}

/* Section title underline */
.ks-section-title {
  font-size: 8px;
  font-weight: 700;
  color: #000;
  padding: 8px 10px 4px;
  border-bottom: 0.5px solid #000;
  margin-bottom: 4px;
}

/* Mini product grid */
.ks-products {
  display: flex;
  gap: 12px;
  padding: 0 10px 8px;
}

.ks-product {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 0 15px rgba(0,0,0,0.14);
  border-radius: 10px;
  overflow: hidden;
  background: var(--c-white);
}

.ks-product__img {
  height: 57px;
  border-radius: 5px 5px 0 0;
}

.ks-product__img--dark  { background: #2E2E2E; }
.ks-product__img--light { background: #E9E4E4; }

.ks-product__name {
  font-size: 5px;
  font-weight: 600;
  color: #000;
  padding: 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ks-product__price {
  font-size: 6px;
  font-weight: 700;
  color: var(--c-red);
  padding: 0 5px 5px;
  text-transform: uppercase;
}

/* Catalog (phone 2) */
.ks-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 0.5px solid #E0E0E0;
}

.ks-search-bar__filters {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 6px;
  font-weight: 600;
  color: var(--c-red);
  letter-spacing: 0.02em;
}

.ks-search-bar__count {
  font-size: 6px;
  font-weight: 500;
  color: #000;
}

.ks-search-bar__sort {
  font-size: 6px;
  font-weight: 500;
  color: #000;
}

.ks-catalog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 10px;
}

.ks-catalog-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  border-radius: 12px;
  padding-bottom: 4px;
}

.ks-catalog-item__img {
  width: 42px;
  height: 40px;
  background: #D0D0D0;
  border-radius: 8px;
}

.ks-catalog-item__img--2 { background: #b0b0b0; }

.ks-catalog-item p {
  font-size: 5px;
  font-weight: 500;
  color: #000;
  text-align: center;
  text-transform: uppercase;
}

.ks-catalog-item__price {
  font-size: 6px;
  font-weight: 600;
  color: var(--c-red);
}

/* Product detail (phone 3) */
.ks-product-detail {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: radial-gradient(ellipse at 70% 40%, #EDEDED 13%, #B6B6B6 65%);
  border-radius: 10px;
  margin: 8px 10px;
  align-items: center;
}

.ks-product-detail__img {
  width: 70px;
  height: 55px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  flex-shrink: 0;
}

.ks-product-detail__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ks-product-detail__name {
  font-size: 6px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

.ks-product-detail__price {
  font-size: 7px;
  font-weight: 600;
  color: var(--c-red);
  text-transform: uppercase;
}

/* ---- Cart phone (phone 4) ---- */
.ks-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 0.5px solid #E0E0E0;
}

.ks-cart-header__back {
  font-size: 11px;
  color: var(--c-red);
  line-height: 1;
}

.ks-cart-header__title {
  font-family: var(--f-moto);
  font-size: 7px;
  font-weight: 700;
  color: #000;
}

.ks-cart-header__count {
  background: var(--c-red);
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 6px;
  font-weight: 700;
  font-family: var(--f-moto);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-cart-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 6px 10px;
  overflow: hidden;
}

.ks-cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 0.5px solid #E0E0E0;
}

.ks-cart-item__img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ks-cart-item__img--dark  { background: #2E2E2E; }
.ks-cart-item__img--light { background: #E9E4E4; }

.ks-cart-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}

.ks-cart-item__name {
  font-family: var(--f-moto);
  font-size: 6px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ks-cart-item__ref {
  font-family: var(--f-moto);
  font-size: 5px;
  color: #888;
}

.ks-cart-item__price {
  font-family: var(--f-moto);
  font-size: 6px;
  font-weight: 700;
  color: var(--c-red);
  text-transform: uppercase;
}

.ks-cart-item__qty {
  font-family: var(--f-moto);
  font-size: 6px;
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
}

.ks-cart-footer {
  border-top: 0.5px solid #000;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ks-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-moto);
  font-size: 6px;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
}

.ks-cart-total__price {
  font-size: 7px;
  font-weight: 800;
  color: var(--c-red);
}

.ks-cart-cta {
  background: var(--c-red);
  color: white;
  border-radius: 15px;
  padding: 6px 0;
  font-family: var(--f-moto);
  font-size: 6px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ================================================
   CASE STUDY SECTIONS (inline, no separate page)
   ================================================ */

.cs-section {
  background: var(--c-bg);
}

.cs-back-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 20px;
}

.cs-hero {
  padding: 80px 0 0;
  overflow: hidden;
}
