/* Home page "Our Work": three highlighted client websites (includes/featured-work.php) */
.fw { --blue: #169ef5; --yellow: #ffd749; --navy: #0b2a4a; position: relative; padding: 100px 0 90px; overflow: hidden; background: linear-gradient(180deg, #fff, #f2f8ff 35%, #f2f8ff 70%, #fff); }
.fw__head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.fw__head p { max-width: 560px; margin: 16px auto 0; color: #55637a; font-size: 18px; line-height: 1.7; }

.fw-item { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-bottom: 60px; }
.fw-item--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.fw-item--flip .fw-item__visual { order: 2; }
/* each website gets a stage in its own colours */
.fw-item--alagachi { --a: #1d3a8f; --b: #050a1c; --ink: #1d3a8f; --soft: #eaefff; }
.fw-item--maruthi { --a: #c11f2e; --b: #2a0609; --ink: #ab1a28; --soft: #ffecee; }
.fw-item--ganapathi { --a: #12a7a4; --b: #063c4d; --ink: #08716f; --soft: #e4f7f6; }

/* ---------- the stage with the screenshots ---------- */
.fw-stage { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%; position: relative; display: block; padding: 46px 52px 54px 40px; border-radius: 30px; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 62%), linear-gradient(140deg, var(--a), var(--b) 82%); box-shadow: 0 40px 60px -36px var(--b); perspective: 1200px; isolation: isolate; transition: translate .4s ease, box-shadow .4s ease; -webkit-tap-highlight-color: transparent; }
.fw-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 38px 38px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.fw-item--flip .fw-stage { padding: 46px 40px 54px 52px; }
.fw-stage__tilt { position: relative; display: block; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.fw-stage.is-tilt .fw-stage__tilt { transition: transform .12s linear; }

.fw-browser { display: block; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .18); }
.fw-browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 14px; background: #f1f4f9; }
.fw-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6058; }
.fw-browser__bar i:nth-child(2) { background: #ffbd2e; }
.fw-browser__bar i:nth-child(3) { background: #28c840; }
.fw-browser__bar span { overflow: hidden; margin: 0 auto; padding: 2px 18px; border-radius: 999px; background: #fff; color: #5b6779; font-size: 12px; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; }
.fw-browser img { display: block; width: 100%; height: auto; }

/* floating phone (or product close-up) in front of the browser */
.fw-phone, .fw-detail { position: absolute; right: -28px; bottom: -28px; display: block; overflow: hidden; transform: translateZ(60px); box-shadow: 0 30px 40px -14px rgba(0, 0, 0, .6); }
.fw-item--flip .fw-phone, .fw-item--flip .fw-detail { right: auto; left: -28px; }
.fw-phone { width: 23%; padding: 5px; border-radius: 24px; background: #0c111b; border: 1px solid rgba(255, 255, 255, .25); }
.fw-phone img { display: block; width: 100%; height: auto; border-radius: 19px; }
.fw-detail { width: 31%; border: 4px solid #fff; border-radius: 20px; }
.fw-detail img { display: block; width: 100%; height: auto; }

.fw-stage__open { position: absolute; z-index: 3; left: 50%; top: 50%; padding: 13px 24px; border-radius: 999px; background: #fff; color: var(--navy, #0b2a4a); font-size: 15px; font-weight: 800; white-space: nowrap; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); opacity: 0; translate: -50% -30%; scale: .94; transition: opacity .3s ease, translate .3s ease, scale .3s ease; pointer-events: none; }
.fw-stage:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.fw-stage:focus-visible .fw-stage__open { opacity: 1; translate: -50% -50%; scale: 1; }
@media (hover: hover) {
  .fw-stage:hover { translate: 0 -6px; box-shadow: 0 52px 70px -38px var(--b); }
  .fw-stage:hover .fw-stage__open { opacity: 1; translate: -50% -50%; scale: 1; }
}
.fw-stage:active { scale: .985; }

/* ---------- words ---------- */
.fw-item__text { position: relative; }
.fw-item__no { display: block; margin-bottom: -6px; font-size: 76px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .28; }
.fw-item__type { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: .1em; line-height: 1.5; text-transform: uppercase; }
.fw .fw-item__text h3 { margin: 0 0 14px; color: var(--navy); font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; line-height: 1.18; letter-spacing: -.025em; }
.fw-item__text p { margin: 0 0 20px; color: #55637a; font-size: 17px; line-height: 1.75; }
.fw-item__text ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.fw-item__text li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid #dfe8f3; border-radius: 10px; background: #fff; color: var(--navy); font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.fw-item__text li::before { content: "\2713"; color: var(--ink); font-weight: 800; }
.fw .fw-btn { display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 24px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 800; line-height: 1.3; transition: background-color .3s ease, translate .3s ease; }
.fw-btn i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-size: 18px; font-style: normal; transition: rotate .3s ease; }
.fw .fw-btn:hover { background: var(--ink); color: #fff; translate: 0 -2px; }
.fw-btn:hover i { rotate: 45deg; }
.fw .fw-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.fw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fw__more { margin: 10px 0 0; text-align: center; }

/* ---------- tablets and phones: picture first, words under it ---------- */
@media (max-width: 991.98px) {
  .fw { padding: 70px 0 64px; }
  .fw__head { margin-bottom: 40px; }
  .fw-item, .fw-item--flip { grid-template-columns: minmax(0, 1fr); gap: 40px; max-width: 640px; margin: 0 auto 56px; }
  .fw-item--flip .fw-item__visual { order: 0; }
  .fw-item__text { text-align: center; }
  .fw-item__no { font-size: 54px; }
  .fw-item__text ul { justify-content: center; }
}
@media (max-width: 575.98px) {
  .fw-stage, .fw-item--flip .fw-stage { padding: 20px 22px 34px 16px; border-radius: 22px; }
  .fw-item--flip .fw-stage { padding: 20px 16px 34px 22px; }
  .fw-phone, .fw-detail { right: -14px; bottom: -22px; }
  .fw-item--flip .fw-phone, .fw-item--flip .fw-detail { right: auto; left: -14px; }
  .fw-phone { width: 25%; padding: 3px; border-radius: 14px; }
  .fw-phone img { border-radius: 11px; }
  .fw-detail { width: 33%; border-width: 3px; border-radius: 12px; }
  .fw-browser__bar { padding: 6px 10px; }
  .fw-browser__bar span { font-size: 10.5px; }
  .fw-item__text p { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fw-stage, .fw-stage__tilt, .fw-stage__open, .fw-btn, .fw-btn i { transition: none; } }

/* the logo that travels from the hero to Our Services steps aside while this section is on screen */
.fx3d-flyer { transition: opacity .3s ease; }
html.fw-in-view .fx3d-flyer { opacity: 0 !important; pointer-events: none; }
