/* Filip Shamis — portfolio (static build of Option A) */
:root {
	--ink: #141414;
	--gray: rgba(20, 20, 20, 0.52);
	--rule: rgba(20, 20, 20, 0.9);
	--gap: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #fff; }
body {
	font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 13px;
	line-height: 1.35;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.6; }
ul { margin: 0; }
img, video { display: block; width: 100%; height: auto; }
figure { margin: 0; }
h1, h2 { margin: 0; font-size: inherit; font-weight: 400; } /*seo-h*/

/* ---------- frame ---------- */
.nav {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 50;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 20px 20px 14px 20px;
	background: rgba(255, 255, 255, 0.96);
}
.nav .links a { margin-left: 30px; color: var(--gray); }
.nav .links a.active,
.nav .links a:hover { color: var(--ink); opacity: 1; border-bottom: 1px solid var(--ink); }
main { padding: 118px 20px 28px 20px; }

/* ---------- grid ---------- */
.fs-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: var(--gap);
	row-gap: 24px;
	align-items: start;
	width: 100%;
}
.fs-c1 { grid-column: 1 / span 1; }
.fs-c2 { grid-column: 2 / span 1; }
.fs-c3 { grid-column: 3 / span 1; }
.fs-c4 { grid-column: 4 / span 1; }
.fs-c34 { grid-column: 3 / span 2; }
.fs-c12 { grid-column: 1 / span 2; }
.fs-c13 { grid-column: 1 / span 3; }
.fs-c24 { grid-column: 2 / span 3; }
.fs-all { grid-column: 1 / -1; }

/* ---------- type ---------- */
.fs-title {
	display: block;
	font-family: "Geist", system-ui, sans-serif;
	font-weight: 400;
	font-size: clamp(64px, 10.4vw, 150px);
	line-height: 0.9;
	letter-spacing: -0.045em;
	margin: 0 0 50px -0.04em;
}
.fs-hero {
	display: block;
	font-family: "Geist", system-ui, sans-serif;
	font-weight: 400;
	font-size: clamp(56px, 11.9vw, 172px);
	line-height: 0.9;
	letter-spacing: -0.05em;
	margin-left: -0.04em;
}
.fs-lead { display: block; font-family: "Geist", system-ui, sans-serif; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.32; letter-spacing: -0.01em; }
.fs-lead17 { font-family: "Geist", system-ui, sans-serif; font-size: 17px; line-height: 1.32; letter-spacing: -0.01em; }
.fs-h3 { display: block; font-family: "Geist", system-ui, sans-serif; font-size: 22px; line-height: 1.12; letter-spacing: -0.02em; }
.fs-gray, .fs-label { color: var(--gray); }
.fs-label { display: block; }
.fs-kpis { list-style: disc; margin: 22px 0 0 0; padding: 0 0 0 1.4em; }
.fs-kpis li { margin: 0 0 5px 0; }
.fs-section {
	display: block;
	border-top: 1px solid var(--rule);
	padding-top: 22px;
	margin: 64px 0 28px 0;
	font-family: "Geist", system-ui, sans-serif;
	font-size: clamp(28px, 2.8vw, 40px);
	line-height: 1;
	letter-spacing: -0.03em;
}
.fs-head40 {
	display: block;
	font-family: "Geist", system-ui, sans-serif;
	font-size: clamp(28px, 2.8vw, 40px);
	line-height: 1;
	letter-spacing: -0.03em;
	margin: 0 0 22px 0;
}
.fs-ruled { border-top: 1px solid var(--rule); padding-top: 30px; margin-top: 46px; }
.fs-secrow { margin: 64px 0 28px 0; border-top: 1px solid var(--rule); padding-top: 22px; align-items: baseline; }
.fs-secrow .fs-head40 { margin: 0; }
.fs-rule { border-top: 1px solid var(--rule); width: 100%; height: 0; margin: 0; }
.caption, .fs-cap {
	font-size: 12px;
	line-height: 1.3;
	color: var(--gray);
	text-align: left;
	padding-top: 10px;
}

/* ---------- footer / case nav ---------- */
.fs-footer { border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 96px; }
.fs-casenav { display: flex; justify-content: space-between; font-family: "Geist", system-ui, sans-serif; font-size: 17px; margin-top: 80px; }

/* ---------- media layouts ---------- */
.fs-jrow { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 16px 0; width: 100%; }
.fs-jcell { min-width: 0; }
.fs-gg { display: grid; column-gap: 16px; row-gap: 16px; width: 100%; }
.fs-vg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; width: 100%; }

.fs-pg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 40px; align-items: start; width: 100%; }
.fs-pg .frame { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fs-pg .frame img { width: 100%; height: 100%; object-fit: contain; }
.fs-pg .fs-inset .frame img { transform: scale(0.72); transform-origin: center bottom; }

.fs-c45 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 16px; row-gap: 16px; width: 100%; }
.fs-c45 .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.fs-c45 .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.fs-c45 .fs-left .frame img { object-position: left center; }

.zoomable img { cursor: zoom-in; }

