/* Ishaan Sachdeva — drafting-sheet portfolio (round 2) */
:root {
  --paper: #F2EEE3;
  --paper-2: #E8E2D1;
  --ink: #13233F;
  --muted: #4B5A73;
  --blue: #1D4B8F;
  --deep: #0F2C57;
  --steel: #16386B;
  --sky: #3F6FB5;
  --line: #9FB2CC;
  --red: #B43A22;
  --redlight: #FF9479;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --display: "Saira Extra Condensed", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(29, 75, 143, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 75, 143, .055) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.05; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.mono { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--ink); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-weight: 600; font-size: 1.25rem; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  background: var(--blue); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 1rem;
  box-shadow: inset 0 -3px 0 var(--red);
}
.nav-desk ul { display: flex; gap: .25rem; }
.nav-desk a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.nav-desk a:hover { color: var(--red); }
.nav-m { display: none; position: relative; }
.nav-m summary {
  list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 0 1rem;
  border: 1.5px solid var(--ink); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
}
.nav-m summary::-webkit-details-marker { display: none; }
.nav-m[open] summary { background: var(--ink); color: var(--paper); }
.nav-m nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(280px, 80vw);
  background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--red);
}
.nav-m a { display: flex; align-items: center; min-height: 48px; padding: 0 1.1rem; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.nav-m li:last-child a { border-bottom: 0; }
.nav-m a:hover { background: var(--paper-2); color: var(--red); }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end; }
.eyebrow { display: flex; align-items: center; gap: .8rem; color: var(--red); }
.eyebrow::before { content: ""; width: 56px; height: 9px; border: 1px solid var(--red); border-bottom: 0; flex: none; }
h1 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(4.25rem, 12.5vw, 10.5rem); line-height: .84; letter-spacing: -.005em;
  margin: .5rem 0 1.5rem; color: var(--ink);
}
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 36ch; margin-bottom: 2rem; }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0 1.25rem;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  font: 600 .95rem/1 var(--text); text-decoration: none;
}
.btn .mono { color: inherit; font-size: .65rem; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red); color: var(--paper); }
.btn:hover .mono { color: var(--paper); }

.photo { position: relative; margin: 0; isolation: isolate; justify-self: end; width: 100%; max-width: 420px; }
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border: 1.5px solid var(--ink); }
.photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid var(--red); z-index: -1; }
.photo figcaption { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; color: var(--ink); }
.photo figcaption::before, .photo figcaption::after { content: ""; flex: 1; height: 9px; border: 1px solid var(--ink); border-top: 0; }

.titleblock {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; border: 1.5px solid var(--ink); background: rgba(242, 238, 227, .7);
}
.titleblock > div { padding: 1rem 1.2rem 1.1rem; border-right: 1px solid var(--ink); }
.titleblock > div:last-child { border-right: 0; }
.titleblock dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.titleblock dd { margin: 0; font-weight: 500; line-height: 1.4; }

/* ---------- readouts band ---------- */
.band { background: var(--blue); color: var(--paper); padding: clamp(3rem, 7vw, 5rem) 0; position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(242, 238, 227, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 238, 227, .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.readout { padding: 0 clamp(1rem, 2.4vw, 2rem); border-left: 1px solid rgba(242, 238, 227, .32); }
.readout:first-child { border-left: 0; padding-left: 0; }
.readout::before { content: ""; display: block; height: 12px; margin-bottom: 1.1rem; border: 1.5px solid var(--redlight); border-bottom: 0; }
.value { font-family: var(--display); font-weight: 600; font-size: clamp(3.6rem, 8vw, 7rem); line-height: .9; margin: 0 0 .6rem; letter-spacing: -.01em; }
.label { margin: 0; font-size: .95rem; line-height: 1.45; color: #DCE5F2; max-width: 22ch; }

/* ---------- sections ---------- */
.section { padding: var(--sec) 0; }
.section-tint { background: var(--paper-2); background-image: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--gap); }
/* one header pattern for every section: rule, red marker, red number, then the heading on the same left edge */
.sec-label, .sec-head { border-top: 1px solid var(--ink); padding-top: 1.2rem; position: relative; }
.sec-label { position: sticky; top: 96px; align-self: start; }
.sec-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.sec-label::before, .sec-head::before { content: ""; position: absolute; left: 0; top: -6px; width: 12px; height: 12px; background: var(--red); }
.sec-label .mono, .sec-head .mono { color: var(--red); display: block; margin: 0 0 .6rem; }
h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(2.75rem, 6vw, 4.75rem); line-height: .9; letter-spacing: -.005em; }
.sec-note { margin: .9rem 0 0; color: var(--muted); max-width: 52ch; }
.prose { max-width: 68ch; }
.prose .lead { font-family: var(--display); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.22; margin-bottom: 1.6rem; text-transform: none; }
.prose p + p { margin-top: 1rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-weight: 600; }
.about-links a { display: inline-flex; align-items: center; min-height: 44px; }

.stack { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0 0; }
.stack li {
  font-size: .72rem; letter-spacing: .04em; text-transform: none; color: var(--ink); font-family: var(--mono);
  padding: .3rem .55rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .35);
}
.notes { margin: 1rem 0 0; }
.notes li { position: relative; padding-left: 1.25rem; margin-bottom: .55rem; font-size: .97rem; line-height: 1.55; }
.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--red); }
.links { margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-weight: 600; font-size: .95rem; }
.links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; }
.links .mono { font-size: .68rem; font-weight: 400; color: var(--muted); letter-spacing: .02em; text-transform: none; overflow-wrap: anywhere; }

