/* tacto — agency site. One stylesheet for every page; colours, type and spacing are tokens. */
:root {
  --paper: #F3EFE7;
  --white: #FFFFFF;
  --ink: #141414;
  --ink-2: #3A3732;
  --muted: #6F6A62;
  --orange: #FF5A36;
  --orange-hover: #E8492A;
  --yellow: #FFD84D;
  --lilac: #C9C2FF;
  --pink: #FFC9DE;
  --mint: #BFEAD5;
  --line-dark: #2C2C2C;
  --line-light: #E2DCD1;

  --sans: 'Bricolage Grotesque', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --edge: clamp(10px, 1.6vw, 20px);   /* page side margin */
  --gap: 12px;                         /* space between blocks */
  --pad: clamp(24px, 4.5vw, 64px);     /* inside large cards */
  --pad-sm: clamp(22px, 2.4vw, 28px);  /* inside tiles */
  --section: clamp(56px, 8vw, 112px);  /* space above a new section */
  --r-xl: 32px;
  --r-lg: 24px;
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--lilac); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
mark { background: var(--yellow); color: inherit; border-radius: .18em; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
/* Highlight sits behind the letters, so it never hides the line above (tight line-height) */
h1, h2 { isolation: isolate; }
h1 mark, h2 mark { position: relative; z-index: -1; }
.mark--lilac { background: var(--lilac); }

.skip { position: absolute; left: var(--edge); top: -100px; z-index: 20; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 10px; }

.page { max-width: 1320px; margin: 0 auto; padding: var(--gap) var(--edge) 20px; display: flex; flex-direction: column; gap: var(--gap); }
main { display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- Type ---------- */
.mono { font-family: var(--mono); font-size: 12px; line-height: 1.4; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.45; max-width: 27em; color: var(--ink-2); text-wrap: pretty; }
.h2 { font-size: clamp(42px, 6.4vw, 96px); font-weight: 700; letter-spacing: -.055em; line-height: .92; }

/* ---------- Wordmark ---------- */
.wordmark { font-size: 24px; font-weight: 800; letter-spacing: -.05em; line-height: 1; display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.wordmark--light { font-size: 26px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--orange); color: var(--white); border: 0; border-radius: 999px; font: inherit; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--orange-hover); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--small { padding: 11px 20px; font-size: 15px; }
.btn--big { padding: 10px 10px 10px 26px; font-size: 17px; }
.btn__arrow { width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 20px; flex: none; }

/* ---------- Header (same on every page, stays on screen) ---------- */
.top { position: sticky; top: var(--gap); z-index: 10; height: var(--header-h); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 10px 0 22px; background: var(--white); border-radius: 999px; box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.top__nav { display: flex; gap: 4px; align-items: center; margin-left: auto; font-size: 15px; font-weight: 500; }
.top__link { padding: 10px 16px; border-radius: 999px; transition: background .2s; }
.top__link:hover, .top__link[aria-current="page"] { background: var(--paper); }
.top__end { display: flex; align-items: center; gap: 6px; }
.lang-switch { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 10px 12px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.lang-switch:hover { background: var(--paper); color: var(--ink); }

/* Burger: only on narrow screens, where the links move into a drop-down panel under the header */
.burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--paper); cursor: pointer; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, background .2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.is-open .burger span { background: transparent; }
.is-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.is-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: grid; }
  .top__nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; background: var(--white); border-radius: 24px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35); font-size: 20px; font-weight: 600; }
  .is-open .top__nav { display: flex; }
  .top__link { padding: 14px 16px; border-radius: 16px; }
}

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--r-xl); padding: var(--pad); }
.section { margin-top: var(--section); }

/* ---------- Hero: fills the screen under the header, never taller ---------- */
.hero {
  min-height: min(calc(100svh - var(--header-h) - 3 * var(--gap)), 820px); /* full screen, but no empty wall on tall tablets */
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(20px, 4svh, 48px);
  padding-block: clamp(24px, min(5vw, 7svh), 72px);
}
.hero__title { font-size: clamp(42px, min(9.2vw, 15svh), 148px); font-weight: 700; line-height: .92; letter-spacing: -.055em; max-width: 11em; text-wrap: balance; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 28px; flex-wrap: wrap; }
.hero--short { min-height: 0; }

