/* ==========================================================
   Saul García — Portfolio
   Design source: Figma "Portfolio" › Moodboard › Desktop 1920x1080
   ========================================================== */

:root {
  /* Motion: one language for the whole site. Short (hovers, colors), medium (switching
     content), long (things entering the page). Everything is near-instant with
     prefers-reduced-motion (see the end of this file). */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur-short: 150ms;
  --dur-medium: 250ms;
  --dur-long: 500ms;

  /* Colors */
  --bg: #FFFEFB;
  --ink: #334155;
  --ink-strong: #1E293B;
  --ink-soft: #475569;
  --muted: #767572;
  --faint: #767572;
  --divider: #94A3B8;
  --num-idle: #93918A; /* lightest warm grey that still meets 3:1 for large text */
  --stone: #737565;
  --accent: #548439;
  --dot-idle: #D9D9D9;

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Layout (values from the 1920px frame, scaled down on smaller screens) */
  --gutter: 0px;
  --side: clamp(256px, 14.7vw, 282px);
  --c2: clamp(256px, 17.3vw, 332px);
  --c3: clamp(330px, 23.9vw, 459px);
  --c3-exp: 288px; /* longest line in the role column (~239px) + 24px padding each side */
  --top: clamp(132px, 29.5vh, 320px);

  /* Dotted divider (1px dot, 6px gap) */
  --dots: linear-gradient(to bottom, var(--divider) 0 1px, transparent 1px 7px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Shared type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 2.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 72;
  color: var(--ink);
  text-wrap: balance; /* lines break naturally, evened out; no forced <br> */
}

/* ==========================================================
   Desktop layout
   ========================================================== */

.topbar { display: none; }

/* Header wrapper exists for the landmark only; its children lay out in .layout */
.site-header { display: contents; }

.layout {
  display: grid;
  grid-template-columns: var(--side) 1fr;
  padding-left: var(--gutter);
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  /* 40px above the name; bottom leaves room for the footer (24px gap + 24px line + 40px) */
  padding: 40px 24px 88px;
  background-image: var(--dots);
  background-size: 1px 7px;
  background-position: right top;
  background-repeat: repeat-y;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  align-self: flex-start;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 20px;
  font-variation-settings: "opsz" 24;
}
.brand-role {
  font-size: 14px;
  line-height: 18px;
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: calc(var(--top) - 82px);
}
.nav-link {
  position: relative;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  line-height: 32px;
  padding-bottom: 8px;
  color: var(--faint);
  text-decoration: none;
  font-variation-settings: "opsz" 48;
  transition: color var(--dur-short) var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-medium) var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-strong);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.contact-title {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  white-space: nowrap;
  font-variation-settings: "opsz" 28;
}
.contact-link {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-soft);
  text-decoration: none;
}
.contact-link + .contact-link { margin-top: 8px; }
.contact-link:hover,
.contact-link--underline { text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  /* Shown at the bottom of the sidebar: 40px from the bottom, like the name from the top */
  position: fixed;
  left: 24px;
  bottom: 40px;
  z-index: 5;
}
.last-update {
  font-size: 12px;
  line-height: 24px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--ink-strong);
}

/* ---------- Views ---------- */

.main { min-width: 0; outline: none; }

.view {
  min-height: 100vh;
  min-height: 100dvh;
  /* Switching between Work, Experience and About: the view that appears fades in and settles
     (the animation runs each time a view goes from hidden to shown) */
  animation: view-in 300ms var(--ease) both;
}
.view[hidden] { display: none; }

@keyframes view-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Work ---------- */

.view--work {
  display: grid;
  grid-template-columns: var(--c2) var(--c3) 1fr;
}

/* Desktop (1100px+): image panel takes 40% (50% from 1600px) of the viewport width.
   The project list sits above the intro, full width with 40px margins. */
