/* zainsaeed.com homepage, rebuilt 2026-10-31. Split stage: fixed photo right, reading column left. */
:root {
	--bg: #ffffff;
	--surface: #f2f2f2;
	--ink: #0a0a0a;
	--muted: #555555;
	--accent: #0a0a0a;
	--accent-ink: #ffffff;
	--field: #0a0a0a;
	--field-ink: #ffffff;
	--display: "Gambarino", Georgia, serif;
	--text: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
	--step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	--step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--step-head: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
	--step-hero: clamp(2.25rem, 1.4rem + 3.1vw, 4.25rem);
	--edge: clamp(20px, 3vw, 40px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.zn-body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); -webkit-font-smoothing: antialiased; }
.zn img { max-width: 100%; display: block; }
.zn a { color: inherit; }
.zn :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.zn h1, .zn h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.zn p { margin: 0; }

/* Buttons and links: one shape (square), one fill. */
.zn-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; background: var(--accent); color: var(--accent-ink) !important; font: 500 var(--step-body)/1 var(--text); text-decoration: none; border: 0; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.zn-btn:hover { background: #333333; }
.zn-btn:active { transform: translateY(1px); }
.zn-btn--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.zn-btn--light { background: var(--field-ink); color: var(--field) !important; }
.zn-btn--light:hover { background: #e6e6e6; }
.zn-btn[disabled] { opacity: .6; cursor: progress; }
.zn-link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; transition: text-underline-offset .2s var(--ease); }
.zn-link:hover { text-underline-offset: 8px; }

/* Header: wordmark, the site's main links, one action. Sits over the reading column.
   Where the links do not fit, a Menu button opens them as a list. */
.zn-bar { position: absolute; top: 0; left: 0; z-index: 3; width: 52%; display: flex; align-items: center; gap: 28px; padding: 24px var(--edge); }
.zn-bar__name { font-family: var(--display); font-size: 1.6rem; letter-spacing: -0.01em; text-decoration: none; margin-right: auto; white-space: nowrap; }
.zn-bar__nav { display: flex; gap: 24px; font-size: var(--step-small); }
.zn-bar__nav a { text-decoration: none; transition: opacity .2s; }
.zn-bar__nav a:hover { opacity: .6; }
.zn-bar__menu { display: none; padding: 10px 16px; font: 500 var(--step-small)/1 var(--text); color: var(--ink); background: transparent; border: 1px solid var(--ink); cursor: pointer; }
.zn-bar__menu[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.zn-menu { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 8px var(--edge) 24px; background: var(--bg); border-bottom: 1px solid var(--ink); }
.zn-menu[hidden] { display: none; }
.zn-menu a { padding: 14px 0; font-family: var(--display); font-size: 1.5rem; text-decoration: none; border-top: 1px solid var(--surface); }
.zn-menu a:first-child { border-top: 0; }
/* 1181-1360px: links only (the headline has its own Get a quote button).
   1180px and below: the links move into the Menu list. */
@media (max-width: 1360px) {
	.zn-bar { gap: 20px; }
	.zn-bar__nav { gap: 18px; }
	.zn-bar > .zn-btn { display: none; }
}
@media (max-width: 1180px) {
	.zn-bar__nav { display: none; }
	.zn-bar > .zn-btn { display: inline-flex; }
	.zn-bar__menu { display: inline-block; }
}
@media (min-width: 1181px) {
	.zn-menu { display: none !important; }
}

/* The split: reading column left, fixed photograph right. */
.zn-split { display: grid; grid-template-columns: 52% 48%; }
.zn-read { grid-column: 1; grid-row: 1; padding: 0 var(--edge); }
.zn-read > section { max-width: 34rem; margin-left: clamp(0px, 4vw, 64px); padding: clamp(120px, 14vh, 200px) 0 0; }
.zn-read > section:last-child { padding-bottom: clamp(120px, 14vh, 200px); }

.zn-stage { grid-column: 2; grid-row: 1; position: sticky; top: 0; height: 100svh; padding: 12px 12px 12px 0; }
.zn-stage__img { position: absolute; inset: 12px 12px 68px 0; width: calc(100% - 12px); height: calc(100% - 80px); object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .9s var(--ease); background: var(--surface); }
.zn-stage__img--work { object-position: 50% 0; }
.zn-stage__img.is-on { opacity: 1; }
.zn-stage__cap { position: absolute; left: 0; right: 12px; bottom: 12px; height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: var(--surface); font-size: var(--step-small); color: var(--muted); }
.zn-stage__cap span:first-child { color: var(--ink); font-weight: 500; }

/* Hero: the column's first screen. */
.zn-read > .zn-hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; padding-bottom: 80px; max-width: 40rem; }
.zn-hero h1 { font-size: var(--step-hero); line-height: .98; max-width: 19ch; }
.zn-lead { margin-top: 36px !important; font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; }
.zn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 44px; }

.zn h2 { font-size: var(--step-head); line-height: 1; margin-bottom: 28px; }
.zn-more { margin-top: 32px !important; color: var(--muted); }
.zn-more .zn-link { color: var(--ink); }

