/*
  Field Sticker — Harish Pagunta portfolio
  A warm, single (light) theme by design: pastel gradient ground, ink outlines,
  hand-drawn sticker accents. See CLAUDE.md for the design system notes.
*/

:root {
  --bg-a: #1D1811;
  --bg-b: #17130E;
  --bg-c: #100D0A;

  --ink: #F3ECDC;
  --ink-soft: #B7AC96;
  --ink-faint: #9C917C;

  --surface: #2B241A;
  --accent: #E0A438;

  --badge-violet: #2A6B62;
  --badge-tan: #9C6A1F;
  --badge-rose: #8F4229;
  --badge-sky: #2F6E7A;

  --shadow-1: rgba(0, 0, 0, 0.5);
  --shadow-2: rgba(0, 0, 0, 0.68);

  --display: 'Archivo Black', system-ui, sans-serif;
  --body-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  --nav-h: 4.25rem;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-inline: 1.5rem;
  background: linear-gradient(165deg, var(--bg-a) 0%, var(--bg-b) 45%, var(--bg-c) 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

::selection {
  background: var(--ink);
  color: var(--bg-a);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1.5rem;
  z-index: 500;
  background: var(--ink);
  color: var(--bg-a);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.8rem;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card { transition: none !important; }
}

/* Reveal-on-scroll */

.js-anim .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-anim .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------- */
/* Layout shell                        */
/* ---------------------------------- */

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

main {
  display: flex;
  flex-direction: column;
  gap: 5.5rem;
  max-width: 1080px;
  margin: 0 auto;
  padding-block: 3rem 5rem;
}

section {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
  opacity: 0.28;
}

h2.section-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

.section-intro {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: -1rem 0 2rem;
}

/* ---------------------------------- */
/* Top bar                             */
/* ---------------------------------- */

.topbar-wrap {
  position: sticky;
  top: 0.85rem;
  z-index: 100;
  max-width: 1080px;
  margin: 1rem auto 0;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 0.65rem 0.9rem 0.65rem 1.1rem;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--shadow-1);
}

.topbar .mark {
  font-family: var(--display);
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.topnav {
  display: flex;
  gap: 1.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex: 1;
}

.topnav::-webkit-scrollbar { display: none; }

.topnav a {
  text-decoration: none;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.topnav a:hover,
.topnav a.active {
  color: var(--ink);
  border-color: var(--accent);
}

.topbar-actions { flex: none; }

/* ---------------------------------- */
/* Buttons & badges                    */
/* ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow-2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translate(-1px, -2px);
  box-shadow: 4px 5px 0 var(--shadow-2);
}

.btn.primary { background: var(--badge-tan); }

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.68rem;
  box-shadow: 2px 2px 0 var(--shadow-2);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge.b1 { background: var(--badge-violet); }
.badge.b2 { background: var(--badge-tan); }
.badge.b3 { background: var(--badge-rose); }
.badge.b4 { background: var(--badge-sky); }

/* ---------------------------------- */
/* Hero                                */
/* ---------------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding-top: 2.5rem;
}

.hero .role {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}

.hero .pitch {
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 48ch;
  color: var(--ink);
  margin: 0 0 0.9rem;
}

.hero .pitch.secondary {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.polaroid-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.polaroid {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 0.6rem 0.6rem 1.2rem;
  transform: rotate(-3.5deg);
  box-shadow: 6px 8px 0 var(--shadow-2);
  max-width: 340px;
  width: 100%;
}

.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: 10px;
  filter: grayscale(0.4) sepia(0.06) contrast(1.08);
}

.polaroid-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: var(--badge-violet);
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--ink);
}

.sticker {
  position: absolute;
  z-index: 2;
  top: -16px;
  right: 10px;
  transform: rotate(8deg);
  background: var(--badge-rose);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------------------------------- */
/* Stats strip                         */
/* ---------------------------------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.9rem;
}

.stat {
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--shadow-1);
}

.stat:nth-child(6n+1) { background: var(--badge-violet); }
.stat:nth-child(6n+2) { background: var(--badge-tan); }
.stat:nth-child(6n+3) { background: var(--badge-rose); }
.stat:nth-child(6n+4) { background: var(--badge-sky); }
.stat:nth-child(6n+5) { background: var(--surface); }
.stat:nth-child(6n+6) { background: var(--surface); }

.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ---------------------------------- */
/* About                               */
/* ---------------------------------- */

.lede {
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 66ch;
  margin: 0;
}

.lede + .lede {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ---------------------------------- */
/* Work grid + cards                   */
/* ---------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
}

.card {
  all: unset;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.card:hover,
.card:focus-visible {
  transform: translate(-2px, -3px);
  box-shadow: 7px 8px 0 var(--shadow-2);
}

.card.note-card {
  cursor: default;
}

.card.note-card:hover,
.card.note-card:focus-visible {
  transform: none;
  box-shadow: 5px 5px 0 var(--shadow-1);
}

.note-card .card-body h3 {
  font-size: 0.98rem;
  line-height: 1.35;
  text-transform: none;
}

.note-body {
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.card:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
}

.card-art {
  aspect-ratio: 16 / 10;
  border-bottom: 2.5px solid var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 0.7rem;
  overflow: hidden;
  position: relative;
}

.card-art.art1 { background: linear-gradient(150deg, var(--badge-violet), var(--bg-b)); }
.card-art.art2 { background: linear-gradient(150deg, var(--badge-sky), var(--bg-c)); }
.card-art.art3 { background: linear-gradient(150deg, var(--badge-rose), var(--bg-b)); }
.card-art.art4 { background: linear-gradient(150deg, var(--badge-tan), var(--bg-c)); }

.card-art span {
  position: relative;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}

.card-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.card-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-body h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
  line-height: 1.28;
}

.card-org {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.card-stat {
  margin-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------- */
/* Case study dialog                   */
/* ---------------------------------- */

dialog#case-dialog {
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  padding: 0;
  max-width: 700px;
  width: min(92vw, 700px);
  max-height: 86vh;
  background: var(--surface);
  box-shadow: 8px 10px 0 var(--shadow-2);
  color: var(--ink);
}

dialog#case-dialog::backdrop {
  background: rgba(34, 29, 23, 0.55);
}

.dialog-scroll {
  overflow-y: auto;
  max-height: 86vh;
  padding: 1.75rem 2rem 2.25rem;
}

.dialog-close {
  position: sticky;
  top: 0.9rem;
  margin-left: calc(100% - 2.6rem);
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--surface);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--shadow-1);
}

