--
:root { --bg: #050505; --fg: #ffffff; --dim: rgba(255, 255, 255, 0.25); --margin: clamp(16px, 2.5vw, 36px); --label: 0.75rem; /* 12px */ /* set by pickWordmark() once a painting has decoded; until then the wordmark stays solid white (see .emrys-wordmark) */ --wordmark-img: none; --font-display: 'Anton'; } * { margin: 0; padding: 0; box-sizing: border-box; } html, body { background: var(--bg); color: var(--fg); font-family: 'Space Mono', ui-monospace, monospace; font-size: 16px; overflow: hidden; height: 100%; } ::selection { background: #fff; color: #000; } a { color: inherit; text-decoration: none; } button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; } :focus-visible { outline: 1px solid #fff; outline-offset: 3px; } .label { font-size: var(--label); letter-spacing: 0.02em; line-height: 1.4; text-transform: none; } /* ---------- canvas ---------- */ canvas.stage { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: block; } /* ---------- one-page scroller (hero → work) ---------- */ .scroll { position: fixed; inset: 0; z-index: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: none; scroll-snap-type: y mandatory; scrollbar-width: none; } .scroll::-webkit-scrollbar { display: none; } body.page-open .scroll { overflow: hidden; } .hero, .work { height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; } /* opaque — it covers the canvas until it scrolls away */ .hero { position: relative; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 var(--margin); text-align: center; } /* transparent — the WebGL stage shows through */ .work { background: transparent; } .scroll-cue { /* centred with left/right, not translateX — .rv owns `transform` */ position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vh, 40px); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: var(--label); color: var(--dim); transition: opacity 0.4s ease; } .scroll-cue .bar { width: 1px; height: 34px; background: currentColor; transform-origin: top center; animation: cue 2.4s cubic-bezier(0.76, 0, 0.24, 1) infinite; } @keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 45% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } } body.at-work .scroll-cue { opacity: 0; } /* ---------- hover swap (clip-path text roll) ---------- */ .swap { position: relative; display: inline-block; overflow: hidden; } .swap .swap-hover, .swap .swap-text { display: block; transition: clip-path 0.55s cubic-bezier(0.76, 0, 0.24, 1), transform 0.55s cubic-bezier(0.76, 0, 0.24, 1); will-change: transform, clip-path; } .swap .swap-hover { position: absolute; inset: 0 auto auto 0; width: 100%; clip-path: inset(0 0 100% 0); transform: translateY(35%); } .swap:hover .swap-hover, .swap:focus-visible .swap-hover { clip-path: inset(0 0 0% 0); transform: translateY(0); } .swap:hover .swap-text, .swap:focus-visible .swap-text { clip-path: inset(100% 0 0 0); transform: translateY(-35%); } .swap .swap-text { clip-path: inset(0 0 0 0); } /* ---------- header ---------- */ header { position: fixed; z-index: 8; inset: 0 0 auto 0; top: clamp(18px, 2vw, 24px); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--margin); mix-blend-mode: exclusion; pointer-events: none; font-size: var(--label); } header > * { pointer-events: auto; } .wordmark { font-weight: 700; letter-spacing: 0.06em; font-size: 0.85rem; } .header-meta { display: flex; gap: clamp(24px, 6vw, 90px); } .header-meta .dim { color: var(--dim); } nav.desktop-nav { display: flex; gap: clamp(20px, 3vw, 38px); } @media (max-width: 999px) { .header-meta, nav.desktop-nav { display: none; } } /* mobile menu toggle */ .menu-toggle { position: relative; width: 24px; height: 24px; display: none; align-items: center; justify-content: center; } @media (max-width: 999px) { .menu-toggle { display: flex; } } .menu-toggle .lines { position: relative; width: 20px; height: 8px; } .menu-toggle .lines::before, .menu-toggle .lines::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1); } .menu-toggle .lines::before { top: 0; } .menu-toggle .lines::after { bottom: 0; } .menu-toggle[aria-expanded="true"] .lines::before { transform: translateY(3px) rotate(45deg); } .menu-toggle[aria-expanded="true"] .lines::after { transform: translateY(-3px) rotate(-45deg); } .mobile-menu { position: fixed; inset: 0; z-index: 7; background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 24px; clip-path: inset(0 0 100% 0); transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: none; } .mobile-menu.open { clip-path: inset(0 0 0% 0); pointer-events: auto; } .mobile-menu a { font-family: var(--font-display), sans-serif; font-size: 17vw; line-height: 1; text-transform: uppercase; } /* ---------- project details (bottom left) ---------- */ .project-details { position: fixed; z-index: 6; left: var(--margin); bottom: clamp(20px, 3vh, 30px); mix-blend-mode: exclusion; pointer-events: none; font-size: var(--label); display: flex; flex-direction: column; gap: 10px; max-width: 60vw; } @media (max-width: 999px) { .project-details { left: 0; right: 0; max-width: none; align-items: center; text-align: center; } } .line-roller { position: relative; height: 1.1rem; overflow: hidden; } .line-roller .roll { display: flex; flex-direction: column; will-change: transform; } .line-roller .roll > div { height: 1.1rem; display: flex; align-items: center; white-space: nowrap; } @media (max-width: 999px) { .line-roller .roll > div { justify-content: center; } } .line-roller.roles { color: var(--dim); } /* ---------- counter (bottom right) ---------- */ .counter { position: fixed; z-index: 6; right: calc(var(--margin) + 64px); bottom: clamp(20px, 3vh, 30px); mix-blend-mode: exclusion; pointer-events: none; display: flex; gap: 14px; font-size: var(--label); } @media (max-width: 999px) { .counter { display: none; } } .counter .digit-roller { position: relative; height: 1.1rem; overflow: hidden; min-width: 1.2ch; color: var(--dim); } .counter .digit-roller .roll { display: flex; flex-direction: column; align-items: center; will-change: transform; } .counter .digit-roller .roll > div { height: 1.1rem; display: flex; align-items: center; } /* ---------- view toggle ---------- */ .view-toggle { position: fixed; z-index: 6; right: var(--margin); bottom: clamp(16px, 3vh, 26px); mix-blend-mode: exclusion; width: 40px; height: 24px; display: flex; align-items: center; justify-content: center; gap: 4px; } @media (max-width: 999px) { .view-toggle { display: none; } } .view-toggle span { width: 2px; height: 10px; background: currentColor; transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1); } .view-toggle:hover span:nth-child(1) { transform: translateX(-3px); } .view-toggle:hover span:nth-child(4) { transform: translateX(3px); } .view-toggle:hover span:nth-child(2) { transform: scaleY(0.6); } .view-toggle:hover span:nth-child(3) { transform: scaleY(0.6); } /* ---------- grid view ---------- */ .grid-view { position: fixed; inset: 0; z-index: 5; background: rgba(5, 5, 5, 0.96); overflow-y: auto; padding: calc(var(--margin) + 70px) var(--margin) var(--margin); clip-path: inset(0 0 100% 0); transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1); pointer-events: none; } .grid-view.open { clip-path: inset(0 0 0% 0); pointer-events: auto; } .grid-view .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2vw, 28px); } .grid-view figure { cursor: pointer; } .grid-view img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; filter: grayscale(0.15); transition: filter 0.4s ease, opacity 0.4s ease; } .grid-view figure:hover img { filter: grayscale(0); } .grid-view figcaption { margin-top: 10px; font-size: var(--label); display: flex; justify-content: space-between; gap: 12px; } .grid-view figcaption .year { color: var(--dim); } /* ---------- pages (About) ---------- */ .page { position: fixed; inset: 0; z-index: 5; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; padding: calc(var(--margin) + 84px) var(--margin) calc(var(--margin) * 2); clip-path: inset(0 0 100% 0); transition: clip-path 0.8s cubic-bezier(0.87, 0, 0.13, 1); pointer-events: none; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; } .page.open { clip-path: inset(0 0 0% 0); pointer-events: auto; } .page .headline { font-family: var(--font-display), sans-serif; font-size: clamp(64px, 13vw, 200px); line-height: 0.92; text-transform: uppercase; letter-spacing: 0.005em; max-width: 12ch; } .page .kicker { font-size: var(--label); color: var(--dim); margin-bottom: 18px; } /* staggered reveal inside pages */ .page .pv { clip-path: inset(0 0 110% 0); transform: translateY(24px); transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); } .page.open .pv { clip-path: inset(-10% 0 -10% 0); transform: translateY(0); } .page.open .pv.p1 { transition-delay: 0.25s; } .page.open .pv.p2 { transition-delay: 0.35s; } .page.open .pv.p3 { transition-delay: 0.45s; } .page.open .pv.p4 { transition-delay: 0.55s; } /* about layout */ .about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 90px); margin-top: clamp(32px, 6vh, 72px); align-items: start; } @media (max-width: 999px) { .about-grid { grid-template-columns: 1fr; } } .about-grid .portrait { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); } .about-copy p { font-size: 0.9rem; line-height: 1.7; max-width: 52ch; } .about-copy p + p { margin-top: 1.2em; } .about-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 8vh, 96px); font-size: var(--label); } .about-lists h2 { font-size: var(--label); font-weight: 400; color: var(--dim); margin-bottom: 14px; } .about-lists li { list-style: none; line-height: 2; } .about-lists a { border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 0.3s; } .about-lists a:hover { border-color: #fff; } .contact-line { margin-top: clamp(48px, 10vh, 120px); } .contact-line a { font-family: var(--font-display), sans-serif; font-size: clamp(34px, 7vw, 104px); line-height: 1; text-transform: uppercase; border-bottom: 2px solid rgba(255,255,255,0.25); transition: border-color 0.3s; } .contact-line a:hover { border-color: #fff; } /* slider UI only exists once the hero has scrolled away */ .project-details, .counter, .view-toggle { transition: opacity 0.4s ease; opacity: 0; } body.at-work .project-details, body.at-work .counter, body.at-work .view-toggle { opacity: 1; } body:not(.at-work) .view-toggle { pointer-events: none; } /* hide slider UI while a page or menu covers it */ body.page-open .project-details, body.page-open .counter, body.page-open .view-toggle, body.page-open .time-detail { opacity: 0; pointer-events: none; } /* nav active state */ nav.desktop-nav a.active .swap-text, .mobile-menu a.active { color: var(--dim); } /* ---------- big clock reveal ---------- */ .time-detail { position: fixed; inset: auto 0 0 0; z-index: 4; padding: 0 var(--margin); mix-blend-mode: exclusion; pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path 0.8s cubic-bezier(0.76, 0, 0.24, 1); display: flex; align-items: flex-end; gap: 32px; } .time-detail.show { clip-path: inset(0% 0 0 0); } @media (max-width: 999px) { .time-detail { display: none; } } .time-detail .big { font-family: var(--font-display), sans-serif; font-size: clamp(140px, 27vw, 400px); line-height: 0.85; letter-spacing: -0.01em; } .time-detail .side { padding-bottom: 2.5vw; display: flex; flex-direction: column; gap: 10px; font-size: var(--label); } .time-detail .side .msg { color: var(--dim); max-width: 220px; } /* ---------- intro ---------- */ .intro { position: fixed; inset: 0; z-index: 99; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: var(--label); transition: clip-path 1s cubic-bezier(0.87, 0, 0.13, 1); } .intro.done { clip-path: inset(0 0 100% 0); pointer-events: none; } .intro .counter-num { position: absolute; bottom: var(--margin); right: var(--margin); font-variant-numeric: tabular-nums; } /* EMRYS wordmark with painting clipped inside the letters — shared by the initial loading screen and the hero. Solid white by default: clipping to a background image makes the text transparent, so on a slow or missing painting the title would vanish. The painting is only clipped in once it has actually decoded. */ .emrys-wordmark { font-family: var(--font-display), sans-serif; font-size: clamp(64px, 16vw, 300px); line-height: 1.2; padding-bottom: 0.15em; letter-spacing: -0.01em; text-transform: uppercase; color: var(--fg); transition: color 0.6s ease, -webkit-text-fill-color 0.6s ease; } body.wordmark-ready .emrys-wordmark { background: #000 var(--wordmark-img) center/cover no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; } .painting-caption { font-size: var(--label); color: var(--dim); letter-spacing: 0.02em; text-align: center; } /* ---------- reveal helpers ---------- */ .rv { clip-path: inset(0 0 110% 0); transform: translateY(40%); transition: clip-path 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); } body.ready .rv { clip-path: inset(-10% 0 -10% 0); transform: translateY(0); } body.ready .rv.d1 { transition-delay: 0.08s; } body.ready .rv.d2 { transition-delay: 0.16s; } body.ready .rv.d3 { transition-delay: 0.24s; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }
--
About
--