/* ==========================================================================
   Caitlin Wheeless — Portfolio
   Design: Fraunces (headings), Outfit (body), IBM Plex Mono (code/tags)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,500;0,9..144,700;1,9..144,400&family=Outfit:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-soft: #57534e;
  --ink-faint: #a8a29e;
  --teal: #0d9488;
  --teal-light: #ccfbf1;
  --teal-dark: #0f766e;
  --warm: #fef3c7;
  --warm-dark: #d97706;
  --rule: #e7e5e4;
  --code-bg: #f5f5f4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.06);
  --shadow-lg: 0 25px 60px rgba(0,0,0,0.08);
  /* Legacy aliases for existing pages */
  --text: var(--ink);
  --text-muted: var(--ink-soft);
  --accent: var(--teal);
  --accent-hover: var(--teal-dark);
  --border: var(--rule);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: var(--shadow-sm);
  --shadow-hover: var(--shadow-md);
  --font-head: 'Fraunces', serif;
  --font-body: 'Outfit', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  margin: 0;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

p a {
  font-weight: 500;
}

/* ==========================================================================
   Demo / landing page — fixed nav, hero, timeline, portfolio grid, etc.
   ========================================================================== */

nav:has(.nav-name) {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.nav-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav-name:hover {
  color: var(--teal);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links a.current {
  color: var(--ink);
  font-weight: 500;
}

.nav-cta {
  background: var(--teal);
  color: #fff;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  transition: background 0.3s;
}

.nav-cta:hover {
  background: var(--teal-dark);
  color: #fff;
  text-decoration: none;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding: 8rem 3rem 4rem;
  gap: 4rem;
  align-items: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 6rem;
  right: 2rem;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, var(--rule) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  opacity: 0.7;
  z-index: 0;
}

.hero-text { max-width: 620px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-title .em-teal { color: var(--teal); font-style: italic; font-weight: 400; }

.hero-desc {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 100px;
}

.btn-primary:hover {
  background: var(--teal);
  transform: translateY(-1px);
  color: var(--bg);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1.5px solid var(--rule);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 100px;
}

.btn-ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
  opacity: 0;
  animation: fadeIn 1s 0.5s forwards;
}

.typing-hamster {
  width: 100%;
  max-width: 440px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.08));
}

.section { padding: 6rem 3rem; }
.section-header { margin-bottom: 3.5rem; }
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}
.section .section-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.timeline { position: relative; max-width: 880px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--rule));
}
.tl-item { padding-left: 2.5rem; padding-bottom: 3rem; position: relative; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2.5px solid var(--teal);
  border-radius: 50%;
}
.tl-item.current::before { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-light); }
.tl-company { font-family: var(--font-head); font-size: 1.3rem; font-weight: 500; margin-bottom: 0.15rem; }
.tl-role { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0.1rem; }
.tl-date { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--ink-faint); letter-spacing: 0.04em; margin-bottom: 0.75rem; }
.tl-summary { font-size: 0.9rem; color: var(--ink-soft); font-weight: 300; line-height: 1.7; max-width: 560px; }
.tl-cv-link { margin-top: 1rem; padding-left: 2.5rem; }
.tl-cv-link a { font-weight: 500; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.exp-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.exp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.exp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.exp-card:hover::before { transform: scaleX(1); }
.exp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}
.exp-card-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; margin-bottom: 0.6rem; }
.exp-card-desc { font-size: 0.85rem; color: var(--ink-soft); font-weight: 300; line-height: 1.7; }

.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.folio-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem;
  text-decoration: none;
  transition: all 0.35s;
  display: block;
  color: inherit;
}
.folio-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal); color: var(--ink); text-decoration: none; }
.folio-type {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.9rem;
}
.folio-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; margin-bottom: 0.5rem; line-height: 1.3; }
.folio-desc { font-size: 0.85rem; color: var(--ink-soft); font-weight: 300; line-height: 1.65; margin-bottom: 1rem; }
.folio-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.folio-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.58rem;
  padding: 0.2rem 0.55rem;
  background: var(--code-bg);
  border-radius: 3px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.industry-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.chip {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--ink-soft);
  transition: all 0.3s;
  cursor: default;
}
.chip:hover { border-color: var(--teal); color: var(--teal-dark); background: var(--teal-light); }

.cta-section { padding: 7rem 3rem; text-align: center; }
.cta-title { font-family: var(--font-head); font-size: clamp(2.2rem, 3.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1rem; }
.cta-desc { font-size: 1rem; color: var(--ink-soft); font-weight: 300; margin-bottom: 2.5rem; max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.75; }

footer {
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--ink-faint); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--ink); text-decoration: none; }

.hamster-egg {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  z-index: 200;
  cursor: pointer;
  opacity: 0.2;
  transition: all 0.4s;
  filter: grayscale(1);
}
.hamster-egg:hover { opacity: 1; filter: grayscale(0); transform: scale(1.3) rotate(-8deg); }
.hamster-tooltip {
  position: fixed;
  bottom: 60px;
  right: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.72rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
  z-index: 201;
}
.hamster-egg:hover + .hamster-tooltip { opacity: 1; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; gap: 2rem; }
  .hero-visual { min-height: auto; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  nav:has(.nav-name) { padding: 1rem 1.5rem; }
  .section { padding: 4rem 2rem; }
}
@media (max-width: 640px) {
  .hero-visual { display: none; }
  .expertise-grid { grid-template-columns: 1fr; }
  nav:has(.nav-name) .nav-links a:not(.nav-cta) { display: none; }
}

