/* Christian · portfolio
   Paper matches the portrait's background so the illustration melts into the page. */
:root {
  --paper: #f1e9d8;
  --paper-2: #e8dec9;
  --ink: #16130f;
  --ink-2: #1f1b16;
  --muted: #6d6458;
  --muted-dark: #a99f90;
  --line: rgba(22, 19, 15, .16);
  --line-dark: rgba(241, 233, 216, .16);
  --accent: #ff4a1c;
  --accent-ink: #fff6ee;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading, body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { padding-inline: var(--gutter); max-width: 1600px; margin-inline: auto; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: transform 1s var(--ease);
}
.loader-word { margin: 0; display: flex; align-items: center; gap: 14px; font-size: clamp(36px, 5vw, 56px); font-weight: 500; }
.loader-word .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.loader-curve { position: absolute; top: 100%; left: 0; width: 100%; height: 12vh; fill: var(--ink); }
.loader.is-done { transform: translateY(calc(-100% - 12vh)); }

/* ---------- Top bar ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px var(--gutter);
  font-weight: 500;
}
.brand { display: inline-flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; }
.brand-c { display: inline-block; transition: transform .6s var(--ease-out); }
.brand-roll { position: relative; display: inline-flex; gap: .3em; }
.brand-a, .brand-b { transition: transform .6s var(--ease-out); }
.brand:hover .brand-c { transform: rotate(360deg); }
.brand:hover .brand-a { transform: translateX(-120%); }
.brand:hover .brand-b { transform: translateX(-4.35em); }
.nav-links { display: flex; gap: 8px; margin-left: auto; }
.nav-links a { position: relative; padding: 8px 14px; }
.nav-links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; transform: translate(-50%, 8px) scale(0); transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after { transform: translate(-50%, 0) scale(1); }

.lang { display: inline-flex; padding: 3px; border-radius: 99px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.lang button { border: 0; background: none; padding: 6px 11px; border-radius: 99px; letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Floating menu ---------- */
.menu-btn {
  position: fixed; top: 22px; right: var(--gutter); z-index: 60;
  width: 72px; height: 72px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--paper);
  display: grid; place-content: center; gap: 7px;
  transform: scale(0); transition: transform .5s var(--ease-out), background .3s;
  box-shadow: 0 10px 30px rgba(22, 19, 15, .25), inset 0 0 0 1px rgba(241, 233, 216, .2);
}
.menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; transition: transform .4s var(--ease-out); }
.menu-btn.is-shown { transform: scale(1); }
.menu-btn[aria-expanded="true"] { background: var(--accent); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0 0 0 auto; z-index: 55; width: min(520px, 100%);
  background: var(--ink); color: var(--paper);
  display: flex; transform: translateX(105%); transition: transform .7s var(--ease);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { transform: none; visibility: visible; }
.menu-inner { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 110px clamp(28px, 8vw, 80px) 48px; width: 100%; }
.menu-label { color: var(--muted-dark); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid var(--line-dark); padding-bottom: 20px; margin: 0 0 20px; }
.menu-inner > a { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(40px, 8vw, 60px); line-height: 1.15; position: relative; width: fit-content; }
.menu-inner > a::before { content: ""; position: absolute; left: -28px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: translateY(-50%) scale(0); transition: transform .3s var(--ease-out); }
.menu-inner > a:hover::before { transform: translateY(-50%) scale(1); }
.menu-lang { margin-top: 36px; border-color: var(--line-dark); width: fit-content; }
.menu-lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--paper);
}
.hero-portrait {
  position: absolute; left: 50%; bottom: 0; width: min(78vh, 92vw); aspect-ratio: 1;
  translate: -50% 4%;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; }

