/* designbypranjal.com, merged version.
   One family (Archivo, variable width + weight), one accent (magenta).
   The architectural details (dimension line, title block, plan drawing)
   come from Pranjal's training as an architect. */

:root {
  --paper: #ffffff;
  --ink: #171a2b;
  --graphite: #5b6173;
  --rule: #e3e5eb;
  --surface: #f2f3f6;
  --magenta: #d40a72;
  --magenta-tint: #fce8f2;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--magenta-tint); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; min-height: 72px; padding-block: 12px; }
.wordmark { font-stretch: 125%; font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav ul { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-size: 0.975rem; color: var(--graphite); padding-block: 6px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--magenta); }

/* ---------- Type ---------- */
.display { font-size: clamp(3.1rem, 10.4vw, 9rem); font-stretch: 125%; font-weight: 680; letter-spacing: -0.045em; line-height: 0.9; margin: 0; }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.625rem); font-stretch: 116%; font-weight: 640; letter-spacing: -0.022em; line-height: 1.08; margin: 0; }
.lede { font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.42; margin: 0; }
.muted { color: var(--graphite); }
.text-link { font-weight: 560; text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.text-link:hover { color: var(--magenta); }
.kicker { color: var(--magenta); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 14px; }

/* ---------- Home: hero ---------- */
.hero { padding-block: clamp(56px, 10vw, 136px) 0; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 4vw, 52px); }
.hero-grid .lede { grid-column: 1 / span 8; max-width: 33em; }
.now { grid-column: 10 / span 3; align-self: end; font-size: 0.95rem; line-height: 1.55; color: var(--graphite); }
.now p { margin: 0 0 12px; }
.now ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.now a { color: var(--ink); }

/* ---------- Dimension line (the signature element) ---------- */
.dim { margin: clamp(56px, 8vw, 104px) 0 0; }
.dim-values { display: flex; justify-content: space-between; align-items: flex-end; font-stretch: 120%; font-weight: 640; font-size: clamp(1.9rem, 4.6vw, 3.5rem); letter-spacing: -0.025em; line-height: 1; font-variant-numeric: lining-nums; }
.dim-b { color: var(--magenta); }
.dim-draw { position: relative; height: 48px; margin-top: 12px; }
.dim-draw::before, .dim-draw::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink); }
.dim-draw::before { left: 0; }
.dim-draw::after { right: 0; }
.dim-line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--ink); transform-origin: left center; }
.tick { position: absolute; top: 50%; width: 18px; height: 2px; background: var(--ink); transform: translate(-50%, -50%) rotate(-45deg); }
.tick-a { left: 0; }
.tick-b { left: 100%; }
.dim-span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper); padding: 0 14px; font-size: 0.95rem; color: var(--graphite); white-space: nowrap; }
.dim figcaption { margin-top: 16px; color: var(--graphite); font-size: 0.95rem; max-width: 62ch; }
@media (prefers-reduced-motion: no-preference) {
  .dim-line { animation: dim-draw 1.25s cubic-bezier(.65, 0, .15, 1) .35s both; }
}
@keyframes dim-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.facts { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; }
.facts li { border-top: 1px solid var(--rule); padding-top: 14px; }
.facts strong { display: block; font-stretch: 116%; font-weight: 640; font-size: 1.625rem; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.facts span { display: block; margin-top: 6px; color: var(--graphite); font-size: 0.95rem; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-rule { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { grid-column: 1 / span 6; }
.section-head p { grid-column: 8 / span 5; margin: 0; color: var(--graphite); }

/* ---------- Selected work ---------- */
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(64px, 8vw, 112px); }
.work-item { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.work-media { grid-column: 1 / span 7; display: block; aspect-ratio: 16 / 10; background: var(--surface); border-radius: 4px; overflow: hidden; }
.work-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.work-media svg { width: 100%; height: 100%; }
.work-body { grid-column: 9 / span 4; }
.work-meta { color: var(--graphite); font-size: 0.95rem; margin: 0 0 10px; }
.work-title { font-size: clamp(1.5rem, 2.3vw, 2rem); font-stretch: 112%; font-weight: 640; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 14px; }
.work-title a { text-decoration: none; }
.work-title a:hover { color: var(--magenta); }
.work-summary { margin: 0 0 20px; }
.work-outcome { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--rule); }
.work-outcome li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; line-height: 1.45; }
.role-tag { display: inline-block; font-size: 0.85rem; font-weight: 560; padding: 3px 10px; border: 1px solid var(--ink); border-radius: 999px; margin: 0 0 12px; }

/* ---------- Card grid (more case studies, earlier work) ---------- */
.archive { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 48px 24px; }
.archive.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.archive a { text-decoration: none; display: block; }
.archive img { width: 100%; aspect-ratio: 940 / 500; object-fit: cover; object-position: left top; border-radius: 4px; background: var(--surface); }
.archive h3 { font-size: 1.125rem; font-stretch: 108%; font-weight: 620; line-height: 1.3; margin: 16px 0 4px; }
.archive a:hover h3 { color: var(--magenta); }
.archive p { margin: 0; color: var(--graphite); font-size: 0.95rem; line-height: 1.5; }
.archive .out { color: var(--ink); margin-top: 8px; }

/* Writing list */
.posts { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.posts li { border-bottom: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding: 24px 0; text-decoration: none; }
.posts .when { grid-column: 1 / span 3; color: var(--graphite); font-size: 0.95rem; }
.posts .t { grid-column: 4 / span 9; }
.posts h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); font-stretch: 112%; font-weight: 640; line-height: 1.2; letter-spacing: -0.01em; }
.posts p { margin: 6px 0 0; color: var(--graphite); }
.posts a:hover h3 { color: var(--magenta); }

