/* mitacore.co - review.css (2026-11-09): the Free review section, the "Start free" form and the service cards. */

/* The Free review section on the site pages */
#review > .section-kicker { transform: translateY(-13px); }

.review-copy {
  display: grid;
  gap: 18px;
  max-width: 880px;
}

.review-copy p { margin: 0; }

.review-copy .review-lead {
  color: #111111;
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 600;
  line-height: 1.35;
}

.review-copy .review-next {
  color: #6B6B6B;
  font-size: 17px;
  font-weight: 550;
  line-height: 25px;
}

/* mitacore.co - "Start free" form (2026-11-09).
   One button in the header opens one form on the whole screen: a free review, a new project or just a message.
   Site style: Inter, #111 on white, #F9F8F6 fields and cards, pill buttons. Nothing animates. */
html.start-open,
html.start-open body { overflow: hidden; }

.start-sheet {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #FFFFFF;
  color: #111111;
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.start-sheet[hidden] { display: none; }

.start-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  width: min(1560px, 100% - 12vw);
  margin: 0 auto;
  padding: 20px 0;
  background: #FFFFFF;
}

.start-close,
.start-send,
.start-done-close {
  appearance: none;
  margin: 0;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease;
}

.start-close {
  padding: 15px 20px;
  background: #F9F8F6;
  color: #111111;
  font-size: 13px;
  line-height: 13px;
}

