:root {
  --accent: #FF5A1F;
  --ink: #15131A;
  --paper: #FAFAF7;

  --font-body: "Manrope", system-ui, sans-serif;
  --font-accent: "Fira Code", ui-monospace, monospace;

  --z-slash: 0;
  --z-content: 10;
  --z-header: 20;
  --z-menu: 30;
  --z-progress: 60;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
p, h1 { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* the slash from the logo, scaled up */
.slash {
  position: absolute;
  z-index: var(--z-slash);
  top: -10%;
  right: -11%;
  width: clamp(48px, 7vw, 120px);
  height: 120%;
  background: var(--accent);
  transform: skewX(-22deg);
  transform-origin: top right;
}

.header {
  position: relative;
  z-index: var(--z-header);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: max(28px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) 0 max(40px, env(safe-area-inset-left));
}
.header__brand { justify-self: start; }
.header__brand img { width: clamp(200px, 20vw, 300px); }

.nav { display: flex; gap: clamp(20px, 2.6vw, 40px); justify-self: center; }
.nav__link {
  font-family: var(--font-accent);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease-out;
}
.nav__link:hover { border-bottom-color: var(--paper); }

.header__actions { justify-self: end; display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.lang { position: relative; }
.lang__current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: transparent;
  border: 1.5px solid var(--paper);
  border-radius: 999px;
  color: var(--paper);
  font: 700 15px var(--font-accent);
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.lang__current:hover, .lang__current[aria-expanded="true"] { background: var(--paper); color: var(--ink); }
.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  z-index: var(--z-menu);
}
.lang__menu[hidden] { display: none; }
.lang__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: 0;
  border-radius: 4px;
  color: inherit;
  font: 500 14px var(--font-body);
  text-align: left;
  cursor: pointer;
}
.lang__opt:hover { background: rgb(21 19 26 / 0.08); }
.lang__opt[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.main {
  position: relative;
  z-index: var(--z-content);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px max(40px, env(safe-area-inset-right)) 48px max(40px, env(safe-area-inset-left));
}

.kicker {
  font-family: var(--font-accent);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 24px;
}

.title {
  display: flex;
  flex-direction: column;
  font-size: clamp(3.5rem, 13vw, 12rem);
  font-weight: 800;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}
.title__line--accent { color: var(--accent); }
html:not([lang="en"]) .title { font-size: clamp(3rem, 9vw, 9rem); line-height: 1; }

.sub {
  margin-top: 20px;
  font-family: var(--font-accent);
  font-size: clamp(1rem, 2.2vw, 1.75rem);
}

.bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(40px, 8vh, 96px);
  padding-top: 28px;
  border-top: 1px solid rgb(250 250 247 / 0.2);
}
.bottom__copy { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.lede { font-size: 17px; line-height: 1.6; text-wrap: pretty; }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.btn { font-size: 15px; font-weight: 600; text-decoration: none; }
.btn--primary {
  padding: 15px 26px;
  background: var(--accent);
  color: var(--ink);
  border-radius: 4px;
  transition: opacity 150ms ease-out;
}
.btn--primary:hover { opacity: 0.88; }
.btn--link { border-bottom: 1px solid var(--paper); padding-bottom: 2px; }

.points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 clamp(200px, 22vw, 400px) 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-accent);
  font-size: 13px;
}
.points li::before { content: "/ "; color: var(--accent); }

@media (max-width: 860px) {
  .slash { right: -14%; }
  .bottom { flex-direction: column; align-items: flex-start; }
  .points { margin-right: 0; }
}
@media (max-width: 900px) {
  .header { grid-template-columns: 1fr auto; grid-template-areas: "brand lang" "nav nav"; row-gap: 12px; }
  .header__brand { grid-area: brand; }
  .lang { grid-area: lang; }
  .nav { grid-area: nav; justify-self: start; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .header { padding-inline: 20px; }
  .header__brand img { width: 160px; }
  .nav__link { font-size: 11px; }
  .main { padding-inline: 20px; }
}

/* What we do */
.services {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-right)) clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-left));
}
.services__inner { max-width: 1280px; margin: 0 auto; }