/* ---------- Footer / contact ---------- */
.site-footer { background: var(--ink); color: #c9ccd6; padding-block: clamp(64px, 9vw, 120px) 32px; }
.site-footer .h2 { color: var(--paper); }
.site-footer .contact-copy { max-width: 52ch; margin: 18px 0 0; }
.contact-mail { display: inline-block; margin-top: clamp(28px, 4vw, 44px); font-size: clamp(1.5rem, 4.6vw, 3.5rem); font-stretch: 118%; font-weight: 620; letter-spacing: -0.025em; line-height: 1.15; color: var(--paper); text-decoration: none; border-bottom: 3px solid var(--magenta); overflow-wrap: anywhere; }
.contact-mail:hover { color: #ffd2e8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 32px 0 0; padding: 0; }
.footer-links a { color: var(--paper); text-underline-offset: 4px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(56px, 8vw, 104px); padding-top: 20px; border-top: 1px solid #2c3046; font-size: 0.875rem; color: #9a9fb0; }

/* ---------- Case study ---------- */
.cs-head { padding-block: clamp(36px, 6vw, 80px) clamp(36px, 5vw, 56px); }
.back { color: var(--graphite); text-decoration: none; font-size: 0.95rem; }
.back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cs-kicker { color: var(--graphite); margin: clamp(28px, 4vw, 44px) 0 0; font-size: 1rem; }
.cs-title { font-size: clamp(2.3rem, 5.6vw, 4.75rem); font-stretch: 120%; font-weight: 660; letter-spacing: -0.032em; line-height: 0.98; margin: 10px 0 0; max-width: 17ch; }
.cs-lede { max-width: 36em; margin-top: clamp(24px, 3vw, 36px); }

/* Title block: the box in the corner of an architectural drawing */
.titleblock { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1.5px solid var(--ink); overflow: hidden; margin: clamp(36px, 5vw, 56px) 0 0; }
.titleblock div { padding: 14px 16px 16px; box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); }
.titleblock dt { font-size: 0.8125rem; color: var(--graphite); margin: 0 0 4px; }
.titleblock dd { margin: 0; font-size: 0.975rem; font-weight: 520; line-height: 1.4; }

.cs-hero { margin: 0; }
.cs-hero .frame { padding: 0; overflow: hidden; }
.cs-hero img { width: 100%; }

.cs-section { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 24px; padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--rule); }
.cs-section:first-of-type { border-top: 0; }
.cs-section > .h2 { grid-column: 1 / span 4; font-size: clamp(1.55rem, 2.4vw, 2.1rem); padding-right: 12px; }
.cs-section > .prose { grid-column: 5 / span 8; }
.cs-section > .full { grid-column: 1 / -1; margin-top: clamp(36px, 5vw, 56px); }
.cs-section > .prose-wide { grid-column: 5 / span 8; margin-top: clamp(32px, 4vw, 48px); }

.prose { max-width: 68ch; }
.prose > :last-child { margin-bottom: 0; }
.prose h3 { font-size: 1.1875rem; font-stretch: 108%; font-weight: 640; line-height: 1.3; margin: 2em 0 0.5em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--magenta); }
.prose strong { font-weight: 620; }

.pull { margin: 1.6em 0; padding-left: 20px; border-left: 3px solid var(--magenta); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.38; font-stretch: 104%; }
.pull p { margin: 0; }
.pull cite { display: block; margin-top: 8px; font-style: normal; font-size: 0.95rem; color: var(--graphite); }

.quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.quotes li { border-top: 1.5px solid var(--ink); padding-top: 14px; }
.quotes q { display: block; font-size: 1.1rem; line-height: 1.45; quotes: "\201C" "\201D"; }
.quotes span { display: block; margin-top: 8px; color: var(--graphite); font-size: 0.9rem; }

