/* adriaanse.cloud — one screen: who I am, what I care about, and the work. */
:root {
  --bg: #f6f4f1; --ink: #121214; --muted: #5d5d66; --line: rgba(18, 18, 20, .08);
  --card: rgba(255, 255, 255, .62); --card-line: rgba(255, 255, 255, .9); --chip: rgba(255, 255, 255, .55);
  --orange: #ff8a1f; --accent: #ff6a3d; --violet: #7a5cff; --teal: #12b5a6;
  --shadow: 0 30px 80px -30px rgba(60, 40, 20, .35), 0 8px 24px -12px rgba(60, 40, 20, .18);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0e; --ink: #f4f3f1; --muted: #a2a2ad; --line: rgba(255, 255, 255, .08);
    --card: rgba(30, 30, 36, .55); --card-line: rgba(255, 255, 255, .09); --chip: rgba(255, 255, 255, .05);
    --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 8px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto;
  background: var(--bg); color: var(--ink);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Soft light behind everything: three slow blobs, transform-only so it stays cheap. */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(255, 138, 31, .55), transparent 65%); top: -18vmax; right: -10vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(122, 92, 255, .38), transparent 65%); bottom: -22vmax; left: -14vmax; animation-duration: 32s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(18, 181, 166, .28), transparent 65%); top: 30%; left: 35%; width: 30vmax; height: 30vmax; animation-duration: 38s; }
@media (prefers-color-scheme: dark) { .aurora i { opacity: .42; } }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); } }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; padding: max(18px, env(safe-area-inset-top)) clamp(16px, 4vw, 56px) 0; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: -.02em; font-size: 18px; }
.mark svg { width: 30px; height: 30px; }
.mark svg rect { fill: var(--ink); stroke: none; }
.mark svg path { stroke: var(--bg); stroke-width: 2.6; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--chip); border: 1px solid var(--line); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6); }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 600 13px/1 inherit; font-family: inherit; padding: 8px 13px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 999px; background: var(--card-line); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
@media (prefers-color-scheme: dark) { .seg .thumb { background: rgba(255, 255, 255, .14); } }

/* Main: intro left, the work right; together one screen high. */
main {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 80px);
  align-items: center; padding: clamp(16px, 3vh, 40px) clamp(16px, 4vw, 56px); max-width: 1320px; width: 100%; margin: 0 auto;
}
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
h1 { margin: 0; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; text-wrap: balance; }
.grad { background: linear-gradient(100deg, var(--orange), var(--accent) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { margin: clamp(14px, 2.2vh, 22px) 0 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; text-wrap: pretty; }

.pillars { list-style: none; margin: clamp(20px, 3.4vh, 36px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.pillars li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 18px; background: var(--chip); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.pillars li:last-child { grid-column: 1 / -1; }
.pillars .ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--orange); background: rgba(255, 138, 31, .13); }
.pillars .ico svg { width: 20px; height: 20px; }
.pillars b { display: block; font-size: 15.5px; letter-spacing: -.01em; }
.pillars small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }

/* The work */
.work { min-width: 0; display: grid; gap: 18px; }
.work .eyebrow { margin-bottom: 0; }
.project.informed::before { background: radial-gradient(closest-side, rgba(255, 170, 60, .3), transparent); }
.project {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: end;
  padding: clamp(22px, 2.6vw, 34px); border-radius: 34px; text-decoration: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  transform-style: preserve-3d; will-change: transform; -webkit-tap-highlight-color: transparent;
}
.project::before { content: ""; position: absolute; inset: auto -20% -50% 30%; height: 90%; background: radial-gradient(closest-side, rgba(255, 138, 31, .28), transparent); pointer-events: none; }
.project:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.project-head { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 24px -8px rgba(255, 106, 31, .55); }
.project h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.soon { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.project p { margin: 16px 0 20px; color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 30em; }
.cta { display: inline-flex; align-items: center; gap: 6px; padding: 11px 16px 11px 18px; border-radius: 999px; background: linear-gradient(100deg, var(--orange), var(--accent)); color: #fff; font-weight: 650; font-size: 15px; box-shadow: 0 10px 22px -10px rgba(255, 106, 31, .9); }
.cta svg { width: 16px; height: 16px; stroke-width: 2.2; transition: transform .45s var(--spring); }
.project:hover .cta svg { transform: translateX(3px); }
.device { position: relative; width: clamp(150px, 15vw, 210px); aspect-ratio: 360 / 783; margin-bottom: -60px; border-radius: 30px; padding: 6px; background: #121216; box-shadow: 0 0 0 1px #3a3a42, 0 24px 50px -16px rgba(0, 0, 0, .55); transform: translateZ(40px); }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 24px; }

footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 clamp(16px, 4vw, 56px) max(18px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 12.5px; }

/* Entrance: rises once, quickly; nothing waits on it. */
.in { animation: rise .9s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Two projects: compact cards so the page still fits one screen. */
@media (min-width: 901px) {
  .work .project { padding: clamp(18px, 2vw, 26px) clamp(20px, 2.2vw, 30px); border-radius: 30px; max-height: calc((100svh - 150px) / 2); }
  .work .device { width: clamp(118px, 10.5vw, 150px); margin-bottom: -110px; align-self: start; }
  .work .project p { margin: 12px 0 16px; font-size: 15px; }
  .work .project h2 { font-size: 27px; }
  .work .app-icon { width: 56px; height: 56px; border-radius: 13px; }
}

/* Narrow screens: a compact stack that still nearly fits one phone screen. */
@media (max-width: 900px) {
  main { grid-template-columns: 1fr; gap: 20px; align-content: start; padding-top: 12px; padding-bottom: 6px; }
  h1 { font-size: clamp(32px, 9vw, 52px); }
  .lede { font-size: 16px; margin-top: 12px; }
  .eyebrow { margin-bottom: 8px; }
  .pillars { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
  .pillars li { padding: 5px 12px 5px 5px; gap: 8px; border-radius: 999px; align-items: center; }
  .pillars small { display: none; }
  .pillars b { font-size: 14px; }
  .pillars .ico { width: 26px; height: 26px; border-radius: 50%; }
  .pillars .ico svg { width: 16px; height: 16px; }
  .device { width: 112px; margin-bottom: -46px; border-radius: 22px; padding: 4px; }
  .device img { border-radius: 18px; }
  .project { border-radius: 28px; gap: 12px; }
  .project { padding: 20px; }
  .project p { font-size: 14.5px; margin: 12px 0 16px; }
  .app-icon { width: 52px; height: 52px; border-radius: 12px; }
  .project h2 { font-size: 25px; }
}
@media (max-width: 420px) {
  .pillars b { font-size: 13.5px; }
  .device { display: none; }
  .project { grid-template-columns: 1fr; }
}
/* Short desktop windows: tighten vertically so it stays one screen. */
@media (min-width: 901px) and (max-height: 760px) {
  h1 { font-size: clamp(36px, 4.6vw, 60px); }
  .pillars small { display: none; }
  .pillars li { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora i, .in { animation: none !important; }
  .cta svg { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pillars li, .project, .seg { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
