/* Arni Lochner portfolio — shared styles */
:root {
  --ink: #0d1019;
  --ink-2: #0c0f18;
  --paper: #ffffff;
  --muted: #ababab;
  --accent: #e88b01;
  --grad: linear-gradient(108deg, #bf2200 0%, #ffc700 100%);
  --chip: linear-gradient(137deg, #353442 -166%, #0d0e12 100%);
  --line: rgba(255, 255, 255, 0.12);
  --pad: 72px;
  --max: 1296px;
  --radius: 20px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: #fff; font-family: var(--font); font-size: 18px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.grad { display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: rgba(13, 16, 25, 0.8); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); transition: background .3s; }
.nav--light { background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.nav__me { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid #bf2200; }
.nav__me img { width: 100%; height: 100%; object-fit: cover; }
.nav__links { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 40px; font-size: 14px; font-weight: 600; }
.nav__links a { opacity: .9; }
.nav__links a:hover { opacity: 1; color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 100px; font-weight: 700; font-size: 18px; border: 0; cursor: pointer; font-family: inherit; color: #fff; transition: transform .2s, opacity .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn--grad { background: var(--grad); }
.btn--ghost { background: transparent; border: 1px solid #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.nav .btn--sm { font-size: 13px; }
.nav__burger { display: none; background: none; border: 0; color: inherit; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.nav__burger span { display: block; height: 2px; background: currentColor; margin: 6px 0; border-radius: 2px; }
.nav__drawer { display: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--ink); color: #fff; padding: 24px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 10px; margin-left: 12px; }
.footer__social img { width: 32px; height: 32px; }
.footer__mail { color: var(--accent); text-decoration: underline; margin-left: 8px; }

/* ---------- home: hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1000px; display: flex; align-items: center; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,16,25,.85) 0%, rgba(13,16,25,.2) 60%), linear-gradient(0deg, var(--ink) 0%, rgba(13,16,25,0) 30%); }
.hero__inner { position: relative; z-index: 2; }
.hero h1 { font-size: 60px; }
.hero__sub { font-size: 24px; margin: 10px 0 28px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- home: intro/skills ---------- */
.intro { background: var(--ink-2); padding: 50px 0; border-bottom: 1px solid var(--line); }
.intro .wrap { display: grid; grid-template-columns: 518px 1fr; gap: 130px; }
.chips h3 { font-size: 17px; margin: 0 0 16px; }
.chips + .chips { margin-top: 36px; }
.chips__list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--chip); border: 1px solid rgba(255,255,255,.08); border-radius: 100px; padding: 9px 17px; font-size: 14px; line-height: 22px; }
.chip img { width: 20px; height: 20px; object-fit: contain; }
.chip--more { border-color: var(--accent); background: transparent; color: #fff; cursor: pointer; font-family: inherit; }
.chip[hidden] { display: none; }

/* ---------- section headings ---------- */
.head { text-align: center; margin-bottom: 44px; }
.head h2 { font-size: 32px; }
.head h1 { font-size: 60px; }
.head p { max-width: 750px; margin: 18px auto 0; font-size: 19px; }
.block { padding: 50px 0 80px; }

/* ---------- project cards ---------- */
.cards { display: grid; gap: 30px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 1140px; margin: 0 auto; gap: 40px 35px; }
.card__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 412 / 287; background: #1a1d27; }
.cards--2 .card__img { aspect-ratio: 553 / 385; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__img img { transform: scale(1.04); }
.card__meta { display: flex; align-items: center; gap: 15px; margin-top: 20px; }
.card__logo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; flex: none; background: #1a1d27; }
.card__logo img { width: 100%; height: 100%; object-fit: cover; }
.card__meta h4 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.card__meta p { color: var(--muted); font-size: 16px; margin: 2px 0 0; }
.lock { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--accent); border: 1px solid rgba(232,139,1,.5); border-radius: 100px; padding: 1px 8px; margin-left: 8px; vertical-align: 3px; }

/* ---------- experience ---------- */
.exp { max-width: 792px; margin: 0 auto; border-top: 1px solid var(--line); }
.exp__row { border-bottom: 1px solid var(--line); }
.exp__head { display: grid; grid-template-columns: 174px 50px 1fr 30px; gap: 15px; align-items: center; width: 100%; padding: 20px 0; background: none; border: 0; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
.exp__year { font-size: 18px; }
.exp__logo { width: 50px; height: 50px; border-radius: 50%; overflow: hidden; }
.exp__logo img { width: 100%; height: 100%; object-fit: cover; }
.exp__head h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.exp__role { color: var(--accent); font-size: 14px; font-weight: 600; }
.exp__note { color: var(--muted); font-size: 12px; }
.exp__toggle { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); position: relative; }
.exp__toggle::before, .exp__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--accent); transform: translate(-50%, -50%); transition: transform .25s; }
.exp__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.exp__row.open .exp__toggle::after { transform: translate(-50%, -50%) rotate(0); }
.exp__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.exp__row.open .exp__body { grid-template-rows: 1fr; }
.exp__body > div { overflow: hidden; }
.exp__body .inner { padding: 0 0 28px; font-size: 15px; line-height: 1.55; }
.exp__body ul { margin: 0; padding-left: 18px; }
.exp__body li { margin-bottom: 6px; }
.exp__body .btn { margin-top: 16px; height: 40px; font-size: 14px; background: var(--accent); }

/* ---------- testimonials ---------- */
.testi { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 1200px; margin: 0 auto; height: 900px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 88%, transparent 100%); }
.testi__col { display: flex; flex-direction: column; gap: 28px; animation: vscroll 90s linear infinite; }
.testi__col--rev { animation-direction: reverse; }
.testi:hover .testi__col { animation-play-state: paused; }
.tcard { background: #fff; color: #000; border-radius: 20px; padding: 20px; font-size: 14px; line-height: 1.6; }
.tcard__who { display: flex; gap: 15px; align-items: center; margin-bottom: 14px; }
.tcard__who img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.tcard__who h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.tcard__who span { color: var(--accent); font-size: 14px; font-weight: 600; }
@keyframes vscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.85); display: none; align-items: center; justify-content: center; padding: 40px; }
.modal.open { display: flex; }
.modal__box { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 16px; overflow: hidden; }
.modal__box--portrait { width: auto; height: min(80vh, 900px); aspect-ratio: 9 / 16; }
.modal__box iframe, .modal__box video { width: 100%; height: 100%; border: 0; object-fit: contain; }
.modal__close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 22px; cursor: pointer; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 816fr 624fr; min-height: calc(100vh - 70px); }
.about__text { display: flex; flex-direction: column; justify-content: center; padding: 120px 90px 60px 120px; }
.about__text h1 { font-size: 60px; margin-bottom: 20px; }
.about__text .btn { margin-top: 20px; align-self: flex-start; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- case studies index hero ---------- */
.cshero { position: relative; padding: 180px 0 120px; overflow: hidden; }
.cshero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.cshero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,16,25,.4) 0%, var(--ink) 100%); }
.cshero .wrap { position: relative; z-index: 2; }
.brands { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.brands img { width: 150px; height: 100px; object-fit: contain; }

/* ---------- passion projects ---------- */
.pp-split { display: grid; grid-template-columns: 1fr 1fr; }
.pp-split__text { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.pp-split__text h2 { font-size: 32px; }
.pp-split__text h2.grad { font-size: 43px; margin-bottom: 24px; }
.pp-split__text p { font-size: 19px; }
.pp-split__media img { width: 100%; height: 100%; object-fit: cover; }
.pp-social { display: flex; gap: 16px; justify-content: center; margin: 30px 0; }
.pp-videos { display: flex; gap: 10px; justify-content: center; overflow: hidden; }
.pp-videos video { width: 280px; aspect-ratio: 280 / 284; object-fit: cover; flex: none; }

/* ======================================================
   CASE STUDY PAGES
   ====================================================== */
.cs { --cs-bg: #fff; --cs-ink: var(--ink); background: var(--cs-bg); color: var(--cs-ink); }
.cs__title { padding: 200px 0 50px; }
.cs__title h1 { font-size: 60px; }
.cs__title p { font-size: 24px; margin-top: 10px; }
.cs__hero img, .cs__hero video { width: 100%; height: auto; max-height: 900px; object-fit: cover; }
.cs-intro { padding: 50px 0; }
.cs-intro .wrap { display: grid; grid-template-columns: 648fr 648fr; gap: 60px; align-items: start; }
.cs-intro__tags { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.tag { border: 1px solid currentColor; border-radius: 100px; padding: 5px 16px; font-size: 14px; line-height: 22px; opacity: .9; }
.cs-intro__link { display: flex; justify-content: flex-end; margin-top: 20px; }
.cs-intro__link .btn { background: var(--accent); color: #fff; height: 40px; font-size: 14px; }

/* generic sections */
.sec { position: relative; padding: 50px 0; overflow: hidden; }
.sec--dark { color: #fff; }
.sec--flush { padding: 0; }
.sec--tall { padding: 100px 0; }
.sec__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sec > .sec__content { position: relative; z-index: 1; }
.sec__content > * + * { margin-top: 40px; }
.sec__content > .full { margin-left: 0; margin-right: 0; }

.txt h2 { font-size: 32px; margin-bottom: 20px; }
.txt h3 { font-size: 24px; margin-bottom: 12px; }
.txt--narrow { max-width: 518px; }
.txt--medium { max-width: 778px; }
.txt--center { text-align: center; margin-left: auto; margin-right: auto; }
.txt--center.txt--medium { max-width: 660px; }
.txt a { color: var(--accent); text-decoration: underline; }

.m { position: relative; overflow: hidden; border-radius: var(--m-radius, 0); }
.m img, .m video { width: 100%; height: 100%; object-fit: cover; }
.m--contain img, .m--contain video { object-fit: contain; }
.fig-full { width: 100%; }
.fig-full img, .fig-full video { width: 100%; height: auto; }

.grid { display: flex; gap: var(--gap, 20px); }
.grid__col { flex: 1; display: flex; flex-direction: column; gap: var(--gap, 20px); min-width: 0; }
.grid__col .m { flex: 1; }
.row { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap, 20px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split--media-left .split__text { order: 2; }
.split__media { display: flex; gap: 20px; justify-content: center; }
.split__media--stagger > :nth-child(2) { margin-top: 120px; }
.split__media--stagger > * { flex: 1; max-width: 286px; }

.marquee { overflow: hidden; width: 100%; }
.marquee__track { display: flex; gap: var(--gap, 30px); width: max-content; animation: hscroll var(--dur, 60s) linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee__track .m { height: var(--h, 420px); flex: none; }
.marquee__track .m img, .marquee__track .m video { width: auto; height: 100%; }
@keyframes hscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.vmarquee { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: var(--gap, 20px); height: var(--h, 900px); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%); }
.vmarquee__col { display: flex; flex-direction: column; gap: var(--gap, 20px); animation: vscroll var(--dur, 60s) linear infinite; }
.vmarquee__col:nth-child(even) { animation-direction: reverse; }
.vmarquee__col .m img { height: auto; }
.marquee:hover .marquee__track, .vmarquee:hover .vmarquee__col { animation-play-state: paused; }

.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 40px; }
.stat__v { font-size: 60px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat__l { font-size: 18px; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid currentColor; margin-bottom: 14px; }
.stat__t { font-size: 16px; opacity: .9; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btns--center { justify-content: center; }
.btns .btn { height: 48px; font-size: 16px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btns .btn--icon { width: 150px; justify-content: center; }

.embed { position: relative; width: 100%; aspect-ratio: var(--ar, 16 / 9); border-radius: var(--m-radius, 12px); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.quote { padding: 50px 0; }
.quote__text { max-width: 958px; font-size: 18px; }
.quote__who { display: flex; gap: 15px; align-items: center; margin-top: 30px; }
.quote__who img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.quote__who h4 { font-size: 24px; font-weight: 700; }
.quote__who p { margin: 0; }

.next { padding: 80px 0 0; }
.next__bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.next__label { font-size: 18px; text-transform: uppercase; margin: 0; }
.next__title { font-size: 32px; display: inline-flex; align-items: center; gap: 14px; }
.next__title svg { width: 30px; height: 30px; transition: transform .3s; }
.next a:hover .next__title svg { transform: translateX(6px); }
.next__img { display: block; height: 741px; overflow: hidden; }
.next__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.next__img:hover img { transform: scale(1.03); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .vmarquee__col, .testi__col { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .intro .wrap { grid-template-columns: 1fr; gap: 50px; }
  .cards--3 { grid-template-columns: 1fr 1fr; }
  .cs-intro .wrap { grid-template-columns: 1fr; gap: 30px; }
  .cs-intro__tags, .cs-intro__link { justify-content: flex-start; }
  .about__text { padding: 120px 40px 60px; }
}
@media (max-width: 809px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .nav__links, .nav > .btn { display: none; }
  .nav__burger { display: block; }
  .nav__drawer { position: fixed; inset: 64px 0 auto 0; background: inherit; flex-direction: column; padding: 10px 20px 24px; gap: 4px; font-weight: 600; }
  .nav.open .nav__drawer { display: flex; background: var(--ink); color: #fff; }
  .nav__drawer a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__drawer .btn { margin-top: 12px; justify-content: center; border: 0; }
  .hero h1, .head h1, .cs__title h1, .about__text h1 { font-size: 42px; }
  .hero__sub { font-size: 18px; }
  .btn { height: 48px; font-size: 16px; padding: 0 20px; }
  .head h2 { font-size: 24px; }
  .cards--3, .cards--2 { grid-template-columns: 1fr; }
  .exp__head { grid-template-columns: 50px 1fr 30px; }
  .exp__year { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
  .testi { grid-template-columns: 1fr; height: 700px; }
  .testi__col--rev { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__img { height: 520px; }
  .about__text { padding: 110px 20px 40px; }
  .pp-split { grid-template-columns: 1fr; }
  .pp-split__text { padding: 40px 20px; }
  .pp-split--rev .pp-split__media { order: 2; }
  .cs__title { padding: 120px 0 30px; }
  .cs__title p { font-size: 18px; }
  .txt h2, .next__title { font-size: 26px; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split--media-left .split__text { order: 0; }
  .split__media--stagger > :nth-child(2) { margin-top: 40px; }
  .grid { flex-direction: column; }
  .row { grid-template-columns: repeat(var(--cols-sm, 2), 1fr); }
  .stats { grid-template-columns: 1fr; }
  .stat__v { font-size: 44px; }
  .marquee__track .m { height: calc(var(--h, 420px) * .6); }
  .vmarquee { grid-template-columns: repeat(2, 1fr); height: 700px; }
  .vmarquee__col:nth-child(n+3) { display: none; }
  .next__bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .next__img { height: 360px; }
  .footer { flex-direction: column; text-align: center; }
  .modal { padding: 16px; }
}
.split__col { display: flex; flex-direction: column; gap: 20px; }
.split__media--stagger > .m:nth-child(2), .split__media--stagger > .split__col:nth-child(2) { margin-top: 340px; }
@media (max-width: 809px) {
  .split__media--stagger > .m:nth-child(2), .split__media--stagger > .split__col:nth-child(2) { margin-top: 80px; }
  .split__media { gap: 12px; }
}
.cs__hero { position: relative; }
.cs__hero .cs__hero-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 590px; max-width: 70%; height: auto; max-height: none; aspect-ratio: 590 / 147; object-fit: contain; pointer-events: none; }
.cs__hero-dim { position: absolute; inset: 0; pointer-events: none; }
