@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');

@font-face {
  font-family: 'Aspekta';
  src: url('fonts/AspektaVF.woff2') format('woff2-variations'),
       url('fonts/AspektaVF.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
/* ═══════════════════════════════════════════════════════════
   Lazim Jarif — quiet, typographic, lots of air
   ═══════════════════════════════════════════════════════════ */

:root {
  --paper:  #fbfbfa;
  --ink:    #131313;
  --ink-2:  #6b6b68;
  --ink-3:  #9d9d99;
  --rule:   rgba(19,19,19,0.09);
  --sans:   'Aspekta', system-ui, -apple-system, sans-serif;
  --serif:  'Instrument Serif', Georgia, serif;
  --col:    560px;
  --gap:    clamp(104px, 16vh, 160px);  /* the space between any two sections */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
a { color: inherit; text-decoration: none; }
::selection { background: #dedede; }
/* ── top bar: wordmark left, bubble nav centred, action right ── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px clamp(24px, 4.5vw, 60px);
  pointer-events: none;
}
/* the bar floats over the page, so text would otherwise scroll straight
   through it — a soft wash of paper, faded out at the bottom so there is
   no hard edge */
.bar::before {
  content: '';
  /* reaches below the bar so the fade has room to finish before any text */
  position: absolute; inset: 0 0 -34px 0;
  background: var(--paper);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}
.bar > * { pointer-events: auto; }
/* bubble nav */
.bubble {
  position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
          backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 2px rgba(19,19,19,0.05), 0 10px 28px -14px rgba(19,19,19,0.28), inset 0 0 0 1px rgba(19,19,19,0.045);
}
.bubble a {
  position: relative; z-index: 1;
  font-size: 13.5px; letter-spacing: -0.012em; color: var(--ink-2);
  padding: 8px 17px; border-radius: 999px; white-space: nowrap;
  transition: color 0.3s ease;
}
.bubble a:hover, .bubble a.on { color: var(--ink); }
.bubble .pip {
  position: absolute; top: 5px; height: calc(100% - 10px);
  background: #fff; border-radius: 999px;
  box-shadow: 0 1px 4px -1px rgba(19,19,19,0.18);
  opacity: 0; pointer-events: none; will-change: left, width;
}
.bubble .pip.ready { opacity: 1; transition: left 0.5s cubic-bezier(0.35,1.1,0.4,1), width 0.5s cubic-bezier(0.35,1.1,0.4,1); }
@media (max-width: 820px) {
  .bubble { position: static; transform: none; }
  .mark, .bar > .btn { font-size: 15px; }
}
/* ── the one action in the bar: typographic, like everything else here.
   A pill of chrome was the only drawn object left on the page. ── */
.btn {
  position: relative;
  display: inline-block;
  padding: 0 0 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  transition: color 0.35s ease;
}
.btn::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; opacity: 0.3;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.35s ease;
}
.btn:hover, .btn.is-open { color: var(--ink); }
.btn:hover::after, .btn.is-open::after { transform: scaleX(1); opacity: 0.55; }
.btn .arw { transition: transform 0.35s cubic-bezier(0.2,0.8,0.3,1); }
.btn:hover .arw { transform: translateX(3px); }
/* ── the single centred column, generous margins ── */
.col { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 24px; }
/* ── hero ── */
/* The hero fills one screen with its content centred, so Experience stays
   off-screen until you scroll. With the shader back at its own size there is
   leftover space below the content, so this seam runs larger than the rest —
   that is the cost of centring inside a full screen. */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(70px, 9vh, 100px) 0 calc(var(--gap) / 2);
}
.hey {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1; letter-spacing: -0.015em; margin: 0 0 16px; color: var(--ink);
}
.lede {
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.44; letter-spacing: -0.02em;
  color: var(--ink-3); margin: 20px 0 0; font-weight: 400;
}
.lede b { font-weight: 400; color: var(--ink); }
.lede .mid { color: var(--ink-2); }
.note {
  font-family: var(--serif); font-style: italic;
  font-size: 14.5px; color: var(--ink-3); margin: 14px 0 0; letter-spacing: 0.005em;
}
.acts { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
/* ── shader field ── */
.shader {
  display: block;
  /* reaches a little past the text column on both sides; the shader feathers
     its own edges, so there is no hard boundary to notice */
  --bleed: clamp(0px, 0.6vw, 8px);
  width: calc(100% + var(--bleed) * 2);
  margin: 2px 0 4px calc(var(--bleed) * -1);
  height: clamp(180px, 29vh, 290px);
}
/* ── sections ── */
.sec { padding-block: calc(var(--gap) / 2); }
.label {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--ink-3); margin: 0 0 34px;
}
.label::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
/* ── experience ── */
.xp { display: flex; flex-direction: column; }
.xp-row {
  position: relative;
  border-top: 1px solid var(--rule);
  transition: opacity 0.45s ease;
}
.xp-row:last-child { border-bottom: 1px solid var(--rule); }
/* no rule, no panel, no wash — the row lifts through type alone: it moves,
   its words come up to full ink, and the description opens beneath */

/* the row shifts on transform only — animating padding forces a reflow
   every frame, which is what made this feel choppy */
.xp-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: baseline;
  padding: 17px 0;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.xp-row:hover .xp-line { transform: translateX(12px); }
.xp-work { font-size: 16.5px; color: var(--ink); letter-spacing: -0.019em; }
.xp-co   { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-2); }
.xp-yr   { font-size: 13px; color: var(--ink-3); letter-spacing: -0.005em; white-space: nowrap;
  transition: color 0.5s cubic-bezier(0.16,1,0.3,1); }
/* the description grows open — 0fr → 1fr animates height without a fixed max */
.xp-more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.xp-row:hover .xp-more { grid-template-rows: 1fr; }
.xp-more-in { overflow: hidden; }
.xp-desc {
  margin: 0; padding: 0 0 18px 12px;
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2);
  max-width: 52ch; letter-spacing: -0.008em;
  opacity: 0; transform: translateY(-5px);
  transition: opacity 0.45s ease 0.08s, transform 0.5s cubic-bezier(0.16,1,0.3,1) 0.08s;
}
.xp-row:hover .xp-desc { opacity: 1; transform: none; }
.xp-role {
  display: block; margin-top: 5px;
  font-family: var(--serif); font-style: italic;
  font-size: 13.5px; color: var(--ink-3);
}
/* the rest of the list recedes so the hovered row reads clearly */
.xp:hover .xp-row:not(:hover) { opacity: 0.42; }
@media (max-width: 640px) {
  /* title on its own line; year left, company right beneath it */
  .xp-line { grid-template-columns: auto 1fr; gap: 3px 12px; }
  .xp-work { grid-column: 1 / -1; grid-row: 1; }
  .xp-yr   { grid-column: 1; grid-row: 2; }
  .xp-co   { grid-column: 2; grid-row: 2; justify-self: end; }
}
/* ── prose ── */
.prose p {
  font-size: 17px; line-height: 1.66; color: var(--ink-2);
  letter-spacing: -0.011em; margin: 0 0 18px;
}
.prose p:last-child { margin-bottom: 0; }
.prose em { font-family: var(--serif); font-style: italic; color: var(--ink); font-size: 1.04em; }
/* ── contact ── */
.links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; }
.links a {
  font-size: 15.5px; color: var(--ink-2); position: relative; padding-bottom: 2px;
  transition: color 0.28s ease;
}
.links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; opacity: 0.28;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.2,0.8,0.3,1), opacity 0.3s ease;
}
.links a:hover { color: var(--ink); }
.links a:hover::after { transform: scaleX(1); opacity: 0.55; }
/* ── the closing: the colophon sits in the middle of the sky ── */
.closing { position: relative; margin-top: calc(var(--gap) / 2); }
/* the arch. It carries the height of .closing, since .foot sits absolutely
   on top of it — without this rule the canvas collapses to its default
   300x150 and the footer text has nothing to sit on. */
