/* ==========================================================================
   Yating Lu — Portfolio 2026
   Built from the structure and visual language of the 2021 Webflow portfolio.
   Fonts: Abril Fatface (display), Lato (UI/body), Muli (base)
   Accent: lavender highlight #c5c0e7
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&family=Muli:ital,wght@0,400;0,600;0,700;0,900;1,400&display=swap');

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Muli', sans-serif;
  color: #000;
  font-size: 14px;
  line-height: 180%;
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3, h4, h5, h6 { margin: 0; }

h1 {
  margin-bottom: 20px;
  font-family: 'Abril Fatface', serif;
  font-size: 7vh;
  line-height: 130%;
  font-weight: 400;
}

p { margin: 0 0 10px; }

a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}

img { max-width: 100%; }

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  flex: 1;
}

/* ─── Navbar ─────────────────────────────────────────────── */

.navbar {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 1000;
  margin: 24px;
  padding: 20px 60px 10px;
  background: transparent;
  transition: transform 260ms cubic-bezier(.2, .75, .25, 1), opacity 200ms ease;
}

.navbar.nav-hidden {
  opacity: 0;
  transform: translateY(calc(-100% - 28px));
  pointer-events: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Muli', sans-serif;
  color: #333;
  font-size: 22px;
  font-weight: 900;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 48px;
  padding: 0;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: none;
  transition: box-shadow 200ms ease;
}

