/* The portrait enters once the initial per-letter name reveal has finished. */
@media (prefers-reduced-motion: no-preference) {
  .identity-hero .hero .portrait-idle {
    animation: portraitEntrance 2s cubic-bezier(.22, 1, .36, 1) both,
      portraitFloat 7s ease-in-out 2s infinite;
  }
}
.identity-hero.hero-name-entering .hero .portrait-idle {
  animation: none; opacity: 0; filter: none; transform: translate3d(0, 90px, 0);
}
/* Focused visual adjustments; keep the existing motion and content systems. */
#editing .vertical-tile { width: clamp(115px, 13.6vw, 196px); }
@media (max-width: 760px) {
  #editing .vertical-tile { width: clamp(98px, 27.2vw, 162px); }
}
#project-dialog #dialog-label, #project-dialog #dialog-description { display: none; }
#project-dialog[open] .dialog-top { justify-content: flex-end; }
/* Separate the side previews from the central frame; keep the videos clickable. */
#work .media-demo-label, #work .preview-play, #work .project-description p { display: none; }
@media (min-height: 560px) {
  .cinema-on #work .projects > .project[data-work-depth="1"] { transform: translateX(calc(var(--work-inward, 0%) * .55)) scale(.72); }
  .cinema-on #work .projects > .project[data-work-depth="2"] { transform: translateX(calc(var(--work-inward, 0%) * .55)) scale(.59); }
}
.identity-hero .hero { isolation: isolate; background: #191918; }
.identity-hero .hero::before {
  content: ''; position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 24% 68%, #b19a707d, transparent 35%),
    radial-gradient(ellipse at 78% 35%, #e8d7b552, transparent 34%),
    radial-gradient(ellipse at 53% 90%, #80613970, transparent 40%);
  filter: blur(28px); animation: warmAtmosphere 7s ease-in-out infinite alternate;
}
.identity-hero .hero-grid { display: none; }
@keyframes warmAtmosphere {
  from { transform: translate3d(-10%, 7%, 0) scale(1.02) rotate(-5deg); }
  to { transform: translate3d(12%, -10%, 0) scale(1.18) rotate(12deg); }
}
.identity-hero .hero-copy, .cinema-on .identity-hero .hero-copy {
  margin-top: -135px; animation: none; translate: none;
}
.experience-grid > div { border-top: 0; padding-top: 0; min-width: 0; }
.experience .experience-grid h2 {
  font-size: clamp(32px, 4vw, 58px); line-height: 1.05;
  color: var(--paper-ink); margin: 0 0 40px; min-height: 2.1em;
}
.experience .experience-grid h2 span { color: inherit; }
.experience-list, .experience-skills { border-top: 1px solid #6853314d; padding-top: 20px; }
.toolkit-logo { position: relative; isolation: isolate; }
.toolkit-logo::after {
  content: ''; position: absolute; top: 0; left: 50%;
  width: clamp(39px, 3.8vw, 54px); aspect-ratio: 1; border-radius: 9px;
  pointer-events: none; opacity: 0; transform: translateX(-50%);
  background: linear-gradient(115deg, transparent 30%, #ffffffbd 48%, transparent 66%);
  background-size: 300% 100%; background-position: 100% 0;
}
.toolkit-logo:is(:hover, :focus-visible)::after { opacity: 1; animation: toolkitShine .85s ease-out forwards; }
.toolkit-logo:is(:hover, :focus-visible) img { filter: saturate(1) brightness(1.12) drop-shadow(0 4px 10px #b19a7055); }
@keyframes toolkitShine { to { background-position: 0% 0; opacity: 0; } }
.marquee, .cinema-on .marquee {
  position: relative; height: clamp(150px, 15vw, 220px); padding: 0;
  /* Overlap both sections and hide the color seam beneath the front ribbon. */
  margin: calc(clamp(150px, 15vw, 220px) / -2) 0;
  border: 0; z-index: 4;
  background: linear-gradient(176deg, var(--paper) 49.9%, var(--bg) 50.1%);
  overflow: hidden; transform: none !important; isolation: isolate;
}
.marquee > .ribbon, .cinema-on .marquee > .ribbon {
  position: absolute; top: 50%; left: -5%; width: 110%; height: auto;
  padding: 18px 0; overflow: hidden; animation: none !important;
  line-height: 1.2; transform: translateY(-50%) rotate(-4deg) !important;
  background: var(--ice); color: #25231f; border-block: 1px solid #b19a70;
}
.marquee > .ribbon-back, .cinema-on .marquee > .ribbon-back {
  transform: translateY(-50%) rotate(4deg) !important;
  background: #665437; color: #fff1d9;
}
.marquee .ribbon-track { display: flex; width: max-content; animation: ribbonFlow 44s linear infinite; }
.marquee .ribbon-back .ribbon-track { animation-direction: reverse; }
.marquee .ribbon-group { flex-shrink: 0; margin: 0; color: inherit; font-size: clamp(20px, 2.5vw, 35px); font-weight: 600; }
.marquee .ribbon-group i { margin: 0 30px; color: inherit; font-style: normal; }
@keyframes ribbonFlow { to { transform: translateX(-50%); } }
/* Retain the nodes used by enhancement scripts, without decorative captions. */
.section-label, .editing-heading > div, .graphic-heading > p,
.process-heading > p, .work-scroll-hint, .wall-toolbar > .tiny,
.contact-placeholder { display: none !important; }
@media (max-width: 760px) {
  .identity-hero .hero-copy, .cinema-on .identity-hero .hero-copy { margin-top: -95px; }
  .experience .experience-grid h2 { font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 24px; }
  .marquee .ribbon-group i { margin-inline: 18px; }
}
@media (max-width: 600px) {
  .experience .experience-grid h2 { font-size: 38px; min-height: 0; }
  .experience-grid { gap: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .identity-hero .hero::before, .marquee .ribbon-track,
  .toolkit-logo:is(:hover, :focus-visible)::after { animation: none; }
}

/* Keep the experience watermark above the overlapping ribbon area. */
.experience .experience-watermark { bottom: calc(clamp(150px, 15vw, 220px) / 2 + 24px); }

/* Remove the reserved second title line and bring both lists closer. */
.experience .experience-grid h2 { min-height: 0; margin-bottom: 24px; }

/* Shared placement and type for the three portfolio categories. */
#work .portfolio-heading, #editing .portfolio-heading, #graphics .portfolio-heading {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 10px; width: 100%; margin: 0 0 32px; text-align: center;
}
#work .work-eyebrow, #editing .portfolio-heading::before, #graphics .portfolio-heading::before {
  display: block; height: 20px; font-size: 14px; line-height: 20px;
  font-weight: 400; letter-spacing: .08em; color: var(--ice);
}
#editing .portfolio-heading::before, #graphics .portfolio-heading::before { content: ''; }
#work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 {
  margin: 0; font-size: clamp(30px, 4vw, 58px); line-height: 1.12;
  font-weight: 600; letter-spacing: -.04em; color: var(--ink);
}
.cinema-on #work .work-stage { justify-content: flex-start; padding: 100px 7% 48px; }
#work:not(:has(.work-stage)), #editing, #graphics { padding: 100px 7% 48px; }
#work .filters { justify-content: center; }
@media (max-width: 760px) {
  .cinema-on #work .work-stage, #work:not(:has(.work-stage)), #editing, #graphics { padding: 90px 6% 40px; }
  #work .work-eyebrow, #editing .portfolio-heading::before, #graphics .portfolio-heading::before { font-size: 12px; }
}

/* Give the category headings breathing room below the crossing ribbons. */
.cinema-on #work .work-stage,
#work:not(:has(.work-stage)), #editing, #graphics { padding-top: 150px; }
#work .work-eyebrow,
#editing .portfolio-heading::before, #graphics .portfolio-heading::before {
  height: 30px; font-size: clamp(18px, 1.6vw, 23px); line-height: 30px;
  font-weight: 500; letter-spacing: .02em;
}
#work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 {
  font-size: clamp(32px, 4vw, 58px); font-weight: 700; line-height: 1.05;
  letter-spacing: -.055em; text-transform: uppercase; color: var(--ice);
}
@media (max-width: 760px) {
  .cinema-on #work .work-stage,
  #work:not(:has(.work-stage)), #editing, #graphics { padding-top: 125px; }
  #work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 {
    font-size: clamp(28px, 4.5vw, 40px);
  }
}
@media (max-width: 600px) {
  #work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 { font-size: 38px; }
}

/* Increase the portfolio label by 20% and category titles by 40%. */
#work .work-eyebrow,
#editing .portfolio-heading::before, #graphics .portfolio-heading::before {
  height: 36px; font-size: clamp(21.6px, 1.92vw, 27.6px); line-height: 36px;
}
#work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 {
  font-size: clamp(44.8px, 5.6vw, 81.2px);
}
@media (max-width: 760px) {
  #work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 {
    font-size: clamp(39.2px, 6.3vw, 56px);
  }
}
@media (max-width: 600px) {
  #work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 { font-size: 53.2px; }
}