@media (min-width: 1240px) {
  .view--work {
    grid-template-columns: minmax(0, 1fr) 50vw;
    grid-template-rows: auto 1fr;
  }
  .view--work .col--projects { grid-column: 1; grid-row: 1; padding: var(--top) 40px 0; }
  .view--work .col--text { grid-column: 1; grid-row: 2; padding: 48px 40px 40px; }
  .view--work .col--visual { grid-column: 2; grid-row: 1 / -1; }
  /* One row of tabs: each column takes its title's width, and long titles wrap when the row is tight */
  .view--work .projects { display: grid; grid-auto-flow: column; grid-auto-columns: auto; justify-content: start; align-items: stretch; gap: 8px 32px; }
  .view--work .project-tab { padding-top: 0; }
  .view--work .project-tab-title { white-space: normal; }
  .view--work .project-copy { max-width: none; }
  .project-copy .display { font-size: clamp(40px, 3.75vw, 60px); line-height: 1.04; text-wrap: balance; }
  .project-copy .lede { max-width: 580px; }
}
@media (min-width: 1240px) and (max-width: 1599px) {
  .view--work { grid-template-columns: minmax(0, 1fr) 40vw; }
  .view--work .col--text { padding-top: 32px; }
}
/* Desktop (1100px and up): one fluid scale instead of a jump at 1600px. The title grows with the
   window's width and is held back by its height, so it reaches the design's 96px only on large
   screens and stays within the window on shorter laptops. */
@media (min-width: 1240px) {
  .project-copy .display { font-size: clamp(40px, min(4vw, 6.8vh), 96px); line-height: 1.02; }
}

.col--projects { padding: calc(var(--top) - 24px) 16px 40px clamp(24px, 2.1vw, 40px); }

.projects {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.project-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 6px;
  border-bottom: 2px solid transparent;
  text-align: left;
  color: var(--muted);
  transition: color var(--dur-short) var(--ease), border-color var(--dur-medium) var(--ease);
}
.project-tab-num {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  line-height: 20px;
  font-variation-settings: "opsz" 24;
  color: var(--num-idle);
  transition: color var(--dur-short) var(--ease);
}
.project-tab[aria-selected="true"] .project-tab-num { color: var(--ink); }
.project-tab-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 22px;
}
.project-tab-client { font-size: 14px; font-weight: 300; line-height: 22px; }
.project-tab:hover { color: var(--ink); }
.project-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.col--text { padding: calc(var(--top) - 7px) 40px 40px; }

.project-copy { transition: opacity var(--dur-medium) var(--ease), transform var(--dur-medium) var(--ease); }
.is-switching .project-copy,
.is-switching .project-image { opacity: 0; transform: translateY(6px); }

.lede {
  margin-top: 16px;
  color: var(--muted);
}

.project-cta { margin-top: 24px; }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
a.cta {
  background-image: linear-gradient(to right, var(--ink) 0 2px, transparent 2px 4px);
  background-size: 4px 1px;
  background-position: left bottom;
  background-repeat: repeat-x;
}
a.cta svg { transition: transform var(--dur-short) var(--ease); }

/* Stretched link: one real <a href>, whose ::after covers the whole project copy
   (title, description, CTA). Nothing else in the block is clickable, so screen
   readers announce only the link; the heading and text read as normal content. */
.project-copy { position: relative; }
/* Industry tag above each project title */
.project-tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 2px 10px;
  border: 1px solid #D9D6CC;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cta--stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.project-copy:hover a.cta svg,
a.cta:focus-visible svg { transform: translateX(4px); }

.col--visual {
  position: relative;
  overflow: hidden;
  background: var(--panel-bg, #F8F5EC);
  transition: background-color var(--dur-long) var(--ease);
}

.project-image {
  position: absolute;
  top: calc(var(--top) - 3px);
  /* All images start where the centered order-entry image starts.
     Each one subtracts its own transparent edge so the visible edges line up. */
  --img-start: 8.86%;
  left: var(--img-start);
  max-width: none;
  height: auto;
  transition: opacity var(--dur-medium) var(--ease), transform var(--dur-medium) var(--ease);
}
.project-image--viu { width: 120%; left: calc(var(--img-start) - 0.97%); }
.project-image--order-entry {
  left: 8%; /* centered: (100% - 84%) / 2 */
  width: 84%;
}
.project-image--order-sets { width: 186%; left: calc(var(--img-start) - 0.93%); }
.project-image--volana { width: 150%; left: var(--img-start); }

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

.view--experience {
  display: flex;
  flex-direction: column;
  background-image: var(--dots), var(--dots);
  background-size: 1px 7px;
  background-repeat: repeat-y;
  background-position:
    calc(var(--c2) - 1px) 0,
    calc(var(--c2) + var(--c3-exp) - 1px) 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding-top: calc(var(--top) - 10px);
}

.experience-more { display: none; }

.job {
  display: grid;
  grid-template-columns: var(--c2) var(--c3-exp) minmax(0, 1fr);
}

.job-company {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding: 16px 24px 0; /* company name centered on the timeline dot */
  text-align: right;
  font-family: var(--font-mono);
  color: var(--stone);
  text-transform: uppercase;
}
.job-name { font-size: 14px; line-height: 24px; font-weight: 500; letter-spacing: 0.04em; }
.job-dates { font-size: 12px; line-height: 24px; letter-spacing: 0.04em; }

.job-role {
  position: relative;
  padding: 14px 24px 0;
}
.job-dot {
  position: absolute;
  left: -4px;
  top: 24px; /* centered on the first line of the 24px title */
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--dot-idle);
}
.is-current .job-dot { background: var(--accent); }