.start-close:hover { background: #EFEEE9; }

.start-body {
  box-sizing: border-box;
  width: min(960px, 100% - 12vw);
  margin: 0 auto;
  padding: 24px 0 120px;
}

.start-title {
  margin: 0;
  font-size: clamp(44px, 4.6vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.start-sub {
  margin: 20px 0 0;
  color: #6B6B6B;
  font-size: 17px;
  font-weight: 550;
  line-height: 25px;
}

.start-form { margin-top: 48px; }

.start-step {
  margin: 0 0 16px;
  color: #FF9271;
  font-size: 13px;
  font-weight: 700;
  line-height: 13px;
  text-transform: uppercase;
}

/* What do you need: three cards */
.start-kinds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.start-kind {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 150px;
  box-sizing: border-box;
  padding: 24px;
  border-radius: 20px;
  background: #F9F8F6;
  cursor: pointer;
  transition: background 200ms ease;
}

.start-kind:hover { background: #EFEEE9; }

.start-kind input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.start-kind-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 26px;
}

.start-kind-text {
  font-size: 15px;
  font-weight: 550;
  line-height: 21px;
}

.start-kind:has(input:checked) {
  background: #111111;
  color: #FFFFFF;
}

.start-kind:has(input:focus-visible) { outline: 2px solid #111111; outline-offset: 3px; }

/* Fields */
.start-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  margin-top: 40px;
}

.start-field { min-width: 0; }
.start-field.is-wide { grid-column: 1 / -1; }
.start-field[hidden] { display: none; }

.start-label {
  display: block;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.start-optional {
  color: #9A9A9A;
  font-weight: 550;
}

.start-input,
.start-textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 0;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: #F9F8F6;
  color: #111111;
  font-family: inherit;
  font-size: 17px;
  font-weight: 550;
  line-height: 24px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.start-input {
  height: 64px;
  padding: 0 22px;
}

.start-textarea {
  min-height: 150px;
  padding: 20px 22px;
  resize: vertical;
}

.start-input::placeholder,
.start-textarea::placeholder { color: #9A9A9A; }

.start-input:hover,
.start-textarea:hover { background: #F3F2EE; }

.start-input:focus,
.start-textarea:focus {
  border-color: #111111;
  background: #FFFFFF;
}

.start-field.is-error .start-input,
.start-field.is-error .start-textarea { border-color: #FF9271; }

.start-error {
  display: none;
  margin: 8px 0 0;
  color: #E2603A;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

.start-field.is-error .start-error { display: block; }

/* Chips */
.start-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.start-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 48px;
  box-sizing: border-box;
  padding: 0 20px;
  border-radius: 999px;
  background: #F9F8F6;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 200ms ease;
}

.start-chip:hover { background: #EFEEE9; }

.start-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.start-chip:has(input:checked) {
  background: #111111;
  color: #FFFFFF;
}

.start-chip:has(input:focus-visible) { outline: 2px solid #111111; outline-offset: 3px; }

/* Files */
.start-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  box-sizing: border-box;
  padding: 12px 12px 12px 22px;
  border: 1.5px dashed #D9D7D1;
  border-radius: 16px;
  background: #FFFFFF;
  font-size: 15px;
  font-weight: 550;
  line-height: 21px;
  transition: border-color 200ms ease, background 200ms ease;
}

.start-drop.is-over {
  border-color: #111111;
  background: #F9F8F6;
}

.start-drop-text { color: #6B6B6B; }

.start-pick {
  flex: none;
  padding: 13px 18px;
  border-radius: 999px;
  background: #F9F8F6;
  color: #111111;
  font-size: 13px;
  font-weight: 700;
  line-height: 13px;
  cursor: pointer;
}

.start-pick:hover { background: #EFEEE9; }

.start-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.start-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.start-files li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  background: #F9F8F6;
  font-size: 14px;
  font-weight: 600;
}

.start-files span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-files button {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: #111111;
  font: 700 14px/24px Inter, sans-serif;
  cursor: pointer;
}

/* Send */
/* Send on the right, the note on the left */
.start-actions {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 40px;
}

.start-send {
  height: 56px;
  padding: 0 32px;
  background: #111111;
  color: #FFFFFF;
  font-size: 15px;
}

.start-send:hover { background: #333333; }
.start-send:disabled { background: #6B6B6B; cursor: default; }

.start-note {
  margin: 0;
  color: #6B6B6B;
  font-size: 15px;
  font-weight: 550;
  line-height: 21px;
}

.start-fail {
  flex-basis: 100%;
  margin: 0;
  color: #E2603A;
  font-size: 15px;
  font-weight: 600;
}

.start-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Thank you */
.start-done[hidden] { display: none; }

.start-done .start-sub {
  max-width: 640px;
  color: #111111;
}

.start-done-close {
  height: 56px;
  margin-top: 40px;
  padding: 0 32px;
  background: #111111;
  color: #FFFFFF;
  font-size: 15px;
}

@media (max-width: 820px) {
  .start-bar,
  .start-body { width: calc(100% - 40px); }

  .start-bar { padding: 16px 0; }
  .start-body { padding: 8px 0 80px; }
  .start-title { font-size: 40px; }
  .start-form { margin-top: 32px; }

  .start-kinds { grid-template-columns: minmax(0, 1fr); }

  .start-kind {
    min-height: 0;
    gap: 10px;
    padding: 20px;
  }

  .start-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .start-drop {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .start-actions {
    flex-direction: column-reverse;
    align-items: flex-end;
  }
}

/* Ways to work together: a longer description under each card's short line */
#format .way-desc {
  margin: 14px 0 0;
  color: #111111;
  font-size: 17px;
  font-weight: 550;
  line-height: 25px;
}

/* Product Services cards, like the number cards (15 years, 1 app, 18 languages, 120K+): the heading at the top,
   the lists below it, and every list starts on the same line in all four cards. The "01" numbers were already invisible. */
#services .service {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  row-gap: clamp(34px, 4vw, 58px);
  min-height: 0;
  padding: clamp(18px, 2vw, 34px);
}

#services .service .number { display: none; }
#services .service > div { display: contents; }

#services .service h3,
#services .service ul {
  margin: 0;
  align-self: start;
}

#services .service li { white-space: normal; }

/* Ways to work together: the name, the short line and the description sit on the same lines in all three cards */
#format .way {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
}

#format .way-text { margin-top: 34px; }
#format .way-desc { margin-top: 14px; }

/* "No risk" line under the Free review buttons */
#review .review-risk {
  margin: 16px 0 0;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  line-height: 21px;
}

/* Home page: the Free review block is a grey card between the hero and the projects,
   heading on the left, text and buttons on the right; "Selected work" opens the projects */
.intro-main > #review {
  display: block;
  margin: clamp(88px, 8vw, 128px) 0 0;
  padding: clamp(28px, 4vw, 64px);
  border: 0;
  border-radius: 32px;
  background: #F4F3F0;
}

.intro-main > #review > .section-kicker {
  transform: none;
  margin: 0 0 24px;
}

.intro-main > #review > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  column-gap: clamp(32px, 4vw, 72px);
  align-items: start;
}

.intro-main > #review > div > h2 {
  grid-row: 1 / span 3;
  max-width: none;
  margin: 0;
  font-size: clamp(40px, 3.9vw, 60px);
  line-height: 1.02;
}

.intro-main > #review .review-copy { max-width: none; margin: 0; }
.intro-main > #review .review-lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.42; }
.intro-main > #review .review-next { font-size: 16px; }
.intro-main > #review .intro-actions { margin-top: 28px; }
.intro-main > #review .review-risk { grid-column: 2; margin-top: 16px; }

/* "Selected work" sits in the left label column, like EXPERIENCE and the other section labels */
.intro-main > .work-kicker {
  width: var(--section-label);
  height: 0;
  margin: clamp(96px, 9vw, 144px) 0 0 calc(-1 * (var(--section-label) + var(--section-gap)));
  transform: translateY(4px);
}

.intro-main > .work-kicker + .projects { margin-top: 0; }

@media (max-width: 820px) {
  .intro-main > .work-kicker { width: auto; height: auto; margin: 72px 0 20px; transform: none; }
}

@media (max-width: 900px) {
  .intro-main > #review { border-radius: 24px; }
  .intro-main > #review > div { grid-template-columns: 1fr; }
  .intro-main > #review > div > h2 { grid-row: auto; margin-bottom: 24px; }
  .intro-main > #review .review-risk { grid-column: 1; }
}


/* 2026-11-09: wide screens. The page is capped at 1680px, but the left column (avatar, section labels) was 13% of the
   screen, so on a wide monitor it kept growing and the content got narrower. The column now stops at its normal size. */
:root { --section-label: clamp(110px, 13vw, 220px); }

/* 2026-11-09: blog pages copy the Projects page (/work/): the same width as the home page and /work/,
   the list as the same tiles; post text from the same line as the text on the case pages */
body:has(.blog-h1) .case-site-header { padding-bottom: clamp(34px, 8vw, 120px); }
body:has(.blog-h1) > main { padding-top: 16px; }

main:has(.blog-h1) > .wrap,
main:has(.blog-h1) > .cover {
  box-sizing: border-box;
  width: 100%;
  max-width: calc(1680px + 2 * clamp(20px, 2.6vw, 40px));
  margin: 0 auto;
  padding-inline: calc(clamp(20px, 2.6vw, 40px) + clamp(0px, 3.4vw, 60px));
}

main:has(.blog-h1) .blog-h1 {
  font-size: clamp(44px, 5vw, 84px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
main:has(.blog-h1) .lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}
main:has(.blog-h1) .meta { margin-top: 28px; font-size: 13px; font-weight: 600; }

/* Blog list: the Projects page title and tiles */
main:has(.list) > .wrap > .kicker { display: none; }
main:has(.list) .blog-h1 {
  width: max-content;
  max-width: 100%;
  padding: 0 0.08em 0.2em 0;
  font-size: clamp(58px, 10.2vw, 132px);
  line-height: 0.82;
  letter-spacing: -2px;
  background: linear-gradient(90deg, #D3B7D8 0%, #FF9271 44%, #FFD7C9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
main:has(.list) .lead { margin-top: 36px; }
main:has(.blog-h1) .list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 56px 10px;
  align-items: start;
  margin: 56px 0 0;
}
main:has(.blog-h1) .list .list { display: contents; }
main:has(.blog-h1) .list > .blog-foot { grid-column: 1 / -1; margin: 64px 0 64px 10px; }
main:has(.blog-h1) .list li,
main:has(.blog-h1) .list li:last-child { border: 0; }
main:has(.blog-h1) .list a { display: grid; gap: 20px; padding: 0; }
main:has(.blog-h1) .list .thumb { aspect-ratio: 4 / 3; margin: 0; border-radius: 24px; object-fit: cover; }
main:has(.blog-h1) .list .kicker { display: none; }
main:has(.blog-h1) .list h2 {
  margin: 0;
  padding: 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.4px;
}
main:has(.blog-h1) .list p {
  margin: -6px 0 0;
  padding: 0 6px 0 10px;
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  line-height: 17.55px;
}

/* Post: the title, the cover and pictures across the full width, the text like the case pages */
main:has(.blog-h1) > .wrap:has(> .body) {
  display: grid;
  grid-template-columns: var(--section-label, clamp(110px, 13vw, 220px)) minmax(0, 1fr);
  column-gap: var(--section-gap, clamp(24px, 4vw, 64px));
}
main:has(.blog-h1) > .wrap:has(> .body) > * { grid-column: 2; min-width: 0; }
main:has(.blog-h1) > .cover { margin-top: 56px; }
main:has(.blog-h1) > .cover img { border-radius: 24px; }
main:has(.blog-h1) .cover svg,
main:has(.blog-h1) .body figure svg { display: block; width: 100%; height: auto; }
main:has(.blog-h1) .body {
  margin: 96px 0 0;
  color: #6B6B6B;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 550;
  line-height: 1.47;
}
main:has(.blog-h1) .body p,
main:has(.blog-h1) .body ul,
main:has(.blog-h1) .body ol { margin: 0 0 18px; }
main:has(.blog-h1) .body b,
main:has(.blog-h1) .body strong,
main:has(.blog-h1) .body a { color: #111111; }
main:has(.blog-h1) .body h2 {
  margin: 96px 0 20px;
  color: #111111;
  font-size: clamp(22px, 2.35vw, 34px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: normal;
}
main:has(.blog-h1) .body h3 {
  margin: 40px 0 12px;
  color: #111111;
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}
main:has(.blog-h1) .body figure {
  margin: 96px 0 96px calc(-1 * (var(--section-label, clamp(110px, 13vw, 220px)) + var(--section-gap, clamp(24px, 4vw, 64px))));
}
main:has(.blog-h1) .body figure img { border-radius: 24px; }
main:has(.blog-h1) .body figcaption { color: #111111; font-size: 13px; font-weight: 600; }
main:has(.blog-h1) .share a { border: 0; background: #F4F3F0; }
main:has(.blog-h1) .share a:hover { background: #ECEAE6; }
main:has(.blog-h1) .author { background: #F4F3F0; }
main:has(.blog-h1) .author p,
main:has(.blog-h1) .author b { font-size: clamp(14px, 1.05vw, 17px); }

/* Post: STEP 1, STEP 2... in caps in the left column, like the section labels */
main:has(.blog-h1) .body h2[data-step] { position: relative; }
main:has(.blog-h1) .body h2[data-step]::before {
  content: attr(data-step);
  position: absolute;
  top: 0.32em;
  left: calc(-1 * (var(--section-label, clamp(110px, 13vw, 220px)) + var(--section-gap, clamp(24px, 4vw, 64px))));
  width: var(--section-label, clamp(110px, 13vw, 220px));
  color: #EE7B5A;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
@media (max-width: 820px) {
  main:has(.blog-h1) .body h2[data-step]::before { position: static; display: block; margin: 0 0 14px; }
}

@media (max-width: 1100px) {
  main:has(.blog-h1) .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  main:has(.blog-h1) > .wrap,
  main:has(.blog-h1) > .cover { padding-inline: 20px; }
  main:has(.blog-h1) > .wrap:has(> .body) { grid-template-columns: minmax(0, 1fr); }
  main:has(.blog-h1) > .wrap:has(> .body) > * { grid-column: 1; }
  main:has(.blog-h1) .body figure { margin-left: 0; }
}
@media (max-width: 560px) {
  main:has(.blog-h1) .list { grid-template-columns: 1fr; }
}

/* 2026-11-09: note above the projects (prototypes inside the screens) and the Tech section (same cards as Services) */
.intro-main > .work-kicker + .work-note { margin: 0 0 clamp(28px, 3vw, 44px); }
.intro-main > .work-note { max-width: 720px; color: #111; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.intro-main > .work-note + .projects { margin-top: 0; }
@media (max-width: 820px) {
  .intro-main > .work-kicker + .work-note { margin: 0 0 24px; }
}
#tech > .section-kicker { transform: translateY(-13px); }
#tech-title { max-width: none; font-weight: 700; }
#tech .tech-lead { max-width: 720px; margin: 0 0 clamp(28px, 3vw, 48px); color: #111; font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; line-height: 1.3; letter-spacing: 0; }
#tech .service { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: clamp(34px, 4vw, 58px); min-height: 0; padding: clamp(18px, 2vw, 34px); }
#tech .service .number { display: none; }
#tech .service > div { display: contents; }
#tech .service h3, #tech .service ul { margin: 0; align-self: start; }
#tech .service li { white-space: normal; }

/* 2026-11-10: Experience - second paragraph about leading Emote Agency */
#about .exp-copy + .exp-emote { margin-top: 1em; }
#about .exp-emote a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