.sunset {
  display: block;
  width: 100%;
  height: clamp(200px, 30vh, 340px);
}
.foot {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: var(--col); margin-inline: auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: #fff;
  text-shadow: 0 1px 3px rgba(40,30,60,0.25);
  pointer-events: none;
}
.foot .clock { font-family: var(--serif); font-style: italic; font-size: 14px; color: #fff; }
/* ── inline keycap navigation — woven into the sentence ── */
.keys {
  display: block;
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  font-family: var(--serif);
  font-style: italic;
}
.keys-say { color: var(--ink-3); }
.key {
  display: inline;
  font-family: var(--serif);
  font-style: italic;
  font-size: inherit;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s ease;
}
/* the shortcut letter carries a hairline rule — the old access-key idiom */
.key b {
  font-weight: 400;
  text-decoration: underline;          /* follows the italic angle */
  text-underline-offset: 2px;
  text-decoration-thickness: 0.6px;
}
.key span { font-weight: 400; }
.key:hover, .key:focus-visible { color: var(--ink); outline: none; }
.key.down { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .key { transition: none; } }
/* ── ⊹ a small mark at the end of the line ── */
.orn {
  display: inline-block;
  margin-left: 0.34em;
  font-family: var(--serif);
  font-style: normal;
  font-size: 0.9em;
  color: var(--ink-3);
  /* measured: its ink centre sits a touch above the line's x-band */
  vertical-align: -0.014em;
  transition: color 0.5s ease;
}
.note:hover .orn { color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .orn { transition: none; } }
@media (prefers-reduced-motion: reduce) { .orn { transition: none; } }
/* ── wordmark: "Lazim J." unfurls into "Lazim Jarif" on hover ── */
.mark {
  display: inline-flex; align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.012em;
  color: var(--ink);
  white-space: nowrap;
}
/* the rest of the surname is there all along, just given no room */
.mark-rest {
  display: inline-flex;
  max-width: 0;
  overflow: hidden;
  /* the italic f leans past its advance width, so leave it room to lean
     into or the clip shears its hook off */
  padding-right: 0.14em;
  transition: max-width 0.62s cubic-bezier(0.16, 1, 0.3, 1);
}
.mark-rest span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-0.28em) rotate(-8deg);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.2, 1.3, 0.4, 1);
}
/* each letter drops in a beat after the one before it */
.mark-rest span:nth-child(1) { transition-delay: 0.06s; }
.mark-rest span:nth-child(2) { transition-delay: 0.12s; }
.mark-rest span:nth-child(3) { transition-delay: 0.18s; }
.mark-rest span:nth-child(4) { transition-delay: 0.24s; }