/* ---------- project sheets ---------- */
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.sheet { position: relative; background: var(--paper); border: 1.5px solid var(--ink); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.sheet:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--red); }
.sheet-wide { grid-column: 1 / -1; flex-direction: row; }
.sheet-art { margin: 0; position: relative; border-bottom: 1.5px solid var(--ink); aspect-ratio: 16 / 10; overflow: hidden; background: var(--deep); }
.sheet-art svg { width: 100%; height: 100%; }
.sheet-wide .sheet-art { flex: 1.1 1 0; border-bottom: 0; border-right: 1.5px solid var(--ink); aspect-ratio: auto; min-height: 380px; }
.sheet-body { padding: clamp(1.25rem, 2.4vw, 1.9rem); display: flex; flex-direction: column; flex: 1 1 auto; }
.sheet-wide .sheet-body { flex: 1 1 0; padding: clamp(1.5rem, 3vw, 2.5rem); }
.kicker { color: var(--red); margin-bottom: .5rem; }
.sheet h3 { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.6rem); text-transform: uppercase; letter-spacing: .005em; margin-bottom: .75rem; line-height: .95; }
.sheet-wide h3 { font-size: clamp(2.6rem, 4.6vw, 3.6rem); }
.sheet-body > p:not(.kicker):not(.links) { font-size: .97rem; line-height: 1.6; margin: 0; }
.sheet .links { margin-top: auto; padding-top: 1rem; }
.sheet .stack { margin-top: 1rem; }

/* more sheets: compact index rows */
.more-h { display: flex; align-items: center; gap: 1rem; margin: clamp(3rem, 6vw, 4.5rem) 0 1.2rem; }
.more-h::after { content: ""; flex: 1; height: 1px; background: var(--ink); }
.more-h .mono { color: var(--ink); font-size: .8rem; }
.more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 2.5vw, 1.75rem); border-top: 1px solid var(--ink); }
.more { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.thumb { width: 120px; height: 90px; border: 1px solid var(--ink); }
.more h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.6rem; line-height: 1; margin-bottom: .45rem; overflow-wrap: anywhere; }
.more p { font-size: .93rem; line-height: 1.55; margin-bottom: .4rem; }
.more .links { margin-top: .2rem; font-size: .9rem; }

/* ---------- experience ---------- */
.revisions { border-top: 1px solid var(--ink); }
.rev { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: var(--gap); padding: clamp(2rem, 4vw, 3rem) 0; border-bottom: 1px solid var(--line); position: relative; }
.rev::before { content: ""; position: absolute; left: 0; top: clamp(2.2rem, 4.2vw, 3.2rem); width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.rev-meta { padding-left: 1.6rem; }
.dates { color: var(--ink); font-weight: 500; margin-bottom: .35rem; }
.rev-meta .mono:not(.dates) { margin-bottom: 1.2rem; }
.logo { width: auto; max-width: 180px; height: 56px; object-fit: contain; object-position: left center; margin-top: .4rem; }
.rev-body h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 2.75rem); line-height: .95; }
.company { font-weight: 600; margin: .45rem 0 .9rem; color: var(--blue); }
.rev-body > p:not(.company):not(.earlier) { max-width: 68ch; }
.rev-body .notes { max-width: 74ch; }
.earlier { margin-top: 1.2rem; color: var(--muted); }