.hero-loc {
  position: absolute; left: 0; top: 46%; z-index: 2;
  display: flex; align-items: center; gap: 28px;
  background: var(--ink); color: var(--paper);
  padding: 22px 22px 22px var(--gutter); border-radius: 0 99px 99px 0;
  font-size: 17px; line-height: 1.3;
}
.hero-loc p { margin: 0; }
.globe { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.globe svg { width: 30px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; }
.globe .spin { transform-origin: 20px 20px; animation: globe 4s linear infinite; }
@keyframes globe { 0% { transform: scaleX(1); } 50% { transform: scaleX(-1); } 100% { transform: scaleX(1); } }

.hero-role {
  position: absolute; right: var(--gutter); top: 40%; z-index: 2;
  font-size: clamp(22px, 2.3vw, 34px); line-height: 1.2; font-weight: 500;
}
.hero-role p { margin: 0; }
.hero-arrow { width: 26px; margin-bottom: 26px; fill: none; stroke: currentColor; stroke-width: 2; }

.marquee {
  position: absolute; left: 0; right: 0; bottom: 3vh; z-index: 3;
  overflow: hidden; pointer-events: none; color: var(--ink);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee span {
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: clamp(110px, 17vw, 300px); line-height: .9; letter-spacing: -.02em; white-space: nowrap; padding-right: .25em;
}
.marquee em { font-style: normal; color: var(--accent); }

/* ---------- Intro ---------- */
.intro { padding: clamp(90px, 14vw, 200px) 0 clamp(70px, 10vw, 140px); }
.intro-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.statement { margin: 0; font-size: clamp(28px, 3.3vw, 52px); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; }
.intro-side { display: flex; flex-direction: column; gap: 40px; align-items: flex-start; }
.intro-side p { margin: 0; color: var(--muted); font-size: 18px; max-width: 34ch; }

/* Round buttons fill from the bottom on hover. */
.round-btn {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: clamp(150px, 13vw, 190px); aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 17px; isolation: isolate;
}
.round-btn--sm { width: 130px; font-size: 15px; }
.round-btn--accent { background: var(--accent); color: var(--accent-ink); width: clamp(170px, 15vw, 220px); font-size: 19px; }
.round-fill, .pill-fill {
  position: absolute; left: -10%; width: 120%; height: 160%; top: 100%; z-index: -1;
  border-radius: 50%; background: var(--accent); transition: top .6s var(--ease-out);
}
.round-btn--accent .round-fill { background: var(--paper); }
.round-btn:hover .round-fill, .pill:hover .pill-fill { top: -30%; }
.round-btn--accent:hover { color: var(--ink); }
.round-label { position: relative; text-align: center; padding: 0 12px; }

/* ---------- Work ---------- */
.eyebrow { margin: 0 0 28px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.dark .eyebrow { color: var(--muted-dark); }
.work { padding-bottom: clamp(80px, 12vw, 180px); position: relative; }
.work-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work-item { border-bottom: 1px solid var(--line); }
.work-item > a, .work-static {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 40px;
  padding: clamp(32px, 4.5vw, 60px) clamp(0px, 3vw, 50px);
  transition: padding .5s var(--ease-out), opacity .4s;
}
.work-item h3 {
  margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 700;
  font-size: clamp(40px, 6.2vw, 104px); line-height: 1; letter-spacing: -.025em;
}
.work-meta { color: var(--muted); font-size: 16px; text-align: right; }
.work-year { color: var(--muted); font-size: 16px; font-variant-numeric: tabular-nums; }
.work-desc, .work-tags, .work-thumb { display: none; }
.work-more { color: var(--muted); font-size: 16px; margin: 36px 0 0; }

@media (hover: hover) and (min-width: 900px) {
  .work-list:hover .work-item > a, .work-list:hover .work-static { opacity: .32; }
  .work-list .work-item:hover > a, .work-list .work-item:hover .work-static { opacity: 1; padding-inline: clamp(0px, 5vw, 90px) clamp(0px, 2vw, 30px); }
}

.preview {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 420px; height: 300px; overflow: hidden; border-radius: 6px;
  transform: translate(-50%, -50%) scale(0); transition: transform .45s var(--ease-out);
  background: var(--ink);
}
.preview.is-on { transform: translate(-50%, -50%) scale(1); }
.preview-strip { height: 300%; transition: transform .6s var(--ease); }
.preview-slide { height: 33.3334%; padding: 28px; display: grid; place-items: center; }
.preview-slide:nth-child(1) { background: #2a2620; }
.preview-slide:nth-child(2) { background: #3b2f27; }
.preview-slide img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 3px; }
.preview-slide--app { padding: 0; }
.preview-cta {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 600;
}

/* ---------- Background (dark) ---------- */
.dark { background: var(--ink); color: var(--paper); }
.background { padding: clamp(90px, 12vw, 180px) 0; border-radius: 0 0 clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px); position: relative; z-index: 2; }
.big {
  margin: 0; font-family: var(--display); font-stretch: 115%; font-weight: 700;
  font-size: clamp(40px, 6vw, 96px); line-height: 1.02; letter-spacing: -.03em; max-width: 15ch;
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: clamp(60px, 8vw, 110px) 0; }
.stat { border-top: 1px solid var(--line-dark); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.stat strong { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(44px, 5vw, 80px); line-height: 1; color: var(--accent); }
.stat span { color: var(--muted-dark); max-width: 24ch; }
.bg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 70px); }
.bg-col h3 { margin: 0 0 18px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-dark); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; flex-direction: column; padding: 16px 0; border-bottom: 1px solid var(--line-dark); }
.rows b { font-weight: 600; font-size: 20px; }
.rows span { color: var(--muted-dark); font-size: 15px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line-dark); border-radius: 99px; padding: 9px 16px; font-size: 15px; transition: background .25s, color .25s, border-color .25s; }
.chips li:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Journey ---------- */
.journey { position: relative; background: var(--paper); margin-top: calc(-1 * clamp(28px, 4vw, 60px)); padding-top: clamp(28px, 4vw, 60px); }
.journey-pin { padding: clamp(90px, 10vw, 150px) 0 clamp(70px, 8vw, 120px); }
.journey-head { width: 100%; margin-bottom: clamp(40px, 5vw, 70px); }
.journey-track { display: flex; gap: 24px; padding-inline: var(--gutter); }
.step {
  flex: 0 0 auto; width: min(420px, 80vw); min-height: 520px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--paper-2); border-radius: 22px; padding: 30px;
  position: relative; overflow: hidden;
}
.step-no { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 15px; color: var(--accent); }
.step-when { margin: 18px 0 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.step h3 { margin: 0; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 30px; line-height: 1.08; letter-spacing: -.02em; }
.step p:not(.step-when) { margin: 0; color: var(--muted); font-size: 16px; }
.step-img { margin-top: auto; width: 100%; height: 220px; object-fit: cover; border-radius: 14px; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.step:hover .step-img { filter: none; }
.step-art { margin-top: auto; height: 220px; border-radius: 14px; display: grid; place-items: center; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 90px; }
.step-art--code { background: var(--ink); color: var(--accent); }
.step-art--media { background: var(--accent); color: var(--accent-ink); }
.step--next { background: var(--ink); color: var(--paper); }
.step--next .step-when, .step--next p:not(.step-when) { color: var(--muted-dark); }
.step--next .round-btn { margin-top: auto; background: var(--paper); color: var(--ink); }
.step--next .round-btn:hover { color: var(--accent-ink); }

/* Desktop: pin the section and slide the cards sideways while scrolling down. */
@media (min-width: 900px) {
  .journey.is-horizontal .journey-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-block: 60px; }
  .journey.is-horizontal .journey-track { will-change: transform; }
  .journey.is-horizontal .step { min-height: min(520px, 58vh); }
  .journey.is-horizontal .step-img, .journey.is-horizontal .step-art { height: min(220px, 24vh); }
}

/* ---------- Contact ---------- */
.contact { padding-top: clamp(100px, 12vw, 180px); border-radius: clamp(28px, 4vw, 60px) clamp(28px, 4vw, 60px) 0 0; }
.contact-head { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.contact-face { width: clamp(72px, 8vw, 120px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.huge {
  margin: 0; font-family: var(--display); font-stretch: 118%; font-weight: 800;
  font-size: clamp(48px, 8.4vw, 150px); line-height: .98; letter-spacing: -.035em;
}
.contact-line { position: relative; margin: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--line-dark); }
.contact-line .round-btn { position: absolute; right: clamp(0px, 8vw, 140px); top: 0; transform: translateY(-50%); }
.contact-pills { display: flex; flex-wrap: wrap; gap: 14px; padding-top: clamp(80px, 9vw, 130px); }
.pill {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center;
  border: 1px solid var(--line-dark); border-radius: 99px; padding: 22px 34px; font-size: 18px; transition: color .3s, border-color .3s;
}
.pill:hover { border-color: var(--accent); color: var(--accent-ink); }
.pill > span:last-child { position: relative; }

.footer { display: flex; gap: clamp(24px, 5vw, 70px); flex-wrap: wrap; padding-top: clamp(70px, 9vw, 130px); padding-bottom: 32px; font-size: 15px; }
.footer p { margin: 0; }
.footer-label { color: var(--muted-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 10px !important; }
.footer-col--end { margin-left: auto; }
.socials { display: flex; gap: 22px; }
.socials a { position: relative; }
.socials a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.socials a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Scroll reveals ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 18ms); }
.split.is-in .w > span { transform: none; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 899px) {
  body { font-size: 17px; }
  .nav-links, .nav > .lang { display: none; }
  .nav { padding-top: 22px; }
  .menu-btn { transform: scale(1); width: 60px; height: 60px; top: 14px; }

  .hero-portrait { width: min(150vw, 84vh); translate: -50% 8%; }
  .hero-loc { top: auto; bottom: calc(3vh + clamp(110px, 17vw, 300px) * .9 + 18px); padding: 14px 14px 14px var(--gutter); gap: 16px; font-size: 14px; }
  .globe { width: 40px; height: 40px; }
  .globe svg { width: 24px; }
  .hero-role { top: 108px; left: var(--gutter); right: auto; font-size: 22px; }
  .hero-arrow { margin-bottom: 14px; width: 22px; }
  .marquee span { font-size: 110px; }

  .intro-grid { grid-template-columns: 1fr; }
  .intro-side { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
  .intro-side .round-btn { flex: 0 0 auto; width: 130px; font-size: 15px; }

  .work-list { border-top: 0; display: grid; gap: 48px; }
  .work-item { border-bottom: 0; }
  .work-item > a, .work-static { grid-template-columns: 1fr auto; padding: 0; gap: 8px 16px; }
  .work-thumb { display: block; grid-column: 1 / -1; grid-row: 1; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 14px; margin-bottom: 14px; background: var(--ink); }
  .work-thumb--app { overflow: hidden; }
  .work-item h3 { grid-column: 1; font-size: clamp(34px, 9vw, 56px); }
  .work-year { grid-column: 2; grid-row: 2; text-align: right; }
  .work-meta { grid-column: 1 / -1; text-align: left; }
  .work-desc { display: block; grid-column: 1 / -1; color: var(--muted); font-size: 16px; }
  .work-tags { display: block; grid-column: 1 / -1; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .preview { display: none; }

  .stats { grid-template-columns: 1fr; gap: 0; margin: 48px 0; }
  .stat { flex-direction: row; align-items: baseline; gap: 18px; padding: 20px 0; }
  .stat strong { font-size: 44px; min-width: 2.2ch; }
  .bg-grid { grid-template-columns: 1fr; }

  .journey-track { flex-direction: column; }
  .step { width: 100%; min-height: 0; }
  .step-img, .step-art { margin-top: 18px; height: 200px; }

  .contact-line .round-btn { position: relative; right: auto; transform: none; margin: 32px 0 0 auto; width: 150px; font-size: 16px; }
  .contact-pills { padding-top: 40px; }
  .pill { padding: 18px 24px; font-size: 16px; width: 100%; justify-content: center; }
  .footer-col--end { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .split .w > span { opacity: 1; transform: none; }
}

/* Danakini Finance: app icon and three App Store screens, fanned out on the brand blue. */
.dana-visual { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: radial-gradient(120% 120% at 20% 10%, #5b95ff 0%, #2f66e0 45%, #183f9c 100%); }
.dana-icon { position: absolute; left: 7%; top: 50%; width: 24%; translate: 0 -50%; border-radius: 22%; box-shadow: 0 14px 30px rgba(8, 24, 70, .35); }
.dana-shots { position: absolute; left: 36%; right: 3%; top: 9%; bottom: -40%; }
.dana-shots img { position: absolute; top: 0; width: 38%; border-radius: 10px; box-shadow: 0 18px 40px rgba(8, 24, 70, .4); transition: transform .6s var(--ease-out); }
.dana-shots img:nth-child(1) { left: 0; transform: rotate(-8deg) translateY(10%); }
.dana-shots img:nth-child(2) { left: 31%; z-index: 1; }
.dana-shots img:nth-child(3) { left: 62%; transform: rotate(8deg) translateY(10%); }
.work-item:hover .dana-shots img:nth-child(1) { transform: rotate(-12deg) translate(-6%, 6%); }
.work-item:hover .dana-shots img:nth-child(3) { transform: rotate(12deg) translate(6%, 6%); }