.mark:hover .mark-rest { max-width: 5em; }
.mark:hover .mark-rest span { opacity: 1; transform: none; }

/* the full stop steps aside while the letters arrive, then returns */
.mark-dot { display: inline-block; transition: opacity 0.3s ease; }
.mark:hover .mark-dot { opacity: 0; transition-duration: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .mark-rest, .mark-rest span, .mark-dot { transition: none; }
}
/* There is no hover on a touch screen, so the reveal never properly runs and
   a tap can leave the name half-open with the italic f sheared off. Keep it
   at "Lazim J." on touch and never open it at all. */
@media (hover: none), (pointer: coarse) {
  .mark-rest,
  .mark:hover .mark-rest { max-width: 0; padding-right: 0; transition: none; }
  .mark-rest span,
  .mark:hover .mark-rest span { opacity: 0; transition: none; }
  .mark-dot,
  .mark:hover .mark-dot { opacity: 1; transition: none; }
}

/* ── reach: the contact lines simply arrive beneath the button ── */
.reach { position: relative; }
.reach-list {
  position: absolute; top: 100%; right: 0;
  margin-top: 12px;
  display: grid; justify-items: end; gap: 7px;
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: 100% 0;
  transition:
    opacity 0.28s ease,
    transform 0.44s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0.3s;
}
.reach.open .reach-list {
  pointer-events: auto; visibility: visible;
  opacity: 1; transform: translateY(0) scale(1);
  transition:
    opacity 0.28s ease,
    transform 0.44s cubic-bezier(0.32, 0.72, 0, 1),
    visibility 0s linear 0s;
}
.reach-row {
  position: relative;
  display: inline-flex; align-items: baseline;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; letter-spacing: -0.01em;
  color: var(--ink-2); text-decoration: none;
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1), color 0.3s ease;
}
.reach-foot {
  font-family: var(--serif); font-style: italic;
  font-size: 12px; color: var(--ink-3);
  opacity: 0; transform: translateY(-6px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
/* each line arrives a beat after the one above it */
.reach.open .reach-row,
.reach.open .reach-foot { opacity: 1; transform: none; }
.reach.open .reach-row:nth-child(1) { transition-delay: 0.02s; }
.reach.open .reach-row:nth-child(2) { transition-delay: 0.07s; }
.reach.open .reach-row:nth-child(3) { transition-delay: 0.12s; }
.reach.open .reach-foot            { transition-delay: 0.17s; }
.reach-row:hover { color: var(--ink); }
.reach-act {
  position: absolute; right: 100%; margin-right: 9px; top: 0;
  font-family: var(--serif); font-style: italic; font-size: 11.5px;
  color: var(--ink-3); white-space: nowrap;
  opacity: 0; transition: opacity 0.3s ease, color 0.3s ease;
}
.reach-row:hover .reach-act { opacity: 1; }
.reach-row.copied .reach-act { opacity: 1; color: var(--ink); }
/* ── reveal ── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 0.9s cubic-bezier(0.2,0.7,0.3,1), transform 0.9s cubic-bezier(0.2,0.7,0.3,1); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 600px) {
  .bar { padding: 20px 22px; }
  /* the colophon sits over the arch — keep it off the screen edges */
  .foot { padding: 0 44px; font-size: 12px; }
  /* on a phone this opens over the page text, so it needs to be opaque —
     in the paper colour, so it reads as the page rather than a card */
  .reach-list {
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 10px 26px -16px rgba(19,19,19,0.22);
  }
  .xp-row { grid-template-columns: 1fr; gap: 4px; }
  .xp-row .xp-yr { order: -1; }
}

/* Keyboard users get "press E"; touch users get "jump to". Without these two
   rules both labels render and the line reads "pressjump to". */
.on-tap { display: none; }
@media (hover: none), (pointer: coarse) {
  .on-key { display: none; }
  .on-tap { display: inline; }
}
