/* Inner pages: services, work, about, contact. Built on tokens, components and sections. */

/* =========================================================
   Page hero
   ========================================================= */
.phero {
  --accent: var(--lime);
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 7vw, 100px) 0 clamp(50px, 6vw, 80px);
}
.phero--pink { --accent: var(--pink); }
.phero--butter { --accent: var(--butter); }
.phero--violet { --accent: #b8b3ff; }
.phero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(30px, 5vw, 70px);
}
.phero__crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--text-muted);
}
.phero__crumbs a { color: var(--ink); }
.slab--dark .phero__crumbs a, .slab--green .phero__crumbs a { color: var(--white); }
.slab--dark .phero__crumbs, .slab--green .phero__crumbs { color: var(--text-on-dark-muted); }
.phero__crumbs span[aria-hidden] { opacity: 0.5; }
.phero h1 {
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 11em;
}
.phero h1 em { font-style: normal; color: var(--text-muted); font-weight: var(--fw-medium); }
.slab--dark .phero h1 em, .slab--green .phero h1 em { color: var(--text-on-dark-muted); }
.phero__lead { margin-top: 22px; max-width: 32em; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; color: var(--text-muted); }
.slab--dark .phero__lead, .slab--green .phero__lead { color: var(--text-on-dark-muted); }
.phero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.slab--dark .btn--outline, .slab--green .btn--outline { color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.slab--dark .btn--outline:hover, .slab--green .btn--outline:hover { background: var(--white); color: var(--ink); }

/* Giant outlined service number */
.phero__num {
  position: absolute;
  right: -2%;
  top: -6%;
  z-index: 0;
  font-size: clamp(220px, 32vw, 460px);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.06em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(11, 11, 12, 0.08);
  pointer-events: none;
  user-select: none;
}
.slab--dark .phero__num, .slab--green .phero__num { -webkit-text-stroke-color: rgba(255, 255, 255, 0.1); }

/* Right column: key facts card */
.phero__card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--accent);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(11, 11, 12, 0.12);
}
.phero__card-kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.phero__card-num { font-size: clamp(48px, 5vw, 72px); font-weight: var(--fw-semibold); letter-spacing: -0.04em; line-height: 1; }
.phero__card p { font-size: 15px; line-height: 1.45; }
.phero__card-foot { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 14px; border-top: 1px solid rgba(11, 11, 12, 0.14); }
.phero__card-foot span { padding: 5px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.65); font-size: 13px; }

@media (max-width: 960px) {
  .phero__inner { grid-template-columns: 1fr; align-items: start; }
  .phero__num { top: auto; bottom: -4%; right: -6%; }
}

/* =========================================================
   Generic page section
   ========================================================= */
.psec { padding-top: var(--section-gap); }
.psec--last { padding-bottom: var(--section-gap); }
.psec .section-head h2 { font-size: var(--fs-h2); }

/* Sound familiar: client quotes */
.quotes { display: grid; margin-top: 40px; border-top: 1px solid var(--hairline-light); }
.quotes li {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  align-items: baseline;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline-light);
}
.quotes .mono { color: var(--text-muted); }
.quotes strong { font-size: clamp(22px, 2.2vw, 32px); font-weight: var(--fw-medium); letter-spacing: -0.02em; line-height: 1.2; }
.quotes span:last-child { color: var(--text-muted); font-size: 16px; }
@media (max-width: 720px) {
  .quotes li { grid-template-columns: 40px 1fr; }
  .quotes span:last-child { grid-column: 2; }
}