.case-content img {
  display: block;
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.case-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  padding: 0.25rem 0.55rem;
  margin-bottom: 0.9rem;
}

.case-content .case-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.case-content h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
  line-height: 1.2;
}

.case-content .case-org {
  font-size: 0.9rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
  display: block;
}

.case-block { margin-bottom: 1.4rem; }

.case-block h4 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.case-block p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.case-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.case-block li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

.case-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------------------------------- */
/* Capabilities                        */
/* ---------------------------------- */

.cap-group + .cap-group { margin-top: 1.75rem; }

.cap-group h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.85rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  padding: 0.4rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 0.85rem;
  background: var(--surface);
}

.chip.key:nth-child(4n+1) { background: var(--badge-violet); }
.chip.key:nth-child(4n+2) { background: var(--badge-tan); }
.chip.key:nth-child(4n+3) { background: var(--badge-rose); }
.chip.key:nth-child(4n+4) { background: var(--badge-sky); }

/* ---------------------------------- */
/* Experience timeline                 */
/* ---------------------------------- */

.timeline {
  display: flex;
  flex-direction: column;
}

.role {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 2px dashed var(--ink);
  border-top-color: color-mix(in srgb, var(--ink) 25%, transparent);
}

.role:last-child {
  border-bottom: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}

.role-when {
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.role-when span {
  display: block;
  margin-top: 0.2rem;
  opacity: 0.75;
}

.role h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
}

.role-org {
  display: block;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.15rem;
  margin-bottom: 0.5rem;
}

.role p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 62ch;
  margin: 0;
}

.domains {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.domains span {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-faint);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  padding: 0.18rem 0.5rem;
}

.footer-note {
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--ink-faint);
  opacity: 0.85;
}

/* ---------------------------------- */
/* Product logos & icons               */
/* ---------------------------------- */

/* Shared sticker-tile treatment. Logos sit on white because the source marks
   were drawn for light backgrounds and lose contrast on the dark ground. */