.services__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  grid-template-areas: "eyebrow eyebrow" "title intro";
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.eyebrow { grid-area: eyebrow; font-family: var(--font-accent); font-size: 14px; color: var(--accent); }
.services__title {
  grid-area: title;
  margin: 0;
  font-size: clamp(2.75rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
}
.services__intro { grid-area: intro; font-size: 17px; line-height: 1.6; text-wrap: pretty; }

.list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgb(21 19 26 / 0.2);
}
.item:hover .item__num { color: var(--accent); }
.item__num { font-family: var(--font-accent); font-size: 14px; transition: color 150ms ease-out; }
.item:hover .item__title { transform: translateX(12px); }
.item__title { transition: transform 150ms ease-out; margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 600; text-wrap: balance; }
.item__text { font-size: 16px; line-height: 1.6; text-wrap: pretty; max-width: 480px; }

@media (max-width: 860px) {
  .services__head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "intro"; }
  .item { grid-template-columns: 48px minmax(0, 1fr); }
  .item__text { grid-column: 2; }
}
@media (max-width: 560px) {
  .services { padding-inline: 20px; }
}

/* Why us */
.why {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-right)) clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-left));
}
.why__inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 8vw, 120px);
  max-width: 1280px;
  margin: 0 auto;
  align-items: start;
}
.why__side { container-type: inline-size; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.why__title {
  margin: 0;
  font-size: clamp(1.75rem, 16cqw, 7rem);
  overflow-wrap: break-word;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--accent);
}
.why__lead { font-size: 17px; line-height: 1.7; text-wrap: pretty; max-width: 480px; }

.reasons { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(250 250 247 / 0.3); }
.reason {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgb(250 250 247 / 0.15);
}
.reason__num { font-family: var(--font-accent); font-size: 14px; color: var(--accent); padding-top: 8px; }
.reason__title { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; text-wrap: balance; }
.reason__text { font-size: 16px; line-height: 1.7; text-wrap: pretty; opacity: 0.8; max-width: 560px; }

@media (max-width: 860px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__side { position: static; }
}
@media (max-width: 560px) {
  .why { padding-inline: 20px; }
  .reason { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
}

/* Process */
.process {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-right)) clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-left));
}
.process__inner { max-width: 1280px; margin: 0 auto; }
.process__head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 420px);
  grid-template-areas: "eyebrow eyebrow" "title intro";
  align-items: end;
  gap: 16px 48px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.process__head .eyebrow { grid-area: eyebrow; }
.process__title { grid-area: title; margin: 0; font-size: clamp(2.75rem, 9vw, 8rem); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
.process__intro { grid-area: intro; font-size: 17px; line-height: 1.6; text-wrap: pretty; }

.stepper { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

.tabs { display: flex; flex-direction: column; border-top: 1px solid rgb(21 19 26 / 0.2); }
.tab-btn {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 20px;
  width: 100%;
  padding: 28px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid rgb(21 19 26 / 0.2);
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 150ms ease-out;
}
.tab-btn:hover, .tab-btn[aria-selected="true"] { opacity: 1; }
.tab-btn__bar {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease-out;
}
.tab-btn[aria-selected="true"] .tab-btn__bar { transform: scaleX(1); }
.tab-btn__num { font-family: var(--font-accent); font-size: 14px; color: var(--accent); }
.tab-btn__title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; }

.panel { position: relative; padding: 8px 0 0; animation: panel-in 200ms ease-out; }
.panel[hidden] { display: none; }
.panel__num {
  display: block;
  font-size: clamp(6rem, 16vw, 14rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--accent);
  margin-bottom: 32px;
}
.panel__title { margin: 0 0 16px; font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 600; text-wrap: balance; }
.panel__text { font-size: 17px; line-height: 1.7; text-wrap: pretty; max-width: 520px; }
.panel__list { margin: 28px 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-family: var(--font-accent); font-size: 13px; }
.panel__list li::before { content: "/ "; color: var(--accent); }
.panel__next {
  display: inline-block;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 4px;
  font: 600 15px var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 150ms ease-out;
}
.panel__next:hover { opacity: 0.85; }

/* auto-advance: the bar fills over 10s, then JS moves to the next step */
.stepper.is-auto .tab-btn[aria-selected="true"] .tab-btn__bar {
  transform: scaleX(0);
  animation: step-fill 10s linear forwards;
}
.stepper.is-auto.is-paused .tab-btn[aria-selected="true"] .tab-btn__bar { animation-play-state: paused; }
@keyframes step-fill { to { transform: scaleX(1); } }

@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .tab-btn, .tab-btn__bar { transition: none; }
}

