/* Anna-Simone Eissa · portfolio. One stylesheet for every page. Colours and sizes are the variables below. */
@font-face { font-family: "Inter Tight"; src: url("/fonts/inter-tight.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff; --panel: #f3f3f4; --ink: #0d0d0e; --body: #2b2b30; --muted: #6b6b72; --line: #e3e3e6;
  --dark: #0d0c0f; --dark-card: #19181c; --dark-line: #2b2a30; --dark-muted: #a3a2aa;
  --night: #160a1b; --terra: #d2532f; --plum: #4a1b4f; --apricot: #f39a52; --green: #1f9d63;
  --r: 28px; --f: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
.inner { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.frame { margin: 12px; border-radius: var(--r); }
.icon { width: 1.05em; height: 1.05em; flex: none; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 3px; }

/* Floating pill navigation */
.nav { position: sticky; top: 0; z-index: 20; height: 0; display: flex; justify-content: center; }
.pill { display: flex; align-items: center; gap: 2px; height: max-content; margin-top: 26px; padding: 6px; border-radius: 999px; background: rgba(236, 236, 238, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.45); }
.avatar { display: block; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: none; background: linear-gradient(140deg, var(--apricot), var(--terra) 45%, var(--plum)); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.pill a { padding: 10px 15px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color 0.2s; }
.pill a.avatar { padding: 0; margin-right: 4px; }
.pill a:hover { background: #fff; }
.pill .cta { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding: 11px 18px; background: var(--ink); color: #fff; }
.pill .cta:hover { background: var(--terra); }

/* Chips: small pills used inside headings and as labels */
.chip { display: inline-flex; align-items: center; gap: 0.45em; padding: 0.55em 1em; border-radius: 999px; font-size: 15px; line-height: 1; font-weight: 500; letter-spacing: 0; white-space: nowrap; text-decoration: none; vertical-align: middle; }
.chip.light { background: #fff; color: var(--ink); }
.chip.glass { background: rgba(255, 255, 255, 0.14); color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(8px); }
a.chip.light:hover { background: var(--ink); color: #fff; }
.chip.tag { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.chip.tag-dark { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid var(--dark-line); }
a.chip.tag:hover { border-color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(31, 157, 99, 0.2); flex: none; }

/* Warm gradient panel: home hero and the contact block */
.glow { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.glow::before { content: ""; position: absolute; inset: -25%; pointer-events: none; background:
    radial-gradient(32% 34% at 74% 76%, rgba(243, 154, 82, 0.95), transparent 70%),
    radial-gradient(30% 32% at 30% 88%, rgba(210, 83, 47, 0.9), transparent 70%),
    radial-gradient(38% 40% at 62% 18%, rgba(110, 36, 104, 0.85), transparent 70%),
    radial-gradient(30% 30% at 12% 20%, rgba(60, 18, 70, 0.9), transparent 70%);
  filter: blur(30px); animation: drift 22s ease-in-out infinite alternate; }
.glow::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.glow > .inner { position: relative; z-index: 1; }
@keyframes drift { to { transform: translate(-5%, 4%) rotate(9deg) scale(1.06); } }

/* Home hero: one sentence with pills inside it */
.hero { display: flex; align-items: center; min-height: min(88vh, 860px); }
.hero > .inner { width: 100%; padding-top: 120px; padding-bottom: 80px; }
.hello { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; opacity: 0.92; }
.hello .avatar { width: 40px; height: 40px; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4); }
.hero h1 { max-width: 1000px; margin-top: 28px; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.06; font-weight: 600; letter-spacing: -0.04em; }
.hero h1 .chip, .contact h2 .chip { font-size: clamp(13px, 1.15vw, 17px); transform: translateY(-0.2em); }

/* Teams strip */
.teams { padding: 30px 0 18px; text-align: center; }
.teams p { font-size: 14px; color: var(--muted); }
.teams ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; margin: 14px 0 0; padding: 0 22px; list-style: none; }
.teams li { font-size: 23px; font-weight: 700; letter-spacing: -0.03em; color: #8e8e95; }

/* Section heads */
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 36px; }
.head h2 { margin-top: 14px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.head > p { max-width: 36ch; color: var(--muted); }

/* Work grid */
.work { padding: 90px 0; background: var(--panel); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 28px; }
.card { display: block; text-decoration: none; }
.thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 11; border-radius: 22px; background: var(--tint); }
.thumb img { position: absolute; left: 9%; top: 13%; width: 108%; max-width: none; border-radius: 10px; box-shadow: 0 30px 60px -28px rgba(30, 10, 20, 0.5); transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.card:hover .thumb img { transform: translate(-10px, -10px) scale(1.02); }
.thumb.typo { display: flex; align-items: flex-end; padding: 30px; }
.thumb.typo span { font-size: clamp(36px, 4.4vw, 62px); line-height: 0.95; font-weight: 700; letter-spacing: -0.05em; color: rgba(13, 13, 14, 0.85); }
.card-meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-top: 18px; }
.card h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
a.card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.card .chip { font-size: 13px; padding: 7px 12px; background: #fff; border: 1px solid var(--line); }
.card .chip.soon { color: var(--muted); }
.card .small { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Experience: company cards in two masonry columns */
.experience { padding: 90px 0 70px; }
.note { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 16px 22px; border-radius: 18px; background: var(--panel); font-size: 15px; }
.cols { columns: 2; column-gap: 20px; }
.xp { break-inside: avoid; margin: 0 0 20px; padding: 30px 32px 26px; border-radius: 24px; background: var(--panel); }
.xp h3 { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.xp h3 span { color: var(--muted); font-weight: 500; }
.xp abbr { text-decoration: none; }
.xp .when { margin-top: 4px; font-size: 14px; color: var(--muted); }
.xp dl { margin: 22px 0 0; }
.xp dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.xp dt { font-size: 14px; color: var(--muted); }
.xp dd { margin: 0; font-size: 15px; }
.xp dd b { display: block; font-weight: 600; }
.xp dd b + span { display: block; margin-bottom: 10px; font-size: 13.5px; color: var(--muted); }
.xp dd b + span:last-child { margin-bottom: 0; }
.xp ul { margin: 0; padding: 0; list-style: none; }
.xp li { line-height: 1.7; }
.xp a { font-weight: 600; text-decoration: none; }
.xp a:hover { color: var(--terra); }

/* Strengths: dark panel with tilted cards */
.strengths { padding: 100px 0 120px; background: var(--dark); color: #fff; overflow: hidden; }
.strengths .head > p { color: var(--dark-muted); }
.fan { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; margin-top: 20px; }
.s-card { padding: 32px; border-radius: 24px; background: var(--dark-card); border: 1px solid var(--dark-line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); transform: rotate(var(--rot)) translateY(var(--y, 0)); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.s-card:hover { transform: rotate(0) translateY(-6px); }
.s-card svg { width: 30px; height: 30px; color: #fff; opacity: 0.9; }
.s-card h3 { margin-top: 18px; font-size: 28px; line-height: 1.1; font-weight: 600; letter-spacing: -0.035em; }
.s-card p { margin-top: 12px; color: var(--dark-muted); }
.s-card .chip { margin-top: 20px; font-size: 13px; padding: 7px 12px; color: #fff; background: var(--c); }

/* About: portrait beside text that lights up as it scrolls into view */
.about { padding: 120px 0; background: var(--dark); color: #fff; }
.about-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 72px; align-items: start; }
.portrait { position: sticky; top: 110px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
.portrait figcaption { margin-top: 14px; font-size: 14px; color: var(--dark-muted); }
.about h2 { margin-top: 18px; font-size: clamp(32px, 4vw, 52px); line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.about .lit { margin-top: 28px; font-size: clamp(22px, 2.4vw, 31px); line-height: 1.34; font-weight: 500; letter-spacing: -0.025em; }
.facts { margin: 56px 0 0; }
.facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-top: 1px solid var(--dark-line); }
.facts dt { font-size: 14px; color: var(--dark-muted); }
.facts dd { margin: 0; font-size: 16px; }
.facts dd span { color: var(--dark-muted); }

/* Contact */
.contact { padding: 110px 0 40px; }
.contact h2 { max-width: 16ch; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--ink); color: #fff; }
.btn.glass { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.btn.glass:hover { background: rgba(255, 255, 255, 0.25); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 90px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.25); font-size: 14px; }
.foot span { opacity: 0.85; }

/* Case study pages */
.case-hero { --muted: #55555c; padding: 130px 0 0; background: var(--tint, var(--panel)); overflow: hidden; }
.case-hero .crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.case-hero h1 { max-width: 20ch; margin-top: 26px; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; }
.case-hero .lead { max-width: 62ch; margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--body); }
.results { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 0; }
.results > div { display: flex; flex-direction: column-reverse; gap: 6px; min-width: 180px; padding: 20px 24px; border-radius: 20px; background: #fff; }
.results dt { font-size: 14px; color: var(--muted); }
.results dd { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(13, 13, 14, 0.14); }
.meta dt { font-size: 13px; color: var(--muted); }
.meta dd { margin: 4px 0 0; font-size: 15px; font-weight: 500; }
.hero-shot { margin-top: 56px; }
.hero-shot img { width: 100%; border-radius: 14px 14px 0 0; box-shadow: 0 30px 70px -30px rgba(30, 10, 20, 0.55); }
.hero-cap { max-width: 1180px; margin: 14px auto 0; padding: 0 52px; font-size: 14px; color: var(--muted); }

.case-body { max-width: 760px; margin: 0 auto; padding: 90px 22px 40px; }
.case-body .note { margin: 0 0 56px; }
.case-body section + section, .case-body .fig + section, .case-body .pair + section { margin-top: 64px; }
.case-body h2 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.case-body p, .case-body li { font-size: 18px; line-height: 1.68; color: var(--body); }
.case-body h2 + p, .case-body h2 + ul { margin-top: 18px; }
.case-body p + p { margin-top: 16px; }
.case-body ul { margin: 0; padding-left: 1.2em; }
.case-body li + li { margin-top: 10px; }
.case-body strong { color: var(--ink); font-weight: 600; }
.case-body a { color: #b0401f; text-underline-offset: 3px; }
.fig { margin: 48px calc(50% - min(50vw, 590px) + 22px) 0; }
.fig .shot { padding: clamp(16px, 4vw, 48px); border-radius: 24px; background: var(--panel); }
.fig .shot > * { margin: 0 auto; border-radius: 10px; box-shadow: 0 24px 50px -28px rgba(30, 10, 20, 0.45); }
.fig.narrow .shot > * { max-width: min(720px, 100%); }
.fig figcaption { max-width: 760px; margin: 14px auto 0; padding: 0 22px; font-size: 14px; color: var(--muted); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 48px calc(50% - min(50vw, 590px) + 22px) 0; }
.pair .fig { margin: 0; }
.pair .fig figcaption { padding: 0 4px; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1180px; margin: 50px auto 40px; padding: 0 40px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 28px 30px; border-radius: 24px; background: var(--panel); text-decoration: none; transition: background-color 0.2s; }
.pager a:hover { background: var(--line); }
.pager .next { text-align: right; }
.pager small { font-size: 14px; color: var(--muted); }
.pager b { font-size: clamp(20px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.03em; }

/* Phone screens: home card thumbnail and the app case study hero */
.thumb.phones img { width: 34%; top: 12%; border-radius: 18px; }
.thumb.phones img:first-child { left: 13%; }
.thumb.phones img + img { left: 53%; top: 20%; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-bottom: 56px; }
.steps img { border-radius: 16px; box-shadow: 0 24px 50px -28px rgba(30, 10, 20, 0.45); }
.steps figcaption { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.steps figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* 404 */
.lost { display: flex; align-items: center; min-height: calc(100vh - 24px); }
.lost > .inner { width: 100%; padding-top: 120px; padding-bottom: 80px; }
.lost h1 { max-width: 14ch; margin-top: 22px; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; font-weight: 600; letter-spacing: -0.045em; }

/* Scroll motion, only where the browser supports it; content is fully visible without it */
@supports (animation-timeline: view()) {
  .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes rise { from { opacity: 0; transform: translateY(48px); } }
  .about .lit { animation: lit linear both; animation-timeline: view(); animation-range: entry 40% cover 48%; }
  @keyframes lit { from { color: #7c7b84; } }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

@media (max-width: 820px) {
  .inner, .pager { padding: 0 22px; }
  .frame { margin: 8px; border-radius: 22px; }
  .pill a.hide-sm { display: none; }
  .grid2, .fan, .pair, .pager { grid-template-columns: 1fr; }
  .cols { columns: 1; }
  .xp { padding: 26px 22px 22px; }
  .xp dl > div, .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .s-card { --rot: 0deg !important; --y: 0 !important; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { position: static; max-width: 300px; }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results > div { flex: 1 1 140px; min-width: 0; }
  .hero-cap { padding: 0 30px; }
  .fig, .pair { margin-left: 0; margin-right: 0; }
  .pager .next { text-align: left; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
}