/* What's included */
.incl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 46px; }
.incl__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 250px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--light);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
@media (hover: hover) { .incl__card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); } }
.incl__card:first-child { background: var(--ink); color: var(--white); }
.incl__card:first-child p { color: var(--text-on-dark-muted); }
.incl__num { font-family: var(--font-mono); font-size: 12px; opacity: 0.6; }
.incl__card h3 { margin-top: auto; font-size: clamp(22px, 1.8vw, 26px); font-weight: var(--fw-medium); }
.incl__card p { font-size: 15px; line-height: 1.45; color: #3a3d3d; }
@media (max-width: 960px) { .incl { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .incl { grid-template-columns: 1fr; } .incl__card { min-height: 0; } .incl__card h3 { margin-top: 12px; } }

/* Tools */
.toolwall { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.toolwall .tool { background: var(--light); box-shadow: none; }
.toolwall .tool--text { padding-left: 18px; }

/* Three layers (SEO) */
.layers3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 46px; }
.layers3 article {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--light);
}
.layers3 article:nth-child(2) { background: var(--butter); }
.layers3 article:nth-child(3) { background: var(--green); color: var(--white); }
.layers3 article:nth-child(3) p { color: var(--text-on-dark-muted); }
.layers3 .mono { opacity: 0.6; }
.layers3 h3 { font-size: 26px; font-weight: var(--fw-medium); }
.layers3 p { font-size: 15px; color: #3a3d3d; line-height: 1.5; }
@media (max-width: 860px) { .layers3 { grid-template-columns: 1fr; } }

/* Proof wall: small stat cards */
.proofwall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.proofwall li {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: 20px;
  background: var(--light);
}
.proofwall strong { font-size: clamp(30px, 3vw, 42px); font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 1; }
.proofwall span { font-size: 14px; color: #3a3d3d; }
.proofwall em { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 960px) { .proofwall { grid-template-columns: 1fr 1fr; } }

/* Brand gallery: images keep their own shape */
.gallery { columns: 3 300px; column-gap: 12px; margin-top: 40px; }
.gallery figure {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--light);
}
.gallery img { width: 100%; height: auto; transition: transform 0.7s var(--ease-out); }
@media (hover: hover) { .gallery figure:hover img { transform: scale(1.03); } }
.gallery figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 14px; }
.gallery figcaption span { color: var(--text-muted); }

/* FAQ */
.faq { max-width: 880px; margin: 40px auto 0; border-top: 1px solid var(--hairline-light); }
.faq details { border-bottom: 1px solid var(--hairline-light); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: var(--fw-medium);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--light);
  font-size: 20px;
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.faq details p { padding: 0 56px 24px 0; color: var(--text-muted); line-height: 1.6; }

/* =========================================================
   Work page
   ========================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filters button {
  height: 42px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--hairline-light);
  font-size: 15px;
  transition: background-color 0.25s, color 0.25s;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.filters button span { margin-left: 6px; opacity: 0.55; font-size: 13px; }

.wgrid { columns: 3 320px; column-gap: 14px; margin-top: 30px; }
.wcard {
  display: grid;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--light);
}
.wcard[hidden] { display: none; }
.wcard__media { position: relative; display: grid; place-items: center; padding: 14px; }
.wcard__media img { width: 100%; height: auto; border-radius: 12px; }
.wcard__media--trio { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wcard__media--trio img { border-radius: 10px; }
.wcard__media--quad { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.wcard__media--dark { background: var(--ink); }
.wcard__media--green { background: var(--green); }
.wcard__media--butter { background: var(--butter); }
.wcard__media--pink { background: var(--pink); }
.wcard__media--lime { background: var(--lime); }
.wcard__media--violet { background: linear-gradient(160deg, #1b1840, #0c0d1c); }
.wcard__stat { padding: 30px 10px; text-align: center; }
.wcard__stat strong { display: block; font-size: clamp(56px, 6vw, 84px); font-weight: var(--fw-semibold); letter-spacing: -0.04em; line-height: 1; }
.wcard__stat span { font-size: 14px; opacity: 0.75; }
.wcard__media--dark .wcard__stat, .wcard__media--green .wcard__stat { color: var(--white); }
.wcard__media--dark .wcard__stat strong, .wcard__media--green .wcard__stat strong { color: var(--lime); }
.wcard__body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.wcard__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.wcard__body h3 { font-size: 21px; font-weight: var(--fw-medium); letter-spacing: -0.015em; line-height: 1.25; }
.wcard__body p { font-size: 15px; color: #3a3d3d; line-height: 1.45; }
.wcard__result { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wcard__result span { padding: 5px 10px; border-radius: var(--r-pill); background: var(--white); font-size: 13px; }
.wcard__result span b { font-weight: var(--fw-semibold); }

/* Full case studies on the Work page */
.case--full { position: relative; top: auto; }
.case-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-details .case__label { color: var(--text-on-dark-muted); margin-bottom: 10px; }
.case-details p { color: #d4d7d7; font-size: 15px; line-height: 1.5; }
.cases-full { display: grid; gap: 24px; margin-top: 30px; }
@media (max-width: 960px) {
  .case.case--full .case__tags,
  .case.case--full .case__summary { display: flex; }
  .case.case--full .case__summary { display: block; }
  .case.case--full .case-details { grid-template-columns: 1fr; gap: 16px; }
  .case.case--full .case__visual { height: auto; min-height: 200px; }
}

/* =========================================================
   About page
   ========================================================= */
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 40px; }
.mv article { display: grid; gap: 16px; align-content: start; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-card); }
.mv article:first-child { background: var(--ink); color: var(--white); }
.mv article:last-child { background: var(--lime); }
.mv .mono { opacity: 0.65; }
.mv p { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.015em; }
@media (max-width: 760px) { .mv { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 40px; }
.team figure { margin: 0; border-radius: var(--r-card); overflow: hidden; background: #2b2b2d; }
.team img { width: 100%; aspect-ratio: 760 / 1040; height: auto; object-fit: cover; }
.team figcaption { display: grid; gap: 2px; padding: 16px 18px 20px; background: var(--ink); color: var(--white); }
.team figcaption span { font-size: 14px; color: var(--text-on-dark-muted); }
.team figcaption strong { font-size: 19px; font-weight: var(--fw-medium); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr 1fr; } }

/* About hero: the four services as links */
.svc-list { display: grid; }
.svc-list a {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 14px 2px;
  border-top: 1px solid rgba(11, 11, 12, 0.14);
  font-size: 17px;
  font-weight: var(--fw-medium);
}
.svc-list li:first-child a { border-top: 0; }
.svc-list .mono { font-size: 12px; opacity: 0.6; }
.svc-list .icon { width: 16px; height: 16px; transition: transform 0.25s ease; }
@media (hover: hover) { .svc-list a:hover .icon { transform: translateX(4px); } }

.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.ways article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  padding: 26px;
  border-radius: var(--r-card);
  background: var(--light);
}
.ways article:nth-child(2) { background: var(--butter); }
.ways article:nth-child(3) { background: var(--green); color: var(--white); }
.ways article:nth-child(3) p { color: var(--text-on-dark-muted); }
.ways .mono { opacity: 0.6; }
.ways h3 { margin-top: auto; font-size: 28px; font-weight: var(--fw-medium); }
.ways p { font-size: 15px; line-height: 1.5; color: #3a3d3d; }
.ways .btn { margin-top: 10px; width: fit-content; }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } .ways article { min-height: 0; } .ways h3 { margin-top: 10px; } }