@media (max-width: 860px) {
  .process__head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "intro"; }
  .stepper { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process { padding-inline: 20px; }
  .tab-btn { padding: 20px 0; }
}

/* FAQ */
.faq {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-right)) clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-left));
}
.faq__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 8vw, 120px); max-width: 1280px; margin: 0 auto; align-items: start; }
.faq__side { container-type: inline-size; display: flex; flex-direction: column; gap: 24px; }
.faq__title { margin: 0; font-size: clamp(1.75rem, 12cqw, 5rem); overflow-wrap: break-word; font-weight: 800; line-height: 0.95; text-transform: uppercase; text-wrap: balance; }
.faq__intro { font-size: 17px; line-height: 1.6; max-width: 400px; text-wrap: pretty; }

.faq__list { border-top: 1px solid var(--ink); }
.qa { border-bottom: 1px solid rgb(21 19 26 / 0.2); }
.qa__q { display: flex; align-items: baseline; gap: 20px; padding: 28px 0; cursor: pointer; list-style: none; }
.qa__q::-webkit-details-marker { display: none; }
.qa__num { font-family: var(--font-accent); font-size: 14px; color: var(--accent); }
.qa__title { flex: 1; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; text-wrap: balance; }
.qa__icon { position: relative; flex: none; width: 16px; height: 16px; align-self: center; }
.qa__icon::before, .qa__icon::after { content: ""; position: absolute; background: var(--ink); transition: transform 150ms ease-out; }
.qa__icon::before { inset: 7px 0; }
.qa__icon::after { inset: 0 7px; }
.qa[open] .qa__icon::after { transform: scaleY(0); }
.qa__q:hover .qa__title { color: var(--accent); }
.qa__a { padding: 0 36px 28px 44px; font-size: 16px; line-height: 1.7; text-wrap: pretty; max-width: 600px; }

/* Contact */
.contact {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-right)) clamp(72px, 12vw, 160px) max(40px, env(safe-area-inset-left));
}
.contact__inner { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 96px); max-width: 1280px; margin: 0 auto; }
.contact__side { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "eyebrow eyebrow" "title lead" "title links"; column-gap: 48px; row-gap: 20px; align-items: end; }
.contact__side .eyebrow { grid-area: eyebrow; }
.contact__title { grid-area: title; margin: 0; font-size: clamp(2.75rem, 9vw, 8rem); font-weight: 800; line-height: 0.95; text-transform: uppercase; color: var(--accent); align-self: start; }
.contact__lead { grid-area: lead; font-size: 17px; line-height: 1.7; text-wrap: pretty; }
.contact__links { grid-area: links; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(250 250 247 / 0.3); }
.contact__links li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgb(250 250 247 / 0.15); font-family: var(--font-accent); font-size: 13px; }
.contact__links span { opacity: 0.6; }
.contact__links a { text-decoration: none; }
.contact__links a:hover { color: var(--accent); }

/* sentence-style form */
.form { border-top: 1px solid rgb(250 250 247 / 0.3); padding-top: clamp(32px, 5vw, 56px); max-width: 1100px; }
.sentence { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.875rem); font-weight: 500; line-height: 1.8; text-wrap: pretty; }

.inl {
  display: inline-block;
  max-width: 100%;
  padding: 0 4px;
  background: transparent;
  color: var(--accent);
  border: 0;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
  font: inherit;
  line-height: 1.3;
  color-scheme: dark;
  transition: background-color 150ms ease-out;
}
.inl:hover { background: rgb(255 90 31 / 0.12); }
.inl:focus { outline: none; background: rgb(255 90 31 / 0.18); }
.inl::placeholder { color: rgb(255 90 31 / 0.45); }
select.inl { appearance: none; cursor: pointer; }
select.inl option { background: var(--ink); color: var(--paper); font-size: 16px; }
select.inl:has(option[value=""]:checked) { color: rgb(255 90 31 / 0.55); border-bottom-style: dashed; }
.inl--email { width: 9em; }
.inl--phone { width: 11em; }
.inl[aria-invalid="true"] { background: rgb(255 90 31 / 0.18); }