.logo-tile {
  background: #fff;
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--shadow-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* The Raven marks ship on a black ground; a black tile lets them sit edge to edge
   instead of floating a black rectangle inside a white one. */
.logo-tile.on-dark {
  background: #000;
}

/* Monogram fallback for employers with no mark in the source deck. */
.logo-tile.mark {
  font-family: var(--display);
  color: #1D1811;
  line-height: 1;
}

/* Case card art */

.card-art {
  align-items: center;
  justify-content: center;
}

/* `.card-art span` (0,1,1) outranks `.logo-tile` (0,1,0), so the white ground has to
   be restated here or transparent SVG marks show the card gradient through them. */
.card-art .card-logo {
  background: #fff;
  width: 104px;
  height: 84px;
  border-radius: 14px;
  padding: 0.5rem;
  font-size: 1.9rem;
  letter-spacing: normal;
  text-transform: none;
}

/* Experience row logos */

.role-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border-width: 2px;
  box-shadow: 2px 2px 0 var(--shadow-2);
  padding: 0.3rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

/* Products grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 1.35rem 1rem;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}

.product .product-icon {
  width: 62px;
  height: 62px;
  border-radius: 15px;
  padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product .product-icon img {
  object-fit: cover;
}

/* Wide wordmarks (Raven, iSpionage) would be cropped by cover — fit them instead. */
.product .product-icon.contain img {
  object-fit: contain;
  padding: 0.3rem;
}

.product:hover .product-icon {
  transform: translate(-2px, -3px);
  box-shadow: 5px 6px 0 var(--shadow-2);
}

.product-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-soft);
}

/* Product marks inside a case-study dialog */

.case-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.9rem;
}

.case-logos .case-logo {
  width: 74px;
  height: 44px;
  border-radius: 8px;
  border-width: 2px;
  padding: 0.3rem;
  box-shadow: 2px 2px 0 var(--shadow-2);
}

@media (max-width: 640px) {
  .card-art .card-logo { width: 90px; height: 72px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .product .product-icon { width: 54px; height: 54px; }
}

/* ---------------------------------- */
/* Writing                             */
/* ---------------------------------- */

.writing-list {
  display: flex;
  flex-direction: column;
}

.post {
  display: block;
  padding: 1.2rem 0;
  border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease;
}

.post:hover,
.post:focus-visible {
  padding-left: 0.6rem;
}

.post:hover .post-title,
.post:focus-visible .post-title {
  color: var(--accent);
}

.cap-note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 58ch;
  margin: -0.4rem 0 1rem;
}

.writing-list .post:last-child {
  border-bottom: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
}

.post-title {
  display: block;
  font-family: var(--display);
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  transition: color 0.2s ease;
}

.post-meta {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
}

.post-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.6rem;
}

.more-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

/* ---------------------------------- */
/* Recommendation                      */
/* ---------------------------------- */

.quote {
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  background: var(--badge-tan);
  padding: 1.9rem 2.1rem;
  transform: rotate(-0.6deg);
  box-shadow: 5px 6px 0 var(--shadow-1);
  max-width: 68ch;
}

.quote p {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-transform: none;
  margin: 0;
  text-wrap: balance;
}

.quote cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ---------------------------------- */
/* Credentials                         */
/* ---------------------------------- */

.cred-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
}

.cred-col h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1rem;
}

.cred-col h3.spaced { margin-top: 2rem; }

.cred-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cred-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.4;
}

.cred-list span {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-faint);
  margin-top: 0.2rem;
}

.cred-languages {
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ---------------------------------- */
/* Contact + footer                    */
/* ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2rem;
  align-items: center;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.mini-polaroid-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

.mini-polaroid {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 0.5rem 0.5rem 1rem;
  transform: rotate(4deg);
  box-shadow: 5px 6px 0 var(--shadow-2);
  max-width: 260px;
  width: 100%;
}

.mini-polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 0.92 / 1;
  object-fit: cover;
  border-radius: 8px;
  filter: grayscale(0.4) sepia(0.06) contrast(1.08);
}

.mini-polaroid figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.mini-sticker {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 0;
  transform: rotate(-9deg);
  background: var(--badge-sky);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 0.32rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
  .mini-polaroid-wrap { order: -1; margin-bottom: 0.5rem; }
}

.site-footer {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-faint);
  border-top: 2px dashed color-mix(in srgb, var(--ink) 25%, transparent);
  padding-top: 2.25rem;
}

/* ---------------------------------- */
/* Responsive                          */
/* ---------------------------------- */

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
  .polaroid-wrap { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; gap: 0.6rem; }
  .role-when span { display: inline; margin-left: 0.5rem; }
  main { gap: 4rem; }
  .topnav { font-size: 0.68rem; gap: 1rem; }
}

@media (max-width: 460px) {
  body { padding-inline: 1rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .contact-buttons .btn { width: 100%; justify-content: center; }
  .topbar { padding: 0.55rem 0.7rem 0.55rem 0.9rem; }
}

/* ---------------------------------- */
/* Print                               */
/* ---------------------------------- */

@media print {
  body {
    background: #fff;
    color: #000;
    padding: 0;
  }
  .topbar-wrap, .cta-row, .contact-buttons, .sticker, dialog { display: none !important; }
  main { gap: 2rem; padding: 0; }
  .card, .stat, .quote, .badge, .chip { box-shadow: none !important; }
  a { text-decoration: underline; }
}