@font-face {
  font-family: 'Montserrat'; src: url('assets/fonts/montserrat-variable.ttf') format('truetype');
  font-style: normal; font-weight: 100 900; font-display: swap;
}
#work .portfolio-heading h2, #editing .portfolio-heading h2, #graphics .portfolio-heading h2 {
  font-family: 'Montserrat', Arial, sans-serif; font-weight: 600;
}
.skills-accordion { border-color: #6853314d; scroll-margin-top: 110px; }
.skills-accordion details { border-color: #68533130; padding-block: 18px; }
.skills-accordion summary { gap: 14px; }
.experience .skills-accordion h3 { margin: 0; font-size: clamp(18px, 2vw, 23px); }
.skills-accordion .service-index, .skills-accordion .service-toggle { color: #9c8053; }
.skills-accordion details > p { color: var(--paper-ink); padding-left: 30px; }
.skills-accordion .service-tags { padding-left: 30px; }
.skills-accordion .service-tags span { color: #685331; border-color: #68533140; }

/* Hero atmosphere, social feedback and a softer portrait edge. */
.hero-socials { gap: 16px; }
.hero-socials a { width: 48px; height: 48px; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.hero-socials svg { width: 27px; height: 27px; }
.hero-socials a[role="button"] { cursor: pointer; }
.hero-socials a:is(:hover, :focus-visible) { transform: translateY(-4px); background: #665437; box-shadow: 0 5px 20px #b19a7030; }
.hero-socials a:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.social-feedback { position: absolute; left: 0; bottom: calc(100% + 14px); white-space: nowrap; font-size: 12px; color: var(--ice); }
.identity-hero .hero .portrait-idle {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, #000d 88%, #0008 96%, #0005 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 78%, #000d 88%, #0008 96%, #0005 100%);
}
#work .portfolio-heading, #editing .portfolio-heading, #graphics .portfolio-heading { margin-bottom: clamp(44px, 4.5vw, 72px); }
/* A quiet video viewer with native playback controls. */
#project-dialog { width: min(1040px, 94vw); max-height: 92svh; padding: 20px; border: 1px solid #ffffff20; border-radius: 12px; background: #191918; color: #f5f0e6; box-shadow: 0 24px 90px #0007; }
#project-dialog::backdrop { background: #000b; animation: previewBackdrop .3s ease-out; }
@keyframes previewBackdrop { from { background: #0000; } to { background: #000b; } }
#project-dialog .dialog-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; }
#project-dialog .dialog-top .tiny { font-size: 10px; letter-spacing: .08em; color: #bdb6a8; }
#project-dialog .dialog-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; font-size: 28px; background: transparent; color: #f5f0e6; border-radius: 50%; }
#project-dialog .dialog-close:hover { background: #ffffff12; }
#project-dialog .canvas-wrap { background: #080808; border-radius: 5px; overflow: hidden; }
#project-video { display: block; width: 100%; max-height: 67svh; aspect-ratio: 16 / 9; object-fit: contain; }
#project-video[hidden] { display: none; }
#project-dialog.video-preview :is(#motion-canvas, #pause-motion, .canvas-time, .reel-progress) { display: none; }
#project-dialog .dialog-bottom { display: block; padding: 20px 0 4px; }
#project-dialog .dialog-bottom h2 { font: 600 clamp(18px, 2vw, 24px)/1.3 'Montserrat', Arial, sans-serif; letter-spacing: -.025em; }
#project-dialog .dialog-bottom p { margin-top: 8px; max-width: 72ch; font-size: 12px; line-height: 1.7; color: #bdb6a8; }
#project-dialog .dialog-bottom > .tiny { display: none; }
@media (max-width: 760px) {
  .hero-socials a { width: 44px; height: 44px; }
  #project-dialog { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { #project-dialog::backdrop { animation: none; } }

/* Fade the actual image edge, which extends below its animated wrapper. */
.identity-hero .hero .portrait-idle {
  -webkit-mask-image: none;
  mask-image: none;
}
.identity-hero .hero .portrait-idle img {
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 73%, #000d 83%, #0006 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 73%, #000d 83%, #0006 93%, transparent 100%);
}

/* A distinct contact capsule replaces the menu icon. */
.header .header-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  margin-left: auto; padding: 9px 10px 9px 22px; border-radius: 999px;
  background: var(--ice); color: #25231f; border: 1px solid #f3e5c8;
  font: 600 13px/1.2 'Montserrat', Arial, sans-serif; letter-spacing: .025em;
  box-shadow: 0 4px 22px #b19a7030;
  transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.header .header-contact span {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: #25231f; color: var(--ice); font-size: 20px;
  transition: transform .22s ease;
}
.header .header-contact:hover { background: #f6e8cb; transform: translateY(-2px); box-shadow: 0 6px 26px #b19a7055; }
.header .header-contact:hover span { transform: rotate(45deg); }
.header .header-contact:focus-visible { outline: 2px solid var(--header-ink); outline-offset: 5px; }
@media (max-width: 760px) {
  .header, .header.scrolled { height: 112px; align-items: flex-start; padding-top: 16px; }
  .header .wordmark { margin-top: 10px; }
  .header .header-contact { padding: 7px 8px 7px 15px; gap: 10px; font-size: 11px; }
  .header .header-contact span { width: 27px; height: 27px; }
  .header nav:not(.open) {
    display: flex; flex-direction: row; top: 76px; left: 50%; right: auto;
    width: max-content; gap: 2px; border: 0; background: transparent;
  }
  .header nav:not(.open) a { font-size: 10px; padding: 6px 9px; }
}

/* Quiet transition from motion work to social content. */
#work .work-controlbar { display: none; }
#editing { border-top: 0; padding-top: 80px; }
#editing .portfolio-heading::before { display: none; }
.scene-rail { gap: 13px; right: 22px; mix-blend-mode: normal; }
.scene-rail span {
  width: 5px; height: 5px; border-radius: 50%;
  background: #b19a7040; transition: background .25s ease, box-shadow .25s ease;
}
.scene-rail span.active { width: 5px; height: 5px; background: #e8d7b5; box-shadow: 0 0 0 3px #b19a7020; }
@media (max-width: 760px) {
  #editing { padding-top: 64px; }
  .scene-rail { right: 10px; gap: 11px; }
}

/* Larger About title, a centered playback control, and tighter graphic heading. */
#about h2 { font-size: clamp(64px, 8vw, 112px); line-height: 1.02; margin: 0; }
@media (min-width: 761px) { #about .about-layout { grid-template-columns: 1fr 1.15fr; gap: 7%; align-items: center; } }
@media (min-width: 761px) and (max-width: 1100px) { #about h2 { font-size: 8vw; } }
@media (max-width: 760px) { #about h2 { font-size: clamp(56px, 16vw, 68px); } #about .about-layout { gap: 28px; } }
#editing .wall-toolbar { justify-content: center; margin-top: 28px; }
#editing .wall-playback {
  display: grid; place-items: center; width: 52px; height: 52px;
  padding: 0; border-radius: 50%; border: 1px solid #b19a7070;
  color: var(--ice); background: #e8d7b50a;
  transition: background .2s ease, transform .2s ease;
}
#editing .wall-playback svg { width: 24px; height: 24px; fill: currentColor; }
#editing .wall-playback:hover { background: #e8d7b51c; transform: scale(1.06); }
#editing .wall-playback:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
#graphics { padding-top: 64px; }
#graphics .portfolio-heading::before { display: none; }
@media (max-width: 760px) { #graphics { padding-top: 48px; } }

#about .profile-caption { margin-top: 24px; }
#about .profile-caption > span:last-child { white-space: normal; }
#about .about-main { min-width: 0; }

/* Final section: a project invitation above a practical four-column footer. */
#contact.contact-redesign { padding: 0; background: #f7f5f0; color: #25231f; border: 0; }
#contact .contact-project { max-width: 1440px; margin: auto; padding: 100px 7%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
#contact .contact-kicker { margin: 0 0 22px; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #806b48; }
#contact #contact-title { font: 600 clamp(38px, 4.1vw, 64px)/1.12 'Montserrat', Arial, sans-serif; letter-spacing: -.055em; margin: 0; }
#contact #contact-title span { color: #92794f; }
#contact .contact-intro { max-width: 39ch; font-size: 15px; line-height: 1.9; margin: 26px 0 0; color: #655f54; }
#contact .contact-brief-note { display: flex; align-items: flex-start; gap: 16px; margin-top: 42px; padding-top: 24px; border-top: 1px solid #25231f20; }
#contact .contact-brief-note > span { font-size: 27px; color: #92794f; }
#contact .contact-brief-note p { font-size: 12px; line-height: 1.8; color: #655f54; margin: 0; }
#contact .contact-form-card { background: #fff; border: 1px solid #25231f16; border-radius: 12px; padding: clamp(24px, 3vw, 40px); }
#contact .brief-form > .tiny { margin: 0 0 28px; color: #25231f; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
#contact .brief-form label { color: #514b41; font-size: 12px; margin-bottom: 22px; }
#contact .brief-form :is(input, textarea, select) { color: #25231f; border-bottom-color: #25231f30; font-size: 14px; padding-block: 12px; color-scheme: light; }
#contact .brief-form :is(input, textarea)::placeholder { color: #9b958b; }
#contact .brief-form :is(input, textarea, select):focus { border-bottom-color: #92794f; }
#contact .brief-submit { background: #25231f; color: #f4e7cd; border: 0; border-radius: 999px; padding: 15px 22px; align-items: center; font-size: 12px; }
#contact .brief-submit:hover { background: #53452f; }
#contact .form-note { color: #82796d; font-size: 11px; line-height: 1.7; margin-top: 16px; }
#contact #form-status { color: #665437; font-size: 12px; margin-top: 10px; }
#contact .portfolio-footer { display: block; padding: 0; background: #20201e; color: #e8d7b5; border: 0; }
#contact .footer-columns { display: grid; grid-template-columns: 1.55fr .8fr 1fr 1.2fr; gap: 44px; padding: 70px 7% 65px; max-width: 1440px; margin: auto; }
#contact .footer-name { display: inline-block; font: 700 30px/1.2 'Montserrat', Arial, sans-serif; letter-spacing: -.045em; color: #f6f1e6; }
#contact .footer-name span { color: #b19a70; }
#contact .footer-identity p { max-width: 28ch; font-size: 12px; line-height: 1.9; margin-top: 20px; color: #bdb6a8; }
#contact .footer-identity p + p { margin-top: 10px; }
#contact .footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; }
#contact .footer-column h3 { margin: 0 0 12px; color: #f4eddf; font: 500 14px/1.4 'Poppins', Arial, sans-serif; }
#contact .footer-column > a, #contact .footer-column > p { font-size: 12px; line-height: 1.7; color: #bdb6a8; margin: 0; }
#contact .footer-column a:hover { color: #fff0cc; }
#contact .footer-column .footer-full-name { font-size: 11px; letter-spacing: .02em; }
#contact .clock { position: static; display: flex; align-items: baseline; flex-wrap: wrap; max-width: none; margin: 15px 0 0; gap: 6px; }
#contact .clock .tiny { width: 100%; font-size: 10px; color: #bdb6a8; }
#contact .clock > span:not(.tiny) { font-size: 22px; font-weight: 400; color: #e8d7b5; }
#contact .clock > i { font-size: 10px; }
#contact .footer-bottom { background: #e8d7b5; color: #25231f; padding: 18px 7%; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
#contact .footer-bottom p, #contact .footer-bottom a { font-size: 11px; margin: 0; color: inherit; }
#contact .footer-bottom a { display: inline-flex; gap: 14px; align-items: center; }
@media (max-width: 1000px) { #contact .footer-columns { grid-template-columns: 1.4fr 1fr; gap: 36px; } }
@media (max-width: 760px) {
  #contact .contact-project { grid-template-columns: 1fr; padding: 72px 6% 56px; gap: 36px; }
  #contact .contact-intro { max-width: none; }
  #contact .contact-brief-note { margin-top: 24px; }
  #contact .footer-columns { padding: 48px 6%; gap: 32px 22px; }
  #contact .footer-identity { grid-column: 1 / -1; }
  #contact .footer-column.contact-info { grid-column: 1 / -1; }
  #contact .footer-bottom { padding: 18px 6%; flex-wrap: wrap; }
}

/* Refinement confined to the brief card. */
#contact .contact-form-card { padding: 0; overflow: hidden; border-radius: 12px; }
#contact .brief-card-heading { padding: 23px 28px; background: #e8d7b5; }
#contact .brief-card-heading h3 { margin: 0; font: 600 18px/1.4 'Montserrat', Arial, sans-serif; color: #25231f; }
#contact .brief-card-heading p { margin: 6px 0 0; font-size: 12px; color: #65553b; }
#contact .brief-fields { padding: 0 28px; }
#contact .brief-fields label {
  display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 20px;
  align-items: baseline; margin: 0; padding: 24px 0;
  border-bottom: 1px solid #25231f14; font-weight: 500; line-height: 1.6;
}
#contact .brief-fields label:last-child { border-bottom: 0; }
#contact .brief-fields :is(input, select, textarea) {
  margin: 0; padding: 0; border: 0; border-radius: 0; font-weight: 400;
  background: transparent; font-size: 13px; line-height: 1.7;
}
#contact .brief-fields :is(input, select, textarea):focus-visible { outline: 2px solid #b19a70; outline-offset: 5px; }
#contact .brief-fields textarea { min-height: 110px; }
#contact .brief-card-action { padding: 24px 28px 18px; background: #f8f7f4; border-top: 1px solid #25231f14; }
#contact .brief-card-action .form-note { max-width: none; margin-bottom: 0; }
#contact .brief-card-action #form-status:empty { display: none; }
@media (max-width: 480px) {
  #contact .brief-fields label { grid-template-columns: 1fr; gap: 10px; }
  #contact .brief-fields { padding-inline: 22px; }
  #contact .brief-card-heading, #contact .brief-card-action { padding-inline: 22px; }
}

/* Restore the original dark contact composition and larger, clearer form type. */
#contact.contact-dark { background: #191918; color: #fff; padding: 100px 7% 28px; }
#contact.contact-dark .contact-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 0; height: auto; padding: 0; position: relative; }
#contact.contact-dark #contact-title { font: 700 clamp(64px, 9vw, 139px)/1.01 'Poppins', Arial, sans-serif; letter-spacing: -.065em; margin: 0; }
#contact.contact-dark #contact-title span { color: #e8d7b5; }
#contact.contact-dark .circle-arrow { flex-shrink: 0; width: 100px; height: 100px; font-size: 52px; background: #e8d7b5; color: #25231f; border: 0; }
#contact.contact-dark .contact-bottom { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7%; margin-top: 64px; padding-top: 48px; border-top: 1px solid #e8d7b52e; align-items: start; }
#contact.contact-dark .contact-info > .tiny { color: #b19a70; font-size: 16px; font-weight: 600; margin-bottom: 20px; }
#contact.contact-dark .contact-info .contact-name { color: #fff; font-size: clamp(25px, 2.5vw, 36px); font-weight: 600; line-height: 1.3; }
#contact.contact-dark .contact-info > p:not(.tiny):not(.contact-name) { color: #bdb6a8; font-size: 17px; }
#contact.contact-dark .contact-email { color: #e8d7b5; font-size: 18px; margin-top: 26px; }
#contact.contact-dark .clock { margin-top: 38px; }
#contact.contact-dark .clock .tiny { font-size: 13px; }
#contact.contact-dark .clock > span:not(.tiny) { font-size: 30px; }
#contact.contact-dark .contact-form-card { background: #fff; color: #25231f; }
#contact.contact-dark .brief-card-heading h3 { font-size: 24px; font-weight: 600; }
#contact.contact-dark .brief-card-heading p { font-size: 16px; line-height: 1.6; }
#contact.contact-dark .brief-fields label { grid-template-columns: 140px minmax(0, 1fr); font-size: 16px; font-weight: 600; padding-block: 26px; }
#contact.contact-dark .brief-fields :is(input, select, textarea) { font-size: 17px; font-weight: 400; line-height: 1.6; }
#contact.contact-dark .brief-submit { font-size: 16px; font-weight: 600; padding: 17px 24px; }
#contact.contact-dark .form-note { font-size: 14px; line-height: 1.7; }
#contact.contact-dark #form-status { font-size: 15px; }
#contact.contact-dark .contact-signoff { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #e8d7b520; margin-top: 64px; padding-top: 24px; }
#contact.contact-dark .contact-signoff p, #contact.contact-dark .contact-signoff a { margin: 0; font-size: 13px; color: #bdb6a8; }
@media (max-width: 1000px) { #contact.contact-dark .brief-fields label { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 760px) {
  #contact.contact-dark { padding: 72px 6% 24px; }
  #contact.contact-dark #contact-title { font-size: clamp(42px, 9vw, 68px); }
  #contact.contact-dark .contact-head { gap: 16px; }
  #contact.contact-dark .circle-arrow { width: 52px; height: 52px; font-size: 30px; }
  #contact.contact-dark .contact-bottom { grid-template-columns: 1fr; gap: 36px; margin-top: 36px; padding-top: 32px; }
  #contact.contact-dark .contact-signoff { flex-wrap: wrap; margin-top: 40px; }
}

/* Restore the original sticky contact title and its scroll-driven motion. */
@media (min-height: 560px) {
  .cinema-on #contact.contact-dark .contact-sequence { position: relative; height: 170svh; }
  .cinema-on #contact.contact-dark .contact-head {
    position: sticky; top: 0; height: 100svh; min-height: 540px;
    display: flex; align-items: center; padding: 70px 0;
  }
  .cinema-on #contact.contact-dark #contact-title { will-change: transform; }
  .cinema-on #contact.contact-dark #contact-title > span:not(.contact-period) { display: inline-block; will-change: transform; }
  .cinema-on #contact.contact-dark .contact-bottom { margin-top: 0; }
}
@media (max-width: 760px) and (min-height: 560px) {
  .cinema-on #contact.contact-dark .contact-sequence { height: 145svh; }
  .cinema-on #contact.contact-dark .contact-head { min-height: 550px; }
}

/* Reference-inspired brief page: wide field rows and a separate summary card. */
#contact.contact-dark .brief-page { display: block; width: calc(100% + 14vw); margin: 0 -7vw; padding: 0 7vw 48px; background: #fff; color: #25231f; border: 0; }
#contact .brief-page-heading { text-align: center; padding: 44px 20px; margin: 0 -7vw 52px; background: #f6f5f2; }
#contact .brief-page-heading h3 { margin: 0 0 12px; font: 600 clamp(30px, 3vw, 44px)/1.2 'Montserrat', Arial, sans-serif; letter-spacing: -.04em; }
#contact .brief-page-heading p { font-size: 17px; line-height: 1.6; color: #746e63; margin: 0; }
#contact #brief.brief-page-form { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(290px, 1fr); gap: 32px; align-items: start; }
#contact .brief-table-heading { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 20px 24px; border-radius: 9px; background: #e8d7b5; font-size: 17px; font-weight: 600; }
#contact #brief.brief-page-form label { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; padding: 30px 24px; margin: 0; border-bottom: 1px solid #25231f16; font-size: 17px; line-height: 1.6; font-weight: 600; color: #25231f; }
#contact #brief.brief-page-form :is(input, select, textarea) { border: 0; background: transparent; padding: 0; margin: 0; min-width: 0; width: 100%; color: #514b41; font-size: 17px; font-weight: 400; line-height: 1.6; color-scheme: light; }
#contact #brief.brief-page-form :is(input, select, textarea):focus-visible { outline: 2px solid #b19a70; outline-offset: 6px; }
#contact #brief.brief-page-form :is(input, textarea)::placeholder { color: #a19a8e; }
#contact .brief-summary { padding: 26px; border: 1px solid #25231f1c; border-radius: 10px; background: #fff; }
#contact .brief-summary h3 { margin: 0 0 24px; font: 600 21px/1.4 'Montserrat', Arial, sans-serif; }
#contact .brief-summary dl { margin: 0 0 26px; padding-block: 12px; border-block: 1px solid #25231f16; }
#contact .brief-summary dl > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 13px; font-size: 16px; line-height: 1.6; }
#contact .brief-summary dt { color: #82796d; }
#contact .brief-summary dd { margin: 0; max-width: 60%; text-align: right; overflow-wrap: anywhere; font-weight: 500; }
#contact .brief-summary .brief-submit { background: #25231f; color: #e8d7b5; font-size: 16px; font-weight: 600; }
#contact .brief-summary .form-note { color: #82796d; font-size: 14px; }
#contact.contact-dark .brief-contact-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin-top: 56px; padding-top: 30px; border-top: 1px solid #25231f16; }
#contact.contact-dark .brief-contact-strip .contact-name { font-size: 20px; color: #25231f; }
#contact .brief-contact-strip p { color: #746e63; font-size: 15px; margin: 6px 0; }
#contact .brief-contact-strip > a { color: #665437; font-size: 16px; font-weight: 600; }
#contact.contact-dark .brief-contact-strip .clock { margin: 0; }
#contact.contact-dark .brief-contact-strip .clock .tiny { color: #746e63; }
#contact.contact-dark .brief-contact-strip .clock > span:not(.tiny) { color: #25231f; font-size: 25px; }
#contact .brief-contact-strip .clock > i { color: #746e63; }
@media (max-width: 1100px) {
  #contact .brief-table-heading, #contact #brief.brief-page-form label { grid-template-columns: 130px minmax(0, 1fr); gap: 18px; padding-inline: 18px; }
}
@media (max-width: 760px) {
  #contact.contact-dark .brief-page { width: calc(100% + 12vw); margin-inline: -6vw; padding-inline: 6vw; }
  #contact .brief-page-heading { margin-inline: -6vw; padding: 34px 6vw; margin-bottom: 32px; }
  #contact #brief.brief-page-form { grid-template-columns: 1fr; }
  #contact .brief-table-heading { grid-template-columns: 1fr; }
  #contact .brief-table-heading span:last-child { display: none; }
  #contact #brief.brief-page-form label { grid-template-columns: 1fr; gap: 12px; }
}

/* Reference footer, confined to the closing identity and copyright area. */
#contact.contact-dark { padding-bottom: 0; }
#contact.contact-dark .footer-reference { width: calc(100% + 14vw); margin: 0 -7vw; background: #25231f; }
#contact .footer-reference .footer-columns { max-width: none; padding: 64px 7vw; grid-template-columns: 1.5fr .75fr 1fr 1.2fr; gap: 44px; }
#contact .footer-reference .footer-name { font-size: 34px; }
#contact .footer-reference .footer-identity p { font-size: 16px; line-height: 1.8; max-width: 30ch; }
#contact .footer-reference .footer-role { font-weight: 500; }
#contact .footer-reference .footer-column h3 { font-size: 18px; font-weight: 600; margin-bottom: 14px; }
#contact .footer-reference .footer-column > a, #contact .footer-reference .footer-column > p { font-size: 15px; line-height: 1.7; }
#contact .footer-reference .footer-contact > p[data-name] { font-size: 14px; font-weight: 500; }
#contact .footer-reference .clock { margin-top: 16px; }
#contact .footer-reference .clock .tiny { font-size: 12px; }
#contact .footer-reference .clock > span:not(.tiny) { font-size: 26px; }
#contact .footer-reference .footer-bottom { padding: 20px 7vw; }
#contact .footer-reference .footer-bottom p, #contact .footer-reference .footer-bottom a { font-size: 14px; }
@media (max-width: 1100px) { #contact .footer-reference .footer-columns { grid-template-columns: 1.4fr 1fr; gap: 36px; } }
@media (max-width: 760px) {
  #contact.contact-dark .footer-reference { width: calc(100% + 12vw); margin-inline: -6vw; }
  #contact .footer-reference .footer-columns { padding: 48px 6vw; grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  #contact .footer-reference .footer-identity, #contact .footer-reference .footer-contact { grid-column: 1 / -1; }
  #contact .footer-reference .footer-bottom { padding: 20px 6vw; }
}

/* Compact the brief ending before the footer. */
#contact.contact-dark .brief-page { padding-bottom: 32px; }
#contact .brief-summary #form-status:empty { display: none; }
#contact .brief-summary .brief-submit { margin-bottom: 0; }
@media (max-width: 760px) { #contact.contact-dark .brief-page { padding-bottom: 28px; } }

/* Hide the page scroll progress line. */
.story-progress { display: none; }

/* Preserve gallery footer spacing while hiding its caption, rule and reset control. */
#graphics .graphic-caption { display: none; visibility: hidden; pointer-events: none; }

/* Readable skill descriptions and clean, centered portfolio captions. */
.experience .skills-accordion details { padding-block: 24px; }
.experience .skills-accordion summary { gap: 16px; }
.experience .skills-accordion .service-index { font-size: 23px; line-height: 1; }
.experience .skills-accordion h3 { font-size: clamp(23px, 2.1vw, 30px); font-weight: 600; }
.experience .skills-accordion details > p { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.8; padding-left: 28px; margin-top: 22px; color: #51483a; }
#work .project-description { display: block; text-align: center; padding-top: 22px; }
#work .project-description h3 { font-size: clamp(23px, 2vw, 30px); line-height: 1.35; font-weight: 600; color: #f4eddf; }
#work .project-description p { font-size: clamp(18px, 1.5vw, 23px); line-height: 1.5; margin-top: 8px; color: #e8d7b5; }
#editing .vertical-tile figcaption { display: block; text-align: center; margin-top: 14px; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.4; font-weight: 500; color: #e8d7b5; white-space: normal; }
@media (max-width: 760px) {
  .experience .skills-accordion details > p { padding-left: 24px; font-size: 18px; }
  #work .project-description { padding-top: 18px; }
  #work .project-description h3 { font-size: 23px; }
  #work .project-description p, #editing .vertical-tile figcaption { font-size: 18px; }
}

/* Fit the motion card and both caption lines inside the sticky work panel. */
#work .project-description { padding-top: 16px; padding-bottom: 12px; }
#work .project-description h3 { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.3; margin: 0; }
#work .project-description p { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.4; margin: 6px 0 0; }
#work .portfolio-heading { margin-bottom: 36px; }
@media (min-width: 761px) and (min-height: 560px) {
  .cinema-on #work .work-stage { padding-top: 130px; }
  .cinema-on #work .projects > .project {
    width: min(42.5vw, calc(max(120px, 100svh - 420px) * 16 / 9), 980px);
  }
}
@media (max-width: 760px) {
  #work .project-description h3 { font-size: 21px; }
  #work .project-description p { font-size: 16px; }
  #work .portfolio-heading { margin-bottom: 28px; }
}

/* Match social video brand captions to the motion brand caption size. */
#editing .vertical-tile figcaption { font-size: clamp(16px, 1.25vw, 20px); line-height: 1.4; }
@media (max-width: 760px) { #editing .vertical-tile figcaption { font-size: 16px; } }

/* Keep the spotlight inside the work panel, fading fully before its edges. */
.cinema-on #work .work-viewport::before { display: none; }
.cinema-on #work .work-stage {
  background: radial-gradient(ellipse 55% 35% at 50% 50%, #bd9d5a24 0%, #bd9d5a10 48%, transparent 100%), var(--bg);
}
#work, #editing { background-color: var(--bg); border-bottom: 0; border-top: 0; }

/* More readable About copy, balanced against the title column. */
#about .about-main { max-width: 660px; }
#about .about-main .intro {
  font-size: clamp(24px, 2.2vw, 32px); line-height: 1.5;
  letter-spacing: -.025em; margin: 0;
}
#about .about-main .body-copy {
  font-size: clamp(17px, 1.25vw, 20px); line-height: 1.85;
  letter-spacing: 0; margin: 26px 0 0;
}
@media (min-width: 761px) {
  #about .about-layout { grid-template-columns: .9fr 1.25fr; gap: 6%; align-items: center; }
}
@media (max-width: 760px) {
  #about .about-main { max-width: none; }
  #about .about-main .intro { font-size: clamp(23px, 5.2vw, 27px); line-height: 1.5; }
  #about .about-main .body-copy { font-size: 17px; line-height: 1.8; margin-top: 22px; }
}

/* More breathing room below the crossing ribbons, with a neutral work label. */
#work .work-eyebrow { color: #f0ede6; }
.cinema-on #work .work-stage { padding-top: 175px; }
#work:not(:has(.work-stage)) { padding-top: 195px; }
@media (min-width: 761px) and (min-height: 560px) {
  .cinema-on #work .projects > .project {
    width: min(42.5vw, calc(max(120px, 100svh - 465px) * 16 / 9), 980px);
  }
}
@media (max-width: 760px) {
  .cinema-on #work .work-stage, #work:not(:has(.work-stage)) { padding-top: 160px; }
}
/* Match skill headings to the role text in the experience list. */
.experience .skills-accordion h3 { font-size: clamp(15px, 1.35vw, 18px); line-height: 1.5; }

/* Match skill titles to employer names and descriptions to experience roles. */
.experience .skills-accordion h3 { font-size: clamp(17px, 1.7vw, 22px); line-height: 1.35; font-weight: 600; }
.experience .skills-accordion details:first-child h3 { font-size: clamp(18px, 2vw, 23px); }
.experience .skills-accordion details > p { font-size: clamp(15px, 1.35vw, 18px); line-height: 1.7; }

/* Equal spacing beneath all three portfolio category headings. */
#work .portfolio-heading, #editing .portfolio-heading, #graphics .portfolio-heading {
  margin-bottom: clamp(44px, 4.5vw, 72px);
}
#work .work-eyebrow { color: #fff; }
@media (min-width: 761px) and (min-height: 560px) {
  .cinema-on #work .projects > .project {
    width: min(42.5vw, calc(max(120px, 100svh - 501px) * 16 / 9), 980px);
  }
}

/* Restore only the original desktop Motion Graphics video size. */
@media (min-width: 761px) and (min-height: 560px) {
  .cinema-on #work .projects > .project {
    width: min(42.5vw, calc(40svh * 16 / 9), 980px);
  }
}

/* Let the sticky panel contain the full video and caption at their existing sizes. */
@media (min-height: 560px) {
  .cinema-on #work .work-stage {
    height: auto;
    min-height: 100svh;
  }
  .cinema-on #work .work-viewport { flex-shrink: 0; }
}

/* Ribbon depth through light and shadow only; retain all existing geometry. */
.marquee > .ribbon-front, .cinema-on .marquee > .ribbon-front {
  background: linear-gradient(180deg, #f7ebce 0%, #ecddba 16%, #e8d7b5 48%, #ddc89e 84%, #c9ae7e 100%);
  border-top-color: #fff2d8;
  border-bottom-color: #a58a5c;
  box-shadow: inset 0 2px 0 #fff9, inset 0 -2px 3px #74572e30, 0 9px 14px #0005, 0 2px 3px #0004;
  text-shadow: 0 1px 0 #fff5;
}
.marquee > .ribbon-back, .cinema-on .marquee > .ribbon-back {
  background: linear-gradient(180deg, #947c50 0%, #7b653f 17%, #665437 52%, #57452b 85%, #44351f 100%);
  border-top-color: #b69a6b;
  border-bottom-color: #3b2e1d;
  box-shadow: inset 0 1px 0 #e8d7b54d, inset 0 -2px 3px #0003, 0 5px 10px #0004;
  text-shadow: 0 1px 1px #0005;
}

/* Readable, restrained process typography. */
.process .process-steps { gap: clamp(28px, 4vw, 64px); }
.process .process-steps article { padding-top: 24px; border-top-color: #25231f26; }
.process .process-steps article > span {
  display: block; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5;
  font-weight: 500; letter-spacing: .015em; color: #806b48;
}
.process .process-steps h3 {
  margin: 24px 0 16px; font-size: clamp(24px, 2vw, 30px);
  line-height: 1.3; font-weight: 600; letter-spacing: -.03em;
}
.process .process-steps p {
  max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.8; font-weight: 400; color: #655f54; margin: 0;
}
@media (max-width: 760px) {
  .process .process-steps { gap: 32px; }
  .process .process-steps article > span { font-size: 16px; }
  .process .process-steps h3 { font-size: 25px; margin-top: 18px; }
  .process .process-steps p { font-size: 18px; max-width: none; }
}

/* Separate Instagram feed and thumbnail formats without cropping the artwork. */
#graphics .graphic-grid { display: block; padding-top: 0; }
#graphics .graphic-collection { width: min(100%, 1020px); margin-inline: auto; }
#graphics .graphic-collection + .graphic-collection { margin-top: 56px; }
#graphics .graphic-format-heading {
  display: flex; align-items: baseline; gap: 16px; margin: 0 0 24px;
  font: 600 clamp(22px, 2vw, 28px)/1.3 'Montserrat', Arial, sans-serif;
  color: #f4eddf; letter-spacing: -.025em;
}
#graphics .graphic-format-heading span { color: #b19a70; font: 400 16px/1.4 'Poppins', Arial, sans-serif; letter-spacing: 0; }
#graphics .graphic-format-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px; align-items: start; transition: grid-template-columns .7s cubic-bezier(.22,1,.36,1);
}
#graphics .graphic-collection[data-format="feed"] .graphic-art { aspect-ratio: 4 / 5; }
#graphics .graphic-collection[data-format="thumbnail"] .graphic-art { aspect-ratio: 16 / 9; }
#graphics .graphic-art { background: #20201e; border-color: #e8d7b51c; }
#graphics .graphic-art img { width: 100%; height: 100%; max-height: none; object-fit: contain; background: transparent; }
@media (max-width: 760px) {
  #graphics .graphic-format-grid { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
  #graphics .graphic-collection + .graphic-collection { margin-top: 40px; }
}
@media (max-width: 480px) { #graphics .graphic-collection[data-format="thumbnail"] .graphic-format-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { #graphics .graphic-format-grid { transition: none; } }

/* Keep gallery photos stationary; retain only the existing light sweep. */
#graphics .graphic-grid.graphic-revealed .graphic-item,
#graphics .graphic-grid.has-active .graphic-item { transform: none; filter: none; }
#graphics .graphic-item.is-active .graphic-art { box-shadow: none; }
#graphics .graphic-item.is-active .graphic-art img { transform: scale(1.02); }

/* Motion video hover stays at the established size and position. */
#work .project:hover .project-art { transform: none; }