/* ---------- work index ---------- */
.fs-work { display: block; }
.fs-work .fs-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px 234px; align-items: start; }
.fs-work .fs-row a.fs-name {
	font-family: "Geist", system-ui, sans-serif;
	font-size: clamp(40px, 6.1vw, 88px);
	line-height: 1.09;
	letter-spacing: -0.04em;
	color: var(--ink);
	transition: color 0.2s ease;
}
.fs-work .fs-row .fs-num,
.fs-work .fs-row .fs-res { padding-top: 0.9em; color: var(--gray); transition: color 0.2s ease; }
.fs-work:hover .fs-row a.fs-name { color: #d4d4d4; opacity: 1; }
.fs-work .fs-row:hover a.fs-name { color: var(--ink); }
.fs-work .fs-row:hover .fs-num,
.fs-work .fs-row:hover .fs-res { color: var(--ink); }
.fs-preview {
	position: fixed;
	z-index: 40;
	width: 240px;
	pointer-events: none;
	opacity: 0;
	transform: translate(24px, -50%);
	transition: opacity 0.15s ease;
}
.fs-preview.on { opacity: 1; }

/* ---------- lightbox ---------- */
.fs-lightbox {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(255, 255, 255, 0.97);
	display: none; align-items: center; justify-content: center;
	cursor: zoom-out; padding: 40px;
}
.fs-lightbox.on { display: flex; }
.fs-lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
	main { padding: 84px 16px 24px 16px; }
	.nav { padding: 16px 16px 12px 16px; }
	.nav .links a { margin-left: 16px; }
	.fs-grid { grid-template-columns: minmax(0, 1fr); }
	.fs-grid > * { grid-column: 1 / -1 !important; }
	.fs-title { font-size: 54px; margin-bottom: 28px; }
	.fs-hero { font-size: 58px; }
	.fs-jrow { flex-direction: column; }
	.fs-jcell { flex: none !important; width: 100%; }
	.fs-jrow.logos { flex-direction: row; flex-wrap: wrap; gap: 14px 18px !important; }
	.fs-jrow.logos .fs-jcell { width: 28% !important; }
	.fs-gg { grid-template-columns: minmax(0, 1fr) !important; }
	.fs-pg, .fs-c45, .fs-vg { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.fs-work .fs-row { grid-template-columns: minmax(0, 1fr); }
	.fs-work .fs-row a.fs-name { font-size: 40px; }
	.fs-work .fs-row .fs-num { display: none; }
	.fs-work .fs-row .fs-res { padding-top: 0; margin-bottom: 14px; }
	.fs-casenav { font-size: 15px; }
	.fs-footer > div { margin-bottom: 8px; }
	.fs-footer .fs-c4 { text-align: left !important; }
	.fs-preview { display: none; }
}

/* lightbox: tall images scroll */
.fs-lightbox { overflow: auto; }
.fs-lightbox.tall { align-items: flex-start; }
.fs-lightbox.tall img { max-height: none; width: min(680px, 100%); }
/* video sound toggle */
.fs-vg .frame { position: relative; }
.fs-sound {
	position: absolute; right: 8px; bottom: 8px;
	font-family: "Geist Mono", ui-monospace, monospace; font-size: 11px;
	color: #fff; background: rgba(20, 20, 20, 0.6);
	border: 0; border-radius: 999px; padding: 6px 10px; cursor: pointer;
}
.fs-sound:hover { background: rgba(20, 20, 20, 0.85); }

/* home carousel */
.fs-carousel { position: relative; aspect-ratio: 4 / 5; background: #fff; overflow: hidden; }
.fs-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: none; }
.fs-carousel img.on { opacity: 1; }

/* work list: single column */
.fs-work .fs-row { grid-template-columns: minmax(0, 1fr) !important; }

/* fade-in on scroll */
.fs-fade { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fs-fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fs-fade { opacity: 1; transform: none; transition: none; } }
/* preview flips to the left near the right edge */
.fs-preview.left { transform: translate(calc(-100% - 24px), -50%); }
.fs-count { font-variant-numeric: tabular-nums; }

/* lightbox gallery controls */
.fs-lightbox img { cursor: default; }
.fs-lb-nav {
	position: fixed; top: 50%; transform: translateY(-50%); z-index: 101;
	width: 56px; height: 56px; border: 0; border-radius: 999px;
	background: rgba(20, 20, 20, 0.06); color: var(--ink);
	font-family: "Geist", system-ui, sans-serif; font-size: 24px; line-height: 1; cursor: pointer;
	display: none; align-items: center; justify-content: center;
}
.fs-lb-nav:hover { background: rgba(20, 20, 20, 0.14); }
.fs-lb-prev { left: 20px; }
.fs-lb-next { right: 20px; }
.fs-lb-close { position: fixed; top: 18px; right: 22px; z-index: 101; border: 0; background: none; font-family: "Geist Mono", ui-monospace, monospace; font-size: 13px; cursor: pointer; color: var(--ink); display: none; }
.fs-lb-count { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 101; font-size: 12px; color: var(--gray); display: none; }
.fs-lightbox.on ~ .fs-lb-close, .fs-lightbox.on ~ .fs-lb-count { display: block; }
.fs-lightbox.on.multi ~ .fs-lb-nav { display: flex; }
@media (max-width: 760px) { .fs-lb-nav { width: 44px; height: 44px; font-size: 20px; } .fs-lb-prev { left: 8px; } .fs-lb-next { right: 8px; } }

/* descender fix: Safari clips glyphs outside composited layers */
.fs-hero { padding-bottom: 0.14em; margin-bottom: -0.14em; }
.fs-title { padding-bottom: 0.14em; margin-bottom: calc(50px - 0.14em); }
.fs-section, .fs-head40 { padding-bottom: 0.1em; }
@media (max-width: 760px) { .fs-title { margin-bottom: calc(28px - 0.14em); } }