.form__msg-label { display: block; margin-top: 40px; font-family: var(--font-accent); font-size: 13px; text-transform: uppercase; opacity: 0.7; }
.msg {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 0;
  background: transparent;
  color: var(--paper);
  border: 0;
  border-bottom: 1px solid rgb(250 250 247 / 0.4);
  border-radius: 0;
  font: 500 clamp(1rem, 1.6vw, 1.25rem) var(--font-body);
  line-height: 1.5;
  resize: vertical;
  min-height: 96px;
  transition: border-color 150ms ease-out;
}
.msg::placeholder { color: rgb(250 250 247 / 0.3); }
.msg:hover { border-bottom-color: var(--paper); }
.msg:focus { outline: none; border-bottom-color: var(--accent); }
.msg[aria-invalid="true"] { border-bottom-color: var(--accent); }

.field__error { margin: 10px 0 0; font-family: var(--font-accent); font-size: 12px; color: var(--accent); }
.field__error:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border: 1px solid rgb(250 250 247 / 0.5); border-radius: 3px; background: transparent; cursor: pointer; display: grid; place-content: center; }
.check input::after { content: ""; width: 10px; height: 10px; background: var(--accent); transform: scale(0); transition: transform 120ms ease-out; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.check input:checked { border-color: var(--accent); }
.check input:checked::after { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input[aria-invalid="true"] { border-color: var(--accent); }

.form__submit {
  margin-top: 32px;
  padding: 18px 32px;
  background: var(--accent);
  color: var(--ink);
  border: 0;
  border-radius: 4px;
  font: 700 18px var(--font-body);
  cursor: pointer;
  transition: opacity 150ms ease-out;
}
.form__submit:hover { opacity: 0.88; }
.form__submit::after { content: " →"; }
.form__status { margin-top: 16px; font-family: var(--font-accent); font-size: 13px; line-height: 1.6; }
.form__status:empty { display: none; }

@media (max-width: 860px) {
  .contact__side { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "lead" "links"; }
}
@media (max-width: 560px) {
  .contact { padding-inline: 20px; }
  .form__submit { width: 100%; }
}

/* Pop-up */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  overflow: auto;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.5);
}
.modal::backdrop { background: rgb(21 19 26 / 0.8); }
.modal[open] { animation: modal-in 200ms ease-out; }
.modal[open]::backdrop { animation: fade-in 200ms ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .modal[open], .modal[open]::backdrop { animation: none; } }

.modal__box { padding: clamp(24px, 5vw, 44px); border-top: 6px solid var(--accent); }
.modal__eyebrow { margin: 0 0 12px; font-family: var(--font-accent); font-size: 13px; color: var(--accent); }
.modal__title { margin: 0 0 16px; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.05; text-wrap: balance; }
.modal__text { margin: 0; font-size: 16px; line-height: 1.7; text-wrap: pretty; }
.modal__text--small { margin-top: 20px; font-size: 14px; opacity: 0.8; }
.modal__text a { border-bottom: 1px solid currentColor; text-decoration: none; }
.modal__list { margin: 24px 0 0; display: flex; flex-direction: column; border-top: 1px solid rgb(21 19 26 / 0.25); }
.modal__list:empty { display: none; }
.modal__list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgb(21 19 26 / 0.12); font-size: 14px; }
.modal__list dt { font-family: var(--font-accent); font-size: 12px; opacity: 0.6; }
.modal__list dd { margin: 0; font-weight: 600; text-align: right; }
.modal__close {
  margin-top: 28px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 4px;
  font: 700 16px var(--font-body);
  cursor: pointer;
  transition: opacity 150ms ease-out;
}
.modal__close:hover { opacity: 0.85; }

/* Footer */
.footer {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(56px, 8vw, 96px) max(40px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
}
.footer__inner { max-width: 1280px; margin: 0 auto; }
.footer__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; }
.footer__slogan { margin: 0; font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 800; line-height: 1.05; text-wrap: balance; max-width: 520px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer__head { margin: 0 0 8px; font-family: var(--font-accent); font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--accent); }
.footer__col a { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 150ms ease-out; }
.footer__col a:hover { border-bottom-color: var(--ink); }
.footer__logo { width: 100%; margin: clamp(48px, 8vw, 96px) 0 32px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid rgb(21 19 26 / 0.2); font-family: var(--font-accent); font-size: 12px; }

