{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"ray-traced-light-box-history-timeline-with-a-sliding-film-negative-strip-and-a-print-that-develops-beside-it","type":"registry:block","title":"Ray-Traced Light Box History Timeline with a Sliding Film Negative Strip and a Print That Develops Beside It","description":"Free React history timeline: pick a year and a strip of colour negatives slides across a glowing light box while its print develops on the desk.","dependencies":[],"files":[{"path":"components/we-inc/ray-traced-light-box-history-timeline-with-a-sliding-film-negative-strip-and-a-print-that-develops-beside-it.tsx","type":"registry:component","content":"import { useEffect, useRef, useState } from \"react\";\n\n// The years. Each one is a frame on the strip of negatives, and the print on the desk beside the box.\nconst years = [\n  { year: \"1968\", title: \"A wheel in the coal shed\", body: \"Ada Marrow buys a kick wheel at a school sale and throws her first mugs in the shed behind the house, firing them in a neighbour's kiln.\", photo: \"https://images.pexels.com/photos/2556276/pexels-photo-2556276.jpeg?auto=compress&cs=tinysrgb&w=640\", tone: \"#8a7a6c\" },\n  { year: \"1974\", title: \"Slabs, tools and a first order\", body: \"A café on the high street asks for sixty plates. She learns slab work to make them all the same size, and the kitchen table becomes a bench.\", photo: \"https://images.pexels.com/photos/5642023/pexels-photo-5642023.jpeg?auto=compress&cs=tinysrgb&w=640\", tone: \"#a39a90\" },\n  { year: \"1981\", title: \"The big kiln is lit\", body: \"The pottery moves into a brick workshop on Tenter Street and builds its own kiln. Whole shelves of plates go in at once and come out warm a day later.\", photo: \"https://images.pexels.com/photos/9736509/pexels-photo-9736509.jpeg?auto=compress&cs=tinysrgb&w=640\", tone: \"#8c6a4f\" },\n  { year: \"1993\", title: \"Bowls by the stack\", body: \"Four throwers now share the wheel room. The plain brown bowl that started as a seconds line becomes the piece people ask for by name.\", photo: \"https://images.pexels.com/photos/33703946/pexels-photo-33703946.jpeg?auto=compress&cs=tinysrgb&w=640\", tone: \"#6b4a34\" },\n  { year: \"2006\", title: \"A shop with the door open\", body: \"The front room is cleared and shelved. Visitors can buy straight from the racks and watch the kiln being loaded through the back window.\", photo: \"https://images.pexels.com/photos/6611184/pexels-photo-6611184.jpeg?auto=compress&cs=tinysrgb&w=640\", tone: \"#9a9894\" },\n  { year: \"2019\", title: \"Handed to the next pair\", body: \"Ada's apprentice of twelve years takes over the kiln book. The glazes, the stamp on the foot and the Friday firing all stay the same.\", photo: \"https://images.pexels.com/photos/6023601/pexels-photo-6023601.jpeg?auto=compress&cs=tinysrgb&w=640\", tone: \"#b49a80\" },\n];\nconst START = 2; // the year it opens on\nconst COMPANY = \"Marrow Lane Pottery\";\nconst STRAP = \"Our story, one frame at a time\";\nconst FONT = '\"Inter Tight\", \"Inter\", ui-sans-serif, system-ui, -apple-system, \"Segoe UI\", sans-serif';\nconst SERIF = '\"Iowan Old Style\", \"Palatino Linotype\", Palatino, \"Book Antiqua\", Georgia, serif';\nconst N = years.length;\n\n// Scene units. Frame k of the strip sits at x = (k - strip) * PITCH, so the chosen frame comes to rest at x = 0.\nconst PITCH = 1.1, TOP = 0.42;\n\nconst VERT = `ATTR vec2 aPos; void main(){ gl_Position = vec4(aPos, 0.0, 1.0); }`;\nconst TONE = `\nvec3 tone(vec3 x){ x *= 0.85; vec3 a = x * (2.51 * x + 0.03); vec3 b = x * (2.43 * x + 0.59) + 0.14; return pow(clamp(a / b, 0.0, 1.0), vec3(1.0 / 2.2)); }\n`;\n\n// A light box in a dim room: opal glass lit from inside, a strip of colour negatives across it,\n// a desk lamp over a print lying on a dark walnut desk.\nconst SCENE = `\nprecision highp float;\nuniform vec2 uRes; uniform vec4 uJit; uniform float uSeed;\nuniform vec3 uCam; uniform vec3 uTgt; uniform float uFoc; uniform vec2 uShift; uniform float uFocus;\nuniform float uSel; uniform float uHot; uniform float uCur; uniform float uDev;\nuniform vec2 uBox; uniform vec4 uPrint; uniform float uRot; uniform vec3 uLamp;\nuniform sampler2D uTex; uniform float uDirect;\nconst float H = ${TOP.toFixed(2)}; const float FY = ${(TOP + 0.008).toFixed(3)}; const float SW = 0.52; const float P = ${PITCH.toFixed(2)};\nconst float IX = 0.5; const float IZ = 0.335; const float NF = ${N.toFixed(1)};\nconst vec3 GLOW = vec3(1.0, 0.95, 0.86);\nconst vec3 LAMP = vec3(1.0, 0.74, 0.46);\nconst vec3 BASE = vec3(0.98, 0.6, 0.3);\n${TONE}\nfloat h21(vec2 p){ vec3 q = fract(vec3(p.xyx) * 0.1031); q += dot(q, q.yzx + 33.33); return fract((q.x + q.y) * q.z); }\nfloat n2(vec2 x){ vec2 i = floor(x); vec2 f = fract(x); f = f * f * (3.0 - 2.0 * f);\n  return mix(mix(h21(i), h21(i + vec2(1.0, 0.0)), f.x), mix(h21(i + vec2(0.0, 1.0)), h21(i + vec2(1.0, 1.0)), f.x), f.y); }\nfloat sd2Box(vec2 p, vec2 b, float r){ vec2 q = abs(p) - b + r; return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - r; }\nvec2 boxSpan(vec3 ro, vec3 rd, vec3 lo, vec3 hi){\n  vec3 inv = 1.0 / (rd + vec3(1e-6)); vec3 a = (lo - ro) * inv; vec3 b = (hi - ro) * inv;\n  vec3 mn = min(a, b); vec3 mx = max(a, b);\n  return vec2(max(max(mn.x, mn.y), max(mn.z, 0.0)), min(mx.x, min(mx.y, mx.z)));\n}\nfloat rnd(float k){ return h21(gl_FragCoord.xy * 0.913 + vec2(uSeed * 97.1 + k, k * 13.7)); }\n\n// ---- the photographs, from the atlas: 3 across, 2 down ----\nvec3 photoS(float k, vec2 uv){\n  uv = clamp(uv, 0.003, 0.997);\n  vec2 cell = vec2(mod(k, 3.0), floor(k / 3.0));\n  return texture2D(uTex, (cell + vec2(uv.x, 1.0 - uv.y)) / vec2(3.0, 2.0)).rgb;\n}\nvec3 photo(float k, vec2 uv){ return pow(photoS(k, uv), vec3(2.2)); }\n\n// ---- the opal glass: an even glow, brighter where the lamp inside sits under the chosen frame ----\nfloat glassEmit(vec2 xz){\n  float edge = min(uBox.x - abs(xz.x), uBox.y - abs(xz.y));\n  float e = 0.9 * (0.62 + 0.38 * smoothstep(0.0, 1.2, edge)) * (1.0 - 0.18 * smoothstep(0.0, 1.0, abs(xz.x) / uBox.x));\n  float r = sd2Box(xz, vec2(IX + 0.1, SW + 0.02), 0.1);\n  e += uHot * 0.75 * smoothstep(0.05, -0.03, r) + uHot * 0.25 * smoothstep(0.5, 0.0, r);\n  e *= 0.97 + 0.06 * n2(xz * 23.0);\n  return e;\n}\n\n// ---- the film: orange base, clear sprocket holes, the image as a colour negative ----\nvec3 filmTrans(vec2 xz){\n  float u = xz.x / P + uSel;\n  float k = floor(u + 0.5);\n  float fx = (u - k) * P;\n  float az = abs(xz.y);\n  vec3 tr = BASE * 0.62;\n  if (az > 0.39 && az < 0.48) {\n    float hx = mod(xz.x + uSel * P, P / 8.0) - P / 16.0;\n    float hole = sd2Box(vec2(hx, az - 0.435), vec2(0.026, 0.02), 0.008);\n    tr = mix(vec3(1.0), tr, smoothstep(-0.002, 0.003, hole));\n  }\n  if (abs(fx) < IX && az < IZ) {\n    vec2 uv = vec2(fx / (2.0 * IX) + 0.5, xz.y / (2.0 * IZ) + 0.5);\n    float inside = smoothstep(0.0, 0.006, IX - abs(fx)) * smoothstep(0.0, 0.006, IZ - az);\n    vec3 neg;\n    if (k >= 0.0 && k < NF) {\n      vec3 ph = photoS(k, uv);\n      neg = BASE * (vec3(0.02) + 0.95 * pow(clamp(1.0 - ph * 1.08, 0.0, 1.0), vec3(2.3)));\n    } else {\n      neg = BASE * 0.06; // the fogged leader and tail\n    }\n    tr = mix(tr, neg, inside);\n  }\n  // a little edge printing along the far side: dashes and a frame mark\n  if (xz.y < -0.355 && xz.y > -0.385) {\n    float d = mod(xz.x + uSel * P + 0.2, P);\n    float mark = step(0.08, d) * step(d, 0.2) + step(0.5, d) * step(d, 0.53) + step(0.58, d) * step(d, 0.61);\n    tr *= 1.0 - 0.75 * mark;\n  }\n  tr *= 0.35 + 0.65 * smoothstep(0.0, 0.012, SW - az);\n  return tr;\n}\nbool onStrip(vec2 xz){\n  float a = (-1.4 - uSel) * P, b = (NF + 0.4 - uSel) * P;\n  return abs(xz.y) < SW && xz.x > a && xz.x < b;\n}\n\n// What glossy things see: a dark room, a pale ceiling bounce, and the lamp's warm bulb.\nvec3 env(vec3 r){\n  vec3 c = mix(vec3(0.010, 0.009, 0.008), vec3(0.03, 0.028, 0.026), smoothstep(-0.1, 0.8, r.y));\n  vec3 d = normalize(uLamp - vec3(0.0, 0.4, 1.0));\n  c += LAMP * 22.0 * smoothstep(0.986, 0.996, dot(r, d));\n  return c;\n}\n\n// Light at a point on the desk or print: the lamp (with a shadow from the box) and the box's spill.\nvec3 deskLight(vec3 p, vec3 n){\n  vec3 lp = uLamp + vec3(rnd(1.0) - 0.5, 0.0, rnd(2.0) - 0.5) * 0.7;\n  vec3 L = lp - p; float d = length(L); L /= d;\n  float spot = smoothstep(0.8, 0.95, dot(-L, normalize(vec3(uPrint.x, 0.0, uPrint.y) - uLamp)));\n  float sh = 1.0;\n  vec2 tb = boxSpan(p + n * 0.002, L, vec3(-uBox.x, 0.0, -uBox.y), vec3(uBox.x, H, uBox.y));\n  if (tb.x < tb.y && tb.x < d) sh = 0.0;\n  vec3 c = LAMP * 30.0 * max(dot(n, L), 0.0) / (d * d) * (0.04 + 0.96 * spot) * sh;\n  float fd = sd2Box(p.xz, uBox, 0.04);\n  c += GLOW * 0.85 * exp(-max(fd, 0.0) * 2.6) * (0.35 + 0.65 * smoothstep(0.0, 0.2, fd));\n  c += vec3(0.012, 0.011, 0.01);\n  return c;\n}\n\n// The box seen in a reflection: its glowing glass edge and its dark painted body.\nvec3 boxSeen(vec3 ro, vec3 rd){\n  vec2 tb = boxSpan(ro, rd, vec3(-uBox.x, 0.0, -uBox.y), vec3(uBox.x, H, uBox.y));\n  if (tb.x < tb.y && tb.x > 0.001) {\n    vec3 p = ro + rd * tb.x;\n    if (p.y > H - 0.055) return GLOW * 0.9;\n    return vec3(0.02, 0.019, 0.018);\n  }\n  return env(rd);\n}\n\nvec3 shadeDesk(vec3 p, vec3 rd){\n  float w = n2(vec2(p.x * 0.35, p.z * 2.2)) * 1.6 + n2(vec2(p.x * 1.4, p.z * 6.0)) * 0.3;\n  float ring = sin(p.z * 34.0 + w * 6.0);\n  float fine = n2(vec2(p.x * 2.0, p.z * 160.0));\n  vec3 a = vec3(0.075, 0.045, 0.028) * (0.82 + 0.12 * ring + 0.14 * fine);\n  float fd = sd2Box(p.xz, uBox, 0.04);\n  float occ = 0.3 + 0.7 * smoothstep(0.0, 0.35, fd);\n  vec2 q = p.xz - uPrint.xy; float cr = cos(uRot), sr = sin(uRot); q = vec2(cr * q.x - sr * q.y, sr * q.x + cr * q.y);\n  occ *= 0.45 + 0.55 * smoothstep(-0.01, 0.07, sd2Box(q, uPrint.zw, 0.01));\n  // the end of the strip that hangs past the case throws a soft shadow just beside it\n  vec2 sp = p.xz + vec2(0.0, 0.12);\n  if (onStrip(vec2(sp.x, 0.0)) && fd > 0.0) occ *= mix(1.0, 0.35, smoothstep(SW + 0.08, SW - 0.12, abs(sp.y)));\n  vec3 n = vec3(0.0, 1.0, 0.0);\n  vec3 col = a * deskLight(p, n) * occ;\n  // satin varnish: a blurred reflection of the box edge and the lamp\n  vec3 nn = normalize(n + vec3(rnd(3.0) - 0.5, 0.0, rnd(4.0) - 0.5) * 0.16);\n  vec3 r = reflect(rd, nn);\n  float F = 0.03 + 0.97 * pow(1.0 - clamp(dot(-rd, nn), 0.0, 1.0), 5.0);\n  col += F * boxSeen(p + n * 0.002, r) * 0.55 * occ;\n  return col;\n}\n\nvec3 shadePrint(vec3 p, vec3 rd, vec2 q){\n  vec2 inner = uPrint.zw - vec2(0.085);\n  vec3 paper = vec3(0.86, 0.84, 0.8);\n  vec3 a = paper;\n  if (abs(q.x) < inner.x && abs(q.y) < inner.y) {\n    vec2 uv = vec2(q.x / (2.0 * inner.x) + 0.5, q.y / (2.0 * inner.y) + 0.5);\n    vec3 ph = photo(uCur, uv) * 0.92;\n    float l = dot(ph, vec3(0.3, 0.55, 0.15));\n    // shadows come up first, then the mid tones, then the colour settles\n    float dev = smoothstep(0.0, 1.0, uDev * 1.7 - pow(l, 0.5) * 0.7);\n    vec3 warm = mix(paper, ph * vec3(1.08, 0.96, 0.84), dev);\n    a = mix(warm, ph, smoothstep(0.55, 1.0, uDev));\n  }\n  vec3 n = vec3(0.0, 1.0, 0.0);\n  vec3 col = a * deskLight(p, n);\n  vec3 r = reflect(rd, normalize(n + vec3(rnd(5.0) - 0.5, 0.0, rnd(6.0) - 0.5) * 0.2));\n  float F = 0.035 + 0.965 * pow(1.0 - clamp(dot(-rd, n), 0.0, 1.0), 5.0);\n  col += F * boxSeen(p + n * 0.002, r) * 0.6;\n  return col;\n}\n\nvec3 shadeFilm(vec3 p, vec3 rd, bool over){\n  vec3 tr = filmTrans(p.xz);\n  vec3 col;\n  if (over) col = GLOW * glassEmit(p.xz) * tr;\n  else col = tr * 0.25 * deskLight(p, vec3(0.0, 1.0, 0.0)) * vec3(0.5, 0.35, 0.25) + BASE * 0.006;\n  vec3 n = normalize(vec3(0.0, 1.0, 0.0) + vec3(n2(p.xz * 3.0) - 0.5, 0.0, n2(p.zx * 3.0 + 7.0) - 0.5) * 0.03);\n  vec3 r = reflect(rd, n);\n  float F = 0.04 + 0.96 * pow(1.0 - clamp(dot(-rd, n), 0.0, 1.0), 5.0);\n  col += F * env(r) * 1.2;\n  return col;\n}\n\nvec3 shadeBox(vec3 p, vec3 rd){\n  vec3 q = p / vec3(uBox.x, H, uBox.y);\n  vec3 a = abs(q);\n  vec3 n = a.x > a.z ? vec3(sign(q.x), 0.0, 0.0) : vec3(0.0, 0.0, sign(q.z));\n  if (a.y > max(a.x, a.z) && q.y > 0.0) n = vec3(0.0, 1.0, 0.0);\n  if (n.y > 0.5) {\n    // a satin aluminium bezel holds the glass\n    float rim = min(uBox.x - abs(p.x), uBox.y - abs(p.z));\n    if (rim < 0.11) {\n      vec3 r = reflect(rd, n);\n      float lip = smoothstep(0.11, 0.095, rim) * smoothstep(0.0, 0.02, rim);\n      vec3 al = vec3(0.09, 0.088, 0.085) * deskLight(p, n) * 2.0 + env(r) * 0.35;\n      al += GLOW * 0.5 * exp(-(0.11 - rim) * 30.0) * 0.4;\n      return mix(al, al * 1.8, 1.0 - lip) * (0.6 + 0.4 * smoothstep(0.0, 0.015, rim));\n    }\n    // the bare glass round the strip\n    vec3 col = GLOW * glassEmit(p.xz);\n    vec3 r = reflect(rd, n);\n    col += (0.04 + 0.96 * pow(1.0 - clamp(dot(-rd, n), 0.0, 1.0), 5.0)) * env(r);\n    return col;\n  }\n  // the edge of the opal glass shows as a glowing band along the top of the case\n  float band = smoothstep(H - 0.058, H - 0.05, p.y);\n  float lip = smoothstep(H - 0.075, H - 0.06, p.y) * (1.0 - band);\n  vec3 body = vec3(0.03, 0.029, 0.028);\n  vec3 col = body * deskLight(p, n) * 1.4;\n  vec3 r = reflect(rd, n);\n  col += (0.05 + 0.95 * pow(1.0 - clamp(dot(-rd, n), 0.0, 1.0), 5.0)) * env(r) * 0.8;\n  col += vec3(0.5, 0.48, 0.45) * lip * 0.08;\n  col = mix(col, GLOW * vec3(0.92, 1.0, 0.94) * 0.9, band);\n  // the case sits in its own glow at the foot\n  col *= 0.55 + 0.45 * smoothstep(0.0, 0.12, p.y);\n  return col;\n}\n\nvoid main(){\n  vec2 fc = gl_FragCoord.xy + uJit.xy;\n  vec2 uv = (fc - 0.5 * uRes) / uRes.y - uShift;\n  vec3 fw = normalize(uTgt - uCam); vec3 rt = normalize(cross(fw, vec3(0.0, 1.0, 0.0))); vec3 up = cross(rt, fw);\n  vec3 rd = normalize(fw * uFoc + rt * uv.x + up * uv.y);\n  vec3 ro = uCam;\n  vec3 fp = ro + rd * (uFocus / dot(rd, fw));\n  ro += rt * uJit.z + up * uJit.w; rd = normalize(fp - ro);\n\n  float best = 1e9; int what = 0; vec2 pq = vec2(0.0);\n  if (rd.y < 0.0) {\n    float tf = (FY - ro.y) / rd.y; vec3 p = ro + rd * tf;\n    if (onStrip(p.xz)) { best = tf; what = 1; }\n    float tp = (0.006 - ro.y) / rd.y; p = ro + rd * tp;\n    vec2 q = p.xz - uPrint.xy; float cr = cos(uRot), sr = sin(uRot); q = vec2(cr * q.x - sr * q.y, sr * q.x + cr * q.y);\n    if (tp < best && abs(q.x) < uPrint.z && abs(q.y) < uPrint.w) { best = tp; what = 2; pq = q; }\n  }\n  vec2 tb = boxSpan(ro, rd, vec3(-uBox.x, 0.0, -uBox.y), vec3(uBox.x, H, uBox.y));\n  if (tb.x < tb.y && tb.x < best) { best = tb.x; what = 3; }\n  if (what == 0 && rd.y < 0.0) { best = -ro.y / rd.y; what = 4; }\n\n  vec3 col = vec3(0.004);\n  vec3 p = ro + rd * best;\n  if (what == 1) col = shadeFilm(p, rd, abs(p.x) < uBox.x && abs(p.z) < uBox.y);\n  else if (what == 2) col = shadePrint(p, rd, pq);\n  else if (what == 3) col = shadeBox(p, rd);\n  else if (what == 4) col = shadeDesk(p, rd) * exp(-max(best - 18.0, 0.0) * 0.15);\n  col = min(col, vec3(30.0));\n  if (uDirect > 0.5) col = tone(col);\n  outC = vec4(col, 1.0);\n}\n`;\n\n// Developing the plate: bloom off the glass, the filmic curve, a vignette and grain.\nconst POST = `\nprecision highp float;\nuniform sampler2D uAcc; uniform vec2 uRes; uniform float uGrain; uniform vec2 uCentre;\n${TONE}\nfloat h21(vec2 p){ vec3 q = fract(vec3(p.xyx) * 0.1031); q += dot(q, q.yzx + 33.33); return fract((q.x + q.y) * q.z); }\nvoid main(){\n  vec2 uv = gl_FragCoord.xy / uRes;\n  vec3 c = texture2D(uAcc, uv).rgb;\n  vec3 b = vec3(0.0);\n  for (int i = 0; i < 24; i++) {\n    float a = float(i) * 2.39996; float r = sqrt((float(i) + 0.5) / 24.0);\n    vec3 s = texture2D(uAcc, uv + vec2(cos(a), sin(a)) * r * 0.035 * vec2(uRes.y / uRes.x, 1.0)).rgb;\n    b += min(max(s - 1.6, 0.0), vec3(8.0)) * (1.0 - 0.7 * r);\n  }\n  c += b * 0.012 * vec3(1.0, 0.9, 0.76);\n  vec2 q = (uv - uCentre) * vec2(uRes.x / uRes.y, 1.0);\n  c *= 1.0 - 0.35 * smoothstep(0.3, 1.2, length(q));\n  c = tone(c);\n  c += (h21(gl_FragCoord.xy + uGrain * 91.7) - 0.5) * 0.022;\n  outC = vec4(c, 1.0);\n}\n`;\n\n// No WebGL: the same desk built from CSS, with the photographs themselves.\nfunction Still({ act }: { act: number }) {\n  return (\n    <div aria-hidden=\"true\" className=\"absolute inset-x-4 top-[14%] sm:inset-x-10\">\n      <div className=\"relative mx-auto h-[170px] max-w-[900px] overflow-hidden rounded-[6px]\" style={{ background: \"#f3ede2\", boxShadow: \"0 0 80px 10px rgba(255,236,205,0.18), inset 0 0 40px rgba(220,200,170,0.6)\" }}>\n        <div className=\"absolute left-1/2 top-[30px] flex h-[110px] items-center gap-[6px] px-2 transition-transform duration-700 ease-[cubic-bezier(0.3,1.3,0.5,1)] motion-reduce:transition-none\" style={{ background: \"rgba(214,128,62,0.82)\", transform: `translateX(${-(78 + act * 146)}px)`, width: N * 146 + 10 }}>\n          {years.map((y, i) => (\n            <div key={y.year} className=\"h-[86px] w-[140px] shrink-0 bg-cover bg-center\" style={{ backgroundImage: `url(${y.photo})`, backgroundColor: y.tone, filter: \"invert(1) sepia(0.6) saturate(2.2) hue-rotate(-12deg)\", opacity: i === act ? 1 : 0.8 }} />\n          ))}\n        </div>\n      </div>\n    </div>\n  );\n}\n\nexport default function LightBoxHistoryTimeline() {\n  const stage = useRef<HTMLDivElement>(null);\n  const canvas = useRef<HTMLCanvasElement>(null);\n  const tags = useRef<(HTMLButtonElement | null)[]>([]);\n  const [act, setAct] = useState(START);\n  const [shown, setShown] = useState<\"wait\" | \"gl\" | \"still\">(\"wait\");\n  const actRef = useRef(START);\n  const api = useRef<{ go: (i: number, fromUser: boolean) => void } | null>(null);\n\n  useEffect(() => {\n    const box = stage.current, cv = canvas.current;\n    if (!box || !cv) return;\n    const reduce = window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;\n    const opts = { antialias: false, alpha: false, powerPreference: \"high-performance\" as const };\n    const gl2 = cv.getContext(\"webgl2\", opts) as WebGL2RenderingContext | null;\n    const gl = (gl2 ?? cv.getContext(\"webgl\", opts)) as WebGLRenderingContext | null;\n    if (!gl) { setShown(\"still\"); return; }\n    const canAcc = !!gl2 && (!!gl2.getExtension(\"EXT_color_buffer_float\") || !!gl2.getExtension(\"EXT_color_buffer_half_float\"));\n    const info = gl.getExtension(\"WEBGL_debug_renderer_info\");\n    const renderer = info ? String(gl.getParameter(info.UNMASKED_RENDERER_WEBGL)) : \"\";\n    const software = /swiftshader|llvmpipe|software|basic render/i.test(renderer);\n    const still = reduce || software;\n\n    const head = gl2 ? \"#version 300 es\\n#define ATTR in\\n\" : \"#define ATTR attribute\\n\";\n    const fhead = gl2 ? \"#version 300 es\\n#define texture2D texture\\nprecision highp float;\\nout vec4 outC;\\n\" : \"#define outC gl_FragColor\\n\";\n    const compile = (type: number, src: string) => {\n      const sh = gl.createShader(type);\n      if (!sh) return null;\n      gl.shaderSource(sh, src); gl.compileShader(sh);\n      return gl.getShaderParameter(sh, gl.COMPILE_STATUS) ? sh : null;\n    };\n    const link = (frag: string) => {\n      const v = compile(gl.VERTEX_SHADER, head + VERT), f = compile(gl.FRAGMENT_SHADER, fhead + frag);\n      const p = gl.createProgram();\n      if (!v || !f || !p) return null;\n      gl.attachShader(p, v); gl.attachShader(p, f); gl.bindAttribLocation(p, 0, \"aPos\"); gl.linkProgram(p);\n      return gl.getProgramParameter(p, gl.LINK_STATUS) ? p : null;\n    };\n    const scene = link(SCENE), post = canAcc ? link(POST) : null;\n    if (!scene || (canAcc && !post)) { setShown(\"still\"); return; }\n    const U = (p: WebGLProgram, n: string) => gl.getUniformLocation(p, n);\n    const su = Object.fromEntries([\"uRes\", \"uJit\", \"uSeed\", \"uCam\", \"uTgt\", \"uFoc\", \"uShift\", \"uFocus\", \"uSel\", \"uHot\", \"uCur\", \"uDev\", \"uBox\", \"uPrint\", \"uRot\", \"uLamp\", \"uTex\", \"uDirect\"].map((n) => [n, U(scene, n)]));\n    const pu = post ? Object.fromEntries([\"uAcc\", \"uRes\", \"uGrain\", \"uCentre\"].map((n) => [n, U(post, n)])) : {};\n\n    const quad = gl.createBuffer();\n    gl.bindBuffer(gl.ARRAY_BUFFER, quad);\n    gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 3, -1, -1, 3]), gl.STATIC_DRAW);\n    gl.enableVertexAttribArray(0); gl.vertexAttribPointer(0, 2, gl.FLOAT, false, 0, 0);\n\n    // The photographs go into one atlas, 3 across and 2 down, each cropped to the 3:2 frame.\n    const CW = 480, CH = 320;\n    const atlas = document.createElement(\"canvas\");\n    atlas.width = CW * 3; atlas.height = CH * 2;\n    const ag = atlas.getContext(\"2d\");\n    const tex = gl.createTexture();\n    const upload = () => {\n      gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, tex);\n      gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE, atlas);\n      gl.generateMipmap(gl.TEXTURE_2D);\n      gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR_MIPMAP_LINEAR);\n      gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n      gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n      gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n    };\n    if (ag) years.forEach((y, i) => { ag.fillStyle = y.tone; ag.fillRect((i % 3) * CW, Math.floor(i / 3) * CH, CW, CH); });\n    upload();\n    let alive = true;\n    years.forEach((y, i) => {\n      const img = new Image();\n      img.crossOrigin = \"anonymous\";\n      img.onload = () => {\n        if (!alive || !ag) return;\n        const k = Math.max(CW / img.naturalWidth, CH / img.naturalHeight);\n        const w = img.naturalWidth * k, h = img.naturalHeight * k;\n        ag.drawImage(img, (i % 3) * CW + (CW - w) / 2, Math.floor(i / 3) * CH + (CH - h) / 2, w, h);\n        upload(); s.count = 0; s.fresh = true; wake();\n      };\n      img.src = y.photo;\n    });\n\n    const acc = canAcc ? gl.createTexture() : null;\n    const fbo = canAcc ? gl.createFramebuffer() : null;\n    let W = 0, H = 0, scale = 1, cssW = 1, cssH = 1;\n    const s = {\n      sel: START, v: 0, target: START, hot: 1, cur: START, dev: 1, want: START,\n      px: 0, py: 0, sx: 0, sy: 0, count: 0, fresh: true, frame: 0, slow: 0,\n      visible: true, raf: 0, last: 0, t0: 0, touched: false, demoAt: 0, first: true,\n    };\n    const size = () => {\n      const r = box.getBoundingClientRect();\n      cssW = Math.max(1, r.width); cssH = Math.max(1, r.height);\n      const dpr = Math.min(software ? 1 : 1.5, window.devicePixelRatio || 1) * scale;\n      const k = Math.min(1, Math.sqrt(1.4e6 / (cssW * cssH * dpr * dpr)));\n      const w = Math.max(2, Math.round(cssW * dpr * k)), h = Math.max(2, Math.round(cssH * dpr * k));\n      if (w === W && h === H) return;\n      W = w; H = h; cv.width = W; cv.height = H;\n      if (gl2 && acc && fbo) {\n        gl.activeTexture(gl.TEXTURE1); gl.bindTexture(gl.TEXTURE_2D, acc);\n        gl2.texImage2D(gl.TEXTURE_2D, 0, gl2.RGBA16F, W, H, 0, gl.RGBA, gl2.HALF_FLOAT, null);\n        gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR);\n        gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);\n        gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);\n        gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);\n        gl.bindFramebuffer(gl.FRAMEBUFFER, fbo);\n        gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, acc, 0);\n        gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n      }\n      s.count = 0; s.fresh = true;\n    };\n    const halton = (i: number, b: number) => { let f = 1, r = 0; while (i > 0) { f /= b; r += f * (i % b); i = Math.floor(i / b); } return r; };\n\n    // Wide screens: a long box across the top, the print lying in front of it to the left.\n    // Narrow screens: a shorter box seen from higher up, the print below it.\n    const layout = () => {\n      const wide = cssW >= 900, aspect = cssW / cssH;\n      if (wide) return {\n        wide, box: [4.6, 1.4], print: [-2.55, 3.55, 1.42, 0.98], rot: 0.075, lamp: [-3.6, 5.2, 5.6],\n        tgt: [0.15, 0.0, 1.75], el: 0.74, az: 0.04, dist: 13.2, foc: 1.95 * Math.min(1, aspect / 1.75), shift: [0.0, -0.02],\n      };\n      return {\n        wide, box: [2.25, 1.15], print: [0.05, 3.25, 1.32, 0.9], rot: -0.06, lamp: [-1.6, 5.4, 5.2],\n        tgt: [0.0, 0.0, 1.9], el: 1.0, az: 0.0, dist: 11.0, foc: 1.12 * Math.min(1.2, aspect / 0.5), shift: [0.0, 0.15],\n      };\n    };\n    const camera = () => {\n      const l = layout();\n      const el = l.el - s.sy * 0.02, az = l.az + s.sx * 0.05;\n      const tgt = l.tgt;\n      const cam = [tgt[0] + l.dist * Math.sin(az) * Math.cos(el), tgt[1] + l.dist * Math.sin(el), tgt[2] + l.dist * Math.cos(az) * Math.cos(el)];\n      const fw = [tgt[0] - cam[0], tgt[1] - cam[1], tgt[2] - cam[2]];\n      const fl = Math.hypot(fw[0], fw[1], fw[2]); fw[0] /= fl; fw[1] /= fl; fw[2] /= fl;\n      const rt = [-fw[2], 0, fw[0]]; const rl = Math.hypot(rt[0], rt[2]); rt[0] /= rl; rt[2] /= rl;\n      const up = [rt[1] * fw[2] - rt[2] * fw[1], rt[2] * fw[0] - rt[0] * fw[2], rt[0] * fw[1] - rt[1] * fw[0]];\n      return { ...l, cam, fw, rt, up };\n    };\n    type Cam = ReturnType<typeof camera>;\n    const project = (c: Cam, p: number[]) => {\n      const d = [p[0] - c.cam[0], p[1] - c.cam[1], p[2] - c.cam[2]];\n      const z = d[0] * c.fw[0] + d[1] * c.fw[1] + d[2] * c.fw[2];\n      const x = (c.foc * (d[0] * c.rt[0] + d[1] * c.rt[1] + d[2] * c.rt[2])) / z + c.shift[0];\n      const y = (c.foc * (d[0] * c.up[0] + d[1] * c.up[1] + d[2] * c.up[2])) / z + c.shift[1];\n      return [cssW / 2 + x * cssH, cssH / 2 - y * cssH];\n    };\n    // The year buttons ride on the desk under their frames and slide with the strip.\n    const placeTags = (c: Cam) => {\n      for (let i = 0; i < N; i++) {\n        const el = tags.current[i];\n        if (!el) continue;\n        const x = (i - s.sel) * PITCH;\n        const [sx, sy] = project(c, [x, 0, c.box[1] + 0.28]);\n        const off = Math.abs(x) > c.box[0] + 0.3;\n        el.style.transform = `translate(${sx.toFixed(1)}px, ${sy.toFixed(1)}px) translate(-50%, 0)`;\n        el.style.opacity = off ? \"0.35\" : \"1\";\n      }\n    };\n\n    const draw = (alpha: number, sample: number) => {\n      const c = camera();\n      placeTags(c);\n      const jx = sample ? halton(sample, 2) - 0.5 : 0, jy = sample ? halton(sample, 3) - 0.5 : 0;\n      const la = halton(sample, 5) * Math.PI * 2, lr = sample ? Math.sqrt(halton(sample, 7)) * 0.05 : 0;\n      gl.useProgram(scene);\n      gl.bindFramebuffer(gl.FRAMEBUFFER, canAcc ? fbo : null);\n      gl.viewport(0, 0, W, H);\n      if (canAcc && alpha < 1) { gl.enable(gl.BLEND); gl.blendColor(0, 0, 0, alpha); gl.blendFunc(gl.CONSTANT_ALPHA, gl.ONE_MINUS_CONSTANT_ALPHA); } else gl.disable(gl.BLEND);\n      gl.activeTexture(gl.TEXTURE0); gl.bindTexture(gl.TEXTURE_2D, tex);\n      gl.uniform2f(su.uRes, W, H);\n      gl.uniform4f(su.uJit, canAcc ? jx : 0, canAcc ? jy : 0, canAcc ? Math.cos(la) * lr : 0, canAcc ? Math.sin(la) * lr : 0);\n      gl.uniform1f(su.uSeed, canAcc && sample ? (sample * 0.61803) % 1 || 0.5 : 0.37);\n      gl.uniform3f(su.uCam, c.cam[0], c.cam[1], c.cam[2]); gl.uniform3f(su.uTgt, c.tgt[0], c.tgt[1], c.tgt[2]);\n      gl.uniform1f(su.uFoc, c.foc);\n      gl.uniform2f(su.uShift, c.shift[0], c.shift[1]);\n      // focus halfway between the lit frame and the print, so both stay crisp and the far desk falls away\n      const fx = (c.print[0]) * 0.4, fz = c.print[1] * 0.45;\n      gl.uniform1f(su.uFocus, (fx - c.cam[0]) * c.fw[0] + (0.2 - c.cam[1]) * c.fw[1] + (fz - c.cam[2]) * c.fw[2]);\n      gl.uniform1f(su.uSel, s.sel); gl.uniform1f(su.uHot, s.hot);\n      gl.uniform1f(su.uCur, s.cur); gl.uniform1f(su.uDev, s.dev);\n      gl.uniform2f(su.uBox, c.box[0], c.box[1]);\n      gl.uniform4f(su.uPrint, c.print[0], c.print[1], c.print[2], c.print[3]);\n      gl.uniform1f(su.uRot, c.rot);\n      gl.uniform3f(su.uLamp, c.lamp[0], c.lamp[1], c.lamp[2]);\n      gl.uniform1i(su.uTex, 0);\n      gl.uniform1f(su.uDirect, canAcc ? 0 : 1);\n      gl.drawArrays(gl.TRIANGLES, 0, 3);\n      if (canAcc && post) {\n        gl.bindFramebuffer(gl.FRAMEBUFFER, null);\n        gl.disable(gl.BLEND);\n        gl.useProgram(post);\n        gl.activeTexture(gl.TEXTURE1); gl.bindTexture(gl.TEXTURE_2D, acc);\n        gl.uniform1i(pu.uAcc, 1); gl.uniform2f(pu.uRes, W, H);\n        gl.uniform1f(pu.uGrain, still ? 1 : s.frame % 64);\n        gl.uniform2f(pu.uCentre, 0.45, c.wide ? 0.55 : 0.6);\n        gl.drawArrays(gl.TRIANGLES, 0, 3);\n      }\n    };\n\n    const go = (i: number, fromUser: boolean) => {\n      const k = Math.max(0, Math.min(N - 1, i));\n      if (fromUser) s.touched = true;\n      s.target = k; s.want = k;\n      if (k !== actRef.current) { actRef.current = k; setAct(k); }\n      if (reduce) { s.sel = k; s.v = 0; s.cur = k; s.dev = 1; s.hot = 1; s.count = 0; }\n      wake();\n    };\n    api.current = { go };\n\n    const frame = (now: number) => {\n      s.raf = 0;\n      if (!s.visible) return;\n      const dtRaw = s.last ? (now - s.last) / 1000 : 0.016;\n      const dt = Math.min(0.033, dtRaw);\n      s.last = now; s.frame++;\n      if (!s.t0) { s.t0 = now; s.demoAt = now + 4200; }\n\n      // the self-running demo: it opens on a finished print, holds, then walks the years until touched\n      if (!still && !s.touched && now > s.demoAt) {\n        const order = [3, 4, 5, 0, 1, 2];\n        go(order[Math.floor((now - s.t0 - 4200) / 5200) % order.length] ?? START, false);\n        s.demoAt = now + 5200;\n      }\n\n      let moving = false;\n      if (!reduce) {\n        const sub = 4, h = dt / sub;\n        for (let k = 0; k < sub; k++) {\n          // the strip has a little weight: it is pushed, coasts a hair past and settles\n          const a = Math.max(-14, Math.min(14, 38 * (s.target - s.sel) - 9.5 * s.v));\n          s.v += a * h; s.sel += s.v * h;\n        }\n        const far = Math.abs(s.target - s.sel);\n        // the lamp under the glass dims while the strip is moving, then swells under the new frame\n        const hotGoal = far < 0.04 && Math.abs(s.v) < 0.15 ? 1 : 0.15;\n        s.hot += (hotGoal - s.hot) * (1 - Math.exp(-dt * (hotGoal > s.hot ? 3.2 : 9)));\n        // the print: the old one clears to paper, then the new one comes up in the developer\n        if (s.cur !== s.want) { s.dev = Math.max(0, s.dev - dt * 3.2); if (s.dev === 0) s.cur = s.want; }\n        else if (s.hot > 0.5) s.dev = Math.min(1, s.dev + dt / 2.6);\n        moving = Math.abs(s.v) > 0.002 || far > 0.0005 || Math.abs(s.hot - hotGoal) > 0.004 || s.dev < 1 || s.cur !== s.want;\n        if (!moving) { s.sel = s.target; s.v = 0; }\n      }\n      if (!still) {\n        s.sx += (s.px - s.sx) * (1 - Math.exp(-dt * 3)); s.sy += (s.py - s.sy) * (1 - Math.exp(-dt * 3));\n        if (Math.abs(s.px - s.sx) > 0.002 || Math.abs(s.py - s.sy) > 0.002) moving = true;\n      }\n\n      const fast = Math.abs(s.v) > 0.25;\n      if (s.fresh || !canAcc) { draw(1, 0); s.fresh = false; s.count = 1; }\n      else if (moving) { draw(fast ? 0.7 : 0.35, 1 + (s.frame % 64)); s.count = 3; }\n      else if (s.count < 48) { s.count++; draw(1 / s.count, s.count); }\n      if (s.first) { s.first = false; setShown(\"gl\"); }\n\n      if (!still && dtRaw > 0.026) s.slow++; else s.slow = Math.max(0, s.slow - 2);\n      if (s.slow > 45 && scale > 0.5) { scale *= 0.82; s.slow = 0; size(); }\n\n      if (moving || s.count < 48 || (!still && !s.touched)) s.raf = requestAnimationFrame(frame);\n    };\n    const wake = () => { if (!s.raf && s.visible) { s.last = 0; s.raf = requestAnimationFrame(frame); } };\n\n    size();\n    placeTags(camera());\n    const ro = new ResizeObserver(() => { size(); placeTags(camera()); wake(); });\n    ro.observe(box);\n    const io = new IntersectionObserver(([e]) => { s.visible = e.isIntersecting && !document.hidden; if (s.visible) wake(); }, { threshold: 0.05 });\n    io.observe(box);\n    const vis = () => { s.visible = !document.hidden; if (s.visible) wake(); };\n    document.addEventListener(\"visibilitychange\", vis);\n\n    // A press on the strip brings that frame to the lamp.\n    const down = (e: PointerEvent) => {\n      if ((e.target as HTMLElement).closest(\"button\")) return;\n      const r = box.getBoundingClientRect(), c = camera();\n      let best = -1, bd = 70;\n      for (let i = 0; i < N; i++) {\n        const [x, y] = project(c, [(i - s.sel) * PITCH, TOP, 0]);\n        const d = Math.hypot(x - (e.clientX - r.left), (y - (e.clientY - r.top)) * 0.7);\n        if (d < bd) { bd = d; best = i; }\n      }\n      if (best >= 0) go(best, true);\n    };\n    const move = (e: PointerEvent) => {\n      if (still) return;\n      const r = box.getBoundingClientRect();\n      s.px = ((e.clientX - r.left) / r.width) * 2 - 1; s.py = ((e.clientY - r.top) / r.height) * 2 - 1;\n      wake();\n    };\n    const leave = () => { s.px = 0; s.py = 0; wake(); };\n    box.addEventListener(\"pointerdown\", down);\n    box.addEventListener(\"pointermove\", move);\n    box.addEventListener(\"pointerleave\", leave);\n    const lost = (e: Event) => { e.preventDefault(); setShown(\"still\"); };\n    cv.addEventListener(\"webglcontextlost\", lost);\n    wake();\n\n    return () => {\n      alive = false;\n      cancelAnimationFrame(s.raf); ro.disconnect(); io.disconnect();\n      document.removeEventListener(\"visibilitychange\", vis);\n      box.removeEventListener(\"pointerdown\", down); box.removeEventListener(\"pointermove\", move);\n      box.removeEventListener(\"pointerleave\", leave); cv.removeEventListener(\"webglcontextlost\", lost);\n      api.current = null;\n    };\n  }, []);\n\n  const choose = (i: number) => {\n    if (api.current) api.current.go(i, true); else { actRef.current = i; setAct(i); }\n  };\n  const keys = (e: React.KeyboardEvent, i: number) => {\n    const next = e.key === \"ArrowRight\" || e.key === \"ArrowDown\" ? i + 1 : e.key === \"ArrowLeft\" || e.key === \"ArrowUp\" ? i - 1 : e.key === \"Home\" ? 0 : e.key === \"End\" ? N - 1 : -9;\n    if (next === -9) return;\n    e.preventDefault();\n    const k = Math.max(0, Math.min(N - 1, next));\n    choose(k);\n    tags.current[k]?.focus();\n  };\n  const y = years[act];\n  const fallback = shown === \"still\";\n\n  return (\n    <section className=\"relative isolate overflow-hidden bg-[#0c0a08] text-[#f3ebdf]\" style={{ fontFamily: FONT }}>\n      <div ref={stage} className=\"relative mx-auto h-[800px] w-full max-w-[1600px] sm:h-[820px] lg:h-[740px]\" style={{ background: \"radial-gradient(70% 60% at 45% 30%, #2a221a 0%, #120e0a 60%, #0a0806 100%)\" }}>\n        <canvas ref={canvas} aria-hidden=\"true\" className={`absolute inset-0 h-full w-full transition-opacity duration-700 motion-reduce:transition-none ${shown === \"gl\" ? \"opacity-100\" : \"opacity-0\"}`} />\n        {fallback && <Still act={act} />}\n        {fallback && <img src={y.photo} alt=\"\" aria-hidden=\"true\" className=\"absolute bottom-[12%] left-[9%] hidden h-[200px] w-[300px] rotate-[-3deg] border-[8px] border-[#e8e3da] object-cover shadow-2xl lg:block\" style={{ backgroundColor: y.tone }} />}\n\n        <p className=\"pointer-events-none absolute left-6 top-6 text-[11px] font-medium uppercase tracking-[0.32em] text-[#f3ebdf]/60 sm:left-10 lg:left-14 lg:top-10\">\n          {COMPANY}<span className=\"mx-2 text-[#f3ebdf]/30\">/</span><span className=\"hidden sm:inline\">{STRAP}</span><span className=\"sm:hidden\">Our story</span>\n        </p>\n\n        <div aria-live=\"polite\" className=\"pointer-events-none absolute inset-x-0 bottom-0 px-6 pb-8 sm:px-10 lg:left-auto lg:right-0 lg:w-[46%] lg:pb-16 lg:pr-14\">\n          {fallback && <img src={y.photo} alt=\"\" className=\"mb-5 h-[150px] w-[225px] -rotate-2 border-[6px] border-[#e8e3da] object-cover shadow-2xl lg:hidden\" style={{ backgroundColor: y.tone }} />}\n          <p className=\"text-[86px] leading-[0.8] tracking-[-0.04em] text-[#f6e7cf] tabular-nums sm:text-[112px] lg:text-[136px]\" style={{ fontFamily: SERIF }}>{y.year}</p>\n          <h2 className=\"mt-4 text-[26px] font-semibold leading-[1.02] tracking-[-0.035em] sm:text-[32px] lg:mt-6 lg:text-[38px]\">{y.title}</h2>\n          <p className=\"mt-3 max-w-[27rem] text-[16px] leading-snug text-[#f3ebdf]/72 lg:text-[18px]\" style={{ fontFamily: SERIF }}>{y.body}</p>\n        </div>\n\n        <ol aria-label=\"Years in our history\" className={`pointer-events-none ${fallback ? \"absolute inset-x-4 top-[calc(14%+186px)] flex justify-center gap-0 sm:gap-3\" : \"absolute inset-0\"}`}>\n          {years.map((it, i) => {\n            const on = i === act;\n            return (\n              <li key={it.year}>\n                <button\n                  ref={(el) => { tags.current[i] = el; }}\n                  type=\"button\"\n                  onClick={() => choose(i)}\n                  onKeyDown={(e) => keys(e, i)}\n                  aria-current={on ? \"step\" : undefined}\n                  aria-label={`${it.year}: ${it.title}`}\n                  tabIndex={on ? 0 : -1}\n                  className={`pointer-events-auto flex min-h-[40px] min-w-[44px] items-center justify-center rounded-full px-1.5 text-[12px] sm:px-2.5 sm:text-[13px] font-semibold tabular-nums tracking-[0.06em] outline-none transition-colors duration-300 focus-visible:ring-2 focus-visible:ring-[#f0b979] motion-reduce:transition-none ${fallback ? \"relative\" : \"absolute left-0 top-0 opacity-0\"} ${on ? \"text-[#f6c48a]\" : \"text-[#f3ebdf]/50 hover:text-[#f3ebdf]\"}`}\n                  style={fallback ? { opacity: 1 } : undefined}\n                >\n                  <span className={`mr-1.5 inline-block h-1.5 w-1.5 rounded-full transition-colors duration-300 ${on ? \"bg-[#f6c48a]\" : \"bg-[#f3ebdf]/25\"}`} />\n                  {it.year}\n                </button>\n              </li>\n            );\n          })}\n        </ol>\n      </div>\n    </section>\n  );\n}\n"}]}
