/* Dikshant Meshram — portfolio. Minimal, ink-on-paper. */
:root {
  --ink: #0A0A0A;
  --paper: #F4F3EF;
  --muted: #6B6A66;
  --muted-dark: #8E8D88;
  --line: #D6D4CC;
  --white: #FFFFFF;
  --green: #22C55E;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label.ink { color: var(--ink); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10000; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 100px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-weight: 600; letter-spacing: -0.02em; text-decoration: none; font-size: 17px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.nav-links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 100px;
  font: 500 15px/1.2 var(--sans); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: transform .2s ease, opacity .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .88; }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--paper); opacity: 1; }
.btn.light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn.lg { padding: 16px 28px; font-size: 16px; font-weight: 600; }
.btn svg { width: 14px; height: 14px; flex: none; }
.text-link { font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border: 1px solid var(--ink); border-radius: 100px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.display {
  margin: 28px 0 0;
  font-size: clamp(56px, 12.4vw, 184px);
  line-height: .9; letter-spacing: -0.055em; font-weight: 600;
}
.display .soft { color: var(--muted-dark); font-weight: 400; }
.hero-meta {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
  border-top: 1px solid var(--ink); padding-top: 20px;
}
.hero-meta p { margin: 6px 0 0; font-size: 16px; }
.lead { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; letter-spacing: -0.015em; margin: 0; }
.hero-ctas { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; margin-bottom: clamp(36px, 5vw, 64px); align-items: end; padding-bottom: clamp(20px, 2.5vw, 32px); border-bottom: 1px solid var(--ink); }
.section-head .h2 { font-size: clamp(44px, 7vw, 112px); line-height: .92; letter-spacing: -0.055em; }
.section-head .sub { color: var(--muted); max-width: 520px; justify-self: end; text-align: right; }
.h2 { margin: 0; font-size: clamp(36px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
.body { color: var(--muted); margin: 0; }
.body.ink { color: var(--ink); }

/* About strip (home) */
.about-grid { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 6px; }
.about-copy .lead + .lead { margin-top: 20px; }
.about-copy .text-link { display: inline-block; margin-top: 28px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-row {
  display: grid; grid-template-columns: 140px 28px 1fr; gap: 0 20px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.tl-row:first-child { border-top: 0; padding-top: 4px; }
.tl-row:last-child { border-bottom: 1px solid var(--line); }
.tl-year { font-family: var(--mono); font-size: 14px; letter-spacing: .04em; padding-top: 5px; }
.tl-rail { position: relative; }
.tl-rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: -29px; width: 1px; background: var(--line); transform: translateX(-50%); }
.tl-row:last-child .tl-rail::before { bottom: 0; }
.tl-dot { position: relative; display: block; width: 11px; height: 11px; margin: 9px auto 0; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); }
.tl-row.now .tl-dot { background: var(--ink); }
.tl-items { display: grid; gap: 22px; }
.tl-item h3 { margin: 0; font-size: clamp(19px, 1.7vw, 23px); letter-spacing: -0.02em; font-weight: 600; line-height: 1.25; }
.tl-item h3 span { font-weight: 400; color: var(--muted); }
.tl-item p { margin: 6px 0 0; color: var(--muted); max-width: 760px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); background: rgba(255,255,255,.5); }
.tl-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; }

/* ---------- Impact band ---------- */
.band { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 112px) 0; }
.band .label { color: var(--muted-dark); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
.stat { padding: 0 24px 0 0; border-left: 1px solid #2A2A2A; padding-left: 24px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(48px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; }
.stat span { display: block; margin-top: 14px; color: var(--muted-dark); font-size: 15px; max-width: 240px; }

/* ---------- Toolkit ---------- */
.toolkit { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.tk { padding: 22px 20px 0 0; }
.tk + .tk { padding-left: 20px; border-left: 1px solid var(--line); }
.tk ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.tk li { font-size: 16px; }

/* ---------- Contact block ---------- */
.contact-big { font-size: clamp(40px, 7.6vw, 120px); line-height: .95; letter-spacing: -0.05em; font-weight: 600; margin: 0; }
.contact-list { margin-top: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--ink); padding-top: 20px; }
.contact-list a { display: inline-block; margin-top: 8px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: -0.015em; text-decoration: none; border-bottom: 1px solid var(--line); word-break: break-word; }
.contact-list a:hover { border-bottom-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { padding: 28px 0 40px; border-top: 1px solid var(--line); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-links a:hover { border-bottom-color: var(--ink); }

/* ---------- Page header ---------- */
.page-head { padding: clamp(48px, 8vw, 112px) 0 clamp(40px, 6vw, 72px); }
.page-head .display { margin-top: 18px; font-size: clamp(56px, 11vw, 168px); }
.page-head .lead { margin-top: 28px; max-width: 760px; color: var(--muted); }

/* ---------- Projects ---------- */
.projects { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.proj {
  display: grid; grid-template-columns: 72px 1.25fr 1.6fr 110px; gap: 24px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start;
  transition: background .2s ease;
}
.proj:hover { background: rgba(255,255,255,.45); }
.proj .num { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; }
.proj h2 { margin: 0; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -0.035em; line-height: 1.1; font-weight: 600; }
.proj .kind { margin-top: 6px; font-size: 15px; color: var(--muted); }
.proj p { margin: 0; color: var(--ink); }
.proj ul.points { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; display: grid; gap: 4px; }
.proj .year { font-family: var(--mono); font-size: 13px; text-align: right; padding-top: 6px; }
.proj .badge { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; background: var(--ink); color: var(--paper); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 500 14px/1 var(--sans); padding: 9px 15px; border-radius: 100px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.filter:hover { background: rgba(10,10,10,.06); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-count { margin: -12px 0 20px; }
.cta-band { background: var(--ink); color: var(--paper); border-radius: 6px; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 28px; margin: clamp(56px, 8vw, 96px) 0; }
.cta-band .h2 { color: var(--paper); }
.cta-band p { color: var(--muted-dark); margin: 14px 0 0; max-width: 520px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- About page ---------- */
.story { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.story .lead + .lead { margin-top: 22px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.principle { padding: 24px 24px 0 0; }
.principle + .principle { padding-left: 24px; border-left: 1px solid var(--line); }
.principle .label { color: var(--ink); font-size: 13px; }
.principle .h3 { margin-top: 14px; font-size: clamp(24px, 2.4vw, 32px); }
.principle p { font-size: 17px; }
.principle p { margin: 12px 0 0; color: var(--muted); line-height: 1.5; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #E6E4DD; }
.card img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 3 / 4; transition: transform .6s ease; }
.card:hover img { transform: scale(1.03); }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(10,10,10,.72), rgba(10,10,10,0));
  color: var(--paper);
}
.card figcaption b { display: block; font-size: 22px; letter-spacing: -0.02em; }
.card figcaption span { display: block; margin-top: 4px; font-size: 15px; opacity: .92; line-height: 1.4; }
.card.wide { grid-column: span 2; }
.card.wide img { aspect-ratio: 3 / 2; }
.card.full { grid-column: 1 / -1; }
.card.full img { aspect-ratio: 2.4 / 1; }
.card.gg { background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 22px; aspect-ratio: 3 / 4; }
.card.gg .big { font-size: clamp(64px, 8vw, 120px); line-height: .9; letter-spacing: -0.06em; font-weight: 600; }
.card.gg b { display: block; font-size: 19px; letter-spacing: -0.02em; }
.card.gg span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted-dark); line-height: 1.4; }
.card.gg .label { color: var(--muted-dark); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.fact { padding: 22px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact h3 { margin: 12px 0 0; font-size: 20px; letter-spacing: -0.02em; font-weight: 600; line-height: 1.3; }
.fact p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.info-block { padding: 18px 0; border-top: 1px solid var(--line); }
.info-block:first-child { border-top: 1px solid var(--ink); }
.info-block a { display: inline-block; margin-top: 6px; font-size: 19px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); word-break: break-word; }
.info-block a:hover { border-bottom-color: var(--ink); }
.info-block p { margin: 6px 0 0; font-size: 19px; font-weight: 500; }

.form { display: grid; gap: 28px; position: relative; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 10px 0 12px; color: var(--ink); outline: none;
  font: 500 clamp(18px, 1.7vw, 22px)/1.3 var(--sans); letter-spacing: -0.02em;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 2px center; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-width: 2px; padding-bottom: 11px; }
.field input::placeholder, .field textarea::placeholder { color: #A9A7A0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.form-error { color: #B42318; font-size: 15px; }
.form-done { padding: 32px 0; border-top: 1px solid var(--ink); font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; font-weight: 500; }
.form-done p { margin: 10px 0 0; font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
button[disabled] { opacity: .55; cursor: wait; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(10,10,10,.25); transition: transform .2s ease;
}
.chat-fab:hover { transform: scale(1.05); }
.chat-fab .ping { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--paper); }
.chat-fab[aria-expanded="true"] .ping { display: none; }
.chat-panel {
  position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: calc(max(24px, env(safe-area-inset-bottom)) + 72px); z-index: 9999;
  width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100dvh - 120px));
  background: var(--paper); border: 1px solid var(--ink); border-radius: 18px;
  box-shadow: 0 18px 48px rgba(10,10,10,.18);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: pop .18s ease;
}
.chat-panel[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--ink); color: var(--paper); }
.chat-head .t { display: flex; align-items: center; gap: 10px; }
.chat-head .t b { display: block; font-size: 15px; letter-spacing: -0.01em; }
.chat-head .t small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.chat-head .s { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.chat-x { background: transparent; border: 0; color: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px; }
.chat-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.msg.user { align-items: flex-end; }
.bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: var(--white); border: 1px solid var(--line); font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.msg.user .bubble { background: var(--ink); color: var(--paper); border: 0; border-radius: 14px 14px 4px 14px; }
.msg .src { max-width: 86%; font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.msg .links { display: flex; flex-wrap: wrap; gap: 10px; }
.msg .links a { font-size: 13px; font-weight: 600; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chip { font: 400 12.5px/1.2 var(--sans); padding: 6px 11px; border-radius: 100px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--ink); color: var(--paper); }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; font: 14px var(--sans); padding: 10px 12px; border-radius: 100px; border: 1px solid var(--line); background: var(--white); color: var(--ink); outline: none; }
.chat-input input:focus { border-color: var(--ink); }
.chat-send { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .toolkit { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .tk:nth-child(4) { padding-left: 0; border-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .card.full { grid-column: 1 / -1; }
  .proj { grid-template-columns: 56px 1fr 90px; }
  .proj .desc { grid-column: 2 / 4; }
  .proj .year { grid-row: 1; grid-column: 3; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .nav-links a.hide-sm { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .hero-meta > :first-child { grid-column: 1 / -1; }
  .section-head, .about-grid, .story, .contact-grid { grid-template-columns: 1fr; }
  .section-head .sub { justify-self: start; text-align: left; }
  .about-grid .portrait, .story .portrait { max-width: 340px; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .toolkit { grid-template-columns: 1fr 1fr; }
  .tk, .tk + .tk { padding-left: 0; border-left: 0; padding-right: 12px; }
  .contact-list, .principles, .facts { grid-template-columns: 1fr; }
  .principle + .principle, .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; }
  .tl-row { grid-template-columns: 22px 1fr; }
  .tl-year { grid-column: 2; padding: 0 0 10px; }
  .tl-rail { grid-row: 1 / span 2; grid-column: 1; }
  .tl-items { grid-column: 2; }
  .form .row { grid-template-columns: 1fr; }
  .card.wide { grid-column: 1 / -1; }
  .card.full img { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .nav .wrap { height: 60px; }
  .nav-links { gap: 14px; }
  .nav-links a:not(.btn) { font-size: 14px; }
  .nav .btn { padding: 8px 13px; font-size: 14px; }
  .brand .full { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .card img, .card.gg { aspect-ratio: 4 / 5; }
  .proj { grid-template-columns: 1fr; gap: 10px; }
  .proj .num, .proj .year { text-align: left; padding: 0; }
  .proj .desc { grid-column: auto; }
  .proj .year { grid-row: auto; grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .chat-panel { right: 16px; width: calc(100vw - 32px); }
}
@media (min-width: 561px) { .brand .short { display: none; } }