/* ==========================================================================
   Layout (inner pages)
   ========================================================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

nav:has(.nav-name) + main {
  padding-top: 5.5rem;
}

article {
  max-width: 900px;
  margin: 0 auto;
}

article.shrink {
  max-width: 840px;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  margin: 0 auto;
}

.hometitle {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
}

.jobtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

.hometitle a,
.jobtitle a {
  color: inherit;
}

.hometitle a:hover,
.jobtitle a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

nav {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.navwrap {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 2rem;
  font-size: 1rem;
  font-weight: 500;
}

.navwrap > div {
  position: relative;
}

nav a {
  color: var(--text);
}

nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.here {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 0 var(--accent);
  padding-bottom: 2px;
}

.dd-link {
  cursor: pointer;
  color: var(--text);
}

.dd-link:hover {
  color: var(--accent);
}

.dd-arrow::after {
  content: "";
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  position: relative;
  top: -2px;
  margin-left: 6px;
  vertical-align: middle;
}

.dd-p {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 0.5rem;
  min-width: 12rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  padding: 0.5rem 0;
  list-style: none;
  font-size: 0.95rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.dd-link:hover .dd-p,
.dd-p:hover {
  opacity: 1;
  visibility: visible;
}

.dd-p ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dd-p ul li {
  display: block;
  margin: 0;
}

.dd-p ul li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--text);
}

.dd-p ul li a:hover {
  background: var(--bg);
  color: var(--accent);
}

/* ==========================================================================
   Home page — cards
   ========================================================================== */

.homewrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 3rem;
}

.homewrap > div {
  margin: 0;
}

.card-b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: var(--text);
  text-align: center;
}

.card-b:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.card-t {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ==========================================================================
   About this site (home)
   ========================================================================== */

.about-wrap {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.about-content {
  max-width: 560px;
}

.about-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-content p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   Section titles (About, CV, portfolio intros)
   ========================================================================== */

.section-title {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.section-title:first-of-type {
  margin-top: 0;
}

.aboutpage .section-title:not(:first-of-type) {
  margin-top: 2.5rem;
}

/* ==========================================================================
   Portfolio — intro blocks
   ========================================================================== */

.intro {
  margin: 2.5rem 0 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.intro:first-of-type {
  margin-top: 0;
}

.intro-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.intro-text {
  margin: 0;
  color: var(--text);
}

.intro-text p {
  margin: 0 0 0.5rem;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.intro-text b {
  font-weight: 600;
}

.intro-content-rs p {
  margin: 0 0 1rem;
}

.intro-content-rs p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Iframes & embedded docs
   ========================================================================== */

.iframe_wrap {
  margin: 1.5rem 0 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.myiframe {
  display: block;
  width: 100%;
  height: 52rem;
  max-height: 85vh;
  border: 0;
}

.pdfobject-container {
  width: 100% !important;
  height: 52rem !important;
  max-height: 85vh;
  margin: 1.5rem 0 2.5rem !important;
  border-radius: var(--radius) !important;
  overflow: hidden;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow);
}

.iframe_wrap iframe.caitlin-iframe {
  width: 100%;
  height: auto;
  min-height: 400px;
  aspect-ratio: 16 / 10;
}

/* Clip off left sidebar for embedded PacketFabric docs (cross-origin: we can't
   touch the iframe DOM, so we widen the iframe, shift left, and zoom into content) */
.iframe_wrap.iframe-hide-sidebar {
  --sidebar-width: 340px;
}
.iframe_wrap.iframe-hide-sidebar .myiframe {
  width: calc(100% + var(--sidebar-width));
  max-width: none;
  transform: translateX(calc(-1 * var(--sidebar-width))) scale(1.08);
  transform-origin: var(--sidebar-width) center;
}

.image-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  align-items: start;
}

.image-wrap.singles {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.img-title {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.image-wrap img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.image-wrap video {
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .image-wrap:not(.singles) {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   About page — contact, bio, photos
   ========================================================================== */

.im {
  padding: 0 0 1rem;
}

.im p {
  margin: 0 0 0.75rem;
}

.im.fi {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 1rem;
}

.ham {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ham img {
  max-width: 100%;
  width: 280px;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.image-cap span {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.im.fi .im {
  font-size: 14px;
  padding-top: 2rem;
}

@media (min-width: 700px) {
  .im.fi {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem 3rem;
  }

  .ham {
    flex: 0 0 auto;
  }
}

/* ==========================================================================
   CV — tables
   ========================================================================== */

table.collapse {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 2rem;
}

table.collapse td {
  padding: 1rem 1rem 1rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

table.collapse tr:last-child td {
  border-bottom: 0;
}

table.collapse td:first-child {
  width: 140px;
  min-width: 120px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

table.collapse td:last-child {
  width: 80px;
  min-width: 60px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.9rem;
}

table.collapse p {
  margin: 0 0 0.5rem;
}

table.collapse p:last-child {
  margin-bottom: 0;
}

table.collapse .objectives {
  margin-top: 0.5rem;
  padding: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border);
}

table.two-c {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem;
  font-size: 0.95rem;
}

table.two-c td {
  padding: 0.75rem 1rem 0.75rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

table.two-c td:first-child {
  width: 180px;
  min-width: 140px;
  font-weight: 600;
  color: var(--text);
}

table.education td:last-child {
  width: 100px;
  min-width: 80px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.teal.draw {
  border-color: var(--border);
}

.draw:hover {
  border-color: var(--accent);
}