/* =========================================================
   Contact page
   ========================================================= */
.csteps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.csteps li { display: grid; gap: 8px; padding: 22px; border-radius: 20px; }
.csteps .mono { color: var(--lime); }
.csteps strong { font-size: 20px; font-weight: var(--fw-medium); }
.csteps p { font-size: 15px; color: var(--text-on-dark-muted); line-height: 1.45; }
@media (max-width: 760px) { .csteps { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 60px); align-items: start; }
.contact__cards { display: grid; gap: 10px; }
.ccard {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--light);
  transition: transform 0.35s var(--ease-out), background-color 0.3s;
}
@media (hover: hover) { a.ccard:hover { transform: translateY(-3px); background: var(--butter); } }
.ccard__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: var(--lime); flex: none; }
.ccard__icon svg { width: 22px; height: 22px; }
.ccard span { display: grid; gap: 2px; font-size: 14px; color: var(--text-muted); }
.ccard strong { font-size: 18px; font-weight: var(--fw-medium); color: var(--ink); }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--r-card);
  background: var(--light);
}
.form h2 { grid-column: 1 / -1; font-size: clamp(26px, 2.4vw, 34px); }
.form > p { grid-column: 1 / -1; color: var(--text-muted); margin-top: -6px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: var(--fw-medium); }
.field label small { font-weight: var(--fw-regular); color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--white);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(158, 252, 101, 0.45); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #e5484d; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 6px; }
.form__foot p { font-size: 14px; color: var(--text-muted); max-width: 26em; }
.form__status { grid-column: 1 / -1; padding: 14px 16px; border-radius: 14px; background: var(--lime); font-weight: var(--fw-medium); }
.form__status[hidden] { display: none; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* Contact page footer has no repeated CTA */
.footer--plain { padding-top: 60px; }
.footer--plain .footer__grid { margin-top: 0; border-top: 0; padding-top: 0; }

/* Fixes */
.phero__card .phero__card-num { font-size: clamp(48px, 5vw, 72px); line-height: 1; }
.psec .section-head:not(.section-head--center),
.psec .section-head--row > .section-head { justify-items: start; }
.psec .section-head--center { justify-items: center; }
.case.case--full .case__summary { display: none !important; }

/* =========================================================
   Case studies list with See more
   ========================================================= */
.cases-list { display: grid; gap: 18px; margin-top: 30px; }
.cases-list .case, .cases-list .case:nth-child(n) { position: relative; top: auto; min-height: 0; }
.cases-list .case[hidden] { display: none; }
.case__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.case__more-inner { overflow: hidden; display: grid; gap: 18px; }
.case.is-open .case__more { grid-template-rows: 1fr; }
.case__more-block .case__label { color: var(--text-on-dark-muted); margin-bottom: 8px; }
.case__more-block > p:not(.case__label) { color: #d4d7d7; font-size: 15px; line-height: 1.55; }
.case__more-block .case__moves li { font-size: 15px; line-height: 1.5; }
.case__more-block--benefit {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(158, 252, 101, 0.1);
  box-shadow: inset 0 0 0 1px rgba(158, 252, 101, 0.3);
}
.case__more-block--benefit .case__label { color: var(--lime); }
.case__more-block--benefit p:not(.case__label) { color: var(--white); }
.case.is-open .case__more-inner { padding-top: 4px; }
.case__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 15px;
  font-weight: var(--fw-medium);
  transition: background-color 0.25s;
}
@media (hover: hover) { .case__toggle:hover { background: rgba(255, 255, 255, 0.14); } }
.case__toggle .icon { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out); }
.case__toggle [data-label-open] { display: none; }
.case.is-open .case__toggle [data-label-open] { display: inline; }
.case.is-open .case__toggle [data-label-closed] { display: none; }
.case.is-open .case__toggle .icon { transform: rotate(180deg); }