@media (max-width: 860px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__slogan { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer { padding-inline: 20px; }
  .footer__bottom { flex-direction: column; }
}

/* Animation (only when the visitor has not asked for reduced motion) */
.anim .header { animation: fade-in 600ms ease-out both; }
.anim .kicker { animation: rise 700ms ease-out 150ms both; }
.anim .title__line:nth-child(1) { animation: rise 800ms ease-out 250ms both; }
.anim .title__line:nth-child(2) { animation: rise 800ms ease-out 400ms both; }
.anim .sub { animation: rise 700ms ease-out 600ms both; }
.anim .bottom { animation: rise 700ms ease-out 750ms both; }
.anim .slash { animation: slash-in 1000ms ease-out 300ms both; }

@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes slash-in { from { opacity: 0; transform: skewX(-22deg) translateY(-60px); } to { opacity: 1; transform: skewX(-22deg); } }

/* scroll reveal */
.anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
  transition-delay: var(--d, 0ms);
}
.anim [data-reveal].is-in { opacity: 1; transform: none; }

/* More life */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: var(--z-progress);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.slash { translate: 0 calc(var(--py, 0) * 1px); }

/* hover micro-interactions */
.btn--primary { transition: opacity 150ms ease-out, transform 150ms ease-out; }
.btn--primary:hover { transform: translateY(-2px); }
.item, .reason { position: relative; }
.item::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease-out;
}
.item:hover::after { transform: scaleX(1); }
.title__line--accent { display: inline-block; transition: transform 200ms ease-out; }
.title:hover .title__line--accent { transform: translateX(12px); }
.footer__col .ico { flex: none; color: var(--accent); }
.footer__col a:hover .ico { transform: translateY(-2px); }
.footer__col .ico { transition: transform 150ms ease-out; }

/* Our Works page */
.nav__link[aria-current="page"] { border-bottom-color: var(--accent); }