/* ---------- Three promises ---------- */
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { border-radius: var(--r-xl); padding: var(--pad-sm); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 300px; transition: transform .3s; }
.tile:hover { transform: translateY(-4px); }
.tile__text { display: flex; flex-direction: column; gap: 8px; }
.tile h2 { font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.tile p { font-size: 16px; line-height: 1.45; }
.tile--pink { background: var(--pink); }
.tile--pink p { color: #5A2B3C; }
.tile--mint { background: var(--mint); }
.tile--mint p { color: #1F4D3A; }
.tile--dark { background: var(--ink); color: var(--white); }
.tile--dark p { color: #B5B0A8; }

.price-edit { align-self: flex-start; min-width: min(100%, 240px); background: var(--white); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 10px 24px -14px rgba(120, 30, 60, .35); transform: rotate(-2deg); }
.price-edit__label { font-family: var(--mono); font-size: 11px; color: #9B8A90; }
.price-edit__value { display: flex; align-items: center; gap: 2px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.caret { width: 2px; height: 28px; background: var(--ink); border-radius: 2px; }

.credits { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.credits__num { font-size: clamp(72px, 8vw, 112px); font-weight: 800; letter-spacing: -.07em; line-height: .8; }
/* 30 dots, 22 filled: three dot grids drawn in CSS (10 per row, 8px dots, 12px apart) */
.credits__dots { position: relative; flex: none; width: 116px; height: 32px; background: radial-gradient(circle at 4px 4px, rgba(20, 20, 20, .18) 3.6px, transparent 4.1px) 0 0 / 12px 12px; }
.credits__dots::before, .credits__dots::after { content: ''; position: absolute; left: 0; background: radial-gradient(circle at 4px 4px, var(--ink) 3.6px, transparent 4.1px) 0 0 / 12px 12px; }
.credits__dots::before { top: 0; width: 116px; height: 20px; }
.credits__dots::after { top: 24px; width: 20px; height: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; background: #2A2A2A; font-size: 14px; line-height: 1.2; white-space: nowrap; }
.chip--yellow { background: var(--yellow); color: var(--ink); }

/* ---------- Section heading row (title left, small label right, same baseline) ---------- */
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 20px; flex-wrap: wrap; margin-bottom: clamp(16px, 2vw, 24px); }

/* ---------- Work ---------- */
.work { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 980px) { .work { grid-template-columns: repeat(3, minmax(0, 1fr)); } } /* never 2 + 1 orphan */
.project { --bg: var(--yellow); --stripe: #FFF1B8; --tone: #5C4A00; background: var(--bg); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.project--yellow { --bg: var(--yellow); --stripe: #FFF1B8; --tone: #5C4A00; }
.project--lilac { --bg: var(--lilac); --stripe: #E6E2FF; --tone: #352B80; }
.project--mint { --bg: var(--mint); --stripe: #E1F5EB; --tone: #1F4D3A; }
.project--pink { --bg: var(--pink); --stripe: #FFE4EE; --tone: #5A2B3C; }
.project__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__top .mono { color: var(--tone); }
.pill { padding: 7px 13px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 500; line-height: 1.2; }
.project__shot { aspect-ratio: 16 / 10.5; /* desktop captures (≈16:9) under a browser bar; phones get a phone frame below */ background: var(--white); border-radius: 18px; margin: 0 8px -48px; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .3); display: flex; flex-direction: column; overflow: hidden; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.project:hover .project__shot { transform: translateY(-14px) rotate(-1.5deg); }
.project__bar { display: flex; gap: 5px; padding: 12px 14px; border-bottom: 1px solid #EEE; }
.project__bar i { width: 8px; height: 8px; border-radius: 50%; background: #E6E2DA; }
.project__img { flex: 1; min-height: 0; display: block; background: var(--stripe); }
.project__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Phones: the screenshots are phone captures, so the frame becomes a phone (tall, no browser bar) */
@media (max-width: 759px) {
  .project__shot { aspect-ratio: 9 / 17; margin: 0 4px -40px; }
  .project__bar { display: none; }
}
.project__name { position: relative; background: var(--bg); margin: 0 -24px -24px; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 4px; }
.project__name h3 { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.project__name p { font-size: 15px; color: var(--tone); }

/* ---------- Comparison ---------- */
.compare { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }
.compare__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--paper); border-radius: 999px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { font: inherit; font-size: 15px; font-weight: 500; padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; background: transparent; color: var(--muted); transition: background .2s, color .2s, box-shadow .2s; }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.compare__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: var(--gap); }
.side { border-radius: var(--r-lg); padding: var(--pad-sm); }
.side--us { background: var(--ink); color: var(--white); }
.side--them { background: var(--paper); }
.side__head { display: flex; align-items: center; justify-content: space-between; height: 46px; margin-bottom: 8px; }
.side__name { font-size: 26px; font-weight: 700; letter-spacing: -.04em; color: var(--muted); }
.badge { font-family: var(--mono); font-size: 11px; padding: 6px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.row { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.side--us .row { border-top-color: var(--line-dark); }
.row__mark { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--line-light); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.row__mark--yes { background: var(--mint); }
.row__mark--mid { background: var(--yellow); }
.row__label { font-family: var(--mono); font-size: 11px; line-height: 1.6; text-transform: uppercase; letter-spacing: .05em; color: #9A948A; }
.side--us .row__label { color: #8E8981; }
.row__value { font-size: 18px; line-height: 1.35; color: #4A463F; }
.side--us .row__value { font-weight: 500; color: var(--white); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); border-radius: var(--r-xl); padding: var(--pad); display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.contact__intro { display: flex; flex-direction: column; gap: 24px; }
.contact__title { font-size: clamp(52px, 8.6vw, 140px); font-weight: 700; letter-spacing: -.06em; line-height: .88; }
.contact .lead { color: var(--white); max-width: 24em; }

.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #B5B0A8; }
.field small { color: #8E8981; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--white); background: #222; border: 1px solid var(--line-dark); border-radius: 14px; padding: 13px 16px; width: 100%; resize: vertical; transition: border-color .2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field [aria-invalid="true"] { border-color: var(--orange); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 6px; }
.form__status { font-size: 15px; color: #B5B0A8; }
.form__status.is-ok { color: var(--mint); }
.form__status.is-error { color: #FF9B85; }

/* ---------- Footer (same on every page) ---------- */
.foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 24px; padding: 24px 0 8px; }
.foot > :last-child { justify-self: end; }
.foot__nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot__nav a:hover { color: var(--ink); }

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  :root { --header-h: 56px; --r-xl: 26px; }
  body { font-size: 16px; }
  .top { padding: 0 6px 0 16px; gap: 8px; }
  .wordmark { font-size: 22px; }
  .lang-switch { padding: 10px 8px; }
  .btn--small { padding: 10px 14px; font-size: 14px; }
  .btn--big { font-size: 16px; padding-left: 22px; }
  .hero .btn--big { width: 100%; }
  .hero__title { font-size: min(13vw, 9svh); }
  /* Phones: full-screen hero; title + text + button sit together in the middle of the space under the label */
  .hero { justify-content: flex-start; gap: 28px; }
  .hero__title { margin-top: auto; }
  .hero__foot { margin-bottom: auto; }
  .tile { min-height: 0; gap: 32px; }
  .row__value { font-size: 17px; }
  .foot { grid-template-columns: 1fr auto; }
  .foot__nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile, .project__shot { transition: none; }
}

/* ---------- Pricing page ---------- */
.plans { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { background: var(--white); border-radius: var(--r-xl); padding: var(--pad); display: flex; flex-direction: column; gap: 18px; }
.plan--dark { background: var(--ink); color: var(--white); }
.plan--dark .mono { color: #B5B0A8; }
.plan__price { font-size: clamp(56px, 7vw, 96px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.plan__price small { font-size: .3em; font-weight: 600; letter-spacing: -.02em; }
.checklist { display: flex; flex-direction: column; border-top: 1px solid var(--line-light); }
.plan--dark .checklist { border-top-color: var(--line-dark); }
.checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 17px; line-height: 1.4; }
.plan--dark .checklist li { border-bottom-color: var(--line-dark); }
.checklist li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }

.credits-info { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 36px); }
.credits-info__intro { display: flex; flex-direction: column; gap: 16px; }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 32px; }
.credit-grid li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-light); font-size: 17px; }
.credit-grid strong { white-space: nowrap; }
.credits-info__note { font-size: 15px; color: var(--muted); }

.owner { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ---------- About page ---------- */
.team { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.member { --bg: var(--pink); background: var(--bg); border-radius: var(--r-xl); padding: var(--pad-sm); display: flex; flex-direction: column; gap: 20px; }
.member--pink { --bg: var(--pink); }
.member--lilac { --bg: var(--lilac); }
.member--mint { --bg: var(--mint); }
.member--yellow { --bg: var(--yellow); }
.member__photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 20px; background: var(--white); }
.member__photo--soon { display: grid; place-items: center; }
.member__photo--soon span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.member__text { display: flex; flex-direction: column; gap: 6px; }
.member__text h2 { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.member__role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.member__text p:not(.member__role) { font-size: 16px; line-height: 1.45; }
@media (max-width: 759px) { .member__photo { aspect-ratio: 1; } }

/* ---------- How it works (partials/steps.html) ---------- */
/* Plain on the homepage (it already has colour); coloured cards with big numbers on the pricing page only */
.steps .section__head { margin-bottom: clamp(24px, 3vw, 40px); }
.steps__time { padding: 8px 14px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.steps__list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr; gap: var(--gap); }
@media (min-width: 640px) { .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { counter-increment: step; background: var(--paper); border-radius: var(--r-lg); padding: var(--pad-sm); display: flex; flex-direction: column; gap: 10px; }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.step__title { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.step p { font-size: 16px; line-height: 1.45; color: var(--ink-2); }

[data-page="tarifs"] .steps__time { background: var(--ink); color: var(--white); }
[data-page="tarifs"] .step:nth-child(4n + 1) { background: var(--pink); }
[data-page="tarifs"] .step:nth-child(4n + 2) { background: var(--mint); }
[data-page="tarifs"] .step:nth-child(4n + 3) { background: var(--lilac); }
[data-page="tarifs"] .step:nth-child(4n + 4) { background: var(--yellow); }
[data-page="tarifs"] .step::before { font-family: var(--sans); font-size: clamp(56px, 5.5vw, 80px); font-weight: 800; letter-spacing: -.06em; line-height: .85; color: var(--ink); margin-bottom: 18px; }