.job-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  line-height: 28px;
  font-variation-settings: "opsz" 24;
  white-space: nowrap;
}
.job-meta {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
}

.job-desc {
  max-width: 424px;
  padding: 24px 24px 0;
  font-size: 14px;
  line-height: 22px;
}


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

.view--about {
  display: grid;
  grid-template-columns: var(--c2) var(--c3) 1fr;
  background-image: var(--dots), var(--dots);
  background-size: 1px 7px;
  background-repeat: repeat-y;
  background-position:
    calc(var(--c2) - 1px) 0,
    calc(var(--c2) + var(--c3) - 1px) 0;
}

.about-copy {
  grid-column: 2;
  padding: var(--top) 24px 40px;
}
.about-lead {
  margin-top: 16px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}
.about-body { margin-top: 16px; }
.about-label {
  margin-top: 40px;
  font-family: var(--font-mono); font-size: 12px; line-height: 24px; font-weight: 400;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-strong);
}
.about-cv { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 16px; }
.about-cv .cta { font-size: 16px; line-height: 24px; }
.about-cv .cta:hover svg,
.about-cv .cta:focus-visible svg { transform: translateY(2px); }

.about-photo {
  grid-column: 3;
  padding: calc(var(--top) + 7px) 40px 40px 71px;
}
.about-photo img {
  width: 202px;
  height: 202px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================
   Tablet & phone
   ========================================================== */

@media (max-width: 1239px) {
  :root { --gutter: 20px; }

  body.menu-open { overflow: hidden; }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px var(--gutter);
    background: rgba(255, 254, 251, .92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-weight: 500;
    font-size: 16px;
  }
  .menu-toggle .icon-close { display: none; }
  .menu-open .menu-toggle .icon-open { display: none; }
  .menu-open .menu-toggle .icon-close { display: block; }

  .brand--compact { align-items: flex-start; text-align: left; }
  .brand--compact .brand-name { font-size: 20px; }
  .brand--compact .brand-role { font-size: 13px; }

  .layout {
    display: block;
    padding-left: 0;
    min-height: 0;
  }

  /* Sidebar becomes a full-screen menu */
  .sidebar {
    position: fixed;
    inset: 0;
    z-index: 20;
    height: auto;
    /* bottom leaves room for the footer: 24px gap + 24px line + 20px */
    padding: 104px var(--gutter) 68px;
    background: var(--bg);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity var(--dur-medium) var(--ease), visibility 0s linear var(--dur-medium);
  }
  .menu-open .sidebar {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--dur-medium) var(--ease);
  }
  .sidebar > .brand { display: none; }
  .nav { margin-top: 12vh; padding-left: 0; }
  .nav-link { font-size: 48px; line-height: 48px; }
  .contact { margin-top: auto; padding-top: 48px; }
  /* Footer sits at the end of the page; while the menu is open it shows at the menu's bottom */
  .site-footer {
    position: static;
    padding: 0 var(--gutter) 20px;
  }
  .menu-open .site-footer {
    position: fixed;
    left: var(--gutter);
    bottom: 20px;
    z-index: 25;
    padding: 0;
  }

  .view { min-height: 0; }

  /* Work */
  .view--work { display: block; }

  .col--projects {
    padding: 8px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .col--projects::-webkit-scrollbar { display: none; }
  .projects {
    flex-direction: row;
    gap: 24px;
    padding: 0 var(--gutter);
    width: max-content;
  }
  .project-tab { padding-top: 8px; }
  .project-tab-title { white-space: nowrap; }
  .project-tab-client { font-size: 14px; }

  .col--text { padding: 40px var(--gutter) 40px; max-width: 640px; }
  .display { font-size: clamp(34px, 8.5vw, 48px); line-height: 1.06; }
  .project-cta { margin-top: 24px; }
  .cta { font-size: 18px; }

  /* Image fits the panel, centered, with 32px margins */
  .col--visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
  }
  .project-image,
  .project-image--viu,
  .project-image--order-entry,
  .project-image--order-sets,
  .project-image--volana {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  /* Experience */
  .view--experience {
    display: block;
    background: none;
    padding: 24px var(--gutter) 64px;
  }
  .timeline {
    gap: 40px;
    padding: 16px 0 0 24px;
    background-image: var(--dots);
    background-size: 1px 7px;
    background-repeat: repeat-y;
    background-position: 0 0;
  }
  .job {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    max-width: 560px;
  }
  .job-company {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 16px;
    padding: 0;
    text-align: left;
  }
  .job-role { position: static; padding: 0; }
  .job-title { white-space: normal; }
  .job-dot { left: -28px; top: 8px; }
  .job-desc { padding: 0; margin-top: 4px; }
  /* Link to the full experience, below the last job, aligned with the job text */
  .experience-more { display: block; margin-top: 48px; padding-left: 24px; }
  .experience-more .cta { font-size: 16px; line-height: 24px; }
  .experience-more a.cta:hover svg,
  .experience-more a.cta:focus-visible svg { transform: translate(2px, -2px); }

  /* About */
  .view--about {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    background: none;
    padding: 32px var(--gutter) 64px;
  }
  .about-copy { padding: 32px 0 0; max-width: 560px; }
  .about-photo { padding: 0; }
  .about-photo img { width: 140px; height: 140px; }
}

/* Stacked use cases: only on tablet/phone */
.work-stack { display: none; }

@media (max-width: 1239px) {
  .view--work > .col--projects,
  .view--work > .col--text,
  .view--work > .col--visual { display: none; }

  .work-stack {
    display: flex;
    flex-direction: column;
    gap: 40px; /* 40px after each use case */
    padding: 4px 0 64px; /* + the top bar's 20px bottom padding = 24px visible gap */
  }
  .case .project-copy { padding: 0 var(--gutter); max-width: 640px; }
  /* One line: 01 · Project name · Company */
  .case-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    padding: 0 var(--gutter) 24px;
  }
  .case-eyebrow .project-tab-num { margin: 0; color: var(--ink); font-size: 16px; line-height: 24px; font-weight: 300; }
  .case-name { font-size: 16px; line-height: 24px; font-weight: 300; }
  .case-client { font-size: 16px; line-height: 24px; font-weight: 300; color: var(--muted); }
  .case-name::before,
  .case-client::before { content: "·"; margin-right: 8px; color: var(--muted); font-weight: 300; }
  .case-eyebrow { padding-top: 24px; }

  /* Product image: fills the panel's width inside the same side margin as the text
     (--gutter on both sides) and the same space from the top; the panel crops the bottom. */
  .case-visual {
    position: relative;
    overflow: hidden;
    height: 360px;
    padding: var(--gutter) var(--gutter) 0;
    background: var(--panel-bg);
  }
  .case-visual .project-image,
  .case-visual .project-image--viu,
  .case-visual .project-image--order-entry,
  .case-visual .project-image--order-sets,
  .case-visual .project-image--volana {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
  }
  /* The exported images carry a thin transparent edge (shadow room); widen them by that
     edge so the visible screen lines up exactly with the text margin. */
  .case-visual .project-image--viu { width: calc(100% + 2 * 0.82%); margin-left: -0.82%; }
  .case-visual .project-image--order-entry { width: calc(100% + 2 * 1.04%); margin-left: -1.04%; }
  .case-visual .project-image--order-sets { width: calc(100% + 2 * 0.5%); margin-left: -0.5%; }
}
@media (max-width: 699px) {
  .case-visual { height: 220px; }
}

