@import url("https://fonts.googleapis.com/css?family=Montserrat:400,500,600");

:root {
  --bg: #ffffff;
  --muted: #f5f5f5;
  --ink: #151515;
  --soft-ink: #666;
  --line: #e5e5e5;
  --accent: #e94f45;
  --accent-dark: #c93f36;
  --dark: #0b0c0e;
  --max: 1120px;
  --radius: 3px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Montserrat", "Noto Sans TC", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(233, 79, 69, .48);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  color: #fff;
  isolation: isolate;
  transition: height .25s ease, box-shadow .25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background .25s ease, backdrop-filter .25s ease;
}

.site-header.scrolled {
  height: 64px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.site-header.scrolled::before {
  background: rgba(10, 10, 10, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  position: relative;
  z-index: 3;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.brand span {
  color: var(--accent);
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 28px;
}

.nav a {
  position: relative;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .86;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .2s ease;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition: transform .25s ease, opacity .2s ease;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  color: #fff;
  background-image: url("/assets/images/hero.webp");
  background-size: cover;
  background-position: center 55%;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 6, 8, .78) 0%, rgba(4, 6, 8, .48) 48%, rgba(4, 6, 8, .2) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .8) .6px, transparent .7px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: .23em;
}

.section-kicker {
  margin: 0 0 14px;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: .15em;
}

.eyebrow {
  color: rgba(255, 255, 255, .85);
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-size: 8.6rem;
  line-height: .95;
  letter-spacing: 0;
  font-weight: 900;
}

.hero h1 span {
  color: var(--accent);
}

.hero-role {
  min-height: 1.5em;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
}

.hero-role #typedText {
  color: #fff;
}

#typedText::after {
  content: "_";
  display: inline-block;
  margin-left: .08em;
  animation: typing-cursor-blink .78s steps(1, end) infinite;
}

#typedText.is-typing::after {
  opacity: 1;
  animation: none;
}

@keyframes typing-cursor-blink {
  0%,
  46% {
    opacity: 1;
  }

  47%,
  100% {
    opacity: 0;
  }
}

.hero-copy {
  margin: 18px 0 30px;
  letter-spacing: .26em;
  max-width: 590px;
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  justify-content: left;
  gap: 25px;
  margin-top: -10px;
  margin-bottom: 25px;
}

.social-links a {
  color: white;
  text-decoration: none;
  font-size: 23px;
}

.social-links a:hover {
  color: #aaa;
}


.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .04);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, .13);
}

.button-light {
  color: #111;
  background: #fff;
}

.scroll-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 26px;
  width: 25px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 20px;
  transform: translateX(-50%);
}

.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  background: #fff;
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrollDot 1.7s infinite;
}

@keyframes scrollDot {
  0% {
    transform: translate(-50%, 0);
    opacity: 0;
  }

  25% {
    opacity: 1;
  }

  75% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, 15px);
    opacity: 0;
  }
}

.section {
  padding: 110px 0;
}

.section-muted {
  background: var(--muted);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1fr);
  column-gap: 72px;
  max-width: none;
  margin: 0 0 58px;
  text-align: left;
}

.section-heading .section-kicker {
  grid-column: 1;
}

.section-heading h2 {
  grid-column: 1;
}

.section-heading>p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0 0 5px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.section-heading.work-heading {
  display: block;
  max-width: 690px;
  margin: 0 auto 54px;
  text-align: center;
}

.section-heading.work-heading .section-kicker,
.section-heading.work-heading h2,
.section-heading.work-heading>p:last-child {
  grid-column: auto;
  grid-row: auto;
}

.section-heading.work-heading>p:last-child {
  margin: 0;
  padding: 0;
  border: 0;
}

.section-kicker {
  color: var(--accent);
}

.section-heading h2,
.about-copy h2,
.contact-section h2 {
  margin: 0 0 12px;
  font-size: 3.4rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p,
.about-copy>p,
.contact-section p {
  color: var(--soft-ink);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, .78fr) minmax(0, 1.22fr);
  gap: 78px;
  align-items: center;
}

.portrait {
  position: relative;
  display: block;
  min-height: 560px;
  color: inherit;
}

.portrait img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 52%;
  filter: saturate(.85) contrast(1.03);
  transition: filter .28s ease, transform .28s ease;
}

.portrait:hover img {
  filter: saturate(.95) contrast(1.05);
  transform: scale(1.012);
}

.portrait:focus-visible {
  outline: 3px solid rgba(233, 79, 69, .48);
  outline-offset: 8px;
}

.portrait-frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 8px solid #eee;
  z-index: -1;
}

.about-copy h2 span {
  color: var(--accent);
}

.roles {
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #333 !important;
}

.roles b {
  color: var(--accent);
  padding: 0 8px;
}

