/* ==========================================================================
   OR BEN ATTIA — Landing Page
   ========================================================================== */

@keyframes obn-cam-breathe   { 0% { transform: scale(1);    } 100% { transform: scale(1.07); } }
@keyframes obn-cam-breathe-m { 0% { transform: scale(1.10); } 100% { transform: scale(1.15); } }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #0a0a0a;
  font-family: 'Rubik', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body { color: #fff; }

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
::selection { background: #fff; color: #000; }

img { max-width: 100%; }

/* ---- buttons ---- */
.obn-btn {
  border: 1px solid transparent;
  background: #fff;
  color: #000;
  border-radius: 50px;
  padding: 13px 26px;
  font: 600 13px/1 'Rubik', sans-serif;
  cursor: pointer;
  transition: background .25s ease, opacity .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.obn-btn:hover { background: rgba(255, 255, 255, .82); color: #000; }

.obn-btn-ghost {
  border: 1px solid rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
  border-radius: 50px;
  padding: 11px 22px;
  font: 600 13px/1 'Rubik', sans-serif;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.obn-btn-ghost:hover { background: #fff; color: #000; border-color: #fff; }

.obn-navlink {
  font: 400 14px/1 'Rubik', sans-serif;
  color: #a1a1aa;
  letter-spacing: .01em;
  transition: color .2s;
}
.obn-navlink:hover { color: #fff; }

.obn-card { background: #0a0a0a; border: 1px solid rgba(255, 255, 255, .1); }

.obn-footer-link {
  font: 400 13px/2 'Rubik', sans-serif;
  color: #a1a1aa;
  transition: color .2s;
  display: block;
}
.obn-footer-link:hover { color: #fff; }

/* ---- carousels ---- */
.obn-row-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.obn-row-scroll::-webkit-scrollbar { display: none; }

.obn-pad { padding-inline: 44px; }

.obn-container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 40px;
  box-sizing: border-box;
}

.obn-carousel-pad {
  padding-inline-start: var(--obn-gutter);
  padding-inline-end: 24px;
  scroll-padding-inline-start: var(--obn-gutter);
}

/* ---- type scale ---- */
.obn-giant { font-size: 120px; }
.obn-h1 { font-size: 56px; }
.obn-approach-h2 { font-size: 64px; }
.obn-prefooter-h2 { font-size: 76px; }

/* ---- hero shell ---- */
.obn-hero-shell {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  z-index: 0;
}

.obn-hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, #0a0a0a);
  pointer-events: none;
  z-index: 1;
}

.obn-parallax { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.obn-plx-bg   { position: absolute; left: 0; right: 0; top: -15%; height: 130%; z-index: 1; will-change: transform; pointer-events: none; }
.obn-plx-mid  { position: absolute; left: 0; right: 0; bottom: -12%; height: 72%; z-index: 2; will-change: transform; pointer-events: none; }
.obn-plx-title{ position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; will-change: transform; pointer-events: none; }
.obn-plx-fg   { position: absolute; left: 0; right: 0; bottom: -6%; height: 82%; z-index: 4; will-change: transform; pointer-events: none; }
.obn-plx-layer img, .obn-plx-layer { display: block; }

.obn-hero-bg-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.obn-hero-bg-mobile { display: none; }

.obn-hero-camera-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5));
  margin-top: -150px;
  transform-origin: 38% 45%;
  animation: obn-cam-breathe 26s ease-in-out infinite alternate;
}

.obn-hero-text { position: relative; z-index: 2; width: 52%; margin-left: auto; margin-right: 0; text-align: right; pointer-events: auto; }

.obn-hero-h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 25px;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .55);
  text-align: right;
  margin-right: 150px;
  font-size: 70px;
}

.obn-hero-p {
  font-weight: 300;
  font-size: 22px;
  line-height: 1.7;
  color: #ededed;
  margin: 0 0 34px;
  max-width: 500px;
  margin-inline-start: auto;
  text-align: right;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .6);
  margin-right: 150px;
}

.obn-hero-text .obn-btn { margin-right: 150px; font-size: 18px; }

/* ---- header ---- */
.obn-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: 20px;
}

.obn-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin-inline: auto;
  box-sizing: border-box;
  padding: 12px 16px 12px 24px;
  border-radius: 60px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, .4);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 12px 34px rgba(0, 0, 0, .24);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.obn-header.is-scrolled .obn-header-inner {
  background: linear-gradient(to bottom, rgba(255, 255, 255, .2), rgba(255, 255, 255, .1));
  border-bottom-color: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 44px rgba(0, 0, 0, .32);
}

.obn-header-logo { height: 61px; width: 68px; display: block; object-fit: fill; }

.obn-nav { display: flex; gap: 36px; justify-content: center; }

.obn-header-cta { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }

.obn-icon-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: #fff; opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.obn-icon-link:hover { opacity: 1; transform: scale(1.08); }
.obn-icon-link svg { width: 20px; height: 20px; }

/* ---- approach ---- */
.obn-approach-text { max-width: 820px; padding: 0 40px; text-align: center; margin: 0 auto; }

/* ---- services ---- */
.obn-services-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.obn-cards-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.obn-service-icon {
  width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px; color: #fff;
}

/* ---- footer ---- */
.obn-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }

