/* Linen: shared look for the inner pages (work, project, about, contact) */
:root {
  --white: #fbfaf7; --beige: #ece3d6; --sand: #d9cbb6; --ink: #0b0b0a; --soft: rgb(var(--ink-rgb) / 0.56); --faint: rgb(var(--ink-rgb) / 0.1);
  --glass: rgb(var(--hi-rgb) / 0.52); --edge: rgb(var(--hi-rgb) / 0.72);
  --pad: clamp(16px, 3vw, 44px); --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { background: var(--page); color: var(--ink); font-family: "Geist", system-ui, sans-serif; font-size: 17px; line-height: 1.5; font-weight: 380; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--white); }
.f { font-family: var(--display); font-variation-settings: var(--dvs); font-weight: var(--dw); letter-spacing: -0.045em; line-height: 0.88; }
.fi, .f i, .f em { font-family: var(--display); font-style: var(--dis); font-weight: var(--diw); font-variation-settings: var(--dvs-it); letter-spacing: -0.035em; }
.soft { color: var(--soft); }
.glass { background: var(--glass); border: 1px solid var(--edge); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.bg-fallback { position: fixed; inset: 0; z-index: -2; background: radial-gradient(80% 60% at 20% 20%, #fbfaf7, transparent), radial-gradient(70% 60% at 80% 70%, #e6d9c6, transparent), #f2ece3; }

/* page change: a beige curtain with the mark */
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--curtain); display: grid; place-items: center; pointer-events: none; clip-path: inset(100% 0 0 0); }
.curtain.on { clip-path: inset(0 0 0 0); }
.curtain .mk { font-size: clamp(70px, 10vw, 150px); overflow: hidden; padding: 0 0.05em 0.08em; }
.curtain .mk span { display: block; }

/* scroll thumb */
.track { position: fixed; z-index: 60; right: 10px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: rgb(var(--ink-rgb) / 0.08); pointer-events: none; }
.thumb { position: absolute; left: 0; top: 0; width: 2px; height: 64px; border-radius: 2px; background: var(--ink); will-change: transform; }

/* cursor */
.cur { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--ink); transition: opacity 0.3s; }
.cur-lab { position: absolute; left: 0; top: 0; translate: -50% -50%; width: 86px; height: 86px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 14px; font-weight: 500; transform: scale(0.2); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.35s var(--ease); }
.cur.lab .cur-lab { transform: scale(1); opacity: 1; }
.cur.lab .cur-dot { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .cur { display: block; } }

/* nav */
.nav { position: fixed; z-index: 50; top: 12px; left: 50%; translate: -50% 0; width: min(1120px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 54px; padding: 0 8px 0 22px; border-radius: 54px; font-size: 14px; }
.nav .logo { font-size: 24px; line-height: 1; justify-self: start; display: flex; align-items: center; gap: 14px; }
.nav .status { font-family: "Geist", sans-serif; font-size: 13px; font-weight: 400; letter-spacing: -0.01em; color: var(--soft); display: inline-flex; align-items: center; gap: 8px; }
.nav .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); position: relative; }
.nav .status i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { to { transform: scale(3.2); opacity: 0; } }
.nav nav { display: flex; gap: 22px; }
@media (max-width: 1100px) { .nav .status { display: none !important; } }
.nav nav a { color: var(--soft); transition: color 0.3s; position: relative; }
.nav nav a:hover, .nav nav a.on { color: var(--ink); }
.nav nav a.on::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }
.pill { justify-self: end; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 20px; border-radius: 40px; background: var(--ink); color: var(--white); font-weight: 500; will-change: transform; }
.ghost { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; height: 48px; padding: 0 24px; border-radius: 48px; border: 1px solid rgb(var(--ink-rgb) / 0.2); transition: background-color 0.4s, color 0.4s; }
.ghost:hover { background: var(--ink); color: var(--white); }
.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 34px; font-size: 14px; background: rgb(var(--hi-rgb) / 0.55); box-shadow: 0 0 0 1px var(--faint); white-space: nowrap; }

/* page head */
.page-head { padding-top: 22vh; }
.page-head .eyebrow { color: var(--soft); font-size: 15px; }
.page-head h1 { font-size: clamp(72px, 13vw, 250px); margin-top: 2vh; }
.page-head .lead { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.2; letter-spacing: -0.03em; max-width: 30ch; margin-top: 4vh; }

/* screen frame used for work */
.screen { position: relative; aspect-ratio: 16 / 10; border-radius: 26px; background: #0b0b0a; padding: 10px; box-shadow: 0 40px 100px -40px rgb(var(--shadow-rgb) / 0.4); will-change: transform; }
.screen-in { display: block; position: relative; width: 100%; height: 100%; border-radius: 17px; overflow: hidden; background: #111; }
.screen-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: scale 1.4s var(--ease); }

/* closing block shared by the pages */
.cta { padding: 24vh var(--pad) 16vh; text-align: center; }
.cta h2 { font-size: clamp(60px, 10vw, 190px); }
.cta p { max-width: 44ch; margin: 4vh auto 0; color: var(--soft); }
.cta .acts { display: flex; justify-content: center; gap: 12px; margin-top: 4.4vh; }
.cta .pill, .cta .ghost { height: 60px; padding: 0 34px; font-size: 18px; }

footer { margin: 0 var(--pad) 18px; padding: 40px 40px 0; border-radius: 30px; background: var(--ink); color: var(--white); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; font-size: 15px; }
footer h5 { font-weight: 400; color: rgb(var(--white-rgb) / 0.5); margin-bottom: 8px; }
footer a { display: block; transition: opacity 0.3s; } footer a:hover { opacity: 0.6; }
.word { font-size: 15.6vw; line-height: 1; margin-top: 6vh; padding-bottom: 0.26em; white-space: nowrap; letter-spacing: -0.06em; margin-left: -0.03em; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: 1fr auto; padding-left: 18px; height: 50px; }
  .nav nav, .nav .status { display: none; }
  .nav .pill { height: 36px; padding: 0 16px; }
  .page-head { padding-top: 130px; }
  .page-head h1 { font-size: 19vw; }
  .page-head .lead { font-size: 6vw; }
  .screen { border-radius: 18px; padding: 6px; }
  .screen-in { border-radius: 13px; }
  .cta h2 { font-size: 16vw; }
  .cta .acts { flex-direction: column; align-items: center; }
  footer { padding: 28px 24px 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 28px; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .word { font-size: 17vw; }
  .track { right: 4px; }
  .menu-btn { display: inline-flex; }
}
@media (prefers-reduced-motion: reduce) { .nav .status i::after { animation: none; } }