/* ---------- skills bento: a 12-column grid, gaps drawn as 1px rules ---------- */
.schedule { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; border: 1.5px solid var(--ink); background: var(--ink); }
.group { grid-column: span 4; padding: 1.4rem 1.3rem 1.5rem; background: var(--paper); position: relative; }
.group:nth-child(3) { order: 4; grid-column: span 6; }
.group:nth-child(4) { order: 3; }
.group:nth-child(5) { grid-column: span 6; order: 5; }
.group > h3 { color: var(--ink); font-size: .74rem; padding-top: 12px; position: relative; margin-bottom: 1rem; line-height: 1.4; }
.group > h3::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px; border: 1px solid var(--red); border-bottom: 0; }
.group ul li { font-size: .93rem; line-height: 1.4; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.group ul li:last-child { border-bottom: 0; }
.group:nth-child(3) ul, .group:nth-child(5) ul { columns: 2; column-gap: 1.5rem; }
.group:nth-child(3) ul li, .group:nth-child(5) ul li { break-inside: avoid; }

/* ---------- education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.edu { border: 1.5px solid var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--paper); position: relative; }
.edu .dates { margin-bottom: 1rem; }
.edu h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: .95; margin-bottom: .5rem; }
.edu .company { margin-top: 0; }
.edu .notes { margin-top: .9rem; }
.tag { display: inline-block; margin: 0 0 1rem; padding: .35rem .7rem; background: var(--red); color: var(--paper); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- contact ---------- */
.contact { background: var(--deep); color: var(--paper); position: relative; overflow: hidden; border-top: 1px solid var(--ink); }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(242, 238, 227, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 238, 227, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.contact .sec-head { border-top-color: rgba(242, 238, 227, .5); }
.contact .sec-head::before { background: var(--redlight); }
.contact .mono { color: var(--redlight); }
.contact h2 { color: var(--paper); margin-bottom: 1.2rem; }
.contact .lead { font-family: var(--text); font-weight: 400; font-size: 1.15rem; line-height: 1.6; text-transform: none; max-width: 40ch; color: #DCE5F2; margin: 0; }
.contact-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: start; }
.contact-list { border-top: 1px solid rgba(242, 238, 227, .35); }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; border-bottom: 1px solid rgba(242, 238, 227, .35); }
.contact-list li > span { padding: .9rem 0; }
.contact-list li > span.mono { color: rgba(242, 238, 227, .75); }
.contact-list a { display: flex; align-items: center; min-height: 52px; padding: .9rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--paper); text-decoration: none; overflow-wrap: anywhere; line-height: 1.1; }
.contact-list a:hover { color: var(--redlight); text-decoration: underline; text-decoration-thickness: 2px; }
.contact :focus-visible { outline-color: var(--redlight); }

/* ---------- footer ---------- */
.site-footer { border-top: 1.5px solid var(--ink); background: var(--paper); }
.titleblock-foot { display: grid; grid-template-columns: 1fr 2fr 1fr auto; gap: 1rem; align-items: center; min-height: 72px; padding-top: 1.2rem; padding-bottom: 1.2rem; }
.titleblock-foot p { margin: 0; font-size: .95rem; }
.titleblock-foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; }
.titleblock-foot a:hover { color: var(--red); }

/* ---------- responsive: tablet ---------- */
@media (max-width: 1080px) {
  .group:nth-child(3), .group:nth-child(4), .group:nth-child(5) { grid-column: 1 / -1; }
  .group:nth-child(4) { order: 3; }
}