/* Work: a quiet ledger. Pointing at a row shows that site in the fixed photo. */
.zn-ledger { list-style: none; margin: 0; padding: 0; }
.zn-ledger a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 24px; padding: 14px 0; text-decoration: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.zn-ledger__pic { display: none !important; }
.zn-ledger__name { font-size: var(--step-lead); font-weight: 500; }
.zn-ledger__kind { font-size: var(--step-small); color: var(--muted); text-align: right; }
.zn-ledger:hover a, .zn-ledger:focus-within a { opacity: .4; }
.zn-ledger a:hover, .zn-ledger a:focus-visible, .zn-ledger a.is-on { opacity: 1; }
.zn-ledger a:hover { transform: translateX(6px); }

/* AI automation: the same quiet list, name over one line. */
.zn-ai__lead { font-size: var(--step-lead); line-height: 1.4; max-width: 30ch; margin-bottom: 32px !important; }
.zn-ledger--ai li { display: grid; gap: 4px; padding: 18px 0; }
.zn-ledger__note { color: var(--muted); }

/* One letter from a client. */
.zn-letter blockquote { margin: 0; padding: 0; border: 0; }
.zn-letter blockquote p + p { margin-top: 18px; }
.zn-letter__open { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; letter-spacing: -0.01em; }
.zn-letter__sign { margin-top: 32px !important; font-weight: 500; }
.zn-letter__sign span { font-weight: 400; color: var(--muted); }
.zn-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; max-width: 560px; }
.zn-video { margin: 0; min-width: 0; }
.zn-video video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); border: 1px solid var(--ink); }
@media (max-width: 560px) {
	.zn-videos { grid-template-columns: 1fr; max-width: 320px; }
}
.zn-video figcaption { margin-top: 12px; font-size: .9375rem; color: var(--muted); }

/* Contact: breaks the split, one full field of colour. */
.zn-contact { background: var(--field); color: var(--field-ink); display: grid; grid-template-columns: 5fr 7fr; gap: 64px; padding: clamp(96px, 12vw, 180px) var(--edge); }
.zn-contact__intro { padding-left: clamp(0px, 4vw, 64px); }
.zn-contact h2 { margin-bottom: 24px; max-width: 12ch; }
.zn-contact__intro p { max-width: 30ch; }
.zn-contact__direct { margin-top: 32px !important; line-height: 2; }
.zn-contact__direct a { text-underline-offset: 5px; }
.zn-form { display: grid; gap: 20px; }
.zn-form label { display: grid; gap: 8px; font-size: var(--step-small); font-weight: 500; }
.zn-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.zn-form input, .zn-form select, .zn-form textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: 400 var(--step-body)/1.4 var(--text); color: var(--ink); background: var(--field-ink); border: 2px solid transparent; border-radius: 0; transition: border-color .2s; }
.zn-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314171c' stroke-width='2'/%3E%3C/svg%3E"); background-position: calc(100% - 18px) 50%; background-size: 12px 8px; background-repeat: no-repeat; padding-right: 44px; }
.zn-form textarea { resize: vertical; }
.zn-form input:focus, .zn-form select:focus, .zn-form textarea:focus { outline: none; border-color: #999999; }
.zn-form__end { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.zn-form__status { font-size: var(--step-small); }
.zn-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: off-screen honeypot, not a rule */

/* Footer: the name returns at full width. */
.zn-foot { padding: clamp(80px, 10vw, 140px) var(--edge) 32px; }
.zn-foot__name { font-family: var(--display); font-size: clamp(3.5rem, 13vw, 13rem); line-height: .85; letter-spacing: -0.03em; }
.zn-foot__nav { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 48px; }
.zn-foot__nav a { text-decoration: none; transition: opacity .2s; }
.zn-foot__nav a:hover { opacity: .6; }
.zn-foot__end { margin-top: 40px !important; font-size: var(--step-small); color: var(--muted); }

/* Tablet and phone: one column. The photo leads, then the reading column. */
@media (max-width: 900px) {
	.zn-bar { position: relative; width: 100%; gap: 16px; padding: 16px var(--edge); }
	.zn-bar__nav { display: none; }
	.zn-split { display: block; }
	.zn-stage { position: relative; height: 62svh; padding: 0 var(--edge); }
	.zn-stage__img { inset: 0 var(--edge) 56px; width: calc(100% - 2 * var(--edge)); height: calc(100% - 56px); }
	.zn-stage__img--work { display: none; }
	.zn-stage__cap { display: none; }
	.zn-stage { height: 46svh; }
	.zn-stage__img { bottom: 0; height: 100%; }
	.zn-read > section { margin-left: 0; max-width: none; padding-top: 96px; }
	.zn-read > .zn-hero { min-height: 0; padding-top: 40px; padding-bottom: 0; }
	.zn-ledger__pic { display: block !important; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; grid-column: 1 / -1; margin-bottom: 12px; background: var(--surface); }
	.zn-ledger li:nth-child(n+4) .zn-ledger__pic { display: none !important; }
	.zn-ledger a { grid-template-columns: 1fr; padding: 16px 0; }
	.zn-ledger__kind { text-align: left; }
	.zn-letter__open { font-size: 1.375rem; }
	.zn-ledger:hover a { opacity: 1; }
	.zn-ledger a:hover { transform: none; }
	.zn-contact { grid-template-columns: 1fr; gap: 48px; }
	.zn-contact__intro { padding-left: 0; }
}
@media (max-width: 560px) {
	.zn-form__row { grid-template-columns: 1fr; }
	.zn-actions .zn-btn { width: 100%; }
	.zn-stage__cap span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.zn *, .zn *::before, .zn *::after { transition-duration: .01ms !important; }
}