/* ---- portfolio cards ---- */
.obn-card-poster {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(150deg, #181818, #0f0f0f);
  border: 1px solid rgba(255, 255, 255, .08);
}
.obn-card-poster-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.obn-card-poster-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .35s ease;
}
.obn-card-play-wrap {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.obn-card-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .35);
  opacity: 1; transition: opacity .35s ease;
}
.obn-card-play-tri {
  width: 0; height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid #fff;
  margin-right: -2px;
}
.obn-portfolio-card.is-active .obn-card-poster-video { opacity: 1; }
.obn-portfolio-card.is-active .obn-card-play { opacity: 0; }
.obn-portfolio-card[data-type="image"].is-active .obn-card-poster-img { transform: scale(1.05); }

.obn-card-meta { padding: 12px 2px 0; }
.obn-card-title { font-size: 13px; font-weight: 500; color: #fff; margin-bottom: 3px; }

.obn-portfolio-card {
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  transform: scale(1);
  z-index: 1;
}

.obn-card-new { width: 72vw; max-width: 300px; flex: none; }
.obn-card-std { width: 210px; flex: none; }

.obn-eyebrow {
  font: 500 12px 'Space Grotesk', ui-monospace, monospace;
  letter-spacing: .34em;
  color: #a1a1aa;
}

/* ---- lightbox (click-to-expand video/image) ---- */
html.obn-lightbox-lock, html.obn-lightbox-lock body { overflow: hidden; }

.obn-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, .9);
  display: none;
  align-items: center; justify-content: center;
  padding: 32px 20px;
}
.obn-lightbox.is-open { display: flex; }

.obn-lightbox-content {
  position: relative;
  max-width: min(1100px, 94vw);
  width: 100%;
}

.obn-lightbox-media video,
.obn-lightbox-media img {
  display: block; width: 100%; max-height: 84vh;
  object-fit: contain; border-radius: 8px; background: #000;
}

.obn-lightbox-close {
  position: absolute; top: -46px; left: 0; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 24px; line-height: 1; padding: 0;
  transition: background .2s ease, color .2s ease;
}
.obn-lightbox-close:hover { background: #fff; color: #000; }

@media (max-width: 768px) {
  .obn-lightbox-close { top: 8px; left: 8px; background: rgba(0, 0, 0, .55); }
}

/* ---- layout vars / breakpoints ---- */
:root {
  --obn-gutter: max(40px, calc((100vw - 1320px) / 2 + 40px));
  --obn-inner: calc(min(1320px, 100vw) - 80px);
}

@media (min-width: 769px) {
  .obn-card-new { width: calc((var(--obn-inner) - 28px) / 3); max-width: none; }
  /* Sized against the full viewport (not the content container) so exactly
     5.5 cards fit the screen and the 6th visibly bleeds off the edge —
     the same "peek to invite scrolling" cue mobile already has. */
  .obn-card-std { width: calc((100vw - var(--obn-gutter) - 5.5 * 14px) / 5.5); max-width: none; }
}

@media (max-width: 768px) {
  :root { --obn-gutter: 20px; }
  .obn-pad { padding-inline: 20px; }
  .obn-container { padding-inline: 20px; }
  .obn-carousel-pad { padding-inline-start: 20px; padding-inline-end: 0; scroll-padding-inline-start: 20px; }

  .obn-giant { font-size: 56px; }
  .obn-h1 { font-size: 34px; }
  .obn-approach-h2 { font-size: 36px; }
  .obn-prefooter-h2 { font-size: 40px; }

  .obn-hero-shell { position: relative; min-height: 88vh; height: auto; flex-direction: column; padding-block: 0; }

  .obn-plx-bg  { top: -8%; height: 116%; }
  .obn-plx-mid { bottom: -8%; height: 52%; }
  .obn-plx-fg  { bottom: auto; top: 22%; height: 70%; z-index: 5; }

  .obn-hero-text { width: 100%; margin-left: 0; transform: translateY(-25px); }
  .obn-approach-text { max-width: 100%; padding: 0 26px; }

  .obn-services-grid { grid-template-columns: 1fr; gap: 36px; }
  .obn-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .obn-nav { gap: 16px; }
  .obn-navlink { font-size: 12px; }
  .obn-header-inner { grid-template-columns: 1fr auto; padding: 8px 12px; justify-content: space-between; }
  .obn-header-inner .obn-nav { display: none; }
  .obn-header-inner .obn-btn-ghost { padding: 9px 16px; font-size: 12px; }
  .obn-header-cta { gap: 8px; }
  .obn-icon-link { width: 28px; height: 28px; }
  .obn-icon-link svg { width: 17px; height: 17px; }

  .obn-bg-desktop { display: none; }
  .obn-hero-bg-mobile { display: block; }

  .obn-header-logo { height: 38px; width: auto; }

  .obn-hero-h1 { font-size: 30px; margin-right: 0; margin-bottom: 10px; }
  .obn-hero-p { font-size: 15px; margin-right: 0; margin-bottom: 16px; max-width: 100%; }
  .obn-hero-text .obn-btn { margin-right: 0; font-size: 15px; }

  .obn-hero-camera-img {
    object-position: center top;
    margin-top: 0;
    animation-name: obn-cam-breathe-m;
    animation-duration: 14s;
  }

  .obn-plx-title { align-items: flex-end; padding-bottom: 8%; }

  h3.obn-container { margin-right: 0; }
}

@media (max-width: 400px) {
  .obn-hero-h1 { font-size: 27px; }
  .obn-hero-p { font-size: 14px; }
  .obn-header-logo { height: 34px; }
  .obn-header-inner .obn-btn-ghost { padding: 8px 14px; font-size: 11px; }
}