/* Figures */
.fig { margin: 0; }
.frame { display: flex; justify-content: center; align-items: center; background: var(--surface); border-radius: 4px; padding: clamp(14px, 3vw, 40px); }
.frame img { border-radius: 2px; box-shadow: 0 0 0 1px rgba(23, 26, 43, 0.06); }
.fig figcaption { margin-top: 12px; color: var(--graphite); font-size: 0.9rem; line-height: 1.5; max-width: 64ch; }
.fig-grid { display: grid; gap: clamp(24px, 3vw, 40px) 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fig-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fig-grid .frame { height: 100%; }
.fig-grid .fig { display: flex; flex-direction: column; }
.fig-grid .fig > .frame { flex: 1; }
.span-2 { grid-column: span 2; }

/* Process steps: a real sequence, so numbered */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { counter-increment: step; border-top: 1.5px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; margin-bottom: 8px; font-stretch: 116%; font-weight: 660; font-size: 1.25rem; color: var(--magenta); }
.steps h3 { font-size: 1.0625rem; font-stretch: 106%; font-weight: 640; margin: 0 0 6px; line-height: 1.3; }
.steps p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: var(--graphite); }
.steps .when { display: block; font-size: 0.875rem; color: var(--graphite); margin-bottom: 4px; }
.steps li.later { border-top-style: dashed; }
.steps li.later::before { color: var(--graphite); }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.principles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.principles h3 { font-size: 1.1875rem; font-stretch: 108%; font-weight: 640; margin: 0 0 8px; line-height: 1.3; }
.principles p { margin: 0; }
.principles .label { display: block; font-size: 0.85rem; color: var(--magenta); font-weight: 600; margin-bottom: 4px; }

/* Playbook stack (Foundation for AI) */
.stack-diagram { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 20px; align-items: center; }
.stack-diagram .blk { height: 34px; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper); }
.stack-diagram .blk.goal { background: var(--ink); }
.stack-diagram .lbl { font-size: 0.975rem; }
.stack-diagram .lbl.goal { font-weight: 640; }

/* Plan drawing (ServiceNow) */
.plan { font-family: var(--font); }
.plan .room { font-size: 19px; font-weight: 600; fill: var(--ink); font-stretch: 106%; }
.plan .note { font-size: 15px; fill: var(--graphite); }
.plan .accent { font-size: 16px; font-weight: 620; fill: var(--magenta); }

/* Placeholder for content still to add */
.todo { border: 1.5px dashed var(--magenta); background: var(--magenta-tint); border-radius: 4px; padding: 16px 18px; margin: 1em 0; font-size: 0.975rem; }

/* Original case studies (earlier work) */
.original { height: 640px; overflow-y: auto; background: var(--surface); border-radius: 4px; padding: 16px; }
.original img { width: 100%; border-radius: 2px; }
.earlier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 24px; }
.earlier > div { min-width: 0; scroll-margin-top: 24px; }
.earlier h2 { font-size: 1.5rem; font-stretch: 112%; font-weight: 640; margin: 0 0 4px; line-height: 1.2; }
.earlier p { margin: 0 0 14px; color: var(--graphite); font-size: 0.95rem; }

/* Next case study */
.next { border-top: 1px solid var(--rule); padding-block: clamp(56px, 8vw, 104px); }
.next a { display: block; text-decoration: none; }
.next .label { color: var(--graphite); font-size: 0.95rem; }
.next .title { display: block; margin-top: 8px; font-size: clamp(1.75rem, 4.4vw, 3.5rem); font-stretch: 120%; font-weight: 650; letter-spacing: -0.028em; line-height: 1.04; max-width: 20ch; }
.next a:hover .title { color: var(--magenta); }

/* ---------- About ---------- */
.about-intro { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 5vw, 64px); }
.about-intro .portrait { grid-column: 1 / span 3; }
.about-intro .portrait img { width: 144px; height: 144px; border-radius: 50%; object-fit: cover; }
.about-intro .prose { grid-column: 5 / span 8; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tl-years { color: var(--graphite); font-variant-numeric: tabular-nums; }
.tl-role { font-weight: 560; }
.tl-org { color: var(--graphite); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid .lede, .now { grid-column: 1 / -1; }
  .now { align-self: start; }
  .section-head .h2, .section-head p { grid-column: 1 / -1; }
  .work-media, .work-body { grid-column: 1 / -1; }
  .cs-section > .h2, .cs-section > .prose, .cs-section > .prose-wide { grid-column: 1 / -1; }
  .cs-section > .h2 { margin-bottom: 20px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fig-grid.three, .archive.three, .principles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-intro .portrait, .about-intro .prose { grid-column: 1 / -1; }
  .posts .when, .posts .t { grid-column: 1 / -1; }
  .earlier { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero .display { font-size: clamp(3.1rem, 16vw, 4.6rem); }
  .site-header .wrap { min-height: 0; padding-block: 16px 12px; }
  .nav ul { gap: 6px 18px; }
  .dim-draw { height: 40px; }
  .steps, .steps.three, .steps.five { grid-template-columns: 1fr; }
  .fig-grid, .fig-grid.three, .archive.three, .principles, .principles.three { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .posts a { gap: 4px; }
}
@media (max-width: 380px) { .titleblock { grid-template-columns: 1fr; } }
