/**
 * One Page Presentation – Figma node 4341-5497
 * Text containers: 1024px | Image containers: 1280px
 */

.opp-page {
  --opp-black: #161a18;
  --opp-gray: #686b6a;
  --opp-light-gray: #f5f5f5;
  --opp-green: #63a487;
  --opp-forest: #2d7543;
  --opp-purple: #8a05be;
  --opp-nubank-accent: #a45ac2;
  --opp-mint: #e2eee9;
  --opp-lime: #f4ffec;
  --opp-lavender: #e9ddf0;
  --opp-pink: #efbde2;
  --opp-blue: #97a5cc;
  --opp-accent: #cb462e;
  --opp-text-max: 1024px;
  --opp-media-max: 1280px;
  --opp-section-y: 96px;
  --opp-radius: 24px;
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--opp-black);
  font-family: var(--font-sans);
}

.opp-page.no-topbar {
  padding-top: 0;
}

.opp-page__main {
  min-height: 100vh;
}

.opp {
  width: 100%;
}

.opp__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: var(--opp-section-y);
}

/* Containers */
.opp-text {
  width: 100%;
  max-width: var(--opp-text-max);
  margin-left: auto;
  margin-right: auto;
}

.opp-media {
  width: 100%;
  max-width: var(--opp-media-max);
  margin-left: auto;
  margin-right: auto;
}

/* Typography helpers */
.opp-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.opp-serif--accent { color: var(--opp-accent); }
.opp-serif--blue { color: var(--opp-blue); }
.opp-serif--green { color: var(--opp-green); }
.opp-serif--forest { color: var(--opp-forest); }
.opp-serif--purple { color: var(--opp-purple); }
.opp-serif--pink { color: var(--opp-pink); }

/* Hero */
.opp-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  min-height: 621px;
}

.opp-hero__photo {
  flex: 0 0 490.5px;
  max-width: 38.32%;
  height: 589px;
  overflow: hidden;
}

.opp-hero__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opp-hero__aside {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 19.471px;
  height: 589px;
}

.opp-hero__logo-wrap {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--opp-light-gray);
  overflow: hidden;
}

.opp-hero__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.opp-hero__star {
  color: var(--opp-accent);
}

.opp-hero__tagline {
  flex: 0 0 276px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--opp-black);
  padding: 24px 32px;
}

.opp-hero__tagline p {
  margin: 0;
  max-width: 570px;
  font-size: 29.207px;
  line-height: 1.3;
  text-align: center;
  color: var(--opp-light-gray);
}

/* Bio */
.opp-bio {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  padding-top: var(--opp-section-y);
  padding-bottom: var(--opp-section-y);
}

.opp-bio__col {
  flex: 1 1 0;
  min-width: 0;
}

.opp-bio__lead {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.3;
  color: #000;
}

.opp-bio__sub {
  margin: 0;
  max-width: 453px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.2;
  color: var(--opp-gray);
}

.opp-bio__rows {
  align-self: stretch;
}

.opp-bio__row {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 16px;
  line-height: 1.2;
  color: var(--opp-gray);
}

.opp-bio__row + .opp-bio__row {
  padding-top: 24px;
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.opp-bio__row--last {
  border-bottom: none;
  padding-bottom: 0;
}

/* Experience block – Figma node 4342-16225 */
.opp-experience {
  padding-bottom: 0;
}

.opp-experience--between {
  padding-top: 0;
  padding-bottom: 0;
}

.opp-experience__inner {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 0 16px;
}

.opp-experience__statement {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--opp-black);
  padding: 80px;
  color: #fff;
}

.opp-experience__statement p {
  margin: 0;
  font-size: 32px;
  line-height: 1.366;
  word-break: break-word;
}

.opp-experience__meta {
  flex: 0 0 287px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  background: var(--opp-light-gray);
  padding: 24px;
  color: var(--opp-gray);
}

.opp-experience__meta-group {
  display: flex;
  flex-direction: column;
}

.opp-experience__meta-label {
  margin: 0;
  font-size: 16px;
  line-height: normal;
  font-weight: 400;
}

.opp-experience__meta-value {
  margin: 0;
  font-size: 16px;
  line-height: normal;
  font-weight: 600;
}

.opp-experience__meta-value--company {
  display: flex;
  flex-direction: column;
}

