@font-face {
  font-family: "Syne";
  src: url("../assets/fonts/Syne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("../assets/fonts/Syne-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("../assets/fonts/Syne-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Syne";
  src: url("../assets/fonts/Syne-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/* ============================================================
   TWO WAYS IN — Growth / Brand split section
   Sits between #portfolio and .clients-section
============================================================ */

.two-ways {
  width: 100%;
  padding: 120px 0 100px;
  background: #F6F5F7;
}

.two-ways-inner {
  max-width: 1500px;
  width: calc(100% - 160px);
  margin: 0 auto;
}

/* ------------- HEADER ------------- */

.two-ways-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.two-ways-kicker {
  font-family:"Syne", sans-serif;
  font-weight: 600;
  font-size:28px;
  color: #171717;
}

.two-ways-title {
  font-family:"Syne", sans-serif;
  font-weight: 700;
  font-size: 96px;
  color: #1D1D1F;
  margin: 0;
  letter-spacing: -0.02em;
}

.two-ways-header-sub {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.35;
  color: #6E6E74;
  margin: 14px 0 0;
  letter-spacing: -0.005em;
}

.two-ways-sub {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #6E6E74;
  margin-top: 20px;
}

/* ------------- GRID ------------- */

.two-ways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ------------- CARD ------------- */

.tw-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 645 / 511;

  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;

  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);

  will-change: transform;
}

.tw-card:hover {
  transform: translateY(-4px);
}

/* FULL-BLEED IMAGE AS THE WHOLE CARD */
.tw-card-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.tw-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.tw-card:hover .tw-card-img {
  transform: scale(1.04);
}

/* CONTENT — absolutely positioned at bottom-left over the image */
.tw-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 32px 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ------------- TYPOGRAPHY (defaults for dark-bg cards) ------------- */

.tw-card-tag {
  font-family: "Syne", sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #ffffff;
  margin: 0;
}

.tw-card-title {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: 56px;
  color: #ffffff;
  margin: 0;
}

.tw-card-text {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #6E6E74;
  margin: 4px 0 25px;
}

/* ------------- LIGHT-BACKGROUND VARIANT ------------- */
/* For cards whose image area is light (e.g. Brand / AirPods) —
   text flips to dark. Add class .tw-card--light to the <a>. */

.tw-card--light .tw-card-tag {
  color: #1D1D1F;
}

.tw-card--light .tw-card-title {
  color: #1D1D1F;
}

.tw-card--light .tw-card-text {
  color: #6E6E74;
}

/* ===== CTA BUTTON ===== 
   Default: for dark-bg cards (light pill, white label).
   Light variant: for light-bg cards (dark pill, dark label).
*/

.tw-card-cta{
  position: relative;
  align-self: flex-start;

  width: 170px;
  height: 63px;

  display: flex;
  align-items: center;

  padding: 5px 5px 5px 22px;

  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  overflow: hidden;
}

.tw-card-cta-label{
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;

  transition: opacity .25s ease;
}

.tw-card-cta-pill{
  position: absolute;
  right: 5px;
  top: 5px;

  height: calc(100% - 10px);
  width: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #1D1D1F;

  border-radius: 999px;

  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;

  transition: width .45s cubic-bezier(.76, 0, .24, 1);
}

/* Light variant — dark label, dark pill-wrap, white pill stays white */
.tw-card--light .tw-card-cta{
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.tw-card--light .tw-card-cta-label{
  color: #1D1D1F;
}

.tw-card--light .tw-card-cta-pill{
  background: #ffffff;
  color: #1D1D1F;
}

/* HOVER on card — pill expands, label fades out */
.tw-card:hover .tw-card-cta-label{
  opacity: 0;
}

.tw-card:hover .tw-card-cta-pill{
  width: calc(100% - 10px);
}

/* ------------- FOOTER (sub text + CTA button below cards) ------------- */

.two-ways-footer {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.two-ways-footer .two-ways-sub {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 500;
  font-size: 22px;
  color: #6E6E74;
  margin: 0;
  max-width: 720px;
  line-height: 1.4;
}

.two-ways-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  min-width: 360px;
  height: 90px;

  padding: 0 44px;

  background: #0E0E10;
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;

  font-family: "Syne", system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.005em;

  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.two-ways-cta:hover {
  transform: translateY(-2px);
  background: #1D1D1F;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.two-ways-cta:active {
  transform: translateY(0);
  transition-duration: 0.15s;
}

.two-ways-cta-label {
  white-space: nowrap;
}

.two-ways-cta-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.two-ways-cta:hover .two-ways-cta-arrow {
  transform: translateX(4px);
}

/* ------------- RAMP-UP INITIAL STATE -------------
   Elements start hidden, JS flips them via ScrollTrigger.
   Fallback: if JS doesn't run, .no-js class on <html> can re-show them.
-------------------------------------------------- */

[data-tw-ramp],
[data-tw-card] {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(6px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

[data-tw-ramp].is-in,
[data-tw-card].is-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ============================================================
   RESPONSIVE
   Desktop (>1100px) — keeps the original layout untouched.
   Below that, everything scales down in three steps.
============================================================ */

/* LAPTOP / SMALL DESKTOP — tighten horizontal padding only */
@media (max-width: 1400px) {
  .two-ways-inner {
    width: calc(100% - 80px);
  }
}

/* TABLET — still 2 columns but smaller type + padding */
@media (max-width: 1100px) {
  .two-ways {
    padding: 90px 0 80px;
  }

  .two-ways-inner {
    width: calc(100% - 60px);
  }

  .two-ways-header {
    margin-bottom: 56px;
    gap: 16px;
  }

  .two-ways-kicker {
    font-size: 22px;
  }

  .two-ways-title {
    font-size: 72px;
    line-height: 1.05;
  }

  .two-ways-header-sub {
    font-size: 20px;
    margin-top: 12px;
  }

  .two-ways-footer {
    margin-top: 64px;
    gap: 26px;
  }

  .two-ways-footer .two-ways-sub {
    font-size: 18px;
  }

  .two-ways-cta {
    min-width: 320px;
    height: 76px;
    padding: 0 36px;
    font-size: 19px;
  }

  .two-ways-sub {
    font-size: 16px;
    margin-top: 14px;
  }

  .two-ways-grid {
    gap: 16px;
  }

  .tw-card-body {
    padding: 28px 30px 28px;
    gap: 4px;
  }

  .tw-card-tag {
    font-size: 18px;
  }

  .tw-card-title {
    font-size: 44px;
  }

  .tw-card-text {
    font-size: 18px;
    margin: 4px 0 40px;
  }

  .tw-card-cta {
    width: 160px;
    height: 56px;
    margin-bottom: 32px;
    padding: 5px 5px 5px 20px;
  }

  .tw-card-cta-label,
  .tw-card-cta-pill {
    font-size: 15px;
  }
}

/* MOBILE — stack cards into 1 column, aspect stays squareish */
@media (max-width: 720px) {
  .two-ways {
    padding: 70px 0 64px;
  }

  .two-ways-inner {
    width: calc(100% - 32px);
  }

  .two-ways-header {
    margin-bottom: 40px;
    gap: 10px;
  }

  .two-ways-kicker {
    font-size: 16px;
  }

  .two-ways-title {
    font-size: clamp(40px, 11vw, 56px);
    letter-spacing: -0.015em;
  }

  .two-ways-header-sub {
    font-size: 16px;
    margin-top: 10px;
    max-width: 420px;
  }

  .two-ways-footer {
    margin-top: 48px;
    gap: 22px;
  }

  .two-ways-footer .two-ways-sub {
    font-size: 16px;
    max-width: 420px;
    line-height: 1.5;
  }

  .two-ways-cta {
    min-width: 0;
    width: 100%;
    max-width: 340px;
    height: 64px;
    padding: 0 28px;
    font-size: 17px;
    gap: 10px;
  }

  .two-ways-sub {
    font-size: 15px;
    margin-top: 8px;
    max-width: 420px;
    line-height: 1.5;
  }

  .two-ways-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tw-card {
    border-radius: 20px;
    aspect-ratio: 4 / 5;  /* slightly taller on mobile so image has room */
  }

  .tw-card-body {
    padding: 22px 24px 24px;
    gap: 4px;
  }

  .tw-card-tag {
    font-size: 14px;
  }

  .tw-card-title {
    font-size: clamp(30px, 8vw, 38px);
  }

  .tw-card-text {
    font-size: 15px;
    margin: 2px 0 24px;
    line-height: 1.45;
  }

  .tw-card-cta {
    width: 150px;
    height: 50px;
    padding: 4px 4px 4px 18px;
    margin-bottom: 8px;
  }

  .tw-card-cta-label,
  .tw-card-cta-pill {
    font-size: 14px;
  }

  .tw-card-cta-pill {
    width: 62px;
  }
}

/* SMALL PHONES — iPhone SE and similar */
@media (max-width: 380px) {
  .two-ways {
    padding: 56px 0 52px;
  }

  .two-ways-inner {
    width: calc(100% - 24px);
  }

  .two-ways-header {
    margin-bottom: 32px;
  }

  .two-ways-header-sub {
    font-size: 14px;
  }

  .two-ways-footer .two-ways-sub {
    font-size: 14px;
  }

  .two-ways-cta {
    height: 58px;
    font-size: 16px;
    padding: 0 22px;
  }

  .two-ways-sub {
    font-size: 14px;
  }

  .tw-card {
    border-radius: 18px;
  }

  .tw-card-body {
    padding: 20px 20px 22px;
  }

  .tw-card-title {
    font-size: 28px;
  }

  .tw-card-text {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .tw-card-cta {
    width: 140px;
    height: 46px;
    padding: 4px 4px 4px 16px;
  }

  .tw-card-cta-pill {
    width: 58px;
  }
}

/* Hover effects don't make sense on touch — disable the lift so the
   card doesn't get stuck in a half-hover state after a tap. */
@media (hover: none) {
  .tw-card:hover {
    transform: none;
  }

  .tw-card:hover .tw-card-img {
    transform: none;
  }

  .tw-card:hover .tw-card-cta-label {
    opacity: 1;
  }

  .tw-card:hover .tw-card-cta-pill {
    width: 70px;
  }
}

/* ------------- REDUCED MOTION ------------- */

@media (prefers-reduced-motion: reduce) {
  [data-tw-ramp],
  [data-tw-card] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .tw-card,
  .tw-card-img,
  .tw-card-cta-label,
  .tw-card-cta-pill {
    transition: none;
  }

  .tw-card:hover {
    transform: none;
  }

  .tw-card:hover .tw-card-img {
    transform: none;
  }
}

/* ============================================================
   POPUP MODAL — opens on card click
   Glassmorphism backdrop + white panel with content
============================================================ */

.tw-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0.35s;
}

.tw-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear 0s;
}

/* Backdrop — glass blur over whole page */
.tw-popup-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(20, 20, 22, 0.35);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);

  cursor: pointer;
}

/* Panel — white card with content */
.tw-popup-panel {
  position: relative;
  z-index: 1;

  width: min(720px, calc(100% - 40px));
  max-height: calc(100vh - 80px);

  background: #ffffff;
  border-radius: 24px;

  padding: 56px 56px 56px;

  overflow-y: auto;
  overscroll-behavior: contain;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.25);

  transform: scale(0.96) translateY(10px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.tw-popup.is-open .tw-popup-panel {
  transform: scale(1) translateY(0);
}

/* Close button (top-right) */
.tw-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;

  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  padding: 0;

  background: #1D1D1F;
  color: #ffffff;

  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.2s ease;
}

.tw-popup-close:hover {
  transform: rotate(90deg);
  background: #000;
}

.tw-popup-close:focus-visible {
  outline: 2px solid #F55629;
  outline-offset: 3px;
}

/* Content */
.tw-popup-content {
  display: flex;
  flex-direction: column;
}

.tw-popup-tag {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: #1D1D1F;
  margin-bottom: 8px;
}

.tw-popup-title {
  font-family: "Syne", sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.05;
  color: #1D1D1F;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.tw-popup-lead {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #1D1D1F;
  margin: 0 0 28px;
}

.tw-popup-block {
  margin-bottom: 22px;
}

.tw-popup-block:last-child {
  margin-bottom: 0;
}

.tw-popup-label {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1D1D1F;
  margin: 0 0 2px;
}

.tw-popup-text {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  color: #1D1D1F;
  margin: 0 0 4px;
}

.tw-popup-link {
  display: inline-block;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #F55629;
  text-decoration: underline;
  text-underline-offset: 3px;

  transition: opacity 0.2s ease;
}

.tw-popup-link:hover {
  opacity: 0.75;
}

/* Prevent body scroll when popup is open */
body.tw-popup-lock {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 720px) {
  .tw-popup-panel {
    width: calc(100% - 24px);
    max-height: calc(100vh - 40px);
    padding: 44px 24px 32px;
    border-radius: 20px;
  }

  .tw-popup-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }

  .tw-popup-title {
    font-size: clamp(30px, 9vw, 40px);
    margin-bottom: 20px;
  }

  .tw-popup-lead {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .tw-popup-block {
    margin-bottom: 18px;
  }

  .tw-popup-label,
  .tw-popup-text,
  .tw-popup-link {
    font-size: 15px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tw-popup,
  .tw-popup-panel,
  .tw-popup-close {
    transition: none;
  }

  .tw-popup-panel {
    transform: none;
  }

  .tw-popup-close:hover {
    transform: none;
  }
}