/* Vinder Singh portfolio, v4
   Own system: neutral paper grey, ink, and one "teh tarik" orange used like a highlighter pen.
   Big Shoulders Display in sentence case for headings, Inter for everything else. */

:root {
  --bg: #efefec;
  --bg-2: #e4e4df;
  --paper: #fafaf8;
  --ink: #121212;
  --muted: #66665f;
  --line: #d2d1ca;
  --accent: #f2711c;
  --dark: #121212;
  --dark-2: #1e1e1d;
  --dark-line: #34342f;
  --dark-muted: #a3a29a;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 2.8vw, 44px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
main, .sec, footer { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

.display { font-family: var(--display); font-weight: 900; letter-spacing: -0.005em; line-height: 0.9; }
.dot { color: var(--accent); }
.accent { color: var(--accent); }
mark { background: none; color: inherit; position: relative; z-index: 0; white-space: nowrap; }
mark::before { content: ""; position: absolute; z-index: -1; left: -0.06em; right: -0.08em; top: 0.18em; bottom: 0.06em; background: var(--accent); transform: skewX(-6deg) rotate(-0.6deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero mark::before { transform-origin: left; animation: swipe .7s .35s cubic-bezier(.3,.7,.2,1) both; }
  @keyframes swipe { from { transform: skewX(-6deg) rotate(-0.6deg) scaleX(0); } to { transform: skewX(-6deg) rotate(-0.6deg) scaleX(1); } }
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: 16px var(--pad); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; text-decoration: none; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); font-size: 0.9375rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.status { margin-left: auto; font-size: 0.875rem; color: var(--muted); }
.status::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.nav-cv { font-size: 0.875rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9375rem; padding: 14px 20px; border-radius: 2px; transition: background .2s, color .2s; }
.btn span { transition: transform .25s; }
.btn:hover { background: var(--accent); color: var(--ink); }
.btn:hover span { transform: translateX(4px); }
.btn.light { background: var(--accent); color: var(--ink); }
.btn.light:hover { background: #fff; }
.link-u { font-weight: 600; font-size: 0.9375rem; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.link-u:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vh, 88px) var(--pad) clamp(48px, 7vh, 88px); }
.kicker { margin: 0 0 18px; color: var(--muted); font-size: 1rem; }
.hero-h { margin: 0; font-size: clamp(3.4rem, 9.4vw, 10.5rem); max-width: 12.5em; }
.hero-row { display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px clamp(24px, 3.5vw, 56px); align-items: start; margin-top: clamp(36px, 6vh, 64px); padding-top: clamp(24px, 3vh, 32px); border-top: 2px solid var(--ink); }
.portrait { margin: 0; aspect-ratio: 4 / 5; background: var(--dark-2); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }
.portrait.empty img { display: none; }
.hero-copy p { margin: 0 0 24px; font-size: 1.1875rem; line-height: 1.5; max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-quote { margin: 0; position: relative; padding-top: clamp(34px, 3.4vw, 46px); }
.hero-quote::before { content: "\201C"; position: absolute; top: -0.12em; left: -0.04em; font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 7vw, 7rem); line-height: 1; color: var(--accent); }
.hero-quote blockquote { margin: 0 0 14px; font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.02; letter-spacing: 0.005em; max-width: 14ch; }
.hero-quote figcaption { color: var(--muted); font-size: 0.875rem; }

/* ---------- skills strip + brands ---------- */
.strip { overflow: hidden; white-space: nowrap; background: var(--dark); color: #fff; padding: 16px 0; }
.track { display: inline-flex; width: max-content; }
.strip span { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 2.8vw, 2.5rem); line-height: 1; }
.strip span::after { content: "/"; color: var(--accent); margin: 0 0.7em; }
@media (prefers-reduced-motion: no-preference) {
  .track { animation: slide 50s linear infinite; }
  .strip:hover .track { animation-play-state: paused; }
  @keyframes slide { to { transform: translateX(-50%); } }
}
.brands { margin: 0; padding: 18px var(--pad); border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 600; }
.brands span { color: var(--muted); font-weight: 400; margin-right: 12px; }

/* ---------- sections ---------- */
.sec { padding: clamp(80px, 11vw, 150px) var(--pad) 0; }
.h2 { margin: 0; font-size: clamp(3rem, 6.6vw, 7rem); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 30px; }
.sec-head p, .pb-head p { margin: 0; color: var(--muted); max-width: 28rem; font-size: 1.0625rem; }

.filters { display: flex; gap: 0; margin-bottom: 26px; border: 1px solid var(--ink); width: max-content; max-width: 100%; }
.filters button { font: 600 0.875rem var(--sans); border: 0; border-right: 1px solid var(--ink); background: transparent; color: var(--ink); padding: 10px 16px; cursor: pointer; }
.filters button:last-child { border-right: 0; }
.filters button.on { background: var(--ink); color: #fff; }
.filters button:hover:not(.on) { background: var(--bg-2); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) 20px; }
.card.static { cursor: default; }
.card.static:hover .card-img img { transform: none; }
.card.static:hover h3 { text-decoration: none; }
.card { text-decoration: none; display: block; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--dark); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-img img { transform: scale(1.03); }
.card-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-top: 14px; }
.card-foot h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1; }
.card-foot p { margin: 6px 0 0; color: var(--muted); font-size: 0.9375rem; }
.card-foot p b { color: var(--ink); font-weight: 600; }
.go { font-size: 1.4rem; line-height: 1; transition: transform .25s, color .2s; }
.card:hover .go { transform: translateX(5px); color: var(--accent); }
.card:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.rows { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a, .row-static { display: grid; grid-template-columns: minmax(0, 1fr) 18rem 2rem; gap: 12px 24px; align-items: center; padding: 18px 0; text-decoration: none; }
.r-title { font-size: clamp(2rem, 4vw, 3.6rem); font-weight: 900; }
.r-meta { color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
.r-arr { font-size: 1.4rem; justify-self: end; transition: transform .25s; }
.rows a:hover .r-title { color: var(--accent); }
.rows a:hover .r-arr { transform: translateX(5px); }
.is-hidden { display: none !important; }

/* ---------- what I do ---------- */
.dark-sec { margin-top: clamp(80px, 11vw, 150px); background: var(--dark); color: #fff; padding: clamp(72px, 9vw, 130px) var(--pad); }
.what-left { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.what-left h2 { grid-row: span 2; }
.what-left p { color: var(--dark-muted); font-size: 1.0625rem; max-width: 26rem; margin: 0; }
.what-left .btn { justify-self: start; }
.acc { border-top: 2px solid #fff; }
.acc details { border-bottom: 1px solid var(--dark-line); }
.acc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .display { font-size: clamp(1.9rem, 3.4vw, 3rem); transition: color .2s; }
.acc summary:hover .display { color: var(--accent); }
.acc summary i { position: relative; width: 22px; height: 22px; }
.acc summary i::before, .acc summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: currentColor; }
.acc summary i::after { transform: rotate(90deg); transition: transform .25s; }
.acc details[open] summary i { color: var(--accent); }
.acc details[open] summary i::after { transform: rotate(0deg); }
.acc-body { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; padding: 0 0 30px; }
.acc-body > div:only-child { grid-column: 1 / -1; max-width: 46rem; }
.acc-body p { margin: 0 0 16px; color: #d4d3cc; font-size: 1.0625rem; }
.acc-body figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.acc-body figure img { width: 100%; height: 100%; object-fit: cover; }
.chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--dark-2); color: #e9e8e2; padding: 6px 11px; font-size: 0.8125rem; border-radius: 2px; }
.small-meta { color: var(--muted); font-size: 0.875rem; margin: 0; }
.dark-sec .small-meta { color: var(--dark-muted); }
.also { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; color: var(--dark-muted); font-size: 0.9375rem; }
.also a { font-weight: 600; color: #fff; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ---------- playbooks ---------- */
.pb-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.library { border-top: 2px solid var(--ink); }
.pb { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 12px 32px; padding: 20px 0; border-top: 1px solid var(--line); align-items: start; }
.library .pb:first-child { border-top: 0; }
.pb:last-child { border-bottom: 1px solid var(--line); }
.pb h3 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; }
.pb h3 a { text-decoration: none; }
.pb h3 a:hover { color: var(--accent); }
.pb h3 small { display: block; font-family: var(--sans); font-size: 0.8125rem; color: var(--muted); font-weight: 400; margin-top: 6px; line-height: 1.4; }
.phases { display: flex; gap: 8px; }
.phase { flex: var(--n) 1 0; min-width: 0; }
.ticks { display: flex; gap: 3px; height: 10px; }
.phase { --c: var(--ink); }
.phase:nth-child(1) { --c: #f2711c; }
.phase:nth-child(2) { --c: #d6a019; }
.phase:nth-child(3) { --c: #2f8f7f; }
.phase:nth-child(4) { --c: #3f56b0; }
.phase:last-child { --c: #121212; }
.ticks i { flex: 1; background: var(--c); border-radius: 5px; }
.phase .label { font-size: 0.8125rem; line-height: 1.25; margin-top: 8px; font-weight: 600; }
.phase .label span { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; font-weight: 400; }

/* ---------- about ---------- */
.about .h2 { margin-bottom: clamp(32px, 5vw, 60px); max-width: 14em; }
.about-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px clamp(24px, 3vw, 48px); align-items: start; }
.portrait.small { aspect-ratio: 4 / 5; }
.about-copy p { margin: 0 0 1em; font-size: 1.0625rem; }
.about-copy .lead { font-size: clamp(1.4rem, 2vw, 1.75rem); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.quotes { display: grid; gap: 16px; }
.quotes figure { margin: 0; background: var(--paper); padding: 24px; border-left: 4px solid var(--accent); }
.quotes blockquote { margin: 0 0 14px; font-size: 1.0625rem; line-height: 1.45; font-weight: 500; }
.quotes figcaption { color: var(--muted); font-size: 0.875rem; }

/* ---------- footer ---------- */
.foot-big { margin-top: clamp(90px, 12vw, 170px); background: var(--dark); color: #fff; padding: clamp(64px, 9vw, 120px) var(--pad) 28px; }
.foot-big h2 { margin: 0; font-size: clamp(2.5rem, 5vw, 5.8rem); line-height: .95; }
.foot-big h2 span { display: block; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: center; margin-top: clamp(32px, 4vw, 52px); }
.foot-row p { margin: 0; color: var(--dark-muted); max-width: 32rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: clamp(48px, 7vw, 96px); padding-top: 18px; border-top: 1px solid var(--dark-line); font-size: 0.9375rem; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
.foot-links span { margin-left: auto; color: var(--dark-muted); }

/* ---------- case study pages ---------- */
header.top { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px var(--pad); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
header.top .name { font-family: var(--display); font-weight: 900; font-size: 1.6rem; text-decoration: none; }
header.top .name::after { content: "."; color: var(--accent); }
header.top nav { display: flex; gap: 24px; font-size: .9375rem; font-weight: 500; }
header.top nav a { text-decoration: none; color: var(--muted); }
header.top nav a:hover { color: var(--ink); }
main.wrap { padding: 0; }
.case-head { padding: clamp(36px, 6vw, 80px) var(--pad) clamp(28px, 4vw, 48px); }
.case-head .back { font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.case-head .back::before { content: "← "; }
.case-head .back:hover { color: var(--ink); }
.case-head .kind { font-size: .9375rem; color: var(--muted); margin: 36px 0 12px; }
.case-head .kind b { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--accent); }
.case-head h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(3.2rem, 8.6vw, 9rem); line-height: .9; overflow-wrap: anywhere; }
.case-head .dek { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.38; margin: 24px 0 0; max-width: 36ch; font-weight: 500; letter-spacing: -0.01em; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; margin: 0 var(--pad); border-top: 2px solid var(--ink); padding-top: 16px; }
.facts-row dt { font-size: .8125rem; color: var(--muted); }
.facts-row dd { margin: 4px 0 0; font-weight: 600; }
.figure { margin: clamp(32px, 5vw, 64px) var(--pad) 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption { font-size: .875rem; color: var(--muted); margin-top: 10px; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0 56px; padding: 0 var(--pad); }
.case-body > section { display: contents; }
.case-body h2 { grid-column: 1; margin: 0; padding-top: clamp(48px, 6vw, 80px); font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: .95; }
.case-body .txt { grid-column: 2; padding-top: clamp(48px, 6vw, 80px); max-width: 40rem; font-size: 1.0625rem; line-height: 1.65; }
.case-body .txt p { margin: 0 0 1em; }
.case-body .txt h3 { font-size: 1.125rem; font-weight: 700; margin: 1.6em 0 .3em; }
.case-body .txt h3:first-child { margin-top: 0; }
.case-body .txt img { height: auto; }
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 1.2em; }
.numbers div { border-top: 2px solid var(--ink); padding-top: 10px; }
.numbers strong { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: .9; }
.numbers strong::after { content: ""; display: block; width: 28px; height: 4px; background: var(--accent); margin-top: 8px; }
.numbers span { font-size: .875rem; color: var(--muted); }
.flow { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: s; }
.flow li { counter-increment: s; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.flow li::before { content: counter(s); font-family: var(--display); font-weight: 900; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.flow li b { font-weight: 600; }
.flow li span { color: var(--muted); display: block; }
.next { margin: clamp(72px, 10vw, 140px) var(--pad) 0; border-top: 2px solid var(--ink); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.next a { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: .95; text-decoration: none; }
.next a:hover { color: var(--accent); }
.next a:first-child { font-family: var(--sans); font-size: .9375rem; font-weight: 600; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--pad); margin-top: 56px; background: var(--dark); color: var(--dark-muted); font-size: .875rem; }
.foot a { color: #fff; text-decoration: none; font-weight: 600; }
.todo { display: block; margin-top: 6px; background: #fff3c4; border-left: 3px solid #d9a300; padding: 12px 16px; font-size: .9375rem; }

/* live version callouts (case page) */
.live-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.live-note { color: var(--muted); font-size: .9375rem; display: inline-flex; align-items: center; gap: 8px; }
.live-note i, .live-badge i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.live-fig a { display: block; position: relative; }
.live-fig a:hover img { opacity: .93; }
.live-badge { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: .875rem; padding: 10px 14px; }
.inline-fig { margin: 28px 0 0; }
.inline-fig img { width: 100%; border: 1px solid var(--line); }
.inline-fig figcaption { color: var(--muted); font-size: .875rem; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-row { grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); }
  .hero-quote { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
  .quotes { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .status { display: none; }
  .nav-cv { margin-left: auto; }
  .hero-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .portrait { max-width: 300px; }
  .sec-head, .pb-head, .what-left, .case-body, .about-grid { grid-template-columns: minmax(0, 1fr); }
  .what-left h2 { grid-row: auto; }
  .case-body h2, .case-body .txt { grid-column: 1; }
  .case-body .txt { padding-top: 14px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rows a, .row-static { grid-template-columns: minmax(0, 1fr) 2rem; gap: 4px 12px; }
  .r-meta { grid-column: 1; grid-row: 2; }
  .r-arr { grid-column: 2; grid-row: 1; }
  .acc-body { grid-template-columns: minmax(0, 1fr); }
  .pb { grid-template-columns: minmax(0, 1fr); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-links span { margin-left: 0; }
  .portrait.small { max-width: 300px; }
}
@media (max-width: 520px) {
  .hero-h { font-size: clamp(3rem, 14.5vw, 5.4rem); }
  .phases { flex-direction: column; gap: 8px; }
  .phase { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 10px; align-items: center; }
  .phase .label { margin: 0; order: -1; }
  .phase .label span { display: inline; margin-left: 4px; }
  .ticks { max-width: calc(var(--n) * 24px); }
  .numbers { grid-template-columns: minmax(0, 1fr); }
}