.opp-experience__company-name {
  color: var(--opp-exp-company-color, var(--opp-forest));
}

.opp-experience__company-desc {
  font-weight: 400;
}

.opp-serif--nubank {
  color: var(--opp-nubank-accent);
}

/* Projects */
.opp-project {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-top: var(--opp-section-y);
  padding-bottom: var(--opp-section-y);
}

.opp-project__header {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.opp-project__col {
  flex: 1 1 0;
  min-width: 0;
}

.opp-project__intro {
  display: flex;
  flex-direction: column;
}

.opp-project__label {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.2;
  color: var(--opp-gray);
}

.opp-project__title {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  color: var(--opp-black);
}

.opp-project__case-link {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--opp-green);
  text-decoration: none;
  transition: color 0.15s ease;
}

.opp-project__case-link--touch:hover,
.opp-project__case-link--touch:focus-visible {
  color: var(--opp-forest);
}

.opp-project__case-link-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

/* Case study – touch link vs desktop cursor button */
.opp-project--has-case-study {
  position: relative;
  transition: background-color 0.2s ease;
}

.opp-project--has-case-study > * {
  position: relative;
  z-index: 1;
}

.opp-project--has-case-study:focus {
  outline: none;
}

.opp-project--has-case-study:focus-visible {
  outline: 2px solid var(--opp-green);
  outline-offset: 4px;
}

.opp-project__cursor-btn {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  margin: 0;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%);
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.opp-project__cursor-btn:hover {
  transform: translate(-50%, -50%);
  box-shadow: var(--button-shadow) var(--button-shadow-color);
}

.opp-project__cursor-btn.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  .opp-project__case-link--touch {
    display: none;
  }

  .opp-project--has-case-study.is-case-hover {
    background: transparent;
    cursor: none;
  }

  .opp-project--has-case-study.is-case-hover::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 16px;
    bottom: 16px;
    z-index: 0;
    background: #fafafa;
    pointer-events: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .opp-project__case-link--touch {
    display: inline-flex;
  }

  .opp-project--has-case-study {
    cursor: auto;
  }

  .opp-project__cursor-btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opp-project--has-case-study {
    transition: none;
  }

  .opp-project__cursor-btn {
    transition: none;
  }
}

.opp-project__highlights {
  align-self: stretch;
}

.opp-project__highlight {
  margin: 0;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 16px;
  line-height: 1.2;
  color: var(--opp-gray);
}

.opp-project__highlight + .opp-project__highlight {
  padding-top: 24px;
}

.opp-project__highlight--last {
  padding-bottom: 0;
  border-bottom: none;
}

/* Shared grid cell styles */
[class*="__cell"] img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opp-onb-grid__cell--gray,
.opp-growth-grid__cell--gray,
.opp-nubank-grid__cell--gray { background: var(--opp-light-gray); }

.opp-onb-grid__cell--dark,
.opp-growth-grid__cell--dark,
.opp-nubank-grid__cell--dark { background: var(--opp-black); }

.opp-onb-grid__cell--mint { background: var(--opp-mint); }
.opp-onb-grid__cell--mint-soft { background: var(--opp-mint); }
.opp-growth-grid__cell--lime { background: var(--opp-lime); }
.opp-nubank-grid__cell--lavender { background: var(--opp-lavender); }
.opp-nubank-grid__cell--purple { background: var(--opp-purple); }

/* Onboarding bento – canvas 1248.781 × 1171.951 */
.opp-onb-grid {
  position: relative;
  width: 100%;
  max-width: 1248.781px;
  margin: 0 auto;
  aspect-ratio: 1248.781 / 1171.951;
}

.opp-onb-grid__cell {
  position: absolute;
  overflow: hidden;
}

.opp-onb-grid__cell--1 { left: 0; top: 0; width: 35.06%; height: 21.43%; }
.opp-onb-grid__cell--2 { left: 36.63%; top: 0; width: 30.37%; height: 21.43%; }
.opp-onb-grid__cell--3 { left: 68.15%; top: 0; width: 31.74%; height: 21.43%; }
.opp-onb-grid__cell--4 { left: 0; top: 23%; width: 32.6%; height: 60%; }
.opp-onb-grid__cell--5 { left: 33.9%; top: 23%; width: 66.1%; height: 34.74%; }
.opp-onb-grid__cell--6 { left: 33.88%; top: 59.3%; width: 37.1%; height: 23.72%; }
.opp-onb-grid__cell--7 { left: 72.47%; top: 59.3%; width: 27.54%; height: 40.68%; }
.opp-onb-grid__cell--8 { left: 0; top: 84.68%; width: 40.52%; height: 15.3%; }
.opp-onb-grid__cell--9 { left: 42.09%; top: 84.68%; width: 28.9%; height: 15.3%; }

