/* Bruno Zabala, rebuild of the Brandon Yasin portfolio layout (clean-room). */
@font-face { font-family: "Inter Tight"; src: url(fonts/InterTight-Var.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(fonts/InterTight-Italic-Var.woff2) format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(fonts/Inter-Var.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Signature"; src: url(fonts/MrsSaintDelafield.woff2) format("woff2"); font-display: block; }

:root {
  --bg: #e9e6df;
  --fg: #111111;
  --ph: #dad6cd;
  --mute: rgba(17, 17, 17, .32);
  --olive: #7e7966;
  --panel: #6c7d5d;
  --panel-fg: #263b1c;
  --m: 16px;                         /* page margin */
  --g: 8px;                          /* gutter */
  --step: 28.125vw;                  /* column step: 16, 421, 825, 1230 at 1440 */
  --col: calc(var(--step) - var(--g));
  --ui: 12px;
  --ease: cubic-bezier(.65, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: var(--ui);
  line-height: 14px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .6s linear, color .6s linear;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; text-transform: inherit; background: none; border: 0; cursor: pointer; text-align: left; letter-spacing: inherit; }
ol, ul { list-style: none; }
.up { text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* ---------- small UI text ---------- */
.ui { font-family: "Inter", "Helvetica Neue", Helvetica, sans-serif; font-size: var(--ui); line-height: 14px; letter-spacing: -.005em; text-transform: uppercase; font-weight: 400; }

/* text roll on hover (two copies, the second slides in) */
.roll { display: inline-block; overflow: hidden; height: 14px; vertical-align: top; }
.roll > span { display: block; transition: transform .55s var(--ease); }
.roll > span::after { content: attr(data-t); display: block; }
a:hover .roll > span, button:hover .roll > span, .roll:hover > span { transform: translateY(-14px); }

/* ---------- placeholder image (flat neutral box) ---------- */
.ph { position: relative; display: block; width: 100%; height: 100%; background: var(--ph); overflow: hidden; transition: background-color .6s linear; }
.ph figcaption { position: absolute; left: 10px; bottom: 9px; right: 10px; display: flex; flex-direction: column; gap: 2px; font-family: "Inter", sans-serif; font-size: 10px; line-height: 12px; color: var(--fg); opacity: .55; text-transform: none; letter-spacing: 0; }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto 0; height: 80px; z-index: 50; pointer-events: none; }
.hd > * { pointer-events: auto; position: absolute; top: 16px; }
.hd-name { left: var(--m); height: 28px; overflow: hidden; }
.hd-name .tick { display: block; transition: transform .9s var(--ease); }
.hd-name .tick span { display: block; height: 14px; }
.hd-sig { left: calc(var(--m) + var(--step)); top: 6px; height: 70px; width: 170px; }
.sig { font-family: "Signature", cursive; font-size: 36px; line-height: 70px; white-space: nowrap; font-weight: 400; letter-spacing: 0; display: inline-block; clip-path: inset(0 0 0 0); }
.hd-nav { left: calc(var(--m) + 2 * var(--step)); display: flex; flex-direction: column; align-items: flex-start; }
.hd-nav button { height: 14px; }
.hd-time { left: calc(var(--m) + 3 * var(--step)); }
.tl { display: block; height: 14px; overflow: hidden; }
.tl > span { display: block; transition: transform .55s var(--ease); }
.tl-a, .tl-b { display: block; height: 14px; white-space: nowrap; }
.tl-b { cursor: pointer; }
.is-travel .tl > span { transform: translateY(-14px); }
.tv { display: block; height: 14px; white-space: pre; }
.tv .dot { display: inline-block; width: 14px; text-align: center; transition: opacity .2s; }
.tv .dot.off { opacity: 0; }
.dial { right: var(--m); top: 17px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid currentColor; transition: transform .6s var(--ease); touch-action: none; cursor: grab; }
.dial:hover { transform: scale(1.18); }
.dial.dragging { cursor: grabbing; transform: scale(1.18); }
.dial i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1px solid currentColor; }

/* ---------- views ---------- */
#app { position: relative; min-height: 100vh; }
.view { position: relative; }
.ptitle { display: none; position: absolute; left: var(--m); top: 70px; font-size: 60px; line-height: 60px; letter-spacing: -.04em; font-weight: 400; text-transform: lowercase; }
.mini .ptitle { display: block; }

/* HOME: one looping row of cases */
.v-home { height: 100vh; overflow: hidden; }
.row { position: absolute; left: var(--m); right: 0; bottom: 17px; height: calc(var(--col) * 1.25 + 23px); touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.row.dragging { cursor: grabbing; }
.card { position: absolute; left: 0; top: 0; width: var(--col); height: 100%; transform: translate3d(calc(var(--i) * var(--step)), 0, 0); -webkit-user-drag: none; }
.card-s { width: 100%; height: 100%; transform-origin: 50% 60%; }
.card-in { width: 100%; height: 100%; display: flex; flex-direction: column; transition: transform .7s var(--ease-out); }
.card-l { display: block; height: 23px; white-space: nowrap; }
.card-l .roll { position: relative; top: -6px; }
.card-img { flex: 1; }
.card:hover .card-in { transform: translateY(-10px) scale(1.012); }
.card img, .card figure { pointer-events: none; }

/* CASE page */
.v-case { padding-bottom: 0; }
.c-hero { position: relative; height: 100vh; }
.c-left { position: absolute; left: var(--m); right: 50%; bottom: 16px; will-change: transform; }
.c-title { font-size: 90px; line-height: .9; letter-spacing: -.04em; font-weight: 370; text-transform: lowercase; margin-bottom: 47px; max-width: calc(2 * var(--step) - 24px); }
.c-meta { display: flex; }
.c-meta > div { width: var(--step); padding-right: 16px; }
.c-meta span { display: block; }
.c-img { position: absolute; left: calc(var(--m) + 2 * var(--step)); right: var(--m); top: 60px; bottom: 16px; }
.c-intro { padding: 64px var(--m) 0 calc(var(--m) + 2 * var(--step)); }
.c-intro p { font-size: 44px; line-height: 1; letter-spacing: -.035em; font-weight: 400; max-width: 600px; }
.blk { margin-top: 220px; padding: 0 var(--m); }
.cap { display: flex; gap: 21px; margin-top: 11px; }
.cap b { font-weight: 400; }
.m-wide { width: 100%; height: 55.5vw; max-height: calc(100vh - 100px); }
.m-trio { display: flex; gap: 0; }
.m-trio > div { width: var(--step); padding-right: calc(var(--step) - 295px * 1440 / 1440); }
.m-por { width: calc(var(--col) * .745); }
.m-por .ph { aspect-ratio: var(--r, .8); height: auto; }
.m-row { display: flex; align-items: flex-start; }
.m-row > .m-cell { width: var(--step); }
.m-row > .m-cell .ph { width: calc(var(--col) * .745); aspect-ratio: var(--r, .8); height: auto; }
.txt { display: grid; grid-template-columns: calc(2 * var(--step)) 1fr; }
.txt > .txt-r { max-width: 600px; }
.b24, .txt-r p, .txt-r li { font-size: 24px; line-height: 1.04; letter-spacing: -.012em; font-weight: 300; }
.txt-r p + p { margin-top: 26px; }
.h24 { font-size: 24px; line-height: 1.04; letter-spacing: -.01em; font-weight: 300; text-transform: uppercase; margin-bottom: 30px; }
.nlist li { display: grid; grid-template-columns: 56px 1fr; }
.stats { display: grid; grid-template-columns: repeat(4, var(--step)); row-gap: 40px; }
.stat b { display: block; font-size: 90px; line-height: .9; letter-spacing: -.04em; font-weight: 370; margin-bottom: 18px; white-space: nowrap; }
.stat { padding-right: 16px; }
.stat span { display: block; max-width: 280px; }
.c-intro + .blk { margin-top: 320px; }
.big44 { font-size: 44px; line-height: 1; letter-spacing: -.035em; font-weight: 400; }
.rows { border-top: 1px solid currentColor; }
.rows > li { display: grid; grid-template-columns: var(--step) var(--step) 1fr; padding: 14px 0 22px; border-bottom: 1px solid currentColor; }
.rows .b24 { margin-bottom: 8px; }
.rows .sub { max-width: 560px; }
.rows .sub p + p { margin-top: 10px; }
.goal-tag { display: inline-block; margin-top: 6px; }
.lnk { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.c-next { position: relative; display: block; height: 100vh; margin-top: 220px; }
.c-next-t { position: absolute; left: var(--m); bottom: 8px; font-size: 90px; line-height: .87; letter-spacing: -.045em; text-transform: lowercase; }
.c-next-img { position: absolute; left: calc(var(--m) + 3 * var(--step)); bottom: 18px; width: 194px; height: 222px; transition: transform .7s var(--ease-out); }
.c-next:hover .c-next-img { transform: translateY(-10px); }

/* ARCHIVE */
.v-arch { height: 100vh; overflow: hidden; }
.a-title { position: absolute; left: var(--m); top: 132px; font-size: 90px; line-height: 1; letter-spacing: -.04em; font-weight: 370; }
.a-note { position: absolute; left: calc(var(--m) + 2 * var(--step)); top: 156px; }
.a-note p + p { margin-top: 13px; }
.a-strip { position: absolute; left: var(--m); bottom: 18px; height: 596px; display: flex; align-items: flex-end; gap: var(--g); will-change: transform; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.a-item { flex: none; height: 268px; aspect-ratio: var(--r); transition: height .9s var(--ease); cursor: zoom-in; }
.a-item.open { height: 596px; cursor: zoom-out; }

/* ABOUT */
.ab-hero { padding: 104px var(--m) 0; font-size: 90px; line-height: .89; letter-spacing: -.04em; font-weight: 370; max-width: 1010px; }
.ab-body { position: relative; display: grid; grid-template-columns: calc(2 * var(--step)) 1fr; padding: 0 var(--m); margin-top: 194px; }
.ab-stick { position: sticky; top: 43.2vh; align-self: start; width: calc(var(--col) * .745); aspect-ratio: .8; }
.ab-stick .fr { position: absolute; inset: 0; opacity: 0; transition: opacity .8s linear; }
.ab-stick .fr.on { opacity: 1; }
.ab-text { max-width: 600px; padding-top: 6px; padding-bottom: 120px; }
.ab-text section + section { margin-top: 116px; }
.ab-vals { margin-top: 260px; padding: 0 var(--m); }
.ab-vh { margin-left: var(--step); font-size: 90px; line-height: .89; letter-spacing: -.04em; font-weight: 370; max-width: 640px; }
.ab-vrow { display: flex; margin-top: 150px; }
.ab-v { width: var(--step); }
.ab-v .h24 { margin-bottom: 22px; }
.ab-v .box { position: relative; width: var(--col); height: calc(var(--col) * 1.25); }
.ab-v .box .ph { position: absolute; inset: 0; transition: opacity .6s var(--ease), background-color .6s linear; }
.ab-v .box p { position: absolute; inset: 0; padding: 32px; font-size: 24px; line-height: 1.04; letter-spacing: -.012em; font-weight: 300; }
.ab-v .box:hover .ph, .ab-v .box:focus-within .ph { opacity: 0; }
.ab-proc { position: relative; margin-top: 300px; height: calc(100vh + 7 * 55vh); }
.ab-pin { position: sticky; top: -80px; height: calc(100vh + 80px); overflow: hidden; }
.ab-ph { padding: 0 var(--m); font-size: 90px; line-height: .89; letter-spacing: -.04em; font-weight: 370; max-width: 640px; }
.ab-steps { position: absolute; left: 0; right: 0; top: 510px; height: 50px; }
.ab-step { position: absolute; left: 0; top: 0; font-size: 24px; line-height: 1.04; font-weight: 300; text-transform: uppercase; white-space: nowrap; color: var(--mute); transition: transform 1s var(--ease), color .5s; cursor: pointer; }
.ab-step.on { color: var(--fg); }
.ab-pbody { position: absolute; left: calc(var(--m) + 2 * var(--step)); top: 624px; width: 330px; }
.ab-pbody p { position: absolute; left: 0; top: 0; width: 330px; font-size: 24px; line-height: 1.04; letter-spacing: -.012em; font-weight: 300; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .6s var(--ease-out); }
.ab-pbody p.on { opacity: 1; transform: none; transition-delay: .15s; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }

/* ---------- loader ---------- */
.is-loading .hd-name, .is-loading .hd-nav, .is-loading .hd-time, .is-loading .dial { opacity: 0; }
.hd-name, .hd-nav, .hd-time, .dial { transition: opacity .8s linear, transform .6s var(--ease); }

/* ---------- menu (pages as cards) ---------- */
.mn { position: fixed; inset: 0; z-index: 80; background-color: var(--olive); overflow: hidden; display: none; }
.mn::before { content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.mn.open { display: block; }
.mn-row { position: absolute; left: 0; top: 0; height: 100%; width: 100%; }
.mn-card { position: absolute; top: 12.5vh; width: 28.06vw; height: 75vh; overflow: hidden; background: var(--bg); color: var(--fg); cursor: pointer; transition: transform .7s var(--ease-out); }
.mn-card:hover { transform: translateY(-8px); }
.mn-in { position: absolute; left: 0; top: 0; width: 100vw; height: 100vh; transform-origin: 0 0; transform: scale(.75); pointer-events: none; overflow: hidden; }
.mini { position: relative; width: 100vw; height: 100vh; overflow: hidden; }
.mini .hd { position: absolute; }
.mini .v-about .ab-body, .mini .v-about .ab-vals, .mini .v-about .ab-proc { display: none; }
.mini .ab-hero { visibility: hidden; height: 0; padding: 0; }
.mini .mini-por { position: absolute; left: var(--m); top: 507px; width: calc(var(--col) * .75); height: 373px; }

/* ---------- contact ---------- */
.ct { position: fixed; inset: 0; z-index: 90; display: none; }
.ct.open { display: block; }
.ct-back { position: absolute; inset: 0; background: rgba(6, 8, 4, .72); }
.ct-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.ct-panel { position: relative; width: 69.75vw; margin: 100px auto 100px; padding: 24px 24px 80px; background: var(--panel); color: var(--panel-fg); }
.ct-panel::before { content: ""; position: absolute; inset: 0; opacity: .25; mix-blend-mode: multiply; pointer-events: none; background-image: inherit; }
.ct-tabs { display: flex; gap: 16px; font-size: 25px; line-height: 1.1; font-weight: 300; letter-spacing: -.01em; }
.ct-tabs > * { opacity: .75; }
.ct-tabs > .on { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ct-close { position: absolute; right: 24px; top: 24px; font-size: 10px; }
.ct-h { margin-top: 36px; font-size: 84px; line-height: .93; letter-spacing: -.035em; font-weight: 380; }
.ct-top { display: grid; grid-template-columns: 678px 1fr; height: 316px; }
.ct-note { padding-top: 136px; font-size: 16px; line-height: 1.2; font-weight: 350; }
.ct-note p + p { margin-top: 14px; }
.ct-form { margin-top: 0; border-top: 1px solid currentColor; display: grid; grid-template-columns: 380px 1fr; padding-top: 12px; font-size: 16px; line-height: 1.2; font-weight: 350; }
.ct-fl { padding-top: 0; }
.ct-fr { border-top: 0; }
.ct-row { display: grid; grid-template-columns: 298px 1fr; padding: 0 0 40px; border-bottom: 1px solid currentColor; margin-bottom: 12px; }
.ct-row label.k { display: flex; gap: 8px; }
.ct-opts label { display: flex; align-items: center; gap: 12px; height: 26px; margin-top: -5px; cursor: pointer; }
.ct-opts input { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; border: 1px solid currentColor; margin: 0; }
.ct-opts input:checked { background: currentColor; }
.ct-row input[type=text], .ct-row input[type=email], .ct-row textarea { font: inherit; color: inherit; background: none; border: 0; width: 100%; outline: none; resize: none; }
.ct-row ::placeholder { color: currentColor; opacity: .55; }
.ct-send { display: grid; grid-template-columns: 298px 1fr; padding-top: 48px; }
.ct-send button { font-family: "Inter Tight", sans-serif; font-size: 24px; line-height: 1.2; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.ct-msg { margin-top: 10px; }

/* ---------- phone (reference's own 390 layout) ---------- */
@media (max-width: 767px) {
  :root { --m: 8px; --step: calc((100vw - 8px) / 1.2); --col: calc(var(--step) - 8px); }
  .hd { height: 70px; }
  .hd > * { top: 8px; }
  .hd-sig, .hd-time { display: none; }
  .hd-nav { left: 135px; flex-direction: row; gap: 0; }
  .hd-nav button:nth-child(2) { position: absolute; left: 128px; }
  .dial { top: 8px; right: 8px; width: 58px; height: 58px; }
  .row { bottom: 8px; height: calc(var(--col) * 1.25 + 15px); }
  .card-l { height: 15px; }
  .c-hero { height: auto; min-height: 100svh; padding-top: 104px; display: flex; flex-direction: column; }
  .c-left { flex: 1; display: flex; flex-direction: column; }
  .c-meta { margin-top: auto; padding-bottom: 16px; }
  .c-img { order: -1; }
  .c-img { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 0 var(--m); height: 466px; }
  .c-left { position: relative; left: auto; right: auto; bottom: auto; padding: 26px var(--m) 0; }
  .c-title { font-size: 48px; margin-bottom: 28px; }
  .c-meta > div { width: 50%; }
  .c-intro { padding: 64px var(--m) 0; }
  .c-intro p { font-size: 24px; line-height: 1.07; }
  .blk { margin-top: 96px; padding: 0 var(--m); }
  .m-wide { height: 249px; }
  .m-row, .m-trio { flex-direction: column; gap: 24px; }
  .m-row > .m-cell { width: 100%; }
  .m-row > .m-cell .ph, .m-por { width: 100%; }
  .txt { display: block; }
  .txt > .txt-l { margin-bottom: 20px; }
  .b24, .txt-r p, .txt-r li, .h24, .ab-v .box p { font-size: 20px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 48px; }
  .rows > li { grid-template-columns: 1fr; gap: 6px; }
  .c-next { height: 70vh; margin-top: 120px; }
  .c-next-t { font-size: 44px; }
  .c-next-img { left: auto; right: var(--m); bottom: 70px; width: 100px; height: 115px; }
  .a-title { top: 108px; font-size: 54px; left: var(--m); }
  .v-arch { height: auto; min-height: 100vh; }
  .a-note { position: absolute; left: var(--m); top: 205px; }
  .a-strip { position: relative; left: auto; bottom: auto; height: auto; flex-direction: column; align-items: flex-end; padding: 360px var(--m) 40px 135px; transform: none !important; cursor: auto; }
  .a-item, .a-item.open { width: 100%; height: auto; aspect-ratio: var(--r); }
  .ab-hero { padding-top: 92px; font-size: 52px; line-height: .98; padding-right: 8px; }
  .ab-body { display: block; margin-top: 150px; }
  .ab-stick { position: relative; top: auto; width: 245px; margin-left: auto; margin-bottom: 64px; }
  .ab-text section + section { margin-top: 64px; }
  .ab-vals { margin-top: 80px; }
  .ab-vh { margin-left: 0; font-size: 44px; line-height: .95; }
  .ab-vrow { flex-direction: column; gap: 40px; margin-top: 56px; }
  .ab-v, .ab-v .box { width: 100%; }
  .ab-v .box { height: auto; aspect-ratio: .8; }
  .ab-proc { margin-top: 120px; }
  .ab-pin { top: 0; height: 100vh; }
  .ab-ph { padding-top: 90px; font-size: 40px; line-height: .95; }
  .ab-steps { top: 330px; }
  .ab-step { font-size: 16px; }
  .ab-pbody { left: var(--m); top: 400px; width: calc(100vw - 16px); }
  .ab-pbody p { width: 100%; font-size: 20px; }
  .mn-card { width: 62vw; height: 66vh; top: 17vh; }
  .mn-in { transform: scale(.62); }
  .ct-panel { width: calc(100vw - 16px); margin-top: 80px; }
  .ct-h { font-size: 52px; margin-top: 28px; }
  .ct-note { padding-top: 24px; }
  .ct-top { grid-template-columns: 1fr; height: auto; padding-bottom: 24px; }
  .ct-form { grid-template-columns: 1fr; }
  .ct-fl { display: none; }
  .ct-row, .ct-send { grid-template-columns: 100px 1fr; }
}

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