@media (max-width: 960px) {
  .cases-list .case .case__tags { display: flex; }
  .cases-list .case { flex-basis: auto; }
  .cases-list .case__visual { height: 190px; }
  .case__more-inner { gap: 14px; }
  .case__more-block > p:not(.case__label), .case__more-block .case__moves li { font-size: 14px; }
}

/* =========================================================
   Results strip
   ========================================================= */
.results { margin-top: 30px; }
.results__title { color: var(--text-muted); margin-bottom: 12px; }
.results__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.results__list::-webkit-scrollbar { display: none; }
.results__list li {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 18px;
  background: var(--light);
  scroll-snap-align: start;
}
.results__list strong { font-size: 30px; font-weight: var(--fw-semibold); letter-spacing: -0.03em; line-height: 1.05; }
.results__list span { font-size: 14px; color: #3a3d3d; }
.results__list em { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 960px) {
  .results__list { grid-auto-columns: 62%; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
}

/* =========================================================
   Sticky on-page switch (Work)
   ========================================================= */
.subnav {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 40;
  display: flex;
  width: fit-content;
  gap: 4px;
  margin: 26px auto 0;
  padding: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px var(--hairline-light), 0 10px 30px rgba(11, 11, 12, 0.08);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.subnav a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  color: #3a3d3d;
  transition: background-color 0.25s, color 0.25s;
}
.subnav a.is-active { background: var(--ink); color: var(--white); }

/* =========================================================
   Portfolio grid: images only
   ========================================================= */
.pf { columns: 3 280px; column-gap: 12px; margin-top: 24px; }
.pf__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 12px;
  break-inside: avoid;
  border-radius: 20px;
  overflow: hidden;
  background: var(--light);
  text-align: left;
}
.pf__item[hidden] { display: none; }
.pf__item img { width: 100%; height: auto; transition: transform 0.8s var(--ease-out); }
@media (hover: hover) { .pf__item:hover img { transform: scale(1.04); } }
.pf__name {
  position: absolute;
  left: 10px; bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(10, 12, 18, 0.62);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--white);
  font-size: 13px;
}
.pf__count {
  display: grid;
  place-items: center;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: var(--fw-semibold);
}
@media (max-width: 640px) {
  .pf { columns: 2; column-gap: 8px; }
  .pf__item { margin-bottom: 8px; border-radius: 14px; }
  .pf__name { left: 6px; bottom: 6px; padding: 4px 9px; font-size: 11px; }
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(8, 9, 12, 0.96);
  color: var(--white);
}
.lightbox[hidden] { display: none; }
.lightbox__bar { display: flex; align-items: center; gap: 14px; padding: 14px var(--gutter); }
.lightbox__name { font-size: 17px; font-weight: var(--fw-medium); }
.lightbox__count { margin-right: auto; color: var(--text-on-dark-muted); }
.lightbox__close { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.lightbox__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior: contain;
}
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__track figure {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 var(--gutter) 30px;
  scroll-snap-align: center;
}
.lightbox__track img { max-width: 100%; max-height: calc(100vh - 120px); max-height: calc(100dvh - 120px); width: auto; height: auto; border-radius: 12px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 640px) { .lightbox__nav { display: none; } }