.skills {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.skill>div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.skill i {
  display: block;
  height: 6px;
  background: #e9e9e9;
  position: relative;
  overflow: hidden;
}

.skill i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}

.reveal-ready .skill i::after {
  transform: scaleX(0);
}

.reveal-ready .skill.visible i::after {
  transform: scaleX(1);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #fff;
  padding: 42px 34px;
  border: 1px solid #ececec;
  position: relative;
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .08);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0 0 24px;
  border: 1px solid #ddd;
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.service-card p {
  margin: 0;
  color: var(--soft-ink);
  font-size: .94rem;
}

.stats-band {
  padding: 66px 0;
  color: #fff;
  background: var(--dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 3.1rem;
  letter-spacing: 0;
}

.stat span {
  color: rgba(255, 255, 255, .58);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 106px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 54px;
  padding: 18px 0 34px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 101px;
  top: 25px;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.timeline-year {
  color: var(--accent);
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-align: right;
}

.timeline-item h3 {
  margin: -4px 0 6px;
  font-size: 1.15rem;
}

.timeline-item p {
  margin: 0;
  color: var(--soft-ink);
}

.cta-section {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
  text-align: center;
  color: #fff;

  background: url("/assets/images/cta.webp") center 51% / cover fixed no-repeat;
}

/* Recreate the original fixed, softly blurred background treatment. */
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;

  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: rgba(8, 10, 12, .35);

  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, .65);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .75rem;
}

.cta-section h2 {
  margin: 0 0 26px;
  font-size: 3.5rem;
  letter-spacing: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.work-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #111;
  color: #fff;
  isolation: isolate;
}

.work-image {
  position: absolute;
  inset: 0;
  transition: transform .45s ease, filter .45s ease;
}

.work-card:hover .work-image,
.work-card:focus-visible .work-image {
  transform: scale(1.04);
  filter: brightness(.55);
}

.photo-image {
  background: url("/assets/images/work.webp") center 54% / cover;
}

.code-image {
  display: grid;
  place-items: center;
  padding: 30px;
  background: #0b0f10;
  font-family: "Cascadia Code", Consolas, monospace;
  color: #b7ffc2;
  font-size: .78rem;
}

.cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.ai-image {
  display: grid;
  place-items: center;
  background: #111827;
  overflow: hidden;
}

.ai-image strong {
  position: relative;
  z-index: 2;
  font-size: 4.8rem;
  letter-spacing: 0;
}

.ai-grid {
  position: absolute;
  inset: -30%;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 34px 34px;
  transform: perspective(300px) rotateX(55deg);
}

.work-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 32px;
  z-index: 3;
  background: linear-gradient(transparent, rgba(0, 0, 0, .92));
  transform: translateY(34px);
  transition: transform .3s ease;
}

.work-card:hover .work-overlay,
.work-card:focus-visible .work-overlay {
  transform: translateY(0);
}