/* ---------- responsive: small laptop and up to phone ---------- */
@media (max-width: 900px) {
  .nav-desk { display: none; }
  .nav-m { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .photo { justify-self: start; max-width: 300px; order: -1; }
  .photo img { aspect-ratio: 4 / 4.4; }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock > div { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
  .titleblock > div:nth-child(2n) { border-right: 0; }
  .titleblock > div:nth-child(n+3) { border-bottom: 0; }
  .band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .readout:nth-child(3) { border-left: 0; padding-left: 0; }
  .split, .rev, .contact-grid, .edu-grid { grid-template-columns: 1fr; }
  .sec-label { position: static; }
  .sheets, .more-list { grid-template-columns: 1fr; }
  .sheet-wide { flex-direction: column; }
  .sheet-wide .sheet-art { border-right: 0; border-bottom: 1.5px solid var(--ink); min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .rev-meta { padding-left: 1.6rem; display: grid; grid-template-columns: auto auto; gap: 0 1rem; align-items: center; }
  .rev-meta .dates { grid-column: 1 / -1; }
  .rev-meta .mono:not(.dates) { margin-bottom: 0; }
  .rev-meta .logo { grid-column: 1 / -1; margin-top: .9rem; }
  .group { grid-column: span 6; }
  .group:nth-child(3), .group:nth-child(4), .group:nth-child(5) { grid-column: 1 / -1; }
  .group:nth-child(3) ul, .group:nth-child(5) ul { columns: 1; }
  .titleblock-foot { grid-template-columns: 1fr 1fr; }
  .titleblock-foot p:nth-child(2) { grid-column: 1 / -1; }
}

/* ---------- responsive: phone ---------- */
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1.25rem; }
  h1 { font-size: clamp(3.9rem, 22vw, 5.2rem); margin: .4rem 0 1.2rem; }
  .eyebrow { font-size: .68rem; }
  .photo { max-width: 210px; }
  .photo figcaption { margin-top: .7rem; }
  .lede { font-size: 1.02rem; margin-bottom: 1.4rem; }
  .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .titleblock { margin-top: 2rem; }
  .titleblock > div { padding: .75rem .85rem .8rem; }
  .titleblock dd { font-size: .92rem; }
  .band { padding: 2.25rem 0 2.5rem; }
  .band-grid { row-gap: 1.9rem; }
  .readout { padding: 0 .9rem; }
  .readout:nth-child(odd) { padding-left: 0; }
  .readout:nth-child(even) { border-left: 1px solid rgba(242,238,227,.32); }
  .readout:nth-child(3) { border-left: 0; padding-left: 0; }
  .value { font-size: clamp(3.1rem, 17vw, 4.2rem); }
  .label { font-size: .88rem; }
  .section { padding: 2.6rem 0; }
  .sec-head { margin-bottom: 1.6rem; }
  .prose .lead { font-size: 1.3rem; }
  .prose p { font-size: .95rem; line-height: 1.6; }

  /* project sheets: full-width art, uncropped, above a short card */
  .sheet-art, .sheet-wide .sheet-art { aspect-ratio: 16 / 10; min-height: 0; }
  .sheet-body, .sheet-wide .sheet-body { padding: .95rem 1rem 1.05rem; }
  .sheet h3, .sheet-wide h3 { font-size: 1.95rem; margin-bottom: .4rem; }
  .sheet-body > p:not(.kicker):not(.links) { font-size: .92rem; line-height: 1.5; }
  .notes { margin-top: .65rem; }
  .notes li { font-size: .91rem; line-height: 1.45; margin-bottom: .3rem; padding-left: 1.1rem; }
  .stack { display: flex; flex-wrap: wrap; gap: .15rem .85rem; margin-top: .65rem; }
  .stack li { border: 0; background: none; padding: 0; font-size: .7rem; color: var(--muted); }
  .sheet .links, .links { margin-top: .55rem; padding-top: 0; font-size: .9rem; }
  .links .mono { font-size: .64rem; }

  /* more sheets: text rows with small shape thumbs */
  .more { grid-template-columns: 84px minmax(0, 1fr); gap: .8rem; padding: .85rem 0; }
  .thumb { width: 84px; height: 63px; }
  .more h3 { font-size: 1.42rem; }
  .more p { font-size: .88rem; line-height: 1.45; margin-bottom: .3rem; }

  .rev { padding: 1.5rem 0; }
  .rev::before { top: 1.9rem; }
  .rev-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .9rem; }
  .rev-meta .dates { margin: 0; width: 100%; }
  .rev-meta .mono:not(.dates) { margin: 0; }
  .rev-meta .logo { margin: 0 0 0 auto; height: 34px; max-width: 120px; }
  .rev-body h3 { font-size: 2.05rem; }
  .rev-body .notes li { font-size: .91rem; margin-bottom: .3rem; }
  .company { margin: .35rem 0 .7rem; }
  .earlier { margin-top: .7rem; }

  /* skills: chips, one block per group */
  .schedule { grid-template-columns: 1fr; }
  .group, .group:nth-child(n) { grid-column: 1 / -1; padding: 1rem 1rem 1.1rem; }
  .group ul { display: block; }
  .group ul li { display: inline; border: 0; background: none; padding: 0; font-size: .92rem; line-height: 1.75; }
  .group ul li::after { content: " \00b7  "; color: var(--red); }
  .group ul li:last-child::after { content: ""; }
  .group:nth-child(3) ul, .group:nth-child(5) ul { columns: 1; }

  .edu { padding: 1.1rem 1.1rem 1.2rem; }
  .edu h3 { font-size: 2rem; }
  .contact-list li { grid-template-columns: 84px minmax(0, 1fr); }
  .contact-list a { font-size: 1.45rem; }
  .site-footer { padding-top: 1.75rem; }
  .titleblock-foot { grid-template-columns: 1fr; gap: .4rem; padding-top: 0; padding-bottom: 2rem; }
}

/* ---------- motion (enhancement only) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
