/* Zomfy TI — editorial homepage. */
.page-home {
  --home-ink: #151913;
  --home-ink-soft: #1d251b;
  --home-paper: #f2f0e7;
  --home-paper-deep: #e8e7dc;
  --home-lime: #d4ff6f;
  --home-mint: #dbe9cf;
  --home-lilac: #ded5ef;
  --home-peach: #ecd8cc;
  --home-line: rgba(21, 25, 19, .16);
  --home-ease: cubic-bezier(.22,.7,.22,1);
  --home-section-space: clamp(70px, 7.5vw, 112px);
  background: var(--home-paper);
  color: var(--home-ink);
}

.page-home #content { overflow: clip; }
.page-home .status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--home-lime);
  box-shadow: 0 0 0 4px rgba(212,255,111,.1);
  vertical-align: .05em;
}
.page-home .home-v3-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url('/assets/icons/arrow-up-right.svg') center / contain no-repeat;
  mask: url('/assets/icons/arrow-up-right.svg') center / contain no-repeat;
  vertical-align: -.18em;
}

/* Hero */
.home-v3-hero {
  position: relative;
  padding: clamp(38px, 5vw, 76px) 0 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 79% 19%, rgba(212,255,111,.1), transparent 24%),
    linear-gradient(132deg, #111511 0%, #171c16 58%, #101410 100%);
  color: #f3f3ec;
}
.home-v3-hero::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(115deg, transparent 8%, #000 68%);
  content: '';
  pointer-events: none;
}
.home-v3-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(30px, 4.3vw, 74px);
  align-items: center;
}
.home-v3-hero__copy { min-width: 0; }
.page-home .home-v3-hero__copy .eyebrow { margin-bottom: clamp(16px, 1.5vw, 24px); }
.home-v3-hero__copy h1 {
  max-width: 830px;
  margin-bottom: clamp(20px, 2vw, 32px);
  font-size: clamp(48px, 5.7vw, 90px);
  line-height: .98;
}
.home-v3-hero__copy h1 em { color: var(--home-lime); }
.home-v3-hero__lead {
  max-width: 46ch;
  margin-bottom: 24px;
  color: #c7cec1;
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.55;
}
.home-v3-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.home-v3-hero__actions .button,
.home-v3-link-button {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 520;
}
.home-v3-link-button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.home-v3-link-button:hover { border-color: var(--home-lime); color: var(--home-lime); }
.home-v3-hero__facts { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-top: 22px; color: #b3bcae; font-size: 11px; letter-spacing: .035em; }
.home-v3-hero__facts span + span::before { margin-right: 12px; color: #788573; content: '/'; }
.home-v3-hero__visual {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(219,233,207,.24);
  border-radius: 7px;
  background: #242d25;
  box-shadow: 0 16px 42px rgba(5,9,5,.21);
  color: #eef1e7;
  text-decoration: none;
  transition: border-color .22s ease;
}
.home-v3-hero__visual:is(:hover,:focus-visible) { border-color: #afbc9e; }
.home-v3-hero__visual-top,
.home-v3-hero__visual-bottom { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 18px; color: #e8eddf; }
.home-v3-hero__visual-top span,
.home-v3-hero__visual-bottom span:first-child { font-size: 11px; letter-spacing: .07em; }
.home-v3-hero__visual-top strong { font-size: 20px; font-weight: 520; }
.home-v3-hero__visual figure { aspect-ratio: 1.7; margin: 0 8px; overflow: hidden; border-radius: 3px; background: #c9cebc; }
.home-v3-hero__visual figure img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 46%; }
.home-v3-quick {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(32px, 4vw, 60px);
  border-top: 1px solid rgba(255,255,255,.24);
}
.home-v3-quick a { position: relative; display: grid; min-height: 100px; padding: 16px 26px; border-right: 1px solid rgba(255,255,255,.14); text-decoration: none; transition: background .2s ease; }
.home-v3-quick a:last-child { border-right: 0; }
.home-v3-quick a:is(:hover,:focus-visible) { background: rgba(219,233,207,.07); }
.home-v3-quick span { margin-bottom: 6px; color: #abb8a3; font-size: 10px; letter-spacing: .085em; }
.home-v3-quick strong { align-self: end; font-size: 18px; font-weight: 520; }
.home-v3-quick small { margin-top: 7px; color: #aeb5a8; font-size: 12px; }
.home-v3-quick a:is(:hover,:focus-visible) strong { color: var(--home-lime); }

/* Logo ribbon */
.home-v3-clients { padding: 78px 0 74px; background: #f6f0e8; }
.home-v3-clients .client-showcase-header { margin-bottom: 30px; }
.home-v3-clients .client-showcase-heading { max-width: none; font-size: clamp(30px, 3.3vw, 52px); line-height: 1; }
.home-v3-clients .client-showcase-intro .eyebrow { margin-bottom: 10px; }

/* Shared editorial headings */
.home-v3-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  gap: 80px;
  align-items: end;
  margin-bottom: clamp(34px, 4vw, 58px);
}
.home-v3-section-heading h2,
.home-v3-method h2,
.home-v3-studio h2,
.home-v3-contact h2 { margin-bottom: 0; font-size: clamp(46px, 5.3vw, 78px); line-height: .98; }
.home-v3-section-heading > p { max-width: 430px; margin-bottom: 4px; color: #65705e; font-size: 17px; line-height: 1.65; }

/* Case studies */
.home-v3-work { padding: var(--home-section-space) 0; background: var(--home-paper); }
.home-v3-case-list {
  display: grid;
  gap: clamp(32px, 3.2vw, 52px) clamp(20px, 2.5vw, 40px);
}
.home-v3-case-list article { min-width: 0; }
@media (min-width: 801px) {
  .home-v3-case-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-v3-case-list > article { grid-column: span 2; }
  .home-v3-case-list > article:nth-child(3n + 1):nth-last-child(2) { grid-column: 2 / span 2; }
}
.home-v3-case { display: block; height: 100%; text-decoration: none; }
.home-v3-case figure {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1.6;
  margin: 0;
  border-radius: 6px;
}
.home-v3-case figure img { display: block; }
.home-v3-case--directeat figure {
  display: flex;
  align-items: center;
  background: linear-gradient(108deg, #f4efe8 51%, #ddd5e9 51.2%);
}
.home-v3-case__logo { object-fit: contain; mix-blend-mode: multiply; }
.home-v3-case--directeat .home-v3-case__logo { width: 39%; height: auto; margin-left: 3.5%; }
.home-v3-case--directeat img + img,
.home-v3-case__showcase img + img {
  position: absolute;
  height: auto;
  border: 3px solid #f8f6f0;
  border-radius: 4px;
  box-shadow: 0 6px 15px rgba(20,16,19,.23);
}
.home-v3-case--directeat .home-v3-case__logo + img { width: 49%; right: 5%; top: 45%; transform: translateY(-50%) rotate(-4deg); }
.home-v3-case--directeat img:last-child { width: 24%; right: 3.5%; bottom: 8%; transform: rotate(4deg); }
.home-v3-case__showcase {
  display: flex;
  align-items: center;
  background: linear-gradient(108deg, var(--case-paper) 54%, var(--case-accent) 54.2%);
}
.home-v3-case--foodeo { --case-paper: #f4e7dd; --case-accent: #911923; }
.home-v3-case--souqdzayer { --case-paper: #e6eddd; --case-accent: #184d39; }
.home-v3-case--sos-express-transport { --case-paper: #e6edf0; --case-accent: #103d51; }
.home-v3-case__showcase img:first-child { width: 40%; height: auto; margin-left: 4%; mix-blend-mode: multiply; }
.home-v3-case__showcase img + img { width: 49%; right: 4%; top: 50%; transform: translateY(-50%) rotate(-4deg); }
.home-v3-case--papillon figure { display: grid; grid-template-columns: 35fr 40fr 25fr; grid-template-rows: minmax(0, 1fr); gap: 2px; background: #eae4d9; }
.home-v3-case--papillon .home-v3-case__logo { place-self: center; width: 88%; height: 83%; }
.home-v3-case--papillon img + img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.home-v3-case--papillon .home-v3-case__logo + img { object-position: 4% center; }

.home-v3-case__copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  padding: 18px 1px 0;
}
.page-home .home-v3-case__copy .eyebrow {
  grid-column: 1;
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: .085em;
  color: #53604f;
}
.page-home .home-v3-case__copy h3 {
  grid-column: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 50px);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.home-v3-case__copy p {
  grid-column: 1 / -1;
  max-width: 46ch;
  margin: 9px 0 0;
  font-size: 16px;
  line-height: 1.45;
  color: #485145;
}
.home-v3-case__open {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #9ca399;
  border-radius: 50%;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.home-v3-case:focus-visible .home-v3-case__open { background: var(--home-ink); color: var(--home-paper); }
@media (hover: hover) {
  .home-v3-case:hover .home-v3-case__open { background: var(--home-ink); border-color: var(--home-ink); color: var(--home-paper); }
}
.home-v3-work__footer { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--home-line); color: #65705e; font-size: 13px; }
.home-v3-work__footer .text-link,
.home-v3-studio__copy .text-link { min-height: 44px; align-items: center; }

/* Entry paths */
.home-v3-paths { padding: var(--home-section-space) 0; background: #e8eadf; }
.home-v3-path-list { border-top: 1px solid rgba(21,25,19,.3); }
.home-v3-path-list > a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 48px;
  gap: 26px;
  align-items: center;
  min-height: 148px;
  padding: 24px 18px;
  border-bottom: 1px solid rgba(21,25,19,.3);
  text-decoration: none;
  transition: background-color .25s ease;
}
.home-v3-path-list > a:is(:hover,:focus-visible) { background-color: rgba(255,255,255,.46); }
.home-v3-path-list > a > span { color: #6c7765; font-size: 12px; letter-spacing: .1em; }
.home-v3-path-list h3 { margin-bottom: 10px; font-size: clamp(30px, 3.5vw, 52px); line-height: 1; }
.home-v3-path-list p { max-width: 760px; margin-bottom: 16px; color: #5f6959; font-size: 15px; line-height: 1.55; }
.home-v3-path-list small { font-size: 9px; letter-spacing: .15em; }
.home-v3-path-list .home-v3-icon { justify-self: end; width: 28px; height: 28px; }
.home-v3-path-list .home-v3-path--support { color: #20301d; }

/* Method */
.home-v3-method { padding: var(--home-section-space) 0; background: var(--home-ink-soft); color: #f1f2eb; }
.home-v3-method__grid { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr); gap: clamp(70px, 10vw, 160px); align-items: start; }
.home-v3-method__intro { position: sticky; top: 116px; }
.home-v3-method__intro h2 em { color: var(--home-lime); }
.home-v3-method__intro > p:not(.eyebrow) { max-width: 560px; margin: 32px 0; color: #b9c1b3; font-size: 17px; line-height: 1.65; }
.home-v3-method__steps { border-top: 1px solid rgba(255,255,255,.25); }
.home-v3-method__steps details { border-bottom: 1px solid rgba(255,255,255,.25); }
.home-v3-method__steps summary { display: grid; grid-template-columns: 50px minmax(0, 1fr) 30px; gap: 22px; align-items: center; min-height: 108px; padding: 26px 0; cursor: pointer; list-style: none; }
.home-v3-method__steps summary::-webkit-details-marker { display: none; }
.home-v3-method__steps summary span { color: #86907f; font-size: 11px; letter-spacing: .1em; }
.home-v3-method__steps summary strong { font-size: clamp(24px, 2.8vw, 42px); font-weight: 430; letter-spacing: -.035em; }
.home-v3-method__steps summary i { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-size: 20px; font-style: normal; line-height: 25px; text-align: center; transition: transform .25s ease, background .2s ease; }
.home-v3-method__steps details[open] summary i { background: var(--home-lime); color: var(--home-ink); transform: rotate(45deg); }
.home-v3-method__steps details > div { padding: 0 42px 34px 72px; }
.home-v3-method__steps details p { max-width: 690px; margin-bottom: 14px; color: #c5ccc0; font-size: 16px; line-height: 1.65; }
.home-v3-method__steps details small { color: var(--home-lime); font-size: 11px; letter-spacing: .04em; }

/* Studio */
.home-v3-studio { padding: var(--home-section-space) 0; background: #f5efe7; }
.home-v3-studio__grid { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr); gap: clamp(70px, 10vw, 160px); align-items: center; }
.home-v3-studio__signal { position: relative; min-height: 620px; overflow: hidden; background: #111410; }
.home-v3-studio__signal::after { position: absolute; inset: 24px; border: 1px solid rgba(212,255,111,.32); content: ''; pointer-events: none; }
.home-v3-studio__signal img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; opacity: .85; filter: saturate(1.08) contrast(1.04); }
.home-v3-studio__signal span { position: absolute; right: 50px; bottom: 46px; color: #eef4e8; font-size: 11px; letter-spacing: .16em; line-height: 1.6; text-align: right; }
.home-v3-studio__copy > p:not(.eyebrow) { max-width: 760px; margin: 34px 0; color: #596253; font-size: 18px; line-height: 1.7; }
.home-v3-studio__copy dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 36px; border-top: 1px solid var(--home-line); }
.home-v3-studio__copy dl div { padding: 22px 18px 22px 0; border-bottom: 1px solid var(--home-line); }
.home-v3-studio__copy dt { margin-bottom: 8px; color: #737c6c; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.home-v3-studio__copy dd { margin: 0; font-size: 13px; line-height: 1.45; }

/* Notebook */
.home-v3-notes { padding: var(--home-section-space) 0; background: var(--home-paper); }
.home-v3-note-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--home-line); border-bottom: 1px solid var(--home-line); }
.home-v3-note-list a { display: flex; flex-direction: column; min-height: 330px; padding: 32px; border-right: 1px solid var(--home-line); text-decoration: none; transition: background .2s ease, color .2s ease; }
.home-v3-note-list a:last-child { border-right: 0; }
.home-v3-note-list a:hover { background: var(--home-ink); color: #f3f3ec; }
.home-v3-note-list span { margin-bottom: 70px; color: #74806d; font-size: 9px; letter-spacing: .14em; }
.home-v3-note-list h3 { max-width: 430px; margin-bottom: 42px; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.12; }
.home-v3-note-list small { margin-top: auto; color: #74806d; font-size: 11px; }

/* Final conversion */
.home-v3-contact { padding: var(--home-section-space) 0; background: #111510; color: #f4f4ed; }
.home-v3-contact__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .5fr); gap: 90px; align-items: end; }
.home-v3-contact h2 em { color: var(--home-lime); }
.home-v3-contact__grid > div:last-child p { margin-bottom: 28px; color: #b9c1b3; font-size: 17px; line-height: 1.65; }
.home-v3-contact__grid > div:last-child { display: grid; gap: 16px; justify-items: start; }
.home-v3-contact__grid > div:last-child > a { min-height: 44px; padding: 12px 0; color: #d4dccf; text-underline-offset: 5px; }

.page-home #content :is(a, button, summary):focus-visible { outline: 3px solid #64dff5; outline-offset: 4px; }

/* The photos settle in their frames; headlines and links are always readable. */
@keyframes home-print-settle {
  from { transform: translateY(8px) scale(.99); }
  to { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .home-v3-case figure.is-in-view { animation: home-print-settle .65s var(--home-ease) both; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-v3-hero__visual img { transition: transform .65s var(--home-ease); }
  .home-v3-hero__visual:is(:hover,:focus-visible) img { transform: scale(1.025); }
  .home-v3-case__showcase img + img,
  .home-v3-case--directeat img + img { transition: rotate .5s var(--home-ease); }
  .home-v3-case:is(:hover,:focus-visible) .home-v3-case__showcase img + img,
  .home-v3-case--directeat:is(:hover,:focus-visible) .home-v3-case__logo + img { rotate: 2deg; }
  .home-v3-case--directeat:is(:hover,:focus-visible) img:last-child { rotate: -2deg; }
  .home-v3-path-list .home-v3-icon,
  .home-v3-case__open .home-v3-icon { transition: transform .32s var(--home-ease); }
  .home-v3-path-list a:is(:hover,:focus-visible) .home-v3-icon,
  .home-v3-case:is(:hover,:focus-visible) .home-v3-case__open .home-v3-icon { transform: translate(2px,-2px); }
}

@media (max-width: 1080px) {
  .home-v3-hero__grid { gap: 32px; }
  .home-v3-method__grid,
  .home-v3-studio__grid { gap: 70px; }
}

@media (max-width: 800px) {
  .home-v3-hero { padding-top: clamp(30px, 5.5vw, 46px); }
  .home-v3-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .home-v3-hero__copy { padding-bottom: 0; }
  .home-v3-hero__copy h1 { margin-bottom: 18px; font-size: clamp(46px, 8.8vw, 68px); }
  .home-v3-hero__lead { font-size: 17px; }
  .home-v3-hero__visual-top,
  .home-v3-hero__visual-bottom { padding: 10px 14px; }
  .home-v3-quick { grid-template-columns: 1fr; margin-top: 36px; }
  .home-v3-quick a { min-height: 80px; padding: 14px 12px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .home-v3-quick a:last-child { border-bottom: 0; }
  .home-v3-clients { padding: 60px 0; }
  .home-v3-section-heading { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .home-v3-section-heading h2,
  .home-v3-method h2,
  .home-v3-studio h2,
  .home-v3-contact h2 { font-size: clamp(44px, 12vw, 68px); }
  .home-v3-work,
  .home-v3-paths,
  .home-v3-method,
  .home-v3-studio,
  .home-v3-notes,
  .home-v3-contact { padding: 88px 0; }
  .home-v3-case-list { grid-template-columns: 1fr; gap: 28px; }
  .home-v3-case { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 24px; }
  .home-v3-case__copy { padding: 0; }
  .home-v3-work__footer { align-items: flex-start; flex-direction: column; }
  .home-v3-path-list > a { grid-template-columns: 42px minmax(0, 1fr) 28px; gap: 14px; min-height: 152px; padding: 24px 4px; }
  .home-v3-path-list h3 { font-size: 30px; }
  .home-v3-method__grid,
  .home-v3-studio__grid,
  .home-v3-contact__grid { grid-template-columns: 1fr; gap: 58px; }
  .home-v3-method__intro { position: static; }
  .home-v3-method__steps summary { grid-template-columns: 36px minmax(0, 1fr) 30px; gap: 12px; min-height: 90px; }
  .home-v3-method__steps details > div { padding: 0 0 28px 48px; }
  .home-v3-studio__signal,
  .home-v3-studio__signal img { min-height: 440px; }
  .home-v3-studio__copy dl { grid-template-columns: 1fr; }
  .home-v3-note-list { grid-template-columns: 1fr; }
  .home-v3-note-list a { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--home-line); }
  .home-v3-note-list a:last-child { border-bottom: 0; }
  .home-v3-note-list span { margin-bottom: 42px; }
}

@media (max-width: 600px) {
  .home-v3-case-list { gap: 26px; }
  .home-v3-case { display: block; }
  .home-v3-case figure { aspect-ratio: 1.85; }
  .home-v3-case__copy { padding-top: 13px; }
}

@media (max-width: 480px) {
  .home-v3-hero__copy h1 { font-size: clamp(39px, 12.5vw, 54px); }
  .home-v3-hero__actions { gap: 8px; }
  .home-v3-hero__actions .button,
  .home-v3-link-button { min-height: 46px; padding: 11px 13px; gap: 8px; }
  .page-home .home-v3-link-button > span[aria-hidden] { display: none; }
  .home-v3-hero__facts { margin-top: 14px; }
  .home-v3-hero__visual-top strong { font-size: 17px; }
  .home-v3-clients .client-showcase-heading { font-size: 34px; }
  .home-v3-section-heading h2,
  .home-v3-method h2,
  .home-v3-studio h2,
  .home-v3-contact h2 { font-size: clamp(39px, 11.9vw, 54px); }
  .home-v3-path-list > a { grid-template-columns: 30px minmax(0, 1fr) 22px; }
  .home-v3-path-list p { font-size: 14px; }
  .home-v3-method__steps summary strong { font-size: 23px; }
  .home-v3-studio__signal,
  .home-v3-studio__signal img { min-height: 360px; }
  .home-v3-studio__signal span { right: 32px; bottom: 30px; }
  .home-v3-note-list a { padding: 26px 22px; }
}

@media (max-width: 359px) {
  .home-v3-hero__actions > * { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home section[class*="home-v3-"] *,
  .page-home section[class*="home-v3-"] *::before,
  .page-home section[class*="home-v3-"] *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