/* Tablet (700–1024px): content sits in a centered 720px column. The side margin grows
   with the screen, so the top bar, the stacked use cases and Experience all start at the
   same left edge. */
@media (min-width: 700px) and (max-width: 1024px) {
  :root { --gutter: max(20px, calc((100vw - 720px) / 2)); }
  /* The top bar and the open menu span the full width with 40px side margins */
  .topbar { padding-left: 40px; padding-right: 40px; }
  .sidebar { padding-left: 40px; padding-right: 40px; }
  .menu-open .site-footer { left: 40px; }
  /* Text keeps a comfortable line length (max 640px) inside the column */
  .case .project-copy { max-width: calc(2 * var(--gutter) + 640px); } /* 640px of text between the side margins */
  /* The image panel spans the full width; the image starts and ends at the text edges */
  .case-visual { padding: 40px var(--gutter) 0; }
}

/* Phone: project heading uses the case study title style (.cs-title below 700px) */
@media (max-width: 699px) {
  .project-copy .display { font-size: 36px; line-height: 40px; letter-spacing: -0.01em; }
}

/* Tablet: project heading uses the case study title style (.cs-title below 1100px) */
@media (min-width: 700px) and (max-width: 1239px) {
  .project-copy .display { font-size: 40px; line-height: 44px; letter-spacing: -0.01em; }
}