.work-overlay p {
  margin: 0;
  font-size: .7rem;
  color: rgba(255, 255, 255, .6);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.work-overlay h3 {
  margin: 6px 0 12px;
  font-size: 1.35rem;
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  opacity: 0;
  transition: opacity .25s ease;
}

.work-link b {
  font-size: 1rem;
}

.work-card:hover .work-link,
.work-card:focus-visible .work-link {
  opacity: 1;
}

.contact-section {
  background: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 90px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 26px;
  font-weight: 700;
}

.contact-links a:hover {
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #ccc;
  outline: none;
  background: transparent;
  resize: vertical;
  transition: border-color .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form .button {
  justify-self: start;
  margin-top: 8px;
  border: 0;
}

.form-note {
  min-height: 1.2em;
  margin: 0 !important;
  font-size: .84rem;
}

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: #777;
  font-size: .8rem;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer a:hover {
  color: var(--accent);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.legacy-switch {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #c9c9c9;
  border-radius: 3px;
  color: #777;
  background: transparent;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.legacy-switch:hover,
.legacy-switch:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(233, 79, 69, .05);
}

.legacy-boot {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #e7e7e7;
  background: #050505;
  font-family: "Cascadia Code", Consolas, monospace;
  opacity: 0;
  transition: opacity .18s ease;
}

.legacy-boot[hidden] {
  display: none;
}

.legacy-boot.is-active {
  opacity: 1;
}

body.legacy-transitioning {
  overflow: hidden;
}

.legacy-boot-screen {
  width: min(100%, 520px);
}

.legacy-boot-screen strong {
  display: block;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .16em;
}

.legacy-boot-screen p {
  min-height: 1.6em;
  margin: 0 0 16px;
  font-size: clamp(.78rem, 2vw, .95rem);
}

.legacy-progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  height: 12px;
  padding: 2px;
  border: 1px solid #707070;
}

.legacy-progress span {
  background: #008080;
  opacity: .16;
  animation: legacy-load .8s steps(1, end) forwards;
}

.legacy-progress span:nth-child(2) { animation-delay: .08s; }
.legacy-progress span:nth-child(3) { animation-delay: .16s; }
.legacy-progress span:nth-child(4) { animation-delay: .24s; }
.legacy-progress span:nth-child(5) { animation-delay: .32s; }
.legacy-progress span:nth-child(6) { animation-delay: .4s; }
.legacy-progress span:nth-child(7) { animation-delay: .48s; }
.legacy-progress span:nth-child(8) { animation-delay: .56s; }

@keyframes legacy-load {
  to {
    opacity: 1;
  }
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    position: relative;
    z-index: 3;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    max-height: 100dvh;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 25px;
    overflow: hidden;
    overscroll-behavior: contain;
    background: rgba(8, 8, 8, .97);
    pointer-events: none;
    visibility: hidden;
    transform: translate3d(0, -100%, 0);
    transition: transform .3s ease, visibility 0s linear .3s;
  }

  .nav.open {
    pointer-events: auto;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition-delay: 0s;
  }

  .nav a {
    display: block;
    max-width: calc(100vw - 48px);
    font-size: 1.05rem;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
  }

  .hero {
    min-height: 100svh;
    place-items: center;
    background-position: center 58%;
  }

  .hero-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(90deg, rgba(0, 0, 0, .68), rgba(0, 0, 0, .42) 48%, rgba(0, 0, 0, .24));
    transform: scale(1.015);
  }

  .hero-grain {
    opacity: .08;
  }

  .hero-content {
    padding-top: 50px;
    text-align: center;
  }

  .hero h1 {
    display: block;
    max-width: none;
    color: #fff;
    font-size: 5rem;
    line-height: .98;
  }

  .hero h1::before {
    content: "";
  }

  .hero-role {
    min-height: 4.1rem;
    margin: 14px 0 0;
    color: #fff;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1;
  }

  .hero-role #typedText {
    display: inline;
    min-width: 0;
    color: inherit;
    font-size: inherit;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: capitalize;
  }

  .hero-copy {
    max-width: 650px;
    margin: 28px auto 30px;
    font-size: 1.08rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: -10px;
    margin-bottom: 25px;
  }

  .social-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
  }

  .social-links a:hover {
    color: #aaa;
  }

  .section-heading,
  .section-heading.work-heading {
    display: block;
    max-width: 690px;
    margin: 0 auto 54px;
    text-align: center;
  }

  .section-heading .section-kicker,
  .section-heading h2,
  .section-heading>p:last-child,
  .section-heading.work-heading .section-kicker,
  .section-heading.work-heading h2,
  .section-heading.work-heading>p:last-child {
    grid-column: auto;
    grid-row: auto;
  }

  .section-heading>p:last-child,
  .section-heading.work-heading>p:last-child {
    margin: 0;
    padding: 0;
    border: 0;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-section h2 {
    font-size: 3rem;
  }

  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .portrait {
    max-width: 520px;
    min-height: 460px;
  }

  .portrait img {
    height: 460px;
  }

  .service-card {
    text-align: center;
  }

  .service-icon {
    margin-inline: auto;
  }

  .card-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat strong {
    font-size: 2.7rem;
  }

  .photo-image {
    background-image: url("/assets/images/hero.webp");
    background-position: center 58%;
  }

  .cta-section h2 {
    font-size: 3rem;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding-inline: 20px;
  }

  .hero {
    background-position: center 56%;
  }

  .hero-overlay {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    background: rgba(0, 0, 0, .54);
  }

  .hero-role {
    min-height: 5.4rem;
    font-size: 2.35rem;
  }

  .hero-role #typedText {
    font-size: inherit;
    line-height: 1.15;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy {
    max-width: 330px;
    font-size: .98rem;
  }

  .section-heading h2,
  .about-copy h2,
  .contact-section h2 {
    font-size: 2.35rem;
  }

  .stat strong {
    font-size: 2.4rem;
  }

  .cta-section h2 {
    font-size: 2.5rem;
  }

  .section {
    padding: 82px 0;
  }

  .portrait {
    min-height: 420px;
  }

  .portrait img {
    height: 420px;
  }

  .portrait-frame {
    inset: 12px -10px -12px 12px;
    border-width: 6px;
  }

  .card-grid,
  .work-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 390px;
  }

  .timeline::before {
    left: 13px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 40px;
  }

  .timeline-item::before {
    left: 8px;
    top: 24px;
  }

  .timeline-year {
    text-align: left;
  }

  .cta-section::before {
    background-attachment: scroll;
    filter: blur(8px) brightness(.50) contrast(.84) saturate(.72);
  }

  .footer .container {
    gap: 12px;
    flex-direction: column;
  }
}

@media (max-width: 340px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-role {
    font-size: 2.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
