@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #e9e9ec;
  --bg-2: #dfdfe4;
  --ink: #0c0c10;
  --muted: #64646e;
  --line: rgba(12, 12, 16, 0.14);
  --accent: #1760f0;
  --accent-hover: #0f4fd0;
  --accent-dark: #5b93ff;
  --night: #0c0c10;
  --night-ink: #f1f1f3;
  --gutter: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Text that slides up from behind a mask */
.mask { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.mask > span { display: inline-block; }
.js .mask > span { transform: translateY(110%); }
.js.is-ready .no-anim .mask > span { transform: none; }

/* Loader */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: end start;
  padding: var(--gutter);
  background: var(--night);
  color: var(--night-ink);
}
.loader-num { font-size: clamp(64px, 14vw, 220px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8; font-variant-numeric: tabular-nums; }
html:not(.js) .loader { display: none; }

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.3s;
  opacity: 0;
}
.cursor-label { font-size: 13px; font-weight: 500; color: #fff; opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); }
.cursor.is-big .cursor-label { opacity: 1; transition-delay: 0.12s; }
.cursor.on-dark { background: var(--night-ink); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Scrollbar: scrollbar.js swaps the native one for a thin blue thumb on mouse devices */
html.has-scrollbar { scrollbar-width: none; }
html.has-scrollbar::-webkit-scrollbar { display: none; }
.scrollbar { position: fixed; top: 8px; bottom: 8px; right: 2px; z-index: 95; width: 14px; cursor: pointer; }
.scrollbar[hidden] { display: none; }
.scrollbar::before, .scrollbar-thumb {
  position: absolute; right: 4px; width: 4px; border-radius: 99px;
  transition: opacity 0.3s var(--ease), width 0.22s var(--ease), right 0.22s var(--ease);
}
.scrollbar::before { content: ""; top: 0; bottom: 0; background: rgba(12, 12, 16, 0.06); opacity: 0; }
.scrollbar-thumb {
  top: 0; overflow: hidden; will-change: transform; cursor: grab;
  background: linear-gradient(180deg, var(--accent-hover), #2997ff); opacity: 0.7;
}
.scrollbar-thumb::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 300%;
  background: linear-gradient(transparent 42%, rgba(255, 255, 255, 0.7) 50%, transparent 58%);
  animation: sheen 3.2s var(--ease) infinite;
}
@keyframes sheen { from { transform: translateY(-66.667%); } to { transform: translateY(0); } }
.scrollbar.is-active::before, .scrollbar:hover::before, .scrollbar.is-dragging::before,
.scrollbar.is-active .scrollbar-thumb, .scrollbar:hover .scrollbar-thumb, .scrollbar.is-dragging .scrollbar-thumb { opacity: 1; }
.scrollbar:hover::before, .scrollbar.is-dragging::before,
.scrollbar:hover .scrollbar-thumb, .scrollbar.is-dragging .scrollbar-thumb { width: 7px; right: 3px; }
.scrollbar.is-dragging .scrollbar-thumb { cursor: grabbing; }
@media (prefers-reduced-motion: reduce) {
  .scrollbar::before, .scrollbar-thumb { transition: none; }
  .scrollbar-thumb::after { animation: none; opacity: 0; }
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--gutter);
  transition: transform 0.5s var(--ease);
}
.nav.is-hidden { transform: translateY(-110%); }
.logo { font-weight: 600; font-size: 20px; letter-spacing: -0.04em; }
.dot, .accent { color: var(--accent); }
.link-arrow { font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.link-arrow:hover { color: var(--accent); border-color: var(--accent); }
.nav nav { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(233, 233, 236, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav nav a { padding: 8px 16px; border-radius: 99px; font-size: 15px; transition: background-color 0.25s; }
.nav nav a:hover { background: rgba(12, 12, 16, 0.07); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.lang {
  font: 500 13px "Geist", system-ui, sans-serif; letter-spacing: 0.08em; color: var(--ink);
  background: rgba(233, 233, 236, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 0; border-radius: 99px; height: 40px; min-width: 40px; padding: 0 12px; cursor: pointer;
}
.pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: 99px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
  transition: background-color 0.3s;
}
.pill:hover { background: var(--accent-hover); }
.nav .logo { transition: color 0.3s; }
.nav.on-dark .logo { color: var(--night-ink); }
.nav.on-dark .pill { background: var(--night-ink); color: var(--ink); }
.nav.on-dark .pill:hover { background: var(--accent-dark); color: #fff; }
@media (max-width: 760px) { .nav nav { display: none; } }

/* Hero: the "oondraa." wordmark as a field of dots (halftone.js) that scatter under the pointer */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(32px, 5vh, 64px);
  padding: calc(76px + clamp(8px, 2vw, 24px)) var(--gutter) clamp(24px, 4vw, 48px);
}
.halftone { position: relative; width: 100%; margin-block: auto; font-family: "Geist", system-ui, sans-serif; touch-action: pan-y; }
.halftone canvas { display: block; width: 100%; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.hero-name { font-size: clamp(28px, 3.4vw, 52px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.hero-lede { margin-top: 10px; font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.02em; color: var(--muted); max-width: 30ch; line-height: 1.25; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.scroll-cue i { position: relative; width: 1px; height: 44px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%; background: var(--ink); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (max-width: 560px) {
  .scroll-cue { display: none; }
}

/* Statement */
.statement { padding: clamp(96px, 14vw, 200px) var(--gutter); }
.statement-text { font-size: clamp(30px, 4.6vw, 76px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 500; max-width: 20ch; }
.statement-text .w { opacity: 0.14; transition: none; }
html:not(.js) .statement-text .w { opacity: 1; }

/* Fork: team (OZDIGITAL) or me (portfolio) */
.fork { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(48px, 7vw, 96px); }
.fork-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: clamp(220px, 24vw, 320px);
  padding: clamp(24px, 3vw, 40px); border-radius: 20px; overflow: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.6s var(--ease);
}
.fork-team { background: var(--accent); color: #fff; }
.fork-team:hover { background: var(--accent-hover); }
.fork-me { background: var(--bg-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.fork-me:hover { background: var(--ink); color: var(--night-ink); }
.fork-kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
.fork-title {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto;
  font-size: clamp(36px, 5.2vw, 84px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95;
}
.fork-title i { font-style: normal; font-weight: 400; transition: transform 0.6s var(--ease); }
.fork-team:hover .fork-title i { transform: translate(6px, -6px); }
.fork-me:hover .fork-title i { transform: translateY(8px); }
.fork-sub { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.4; opacity: 0.8; max-width: 44ch; }
@media (max-width: 760px) {
  .fork { grid-template-columns: 1fr; }
  .fork-card { min-height: 200px; }
}

/* Sections */
.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 0 var(--gutter); margin-bottom: clamp(32px, 5vw, 72px);
}
.sec-title { font-size: clamp(44px, 8vw, 132px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; }
.sec-count { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.sec-lede { max-width: 32ch; text-transform: none; }

/* Projects: a two-column grid of equal cards, the right column dropped a little */
.work { padding-bottom: clamp(64px, 10vw, 140px); }
.projects {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px) clamp(16px, 2.4vw, 32px); padding: 0 var(--gutter);
}
.project {
  display: grid; grid-template-areas: "media" "bar" "head" "body";
  grid-template-rows: auto auto auto 1fr; row-gap: 16px; align-content: start;
}
.project:nth-child(even) { margin-top: clamp(0px, 10vw, 160px); }
.project-bar {
  grid-area: bar;
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 4px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.project-n { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); font-weight: 600; }
.project-n::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: 0.4; }
.project-head { grid-area: head; display: flex; align-items: center; gap: 14px; }
.project-head img, .project-mono { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.project-mono { display: grid; place-items: center; background: var(--tint); color: #fff; font-weight: 600; font-size: 20px; }
.project-head h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.project-media {
  grid-area: media;
  position: relative; display: block; overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 24px);
  background: var(--tint, var(--bg-2));
  aspect-ratio: 4 / 3;
  transform: translateZ(0);
}
.project-media > * { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--origin, 50% 50%); transform: scale(1.12); transition: transform 1.2s var(--ease); }
.project-media:hover > * { transform: scale(1.04); }
.project-body { grid-area: body; display: grid; gap: 16px; align-content: start; }
.project-body > p { color: var(--muted); max-width: 52ch; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.project-links a { font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.3s, border-color 0.3s; }
.project-links a:hover { color: var(--accent); border-color: var(--accent); }
.fine { font-size: 13px; }
@media (max-width: 760px) {
  .projects { grid-template-columns: minmax(0, 1fr); }
  .project:nth-child(even) { margin-top: 0; }
}

/* On the way: upcoming projects as numbered rows, text only */
.soon { padding-bottom: clamp(64px, 10vw, 140px); }
.soon-list { list-style: none; margin: 0; padding: 0 var(--gutter); border-top: 1px solid var(--line); }
.soon-item {
  display: grid; grid-template-columns: 64px minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(16px, 2.4vw, 32px);
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.soon-n { padding-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--accent); }
.soon-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.soon-head h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.soon-tag {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.soon-body { display: grid; gap: 14px; align-content: start; padding-top: 6px; }
.soon-body > p { color: var(--muted); max-width: 56ch; }
.soon-note { display: flex; gap: 10px; align-items: baseline; max-width: 52ch; font-size: 15px; color: var(--ink); }
.soon-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); translate: 0 -1px; }
@media (max-width: 760px) {
  .soon-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .soon-n { padding-top: 0; }
}

/* Support: a full-width accent block pointing to Ko-fi */
.support { padding: 0 var(--gutter) clamp(64px, 10vw, 140px); }
.support-inner {
  position: relative; overflow: hidden;
  display: grid; justify-items: start; gap: clamp(16px, 2vw, 28px);
  padding: clamp(40px, 7vw, 120px) clamp(24px, 6vw, 96px);
  border-radius: clamp(20px, 2.4vw, 36px);
  background: var(--accent); color: #fff;
}
.support-inner::after {
  content: "☕"; position: absolute; right: clamp(-20px, 2vw, 40px); bottom: clamp(-40px, -2vw, -10px);
  font-size: clamp(160px, 26vw, 420px); line-height: 1; opacity: 0.14; filter: grayscale(1) brightness(3); pointer-events: none;
}
.support-kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.support-title { font-size: clamp(48px, 9vw, 152px); font-weight: 600; letter-spacing: -0.06em; line-height: 0.9; }
.support-text { max-width: 52ch; font-size: clamp(16px, 1.4vw, 19px); opacity: 0.9; position: relative; z-index: 1; }
.support-btn {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 16px 28px; border-radius: 999px; background: #fff; color: var(--accent);
  font-size: 17px; font-weight: 600; transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.support-btn:hover { background: var(--night); color: #fff; transform: translateY(-2px); }

/* Marquee */
.marquee { overflow: hidden; padding: clamp(24px, 4vw, 56px) 0; border-block: 1px solid var(--line); }
.marquee-track { display: flex; width: max-content; font-size: clamp(56px, 10vw, 168px); font-weight: 600; letter-spacing: -0.06em; line-height: 1; white-space: nowrap; }
.marquee-track span { padding-right: 0.3em; }

/* Contact: the "OONDRAA" ink field (ink.js) with the call to action on top */
.contact {
  position: relative; overflow: hidden;
  min-height: 100svh;
  background: var(--night); color: var(--night-ink);
}
.ink-gl { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Six rows of outlined "OONDRAA" fill the section; ink.js paints colour inside them where the pointer has been. */
.ink-bg {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  font-size: max(93px, calc(100svh / 6 / 0.9)); font-weight: 400; line-height: 0.9; letter-spacing: -0.03em;
  white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(241, 241, 243, 0.14);
  pointer-events: none; user-select: none;
}
.ink-bg span:nth-child(even) { margin-left: -2.4em; }
.contact-inner {
  position: relative; z-index: 1; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(96px, 14vw, 200px) var(--gutter) 0;
  pointer-events: none;
}
.contact-inner a { pointer-events: auto; }
.contact-kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #8d8d97; margin-bottom: 20px; }
.contact-big { display: inline-flex; align-items: center; gap: 0.18em; font-size: clamp(64px, 15.5vw, 260px); font-weight: 600; letter-spacing: -0.065em; line-height: 0.86; margin-left: -0.05em; }
.contact-arrow { display: inline-block; color: var(--accent-dark); transition: transform 0.6s var(--ease); }
.contact-big:hover .contact-arrow { transform: translateX(0.18em); }
.contact-mail { display: inline-block; margin-top: 28px; font-size: clamp(18px, 2vw, 26px); border-bottom: 1px solid rgba(241, 241, 243, 0.25); padding-bottom: 2px; }
.contact-mail:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.contact-foot { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 96px); padding: 20px 0; border-top: 1px solid rgba(241, 241, 243, 0.14); }
@font-face { font-family: "PhSocial"; src: url("assets/icons/phosphor-social.woff2") format("woff2"); font-display: block; }
.ph { font-family: "PhSocial" !important; font-style: normal; font-weight: normal; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; }
.ph-github-logo::before { content: "\e576"; }
.ph-linkedin-logo::before { content: "\e2ee"; }
.ph-instagram-logo::before { content: "\e2d0"; }
.ph-coffee::before { content: "\e1c2"; }
.ph-globe-simple::before { content: "\e28e"; }
.ph-envelope-simple::before { content: "\e218"; }

/* Footer socials: big icon tiles, Instagram first and highlighted */
.socials {
  flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px;
  list-style: none; margin: 0 0 8px; padding: 0;
}
.social {
  display: flex; align-items: center; gap: 14px; height: 100%;
  padding: 16px 18px; border-radius: 18px;
  background: rgba(241, 241, 243, 0.06); border: 1px solid rgba(241, 241, 243, 0.12);
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.social .ph { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(241, 241, 243, 0.1); font-size: 26px; }
.social span { display: grid; gap: 2px; min-width: 0; }
.social b { font-size: 17px; font-weight: 600; }
.social small { font-size: 13px; color: #a3a3ad; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social:hover { background: rgba(241, 241, 243, 0.12); border-color: rgba(241, 241, 243, 0.3); transform: translateY(-2px); }
/* Each tile in its brand colour so it reads on the dark footer */
.social { color: #fff; border-color: transparent; }
.social .ph { background: rgba(255, 255, 255, 0.2); }
.social small { color: rgba(255, 255, 255, 0.85); }
.social:hover { border-color: transparent; filter: brightness(1.1); }
.social-ig, .social-ig:hover { background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%); }
.social-gh, .social-gh:hover { background: #f0f6fc; color: #1f2328; }
.social-gh .ph { background: rgba(31, 35, 40, 0.1); }
.social-gh small { color: #59636e; }
.social-li, .social-li:hover { background: #0a66c2; }
.social-oz, .social-oz:hover { background: #1760f0; }
.social-kofi, .social-kofi:hover { background: #ff5e5b; }
.social-mail, .social-mail:hover { background: #12a150; }
.copy { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: #8d8d97; }

@media (prefers-reduced-motion: reduce) {
  .scroll-cue i::after { animation: none; }
  .project-media > * { transform: none; }
}
