/* Scroll navigation replaces the template's full-screen page slider. */
html { scroll-behavior: smooth; }

body { overflow-x: hidden; overflow-y: auto !important; }

.language-switcher { position: fixed; top: 30px; right: 30px; z-index: 40; display: flex; padding: 4px; border: 1px solid #333; border-radius: 999px; background: #252525; }
.language-switcher button { min-width: 40px; padding: 7px 8px; border: 0; border-radius: 999px; background: transparent; color: #aaa; font: 600 12px/1 Poppins, sans-serif; cursor: pointer; }
.language-switcher button.is-active { background: #ffb400; color: #fff; }

.js .pages, .pages { width: 100%; height: auto !important; overflow: visible !important; }

.js .page, .page, .js .page--current {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  visibility: visible;
  overflow: visible;
  opacity: 1;
}

.page { scroll-margin-top: 24px; }
.section-title-primary { display: flex; align-items: center; gap: 28px; font-size: clamp(58px, 4vw, 78px) !important; line-height: 1 !important; white-space: nowrap; }
.section-title-primary::before, .section-title-primary::after { display: block; flex: 1 1 80px; height: 1px; content: ""; }
.section-title-primary::before { background: linear-gradient(to right, transparent, #ffb400); }
.section-title-primary::after { background: linear-gradient(to left, transparent, #ffb400); }
#home { min-height: 100vh; overflow: hidden !important; }
#home > .bg-accent { position: absolute; }

/* Home: a restrained studio showcase in the Tunis visual language. */
.hero-showcase { width: min(37vw, 575px); height: calc(100vh - 80px); }
.hero-showcase__cards { position: absolute; inset: 0; }
.hero-game-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 4px solid #1d1d1d;
  border-radius: 18px;
  background: #2b2a2a;
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform 260ms ease;
}
.hero-game-card:hover { z-index: 3; transform: translateY(-8px) scale(1.025); }
.hero-game-card:focus-visible { z-index: 3; outline: 3px solid #ffb400; outline-offset: 4px; }
.hero-game-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-game-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 31px 15px 13px; color: #fff; font: 600 13px/1.2 Poppins, sans-serif; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.hero-game-card--arrows { width: 62%; aspect-ratio: 1; top: 0; left: 0; transform: rotate(-3deg); }
.hero-game-card--wordkeeper { width: 55%; aspect-ratio: 1; right: 0; top: 12%; transform: rotate(4deg); }
.hero-game-card--rocket { width: 58%; aspect-ratio: 1; bottom: 0; left: 15%; transform: rotate(-1deg); }
.hero-game-card--arrows:hover, .hero-game-card--wordkeeper:hover, .hero-game-card--rocket:hover { transform: translateY(-8px) scale(1.025) rotate(0); }
.hero-mobile-brand { align-items: center; justify-content: center; gap: 10px; margin: 0 auto 25px; }
.hero-mobile-brand img { width: 48px; height: 48px; object-fit: contain; }

/* Keep the opening composition intentional on ultra-wide viewports and browser zoom-out. */
@media (min-width: 1600px) {
  .hero-showcase { width: clamp(620px, 37vw, 860px); height: calc(100vh - 80px); }
  #home .from-lg\:ml-100\/3 { margin-left: 37%; width: 63%; }
  #home .from-lg\:ml-100\/3 > div { max-width: clamp(560px, 29vw, 700px); }
  #home h1 { font-size: clamp(51px, 3vw, 70px); line-height: 1.15; }
  #home p[data-i18n="hero-description"] { max-width: 650px; font-size: clamp(15px, 1vw, 19px); line-height: 1.75; }
  #home #link-games { transform: scale(clamp(1, 0.8vw, 1.14)); transform-origin: left center; }
}

/* Studio: a company introduction first, then capabilities and an expandable team. */
.studio-layout { padding-top: 20px; padding-bottom: 85px; }
.studio-eyebrow { margin: 0 0 12px; color: #ffb400; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.studio-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 60px; align-items: stretch; }
.studio-intro__copy { padding: 24px 0; }
.studio-intro__copy h3, .studio-section-heading h3 { margin: 0; color: #fff; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.studio-intro__copy h3 span { color: #ffb400; }
.studio-intro__copy > p:not(.studio-eyebrow) { max-width: 680px; margin: 24px 0 0; color: #d2d2d2; font: 400 17px/1.8 "Open Sans", sans-serif; }
.studio-intro__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.studio-button { display: inline-flex; align-items: center; gap: 11px; min-height: 47px; padding: 0 18px; border: 1px solid #3f3f3f; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; text-transform: uppercase; transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease; }
.studio-button:hover { border-color: #ffb400; color: #ffb400; }
.studio-button--primary { border-color: #ffb400; background: #ffb400; color: #151515; }
.studio-button--primary:hover { background: transparent; color: #ffb400; }
.studio-intro__brand { display: flex; flex-direction: column; justify-content: center; padding: 42px; border: 1px solid #393939; border-radius: 14px; background: radial-gradient(circle at 10% 8%, #333 0, #222 43%, #191919 100%); }
.studio-intro__brand > img { width: 98px; height: 98px; margin-bottom: 30px; object-fit: contain; }
.studio-intro__brand .studio-eyebrow { margin-bottom: 18px; font-size: 14px; }
.studio-intro__brand ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.studio-intro__brand li { display: flex; align-items: center; gap: 16px; color: #f1f1f1; font-size: 18px; font-weight: 600; }
.studio-intro__brand li i { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #ffb400; color: #151515; font-size: 15px; }
.studio-services, .studio-team { margin-top: 88px; }
.studio-section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 30px; margin-bottom: 28px; }
.studio-section-heading h3 { font-size: clamp(26px, 2.5vw, 35px); }
.studio-section-heading > span { max-width: 360px; color: #aaa; font: 400 14px/1.65 "Open Sans", sans-serif; }
.studio-section-heading .studio-eyebrow { flex-basis: 100%; margin-bottom: 0; }
.studio-service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.studio-service-grid article { min-height: 205px; padding: 25px; border: 1px solid #393939; border-radius: 12px; background: #242424; transition: border-color 180ms ease, transform 180ms ease; }
.studio-service-grid article:hover { border-color: #ffb400; transform: translateY(-4px); }
.studio-service-grid article > i { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 9px; background: #ffb400; color: #151515; font-size: 18px; }
.studio-service-grid h4 { margin: 22px 0 8px; color: #fff; font-size: 17px; font-weight: 600; }
.studio-service-grid p { margin: 0; color: #aaa; font: 400 13px/1.65 "Open Sans", sans-serif; }
.studio-team-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.team-member { display: grid; grid-template-columns: 220px minmax(0, 1fr); height: 250px; min-height: 250px; overflow: hidden; border: 1px solid #393939; border-radius: 14px; background: #242424; }
/* Keep the profile card compact on desktop: without an explicit height the
   portrait's tall native aspect ratio enlarges the entire card. */
.team-member__portrait { align-self: stretch; height: 250px; min-height: 250px; background: #191919; }
.team-member__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.team-member__content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 24px 42px; }
.team-member__role { margin: 0 0 9px; color: #ffb400; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.team-member__content h4 { margin: 0; color: #fff; font-size: 30px; font-weight: 700; }
.team-member__content > p:not(.team-member__role) { max-width: 660px; margin: 14px 0 0; color: #c9c9c9; font: 400 15px/1.75 "Open Sans", sans-serif; }
.team-member__actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.team-member__actions a { color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; }
.team-member__actions a:hover { color: #ffb400; }
.team-member__actions i { margin-left: 5px; color: #ffb400; }

/* The template's unused blog demo is not part of the studio website. */
#blog { display: none !important; }
#games { display: none !important; }

/* Portfolio keeps the original template's visual rhythm while supporting scroll. */
.portfolio-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}

.portfolio-section-heading { margin: 0 0 22px; }
.portfolio-section-heading p {
  margin: 0 0 5px;
  color: #ffb400;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.portfolio-section-heading h3 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
}
.portfolio-section-heading--secondary { margin-top: 58px; }

.portfolio-showcase figure {
  position: relative;
  aspect-ratio: 1.62 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 5px;
  background: #2b2a2a;
}
.portfolio-showcase-grid--games figure { aspect-ratio: 1; }
.portfolio-showcase-grid--games .portfolio-cover-card img { object-position: center; }
/* Collaboration artwork comes in different source proportions. A shared square canvas
   keeps the grid calm while `contain` preserves every original image without cropping. */
.portfolio-showcase-grid--collaborations figure { aspect-ratio: 1; background: #181818; }
.portfolio-showcase-grid--collaborations img { object-fit: contain; }
.portfolio-showcase-grid--collaborations figure:hover img { transform: none; }

.portfolio-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.portfolio-showcase figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 28px 20px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8));
}

.portfolio-showcase figure:hover img { transform: scale(1.05); }
.portfolio-showcase-grid figure { cursor: pointer; }
.portfolio-showcase-grid figure:focus-visible { outline: 3px solid #ffb400; outline-offset: 4px; }

/* Privacy Center: direct, product-specific policy links. */
.privacy-policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.privacy-policy-card { display: flex; min-height: 126px; overflow: hidden; border: 1px solid #393939; border-radius: 10px; background: #252525; color: #fff; }
.privacy-policy-card--clickable { cursor: pointer; transition: border-color 180ms ease, transform 180ms ease; }
.privacy-policy-card--clickable:hover, .privacy-policy-card--clickable:focus-visible { border-color: #ffb400; transform: translateY(-3px); outline: none; }
.privacy-policy-card img { width: 126px; flex: 0 0 126px; object-fit: cover; background: #161616; }
.privacy-policy-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; justify-content: center; padding: 18px; }
.privacy-policy-card__status { display: inline-block; margin-bottom: 8px; color: #ffb400; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.privacy-policy-card__status--pending { color: #aaa; }
.privacy-policy-card strong { color: #fff; font-size: 18px; font-weight: 600; }
.privacy-policy-card small { margin-top: 6px; color: #aaa; font-size: 12px; }
.privacy-policy-card small i { margin-left: 5px; color: #ffb400; }
.privacy-policy-card__links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.privacy-policy-card__links a { padding: 5px 7px; border: 1px solid #484848; border-radius: 5px; color: #ddd; font-size: 11px; line-height: 1.2; text-decoration: none; }
.privacy-policy-card__links a:hover { border-color: #ffb400; color: #ffb400; }

/* A concise footer keeps the studio's key routes and contacts reachable at the end of the page. */
.site-footer { position: relative; z-index: 2; padding: 70px max(32px, calc((100% - 1320px) / 2)) 22px; border-top: 1px solid #303030; background: #171717; }
.site-footer__inner { display: grid; grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(150px, 1fr)); gap: 48px; max-width: 1320px; margin: 0 auto; }
.site-footer__brand { max-width: 380px; }
.site-footer__logo { display: inline-flex; align-items: center; height: 50px; margin-bottom: 18px; }
.site-footer__logo img { display: block; max-width: 210px; max-height: 50px; object-fit: contain; object-position: left center; }
.site-footer__brand p { margin: 0; color: #aaa; font: 400 14px/1.75 "Open Sans", sans-serif; }
.site-footer__cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 25px; padding: 12px 16px; border: 1px solid #ffb400; color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease; }
.site-footer__cta:hover { background: #ffb400; color: #111; }
.site-footer__column { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__column h2 { margin: 0 0 7px; color: #ffb400; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.site-footer__column a { color: #d4d4d4; font: 400 14px/1.5 "Open Sans", sans-serif; text-decoration: none; transition: color 180ms ease; }
.site-footer__column a:hover { color: #ffb400; }
.site-footer__column i { margin-left: 4px; color: #ffb400; font-size: 11px; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1320px; margin: 54px auto 0; padding-top: 20px; border-top: 1px solid #303030; color: #777; font: 400 12px/1.4 "Open Sans", sans-serif; }
.site-footer__bottom a { color: #aaa; text-decoration: none; }
.site-footer__bottom a:hover { color: #ffb400; }

/* One shared detail view for every visible portfolio card. */
body.project-modal-open { overflow: hidden !important; }
.project-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px 30px; }
.project-modal[hidden] { display: none; }
.project-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.84); backdrop-filter: blur(7px); }
.project-modal__dialog { position: relative; z-index: 1; width: min(1080px, calc(100vw - 360px)); max-height: min(820px, calc(100vh - 48px)); overflow: auto; overscroll-behavior: contain; border: 1px solid #363636; border-radius: 18px; background: #121212; box-shadow: 0 34px 100px rgba(0,0,0,.72); scrollbar-width: none; }
.project-modal__dialog::-webkit-scrollbar { display: none; }
/* This is intentionally separate from the browser scrollbar: it stays beneath the close button. */
.project-modal__scroll-rail { position: fixed; z-index: 3; width: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.11); cursor: pointer; }
.project-modal__scroll-rail[hidden] { display: none; }
.project-modal__scroll-rail span { display: block; width: 100%; min-height: 38px; border-radius: inherit; background: #777; transform: translateY(0); transition: height 160ms ease, transform 100ms linear, background-color 160ms ease; }
.project-modal__scroll-rail span:hover { background: #ffb400; }
.project-modal__scroll-rail.is-dragging { cursor: grabbing; }
.project-modal__scroll-rail.is-dragging span { background: #ffb400; transition: none; }
.project-modal__content { padding: 68px 74px 72px; }
.project-modal__intro { display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 38px; align-items: center; min-height: 196px; }
.project-modal__media { aspect-ratio: 1; overflow: hidden; border: 1px solid #4c4c4c; border-radius: 22px; background: #141414; box-shadow: 0 16px 35px rgba(0,0,0,.3); }
.project-modal__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.project-modal__eyebrow { margin: 0 0 14px; color: #ffb400; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.project-modal__content h2 { margin: 0 0 18px; color: #fff; font-size: clamp(36px, 4vw, 58px); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }
.project-modal__store-link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 0 20px; padding: 0 18px; border: 1px solid #ffb400; border-radius: 8px; background: #ffb400; color: #171717; font-size: 15px; font-weight: 700; text-decoration: none; vertical-align: top; transition: background-color 180ms ease, color 180ms ease; }
.project-modal__store-link[hidden] { display: none; }
.project-modal__store-link::before { width: 22px; height: 22px; background: url('../img/brand/google-play-white.png') center / contain no-repeat; filter: brightness(0); content: ''; }
.project-modal__store-link + .project-modal__store-link { margin-left: 10px; }
.project-modal__youtube-link::before { display: none; }
.project-modal__youtube-link .fa-youtube-play { font-size: 19px; }
.project-modal__store-link:hover { background: transparent; color: #ffb400; }
.project-modal__summary > p:last-child { max-width: 760px; margin: 0; font-size: 18px; line-height: 1.75; }
.project-modal__content > p { margin: 0; font-size: 16px; line-height: 1.8; }
.project-modal__note { margin-top: 28px !important; padding-top: 22px; border-top: 1px solid #3a3a3a; color: #aaa; font-size: 13px !important; }
.project-modal__close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: #ffb400; color: #fff; font-size: 19px; cursor: pointer; }
.project-modal__close:hover { background: #fff; color: #1d1d1d; }
.project-modal__switch { position: fixed; z-index: 3; top: 50%; display: grid; width: 48px; height: 120px; place-items: center; border: 0; border-radius: 0; background: transparent; color: #ffb400; font-size: 36px; cursor: pointer; transform: translateY(-50%); transition: color 180ms ease; }
.project-modal__switch:hover { color: #fff; }
/* The reserved outer gutter keeps both arrows outside the dialog.
   The right arrow sits before, rather than on top of, the project rail. */
.project-modal__switch--previous { left: max(20px, calc(50% - 612px)); }
.project-modal__switch--next { right: max(132px, calc(50% - 612px)); }
/* The project picker occupies the same outer right rail as the site navigation,
   rather than competing with the detail card for room. */
.project-modal__navigator { position: fixed; z-index: 3; top: 50%; right: 30px; width: 82px; height: 430px; overflow: hidden; background: transparent; transform: translateY(-50%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 83%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 83%, transparent); }
.project-modal__navigator-list { position: absolute; top: 0; right: 0; left: 0; display: flex; flex-direction: column; align-items: center; gap: 17px; padding: 0; transition: transform 380ms cubic-bezier(.22,.61,.36,1); }
.project-modal__navigator-item { flex: 0 0 auto; width: 56px; height: 56px; padding: 0; overflow: hidden; border: 1px solid transparent; border-radius: 50%; background: #151515; cursor: pointer; opacity: 0; transform: scale(0); transition: transform 260ms ease, opacity 260ms ease, border-color 260ms ease; }
.project-modal__navigator-item img { width: 100%; height: 100%; object-fit: cover; }
.project-modal__navigator-item.is-near { opacity: .74; transform: scale(.82); }
.project-modal__navigator-item.is-edge { opacity: .35; transform: scale(.42); }
.project-modal__navigator-item.is-active { border-color: #ffb400; box-shadow: 0 0 0 4px rgba(255,180,0,.25); opacity: 1; transform: scale(1.14); }
.project-modal__navigator-item:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.project-modal__section { margin-top: 42px; padding-top: 34px; border-top: 1px solid #3a3a3a; }
.project-modal__section h3 { margin: 0 0 20px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.project-modal__highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.project-modal__highlights li { min-height: 76px; padding: 15px 16px 15px 34px; position: relative; border: 1px solid #3a3a3a; border-radius: 8px; color: #c9c9c9; font-size: 13px; line-height: 1.55; background: #191919; }
.project-modal__highlights li::before { position: absolute; top: 19px; left: 15px; width: 7px; height: 7px; border-radius: 50%; background: #ffb400; content: ''; }
/* A masonry flow preserves every supplied screenshot at its true proportion.
   Unlike a fixed grid, a portrait frame never gets cropped or padded to match a landscape one. */
.project-modal__gallery { column-count: 3; column-gap: 18px; }
.project-modal__gallery figure { display: inline-block; width: 100%; margin: 0 0 18px; overflow: hidden; break-inside: avoid; border: 1px solid #303030; border-radius: 12px; background: #151515; vertical-align: top; }
.project-modal__gallery img { display: block; width: 100%; height: auto; transition: none; }
.project-modal__gallery figure:hover img { transform: none; }
.project-modal__gallery figcaption { display: none; }
.project-modal__video { display: block; width: 100%; border-radius: 8px; background: #151515; }
.project-modal__overview p { max-width: 900px; margin: 0; color: #c9c9c9; font: 400 17px/1.8 "Open Sans", sans-serif; }
.project-modal__video-link { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 20px; border: 1px solid #3d3d3d; border-radius: 10px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.project-modal__video-link i:first-child { color: #ffb400; font-size: 23px; }
.project-modal__video-link i:last-child { color: #aaa; font-size: 13px; }
.project-modal__video-link:hover { border-color: #ffb400; color: #ffb400; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 50px; padding-bottom: 70px; }
.contact-details h3 { margin: 0 0 24px; color: #fff; font-size: 26px; text-transform: uppercase; }
.contact-details > p { margin: 0 0 28px; line-height: 1.8; }
.contact-details a { display: flex; gap: 14px; align-items: center; margin: 18px 0; color: #fff; font-weight: 600; }
.contact-details i { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: #ffb400; font-size: 20px; }
.contact-link-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; flex: 0 0 40px; place-items: center; background: #ffb400; }
.google-play-icon { width: 25px; height: 25px; object-fit: contain; }
.contact-details small { display: block; color: #aaa; font-size: 12px; font-weight: 400; text-transform: uppercase; }
.contact-socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.contact-socials a { display: grid; width: 40px; height: 40px; place-items: center; margin: 0; border-radius: 50%; background: #2b2a2a; color: #fff; font-size: 17px; transition: background-color 200ms ease; }
.contact-socials a:hover { background: #ffb400; }
.contact-socials i { display: inline; width: auto; height: auto; border-radius: 0; background: transparent; color: inherit; font-size: inherit; }
.tiktok-icon { width: 18px; height: 18px; fill: currentColor; }
.contact-form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-form input, .contact-form textarea { box-sizing: border-box; width: 100%; border: 1px solid #111; border-radius: 30px; outline: 0; background: #2b2a2a; color: #fff; font: inherit; }
.contact-form input { padding: 14px 24px; }
.contact-form textarea { min-height: 200px; margin: 28px 0; padding: 18px 24px; resize: vertical; }
.contact-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 68px;
  padding: 0 82px 0 34px;
  overflow: hidden;
  border: 1px solid #ffb400;
  border-radius: 34px;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 600 15px/1 Poppins, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}
.contact-submit:hover { background: #ffb400; color: #1d1d1d; }
.contact-submit__icon { position: absolute; top: 0; right: 0; display: grid; width: 66px; height: 66px; place-items: center; border-radius: 50%; background: #ffb400; color: #fff; font-size: 20px; }
.contact-submit:hover .contact-submit__icon { background: #fff; color: #1d1d1d; }

@media (max-width: 991px) {
  #home { min-height: auto; padding: 105px 25px 65px; }
  #home > div.relative { height: auto; }
  .studio-intro { grid-template-columns: 1fr; gap: 26px; }
  .studio-intro__brand { max-width: 560px; }
  .studio-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-layout { grid-template-columns: 1fr; gap: 35px; }
  .project-modal__dialog { max-width: 940px; }
  .project-modal__gallery { column-count: 2; }
  .site-footer__inner { grid-template-columns: minmax(240px, 1.5fr) repeat(2, minmax(150px, 1fr)); }
  .site-footer__column:last-child { grid-column: 2; }
}

/* Tablets use the same compact project picker as phones; forcing a side rail here
   would steal space from the dialog and break the symmetric arrow layout. */
@media (min-width: 768px) and (max-width: 1199px) {
  .project-modal { padding: 24px; }
  .project-modal__dialog { width: min(900px, calc(100vw - 48px)); transform: none; }
  .project-modal__switch { display: none; }
  .project-modal__navigator { top: auto; right: auto; bottom: 18px; left: 50%; width: calc(100% - 48px); height: 64px; max-height: 64px; padding: 0; overflow-x: auto; overflow-y: hidden; transform: translateX(-50%); }
  .project-modal__navigator-list { position: static; flex-direction: row; gap: 11px; min-width: max-content; padding: 7px 10px; transform: none !important; }
  .project-modal__navigator-item { width: 40px; height: 40px; transform: scale(.86); }
}

/* Phones and narrow tablets use a true one-column layout, not a scaled desktop page. */
@media (max-width: 767px) {
  /* Use one content gutter throughout the phone layout. The earlier mix of
     page and utility paddings made the hero and the Studio section start on
     visibly different vertical lines. */
  :root { --mobile-content-gutter: 32px; }
  /* Mobile controls share one quiet top bar, keeping them away from the page content. */
  #navbar-collapse-toggle { position: fixed; inset: 0 0 auto; z-index: 70; height: 76px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(18,18,18,.96); box-shadow: 0 8px 22px rgba(0,0,0,.18); pointer-events: none; }
  #navbar-collapse-toggle .language-switcher, #navbar-collapse-toggle nav { pointer-events: auto; }
  .section-title-primary { display: block; font-size: 32px !important; white-space: normal; }
  .section-title-primary::before { display: none; }
  .section-title-primary::after { display: block; width: 48px; height: 3px; margin-top: 13px; background: #ffb400; }
  .section-title-primary--center::after { margin-right: auto; margin-left: auto; }
  .page .xs\:fixed { position: relative; top: auto; right: auto; left: auto; z-index: auto; }
  .language-switcher { position: absolute; top: 14px; right: 80px; z-index: 71; padding: 4px; }
  .language-switcher button { min-width: 43px; min-height: 40px; padding: 0 11px; font-size: 13px; }
  .home #menuToggle { position: absolute; top: 12px; right: 16px; z-index: 72; width: 52px; height: 52px; padding: 18px 0 0 14px; }
  .js .page#home { min-height: 0; padding: 112px var(--mobile-content-gutter) 56px; }
  #home > div.relative { justify-content: flex-start; }
  #home .mx-auto { max-width: none; margin-right: 0; margin-left: 0; }
  #home .hero-mobile-brand { justify-content: flex-start; margin: 0 0 16px; }
  #home h1 { margin-top: 0; font-size: clamp(40px, 12vw, 48px); line-height: 1.08; }
  #home p[data-i18n="hero-description"] { margin-top: 18px; margin-bottom: 26px; font-size: 16px; line-height: 1.75; }
  #link-games { display: inline-flex; align-items: center; justify-content: center; width: min(100%, 360px); min-height: 60px; padding: 0 64px 0 20px; }
  #link-games .fa-arrow-right { display: grid; height: 60px; place-items: center; }
  .studio-layout { padding-bottom: 58px; }
  .studio-intro__copy { padding-top: 0; }
  .studio-intro__copy h3 { font-size: 34px; }
  .studio-intro__copy > p:not(.studio-eyebrow) { font-size: 15px; }
  .studio-intro__brand { padding: 25px; }
  .studio-services, .studio-team { margin-top: 58px; }
  /* The desktop title strips become light, compact section dividers on phones. */
  .page > .w-full > div:first-child.xs\:bg-black-3 { padding: 50px var(--mobile-content-gutter) 27px; border-bottom: 0; background: transparent; }
  .studio-layout { padding-right: var(--mobile-content-gutter) !important; padding-left: var(--mobile-content-gutter) !important; }
  .studio-service-grid, .privacy-policy-grid { grid-template-columns: 1fr; }
  .portfolio-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .portfolio-showcase figcaption { padding: 24px 12px 11px; font-size: 13px; line-height: 1.25; }
  .studio-service-grid article { min-height: 0; }
  .team-member { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .team-member__portrait { height: 240px; min-height: 0; max-height: none; }
  .team-member__content { padding: 30px 25px; }
  .team-member__content h4 { font-size: 26px; }
  .contact-form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-form textarea { margin: 14px 0 24px; }
  /* Leave a protected strip below the dialog for the project carousel. */
  .project-modal { padding: 15px 15px 96px; }
  .project-modal__dialog { display: block; width: 100%; max-height: calc(100dvh - 112px); transform: none; }
  /* Touch scrolling is native on a phone; the extra visual rail steals useful
     reading space and is therefore reserved for larger screens only. */
  .project-modal__scroll-rail { display: none !important; }
  .project-modal__content { padding: 38px 26px 44px; }
  .project-modal__intro { grid-template-columns: 112px minmax(0, 1fr); gap: 20px; min-height: 112px; }
  .project-modal__content h2 { font-size: 32px; }
  .project-modal__summary > p:last-child { font-size: 15px; }
  .project-modal__store-link { display: flex; width: 100%; min-height: 48px; justify-content: center; padding: 0 14px; font-size: 13px; }
  .project-modal__store-link + .project-modal__store-link { margin-left: 0; }
  .project-modal__switch { display: none; }
  .project-modal__navigator { top: auto; right: auto; bottom: 18px; left: 50%; width: calc(100% - 32px); height: 64px; max-height: 64px; padding: 0; overflow: hidden; transform: translateX(-50%); }
  .project-modal__navigator-list { position: static; width: 100%; min-width: 100%; flex-direction: row; justify-content: center; gap: 11px; padding: 7px 10px; transform: none !important; }
  .project-modal__navigator-item { width: 40px; height: 40px; transform: scale(.86); }
  .project-modal__navigator-item.is-far { display: none; }
  .project-modal__gallery { column-count: 1; column-gap: 0; }
  .project-modal__overview p { font-size: 15px; }
  .site-footer { padding: 48px 25px 18px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__column:last-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 38px; }
}

@media (max-width: 576px) {
  .language-switcher { top: 14px; right: 80px; }
  .studio-layout { padding-bottom: 58px; }
  .studio-intro__copy { padding-top: 0; }
  .studio-intro__copy > p:not(.studio-eyebrow) { font-size: 15px; }
  .studio-intro__brand { padding: 25px; }
  .studio-services, .studio-team { margin-top: 58px; }
  .studio-service-grid { grid-template-columns: 1fr; }
  .studio-service-grid article { min-height: 0; }
  .team-member { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .team-member__portrait { height: 240px; min-height: 0; max-height: none; }
  .team-member__content { padding: 30px 25px; }
  .team-member__content h4 { font-size: 26px; }
  .portfolio-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .contact-form-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-form textarea { margin: 14px 0 24px; }
  .project-modal { padding: 15px 15px 96px; }
  .project-modal__content { padding: 34px 26px 40px; }
  /* A side-by-side avatar leaves too little room for a project title on a
     phone. Stack it above the text so the title and action links use the
     full safe content width. */
  .project-modal__intro { grid-template-columns: 1fr; gap: 16px; min-height: 0; align-items: start; }
  .project-modal__media { width: 96px; }
  .project-modal__gallery { column-count: 1; }
  .site-footer { padding: 48px 25px 18px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__column:last-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; margin-top: 38px; }
}

@media (max-width: 576px) {
  .page .xs\:fixed { position: relative; top: auto; right: auto; left: auto; }
}