/* Growth bento – canvas ~1275 × 1363 */
.opp-growth-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1275 / 1363;
}

.opp-growth-grid__cell {
  position: absolute;
  overflow: hidden;
}

.opp-growth-grid__cell--1 { left: 0.16%; top: 0; width: 99.7%; height: 31.1%; }
.opp-growth-grid__cell--2 { left: 0; top: 32.53%; width: 52.68%; height: 39.87%; }
.opp-growth-grid__cell--3 { left: 54.24%; top: 32.58%; width: 45.76%; height: 39.82%; }
.opp-growth-grid__cell--4 { left: 0; top: 73.92%; width: 69.9%; height: 26.08%; }
.opp-growth-grid__cell--5 { left: 71.43%; top: 73.95%; width: 28.39%; height: 26.05%; }

/* Nubank bento – canvas ~1248 × 1410 */
.opp-nubank-grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1248 / 1410;
}

.opp-nubank-grid__cell {
  position: absolute;
  overflow: hidden;
}

.opp-nubank-grid__cell--1 { left: 0.1%; top: 0; width: 99.9%; height: 33.2%; }
.opp-nubank-grid__cell--2 { left: 0.1%; top: 34.62%; width: 34.73%; height: 35.23%; }
.opp-nubank-grid__cell--3 { left: 36.36%; top: 34.68%; width: 63.6%; height: 35.14%; }
.opp-nubank-grid__cell--4 { left: 0.1%; top: 71.24%; width: 71.3%; height: 28.76%; }
.opp-nubank-grid__cell--5 { left: 73%; top: 71.24%; width: 27%; height: 28.75%; }

/* CTA */
.opp-cta {
  padding: 0 16px;
}

.opp-cta__box {
  background: var(--opp-black);
  padding: var(--opp-section-y);
  color: #fff;
}

.opp-cta__lead {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.3;
}

.opp-cta__body {
  font-size: 20px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
}

.opp-cta__body p {
  margin: 0;
}

.opp-cta__body p + p {
  margin-top: 16px;
}

.opp-cta__body a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-position: from-font;
}

.opp-cta__body a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1100px) {
  .opp-hero {
    flex-direction: column;
    min-height: 0;
    height: auto;
  }

  .opp-hero__photo {
    flex: none;
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 490.5 / 589;
  }

  .opp-hero__aside {
    width: 100%;
    height: auto;
  }

  .opp-hero__logo-wrap {
    min-height: 220px;
  }

  .opp-hero__tagline {
    flex: none;
    min-height: 220px;
  }

  .opp-hero__tagline p {
    font-size: clamp(22px, 4vw, 29.207px);
  }

  .opp-bio {
    flex-direction: column;
    gap: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .opp-experience,
  .opp-cta {
    padding-left: 0;
    padding-right: 0;
  }

  .opp-experience__inner {
    flex-direction: column;
  }

  .opp-experience__statement {
    padding: 48px 32px;
  }

  .opp-experience__meta {
    flex: none;
    width: 100%;
  }

  .opp-project__header {
    flex-direction: column;
    gap: 32px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .opp-media {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 768px) {
  .opp {
    --opp-section-y: 64px;
  }

  .opp-bio__lead,
  .opp-experience__statement p,
  .opp-project__title,
  .opp-cta__lead {
    font-size: clamp(24px, 6vw, 32px);
  }

  .opp-project__label {
    font-size: 18px;
    white-space: normal;
  }

  .opp-onb-grid,
  .opp-growth-grid,
  .opp-nubank-grid {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .opp-onb-grid__cell,
  .opp-growth-grid__cell,
  .opp-nubank-grid__cell {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
  }

  .opp-experience__statement {
    padding: 32px 24px;
  }

  .opp-cta__box {
    padding: 48px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .opp-page * {
    transition: none !important;
  }
}