.nav-link:hover { box-shadow: inset 0 -22px 0 0 #c5c0e7; }
.nav-link.current { box-shadow: inset 0 -10px 0 0 #c5c0e7; }

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.hero-wrap {
  display: flex;
  width: 100%;
  align-items: flex-start;
  padding: 22vh 60px 70px;
  background: #f5f5f5;
}

.headline-wrap { max-width: 100vh; margin-bottom: 24px; }
.hero-title { margin: 0; }
.hero-line { display: block; }
.hero-text-highlight {
  background: linear-gradient(#c5c0e7, #c5c0e7) 0 78% / 100% 34% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-heading { position: relative; display: inline; margin-right: 10px; }

.highlight-box { position: relative; display: inline-block; margin-right: 10px; }

.highlight {
  position: absolute;
  left: 4%; right: 0; top: 50%;
  height: 36%;
  margin-right: 4px;
  background: #c5c0e7;
  z-index: 0;
}

.hero-heading { z-index: 1; }
.highlight-box h1 { position: relative; z-index: 1; }

.hero-paragraph {
  max-width: 540px;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 160%;
  margin-bottom: 0;
}

/* ─── Buttons (offset brutalist style) ──────────────────── */

.button-wrapper {
  display: inline-block;
  margin-top: 40px;
  padding-right: 15px;
  padding-bottom: 15px;
}

.button-border {
  display: inline-block;
  box-shadow: 0 0 0 3px #000;
  transform: translate(11px, 11px);
}

.button {
  display: inline-block;
  min-width: 160px;
  padding: 11px 32px 12px;
  border: 3px solid #000;
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 3px #000;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  transform: translate(-11px, -11px);
  transition: transform 200ms cubic-bezier(.25,.46,.45,.94);
  cursor: pointer;
}

.button:hover { transform: translate(0, 0); }

/* ─── Scroll indicator ───────────────────────────────────── */

.scroll-wrapper {
  position: absolute;
  right: 0; bottom: 10px;
  padding: 0 84px;
  text-align: right;
}

.scroll-block {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 105px;
  overflow: hidden;
}

.scroll-arrow {
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 105px;
  background: #000;
  opacity: 1;
}

.scroll-text {
  position: absolute;
  left: 46px; top: 0;
  transform: rotate(90deg);
  transform-origin: 0 0;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Sections / Projects ────────────────────────────────── */

.section {
  display: block;
  margin: 0 24px;
  padding: 60px;
}

.heading-5 {
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
  color: #b7b4b9;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.microsoft-label { display: flex; align-items: center; gap: 9px; }
.microsoft-label img { display: block; width: 16px; height: 16px; flex: 0 0 auto; }

.heading-5._2 { margin-bottom: 20px; font-size: 15px; }

.heading-6 {
  margin-bottom: 20px;
  font-family: 'Lato', sans-serif;
  font-size: 6.5vh;
  line-height: 130%;
  font-weight: 700;
}

.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  justify-content: space-between;
  grid-template-areas:
    "heading media"
    "copy media";
  column-gap: 80px;
  row-gap: 14px;
  padding: 72px 0;
}

.project + .project { border-top: 1px solid #e3e3e3; }

.project .left-column {
  grid-area: heading;
  width: 100%;
  max-width: 520px;
  min-width: 0;
  align-self: center;
}

.project-copy {
  grid-area: copy;
  max-width: 480px;
  align-self: center;
}

.tags-wrapper { display: flex; flex-wrap: wrap; margin: 0; }

.tag {
  margin-right: 16px;
  margin-bottom: 0;
  padding: 6px 10px;
  background: #d8d5ec;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.tag-lock {
  display: inline-flex;
  height: 28px;
  margin-right: 16px;
  align-items: center;
  justify-content: center;
}

.tag-lock img { display: block; width: 16px; height: 16px; opacity: .62; }

.portfolio-paragraph {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 32px;
  margin-bottom: 0;
}

.portfolio-paragraph a { box-shadow: inset 0 -2px 0 0 #c5c0e7; }

.mockup-column {
  grid-area: media;
  position: relative;
  display: flex;
  aspect-ratio: 1 / 1;
  align-items: center;
  justify-content: center;
  width: min(100%, 500px);
  justify-self: end;
  margin: 0;
  background: transparent;
  text-align: right;
}

.mockup-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff9f3;
  box-shadow: none;
  transition: transform 300ms cubic-bezier(.25,.46,.45,.94);
}

.mockup-column:hover .mockup-img { transform: translate(8px, -8px); }
.mockup-img[hidden] { display: none; }
.project-preview-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px); background: #e9edf4; text-align: left; }
.project-preview-fallback.preview-agent { background: #e9e5ef; }
.project-preview-fallback[hidden] { display: none; }
.project-preview-fallback > span { font: 700 10px/1.5 'Lato', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #586172; }
.project-preview-fallback > strong { font: 400 clamp(28px, 3.8vw, 52px)/1.12 'Abril Fatface', serif; letter-spacing: -.025em; color: #2a364c; }
.preview-agent > strong { color: #473957; }
.project-preview-fallback > small { font: 700 12px/1.5 'Lato', sans-serif; color: #586172; }

.dots {
  position: absolute;
  left: -24px; bottom: -24px;
  width: 100px;
  z-index: 0;
}

.mockup-hover {
  position: absolute;
  right: 0; bottom: -42px;
  display: flex;
  align-items: center;
  height: 44px;
  padding-left: 10px;
  opacity: 1;
  transform: none;
}

.mockup-hover-text {
  margin-right: 12px;
  color: #b7b4b9;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateX(-9px);
  transition: opacity 100ms cubic-bezier(.25,.46,.45,.94), transform 100ms cubic-bezier(.25,.46,.45,.94);
}

.mockup-arrow {
  display: inline-block;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translateX(-35px);
  transition: opacity 1ms linear 200ms, transform 200ms cubic-bezier(.25,.46,.45,.94);
}

.mockup-column:hover .mockup-hover-text { opacity: 1; transform: translateX(0); }
.mockup-column:hover .mockup-arrow {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 1ms linear 100ms, transform 200ms cubic-bezier(.25,.46,.45,.94) 100ms;
}

.protected-project .mockup-hover {
  z-index: 3;
  top: 20px;
  right: 20px;
  bottom: auto;
  width: 58px;
  height: 58px;
  padding: 0;
  justify-content: center;
  border: 2px solid #111;
  background: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.25,.46,.45,.94);
}

.protected-project:hover .mockup-hover,
.protected-project:focus-visible .mockup-hover {
  opacity: 1;
  transform: translateY(0);
}

.project-lock { display: block; width: 30px; height: 30px; }

@media (hover: none) {
  .protected-project .mockup-hover { opacity: 1; transform: none; }
}

/* Password dialog styles are shared in styles/protected-modal.css. */

/* ─── Reading cover ─────────────────────────────────────── */

#reading-project { scroll-margin-top: 96px; }
.reading-results { margin-top: 14px; font-size: 16px; line-height: 1.65; }
.home-page .reading-cover {
  container-type: inline-size;
  display: block;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  background: #e0edfe;
  color: #2d4c70;
  text-align: left;
}
.reading-preview-phone {
  position: absolute;
  top: 13%;
  left: 15%;
  height: 68%;
  aspect-ratio: 588 / 1269;
  border-radius: 3cqw;
  background: #161a20;
  /* Build the bezel outward so neither screen is cropped or rescaled. */
  box-shadow:
    0 0 0 .65cqw #161a20,
    0 0 0 .82cqw #68717b,
    0 0 0 1cqw #303740,
    .3cqw .4cqw 0 1cqw #a3acb6,
    0 2.5cqw 3.5cqw -.5cqw #29436140,
    0 5cqw 7cqw -3cqw #29436135;
}
.reading-preview-phone::before,
.reading-preview-phone::after {
  content: '';
  position: absolute;
  width: .5cqw;
  border-radius: .25cqw;
  background: linear-gradient(90deg, #38404a, #89939e, #323941);
}
.reading-preview-phone::before { left: -1.4cqw; top: 20%; height: 5cqw; box-shadow: 0 6.5cqw 0 #555f6b; }
.reading-preview-phone::after { right: -1.4cqw; top: 29%; height: 8cqw; }
.reading-preview-phone--menu { top: 19%; left: auto; right: 15%; }
.home-page .reading-cover .mockup-img { display: block; position: relative; width: 100%; height: 100%; object-fit: contain; background: transparent; border-radius: inherit; transform: none; }
.home-page .reading-cover .mockup-img[hidden] { display: none; }
.home-page .reading-cover:hover .reading-preview-phone { transform: translateY(-1cqw); }
.reading-preview-phone { transition: transform 250ms ease; }
.home-page .reading-cover .project-preview-fallback { padding: 7cqw 3cqw 4cqw; border-radius: inherit; overflow: hidden; background: #f8f5eb; justify-content: start; }
.home-page .reading-cover .project-preview-fallback > i { display: block; height: 1cqw; margin-top: 2cqw; background: #dadbd3; }
.home-page .reading-cover .project-preview-fallback > i:last-of-type { width: 64%; }
.home-page .reading-cover .project-preview-fallback > b { display: block; height: 20cqw; margin-block: 4cqw; border-radius: 1cqw; background: #d6e3e9; }
@media (prefers-reduced-motion: reduce) {
  .reading-preview-phone { transition: none; }
  .home-page .reading-cover:hover .reading-preview-phone { transform: none; }
}

/* ─── Vibe coding ───────────────────────────────────────── */

.vibe-section { background: #111; color: #fff; padding-top: 104px; padding-bottom: 112px; }
.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  column-gap: 72px;
  align-items: end;
}
.vibe-heading { margin-bottom: 46px; }
.vibe-title { margin: 0; font-family: 'Abril Fatface', serif; font-size: 56px; line-height: 1.08; font-weight: 400; letter-spacing: -.02em; }
.section-subtitle {
  max-width: 520px;
  margin: 0;
  justify-self: end;
  text-align: right;
  font: 400 18px/1.6 'Lato', sans-serif;
}
.vibe-heading .section-subtitle {
  max-width: 520px;
  margin-top: 12px;
  justify-self: start;
  color: #c9c9c9;
  text-align: left;
}
.vibe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 54px 32px; }
.vibe-card { min-width: 0; }
.vibe-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f4;
  color: #fff;
  text-decoration: none;
}
.vibe-media-dark { background: #000; }
.vibe-media-light { background: #fff; }
.vibe-image { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter 450ms ease, transform 500ms cubic-bezier(.2, .75, .25, 1), opacity 300ms ease; }
.vibe-image-contain { object-fit: contain; }
.vibe-image-vibebeat { object-fit: cover; object-position: 50% 58%; }
.vibe-media-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(10, 10, 10, 0);
  transition: background-color 220ms ease;
}
.vibe-media-link:hover::after,
.vibe-media-link:focus-visible::after { background: rgba(10, 10, 10, .22); }
.vibe-media-cta {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #171717;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 220ms ease;
}
.vibe-media-cta svg { display: block; }
.vibe-card:hover .vibe-media-cta, .vibe-card:focus-within .vibe-media-cta { opacity: 1; transform: translateY(0); }
.vibe-media-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (hover: none) { .vibe-media-cta { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vibe-media-cta, .vibe-image { transition: none; } }
.vibe-card-copy { padding-top: 18px; }
.vibe-card h3 { margin: 0 0 8px; font: 700 21px/1.25 'Lato', sans-serif; }
.vibe-card h3 a { color: inherit; text-decoration: none; }
.vibe-card h3 a:hover, .vibe-card h3 a:focus-visible { color: #d2d2d2; }
.vibe-card .vibe-description { max-width: 540px; margin: 0; color: #b8b8b8; font: 400 15.5px/1.55 'Lato', sans-serif; }
.vibe-meta { color: #e2e2e2; font-weight: 700; }

.vibe-project-dialog { width:min(920px,calc(100% - 40px)); max-height:calc(100dvh - 40px); padding:0; border:0; background:#fff; color:#111; box-shadow:0 24px 80px rgba(0,0,0,.32); }
.vibe-project-dialog::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(5px); }
.vibe-dialog-content { padding:clamp(28px,5vw,64px); }
.vibe-dialog-content h2 { margin:8px 0 16px; font:400 clamp(42px,6vw,68px)/1.05 var(--layout-display); letter-spacing:-.03em; }
.vibe-dialog-content h3 { margin:0 0 8px; font:700 18px/1.35 'Lato',sans-serif; }
.vibe-dialog-content p { color:#606060; font:400 16px/1.7 'Lato',sans-serif; }
.vibe-dialog-content img,.vibe-dialog-content video { display:block; width:100%; max-height:520px; margin:30px 0; object-fit:contain; background:#f2f2f2; }
.vibe-dialog-eyebrow { margin:0; color:#777!important; font-size:11px!important; font-weight:700!important; letter-spacing:.12em; text-transform:uppercase; }
.vibe-dialog-lead { max-width:680px; margin:0; font-size:20px!important; }
.vibe-dialog-grid { display:grid; grid-template-columns:1fr 1fr; gap:28px; margin-top:28px; }
.vibe-dialog-note { margin-top:28px; font-size:13px!important; }
.vibe-dialog-demo-wrap { overflow:hidden; margin:30px 0 0; border:1px solid #dedede; background:#f2f2f2; }
.vibe-dialog-demo { display:block; width:100%; height:min(650px,72dvh); border:0; background:#fff; }
.vibe-dialog-action { display:inline-block; margin-top:16px; padding:12px 18px; background:#111; color:#fff; font:700 14px 'Lato',sans-serif; text-decoration:none; }
.vibe-dialog-close { position:sticky; z-index:2; top:16px; float:right; display:grid; place-items:center; width:42px; height:42px; margin:16px 16px -58px 0; border:0; border-radius:50%; background:rgba(255,255,255,.92); cursor:pointer; box-shadow:0 2px 12px rgba(0,0,0,.12); }
.vibe-dialog-close img { width:18px; height:18px; margin:0; background:none; }
@media(max-width:620px){.vibe-project-dialog{width:100%;max-width:none;height:100dvh;max-height:none}.vibe-dialog-grid{grid-template-columns:1fr}.vibe-dialog-content img,.vibe-dialog-content video{margin:24px 0}.vibe-dialog-demo-wrap{margin-top:24px}.vibe-dialog-demo{height:68dvh}}

@media (hover: hover) and (pointer: fine) {
  .vibe-image { filter: grayscale(1) saturate(.2) contrast(.96); }
  .vibe-card:hover .vibe-image, .vibe-card:focus-within .vibe-image { filter: grayscale(0) saturate(1) contrast(1); transform: scale(1.025); }
  .vibe-card:hover .vibe-image-contain, .vibe-card:focus-within .vibe-image-contain { transform: none; }
}

/* ─── Previous work grid ─────────────────────────────────── */

.previous-work-section {
  padding-top: 104px;
  padding-bottom: 112px;
}

.previous-work-heading { margin-bottom: 38px; }
.previous-work-heading .section-subtitle { color: #656565; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 0;
}

.image-block {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 4 / 3;
}

.image-block img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.image-block img.maxtropy-preview {
  padding: 18px;
  box-sizing: border-box;
  object-fit: contain;
  background: #f3f3ef;
}

.image-block:hover img { transform: scale(1.05); }

.image-block .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 200ms ease;
}

.image-block:hover .caption { opacity: 1; }
.image-block:focus-visible { outline: 2px solid #c5c0e7; outline-offset: 4px; }
.image-block:focus-visible img { transform: scale(1.05); }
.image-block:focus-visible .caption { opacity: 1; }

/* ─── About teaser / footer ──────────────────────────────── */

.section.about-teaser { background: #f5f5f5; }

.what-i-do, .want-to-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.right-column p {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 170%;
}

.footer { padding: 100px 60px 40px; margin: 0 24px; }

.yellow-link {
  box-shadow: inset 0 -10px 0 0 #c5c0e7;
  font-weight: 700;
  transition: box-shadow 200ms ease;
}

.yellow-link:hover { box-shadow: inset 0 -22px 0 0 #c5c0e7; }

.copyright {
  margin-top: 60px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: #999;
}

/* ─── Project detail pages ───────────────────────────────── */

.project-hero {
  padding: 22vh 60px 80px;
  background: #f5f5f5;
}

.project-hero .tags-wrapper { margin-top: 24px; }

.project-hero-meta {
  font-family: 'Lato', sans-serif;
  color: #999;
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.case-body {
  margin: 0 24px;
  padding: 60px;
  max-width: 780px;
}

.case-body img {
  display: block;
  margin: 40px 0;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
}

.case-body p { font-family: 'Lato', sans-serif; font-size: 17px; line-height: 180%; margin-bottom: 20px; }

.case-body strong {
  background: #d8d5ec;
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  box-shadow: inset 0 -10px 0 0 #c5c0e7;
}

/* ─── About page ─────────────────────────────────────────── */

.about-page-main {
  display: grid;
  grid-template-columns: 235px minmax(0, 480px);
  column-gap: clamp(96px, 12vw, 180px);
  justify-content: center;
  align-items: start;
  width: calc(100% - 120px);
  max-width: 920px;
  margin: 140px auto 84px;
}

.about-photo {
  display: block;
  width: 235px;
  height: auto;
}

.about-section-label {
  margin: 0 0 18px;
  font-family: 'Lato', sans-serif;
  color: #b7b4b9;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.about-entry { margin-bottom: 34px; }

.about-entry .role {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 7px;
}

.about-entry .meta {
  font-family: 'Lato', sans-serif;
  color: #b7b4b9;
  font-size: 16px;
  line-height: 24px;
}

.about-entry .degree {
  margin-top: 2px;
  margin-bottom: 7px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.speaking-media {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  background: #f3f3f3;
}

.speaking-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 0;
  object-fit: cover;
  background: #f3f3f3;
  filter: grayscale(.82) saturate(.45) contrast(.96);
  transition: filter 260ms ease, transform 300ms ease;
}

.speaking-card:hover .speaking-image,
.speaking-card:focus-within .speaking-image {
  filter: grayscale(0) saturate(1) contrast(1);
}

.education-section,
.contact-section { margin-top: 54px; }

.about-wide-section {
  padding: 12px 0 96px;
}

.about-wide-inner {
  width: calc(100% - 120px);
  max-width: 920px;
  margin: 0 auto;
}

.speaking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.speaking-card .role {
  margin-bottom: 7px;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.speaking-card .degree,
.speaking-card .meta {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 24px;
}

.speaking-card .meta { margin-top: 7px; color: #b7b4b9; }

.about-section-intro {
  margin: 0 0 24px;
  color: #656565;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.about-previous-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-previous-grid .caption {
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .68), rgba(0, 0, 0, 0));
  padding-top: 28px;
}

.about-previous-grid .image-block img {
  filter: none;
  transition: transform 300ms ease;
}

.about-previous-grid .image-block:hover .caption,
.about-previous-grid .image-block:focus-visible .caption {
  opacity: 1;
}

.about-email {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  line-height: 28px;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35em;
  padding: 46px 24px 36px;
  font-family: 'Lato', sans-serif;
  color: #b7b4b9;
  font-size: 14px;
  text-align: center;
}

.site-footer a {
  color: inherit;
  font-weight: 400;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: #000; }

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 991px) {
  h1 { font-size: 5vh; }
  .project {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "heading" "media" "copy";
    gap: 34px;
    padding: 64px 0;
  }
  .what-i-do, .want-to-work { grid-template-columns: 1fr; }
  .about-page-main {
    grid-template-columns: 235px 1fr;
    column-gap: 80px;
    justify-content: stretch;
    width: calc(100% - 64px);
    margin-top: 128px;
  }
  .about-wide-inner { width: calc(100% - 64px); }
  .project .left-column, .project-copy { max-width: 620px; }
  .mockup-column { width: min(100%, 560px); justify-self: center; margin: 0 0 18px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .navbar, .hero-wrap, .section, .footer, .project-hero, .about-hero { padding-left: 32px; padding-right: 32px; margin-left: 0; margin-right: 0; }
  .hero { padding: 16px; }
  .case-body { margin: 0; padding: 40px 24px; }
  .vibe-heading { margin-bottom: 42px; }
  .section-heading-row { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); column-gap: 48px; }
}

@media (max-width: 820px) {
  .section-heading-row { grid-template-columns: 1fr; row-gap: 16px; align-items: start; }
  .section-subtitle { max-width: 520px; justify-self: start; text-align: left; }
  .about-page-main {
    grid-template-columns: 1fr;
    gap: 52px;
    width: calc(100% - 48px);
  }
  .about-photo-column { justify-self: center; }
  .about-resume { width: min(100%, 560px); margin: 0 auto; }
  .about-wide-section { padding: 8px 0 72px; }
  .about-wide-inner { width: calc(100% - 48px); }
}

@media (max-width: 620px) {
  .hero { min-height: auto; }
  .hero-wrap { padding-top: 140px; padding-bottom: 80px; }
  .navbar { margin: 16px 0 0; padding-top: 20px; }
  .nav-link { margin-left: 24px; font-size: 15px; }
  .project { padding: 52px 0; }
  .heading-6 { font-size: 36px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .vibe-grid { grid-template-columns: 1fr; }
  .vibe-section { padding-top: 76px; padding-bottom: 84px; }
  .vibe-title { font-size: 44px; }
  .section-subtitle { max-width: 520px; font-size: 17px; }
  .vibe-heading { margin-bottom: 40px; }
  .previous-work-heading { margin-bottom: 32px; }
  .vibe-grid { gap: 46px; }
  .previous-work-section { padding-top: 76px; padding-bottom: 84px; }
  .about-page-main {
    grid-template-columns: 1fr;
    gap: 52px;
    width: auto;
    margin: 120px 24px 64px;
  }
  .about-photo { width: min(100%, 300px); }
  .speaking-grid {
    grid-template-columns: minmax(0, 420px);
    justify-content: center;
    gap: 42px;
  }
  .about-previous-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile home is composed for a narrow reading column, not scaled by height. */
@media (min-width: 621px) and (max-width: 991px) {
  .home-page .hero-title { font-size: clamp(38px, 5.4vw, 54px); line-height: 1.22; }
  .home-page .hero-wrap { padding-top: clamp(104px, 16vh, 160px); }
}
@media (max-width: 620px) {
  .home-page { --layout-gutter: 32px; }
  .home-page .hero-wrap { padding: 104px 16px 44px; }
  .home-page .headline-wrap { max-width: none; margin-bottom: 24px; }
  .home-page .hero-title { font-size: clamp(30px, 9.2vw, 46px); line-height: 1.22; letter-spacing: -.025em; }
  .home-page .hero-line { text-wrap: balance; }
  .home-page .hero-greeting { margin-bottom: 18px; }
  .home-page .hero-paragraph { max-width: 40ch; font-size: 16px; line-height: 1.65; }
  .home-page .scroll-wrapper { display: none; }
  .home-page .button-wrapper { margin-top: 24px; padding: 0 8px 8px 0; }
  .home-page .button-border { box-shadow: 0 0 0 2px #000; transform: translate(6px, 6px); }
  .home-page .button { min-width: 0; min-height: 44px; padding: 9px 20px; border-width: 2px; box-shadow: 0 0 0 2px #000; font-size: 14px; line-height: 1.6; transform: translate(-6px, -6px); }
  .home-page .section { padding-inline: 32px; }
  .home-page #Portfolio { padding-block: 8px 24px; scroll-margin-top: 64px; }
  .home-page .project { gap: 22px; padding-block: 44px; }
  .home-page .heading-5 { font-size: 10px; line-height: 1.5; letter-spacing: .12em; }
  .home-page .microsoft-label { gap: 7px; }
  .home-page .microsoft-label img { width: 13px; height: 13px; }
  .home-page .heading-6 { margin-bottom: 16px; font-size: clamp(27px, 7.7vw, 34px); line-height: 1.15; letter-spacing: -.025em; }
  .home-page .tags-wrapper { gap: 6px 8px; }
  .home-page .tag { margin: 0; padding: 5px 8px; font-size: 10px; line-height: 14px; }
  .home-page .tag-lock { display: none; }
  .home-page .portfolio-paragraph { font-size: 16px; line-height: 1.65; }
  .home-page .mockup-column { margin: 0; min-width: 0; }
  .home-page .mockup-column:hover .mockup-img { transform: none; }
  .home-page .project-preview-fallback { padding: 26px; }
  .home-page .project-preview-fallback > span { padding-right: 22px; font-size: 9px; }
  .home-page .project-preview-fallback > strong { font-size: clamp(29px, 8.3vw, 40px); }
  .home-page .mockup-column .dots { width: 64px; left: -12px; bottom: -12px; }
  .home-page .mockup-column:not(.protected-project) .mockup-hover { display: none; }
  .home-page .protected-project .mockup-hover { top: 12px; right: 12px; width: 36px; height: 36px; opacity: 1; transform: none; }
  .home-page .project-lock { width: 20px; height: 20px; }
  .home-page .vibe-section { padding-block: 56px; }
  .home-page .vibe-title { font-size: 36px; }
  .home-page .vibe-heading { margin-bottom: 28px; }
  .home-page .section-subtitle { font-size: 16px; }
  .home-page .vibe-grid { gap: 32px; }
  .home-page .vibe-card-copy { padding-top: 14px; }
  .home-page .vibe-image { filter: none; }
  .home-page .vibe-card h3 { font-size: 20px; }
  .home-page .vibe-card .vibe-description { font-size: 14px; line-height: 1.6; }
}

@media print {
  .navbar, .scroll-wrapper { display: none; }
}

/* ══════════════════════════════════════════════════════════
   Case-study pages (Foca / Automotive-AI) — full-fidelity
   replica of the original Webflow class structure.
   ══════════════════════════════════════════════════════════ */

/* ─── Page-load motion (fade-up + highlight reveal) ──────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translate3d(0, 60px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes scaleInX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.headline-wrap { overflow: visible; }

.hero-wrap .headline-wrap {
  animation: fadeUp 800ms ease 0ms both;
}

.highlight {
  transform: scaleX(1);
  transform-origin: 0% 50%;
  animation: scaleInX 600ms cubic-bezier(.25,.46,.45,.94) both;
}

.hero-wrap .headline-wrap .highlight-box:nth-of-type(1) .highlight { animation-delay: 800ms; }
.hero-wrap .headline-wrap .highlight-box:nth-of-type(2) .highlight { animation-delay: 1400ms; }
.hero-paragraph, .hero-wrap .button-wrapper {
  animation: fadeUp 800ms ease both;
}
.hero-paragraph { animation-delay: 200ms; }
.hero-wrap .button-wrapper { animation-delay: 200ms; }

@keyframes scrollLine {
  0%, 55.55% { transform: translateY(0); animation-timing-function: cubic-bezier(.55,.055,.675,.19); }
  77.77% { transform: translateY(110px); }
  77.78% { transform: translateY(-110px); animation-timing-function: cubic-bezier(.215,.61,.355,1); }
  100% { transform: translateY(0); }
}

.scroll-arrow { animation: scrollLine 3.6s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.what-i-do .highlight,
.want-to-work .highlight { animation-delay: 100ms; }

/* ─── Case hero (landing-session) ────────────────────────── */

.landing-session {
  display: flex;
  width: 100%;
  height: 100vh;
  padding: 0 60px;
  align-items: center;
  justify-content: center;
}

.landing-session.foca { background: #f2f0ea; }
.landing-session.aai { background: #eaf2ea; }

.landing-session .columns-3 {
  display: flex;
  width: 85%;
  max-width: 1200px;
  margin-right: 20px;
  margin-left: 70px;
  align-items: center;
  transform: translateY(-16px);
}

.landing-session .col-copy { flex: 0 0 41.6667%; max-width: 41.6667%; }
.landing-session .col-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-26px);
}

.myheading1 {
  margin-bottom: 20px;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 32px;
  line-height: 1.5;
  font-weight: 700;
}

.paragraph-3 {
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #333;
}

.text-block-21 {
  margin-bottom: 20px;
  font-family: 'Lato', sans-serif;
  color: rgba(0, 0, 0, 0.55);
  font-size: 18px;
}

.store-badges { display: flex; align-items: center; margin-top: 20px; }

.store-badges a {
  margin-right: 16px;
  display: inline-block;
  transition: transform 200ms ease, opacity 200ms ease;
}

.store-badges a:hover { transform: translateY(-3px); opacity: 0.8; }

.store-badges img { width: 150px; display: block; }

.landing-session img.hero-mockup {
  display: block;
  width: 100%;
  max-width: 520px;
}

/* ─── Intro / brief block under hero ─────────────────────── */

.intro-section {
  width: calc(100% - 200px);
  max-width: 1300px;
  margin: 0 auto;
  padding: 140px 0 100px;
  display: flex;
  gap: 135px;
  align-items: flex-start;
}

.intro-meta { flex: 0 0 300px; }

.intro-meta .label {
  display: block;
  margin-bottom: 4px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-meta p {
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

.intro-meta a { color: rgba(0, 0, 0, 0.6); border-bottom: 1px solid rgba(0,0,0,0.3); }
.intro-meta a:hover { color: #000; border-color: #000; }

.intro-body { flex: 1; }

.heading-14 {
  max-width: 600px;
  margin-bottom: 20px;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 5vh;
  font-weight: 700;
  line-height: 1.3;
}

.intro-body p {
  font-family: 'Lato', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #222;
  margin-bottom: 16px;
}

.intro-body a { border-bottom: 1px solid #c5c0e7; }

/* ─── Case study body container ──────────────────────────── */

.case-container {
  width: calc(100% - 200px);
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 0;
  background: #fff;
}

.landing-session.aai + .case-container {
  width: calc(100% - 17.7vw);
  max-width: 1060px;
  margin-right: 0;
  margin-left: 17.7vw;
}

.landing-session.aai + .case-container .narrative-block > p {
  color: #000 !important;
  font-size: 16px;
}

.landing-session.aai + .case-container .narrative-block:first-child > p {
  max-width: 100% !important;
}

.landing-session.aai + .case-container .narrative-block:first-child .banner-row img {
  max-width: 80% !important;
}

/* Section title bars ("Facts", "Process", "UI Design", "Outcome") */

.section-title {
  margin: 0 0 20px 0;
  padding-left: 0;
  font-family: 'Times New Roman', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

/* Fact / process banner rows (image with caption) */

.banner-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 100px;
}

.banner-row img { width: 100%; max-width: 100%; box-shadow: none; }
.banner-row .caption {
  margin-top: 10px;
  font-family: 'Lato', sans-serif;
  color: rgba(0, 0, 0, 0.5);
  text-align: center;
}

/* Narrative block: icon + heading + paragraph */

.narrative-block { margin: 100px 0; padding-bottom: 20px; }

.narrative-block .heading {
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.narrative-row { display: flex; gap: 40px; align-items: center; }

.narrative-row .icon-col { flex: 0 0 33%; text-align: center; }
.narrative-row .icon-col img { width: 100px; }
.narrative-row .text-col { flex: 1; }
.narrative-row .text-col p {
  font-family: 'Lato', sans-serif;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  font-size: 16px;
}
.narrative-row .text-col strong { color: #000; }

/* Labeled research/process rows: left label column + right image */

.labeled-row {
  display: flex;
  gap: 40px;
  margin: 100px 0;
  align-items: flex-start;
}

.labeled-row .label-col {
  flex: 0 0 220px;
  margin-left: 20px;
}

.labeled-row .label-col .heading {
  margin-bottom: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.labeled-row .label-col .sub {
  max-width: 220px;
  font-family: 'Lato', sans-serif;
  color: rgba(0, 0, 0, 0.5);
  font-size: 18px;
  line-height: 1.5;
}

.labeled-row .content-col { flex: 1; }
.labeled-row .content-col img { width: 100%; box-shadow: none; margin: 0; }
.labeled-row .content-col img + img { margin-top: 20px; }

.labeled-row .content-col p {
  font-family: 'Lato', sans-serif;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 16px;
}
.labeled-row .content-col .img-caption {
  margin-top: 10px;
  font-family: 'Lato', sans-serif;
  color: #000;
  font-size: 14px;
  text-align: center;
}

.labeled-row.dev { margin-bottom: 140px; }

/* Section container for a whole topic (background box variant) */

.text-paragraph { max-width: 1200px; margin: 20px auto 0; }

.myheading3 {
  margin: 60px 0 10px;
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.myheading1-4 {
  margin: 40px 0 10px;
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

/* UI Design showcase rows — Foca feature highlights */

.feature-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 60px 100px;
}

.feature-row.reverse { flex-direction: row-reverse; }

.feature-row .shots {
  flex: 0 0 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 500px;
}
.feature-row .shots img {
  flex: 0 1 auto;
  height: 100%;
  width: auto;
  max-width: 48%;
  object-fit: contain;
  box-shadow: none;
  margin: 0;
}

.feature-row .copy { flex: 1; padding: 0 20px; }
.feature-row .copy h3 {
  margin-bottom: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 700;
}
.feature-row .copy p {
  font-family: 'Lato', sans-serif;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.85;
}

/* Onboarding / settings screenshot strips */

.shot-strip { padding: 60px 140px 40px; }

.shot-strip .strip-title {
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 20px;
}

.shot-strip .strip-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: 500px;
}

.shot-strip .strip-row img {
  max-height: 500px;
  width: 100%;
  object-fit: contain;
  box-shadow: none;
  margin: 0;
}

/* Next-project link */

.next-page {
  display: flex;
  justify-content: center;
  margin: 80px 0 40px;
}

.next-page a {
  display: inline-block;
  padding: 14px 34px;
  background: #000;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  transition: background 200ms ease;
}

.next-page a:hover { background: #252525; }

@media (max-width: 900px) {
  .landing-session .columns-3 { flex-direction: column; transform: none; }
  .landing-session .col-copy, .landing-session .col-image { max-width: 100%; flex: none; }
  .landing-session .col-image { transform: none; }
  .intro-section { width: 100%; flex-direction: column; padding: 60px 24px; }
  .intro-meta { flex: none; }
  .case-container,
  .landing-session.aai + .case-container { width: 100%; padding: 40px 24px; }
  .landing-session.aai + .case-container { margin-right: auto; margin-left: auto; }
  .narrative-row, .labeled-row, .feature-row { flex-direction: column; }
  .labeled-row .label-col { margin-left: 0; }
  .feature-row { margin: 60px 0; }
  .feature-row .shots { width: 100%; }
  .shot-strip { padding: 40px 24px; }
  .shot-strip .strip-row { grid-template-columns: repeat(2, 1fr); height: auto; }
}