/* =========================================================
   Light case cards on inner pages
   ========================================================= */
.case__toggle { background: var(--light); box-shadow: none; color: var(--ink); }
@media (hover: hover) { .case__toggle:hover { background: #e6e6e3; } }
.case__more-block .case__label { color: var(--text-muted); }
.case__more-block > p:not(.case__label) { color: #3a3d3d; }
.case__more-block .case__moves li { color: #2b2d2d; }
.case__more-block .case__moves li::before { color: var(--ink); }
.case__more-block--benefit { background: var(--butter); box-shadow: none; }
.case__more-block--benefit .case__label { color: #6b5a12; }
.case__more-block--benefit p:not(.case__label) { color: var(--ink); }
.cases-list .case__visual { height: auto; }

/* Hero: screenshots from live accounts, fanned */
.hshots { position: relative; display: grid; min-height: 340px; padding-bottom: 30px; }
.hshots__item {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(11, 11, 12, 0.18);
  transition: transform 0.6s var(--ease-out);
}
.hshots__item img { width: 100%; height: auto; }
.hshots__item:nth-child(1) { transform: translate(-6%, -34%) rotate(-4deg); z-index: 1; }
.hshots__item:nth-child(2) { transform: translate(4%, 4%) rotate(2deg); z-index: 2; }
.hshots__item:nth-child(3) { transform: translate(-2%, 40%) rotate(-1deg); z-index: 3; }
@media (hover: hover) { .hshots:hover .hshots__item:nth-child(1) { transform: translate(-8%, -40%) rotate(-5deg); } .hshots:hover .hshots__item:nth-child(3) { transform: translate(0, 46%) rotate(0deg); } }
.hshots__cap { position: absolute; left: 0; right: 0; bottom: -46px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 960px) {
  .hshots { min-height: 300px; margin: 30px 0 60px; }
}

/* =========================================================
   Portfolio: structured grids
   ========================================================= */
.pf-wrap { margin-top: 24px; }
.pf-wrap > .pf[hidden] { display: none; }
.pf { columns: auto; display: grid; gap: 28px 16px; margin-top: 0; }
.pf--design { grid-template-columns: repeat(3, 1fr); }
.pf--web { grid-template-columns: repeat(2, 1fr); }
.pf__item {
  display: grid;
  gap: 12px;
  margin: 0;
  border-radius: 0;
  overflow: visible;
  background: none;
  text-align: left;
}
.pf__thumb {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  background: var(--light);
}
.pf--design .pf__thumb { aspect-ratio: 4 / 5; }
.pf--design .pf__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.pf--web .pf__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  padding: clamp(18px, 3vw, 36px);
  background: linear-gradient(160deg, #eef0ff 0%, #f6f4ef 100%);
}
.pf--web .pf__item:nth-child(3n+2) .pf__thumb { background: linear-gradient(160deg, #eaf7ef, #f6f4ef); }
.pf--web .pf__item:nth-child(3n+3) .pf__thumb { background: linear-gradient(160deg, #fdf1e4, #f6f4ef); }
.pf--web .pf__thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 18px 40px rgba(11, 11, 12, 0.16); }
.pf__item img { transition: transform 0.8s var(--ease-out); }
@media (hover: hover) { .pf__item:hover img { transform: scale(1.035); } }
.pf__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 2px; }
.pf__item .pf__name { position: static; padding: 0; background: none; color: var(--ink); font-size: 17px; font-weight: var(--fw-medium); -webkit-backdrop-filter: none; backdrop-filter: none; }
.pf__item .pf__count { min-width: 0; height: auto; padding: 0; background: none; color: var(--text-muted); font-size: 13px; font-weight: var(--fw-regular); }

@media (max-width: 860px) {
  .pf--design { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  .pf--web { grid-template-columns: 1fr; gap: 22px; }
  .pf__thumb { border-radius: 16px; }
  .pf__item .pf__name { font-size: 15px; }
  .pf__item .pf__count { font-size: 12px; }
}
@media (max-width: 860px) {
  .pf--design .pf__meta { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* =========================================================
   Round 9: hero screenshots desktop only
   ========================================================= */
@media (max-width: 860px) { .hshots { display: none; } }

/* =========================================================
   Portfolio: one row per project, full images, no crop
   ========================================================= */
.pfrows { display: grid; gap: clamp(28px, 4vw, 48px); }
.pfrows[hidden] { display: none; }
.pfrow { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.pfrow__name {
  position: sticky;
  top: calc(var(--header-h) + 80px);
  padding-top: 6px;
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: var(--fw-medium);
  letter-spacing: -0.02em;
}
.pfrow__strip {
  --h: clamp(260px, 26vw, 360px);
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.pfrow__strip::-webkit-scrollbar { display: none; }
.pfrow__img {
  flex: none;
  height: var(--h);
  border-radius: 18px;
  overflow: hidden;
  background: var(--light);
  scroll-snap-align: start;
  box-shadow: inset 0 0 0 1px var(--hairline-light);
}
.pfrow__img img { height: 100%; width: auto; max-width: none; transition: transform 0.8s var(--ease-out); }
@media (hover: hover) { .pfrow__img:hover img { transform: scale(1.03); } }

/* Web projects: shown on a soft stage with depth */
.pfrow--web .pfrow__img {
  display: grid;
  place-items: center;
  padding: clamp(18px, 2.4vw, 30px);
  background:
    radial-gradient(70% 70% at 80% 0%, rgba(184, 179, 255, 0.45), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(253, 229, 137, 0.5), transparent 70%),
    linear-gradient(160deg, #f4f2ff, #f7f5ef);
  box-shadow: none;
}
.pfrow--web:nth-child(3n+2) .pfrow__img {
  background:
    radial-gradient(70% 70% at 80% 0%, rgba(158, 252, 101, 0.35), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(184, 179, 255, 0.35), transparent 70%),
    linear-gradient(160deg, #f1f8f2, #f7f5ef);
}
.pfrow--web:nth-child(3n+3) .pfrow__img {
  background:
    radial-gradient(70% 70% at 80% 0%, rgba(255, 188, 252, 0.45), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(253, 229, 137, 0.45), transparent 70%),
    linear-gradient(160deg, #fdf3f8, #f7f5ef);
}
.pfrow--web .pfrow__img img {
  height: 100%;
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(11, 11, 12, 0.18), 0 2px 6px rgba(11, 11, 12, 0.06);
}

@media (max-width: 860px) {
  .pfrow { grid-template-columns: 1fr; gap: 12px; }
  .pfrow__name { position: static; padding-top: 0; font-size: 19px; }
  .pfrow__strip {
    --h: 240px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    gap: 8px;
  }
  .pfrow__img { border-radius: 14px; }
  .pfrow--web .pfrow__strip { --h: 220px; }
}

/* =========================================================
   Contact: form first
   ========================================================= */
.contact--single { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }
.cicons { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--text-muted); font-size: 14px; }
.cicons span { margin-right: 4px; }
.cicons a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--light);
  color: var(--ink);
  transition: background-color 0.25s;
}
@media (hover: hover) { .cicons a:hover { background: var(--lime); } }
.cicons svg { width: 20px; height: 20px; }
.csteps--light li { background: var(--light); }
.csteps--light .mono { color: var(--text-muted); }
.csteps--light p { color: #3a3d3d; }
@media (max-width: 860px) {
  .pfrow__strip { align-items: center; }
  .pfrow__img { height: auto; max-width: 84vw; }
  .pfrow__img img { height: auto; width: auto; max-width: 100%; max-height: 260px; display: block; }
  .pfrow--web .pfrow__img { width: 84vw; padding: 14px; }
  .pfrow--web .pfrow__img img { width: 100%; max-height: none; }
}
/* Phones: tall images use a fixed height, wide ones fit the screen width */
@media (max-width: 860px) {
  .pfrow__img, .pfrow--web .pfrow__img { max-width: none; width: auto; padding: 0; }
  .pfrow__img img { height: 240px; width: auto; max-width: none; max-height: none; }
  .pfrow__img--wide { width: 84vw; }
  .pfrow__img--wide img { width: 100%; height: auto; }
  .pfrow--web .pfrow__img { width: 84vw; padding: 14px; }
  .pfrow--web .pfrow__img img { width: 100%; height: auto; }
}

/* =========================================================
   Web portfolio: showcase cards, every image whole
   ========================================================= */
.pfrows--web { grid-template-columns: 1fr 1fr; gap: 20px; }
.webcard { display: grid; gap: 12px; align-content: start; }
.webcard--featured { grid-column: 1 / -1; }
.webcard__stage {
  display: grid;
  align-items: center;
  gap: 16px;
  padding: clamp(18px, 3vw, 40px);
  border-radius: 24px;
  background:
    radial-gradient(70% 70% at 85% 0%, rgba(184, 179, 255, 0.5), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(253, 229, 137, 0.55), transparent 70%),
    linear-gradient(160deg, #f4f2ff, #f7f5ef);
}
.webcard:nth-child(3n+2) .webcard__stage {
  background:
    radial-gradient(70% 70% at 85% 0%, rgba(158, 252, 101, 0.35), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(184, 179, 255, 0.4), transparent 70%),
    linear-gradient(160deg, #f1f8f2, #f7f5ef);
}
.webcard:nth-child(3n+3) .webcard__stage {
  background:
    radial-gradient(70% 70% at 85% 0%, rgba(255, 188, 252, 0.45), transparent 70%),
    radial-gradient(60% 60% at 0% 100%, rgba(253, 229, 137, 0.45), transparent 70%),
    linear-gradient(160deg, #fdf3f8, #f7f5ef);
}
.webcard__stage--2 { grid-template-columns: 1.7fr 1fr; }
.webcard__img { display: block; width: 100%; border-radius: 12px; overflow: hidden; }
.webcard__img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(11, 11, 12, 0.18), 0 2px 6px rgba(11, 11, 12, 0.06);
  transition: transform 0.7s var(--ease-out);
}
@media (hover: hover) { .webcard__img:hover img { transform: translateY(-4px); } }
.webcard__name { font-size: clamp(18px, 1.6vw, 22px); font-weight: var(--fw-medium); letter-spacing: -0.015em; padding-inline: 2px; }
@media (max-width: 860px) {
  .pfrows--web { grid-template-columns: 1fr; gap: 26px; }
  .webcard__stage { padding: 14px; border-radius: 18px; }
  .webcard__stage--2 { grid-template-columns: 1fr; }
}

/* =========================================================
   Web work: masonry. Every image whole, at its own shape.
   ========================================================= */
.pfrows--web { display: block; }
.wmasonry { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); align-items: start; }
.wmasonry__col { display: grid; gap: clamp(16px, 2vw, 28px); }
.wtile { display: grid; gap: 12px; width: 100%; padding: 0; text-align: left; cursor: zoom-in; }
.wtile__media {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2, #efefef);
  box-shadow: 0 1px 0 rgba(11, 11, 12, 0.04), 0 24px 50px -18px rgba(11, 11, 12, 0.28);
}
.wtile__media--dark { background: #0b0a09; }
.wtile__media img { display: block; width: 100%; height: auto; transition: transform 0.9s var(--ease-out); }
@media (hover: hover) { .wtile:hover .wtile__media img { transform: scale(1.025); } }
.wtile__cap { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-inline: 2px; }
.wtile__cap strong { font-size: clamp(17px, 1.4vw, 20px); font-weight: var(--fw-medium); letter-spacing: -0.015em; }
.wtile__cap span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted, #6b6b6b); }
@media (max-width: 860px) {
  .wmasonry { display: flex; flex-direction: column; gap: 22px; }
  .wmasonry__col { display: contents; }
  .wtile__media { border-radius: 14px; }
}

/* Contact: what the free audit includes */
.auditinc { grid-column: 1 / -1; display: grid; gap: 10px; margin: 4px 0 6px; padding: 18px 20px; border-radius: 18px; background: var(--lime-soft, #eefbe2); }
.auditinc li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; }
.auditinc .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--lime); }
.form__hint { font-size: 14px; color: var(--text-muted); }

/* =========================================================
   Blog articles
   ========================================================= */
.article { padding-top: calc(var(--header-h, 76px) + 40px); }
.article__head { max-width: 820px; display: grid; gap: 16px; }
.article__meta { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.article__head h1 { font-size: clamp(32px, 4.4vw, 58px); font-weight: var(--fw-medium); line-height: 1.06; letter-spacing: -0.03em; }
.article__lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text-muted); }
.article__cover { max-width: 1000px; margin-top: 36px; }
.article__cover img { width: 100%; height: auto; border-radius: 22px; }
.article__body { max-width: 820px; margin-top: 44px; }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(24px, 2.2vw, 30px); font-weight: var(--fw-medium); line-height: 1.2; letter-spacing: -0.02em; }
.prose h3 { margin-top: 1.6em; font-size: 21px; font-weight: var(--fw-medium); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.45em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: var(--fw-semibold); }
.prose blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--lime); color: var(--text-muted); }
.prose img { width: 100%; height: auto; border-radius: 16px; }
.article__cta {
  max-width: 820px;
  margin-top: 56px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px; border-radius: 24px;
  background: var(--deep-green, #122020); color: var(--white);
}
.article__cta h2 { font-size: 24px; font-weight: var(--fw-medium); }
.article__cta p { margin-top: 6px; color: var(--text-on-dark-muted); max-width: 46ch; }
.article__more { margin-bottom: 24px; font-size: clamp(24px, 2.2vw, 30px); font-weight: var(--fw-medium); }
.post__media--img img { width: 100%; height: 100%; object-fit: cover; }
.avatar__initial { display: grid; place-items: center; width: 100%; height: 100%; font-weight: var(--fw-semibold); font-size: 20px; background: var(--lime); color: var(--ink); }
@media (max-width: 600px) {
  .prose { font-size: 17px; }
  .article__cta { padding: 22px; }
}
.post h2 { font-size: clamp(18px, 1.5vw, 21px); font-weight: var(--fw-medium); line-height: 1.3; letter-spacing: normal; }