/* Small desktop (1025–1239px): same Work layout as desktop L,
   with the sidebar replaced by the top bar + hamburger menu. */
@media (min-width: 1025px) and (max-width: 1239px) {
  /* Top bar and open menu with 40px side margins, lined up with the Work columns */
  .topbar { padding-left: 40px; padding-right: 40px; }
  .sidebar { padding-left: 40px; padding-right: 40px; }
  .menu-open .site-footer { left: 40px; }
  .work-stack { display: none; }
  .view--work {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40vw;
    grid-template-rows: auto 1fr;
    min-height: calc(100dvh - 84px);
  }
  .view--work > .col--projects {
    display: block;
    grid-column: 1; grid-row: 1;
    padding: 40px 40px 0;
    overflow: visible;
  }
  .view--work > .col--text {
    display: block;
    grid-column: 1; grid-row: 2;
    padding: 32px 40px 40px;
    max-width: none;
  }
  .view--work > .col--visual {
    display: block;
    grid-column: 2; grid-row: 1 / -1;
    padding: 0;
    height: auto;
  }
  .view--work .projects {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px 40px;
    padding: 0;
    width: auto;
  }
  .view--work .project-tab { padding-top: 0; }
  .view--work .project-tab-title { white-space: normal; }
  .view--work .project-copy .display { font-size: 48px; line-height: 1.04; text-wrap: balance; }
  .view--work .project-copy .lede { max-width: 580px; }

  .view--work > .col--visual .project-image { position: absolute; top: 48px; height: auto; max-width: none; }
  .view--work > .col--visual .project-image--viu { width: 120%; left: calc(var(--img-start) - 0.97%); }
  .view--work > .col--visual .project-image--order-entry { width: 84%; left: 8%; }
  .view--work > .col--visual .project-image--order-sets { width: 186%; left: calc(var(--img-start) - 0.93%); }
  .view--work > .col--visual .project-image--volana { width: 150%; left: var(--img-start); }
}

/* Tablet to small desktop (700–1099px): About keeps the desktop
   column layout with dotted dividers; the menu stays in the hamburger. */
@media (min-width: 700px) and (max-width: 1239px) {
  .view--about {
    display: grid;
    grid-template-columns: 18% minmax(0, 46%) 1fr;
    min-height: calc(100dvh - 84px);
    padding: 0;
    background-image: var(--dots), var(--dots);
    background-size: 1px 7px;
    background-repeat: repeat-y;
    background-position: calc(18% - 1px) 0, calc(64% - 1px) 0;
  }
  .about-copy {
    grid-column: 2;
    max-width: none;
    padding: clamp(48px, calc(var(--top) - 84px), 240px) 24px 40px;
  }
  .about-photo {
    grid-column: 3;
    padding: calc(clamp(48px, calc(var(--top) - 84px), 240px) + 7px) 24px 40px 32px;
  }
  .about-photo img { width: min(160px, 100%); height: auto; aspect-ratio: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