.page-hero { position: relative; background: var(--ink); color: var(--paper); }
.page-hero__inner { width: min(1280px, calc(100% - 80px)); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.page-hero__title { margin: 0; font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 800; line-height: 0.95; text-transform: uppercase; }
.page-hero__count { margin-left: 6px; font-family: var(--font-accent); font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 500; color: var(--accent); vertical-align: top; }
.page-hero__side { max-width: 420px; }
.page-hero__lead { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; color: var(--accent); text-wrap: balance; }
.page-hero__text { margin-top: 10px; font-size: 16px; line-height: 1.7; opacity: 0.85; text-wrap: pretty; }

.cards { background: var(--ink); color: var(--ink); padding: 0 0 clamp(64px, 9vw, 120px); }
.cards__grid { width: min(1280px, calc(100% - 80px)); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }

.card { display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; overflow: hidden; transition: transform 200ms ease-out; }
.card:hover { transform: translateY(-4px); }
.card__media { position: relative; display: block; margin: 12px 12px 0; border-radius: 8px; overflow: hidden; background: var(--ink); }
.card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 200ms ease-out; }
.card:hover .card__media img { transform: scale(1.03); }
.card__badge { position: absolute; top: 12px; left: 12px; padding: 6px 12px; background: var(--accent); color: var(--ink); border-radius: 999px; font-family: var(--font-accent); font-size: 12px; font-weight: 500; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 3vw, 32px); }
.card__eyebrow { margin-bottom: 10px; font-family: var(--font-accent); font-size: 12px; color: var(--accent); }
.card__name { margin: 0 0 14px; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.05; text-wrap: balance; }
.card__desc { font-size: 15px; line-height: 1.65; text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li { padding: 5px 12px; border: 1px solid rgb(21 19 26 / 0.35); border-radius: 999px; font-family: var(--font-accent); font-size: 11px; }

.more { margin-top: 20px; border-top: 1px solid rgb(21 19 26 / 0.2); }
.more__sum { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 15px; }
.more__sum::-webkit-details-marker { display: none; }
.more__sum:hover span { color: var(--accent); }
.more__icon { position: relative; flex: none; width: 14px; height: 14px; }
.more__icon::before, .more__icon::after { content: ""; position: absolute; background: var(--ink); transition: transform 150ms ease-out; }
.more__icon::before { inset: 6px 0; }
.more__icon::after { inset: 0 6px; }
.more[open] .more__icon::after { transform: scaleY(0); }
.more__sub { margin: 4px 0 8px; font-size: 18px; font-weight: 700; text-wrap: balance; }
.more__p { font-size: 14px; line-height: 1.65; opacity: 0.85; text-wrap: pretty; }
.checks { margin: 16px 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; font-size: 14px; line-height: 1.5; }
.checks li::before { content: "/"; font-family: var(--font-accent); color: var(--accent); }

.card__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: auto; padding-top: 24px; }
.card__btn { padding: 13px 22px; background: var(--ink); color: var(--paper); border-radius: 4px; font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity 150ms ease-out; }
.card__btn:hover { opacity: 0.85; }
.card__link { font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link--out::after { content: " ↗"; }

.cta { background: var(--accent); color: var(--ink); padding: clamp(56px, 9vw, 120px) max(40px, env(safe-area-inset-right)) clamp(56px, 9vw, 120px) max(40px, env(safe-area-inset-left)); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px; max-width: 1280px; margin: 0 auto; }
.cta__title { margin: 0; max-width: 760px; font-size: clamp(2rem, 5.5vw, 4.5rem); font-weight: 800; line-height: 1; text-wrap: balance; }
.cta__btn { padding: 18px 32px; background: var(--ink); color: var(--paper); border-radius: 4px; font-size: 18px; font-weight: 700; text-decoration: none; transition: transform 150ms ease-out; }
.cta__btn:hover { transform: translateY(-2px); }

@media (max-width: 960px) {
  .cards__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .page-hero__inner, .cards__grid { width: calc(100% - 40px); }
  .cta { padding-inline: 20px; }
}

/* Translated headings are longer: keep them inside their own column */
html:not([lang="en"]) .services__title,
html:not([lang="en"]) .process__title,
html:not([lang="en"]) .contact__title { font-size: clamp(1.75rem, 4.2vw, 4.25rem); overflow-wrap: break-word; }
html:not([lang="en"]) .page-hero__title { font-size: clamp(2rem, 6.5vw, 6rem); overflow-wrap: break-word; }
html:not([lang="en"]) .cta__title { font-size: clamp(1.75rem, 4.5vw, 3.75rem); }
html:not([lang="en"]) .title { font-size: clamp(2.25rem, 9vw, 9rem); }
.faq__side, .why__side, .contact__side > *, .faq__inner > *, .why__inner > * { min-width: 0; }
.title__line, .title { overflow-wrap: anywhere; }
/* room for diacritics (Ă, Ș, Ț, Й) so lines of a heading don't touch */
html:not([lang="en"]) .services__title,
html:not([lang="en"]) .why__title,
html:not([lang="en"]) .process__title,
html:not([lang="en"]) .contact__title,
html:not([lang="en"]) .page-hero__title,
html:not([lang="en"]) .cta__title,
html:not([lang="en"]) .title { line-height: 1.12; }

/* FAQ: single column on tablets and phones */
@media (max-width: 860px) {
  .faq__inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .faq { padding-inline: 20px; }
  .qa__a { padding-left: 0; padding-right: 0; }
}

/* ---------- Tablet & mobile ---------- */
.menu-btn { display: none; position: relative; width: 46px; height: 46px; padding: 0; background: transparent; border: 1.5px solid var(--paper); border-radius: 999px; cursor: pointer; }
.menu-btn span { position: absolute; left: 14px; width: 15px; height: 2px; background: var(--paper); transition: transform 200ms ease-out; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.header__brand { position: relative; z-index: 2; }

@media (max-width: 1024px) {
  .slash { width: clamp(32px, 5vw, 64px); right: 2%; transform: skewX(-10deg); }
  @keyframes slash-in { from { opacity: 0; transform: skewX(-10deg) translateY(-60px); } to { opacity: 1; transform: skewX(-10deg); } }
}

@media (max-width: 1024px) {
  .header { grid-template-columns: 1fr auto; grid-template-areas: "brand actions"; row-gap: 0; }
  .header__brand { grid-area: brand; }
  .header__actions { grid-area: actions; }
  .menu-btn { display: block; }

  .nav {
    position: fixed;
    inset: 0;
    justify-self: stretch;
    align-self: stretch;
    width: auto;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: 96px max(24px, env(safe-area-inset-right)) 40px max(24px, env(safe-area-inset-left));
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s linear 200ms;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__link { padding: 10px 0; font-family: var(--font-body); font-size: clamp(1.75rem, 9vw, 2.5rem); font-weight: 800; text-transform: uppercase; border-bottom-width: 2px; }
  .nav__link[aria-current="page"] { border-bottom-color: var(--accent); }
  body.menu-open { overflow: hidden; }
  .header { position: relative; }
  body.menu-open .header { position: relative; }
}

@media (max-width: 560px) {
  .slash { top: auto; bottom: -20px; height: 240px; width: 30px; right: 28px; transform: skewX(-14deg); transform-origin: bottom right; }
  @keyframes slash-in { from { opacity: 0; transform: skewX(-14deg) translateY(60px); } to { opacity: 1; transform: skewX(-14deg); } }
  .hero .main { padding-top: 40px; }
  .lang__current { padding: 10px 14px; font-size: 14px; }
  .header__brand img { width: 150px; }
}

/* Footer: back-to-top button */
.footer__bottom { align-items: center; }
.to-top { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-accent); font-size: 13px; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.to-top__icon { display: grid; place-items: center; width: 52px; height: 52px; background: var(--accent); color: var(--ink); border-radius: 50%; transition: transform 150ms ease-out; }
.to-top:hover .to-top__icon { transform: translateY(-4px); }

/* Burger menu (tablet + phone): the language switcher lives inside the opened menu */
@media (max-width: 1024px) {
  .nav .lang { margin-top: 36px; }
  .nav .lang__current { display: none; }
  .nav .lang__menu, .nav .lang__menu[hidden] {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .nav .lang__opt {
    width: auto;
    padding: 12px 22px;
    border: 1.5px solid var(--paper);
    border-radius: 999px;
    color: var(--paper);
    font: 700 16px var(--font-body);
  }
  .nav .lang__opt:hover { background: rgb(250 250 247 / 0.12); }
  .nav .lang__opt[aria-current="true"] { background: var(--paper); color: var(--ink); }
  .nav .lang__opt[aria-current="true"]::after { content: none; }
}

/* Contrast fixes: small orange text on the light background was ~3:1, so on light sections the text is ink and only the "/" stays orange */
.services .eyebrow, .process .eyebrow, .faq .eyebrow { color: var(--ink); }
.tab-btn__num, .qa__num { color: var(--ink); }
.tab-btn { opacity: 0.6; }
.footer__head, .card__eyebrow { color: var(--ink); opacity: 0.75; }
.footer__head::before, .card__eyebrow::before { content: "/ "; color: var(--accent); opacity: 1; }
/* placeholders in the dark form */
.inl::placeholder { color: rgb(255 90 31 / 0.8); }
select.inl:has(option[value=""]:checked) { color: rgb(255 90 31 / 0.8); }
.msg::placeholder { color: rgb(250 250 247 / 0.55); }

.form__hint { margin: 0 0 12px; font-family: var(--font-accent); font-size: 13px; opacity: 0.75; }
.form__hint::before { content: "/ "; color: var(--accent); }

/* Romanian: same big heading as English, wrapping by word instead of shrinking */
html[lang="ro"] .page-hero__title { font-size: clamp(2.5rem, 9vw, 7.5rem); line-height: 1.02; flex: 1 1 520px; min-width: 0; overflow-wrap: normal; }

/* Select dropdown: quiet, dark list that matches the form (modern Chrome/Edge); other browsers keep the native list */
select.inl { color-scheme: dark; }
select.inl option { font-size: 15px; }
@supports (appearance: base-select) {
  select.inl, select.inl::picker(select) { appearance: base-select; }
  select.inl::picker-icon { display: none; }
  select.inl::picker(select) {
    background: var(--ink);
    color: var(--paper);
    border: 1px solid rgb(250 250 247 / 0.2);
    border-radius: 8px;
    padding: 4px;
    margin-top: 6px;
    box-shadow: none;
    font-family: var(--font-body, inherit);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
  }
  select.inl option { padding: 7px 12px; border-radius: 5px; background: transparent; color: var(--paper); }
  select.inl option::checkmark { display: none; }
  select.inl option:hover, select.inl option:focus-visible { background: rgb(250 250 247 / 0.1); }
  select.inl option:checked { color: var(--accent); background: transparent; }
}

/* footer legal links */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer__legal a, .footer__legal button { padding: 0; background: none; border: 0; border-bottom: 1px solid transparent; font: inherit; color: inherit; cursor: pointer; text-decoration: none; transition: border-color 150ms ease-out; }
.footer__legal a:hover, .footer__legal button:hover { border-bottom-color: var(--ink); }
.footer__legal a:focus-visible, .footer__legal button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.modal__actions .modal__close { margin-top: 0; }
.modal__ghost { padding: 0; background: none; border: 0; border-bottom: 1px solid currentColor; font: inherit; font-size: 14px; color: inherit; cursor: pointer; }
.modal__ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* privacy page */
.page-hero--doc .page-hero__title { font-size: clamp(2.5rem, 8vw, 6.5rem); }
html:not([lang="en"]) .page-hero--doc .page-hero__title { font-size: clamp(2rem, 6vw, 5rem); overflow-wrap: break-word; }
.doc { background: var(--paper); color: var(--ink); padding: clamp(48px, 7vw, 96px) 0; }
.doc__inner { width: min(760px, calc(100% - 40px)); margin: 0 auto; }
.doc__meta { margin: 0 0 32px; font-family: var(--font-accent); font-size: 13px; opacity: 0.7; }
.doc h2 { margin: 40px 0 12px; font-size: clamp(1.25rem, 2.4vw, 1.625rem); font-weight: 800; line-height: 1.2; }
.doc p, .doc li { font-size: 17px; line-height: 1.75; text-wrap: pretty; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 22px; }
.doc a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }

.inl--name { width: 7em; }

/* footer: 4 columns with Legal */
@media (min-width: 861px) { .footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 2.5fr) minmax(0, 2.5fr) minmax(0, 3fr); } }
.footer__link { padding: 0; background: none; border: 0; border-bottom: 1px solid transparent; font: inherit; font-size: 16px; color: inherit; cursor: pointer; text-align: left; transition: border-color 150ms ease-out; }
.footer__link:hover { border-bottom-color: var(--ink); }
.footer__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Cookie consent banner (first visit, non-blocking) */
.modal.modal--banner {
  position: fixed;
  inset: auto 16px 16px auto;
  margin: 0;
  width: min(440px, calc(100% - 32px));
  z-index: 100;
}
.modal--banner .modal__box { padding: 22px 24px; }
.modal--banner .modal__title { font-size: 1.35rem; margin-bottom: 10px; }
.modal--banner .modal__text { font-size: 14px; line-height: 1.6; }
.modal--banner .modal__list { display: none; }
.modal--banner .modal__actions { margin-top: 18px; }
.modal--banner [data-cookie-clear] { display: none; }

/* Thank-you page */
.ty__kicker { display: inline-flex; align-items: center; gap: 12px; }
.ty__check { flex: none; }
.ty__ring { stroke-dasharray: 66; stroke-dashoffset: 0; }
.ty__tick { stroke-dasharray: 16; stroke-dashoffset: 0; }
.ty__name { color: var(--paper); }
.ty__steps { counter-reset: ty; }
.ty__steps li { counter-increment: ty; }
.ty__steps li::before { content: "0" counter(ty) " / "; }
.ty .cta__title { max-width: 820px; }

.anim .ty__ring { animation: ty-draw 700ms ease-out 500ms both; --len: 66; }
.anim .ty__tick { animation: ty-draw 400ms ease-out 1100ms both; --len: 16; }
.anim .ty__check { animation: ty-pop 500ms cubic-bezier(.3, 1.6, .5, 1) 1300ms both; }
.anim .ty__steps li { animation: rise 600ms ease-out both; }
.anim .ty__steps li:nth-child(1) { animation-delay: 950ms; }
.anim .ty__steps li:nth-child(2) { animation-delay: 1080ms; }
.anim .ty__steps li:nth-child(3) { animation-delay: 1210ms; }
.anim .ty .title__line--accent { animation: rise 800ms ease-out 400ms both, ty-nudge 900ms ease-in-out 1500ms 1; }

@keyframes ty-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes ty-pop { 0% { transform: scale(1); } 50% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes ty-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(16px); } }
